Files
JiboViteDocs/node_modules/preact/dist/preact.min.module.js

3 lines
11 KiB
JavaScript
Raw Normal View History

2026-05-03 12:12:57 -04:00
var n,l,t,u,i,r,e,o,f,c,a,s,h,p,y,v,d,w={},_=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function b(n,l){for(var t in l)n[t]=l[t];return n}function k(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function x(l,t,u){var i,r,e,o={};for(e in t)"key"==e?i=t[e]:"ref"==e?r=t[e]:o[e]=t[e];if(arguments.length>2&&(o.children=arguments.length>3?n.call(arguments,2):u),"function"==typeof l&&null!=l.defaultProps)for(e in l.defaultProps)void 0===o[e]&&(o[e]=l.defaultProps[e]);return C(l,o,i,r,null)}function C(n,u,i,r,e){var o={type:n,props:u,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==e?++t:e,__i:-1,__u:0};return null==e&&null!=l.vnode&&l.vnode(o),o}function M(n){return n.children}function S(n,l){this.props=n,this.context=l}function $(n,l){if(null==l)return n.__?$(n.__,n.__i+1):null;for(var t;l<n.__k.length;l++)if(null!=(t=n.__k[l])&&null!=t.__e)return t.__e;return"function"==typeof n.type?$(n):null}function A(n){if(n.__P&&n.__d){var t=n.__v,u=t.__e,i=[],r=[],e=b({},t);e.__v=t.__v+1,l.vnode&&l.vnode(e),z(n.__P,e,t,n.__n,n.__P.namespaceURI,32&t.__u?[u]:null,i,null==u?$(t):u,!!(32&t.__u),r),e.__v=t.__v,e.__.__k[e.__i]=e,R(i,e,r),t.__e=t.__=null,e.__e!=u&&I(e)}}function I(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=n.__c.base=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=n.__c.base=l.__e}),I(n)}function P(n){(!n.__d&&(n.__d=!0)&&i.push(n)&&!E.__r++||r!=l.debounceRendering)&&((r=l.debounceRendering)||e)(E)}function E(){try{for(var n,l=1;i.length;)i.length>l&&i.sort(o),n=i.shift(),l=i.length,A(n)}finally{i.length=E.__r=0}}function F(n,l,t,u,i,r,e,o,f,c,a){var s,h,p,y,v,d,m,g=u&&u.__k||_,b=l.length;for(f=H(t,l,g,f,b),s=0;s<b;s++)null!=(p=t.__k[s])&&(h=-1!=p.__i&&g[p.__i]||w,p.__i=s,d=z(n,p,h,i,r,e,o,f,c,a),y=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&D(h.ref,null,p),a.push(p.ref,p.__c||y,p)),null==v&&null!=y&&(v=y),(m=!!(4&p.__u))||h.__k===p.__k?(f=L(p,f,n,m),m&&h.__e&&(h.__e=null)):"function"==typeof p.type&&void 0!==d?f=d:y&&(f=y.nextSibling),p.__u&=-7);return t.__e=v,f}function H(n,l,t,u,i){var r,e,o,f,c,a=t.length,s=a,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(e=l[r])&&"boolean"!=typeof e&&"function"!=typeof e?("string"==typeof e||"number"==typeof e||"bigint"==typeof e||e.constructor==String?e=n.__k[r]=C(null,e,null,null,null):g(e)?e=n.__k[r]=C(M,{children:e},null,null,null):void 0===e.constructor&&e.__b>0?e=n.__k[r]=C(e.type,e.props,e.key,e.ref?e.ref:null,e.__v):n.__k[r]=e,f=r+h,e.__=n,e.__b=n.__b+1,o=null,-1!=(c=e.__i=T(e,t,f,s))&&(s--,(o=t[c])&&(o.__u|=2)),null==o||null==o.__v?(-1==c&&(i>a?h--:i<a&&h++),"function"!=typeof e.type&&(e.__u|=4)):c!=f&&(c==f-1?h--:c==f+1?h++:(c>f?h--:h++,e.__u|=4))):n.__k[r]=null;if(s)for(r=0;r<a;r++)null!=(o=t[r])&&0==(2&o.__u)&&(o.__e==u&&(u=$(o)),G(o,o));return u}function L(n,l,t,u){var i,r;if("function"==typeof n.type){for(i=n.__k,r=0;i&&r<i.length;r++)i[r]&&(i[r].__=n,l=L(i[r],l,t,u));return l}n.__e!=l&&(u&&(l&&n.type&&!l.parentNode&&(l=$(n)),t.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function T(n,l,t,u){var i,r,e,o=n.key,f=n.type,c=l[t],a=null!=c&&0==(2&c.__u);if(null===c&&null==o||a&&o==c.key&&f==c.type)return t;if(u>(a?1:0))for(i=t-1,r=t+1;i>=0||r<l.length;)if(null!=(c=l[e=i>=0?i--:r++])&&0==(2&c.__u)&&o==c.key&&f==c.type)return e;return-1}function j(n,l,t){"-"==l[0]?n.setProperty(l,null==t?"":t):n[l]=null==t?"":"number"!=typeof t||m.test(l)?t:t+"px"}function O(n,l,t,u,i){var r,e;n:if("style"==l)if("string"==typeof t)n.style.cssText=t;else{if("string"==typeof u&&(n.style.cssText=u=""),u)for(l in u)t&&l in t||j(n.style,l,"");if(t)for(l in t)u&&t[l]==u[l]||j(n.style,l,t[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(s,"$1")),e=l.toLowerCase(),l=e in n||"onFocusOut"==l||"onFocusIn"==l?e.slice(2):l.slice(2),n.l||(n.l={}),n.l[l+r]=t,t?u?t[a]=u[a]:(t[a]=h,n.addEventListener(l,r?y:p,r)):n.removeEventListener(l,r?y:p,r);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&
//# sourceMappingURL=preact.min.module.js.map