%PDF- %PDF-
Direktori : /home/ugotscom/kma/node_modules/preact/compat/dist/ |
Current File : /home/ugotscom/kma/node_modules/preact/compat/dist/compat.modern.js |
import{Component as t,createElement as n,options as e,toChildArray as o,Fragment as r,render as l,hydrate as u,createContext as i,createRef as c,cloneElement as f}from"preact";export{Component,Fragment,createContext,createElement,createRef}from"preact";import{useState as s,useReducer as a,useEffect as h,useLayoutEffect as p,useRef as m,useImperativeHandle as d,useMemo as y,useCallback as b,useContext as _,useDebugValue as S}from"preact/hooks";export*from"preact/hooks";function E(t,n){for(let e in t)if("__source"!==e&&!(e in n))return!0;for(let e in n)if("__source"!==e&&t[e]!==n[e])return!0;return!1}function g(t){this.props=t}function v(t,e){function o(t){let n=this.props.ref,o=n==t.ref;return!o&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!o:E(this.props,t)}function r(e){return this.shouldComponentUpdate=o,n(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(g.prototype=new t).isPureReactComponent=!0,g.prototype.shouldComponentUpdate=function(t,n){return E(this.props,t)||E(this.state,n)};let w=e.__b;e.__b=(t,n)=>{t.type&&t.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null,t.ref=null),w&&w(t,n)};const C="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function R(t){function n(n,e){let o=Object.assign({},n);return delete o.ref,t(o,!(e=n.ref||e)||"object"==typeof e&&!("current"in e)?null:e)}return n.$$typeof=C,n.render=n,n.prototype.isReactComponent=n.__f=!0,n.displayName="ForwardRef("+(t.displayName||t.name)+")",n}const x=(t,n)=>null==t?null:o(o(t).map(n)),k={map:x,forEach:x,count:t=>t?o(t).length:0,only(t){const n=o(t);if(1!==n.length)throw"Children.only";return n[0]},toArray:o},O=t=>28&t.__f&&(!(16&t.__f)||t.props.__P==N(t.__));function A(t,n){if(null==t.__k)return null;for(n=n||0;n<t.__k.length;n++){let e=t.__k[n];if(null!=e){if(3&e.__f)return e.__e;if(O(e)){let t=A(e);if(t)return t}}}return null}function N(t){let n=16&t.__f?t.props.__P:null,e=t.__;for(;null==n&&e;)16&e.__f?n=e.props.__P:2&e.__f&&(n=e.__e),e=e.__;return n}function L(t){return t.children}function U(t,e){return n(L,{__P:e},t)}const j=e.__e;e.__e=function(t,n){if(t.then){let e,o=n;for(;o=o.__;)if((e=o.__c)&&e.__c)return e.__c(t,n)}j(t,n)};const D=e.unmount;function F(){this.__u=0,this.t=null,this.__P=null,this.o=0}function M(t){let n=t.__.__c;return n&&n.__e&&n.__e(t)}function I(t){let e,o,r;function l(l){if(e||(e=t(),e.then(t=>{o=t.default||t},t=>{r=t})),r)throw r;if(!o)throw e;return n(o,l)}return l.displayName="Lazy",l.__f=!0,l}function P(){this.l=null,this.u=null}e.unmount=function(t){const n=t.__c;n&&n.__R&&n.__R(),n&&32==(32&t.__f)&&(t.__f|=2),D&&D(t)},(F.prototype=new t).__c=function(t,n){const e=n.__c;if(null!=e.__R)return;const o=this;null==o.t&&(o.t=[]),o.t.push(e);const r=M(o.__i);let l=!1;const u=()=>{l||(l=!0,e.__R=null,r?r(i):i())};e.__R=u;const i=()=>{if(!--o.__u){let t;for(this.__P=null,o.setState({__e:!1});t=o.t.pop();)t.forceUpdate()}},c=32==(32&n.__f);o.__u++||c||(this.__P=document.createElement("div"),o.setState({__e:!0})),t.then(u,u)},F.prototype.componentWillUnmount=function(){this.t=[],this.__P=null},F.prototype.render=function(t,e){null==this.__P&&(this.__P=N(this.__i));const o=e.__e&&n(r,null,t.fallback),l=U(t.children,this.__P);return e.__e?l.__v=this.o:this.o=l.__v,[l,o]};const T=(t,n,e)=>{if(++e[1]===e[0]&&t.u.delete(n),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.u.size))for(e=t.l;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;t.l=e=e[2]}};(P.prototype=new t).__e=function(t){const n=this,e=M(n.__i);let o=n.u.get(t);return o[0]++,r=>{const l=()=>{n.props.revealOrder?(o.push(r),T(n,t,o)):r()};e?e(l):l()}},P.prototype.render=function(t){this.l=null,this.u=new Map;const n=o(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&n.reverse();for(let t=n.length;t--;)this.u.set(n[t],this.l=[1,0,this.l]);return t.children},P.prototype.componentDidUpdate=P.prototype.componentDidMount=function(){this.u.forEach((t,n)=>{T(this,n,t)})};const W="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,V=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,z=t=>("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t);function B(t,n,e){null==n.__k&&(n.textContent=""),l(t,n),"function"==typeof e&&e();const o=n.__k.__k[0];return o?o.__c:null}function H(t,n,e){return u(t,n),"function"==typeof e&&e(),t?t.__c:null}t.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(n=>{Object.defineProperty(t.prototype,n,{configurable:!0,get(){return this["UNSAFE_"+n]},set(t){Object.defineProperty(this,n,{configurable:!0,writable:!0,value:t})}})});let Z=e.event;function Y(){}function $(){return this.cancelBubble}function q(){return this.defaultPrevented}e.event=t=>(Z&&(t=Z(t)),t.persist=Y,t.isPropagationStopped=$,t.isDefaultPrevented=q,t.nativeEvent=t);let G,J={configurable:!0,get(){return this.class}},K=e.vnode;e.vnode=t=>{let n=t.type,e=t.props,r=e;if("string"==typeof n){r={};for(let t in e){let o=e[t];"value"===t&&"defaultValue"in e&&null==o||("defaultValue"===t&&"value"in e&&null==e.value?t="value":"download"===t&&!0===o?o="":/ondoubleclick/i.test(t)?t="ondblclick":/^onchange(textarea|input)/i.test(t+n)&&!z(e.type)?t="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(t)?t=t.toLowerCase():V.test(t)?t=t.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===o&&(o=void 0),r[t]=o)}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=o(e.children).forEach(t=>{t.props.selected=-1!=r.value.indexOf(t.props.value)})),"select"==n&&null!=r.defaultValue&&(r.value=o(e.children).forEach(t=>{t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value})),t.props=r}n&&e.class!=e.className&&(J.enumerable="className"in e,null!=e.className&&(r.class=e.className),Object.defineProperty(r,"className",J)),t.$$typeof=W,K&&K(t)};const Q=e.__r;e.__r=function(t){Q&&Q(t),G=t.__c};const X={ReactCurrentDispatcher:{current:{readContext:t=>G.__n[t.__c].props.value}}},tt=1,nt=2,et=3,ot=4,rt=5;function lt(t,n){return n()}const ut="object"==typeof performance&&"function"==typeof performance.now?performance.now.bind(performance):()=>Date.now(),it="16.8.0";function ct(t){return n.bind(null,t)}function ft(t){return!!t&&t.$$typeof===W}function st(t){return ft(t)?f.apply(null,arguments):t}function at(t){return!!t.__k&&(l(null,t),!0)}function ht(t){return null==t?null:1==t.nodeType?t:A(t.__i)}const pt=(t,n)=>t(n),mt=r;var dt={useState:s,useReducer:a,useEffect:h,useLayoutEffect:p,useRef:m,useImperativeHandle:d,useMemo:y,useCallback:b,useContext:_,useDebugValue:S,version:"16.8.0",Children:k,render:B,hydrate:H,unmountComponentAtNode:at,createPortal:U,createElement:n,createContext:i,createFactory:ct,cloneElement:st,createRef:c,Fragment:r,isValidElement:ft,findDOMNode:ht,Component:t,PureComponent:g,memo:v,forwardRef:R,unstable_batchedUpdates:pt,StrictMode:mt,Suspense:F,SuspenseList:P,lazy:I,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:X};export default dt;export{k as Children,g as PureComponent,mt as StrictMode,F as Suspense,P as SuspenseList,X as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,st as cloneElement,ct as createFactory,U as createPortal,ht as findDOMNode,R as forwardRef,H as hydrate,ft as isValidElement,I as lazy,v as memo,B as render,at as unmountComponentAtNode,rt as unstable_IdlePriority,tt as unstable_ImmediatePriority,ot as unstable_LowPriority,et as unstable_NormalPriority,nt as unstable_UserBlockingPriority,pt as unstable_batchedUpdates,ut as unstable_now,lt as unstable_runWithPriority,it as version}; //# sourceMappingURL=compat.modern.js.map