mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
3 lines
11 KiB
JavaScript
3 lines
11 KiB
JavaScript
|
|
/* esm.sh - preact@10.28.4 */
|
||
|
|
var E,d,X,se,C,J,Y,Z,ee,j,R,$,_e,A={},F=[],ce=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,M=Array.isArray;function b(_,e){for(var t in e)_[t]=e[t];return _}function V(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function ue(_,e,t){var o,l,n,i={};for(n in e)n=="key"?o=e[n]:n=="ref"?l=e[n]:i[n]=e[n];if(arguments.length>2&&(i.children=arguments.length>3?E.call(arguments,2):t),typeof _=="function"&&_.defaultProps!=null)for(n in _.defaultProps)i[n]===void 0&&(i[n]=_.defaultProps[n]);return T(_,i,o,l,null)}function T(_,e,t,o,l){var n={type:_,props:e,key:t,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:l??++X,__i:-1,__u:0};return l==null&&d.vnode!=null&&d.vnode(n),n}function ge(){return{current:null}}function H(_){return _.children}function W(_,e){this.props=_,this.context=e}function S(_,e){if(e==null)return _.__?S(_.__,_.__i+1):null;for(var t;e<_.__k.length;e++)if((t=_.__k[e])!=null&&t.__e!=null)return t.__e;return typeof _.type=="function"?S(_):null}function pe(_){if(_.__P&&_.__d){var e=_.__v,t=e.__e,o=[],l=[],n=b({},e);n.__v=e.__v+1,d.vnode&&d.vnode(n),z(_.__P,n,e,_.__n,_.__P.namespaceURI,32&e.__u?[t]:null,o,t??S(e),!!(32&e.__u),l),n.__v=e.__v,n.__.__k[n.__i]=n,oe(o,n,l),e.__e=e.__=null,n.__e!=t&&te(n)}}function te(_){if((_=_.__)!=null&&_.__c!=null)return _.__e=_.__c.base=null,_.__k.some(function(e){if(e!=null&&e.__e!=null)return _.__e=_.__c.base=e.__e}),te(_)}function B(_){(!_.__d&&(_.__d=!0)&&C.push(_)&&!N.__r++||J!=d.debounceRendering)&&((J=d.debounceRendering)||Y)(N)}function N(){for(var _,e=1;C.length;)C.length>e&&C.sort(Z),_=C.shift(),e=C.length,pe(_);N.__r=0}function ne(_,e,t,o,l,n,i,c,f,s,p){var r,v,u,m,g,y,h,a=o&&o.__k||F,w=e.length;for(f=fe(t,e,a,f,w),r=0;r<w;r++)(u=t.__k[r])!=null&&(v=u.__i!=-1&&a[u.__i]||A,u.__i=r,y=z(_,u,v,l,n,i,c,f,s,p),m=u.__e,u.ref&&v.ref!=u.ref&&(v.ref&&q(v.ref,null,u),p.push(u.ref,u.__c||m,u)),g==null&&m!=null&&(g=m),(h=!!(4&u.__u))||v.__k===u.__k?f=re(u,f,_,h):typeof u.type=="function"&&y!==void 0?f=y:m&&(f=m.nextSibling),u.__u&=-7);return t.__e=g,f}function fe(_,e,t,o,l){var n,i,c,f,s,p=t.length,r=p,v=0;for(_.__k=new Array(l),n=0;n<l;n++)(i=e[n])!=null&&typeof i!="boolean"&&typeof i!="function"?(typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?i=_.__k[n]=T(null,i,null,null,null):M(i)?i=_.__k[n]=T(H,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?i=_.__k[n]=T(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):_.__k[n]=i,f=n+v,i.__=_,i.__b=_.__b+1,c=null,(s=i.__i=he(i,t,f,r))!=-1&&(r--,(c=t[s])&&(c.__u|=2)),c==null||c.__v==null?(s==-1&&(l>p?v--:l<p&&v++),typeof i.type!="function"&&(i.__u|=4)):s!=f&&(s==f-1?v--:s==f+1?v++:(s>f?v--:v++,i.__u|=4))):_.__k[n]=null;if(r)for(n=0;n<p;n++)(c=t[n])!=null&&(2&c.__u)==0&&(c.__e==o&&(o=S(c)),ie(c,c));return o}function re(_,e,t,o){var l,n;if(typeof _.type=="function"){for(l=_.__k,n=0;l&&n<l.length;n++)l[n]&&(l[n].__=_,e=re(l[n],e,t,o));return e}_.__e!=e&&(o&&(e&&_.type&&!e.parentNode&&(e=S(_)),t.insertBefore(_.__e,e||null)),e=_.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function ae(_,e){return e=e||[],_==null||typeof _=="boolean"||(M(_)?_.some(function(t){ae(t,e)}):e.push(_)),e}function he(_,e,t,o){var l,n,i,c=_.key,f=_.type,s=e[t],p=s!=null&&(2&s.__u)==0;if(s===null&&c==null||p&&c==s.key&&f==s.type)return t;if(o>(p?1:0)){for(l=t-1,n=t+1;l>=0||n<e.length;)if((s=e[i=l>=0?l--:n++])!=null&&(2&s.__u)==0&&c==s.key&&f==s.type)return i}return-1}function K(_,e,t){e[0]=="-"?_.setProperty(e,t??""):_[e]=t==null?"":typeof t!="number"||ce.test(e)?t:t+"px"}function L(_,e,t,o,l){var n,i;e:if(e=="style")if(typeof t=="string")_.style.cssText=t;else{if(typeof o=="string"&&(_.style.cssText=o=""),o)for(e in o)t&&e in t||K(_.style,e,"");if(t)for(e in t)o&&t[e]==o[e]||K(_.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")n=e!=(e=e.replace(ee,"$1")),i=e.toLowerCase(),e=i in _||e=="onFocusOut"||e=="onFocusIn"?i.slice(2):e.slice(2),_.l||(_.l={}),_.l[e+n]=t,t?o?t.u=o.u:(t.u=j,_.addEventListener(e,n?$:R,n)):_.removeEventListener(e,n?$:R,n);else{if(l=="http://www.w3.org/2000/s
|
||
|
|
//preact.mjs.map
|