@jsenv/cli 0.3.68 → 0.3.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/template-node-package/package.json +4 -4
- package/template-web/package.json +6 -6
- package/template-web-components/package.json +6 -6
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.mjs +2 -0
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/node_modules/preact/hooks/dist/hooks.mjs +2 -0
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs +2 -0
- package/template-web-preact/.jsenv/entry_index/craft/app/app.jsx +2 -2
- package/template-web-preact/.jsenv/entry_index/craft/app/counter.jsx +3 -3
- package/template-web-preact/.jsenv/entry_index/craft/main.jsx +2 -2
- package/template-web-preact/.jsenv/entry_index/shape/@fs/Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +1 -1
- package/template-web-preact/.jsenv/entry_index/shape/index.html +2 -2
- package/template-web-preact/.jsenv/entry_index/shape/main.jsx +1 -1
- package/template-web-preact/dist/index.html +2 -2
- package/template-web-preact/dist/js/main.js +1 -1
- package/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +1 -1
- package/template-web-preact/package.json +8 -8
- package/template-web-react/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/node_modules/react-dom/react-dom/client7cjs_as_js_module=.jsx +24 -24
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/node_modules/react/index.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/node_modules/react/jsx-runtime.production.js__compile_info__.json +2 -2
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/node_modules/react-dom/client.production.js +24 -24
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/node_modules/react-dom/client.production.js__compile_info__.json +3 -3
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/@fs/Users/dmail/Documents/dev/jsenv/core/packages/node_modules/react-dom/client.production.map +1 -1
- package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/__compile_context__.json +1 -1
- package/template-web-react/package.json +7 -7
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.module.js +0 -2
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/node_modules/preact/hooks/dist/hooks.module.js +0 -2
- package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.71",
|
|
4
4
|
"description": "Command Line Interface for jsenv",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"./template-*/**"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@jsenv/humanize": "1.7.
|
|
25
|
-
"@jsenv/urls": "2.9.
|
|
24
|
+
"@jsenv/humanize": "1.7.1",
|
|
25
|
+
"@jsenv/urls": "2.9.3",
|
|
26
26
|
"prompts": "2.4.2"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@jsenv/assert": "4.5.4",
|
|
16
|
-
"@jsenv/core": "40.
|
|
17
|
-
"@jsenv/eslint-config-relax": "1.7.
|
|
18
|
-
"@jsenv/test": "3.7.
|
|
19
|
-
"eslint": "9.
|
|
16
|
+
"@jsenv/core": "40.12.0",
|
|
17
|
+
"@jsenv/eslint-config-relax": "1.7.6",
|
|
18
|
+
"@jsenv/test": "3.7.14",
|
|
19
|
+
"eslint": "9.39.1",
|
|
20
20
|
"prettier": "3.6.2"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@babel/plugin-syntax-import-attributes": "7.27.1",
|
|
18
18
|
"@jsenv/assert": "4.5.4",
|
|
19
|
-
"@jsenv/core": "40.
|
|
20
|
-
"@jsenv/eslint-config-relax": "1.7.
|
|
21
|
-
"@jsenv/plugin-bundling": "2.10.
|
|
22
|
-
"@jsenv/plugin-minification": "1.7.
|
|
23
|
-
"@jsenv/test": "3.7.
|
|
24
|
-
"eslint": "9.
|
|
19
|
+
"@jsenv/core": "40.12.0",
|
|
20
|
+
"@jsenv/eslint-config-relax": "1.7.6",
|
|
21
|
+
"@jsenv/plugin-bundling": "2.10.3",
|
|
22
|
+
"@jsenv/plugin-minification": "1.7.3",
|
|
23
|
+
"@jsenv/test": "3.7.14",
|
|
24
|
+
"eslint": "9.39.1",
|
|
25
25
|
"open": "10.2.0",
|
|
26
26
|
"@playwright/browser-chromium": "1.56.1",
|
|
27
27
|
"prettier": "3.6.2",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"@babel/plugin-syntax-import-attributes": "7.27.1",
|
|
19
19
|
"@jsenv/custom-elements-redefine": "0.0.1",
|
|
20
20
|
"@jsenv/assert": "4.5.4",
|
|
21
|
-
"@jsenv/core": "40.
|
|
22
|
-
"@jsenv/plugin-bundling": "2.10.
|
|
23
|
-
"@jsenv/plugin-minification": "1.7.
|
|
24
|
-
"@jsenv/eslint-config-relax": "1.7.
|
|
25
|
-
"@jsenv/test": "3.7.
|
|
26
|
-
"eslint": "9.
|
|
21
|
+
"@jsenv/core": "40.12.0",
|
|
22
|
+
"@jsenv/plugin-bundling": "2.10.3",
|
|
23
|
+
"@jsenv/plugin-minification": "1.7.3",
|
|
24
|
+
"@jsenv/eslint-config-relax": "1.7.6",
|
|
25
|
+
"@jsenv/test": "3.7.14",
|
|
26
|
+
"eslint": "9.39.1",
|
|
27
27
|
"open": "10.2.0",
|
|
28
28
|
"@playwright/browser-chromium": "1.56.1",
|
|
29
29
|
"prettier": "3.6.2",
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var n,l,u,t,i,r,f,e,o,c,s,a,h={},p=[],v=Array.isArray,y=p.slice,w=Object.assign;function d(n){n&&n.parentNode&&n.remove()}function _(n,l,u){var t,i,r,f={};for(r in l)"key"==r?t=l[r]:"ref"==r&&"function"!=typeof n?i=l[r]:f[r]=l[r];return arguments.length>2&&(f.children=arguments.length>3?y.call(arguments,2):u),g(n,f,t,i,null)}function g(u,t,i,r,f){var e={type:u,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==f?++l:f,__i:-1,__u:0};return null==f&&null!=n.vnode&&n.vnode(e),e}function b(){return{current:null}}function k(n){return n.children}function m(n,l){this.props=n,this.context=l,this.__g=0}function M(n,l){if(null==l)return n.__?M(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?M(n):null}function S(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=u.__e;break}return S(n)}}function $(l){(8&l.__g||!(l.__g|=8)||!t.push(l)||r++)&&i==n.debounceRendering||((i=n.debounceRendering)||queueMicrotask)(x)}function x(){for(var l,u,i,e,o,c,s,a,h=1;t.length;)t.length>h&&t.sort(f),l=t.shift(),h=t.length,8&l.__g&&(i=void 0,o=(e=(u=l).__v).__e,c=[],s=[],(a=u.__P)&&((i=w({},e)).__v=e.__v+1,n.vnode&&n.vnode(i),q(a,i,e,u.__n,a.namespaceURI,32&e.__u?[o]:null,c,null==o?M(e):o,!!(32&e.__u),s,a.ownerDocument),i.__v=e.__v,i.__.__k[i.__i]=i,P(c,i,s),i.__e!=o&&S(i)));r=0}function C(n,l,u,t,i,r,f,e,o,c,s,a){var v,y,w,d,_,g,b,k=t&&t.__k||p,m=l.length;for(o=j(u,l,k,o,m),v=0;v<m;v++)null!=(w=u.__k[v])&&(y=-1==w.__i?h:k[w.__i]||h,w.__i=v,g=q(n,w,y,i,r,f,e,o,c,s,a),d=w.__e,w.ref&&y.ref!=w.ref&&(y.ref&&B(y.ref,null,w),s.push(w.ref,w.__c||d,w)),null==_&&null!=d&&(_=d),(b=!!(4&w.__u))||y.__k===w.__k?o=A(w,o,n,b):"function"==typeof w.type&&void 0!==g?o=g:d&&(o=d.nextSibling),w.__u&=-7);return u.__e=_,o}function j(n,l,u,t,i){var r,f,e,o,c,s=u.length,a=s,h=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(f=l[r])&&"boolean"!=typeof f&&"function"!=typeof f?(o=r+h,(f=n.__k[r]="string"==typeof f||"number"==typeof f||"bigint"==typeof f||f.constructor==String?g(null,f,null,null,null):v(f)?g(k,{children:f},null,null,null):null==f.constructor&&f.__b>0?g(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f).__=n,f.__b=n.__b+1,e=null,-1!=(c=f.__i=I(f,u,o,a))&&(a--,(e=u[c])&&(e.__u|=2)),null==e||null==e.__v?(-1==c&&(i>s?h--:i<s&&h++),"function"!=typeof f.type&&(f.__u|=4)):c!=o&&(c==o-1?h--:c==o+1?h++:(c>o?h--:h++,f.__u|=4))):n.__k[r]=null;if(a)for(r=0;r<s;r++)null!=(e=u[r])&&0==(2&e.__u)&&(e.__e==t&&(t=M(e)),D(e,e));return t}function A(n,l,u,t){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=A(i[r],l,u,t));return l}n.__e!=l&&(t&&(l&&n.type&&!l.parentNode&&(l=M(n)),u.insertBefore(n.__e,l||null)),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8==l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(v(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function I(n,l,u,t){var i,r,f,e=n.key,o=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==n.key||s&&e==c.key&&o==c.type)return u;if(t>(s?1:0))for(i=u-1,r=u+1;i>=0||r<l.length;)if(null!=(c=l[f=i>=0?i--:r++])&&0==(2&c.__u)&&e==c.key&&o==c.type)return f;return-1}function L(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":u}function O(n,l,u,t,i){var r;n:if("style"==l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||L(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||L(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(e,"$1")),(l=l.slice(2))[0].toLowerCase()!=l[0]&&(l=l.toLowerCase()),n.__l||(n.__l={}),n.__l[l+r]=u,u?t?u.l=t.l:(u.l=o,n.addEventListener(l,r?s:c,r)):n.removeEventListener(l,r?s:c,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&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!=l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function T(l){return function(u){if(this.__l){var t=this.__l[u.type+l];if(null==u.u)u.u=o++;else if(u.u<t.l)return;return t(n.event?n.event(u):u)}}}function q(l,u,t,i,r,f,e,o,c,s,a){var h,p,y,_,g,b,M,S,$,x,j,A,H,I,L,O,T,q,P,B,D,F=u.type;if(null!=u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),t.__c.__z&&(o=u.__e=t.__e=(f=t.__c.__z)[0],t.__c.__z=null)),(h=n.__b)&&h(u);n:if("function"==typeof F)try{if(S=u.props,$="prototype"in F&&F.prototype.render,x=(h=F.contextType)&&i[h.__c],j=h?x?x.props.value:h.__:i,t.__c?2&(p=u.__c=t.__c).__g&&(p.__g|=1,M=!0):($?u.__c=p=new F(S,j):(u.__c=p=new m(S,j),p.constructor=F,p.render=E),x&&x.sub(p),p.props=S,p.state||(p.state={}),p.context=j,p.__n=i,y=!0,p.__g|=8,p.__h=[],p._sb=[]),$&&null==p.__s&&(p.__s=p.state),$&&null!=F.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=w({},p.__s)),w(p.__s,F.getDerivedStateFromProps(S,p.__s))),_=p.props,g=p.state,p.__v=u,y)$&&null==F.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),$&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if($&&null==F.getDerivedStateFromProps&&S!==_&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(S,j),!(4&p.__g)&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(S,p.__s,j)||u.__v==t.__v){for(u.__v!=t.__v&&(p.props=S,p.state=p.__s,p.__g&=-9),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),A=0;A<p._sb.length;A++)p.__h.push(p._sb[A]);p._sb=[],p.__h.length&&e.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(S,p.__s,j),$&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(_,g,b)})}if(p.context=j,p.props=S,p.__P=l,p.__g&=-5,H=n.__r,I=0,$){for(p.state=p.__s,p.__g&=-9,H&&H(u),h=p.render(p.props,p.state,p.context),L=0;L<p._sb.length;L++)p.__h.push(p._sb[L]);p._sb=[]}else do{p.__g&=-9,H&&H(u),h=p.render(p.props,p.state,p.context),p.state=p.__s}while(8&p.__g&&++I<25);p.state=p.__s,null!=p.getChildContext&&(i=w({},i,p.getChildContext())),$&&!y&&null!=p.getSnapshotBeforeUpdate&&(b=p.getSnapshotBeforeUpdate(_,g)),O=h,null!=h&&h.type===k&&null==h.key&&(O=V(h.props.children)),o=C(l,v(O)?O:[O],u,t,i,r,f,e,o,c,s,a),u.__u&=-161,p.__h.length&&e.push(p),M&&(p.__g&=-4)}catch(l){if(u.__v=null,c||null!=f)if(l.then){for(T=0,q=!1,u.__u|=c?160:128,u.__c.__z=[],P=0;P<f.length;P++)null==(B=f[P])||q||(8==B.nodeType&&"$s"==B.data?(T>0&&u.__c.__z.push(B),T++,f[P]=null):8==B.nodeType&&"/$s"==B.data?(--T>0&&u.__c.__z.push(B),q=0===T,o=f[P],f[P]=null):T>0&&(u.__c.__z.push(B),f[P]=null));if(!q){for(;o&&8==o.nodeType&&o.nextSibling;)o=o.nextSibling;f[f.indexOf(o)]=null,u.__c.__z=[o]}u.__e=o}else{for(D=f.length;D--;)d(f[D]);N(u)}else u.__e=t.__e,u.__k=t.__k,l.then||N(u);n.__e(l,u,t)}else o=u.__e=z(t.__e,u,t,i,r,f,e,c,s,a);return(h=n.diffed)&&h(u),128&u.__u?void 0:o}function N(n){n&&n.__c&&(n.__c.__g|=4),n&&n.__k&&n.__k.forEach(N)}function P(l,u,t){for(var i=0;i<t.length;i++)B(t[i],t[++i],t[++i]);n.__c&&n.__c(u,l),l.some(function(u){try{l=u.__h,u.__h=[],l.some(function(n){n.call(u)})}catch(l){n.__e(l,u.__v)}})}function V(n){return"object"!=typeof n||null==n||n.__b&&n.__b>0?n:v(n)?n.map(V):w({},n)}function z(l,u,t,i,r,f,e,o,c,s){var a,p,w,_,g,b,k,m,S=t.props,$=u.props,x=u.type;if("svg"==x?r="http://www.w3.org/2000/svg":"math"==x?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((g=f[a])&&"setAttribute"in g==!!x&&(x?g.localName==x:3==g.nodeType)){l=g,f[a]=null;break}if(null==l){if(null==x)return s.createTextNode($);l=s.createElementNS(r,x,$.is&&$),o&&(n.__m&&n.__m(u,f),o=!1),f=null}if(null==x)S===$||o&&l.data==$||(l.data=$);else{if(f=f&&y.call(l.childNodes),S=t.props||h,!o&&null!=f)for(S={},a=0;a<l.attributes.length;a++)S[(g=l.attributes[a]).name]=g.value;for(a in S)if(g=S[a],"children"==a);else if("dangerouslySetInnerHTML"==a)w=g;else if(!(a in $)){if("value"==a&&"defaultValue"in $||"checked"==a&&"defaultChecked"in $)continue;O(l,a,null,g,r)}for(a in m=1&t.__u,$)g=$[a],"children"==a?_=g:"dangerouslySetInnerHTML"==a?p=g:"value"==a?b=g:"checked"==a?k=g:o&&"function"!=typeof g||S[a]===g&&!m||O(l,a,g,S[a],r);if(p)o||w&&(p.__html==w.__html||p.__html==l.innerHTML)||(l.innerHTML=p.__html),u.__k=[];else if(w&&(l.innerHTML=""),C("template"==x?l.content:l,v(_)?_:[_],u,t,i,"foreignObject"==x?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:t.__k&&M(t,0),o,c,s),null!=f)for(a=f.length;a--;)d(f[a]);o||(a="value","progress"==x&&null==b?l.removeAttribute("value"):null==b||b===l[a]&&("progress"!==x||b)||O(l,a,b,S[a],r),a="checked",null!=k&&k!=l[a]&&O(l,a,k,S[a],r))}return l}function B(l,u,t){try{if("function"==typeof l){var i="function"==typeof l.__u;i&&l.__u(),i&&null==u||(l.__u=l(u))}else l.current=u}catch(l){n.__e(l,t)}}function D(l,u,t){var i,r;if(n.unmount&&n.unmount(l),(i=l.ref)&&(i.current&&i.current!=l.__e||B(i,null,u)),null!=(i=l.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(l){n.__e(l,u)}i.__P=null}if(i=l.__k)for(r=0;r<i.length;r++)i[r]&&D(i[r],u,t||"function"!=typeof l.type);t||d(l.__e),l.__e&&l.__e.__l&&(l.__e.__l=null),l.__e=l.__c=l.__=null}function E(n,l,u){return this.constructor(n,u)}function F(l,u){var t,i,r,f;u==document&&(u=document.documentElement),n.__&&n.__(l,u),i=(t=!!(l&&32&l.__u))?null:u.__k,l=u.__k=_(k,null,[l]),r=[],f=[],q(u,l,i||h,h,u.namespaceURI,i?null:u.firstChild?y.call(u.childNodes):null,r,i?i.__e:u.firstChild,t,f,u.ownerDocument),P(r,l,f)}function G(n,l){n.__u|=32,F(n,l)}function J(n,l,u){var t,i,r,f=w({},n.props);for(r in l)"key"==r?t=l[r]:"ref"==r&&"function"!=typeof n.type?i=l[r]:f[r]=l[r];return arguments.length>2&&(f.children=arguments.length>3?y.call(arguments,2):u),g(n.type,f,t||n.key,i||n.ref,null)}function K(n){function l(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l.__c]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&u.forEach(function(n){n.__g|=4,$(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}return l.__c="__cC"+a++,l.__=n,l.Provider=l.__l=(l.Consumer=function(n,l){return n.children(l)}).contextType=l,l}n={__e:function(n,l,u,t){for(var i,f,e;l=l.__;)if((i=l.__c)&&!(1&i.__g)){i.__g|=4;try{if((f=i.constructor)&&null!=f.getDerivedStateFromError&&(i.setState(f.getDerivedStateFromError(n)),e=8&i.__g),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),e=8&i.__g),e)return void(i.__g|=2)}catch(l){n=l}}throw r=0,n}},l=0,u=function(n){return null!=n&&null==n.constructor},m.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=w({},this.state),"function"==typeof n&&(n=n(w({},u),this.props)),n&&w(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),$(this))},m.prototype.forceUpdate=function(n){this.__v&&(this.__g|=4,n&&this.__h.push(n),$(this))},m.prototype.render=k,t=[],r=0,f=function(n,l){return n.__v.__b-l.__v.__b},e=/(PointerCapture)$|Capture$/i,o=0,c=T(!1),s=T(!0),a=0;export{m as Component,k as Fragment,J as cloneElement,K as createContext,_ as createElement,b as createRef,_ as h,G as hydrate,u as isValidElement,n as options,F as render,H as toChildArray};
|
|
2
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{options as n}from"file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.mjs";var t,r,u,i,o=Object.is,f=0,c=[],e=n,a=e.__b,v=e.__r,l=e.diffed,m=e.__c,s=e.unmount,p=e.__;function d(n,t){e.__h&&e.__h(r,n,f||t),f=0;var u=r.__H||(r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function h(n){return f=1,y(D,n)}function y(n,u,i){var f=d(t++,2);if(f.t=n,!f.__c&&(f.__=[i?i(u):D(void 0,u),function(n){var t=f.__N?f.__N[0]:f.__[0],r=f.t(t,n);o(t,r)||(f.__N=[r,f.__[1]],f.__c.setState({}))}],f.__c=r,!r.__f)){var c=function(n,t,r){if(!f.__c.__H)return!0;var u=f.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!e||e.call(this,n,t,r);var i=f.__c.props!==n;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,o(t,n.__[0])||(i=!0)}}),e&&e.call(this,n,t,r)||i};r.__f=!0;var e=r.shouldComponentUpdate,a=r.componentWillUpdate;r.componentWillUpdate=function(n,t,r){if(4&this.__g){var u=e;e=void 0,c(n,t,r),e=u}a&&a.call(this,n,t,r)},r.shouldComponentUpdate=c}return f.__N||f.__}function _(n,u){var i=d(t++,3);!e.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__H.__h.push(i))}function A(n,u){var i=d(t++,4);!e.__s&&C(i.__H,u)&&(i.__=n,i.u=u,r.__h.push(i))}function F(n){return f=5,q(function(){return{current:n}},[])}function T(n,t,r){f=6,A(function(){if("function"==typeof n){var r=n(t());return function(){n(null),r&&"function"==typeof r&&r()}}if(n)return n.current=t(),function(){return n.current=null}},null==r?r:r.concat(n))}function q(n,r){var u=d(t++,7);return C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function b(n,t){return f=8,q(function(){return n},t)}function j(n){var u=r.context[n.__c],i=d(t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(r)),u.props.value):n.__}function x(n,t){e.useDebugValue&&e.useDebugValue(t?t(n):n)}function O(n){var u=d(t++,10),i=h();return u.__=n,r.componentDidCatch||(r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function P(){var n=d(t++,11);if(!n.__){for(var u=r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function g(){for(var n;n=c.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(z),n.__H.__h.forEach(B),n.__H.__h=[]}catch(t){n.__H.__h=[],e.__e(t,n.__v)}}e.__b=function(n){r=null,a&&a(n)},e.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),p&&p(n,t)},e.__r=function(n){v&&v(n),t=0;var i=(r=n.__c).__H;i&&(u===r?(i.__h=[],r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.forEach(z),i.__h.forEach(B),i.__h=[],t=0)),u=r},e.diffed=function(n){l&&l(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==c.push(t)&&i===e.requestAnimationFrame||((i=e.requestAnimationFrame)||w)(g)),t.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),u=r=null},e.__c=function(n,t){t.some(function(n){try{n.__h.forEach(z),n.__h=n.__h.filter(function(n){return!n.__||B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],e.__e(r,n.__v)}}),m&&m(n,t)},e.unmount=function(n){s&&s(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{z(n)}catch(n){t=n}}),r.__H=void 0,t&&e.__e(t,r.__v))};var k="function"==typeof requestAnimationFrame;function w(n){var t,r=function(){clearTimeout(u),k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,35);k&&(t=requestAnimationFrame(r))}function z(n){var t=r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),r=t}function B(n){var t=r;n.__c=n.__(),r=t}function C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return!o(t,n[r])})}function D(n,t){return"function"==typeof t?t(n):t}export{b as useCallback,j as useContext,x as useDebugValue,_ as useEffect,O as useErrorBoundary,P as useId,T as useImperativeHandle,A as useLayoutEffect,q as useMemo,y as useReducer,F as useRef,h as useState};
|
|
2
|
+
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{options as r,Fragment as t}from"file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.mjs";export{Fragment}from"file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.mjs";var e=/["&<]/;function n(r){if(0===r.length||!1===e.test(r))return r;for(var t=0,n=0,o="",f="";n<r.length;n++){switch(r.charCodeAt(n)){case 34:f=""";break;case 38:f="&";break;case 60:f="<";break;default:continue}n!==t&&(o+=r.slice(t,n)),o+=f,t=n+1}return n!==t&&(o+=r.slice(t,n)),o}var o=0,f=Array.isArray;function u(t,e,n,f,u,i){e||(e={});var a,c,l=e;if("ref"in l&&"function"!=typeof t)for(c in l={},e)"ref"==c?a=e[c]:l[c]=e[c];var p={type:t,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--o,__i:-1,__u:0,__source:u,__self:i};return r.vnode&&r.vnode(p),p}function i(r){var e=u(t,{tpl:r,exprs:[].slice.call(arguments,1)});return e.key=e.__v,e}var a={},c=/[A-Z]/g;function l(t,e){if(r.attr){var o=r.attr(t,e);if("string"==typeof o)return o}if(e=function(r){return null!==r&&"object"==typeof r&&"function"==typeof r.valueOf?r.valueOf():r}(e),"ref"===t||"key"===t)return"";if("style"===t&&"object"==typeof e){var f="";for(var u in e){var i=e[u];null!=i&&""!==i&&(f=f+("-"==u[0]?u:a[u]||(a[u]=u.replace(c,"-$&").toLowerCase()))+":"+i+";")}return t+'="'+n(f)+'"'}return null==e||!1===e||"function"==typeof e||"object"==typeof e?"":!0===e?t:t+'="'+n(""+e)+'"'}function p(r){if(null==r||"boolean"==typeof r||"function"==typeof r)return null;if("object"==typeof r){if(void 0===r.constructor)return r;if(f(r)){for(var t=0;t<r.length;t++)r[t]=p(r[t]);return r}}return n(""+r)}export{u as jsx,l as jsxAttr,u as jsxDEV,p as jsxEscape,i as jsxTemplate,u as jsxs};
|
|
2
|
+
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useLayoutEffect } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/hooks/dist/hooks.
|
|
1
|
+
import { useLayoutEffect } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/hooks/dist/hooks.mjs";
|
|
2
2
|
import appStyleSheet from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/app/app.css?as_css_module" ;
|
|
3
3
|
import { Counter } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/app/counter.jsx";
|
|
4
|
-
import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.
|
|
4
|
+
import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
5
5
|
const preactLogoUrl = import.meta.resolve("file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/preact_logo.svg");
|
|
6
6
|
export const App = () => {
|
|
7
7
|
useLayoutEffect(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Fragment } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.
|
|
2
|
-
import { useState } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/hooks/dist/hooks.
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.
|
|
1
|
+
import { Fragment } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.mjs";
|
|
2
|
+
import { useState } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/hooks/dist/hooks.mjs";
|
|
3
|
+
import { jsx as _jsx, jsxs as _jsxs } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
4
4
|
export const Counter = () => {
|
|
5
5
|
const [count, setCount] = useState(0);
|
|
6
6
|
return _jsxs(Fragment, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { render } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.
|
|
1
|
+
import { render } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.mjs";
|
|
2
2
|
import { App } from "file:///Users/dmail/Documents/dev/jsenv/core/packages/related/cli/template-web-preact/src/app/app.jsx";
|
|
3
|
-
import { jsx as _jsx } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.
|
|
3
|
+
import { jsx as _jsx } from "file:///Users/dmail/Documents/dev/jsenv/core/node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
4
4
|
render(_jsx(App, {}), document.querySelector("#root"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _,e,n,t,o,r,l,u,i,c,f,s={},a=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function d(_,e){for(var n in e)_[n]=e[n];return _}function v(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function m(_,t,o,r,l){var u={type:_,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++n:l,__i:-1,__u:0};return null==l&&null!=e.vnode&&e.vnode(u),u}function y(_){return _.children}function g(_,e){this.props=_,this.context=e}function k(_,e){if(null==e)return _.__?k(_.__,_.__i+1):null;for(var n;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof _.type?k(_):null}function b(_){var e,n;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e){_.__e=_.__c.base=n.__e;break}return b(_)}}function w(_){(!_.__d&&(_.__d=!0)&&t.push(_)&&!H.__r++||o!=e.debounceRendering)&&((o=e.debounceRendering)||r)(H)}function H(){for(var _,n,o,r,u,i,c,f=1;t.length;)t.length>f&&t.sort(l),_=t.shift(),f=t.length,_.__d&&(o=void 0,r=void 0,u=(r=(n=_).__v).__e,i=[],c=[],n.__P&&((o=d({},r)).__v=r.__v+1,e.vnode&&e.vnode(o),U(n.__P,o,r,n.__n,n.__P.namespaceURI,32&r.__u?[u]:null,i,null==u?k(r):u,!!(32&r.__u),c),o.__v=r.__v,o.__.__k[o.__i]=o,F(i,o,c),r.__e=r.__=null,o.__e!=u&&b(o)));H.__r=0}function x(_,e,n,t,o,r,l,u,i,c,f){var p,d,v,g,b,w,H,x=t&&t.__k||a,N=e.length;for(i=function(_,e,n,t,o){var r,l,u,i,c,f=n.length,s=f,a=0;for(_.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?(i=r+a,(l=_.__k[r]="string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?m(null,l,null,null,null):h(l)?m(y,{children:l},null,null,null):null==l.constructor&&l.__b>0?m(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=_,l.__b=_.__b+1,u=null,-1!=(c=l.__i=S(l,n,i,s))&&(s--,(u=n[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(o>f?a--:o<f&&a++),"function"!=typeof l.type&&(l.__u|=4)):c!=i&&(c==i-1?a--:c==i+1?a++:(c>i?a--:a++,l.__u|=4))):_.__k[r]=null;if(s)for(r=0;r<f;r++)null!=(u=n[r])&&!(2&u.__u)&&(u.__e==t&&(t=k(u)),W(u,u));return t}(n,e,x,i,N),p=0;p<N;p++)null!=(v=n.__k[p])&&(d=-1==v.__i?s:x[v.__i]||s,v.__i=p,w=U(_,v,d,o,r,l,u,i,c,f),g=v.__e,v.ref&&d.ref!=v.ref&&(d.ref&&M(d.ref,null,v),f.push(v.ref,v.__c||g,v)),null==b&&null!=g&&(b=g),(H=!!(4&v.__u))||d.__k===v.__k?i=P(v,i,_,H):"function"==typeof v.type&&void 0!==w?i=w:g&&(i=g.nextSibling),v.__u&=-7);return n.__e=b,i}function P(_,e,n,t){var o,r;if("function"==typeof _.type){for(o=_.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=_,e=P(o[r],e,n,t));return e}_.__e!=e&&(t&&(e&&_.type&&!e.parentNode&&(e=k(_)),n.insertBefore(_.__e,e||null)),e=_.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function S(_,e,n,t){var o,r,l,u=_.key,i=_.type,c=e[n],f=null!=c&&!(2&c.__u);if(null===c&&null==_.key||f&&u==c.key&&i==c.type)return n;if(t>(f?1:0))for(o=n-1,r=n+1;o>=0||r<e.length;)if(null!=(c=e[l=o>=0?o--:r++])&&!(2&c.__u)&&u==c.key&&i==c.type)return l;return-1}function N(_,e,n){"-"==e[0]?_.setProperty(e,null==n?"":n):_[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function E(_,e,n,t,o){var r,l;_:if("style"==e)if("string"==typeof n)_.style.cssText=n;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(e in t)n&&e in n||N(_.style,e,"");if(n)for(e in n)t&&n[e]==t[e]||N(_.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(u,"$1")),l=e.toLowerCase(),e=l in _||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=n,n?t?n.u=t.u:(n.u=i,_.addEventListener(e,r?f:c,r)):_.removeEventListener(e,r?f:c,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in _)try{_[e]=null==n?"":n;break _}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?_.removeAttribute(e):_.setAttribute(e,"popover"==e&&1==n?"":n))}}function C(_){return function(n){if(this.l){var t=this.l[n.type+_];if(null==n.t)n.t=i++;else if(n.t<t.u)return;return t(e.event?e.event(n):n)}}}function U(_,n,t,o,r,l,u,i,c,f){var s,a,p,m,k,b,w,H,P,S,N,E,C,U,F,M,W,I=n.type;if(null!=n.constructor)return null;128&t.__u&&(c=!!(32&t.__u),l=[i=n.__e=t.__e]),(s=e.__b)&&s(n);_:if("function"==typeof I)try{if(H=n.props,P="prototype"in I&&I.prototype.render,S=(s=I.contextType)&&o[s.__c],N=s?S?S.props.value:s.__:o,t.__c?w=(a=n.__c=t.__c).__=a.__E:(P?n.__c=a=new I(H,N):(n.__c=a=new g(H,N),a.constructor=I,a.render=L),S&&S.sub(a),a.props=H,a.state||(a.state={}),a.context=N,a.__n=o,p=a.__d=!0,a.__h=[],a._sb=[]),P&&null==a.__s&&(a.__s=a.state),P&&null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=d({},a.__s)),d(a.__s,I.getDerivedStateFromProps(H,a.__s))),m=a.props,k=a.state,a.__v=n,p)P&&null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),P&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(P&&null==I.getDerivedStateFromProps&&H!==m&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(H,N),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(H,a.__s,N)||n.__v==t.__v){for(n.__v!=t.__v&&(a.props=H,a.state=a.__s,a.__d=!1),n.__e=t.__e,n.__k=t.__k,n.__k.some(function(_){_&&(_.__=n)}),E=0;E<a._sb.length;E++)a.__h.push(a._sb[E]);a._sb=[],a.__h.length&&u.push(a);break _}null!=a.componentWillUpdate&&a.componentWillUpdate(H,a.__s,N),P&&null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(m,k,b)})}if(a.context=N,a.props=H,a.__P=_,a.__e=!1,C=e.__r,U=0,P){for(a.state=a.__s,a.__d=!1,C&&C(n),s=a.render(a.props,a.state,a.context),F=0;F<a._sb.length;F++)a.__h.push(a._sb[F]);a._sb=[]}else do{a.__d=!1,C&&C(n),s=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++U<25);a.state=a.__s,null!=a.getChildContext&&(o=d(d({},o),a.getChildContext())),P&&!p&&null!=a.getSnapshotBeforeUpdate&&(b=a.getSnapshotBeforeUpdate(m,k)),M=s,null!=s&&s.type===y&&null==s.key&&(M=A(s.props.children)),i=x(_,h(M)?M:[M],n,t,o,r,l,u,i,c,f),a.base=n.__e,n.__u&=-161,a.__h.length&&u.push(a),w&&(a.__E=a.__=null)}catch(_){if(n.__v=null,c||null!=l)if(_.then){for(n.__u|=c?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;l[l.indexOf(i)]=null,n.__e=i}else{for(W=l.length;W--;)v(l[W]);T(n)}else n.__e=t.__e,n.__k=t.__k,_.then||T(n);e.__e(_,n,t)}else null==l&&n.__v==t.__v?(n.__k=t.__k,n.__e=t.__e):i=n.__e=D(t.__e,n,t,o,r,l,u,c,f);return(s=e.diffed)&&s(n),128&n.__u?void 0:i}function T(_){_&&_.__c&&(_.__c.__e=!0),_&&_.__k&&_.__k.forEach(T)}function F(_,n,t){for(var o=0;o<t.length;o++)M(t[o],t[++o],t[++o]);e.__c&&e.__c(n,_),_.some(function(n){try{_=n.__h,n.__h=[],_.some(function(_){_.call(n)})}catch(_){e.__e(_,n.__v)}})}function A(_){return"object"!=typeof _||null==_||_.__b&&_.__b>0?_:h(_)?_.map(A):d({},_)}function D(n,t,o,r,l,u,i,c,f){var a,p,d,m,y,g,b,w=o.props,H=t.props,P=t.type;if("svg"==P?l="http://www.w3.org/2000/svg":"math"==P?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u)for(a=0;a<u.length;a++)if((y=u[a])&&"setAttribute"in y==!!P&&(P?y.localName==P:3==y.nodeType)){n=y,u[a]=null;break}if(null==n){if(null==P)return document.createTextNode(H);n=document.createElementNS(l,P,H.is&&H),c&&(e.__m&&e.__m(t,u),c=!1),u=null}if(null==P)w===H||c&&n.data==H||(n.data=H);else{if(u=u&&_.call(n.childNodes),w=o.props||s,!c&&null!=u)for(w={},a=0;a<n.attributes.length;a++)w[(y=n.attributes[a]).name]=y.value;for(a in w)if(y=w[a],"children"==a);else if("dangerouslySetInnerHTML"==a)d=y;else if(!(a in H)){if("value"==a&&"defaultValue"in H||"checked"==a&&"defaultChecked"in H)continue;E(n,a,null,y,l)}for(a in H)y=H[a],"children"==a?m=y:"dangerouslySetInnerHTML"==a?p=y:"value"==a?g=y:"checked"==a?b=y:c&&"function"!=typeof y||w[a]===y||E(n,a,y,w[a],l);if(p)c||d&&(p.__html==d.__html||p.__html==n.innerHTML)||(n.innerHTML=p.__html),t.__k=[];else if(d&&(n.innerHTML=""),x("template"==t.type?n.content:n,h(m)?m:[m],t,o,r,"foreignObject"==P?"http://www.w3.org/1999/xhtml":l,u,i,u?u[0]:o.__k&&k(o,0),c,f),null!=u)for(a=u.length;a--;)v(u[a]);c||(a="value","progress"==P&&null==g?n.removeAttribute("value"):null!=g&&(g!==n[a]||"progress"==P&&!g||"option"==P&&g!=w[a])&&E(n,a,g,w[a],l),a="checked",null!=b&&b!=n[a]&&E(n,a,b,w[a],l))}return n}function M(_,n,t){try{if("function"==typeof _){var o="function"==typeof _.__u;o&&_.__u(),o&&null==n||(_.__u=_(n))}else _.current=n}catch(_){e.__e(_,t)}}function W(_,n,t){var o,r;if(e.unmount&&e.unmount(_),(o=_.ref)&&(o.current&&o.current!=_.__e||M(o,null,n)),null!=(o=_.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){e.__e(_,n)}o.base=o.__P=null}if(o=_.__k)for(r=0;r<o.length;r++)o[r]&&W(o[r],n,t||"function"!=typeof _.type);t||v(_.__e),_.__c=_.__=_.__e=void 0}function L(_,e,n){return this.constructor(_,n)}function I(n,t,o){var r,l,u;t==document&&(t=document.documentElement),e.__&&e.__(n,t),r=!1?null:t.__k,l=[],u=[],U(t,n=t.__k=function(e,n,t){var o,r,l,u={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:u[l]=n[l];if(arguments.length>2&&(u.children=arguments.length>3?_.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===u[l]&&(u[l]=e.defaultProps[l]);return m(e,u,o,r,null)}(y,null,[n]),r||s,s,t.namespaceURI,r?null:t.firstChild?_.call(t.childNodes):null,l,r?r.__e:t.firstChild,false,u),F(l,n,u)}_=a.slice,e={__e:function(_,e,n,t){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),l=o.__d),l)return o.__E=o}catch(e){_=e}throw _}},n=0,g.prototype.setState=function(_,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d({},this.state),"function"==typeof _&&(_=_(d({},n),this.props)),_&&d(n,_),null!=_&&this.__v&&(e&&this._sb.push(e),w(this))},g.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),w(this))},g.prototype.render=y,t=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(_,e){return _.__v.__b-e.__v.__b},H.__r=0,u=/(PointerCapture)$|Capture$/i,i=0,c=C(!1),f=C(!0);var R,$,q,B,O=0,j=[],z=e,V=z.__b,G=z.__r,J=z.diffed,K=z.__c,Q=z.unmount,X=z.__;function Y(_,e){z.__h&&z.__h($,_,O||e),O=0;var n=$.__H||($.__H={__:[],__h:[]});return _>=n.__.length&&n.__.push({}),n.__[_]}function Z(_){return O=1,function(_,e){var n=Y(R++,2);if(n.t=_,!n.__c&&(n.__=[l_(void 0,e),function(_){var e=n.__N?n.__N[0]:n.__[0],t=n.t(e,_);e!==t&&(n.__N=[t,n.__[1]],n.__c.setState({}))}],n.__c=$,!$.__f)){var t=function(_,e,t){if(!n.__c.__H)return!0;var r=n.__c.__H.__.filter(function(_){return!!_.__c});if(r.every(function(_){return!_.__N}))return!o||o.call(this,_,e,t);var l=n.__c.props!==_;return r.forEach(function(_){if(_.__N){var e=_.__[0];_.__=_.__N,_.__N=void 0,e!==_.__[0]&&(l=!0)}}),o&&o.call(this,_,e,t)||l};$.__f=!0;var o=$.shouldComponentUpdate,r=$.componentWillUpdate;$.componentWillUpdate=function(_,e,n){if(this.__e){var l=o;o=void 0,t(_,e,n),o=l}r&&r.call(this,_,e,n)},$.shouldComponentUpdate=t}return n.__N||n.__}(l_,_)}function __(_,e){var n=Y(R++,4);!z.__s&&function(_,e){return!_||_.length!==e.length||e.some(function(e,n){return e!==_[n]})}(n.__H,e)&&(n.__=_,n.u=e,$.__h.push(n))}function e_(){for(var _;_=j.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(o_),_.__H.__h.forEach(r_),_.__H.__h=[]}catch(e){_.__H.__h=[],z.__e(e,_.__v)}}z.__b=function(_){$=null,V&&V(_)},z.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),X&&X(_,e)},z.__r=function(_){G&&G(_),R=0;var e=($=_.__c).__H;e&&(q===$?(e.__h=[],$.__h=[],e.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(e.__h.forEach(o_),e.__h.forEach(r_),e.__h=[],R=0)),q=$},z.diffed=function(_){J&&J(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(1!==j.push(e)&&B===z.requestAnimationFrame||((B=z.requestAnimationFrame)||t_)(e_)),e.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),q=$=null},z.__c=function(_,e){e.some(function(_){try{_.__h.forEach(o_),_.__h=_.__h.filter(function(_){return!_.__||r_(_)})}catch(n){e.some(function(_){_.__h&&(_.__h=[])}),e=[],z.__e(n,_.__v)}}),K&&K(_,e)},z.unmount=function(_){Q&&Q(_);var e,n=_.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{o_(_)}catch(_){e=_}}),n.__H=void 0,e&&z.__e(e,n.__v))};var n_="function"==typeof requestAnimationFrame;function t_(_){var e,n=function(){clearTimeout(t),n_&&cancelAnimationFrame(e),setTimeout(_)},t=setTimeout(n,35);n_&&(e=requestAnimationFrame(n))}function o_(_){var e=$,n=_.__c;"function"==typeof n&&(_.__c=void 0,n()),$=e}function r_(_){var e=$;_.__c=_.__(),$=e}function l_(_,e){return"function"==typeof e?e(_):e}var u_=0;function i_(_,n,t,o,r,l){n||(n={});var u,i,c=n;if("ref"in c)for(i in c={},n)"ref"==i?u=n[i]:c[i]=n[i];var f={type:_,props:c,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--u_,__i:-1,__u:0,__source:r,__self:l};if("function"==typeof _&&(u=_.defaultProps))for(i in u)void 0===c[i]&&(c[i]=u[i]);return e.vnode&&e.vnode(f),f}export{I as G,__ as _,Z as d,y as k,i_ as u};
|
|
1
|
+
var _,n,e,t,l,o,r,u,i,c,f={},s=[],a=Array.isArray,p=s.slice,h=Object.assign;function v(_){_&&_.parentNode&&_.remove()}function d(e,t,l,o,r){var u={type:e,props:t,key:l,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++n:r,__i:-1,__u:0};return null==r&&null!=_.vnode&&_.vnode(u),u}function g(_){return _.children}function m(_,n){this.props=_,this.context=n,this.__g=0}function y(_,n){if(null==n)return _.__?y(_.__,_.__i+1):null;for(var e;n<_.__k.length;n++)if(null!=(e=_.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof _.type?y(_):null}function k(_){var n,e;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=null,n=0;n<_.__k.length;n++)if(null!=(e=_.__k[n])&&null!=e.__e){_.__e=e.__e;break}return k(_)}}function b(n){(8&n.__g||!(n.__g|=8)||!e.push(n)||l++)&&t==_.debounceRendering||((t=_.debounceRendering)||queueMicrotask)(w)}function w(){for(var n,t,r,u,i,c,f,s,a=1;e.length;)e.length>a&&e.sort(o),n=e.shift(),a=e.length,8&n.__g&&(r=void 0,i=(u=(t=n).__v).__e,c=[],f=[],(s=t.__P)&&((r=h({},u)).__v=u.__v+1,_.vnode&&_.vnode(r),U(s,r,u,t.__n,s.namespaceURI,32&u.__u?[i]:null,c,null==i?y(u):i,!!(32&u.__u),f,s.ownerDocument),r.__v=u.__v,r.__.__k[r.__i]=r,D(c,r,f),r.__e!=i&&k(r)));l=0}function H(_,n,e,t,l,o,r,u,i,c,p,h){var v,m,k,b,w,H,N,C=t&&t.__k||s,T=n.length;for(i=function(_,n,e,t,l){var o,r,u,i,c,f=e.length,s=f,p=0;for(_.__k=new Array(l),o=0;o<l;o++)null!=(r=n[o])&&"boolean"!=typeof r&&"function"!=typeof r?(i=o+p,(r=_.__k[o]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?d(null,r,null,null,null):a(r)?d(g,{children:r},null,null,null):null==r.constructor&&r.__b>0?d(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=_,r.__b=_.__b+1,u=null,-1!=(c=r.__i=S(r,e,i,s))&&(s--,(u=e[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(l>f?p--:l<f&&p++),"function"!=typeof r.type&&(r.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,r.__u|=4))):_.__k[o]=null;if(s)for(o=0;o<f;o++)null!=(u=e[o])&&!(2&u.__u)&&(u.__e==t&&(t=y(u)),F(u,u));return t}(e,n,C,i,T),v=0;v<T;v++)null!=(k=e.__k[v])&&(m=-1==k.__i?f:C[k.__i]||f,k.__i=v,H=U(_,k,m,l,o,r,u,i,c,p,h),b=k.__e,k.ref&&m.ref!=k.ref&&(m.ref&&P(m.ref,null,k),p.push(k.ref,k.__c||b,k)),null==w&&null!=b&&(w=b),(N=!!(4&k.__u))||m.__k===k.__k?i=x(k,i,_,N):"function"==typeof k.type&&void 0!==H?i=H:b&&(i=b.nextSibling),k.__u&=-7);return e.__e=w,i}function x(_,n,e,t){var l,o;if("function"==typeof _.type){for(l=_.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=_,n=x(l[o],n,e,t));return n}_.__e!=n&&(t&&(n&&_.type&&!n.parentNode&&(n=y(_)),e.insertBefore(_.__e,n||null)),n=_.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function S(_,n,e,t){var l,o,r,u=_.key,i=_.type,c=n[e],f=null!=c&&!(2&c.__u);if(null===c&&null==_.key||f&&u==c.key&&i==c.type)return e;if(t>(f?1:0))for(l=e-1,o=e+1;l>=0||o<n.length;)if(null!=(c=n[r=l>=0?l--:o++])&&!(2&c.__u)&&u==c.key&&i==c.type)return r;return-1}function N(_,n,e){"-"==n[0]?_.setProperty(n,null==e?"":e):_[n]=null==e?"":e}function C(_,n,e,t,l){var o;_:if("style"==n)if("string"==typeof e)_.style.cssText=e;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(n in t)e&&n in e||N(_.style,n,"");if(e)for(n in e)t&&e[n]==t[n]||N(_.style,n,e[n])}else if("o"==n[0]&&"n"==n[1])o=n!=(n=n.replace(r,"$1")),(n=n.slice(2))[0].toLowerCase()!=n[0]&&(n=n.toLowerCase()),_.__l||(_.__l={}),_.__l[n+o]=e,e?t?e.l=t.l:(e.l=u,_.addEventListener(n,o?c:i,o)):_.removeEventListener(n,o?c:i,o);else{if("http://www.w3.org/2000/svg"==l)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in _)try{_[n]=null==e?"":e;break _}catch(_){}"function"==typeof e||(null==e||!1===e&&"-"!=n[4]?_.removeAttribute(n):_.setAttribute(n,"popover"==n&&1==e?"":e))}}function T(n){return function(e){if(this.__l){var t=this.__l[e.type+n];if(null==e.u)e.u=u++;else if(e.u<t.l)return;return t(_.event?_.event(e):e)}}}function U(n,e,t,l,o,r,u,i,c,f,s){var p,d,y,k,b,w,x,S,N,C,T,U,D,P,F,W,z,R,$,q,I,j=e.type;if(null!=e.constructor)return null;128&t.__u&&(c=!!(32&t.__u),t.__c.__z&&(i=e.__e=t.__e=(r=t.__c.__z)[0],t.__c.__z=null)),(p=_.__b)&&p(e);_:if("function"==typeof j)try{if(S=e.props,N="prototype"in j&&j.prototype.render,C=(p=j.contextType)&&l[p.__c],T=p?C?C.props.value:p.__:l,t.__c?2&(d=e.__c=t.__c).__g&&(d.__g|=1,x=!0):(N?e.__c=d=new j(S,T):(e.__c=d=new m(S,T),d.constructor=j,d.render=L),C&&C.sub(d),d.props=S,d.state||(d.state={}),d.context=T,d.__n=l,y=!0,d.__g|=8,d.__h=[],d._sb=[]),N&&null==d.__s&&(d.__s=d.state),N&&null!=j.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=h({},d.__s)),h(d.__s,j.getDerivedStateFromProps(S,d.__s))),k=d.props,b=d.state,d.__v=e,y)N&&null==j.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),N&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(N&&null==j.getDerivedStateFromProps&&S!==k&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(S,T),!(4&d.__g)&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(S,d.__s,T)||e.__v==t.__v){for(e.__v!=t.__v&&(d.props=S,d.state=d.__s,d.__g&=-9),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(_){_&&(_.__=e)}),U=0;U<d._sb.length;U++)d.__h.push(d._sb[U]);d._sb=[],d.__h.length&&u.push(d);break _}null!=d.componentWillUpdate&&d.componentWillUpdate(S,d.__s,T),N&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(k,b,w)})}if(d.context=T,d.props=S,d.__P=n,d.__g&=-5,D=_.__r,P=0,N){for(d.state=d.__s,d.__g&=-9,D&&D(e),p=d.render(d.props,d.state,d.context),F=0;F<d._sb.length;F++)d.__h.push(d._sb[F]);d._sb=[]}else do{d.__g&=-9,D&&D(e),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(8&d.__g&&++P<25);d.state=d.__s,null!=d.getChildContext&&(l=h({},l,d.getChildContext())),N&&!y&&null!=d.getSnapshotBeforeUpdate&&(w=d.getSnapshotBeforeUpdate(k,b)),W=p,null!=p&&p.type===g&&null==p.key&&(W=M(p.props.children)),i=H(n,a(W)?W:[W],e,t,l,o,r,u,i,c,f,s),e.__u&=-161,d.__h.length&&u.push(d),x&&(d.__g&=-4)}catch(n){if(e.__v=null,c||null!=r)if(n.then){for(z=0,R=!1,e.__u|=c?160:128,e.__c.__z=[],$=0;$<r.length;$++)null==(q=r[$])||R||(8==q.nodeType&&"$s"==q.data?(z>0&&e.__c.__z.push(q),z++,r[$]=null):8==q.nodeType&&"/$s"==q.data?(--z>0&&e.__c.__z.push(q),R=0===z,i=r[$],r[$]=null):z>0&&(e.__c.__z.push(q),r[$]=null));if(!R){for(;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;r[r.indexOf(i)]=null,e.__c.__z=[i]}e.__e=i}else{for(I=r.length;I--;)v(r[I]);E(e)}else e.__e=t.__e,e.__k=t.__k,n.then||E(e);_.__e(n,e,t)}else i=e.__e=A(t.__e,e,t,l,o,r,u,c,f,s);return(p=_.diffed)&&p(e),128&e.__u?void 0:i}function E(_){_&&_.__c&&(_.__c.__g|=4),_&&_.__k&&_.__k.forEach(E)}function D(n,e,t){for(var l=0;l<t.length;l++)P(t[l],t[++l],t[++l]);_.__c&&_.__c(e,n),n.some(function(e){try{n=e.__h,e.__h=[],n.some(function(_){_.call(e)})}catch(n){_.__e(n,e.__v)}})}function M(_){return"object"!=typeof _||null==_||_.__b&&_.__b>0?_:a(_)?_.map(M):h({},_)}function A(n,e,t,l,o,r,u,i,c,s){var h,d,g,m,k,b,w,x,S=t.props,N=e.props,T=e.type;if("svg"==T?o="http://www.w3.org/2000/svg":"math"==T?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(h=0;h<r.length;h++)if((k=r[h])&&"setAttribute"in k==!!T&&(T?k.localName==T:3==k.nodeType)){n=k,r[h]=null;break}if(null==n){if(null==T)return s.createTextNode(N);n=s.createElementNS(o,T,N.is&&N),i&&(_.__m&&_.__m(e,r),i=!1),r=null}if(null==T)S===N||i&&n.data==N||(n.data=N);else{if(r=r&&p.call(n.childNodes),S=t.props||f,!i&&null!=r)for(S={},h=0;h<n.attributes.length;h++)S[(k=n.attributes[h]).name]=k.value;for(h in S)if(k=S[h],"children"==h);else if("dangerouslySetInnerHTML"==h)g=k;else if(!(h in N)){if("value"==h&&"defaultValue"in N||"checked"==h&&"defaultChecked"in N)continue;C(n,h,null,k,o)}for(h in x=1&t.__u,N)k=N[h],"children"==h?m=k:"dangerouslySetInnerHTML"==h?d=k:"value"==h?b=k:"checked"==h?w=k:i&&"function"!=typeof k||S[h]===k&&!x||C(n,h,k,S[h],o);if(d)i||g&&(d.__html==g.__html||d.__html==n.innerHTML)||(n.innerHTML=d.__html),e.__k=[];else if(g&&(n.innerHTML=""),H("template"==T?n.content:n,a(m)?m:[m],e,t,l,"foreignObject"==T?"http://www.w3.org/1999/xhtml":o,r,u,r?r[0]:t.__k&&y(t,0),i,c,s),null!=r)for(h=r.length;h--;)v(r[h]);i||(h="value","progress"==T&&null==b?n.removeAttribute("value"):null==b||b===n[h]&&("progress"!==T||b)||C(n,h,b,S[h],o),h="checked",null!=w&&w!=n[h]&&C(n,h,w,S[h],o))}return n}function P(n,e,t){try{if("function"==typeof n){var l="function"==typeof n.__u;l&&n.__u(),l&&null==e||(n.__u=n(e))}else n.current=e}catch(n){_.__e(n,t)}}function F(n,e,t){var l,o;if(_.unmount&&_.unmount(n),(l=n.ref)&&(l.current&&l.current!=n.__e||P(l,null,e)),null!=(l=n.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(n){_.__e(n,e)}l.__P=null}if(l=n.__k)for(o=0;o<l.length;o++)l[o]&&F(l[o],e,t||"function"!=typeof n.type);t||v(n.__e),n.__e&&n.__e.__l&&(n.__e.__l=null),n.__e=n.__c=n.__=null}function L(_,n,e){return this.constructor(_,e)}function W(n,e){var t,l,o,r;e==document&&(e=document.documentElement),_.__&&_.__(n,e),l=(t=!!(n&&32&n.__u))?null:e.__k,n=e.__k=function(_,n,e){var t,l,o,r={};for(o in n)"key"==o?t=n[o]:"ref"==o&&"function"!=typeof _?l=n[o]:r[o]=n[o];return arguments.length>2&&(r.children=arguments.length>3?p.call(arguments,2):e),d(_,r,t,l,null)}(g,null,[n]),o=[],r=[],U(e,n,l||f,f,e.namespaceURI,l?null:e.firstChild?p.call(e.childNodes):null,o,l?l.__e:e.firstChild,t,r,e.ownerDocument),D(o,n,r)}_={__e:function(_,n,e,t){for(var o,r,u;n=n.__;)if((o=n.__c)&&!(1&o.__g)){o.__g|=4;try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),u=8&o.__g),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),u=8&o.__g),u)return void(o.__g|=2)}catch(n){_=n}}throw l=0,_}},n=0,m.prototype.setState=function(_,n){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=h({},this.state),"function"==typeof _&&(_=_(h({},e),this.props)),_&&h(e,_),null!=_&&this.__v&&(n&&this._sb.push(n),b(this))},m.prototype.forceUpdate=function(_){this.__v&&(this.__g|=4,_&&this.__h.push(_),b(this))},m.prototype.render=g,e=[],l=0,o=function(_,n){return _.__v.__b-n.__v.__b},r=/(PointerCapture)$|Capture$/i,u=0,i=T(!1),c=T(!0);var z,R,$,q,I=Object.is,j=0,O=[],B=_,V=B.__b,G=B.__r,J=B.diffed,K=B.__c,Q=B.unmount,X=B.__;function Y(_,n){B.__h&&B.__h(R,_,j||n),j=0;var e=R.__H||(R.__H={__:[],__h:[]});return _>=e.__.length&&e.__.push({}),e.__[_]}function Z(_){return j=1,function(_,n){var e=Y(z++,2);if(e.t=_,!e.__c&&(e.__=[r_(void 0,n),function(_){var n=e.__N?e.__N[0]:e.__[0],t=e.t(n,_);I(n,t)||(e.__N=[t,e.__[1]],e.__c.setState({}))}],e.__c=R,!R.__f)){var t=function(_,n,t){if(!e.__c.__H)return!0;var o=e.__c.__H.__.filter(function(_){return!!_.__c});if(o.every(function(_){return!_.__N}))return!l||l.call(this,_,n,t);var r=e.__c.props!==_;return o.forEach(function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,I(n,_.__[0])||(r=!0)}}),l&&l.call(this,_,n,t)||r};R.__f=!0;var l=R.shouldComponentUpdate,o=R.componentWillUpdate;R.componentWillUpdate=function(_,n,e){if(4&this.__g){var r=l;l=void 0,t(_,n,e),l=r}o&&o.call(this,_,n,e)},R.shouldComponentUpdate=t}return e.__N||e.__}(r_,_)}function __(_,n){var e=Y(z++,4);!B.__s&&function(_,n){return!_||_.length!==n.length||n.some(function(n,e){return!I(n,_[e])})}(e.__H,n)&&(e.__=_,e.u=n,R.__h.push(e))}function n_(){for(var _;_=O.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(l_),_.__H.__h.forEach(o_),_.__H.__h=[]}catch(n){_.__H.__h=[],B.__e(n,_.__v)}}B.__b=function(_){R=null,V&&V(_)},B.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),X&&X(_,n)},B.__r=function(_){G&&G(_),z=0;var n=(R=_.__c).__H;n&&($===R?(n.__h=[],R.__h=[],n.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(n.__h.forEach(l_),n.__h.forEach(o_),n.__h=[],z=0)),$=R},B.diffed=function(_){J&&J(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==O.push(n)&&q===B.requestAnimationFrame||((q=B.requestAnimationFrame)||t_)(n_)),n.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),$=R=null},B.__c=function(_,n){n.some(function(_){try{_.__h.forEach(l_),_.__h=_.__h.filter(function(_){return!_.__||o_(_)})}catch(e){n.some(function(_){_.__h&&(_.__h=[])}),n=[],B.__e(e,_.__v)}}),K&&K(_,n)},B.unmount=function(_){Q&&Q(_);var n,e=_.__c;e&&e.__H&&(e.__H.__.forEach(function(_){try{l_(_)}catch(_){n=_}}),e.__H=void 0,n&&B.__e(n,e.__v))};var e_="function"==typeof requestAnimationFrame;function t_(_){var n,e=function(){clearTimeout(t),e_&&cancelAnimationFrame(n),setTimeout(_)},t=setTimeout(e,35);e_&&(n=requestAnimationFrame(e))}function l_(_){var n=R,e=_.__c;"function"==typeof e&&(_.__c=void 0,e()),R=n}function o_(_){var n=R;_.__c=_.__(),R=n}function r_(_,n){return"function"==typeof n?n(_):n}var u_=0;function i_(n,e,t,l,o,r){e||(e={});var u,i,c=e;if("ref"in c&&"function"!=typeof n)for(i in c={},e)"ref"==i?u=e[i]:c[i]=e[i];var f={type:n,props:c,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--u_,__i:-1,__u:0,__source:o,__self:r};return _.vnode&&_.vnode(f),f}export{__ as A,W as F,Z as h,g as k,i_ as u};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script type="importmap" jsenv-injected-by="jsenv:versioning" content-indented="">
|
|
8
8
|
{
|
|
9
9
|
"imports": {
|
|
10
|
-
"/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=
|
|
10
|
+
"/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=af801a91"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
</script>
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
|
28
28
|
<div id="root"></div>
|
|
29
|
-
<script type="module" src="/js/main.js?v=
|
|
29
|
+
<script type="module" src="/js/main.js?v=fe5fb03f" original-src-position="27:27;27:43"></script>
|
|
30
30
|
</body>
|
|
31
31
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as e,u as t,k as n,A as o,F as a}from"/jsenv_template_web_preact_node_modules.js";("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const p=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),r=new CSSStyleSheet({baseUrl:"/app/app.css"});r.replaceSync(p.text);const i=()=>{const[o,a]=e(0);return t(n,{children:[t("button",{id:"counter_button",type:"button",onClick:()=>a(e=>e+1),children:"Click me"}),t("br",{}),"number of click: ",t("span",{id:"counter_output",children:o})]})},c=import.meta.resolve(__v__("/other/preact_logo.svg"));a(t(()=>(o(()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(e=>e!==r)}),[]),t("div",{className:"app",children:t("header",{className:"app_header",children:[t("img",{src:c,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(i,{})}),t("p",{children:["Edit"," ",t("a",{className:"app_link",href:"javascript:window.fetch('/internal/open_file/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),t("p",{children:t("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})})),{}),document.querySelector("#root"));
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<script type="importmap">
|
|
8
8
|
{
|
|
9
9
|
"imports": {
|
|
10
|
-
"/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=
|
|
10
|
+
"/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=af801a91"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
</script>
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
</head>
|
|
27
27
|
<body>
|
|
28
28
|
<div id="root"></div>
|
|
29
|
-
<script type="module" src="/js/main.js?v=
|
|
29
|
+
<script type="module" src="/js/main.js?v=fe5fb03f"></script>
|
|
30
30
|
</body>
|
|
31
31
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as e,u as t,k as n,A as o,F as a}from"/jsenv_template_web_preact_node_modules.js";("object"==typeof self?self:process).__InlineContent__=function(e,{type:t="text/plain"}){this.text=e,this.type=t};const p=new __InlineContent__(".app{text-align:center}.app_logo{pointer-events:none;height:40vmin}@media (prefers-reduced-motion:no-preference){.app_logo{animation:20s linear infinite app_logo_spin}}.app_header{color:#fff;background-color:#282c34;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;font-size:calc(10px + 2vmin);display:flex}.app_link{color:#61dafb}@keyframes app_logo_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}button{font-size:calc(10px + 2vmin)}",{type:"text/css"}),r=new CSSStyleSheet({baseUrl:"/app/app.css"});r.replaceSync(p.text);const i=()=>{const[o,a]=e(0);return t(n,{children:[t("button",{id:"counter_button",type:"button",onClick:()=>a(e=>e+1),children:"Click me"}),t("br",{}),"number of click: ",t("span",{id:"counter_output",children:o})]})},c=import.meta.resolve(__v__("/other/preact_logo.svg"));a(t(()=>(o(()=>(document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(e=>e!==r)}),[]),t("div",{className:"app",children:t("header",{className:"app_header",children:[t("img",{src:c,className:"app_logo",alt:"logo"}),t("p",{children:"Hello jsenv + preact!"}),t("p",{children:t(i,{})}),t("p",{children:["Edit"," ",t("a",{className:"app_link",href:"javascript:window.fetch('/internal/open_file/app/app.jsx')",children:"app.jsx"})," ","and save to test HMR updates."]}),t("p",{children:t("a",{className:"app_link",href:"https://github.com/jsenv/core",target:"_blank",rel:"noopener noreferrer",children:"Jsenv documentation"})})]})})),{}),document.querySelector("#root"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _,e,n,t,o,r,l,u,i,c,f,s={},a=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,h=Array.isArray;function d(_,e){for(var n in e)_[n]=e[n];return _}function v(_){_&&_.parentNode&&_.parentNode.removeChild(_)}function m(_,t,o,r,l){var u={type:_,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==l?++n:l,__i:-1,__u:0};return null==l&&null!=e.vnode&&e.vnode(u),u}function y(_){return _.children}function g(_,e){this.props=_,this.context=e}function k(_,e){if(null==e)return _.__?k(_.__,_.__i+1):null;for(var n;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof _.type?k(_):null}function b(_){var e,n;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=_.__c.base=null,e=0;e<_.__k.length;e++)if(null!=(n=_.__k[e])&&null!=n.__e){_.__e=_.__c.base=n.__e;break}return b(_)}}function w(_){(!_.__d&&(_.__d=!0)&&t.push(_)&&!H.__r++||o!=e.debounceRendering)&&((o=e.debounceRendering)||r)(H)}function H(){for(var _,n,o,r,u,i,c,f=1;t.length;)t.length>f&&t.sort(l),_=t.shift(),f=t.length,_.__d&&(o=void 0,r=void 0,u=(r=(n=_).__v).__e,i=[],c=[],n.__P&&((o=d({},r)).__v=r.__v+1,e.vnode&&e.vnode(o),U(n.__P,o,r,n.__n,n.__P.namespaceURI,32&r.__u?[u]:null,i,null==u?k(r):u,!!(32&r.__u),c),o.__v=r.__v,o.__.__k[o.__i]=o,F(i,o,c),r.__e=r.__=null,o.__e!=u&&b(o)));H.__r=0}function x(_,e,n,t,o,r,l,u,i,c,f){var p,d,v,g,b,w,H,x=t&&t.__k||a,N=e.length;for(i=function(_,e,n,t,o){var r,l,u,i,c,f=n.length,s=f,a=0;for(_.__k=new Array(o),r=0;r<o;r++)null!=(l=e[r])&&"boolean"!=typeof l&&"function"!=typeof l?(i=r+a,(l=_.__k[r]="string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?m(null,l,null,null,null):h(l)?m(y,{children:l},null,null,null):null==l.constructor&&l.__b>0?m(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=_,l.__b=_.__b+1,u=null,-1!=(c=l.__i=S(l,n,i,s))&&(s--,(u=n[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(o>f?a--:o<f&&a++),"function"!=typeof l.type&&(l.__u|=4)):c!=i&&(c==i-1?a--:c==i+1?a++:(c>i?a--:a++,l.__u|=4))):_.__k[r]=null;if(s)for(r=0;r<f;r++)null!=(u=n[r])&&!(2&u.__u)&&(u.__e==t&&(t=k(u)),W(u,u));return t}(n,e,x,i,N),p=0;p<N;p++)null!=(v=n.__k[p])&&(d=-1==v.__i?s:x[v.__i]||s,v.__i=p,w=U(_,v,d,o,r,l,u,i,c,f),g=v.__e,v.ref&&d.ref!=v.ref&&(d.ref&&M(d.ref,null,v),f.push(v.ref,v.__c||g,v)),null==b&&null!=g&&(b=g),(H=!!(4&v.__u))||d.__k===v.__k?i=P(v,i,_,H):"function"==typeof v.type&&void 0!==w?i=w:g&&(i=g.nextSibling),v.__u&=-7);return n.__e=b,i}function P(_,e,n,t){var o,r;if("function"==typeof _.type){for(o=_.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=_,e=P(o[r],e,n,t));return e}_.__e!=e&&(t&&(e&&_.type&&!e.parentNode&&(e=k(_)),n.insertBefore(_.__e,e||null)),e=_.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function S(_,e,n,t){var o,r,l,u=_.key,i=_.type,c=e[n],f=null!=c&&!(2&c.__u);if(null===c&&null==_.key||f&&u==c.key&&i==c.type)return n;if(t>(f?1:0))for(o=n-1,r=n+1;o>=0||r<e.length;)if(null!=(c=e[l=o>=0?o--:r++])&&!(2&c.__u)&&u==c.key&&i==c.type)return l;return-1}function N(_,e,n){"-"==e[0]?_.setProperty(e,null==n?"":n):_[e]=null==n?"":"number"!=typeof n||p.test(e)?n:n+"px"}function E(_,e,n,t,o){var r,l;_:if("style"==e)if("string"==typeof n)_.style.cssText=n;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(e in t)n&&e in n||N(_.style,e,"");if(n)for(e in n)t&&n[e]==t[e]||N(_.style,e,n[e])}else if("o"==e[0]&&"n"==e[1])r=e!=(e=e.replace(u,"$1")),l=e.toLowerCase(),e=l in _||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),_.l||(_.l={}),_.l[e+r]=n,n?t?n.u=t.u:(n.u=i,_.addEventListener(e,r?f:c,r)):_.removeEventListener(e,r?f:c,r);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in _)try{_[e]=null==n?"":n;break _}catch(_){}"function"==typeof n||(null==n||!1===n&&"-"!=e[4]?_.removeAttribute(e):_.setAttribute(e,"popover"==e&&1==n?"":n))}}function C(_){return function(n){if(this.l){var t=this.l[n.type+_];if(null==n.t)n.t=i++;else if(n.t<t.u)return;return t(e.event?e.event(n):n)}}}function U(_,n,t,o,r,l,u,i,c,f){var s,a,p,m,k,b,w,H,P,S,N,E,C,U,F,M,W,I=n.type;if(null!=n.constructor)return null;128&t.__u&&(c=!!(32&t.__u),l=[i=n.__e=t.__e]),(s=e.__b)&&s(n);_:if("function"==typeof I)try{if(H=n.props,P="prototype"in I&&I.prototype.render,S=(s=I.contextType)&&o[s.__c],N=s?S?S.props.value:s.__:o,t.__c?w=(a=n.__c=t.__c).__=a.__E:(P?n.__c=a=new I(H,N):(n.__c=a=new g(H,N),a.constructor=I,a.render=L),S&&S.sub(a),a.props=H,a.state||(a.state={}),a.context=N,a.__n=o,p=a.__d=!0,a.__h=[],a._sb=[]),P&&null==a.__s&&(a.__s=a.state),P&&null!=I.getDerivedStateFromProps&&(a.__s==a.state&&(a.__s=d({},a.__s)),d(a.__s,I.getDerivedStateFromProps(H,a.__s))),m=a.props,k=a.state,a.__v=n,p)P&&null==I.getDerivedStateFromProps&&null!=a.componentWillMount&&a.componentWillMount(),P&&null!=a.componentDidMount&&a.__h.push(a.componentDidMount);else{if(P&&null==I.getDerivedStateFromProps&&H!==m&&null!=a.componentWillReceiveProps&&a.componentWillReceiveProps(H,N),!a.__e&&null!=a.shouldComponentUpdate&&!1===a.shouldComponentUpdate(H,a.__s,N)||n.__v==t.__v){for(n.__v!=t.__v&&(a.props=H,a.state=a.__s,a.__d=!1),n.__e=t.__e,n.__k=t.__k,n.__k.some(function(_){_&&(_.__=n)}),E=0;E<a._sb.length;E++)a.__h.push(a._sb[E]);a._sb=[],a.__h.length&&u.push(a);break _}null!=a.componentWillUpdate&&a.componentWillUpdate(H,a.__s,N),P&&null!=a.componentDidUpdate&&a.__h.push(function(){a.componentDidUpdate(m,k,b)})}if(a.context=N,a.props=H,a.__P=_,a.__e=!1,C=e.__r,U=0,P){for(a.state=a.__s,a.__d=!1,C&&C(n),s=a.render(a.props,a.state,a.context),F=0;F<a._sb.length;F++)a.__h.push(a._sb[F]);a._sb=[]}else do{a.__d=!1,C&&C(n),s=a.render(a.props,a.state,a.context),a.state=a.__s}while(a.__d&&++U<25);a.state=a.__s,null!=a.getChildContext&&(o=d(d({},o),a.getChildContext())),P&&!p&&null!=a.getSnapshotBeforeUpdate&&(b=a.getSnapshotBeforeUpdate(m,k)),M=s,null!=s&&s.type===y&&null==s.key&&(M=A(s.props.children)),i=x(_,h(M)?M:[M],n,t,o,r,l,u,i,c,f),a.base=n.__e,n.__u&=-161,a.__h.length&&u.push(a),w&&(a.__E=a.__=null)}catch(_){if(n.__v=null,c||null!=l)if(_.then){for(n.__u|=c?160:128;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;l[l.indexOf(i)]=null,n.__e=i}else{for(W=l.length;W--;)v(l[W]);T(n)}else n.__e=t.__e,n.__k=t.__k,_.then||T(n);e.__e(_,n,t)}else null==l&&n.__v==t.__v?(n.__k=t.__k,n.__e=t.__e):i=n.__e=D(t.__e,n,t,o,r,l,u,c,f);return(s=e.diffed)&&s(n),128&n.__u?void 0:i}function T(_){_&&_.__c&&(_.__c.__e=!0),_&&_.__k&&_.__k.forEach(T)}function F(_,n,t){for(var o=0;o<t.length;o++)M(t[o],t[++o],t[++o]);e.__c&&e.__c(n,_),_.some(function(n){try{_=n.__h,n.__h=[],_.some(function(_){_.call(n)})}catch(_){e.__e(_,n.__v)}})}function A(_){return"object"!=typeof _||null==_||_.__b&&_.__b>0?_:h(_)?_.map(A):d({},_)}function D(n,t,o,r,l,u,i,c,f){var a,p,d,m,y,g,b,w=o.props,H=t.props,P=t.type;if("svg"==P?l="http://www.w3.org/2000/svg":"math"==P?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u)for(a=0;a<u.length;a++)if((y=u[a])&&"setAttribute"in y==!!P&&(P?y.localName==P:3==y.nodeType)){n=y,u[a]=null;break}if(null==n){if(null==P)return document.createTextNode(H);n=document.createElementNS(l,P,H.is&&H),c&&(e.__m&&e.__m(t,u),c=!1),u=null}if(null==P)w===H||c&&n.data==H||(n.data=H);else{if(u=u&&_.call(n.childNodes),w=o.props||s,!c&&null!=u)for(w={},a=0;a<n.attributes.length;a++)w[(y=n.attributes[a]).name]=y.value;for(a in w)if(y=w[a],"children"==a);else if("dangerouslySetInnerHTML"==a)d=y;else if(!(a in H)){if("value"==a&&"defaultValue"in H||"checked"==a&&"defaultChecked"in H)continue;E(n,a,null,y,l)}for(a in H)y=H[a],"children"==a?m=y:"dangerouslySetInnerHTML"==a?p=y:"value"==a?g=y:"checked"==a?b=y:c&&"function"!=typeof y||w[a]===y||E(n,a,y,w[a],l);if(p)c||d&&(p.__html==d.__html||p.__html==n.innerHTML)||(n.innerHTML=p.__html),t.__k=[];else if(d&&(n.innerHTML=""),x("template"==t.type?n.content:n,h(m)?m:[m],t,o,r,"foreignObject"==P?"http://www.w3.org/1999/xhtml":l,u,i,u?u[0]:o.__k&&k(o,0),c,f),null!=u)for(a=u.length;a--;)v(u[a]);c||(a="value","progress"==P&&null==g?n.removeAttribute("value"):null!=g&&(g!==n[a]||"progress"==P&&!g||"option"==P&&g!=w[a])&&E(n,a,g,w[a],l),a="checked",null!=b&&b!=n[a]&&E(n,a,b,w[a],l))}return n}function M(_,n,t){try{if("function"==typeof _){var o="function"==typeof _.__u;o&&_.__u(),o&&null==n||(_.__u=_(n))}else _.current=n}catch(_){e.__e(_,t)}}function W(_,n,t){var o,r;if(e.unmount&&e.unmount(_),(o=_.ref)&&(o.current&&o.current!=_.__e||M(o,null,n)),null!=(o=_.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(_){e.__e(_,n)}o.base=o.__P=null}if(o=_.__k)for(r=0;r<o.length;r++)o[r]&&W(o[r],n,t||"function"!=typeof _.type);t||v(_.__e),_.__c=_.__=_.__e=void 0}function L(_,e,n){return this.constructor(_,n)}function I(n,t,o){var r,l,u;t==document&&(t=document.documentElement),e.__&&e.__(n,t),r=!1?null:t.__k,l=[],u=[],U(t,n=t.__k=function(e,n,t){var o,r,l,u={};for(l in n)"key"==l?o=n[l]:"ref"==l?r=n[l]:u[l]=n[l];if(arguments.length>2&&(u.children=arguments.length>3?_.call(arguments,2):t),"function"==typeof e&&null!=e.defaultProps)for(l in e.defaultProps)void 0===u[l]&&(u[l]=e.defaultProps[l]);return m(e,u,o,r,null)}(y,null,[n]),r||s,s,t.namespaceURI,r?null:t.firstChild?_.call(t.childNodes):null,l,r?r.__e:t.firstChild,false,u),F(l,n,u)}_=a.slice,e={__e:function(_,e,n,t){for(var o,r,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),l=o.__d),l)return o.__E=o}catch(e){_=e}throw _}},n=0,g.prototype.setState=function(_,e){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d({},this.state),"function"==typeof _&&(_=_(d({},n),this.props)),_&&d(n,_),null!=_&&this.__v&&(e&&this._sb.push(e),w(this))},g.prototype.forceUpdate=function(_){this.__v&&(this.__e=!0,_&&this.__h.push(_),w(this))},g.prototype.render=y,t=[],r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(_,e){return _.__v.__b-e.__v.__b},H.__r=0,u=/(PointerCapture)$|Capture$/i,i=0,c=C(!1),f=C(!0);var R,$,q,B,O=0,j=[],z=e,V=z.__b,G=z.__r,J=z.diffed,K=z.__c,Q=z.unmount,X=z.__;function Y(_,e){z.__h&&z.__h($,_,O||e),O=0;var n=$.__H||($.__H={__:[],__h:[]});return _>=n.__.length&&n.__.push({}),n.__[_]}function Z(_){return O=1,function(_,e){var n=Y(R++,2);if(n.t=_,!n.__c&&(n.__=[l_(void 0,e),function(_){var e=n.__N?n.__N[0]:n.__[0],t=n.t(e,_);e!==t&&(n.__N=[t,n.__[1]],n.__c.setState({}))}],n.__c=$,!$.__f)){var t=function(_,e,t){if(!n.__c.__H)return!0;var r=n.__c.__H.__.filter(function(_){return!!_.__c});if(r.every(function(_){return!_.__N}))return!o||o.call(this,_,e,t);var l=n.__c.props!==_;return r.forEach(function(_){if(_.__N){var e=_.__[0];_.__=_.__N,_.__N=void 0,e!==_.__[0]&&(l=!0)}}),o&&o.call(this,_,e,t)||l};$.__f=!0;var o=$.shouldComponentUpdate,r=$.componentWillUpdate;$.componentWillUpdate=function(_,e,n){if(this.__e){var l=o;o=void 0,t(_,e,n),o=l}r&&r.call(this,_,e,n)},$.shouldComponentUpdate=t}return n.__N||n.__}(l_,_)}function __(_,e){var n=Y(R++,4);!z.__s&&function(_,e){return!_||_.length!==e.length||e.some(function(e,n){return e!==_[n]})}(n.__H,e)&&(n.__=_,n.u=e,$.__h.push(n))}function e_(){for(var _;_=j.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(o_),_.__H.__h.forEach(r_),_.__H.__h=[]}catch(e){_.__H.__h=[],z.__e(e,_.__v)}}z.__b=function(_){$=null,V&&V(_)},z.__=function(_,e){_&&e.__k&&e.__k.__m&&(_.__m=e.__k.__m),X&&X(_,e)},z.__r=function(_){G&&G(_),R=0;var e=($=_.__c).__H;e&&(q===$?(e.__h=[],$.__h=[],e.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(e.__h.forEach(o_),e.__h.forEach(r_),e.__h=[],R=0)),q=$},z.diffed=function(_){J&&J(_);var e=_.__c;e&&e.__H&&(e.__H.__h.length&&(1!==j.push(e)&&B===z.requestAnimationFrame||((B=z.requestAnimationFrame)||t_)(e_)),e.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),q=$=null},z.__c=function(_,e){e.some(function(_){try{_.__h.forEach(o_),_.__h=_.__h.filter(function(_){return!_.__||r_(_)})}catch(n){e.some(function(_){_.__h&&(_.__h=[])}),e=[],z.__e(n,_.__v)}}),K&&K(_,e)},z.unmount=function(_){Q&&Q(_);var e,n=_.__c;n&&n.__H&&(n.__H.__.forEach(function(_){try{o_(_)}catch(_){e=_}}),n.__H=void 0,e&&z.__e(e,n.__v))};var n_="function"==typeof requestAnimationFrame;function t_(_){var e,n=function(){clearTimeout(t),n_&&cancelAnimationFrame(e),setTimeout(_)},t=setTimeout(n,35);n_&&(e=requestAnimationFrame(n))}function o_(_){var e=$,n=_.__c;"function"==typeof n&&(_.__c=void 0,n()),$=e}function r_(_){var e=$;_.__c=_.__(),$=e}function l_(_,e){return"function"==typeof e?e(_):e}var u_=0;function i_(_,n,t,o,r,l){n||(n={});var u,i,c=n;if("ref"in c)for(i in c={},n)"ref"==i?u=n[i]:c[i]=n[i];var f={type:_,props:c,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--u_,__i:-1,__u:0,__source:r,__self:l};if("function"==typeof _&&(u=_.defaultProps))for(i in u)void 0===c[i]&&(c[i]=u[i]);return e.vnode&&e.vnode(f),f}export{I as G,__ as _,Z as d,y as k,i_ as u};
|
|
1
|
+
var _,n,e,t,l,o,r,u,i,c,f={},s=[],a=Array.isArray,p=s.slice,h=Object.assign;function v(_){_&&_.parentNode&&_.remove()}function d(e,t,l,o,r){var u={type:e,props:t,key:l,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==r?++n:r,__i:-1,__u:0};return null==r&&null!=_.vnode&&_.vnode(u),u}function g(_){return _.children}function m(_,n){this.props=_,this.context=n,this.__g=0}function y(_,n){if(null==n)return _.__?y(_.__,_.__i+1):null;for(var e;n<_.__k.length;n++)if(null!=(e=_.__k[n])&&null!=e.__e)return e.__e;return"function"==typeof _.type?y(_):null}function k(_){var n,e;if(null!=(_=_.__)&&null!=_.__c){for(_.__e=null,n=0;n<_.__k.length;n++)if(null!=(e=_.__k[n])&&null!=e.__e){_.__e=e.__e;break}return k(_)}}function b(n){(8&n.__g||!(n.__g|=8)||!e.push(n)||l++)&&t==_.debounceRendering||((t=_.debounceRendering)||queueMicrotask)(w)}function w(){for(var n,t,r,u,i,c,f,s,a=1;e.length;)e.length>a&&e.sort(o),n=e.shift(),a=e.length,8&n.__g&&(r=void 0,i=(u=(t=n).__v).__e,c=[],f=[],(s=t.__P)&&((r=h({},u)).__v=u.__v+1,_.vnode&&_.vnode(r),U(s,r,u,t.__n,s.namespaceURI,32&u.__u?[i]:null,c,null==i?y(u):i,!!(32&u.__u),f,s.ownerDocument),r.__v=u.__v,r.__.__k[r.__i]=r,D(c,r,f),r.__e!=i&&k(r)));l=0}function H(_,n,e,t,l,o,r,u,i,c,p,h){var v,m,k,b,w,H,N,C=t&&t.__k||s,T=n.length;for(i=function(_,n,e,t,l){var o,r,u,i,c,f=e.length,s=f,p=0;for(_.__k=new Array(l),o=0;o<l;o++)null!=(r=n[o])&&"boolean"!=typeof r&&"function"!=typeof r?(i=o+p,(r=_.__k[o]="string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?d(null,r,null,null,null):a(r)?d(g,{children:r},null,null,null):null==r.constructor&&r.__b>0?d(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r).__=_,r.__b=_.__b+1,u=null,-1!=(c=r.__i=S(r,e,i,s))&&(s--,(u=e[c])&&(u.__u|=2)),null==u||null==u.__v?(-1==c&&(l>f?p--:l<f&&p++),"function"!=typeof r.type&&(r.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,r.__u|=4))):_.__k[o]=null;if(s)for(o=0;o<f;o++)null!=(u=e[o])&&!(2&u.__u)&&(u.__e==t&&(t=y(u)),F(u,u));return t}(e,n,C,i,T),v=0;v<T;v++)null!=(k=e.__k[v])&&(m=-1==k.__i?f:C[k.__i]||f,k.__i=v,H=U(_,k,m,l,o,r,u,i,c,p,h),b=k.__e,k.ref&&m.ref!=k.ref&&(m.ref&&P(m.ref,null,k),p.push(k.ref,k.__c||b,k)),null==w&&null!=b&&(w=b),(N=!!(4&k.__u))||m.__k===k.__k?i=x(k,i,_,N):"function"==typeof k.type&&void 0!==H?i=H:b&&(i=b.nextSibling),k.__u&=-7);return e.__e=w,i}function x(_,n,e,t){var l,o;if("function"==typeof _.type){for(l=_.__k,o=0;l&&o<l.length;o++)l[o]&&(l[o].__=_,n=x(l[o],n,e,t));return n}_.__e!=n&&(t&&(n&&_.type&&!n.parentNode&&(n=y(_)),e.insertBefore(_.__e,n||null)),n=_.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function S(_,n,e,t){var l,o,r,u=_.key,i=_.type,c=n[e],f=null!=c&&!(2&c.__u);if(null===c&&null==_.key||f&&u==c.key&&i==c.type)return e;if(t>(f?1:0))for(l=e-1,o=e+1;l>=0||o<n.length;)if(null!=(c=n[r=l>=0?l--:o++])&&!(2&c.__u)&&u==c.key&&i==c.type)return r;return-1}function N(_,n,e){"-"==n[0]?_.setProperty(n,null==e?"":e):_[n]=null==e?"":e}function C(_,n,e,t,l){var o;_:if("style"==n)if("string"==typeof e)_.style.cssText=e;else{if("string"==typeof t&&(_.style.cssText=t=""),t)for(n in t)e&&n in e||N(_.style,n,"");if(e)for(n in e)t&&e[n]==t[n]||N(_.style,n,e[n])}else if("o"==n[0]&&"n"==n[1])o=n!=(n=n.replace(r,"$1")),(n=n.slice(2))[0].toLowerCase()!=n[0]&&(n=n.toLowerCase()),_.__l||(_.__l={}),_.__l[n+o]=e,e?t?e.l=t.l:(e.l=u,_.addEventListener(n,o?c:i,o)):_.removeEventListener(n,o?c:i,o);else{if("http://www.w3.org/2000/svg"==l)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in _)try{_[n]=null==e?"":e;break _}catch(_){}"function"==typeof e||(null==e||!1===e&&"-"!=n[4]?_.removeAttribute(n):_.setAttribute(n,"popover"==n&&1==e?"":e))}}function T(n){return function(e){if(this.__l){var t=this.__l[e.type+n];if(null==e.u)e.u=u++;else if(e.u<t.l)return;return t(_.event?_.event(e):e)}}}function U(n,e,t,l,o,r,u,i,c,f,s){var p,d,y,k,b,w,x,S,N,C,T,U,D,P,F,W,z,R,$,q,I,j=e.type;if(null!=e.constructor)return null;128&t.__u&&(c=!!(32&t.__u),t.__c.__z&&(i=e.__e=t.__e=(r=t.__c.__z)[0],t.__c.__z=null)),(p=_.__b)&&p(e);_:if("function"==typeof j)try{if(S=e.props,N="prototype"in j&&j.prototype.render,C=(p=j.contextType)&&l[p.__c],T=p?C?C.props.value:p.__:l,t.__c?2&(d=e.__c=t.__c).__g&&(d.__g|=1,x=!0):(N?e.__c=d=new j(S,T):(e.__c=d=new m(S,T),d.constructor=j,d.render=L),C&&C.sub(d),d.props=S,d.state||(d.state={}),d.context=T,d.__n=l,y=!0,d.__g|=8,d.__h=[],d._sb=[]),N&&null==d.__s&&(d.__s=d.state),N&&null!=j.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=h({},d.__s)),h(d.__s,j.getDerivedStateFromProps(S,d.__s))),k=d.props,b=d.state,d.__v=e,y)N&&null==j.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),N&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(N&&null==j.getDerivedStateFromProps&&S!==k&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(S,T),!(4&d.__g)&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(S,d.__s,T)||e.__v==t.__v){for(e.__v!=t.__v&&(d.props=S,d.state=d.__s,d.__g&=-9),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(_){_&&(_.__=e)}),U=0;U<d._sb.length;U++)d.__h.push(d._sb[U]);d._sb=[],d.__h.length&&u.push(d);break _}null!=d.componentWillUpdate&&d.componentWillUpdate(S,d.__s,T),N&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(k,b,w)})}if(d.context=T,d.props=S,d.__P=n,d.__g&=-5,D=_.__r,P=0,N){for(d.state=d.__s,d.__g&=-9,D&&D(e),p=d.render(d.props,d.state,d.context),F=0;F<d._sb.length;F++)d.__h.push(d._sb[F]);d._sb=[]}else do{d.__g&=-9,D&&D(e),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(8&d.__g&&++P<25);d.state=d.__s,null!=d.getChildContext&&(l=h({},l,d.getChildContext())),N&&!y&&null!=d.getSnapshotBeforeUpdate&&(w=d.getSnapshotBeforeUpdate(k,b)),W=p,null!=p&&p.type===g&&null==p.key&&(W=M(p.props.children)),i=H(n,a(W)?W:[W],e,t,l,o,r,u,i,c,f,s),e.__u&=-161,d.__h.length&&u.push(d),x&&(d.__g&=-4)}catch(n){if(e.__v=null,c||null!=r)if(n.then){for(z=0,R=!1,e.__u|=c?160:128,e.__c.__z=[],$=0;$<r.length;$++)null==(q=r[$])||R||(8==q.nodeType&&"$s"==q.data?(z>0&&e.__c.__z.push(q),z++,r[$]=null):8==q.nodeType&&"/$s"==q.data?(--z>0&&e.__c.__z.push(q),R=0===z,i=r[$],r[$]=null):z>0&&(e.__c.__z.push(q),r[$]=null));if(!R){for(;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;r[r.indexOf(i)]=null,e.__c.__z=[i]}e.__e=i}else{for(I=r.length;I--;)v(r[I]);E(e)}else e.__e=t.__e,e.__k=t.__k,n.then||E(e);_.__e(n,e,t)}else i=e.__e=A(t.__e,e,t,l,o,r,u,c,f,s);return(p=_.diffed)&&p(e),128&e.__u?void 0:i}function E(_){_&&_.__c&&(_.__c.__g|=4),_&&_.__k&&_.__k.forEach(E)}function D(n,e,t){for(var l=0;l<t.length;l++)P(t[l],t[++l],t[++l]);_.__c&&_.__c(e,n),n.some(function(e){try{n=e.__h,e.__h=[],n.some(function(_){_.call(e)})}catch(n){_.__e(n,e.__v)}})}function M(_){return"object"!=typeof _||null==_||_.__b&&_.__b>0?_:a(_)?_.map(M):h({},_)}function A(n,e,t,l,o,r,u,i,c,s){var h,d,g,m,k,b,w,x,S=t.props,N=e.props,T=e.type;if("svg"==T?o="http://www.w3.org/2000/svg":"math"==T?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=r)for(h=0;h<r.length;h++)if((k=r[h])&&"setAttribute"in k==!!T&&(T?k.localName==T:3==k.nodeType)){n=k,r[h]=null;break}if(null==n){if(null==T)return s.createTextNode(N);n=s.createElementNS(o,T,N.is&&N),i&&(_.__m&&_.__m(e,r),i=!1),r=null}if(null==T)S===N||i&&n.data==N||(n.data=N);else{if(r=r&&p.call(n.childNodes),S=t.props||f,!i&&null!=r)for(S={},h=0;h<n.attributes.length;h++)S[(k=n.attributes[h]).name]=k.value;for(h in S)if(k=S[h],"children"==h);else if("dangerouslySetInnerHTML"==h)g=k;else if(!(h in N)){if("value"==h&&"defaultValue"in N||"checked"==h&&"defaultChecked"in N)continue;C(n,h,null,k,o)}for(h in x=1&t.__u,N)k=N[h],"children"==h?m=k:"dangerouslySetInnerHTML"==h?d=k:"value"==h?b=k:"checked"==h?w=k:i&&"function"!=typeof k||S[h]===k&&!x||C(n,h,k,S[h],o);if(d)i||g&&(d.__html==g.__html||d.__html==n.innerHTML)||(n.innerHTML=d.__html),e.__k=[];else if(g&&(n.innerHTML=""),H("template"==T?n.content:n,a(m)?m:[m],e,t,l,"foreignObject"==T?"http://www.w3.org/1999/xhtml":o,r,u,r?r[0]:t.__k&&y(t,0),i,c,s),null!=r)for(h=r.length;h--;)v(r[h]);i||(h="value","progress"==T&&null==b?n.removeAttribute("value"):null==b||b===n[h]&&("progress"!==T||b)||C(n,h,b,S[h],o),h="checked",null!=w&&w!=n[h]&&C(n,h,w,S[h],o))}return n}function P(n,e,t){try{if("function"==typeof n){var l="function"==typeof n.__u;l&&n.__u(),l&&null==e||(n.__u=n(e))}else n.current=e}catch(n){_.__e(n,t)}}function F(n,e,t){var l,o;if(_.unmount&&_.unmount(n),(l=n.ref)&&(l.current&&l.current!=n.__e||P(l,null,e)),null!=(l=n.__c)){if(l.componentWillUnmount)try{l.componentWillUnmount()}catch(n){_.__e(n,e)}l.__P=null}if(l=n.__k)for(o=0;o<l.length;o++)l[o]&&F(l[o],e,t||"function"!=typeof n.type);t||v(n.__e),n.__e&&n.__e.__l&&(n.__e.__l=null),n.__e=n.__c=n.__=null}function L(_,n,e){return this.constructor(_,e)}function W(n,e){var t,l,o,r;e==document&&(e=document.documentElement),_.__&&_.__(n,e),l=(t=!!(n&&32&n.__u))?null:e.__k,n=e.__k=function(_,n,e){var t,l,o,r={};for(o in n)"key"==o?t=n[o]:"ref"==o&&"function"!=typeof _?l=n[o]:r[o]=n[o];return arguments.length>2&&(r.children=arguments.length>3?p.call(arguments,2):e),d(_,r,t,l,null)}(g,null,[n]),o=[],r=[],U(e,n,l||f,f,e.namespaceURI,l?null:e.firstChild?p.call(e.childNodes):null,o,l?l.__e:e.firstChild,t,r,e.ownerDocument),D(o,n,r)}_={__e:function(_,n,e,t){for(var o,r,u;n=n.__;)if((o=n.__c)&&!(1&o.__g)){o.__g|=4;try{if((r=o.constructor)&&null!=r.getDerivedStateFromError&&(o.setState(r.getDerivedStateFromError(_)),u=8&o.__g),null!=o.componentDidCatch&&(o.componentDidCatch(_,t||{}),u=8&o.__g),u)return void(o.__g|=2)}catch(n){_=n}}throw l=0,_}},n=0,m.prototype.setState=function(_,n){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=h({},this.state),"function"==typeof _&&(_=_(h({},e),this.props)),_&&h(e,_),null!=_&&this.__v&&(n&&this._sb.push(n),b(this))},m.prototype.forceUpdate=function(_){this.__v&&(this.__g|=4,_&&this.__h.push(_),b(this))},m.prototype.render=g,e=[],l=0,o=function(_,n){return _.__v.__b-n.__v.__b},r=/(PointerCapture)$|Capture$/i,u=0,i=T(!1),c=T(!0);var z,R,$,q,I=Object.is,j=0,O=[],B=_,V=B.__b,G=B.__r,J=B.diffed,K=B.__c,Q=B.unmount,X=B.__;function Y(_,n){B.__h&&B.__h(R,_,j||n),j=0;var e=R.__H||(R.__H={__:[],__h:[]});return _>=e.__.length&&e.__.push({}),e.__[_]}function Z(_){return j=1,function(_,n){var e=Y(z++,2);if(e.t=_,!e.__c&&(e.__=[r_(void 0,n),function(_){var n=e.__N?e.__N[0]:e.__[0],t=e.t(n,_);I(n,t)||(e.__N=[t,e.__[1]],e.__c.setState({}))}],e.__c=R,!R.__f)){var t=function(_,n,t){if(!e.__c.__H)return!0;var o=e.__c.__H.__.filter(function(_){return!!_.__c});if(o.every(function(_){return!_.__N}))return!l||l.call(this,_,n,t);var r=e.__c.props!==_;return o.forEach(function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,I(n,_.__[0])||(r=!0)}}),l&&l.call(this,_,n,t)||r};R.__f=!0;var l=R.shouldComponentUpdate,o=R.componentWillUpdate;R.componentWillUpdate=function(_,n,e){if(4&this.__g){var r=l;l=void 0,t(_,n,e),l=r}o&&o.call(this,_,n,e)},R.shouldComponentUpdate=t}return e.__N||e.__}(r_,_)}function __(_,n){var e=Y(z++,4);!B.__s&&function(_,n){return!_||_.length!==n.length||n.some(function(n,e){return!I(n,_[e])})}(e.__H,n)&&(e.__=_,e.u=n,R.__h.push(e))}function n_(){for(var _;_=O.shift();)if(_.__P&&_.__H)try{_.__H.__h.forEach(l_),_.__H.__h.forEach(o_),_.__H.__h=[]}catch(n){_.__H.__h=[],B.__e(n,_.__v)}}B.__b=function(_){R=null,V&&V(_)},B.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),X&&X(_,n)},B.__r=function(_){G&&G(_),z=0;var n=(R=_.__c).__H;n&&($===R?(n.__h=[],R.__h=[],n.__.forEach(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(n.__h.forEach(l_),n.__h.forEach(o_),n.__h=[],z=0)),$=R},B.diffed=function(_){J&&J(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==O.push(n)&&q===B.requestAnimationFrame||((q=B.requestAnimationFrame)||t_)(n_)),n.__H.__.forEach(function(_){_.u&&(_.__H=_.u),_.u=void 0})),$=R=null},B.__c=function(_,n){n.some(function(_){try{_.__h.forEach(l_),_.__h=_.__h.filter(function(_){return!_.__||o_(_)})}catch(e){n.some(function(_){_.__h&&(_.__h=[])}),n=[],B.__e(e,_.__v)}}),K&&K(_,n)},B.unmount=function(_){Q&&Q(_);var n,e=_.__c;e&&e.__H&&(e.__H.__.forEach(function(_){try{l_(_)}catch(_){n=_}}),e.__H=void 0,n&&B.__e(n,e.__v))};var e_="function"==typeof requestAnimationFrame;function t_(_){var n,e=function(){clearTimeout(t),e_&&cancelAnimationFrame(n),setTimeout(_)},t=setTimeout(e,35);e_&&(n=requestAnimationFrame(e))}function l_(_){var n=R,e=_.__c;"function"==typeof e&&(_.__c=void 0,e()),R=n}function o_(_){var n=R;_.__c=_.__(),R=n}function r_(_,n){return"function"==typeof n?n(_):n}var u_=0;function i_(n,e,t,l,o,r){e||(e={});var u,i,c=e;if("ref"in c&&"function"!=typeof n)for(i in c={},e)"ref"==i?u=e[i]:c[i]=e[i];var f={type:n,props:c,key:t,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--u_,__i:-1,__u:0,__source:o,__self:r};return _.vnode&&_.vnode(f),f}export{__ as A,W as F,Z as h,g as k,i_ as u};
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
"playwright:install": "npx playwright install-deps && npx playwright install"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"preact": "
|
|
18
|
+
"preact": "11.0.0-beta.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@babel/plugin-syntax-import-attributes": "7.27.1",
|
|
22
22
|
"@babel/plugin-transform-react-jsx": "7.27.1",
|
|
23
23
|
"@jsenv/assert": "4.5.4",
|
|
24
|
-
"@jsenv/core": "40.
|
|
25
|
-
"@jsenv/plugin-preact": "1.7.
|
|
26
|
-
"@jsenv/plugin-bundling": "2.10.
|
|
27
|
-
"@jsenv/plugin-minification": "1.7.
|
|
28
|
-
"@jsenv/eslint-config-relax": "1.7.
|
|
29
|
-
"@jsenv/test": "3.7.
|
|
30
|
-
"eslint": "9.
|
|
24
|
+
"@jsenv/core": "40.12.0",
|
|
25
|
+
"@jsenv/plugin-preact": "1.7.26",
|
|
26
|
+
"@jsenv/plugin-bundling": "2.10.3",
|
|
27
|
+
"@jsenv/plugin-minification": "1.7.3",
|
|
28
|
+
"@jsenv/eslint-config-relax": "1.7.6",
|
|
29
|
+
"@jsenv/test": "3.7.14",
|
|
30
|
+
"eslint": "9.39.1",
|
|
31
31
|
"open": "10.2.0",
|
|
32
32
|
"@playwright/browser-chromium": "1.56.1",
|
|
33
33
|
"prettier": "3.6.2",
|
|
@@ -46,7 +46,7 @@ var hasRequiredScheduler_production;
|
|
|
46
46
|
function requireScheduler_production () {
|
|
47
47
|
if (hasRequiredScheduler_production) return scheduler_production;
|
|
48
48
|
hasRequiredScheduler_production = 1;
|
|
49
|
-
(function (exports) {
|
|
49
|
+
(function (exports$1) {
|
|
50
50
|
function push(heap, node) {
|
|
51
51
|
var index = heap.length;
|
|
52
52
|
heap.push(node);
|
|
@@ -95,16 +95,16 @@ function requireScheduler_production () {
|
|
|
95
95
|
var diff = a.sortIndex - b.sortIndex;
|
|
96
96
|
return 0 !== diff ? diff : a.id - b.id;
|
|
97
97
|
}
|
|
98
|
-
exports.unstable_now = void 0;
|
|
98
|
+
exports$1.unstable_now = void 0;
|
|
99
99
|
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
100
100
|
var localPerformance = performance;
|
|
101
|
-
exports.unstable_now = function () {
|
|
101
|
+
exports$1.unstable_now = function () {
|
|
102
102
|
return localPerformance.now();
|
|
103
103
|
};
|
|
104
104
|
} else {
|
|
105
105
|
var localDate = Date,
|
|
106
106
|
initialTime = localDate.now();
|
|
107
|
-
exports.unstable_now = function () {
|
|
107
|
+
exports$1.unstable_now = function () {
|
|
108
108
|
return localDate.now() - initialTime;
|
|
109
109
|
};
|
|
110
110
|
}
|
|
@@ -152,14 +152,14 @@ function requireScheduler_production () {
|
|
|
152
152
|
function shouldYieldToHost() {
|
|
153
153
|
return needsPaint
|
|
154
154
|
? true
|
|
155
|
-
: exports.unstable_now() - startTime < frameInterval
|
|
155
|
+
: exports$1.unstable_now() - startTime < frameInterval
|
|
156
156
|
? false
|
|
157
157
|
: true;
|
|
158
158
|
}
|
|
159
159
|
function performWorkUntilDeadline() {
|
|
160
160
|
needsPaint = false;
|
|
161
161
|
if (isMessageLoopRunning) {
|
|
162
|
-
var currentTime = exports.unstable_now();
|
|
162
|
+
var currentTime = exports$1.unstable_now();
|
|
163
163
|
startTime = currentTime;
|
|
164
164
|
var hasMoreWork = true;
|
|
165
165
|
try {
|
|
@@ -189,7 +189,7 @@ function requireScheduler_production () {
|
|
|
189
189
|
var continuationCallback = callback(
|
|
190
190
|
currentTask.expirationTime <= currentTime
|
|
191
191
|
);
|
|
192
|
-
currentTime = exports.unstable_now();
|
|
192
|
+
currentTime = exports$1.unstable_now();
|
|
193
193
|
if ("function" === typeof continuationCallback) {
|
|
194
194
|
currentTask.callback = continuationCallback;
|
|
195
195
|
advanceTimers(currentTime);
|
|
@@ -245,29 +245,29 @@ function requireScheduler_production () {
|
|
|
245
245
|
};
|
|
246
246
|
function requestHostTimeout(callback, ms) {
|
|
247
247
|
taskTimeoutID = localSetTimeout(function () {
|
|
248
|
-
callback(exports.unstable_now());
|
|
248
|
+
callback(exports$1.unstable_now());
|
|
249
249
|
}, ms);
|
|
250
250
|
}
|
|
251
|
-
exports.unstable_IdlePriority = 5;
|
|
252
|
-
exports.unstable_ImmediatePriority = 1;
|
|
253
|
-
exports.unstable_LowPriority = 4;
|
|
254
|
-
exports.unstable_NormalPriority = 3;
|
|
255
|
-
exports.unstable_Profiling = null;
|
|
256
|
-
exports.unstable_UserBlockingPriority = 2;
|
|
257
|
-
exports.unstable_cancelCallback = function (task) {
|
|
251
|
+
exports$1.unstable_IdlePriority = 5;
|
|
252
|
+
exports$1.unstable_ImmediatePriority = 1;
|
|
253
|
+
exports$1.unstable_LowPriority = 4;
|
|
254
|
+
exports$1.unstable_NormalPriority = 3;
|
|
255
|
+
exports$1.unstable_Profiling = null;
|
|
256
|
+
exports$1.unstable_UserBlockingPriority = 2;
|
|
257
|
+
exports$1.unstable_cancelCallback = function (task) {
|
|
258
258
|
task.callback = null;
|
|
259
259
|
};
|
|
260
|
-
exports.unstable_forceFrameRate = function (fps) {
|
|
260
|
+
exports$1.unstable_forceFrameRate = function (fps) {
|
|
261
261
|
0 > fps || 125 < fps
|
|
262
262
|
? console.error(
|
|
263
263
|
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
|
|
264
264
|
)
|
|
265
265
|
: (frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5);
|
|
266
266
|
};
|
|
267
|
-
exports.unstable_getCurrentPriorityLevel = function () {
|
|
267
|
+
exports$1.unstable_getCurrentPriorityLevel = function () {
|
|
268
268
|
return currentPriorityLevel;
|
|
269
269
|
};
|
|
270
|
-
exports.unstable_next = function (eventHandler) {
|
|
270
|
+
exports$1.unstable_next = function (eventHandler) {
|
|
271
271
|
switch (currentPriorityLevel) {
|
|
272
272
|
case 1:
|
|
273
273
|
case 2:
|
|
@@ -285,10 +285,10 @@ function requireScheduler_production () {
|
|
|
285
285
|
currentPriorityLevel = previousPriorityLevel;
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
exports.unstable_requestPaint = function () {
|
|
288
|
+
exports$1.unstable_requestPaint = function () {
|
|
289
289
|
needsPaint = true;
|
|
290
290
|
};
|
|
291
|
-
exports.unstable_runWithPriority = function (priorityLevel, eventHandler) {
|
|
291
|
+
exports$1.unstable_runWithPriority = function (priorityLevel, eventHandler) {
|
|
292
292
|
switch (priorityLevel) {
|
|
293
293
|
case 1:
|
|
294
294
|
case 2:
|
|
@@ -307,12 +307,12 @@ function requireScheduler_production () {
|
|
|
307
307
|
currentPriorityLevel = previousPriorityLevel;
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
|
-
exports.unstable_scheduleCallback = function (
|
|
310
|
+
exports$1.unstable_scheduleCallback = function (
|
|
311
311
|
priorityLevel,
|
|
312
312
|
callback,
|
|
313
313
|
options
|
|
314
314
|
) {
|
|
315
|
-
var currentTime = exports.unstable_now();
|
|
315
|
+
var currentTime = exports$1.unstable_now();
|
|
316
316
|
"object" === typeof options && null !== options
|
|
317
317
|
? ((options = options.delay),
|
|
318
318
|
(options =
|
|
@@ -363,8 +363,8 @@ function requireScheduler_production () {
|
|
|
363
363
|
((isMessageLoopRunning = true), schedulePerformWorkUntilDeadline())));
|
|
364
364
|
return priorityLevel;
|
|
365
365
|
};
|
|
366
|
-
exports.unstable_shouldYield = shouldYieldToHost;
|
|
367
|
-
exports.unstable_wrapCallback = function (callback) {
|
|
366
|
+
exports$1.unstable_shouldYield = shouldYieldToHost;
|
|
367
|
+
exports$1.unstable_wrapCallback = function (callback) {
|
|
368
368
|
var parentPriorityLevel = currentPriorityLevel;
|
|
369
369
|
return function () {
|
|
370
370
|
var previousPriorityLevel = currentPriorityLevel;
|