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