Warp/node_modules/preact/dist/preact.umd.js

3 lines
11 KiB
JavaScript
Raw Normal View History

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