@jsenv/cli 0.3.110 → 0.3.112

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.
Files changed (19) hide show
  1. package/package.json +6 -6
  2. package/template-node-package/package.json +2 -2
  3. package/template-web/package.json +3 -3
  4. package/template-web-components/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/packages/frontend/custom-elements-redefine/src/custom-elements-redefine_main.js +10 -2
  5. package/template-web-components/package.json +4 -4
  6. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/node_modules/preact/dist/preact.mjs +1 -1
  7. package/template-web-preact/.jsenv/entry_index/craft/@fs/Users/dmail/Documents/dev/jsenv/core/node_modules/preact/hooks/dist/hooks.mjs +1 -1
  8. 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
  9. package/template-web-preact/.jsenv/entry_index/shape/index.html +2 -2
  10. package/template-web-preact/.jsenv/entry_index/shape/main.jsx +1 -1
  11. package/template-web-preact/dist/index.html +2 -2
  12. package/template-web-preact/dist/js/main.js +1 -1
  13. package/template-web-preact/dist/jsenv_template_web_preact_node_modules.js +1 -1
  14. package/template-web-preact/package.json +3 -3
  15. 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
  16. 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
  17. 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 +2 -2
  18. package/template-web-react/.jsenv/entry_index/craft/cjs_to_esm/__compile_context__.json +1 -1
  19. package/template-web-react/package.json +4 -4
package/package.json CHANGED
@@ -1,18 +1,21 @@
1
1
  {
2
2
  "name": "@jsenv/cli",
3
- "version": "0.3.110",
3
+ "version": "0.3.112",
4
+ "type": "module",
4
5
  "description": "Command Line Interface for jsenv",
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "https://github.com/jsenv/core",
8
9
  "directory": "packages/related/cli"
9
10
  },
10
- "license": "MIT",
11
11
  "author": {
12
12
  "name": "dmail",
13
13
  "email": "dmaillard06@gmail.com"
14
14
  },
15
- "type": "module",
15
+ "license": "MIT",
16
+ "engines": {
17
+ "node": ">=16.13.0"
18
+ },
16
19
  "bin": {
17
20
  "jsenv": "jsenv_cli.js"
18
21
  },
@@ -25,9 +28,6 @@
25
28
  "@jsenv/urls": "2.9.8",
26
29
  "prompts": "2.4.2"
27
30
  },
28
- "engines": {
29
- "node": ">=16.13.0"
30
- },
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  }
@@ -13,8 +13,8 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@jsenv/assert": "4.5.6",
16
- "@jsenv/core": "41.2.4",
17
- "@jsenv/eslint-config-relax": "1.8.5",
16
+ "@jsenv/core": "41.2.5",
17
+ "@jsenv/eslint-config-relax": "1.8.6",
18
18
  "@jsenv/test": "3.7.21",
19
19
  "eslint": "9.39.2",
20
20
  "prettier": "3.8.1"
@@ -16,9 +16,9 @@
16
16
  "devDependencies": {
17
17
  "@babel/plugin-syntax-import-attributes": "7.28.6",
18
18
  "@jsenv/assert": "4.5.6",
19
- "@jsenv/core": "41.2.4",
20
- "@jsenv/eslint-config-relax": "1.8.5",
21
- "@jsenv/plugin-bundling": "2.10.10",
19
+ "@jsenv/core": "41.2.5",
20
+ "@jsenv/eslint-config-relax": "1.8.6",
21
+ "@jsenv/plugin-bundling": "2.10.11",
22
22
  "@jsenv/plugin-minification": "1.7.3",
23
23
  "@jsenv/test": "3.7.21",
24
24
  "eslint": "9.39.2",
@@ -6,6 +6,12 @@
6
6
  export const allowCustomElementsRedefine = ({
7
7
  updateWholeDOMOnRedefine = false,
8
8
  } = {}) => {
9
+ const patchedSymbol = Symbol.for("allowCustomElementsRedefine");
10
+ if (customElements.define[patchedSymbol]) {
11
+ customElements.define[patchedSymbol].updateWholeDOMOnRedefine =
12
+ updateWholeDOMOnRedefine;
13
+ return;
14
+ }
9
15
  const elementsChanged = [];
10
16
  let timeoutId;
11
17
  const onCustomElementChange = (
@@ -13,7 +19,7 @@ export const allowCustomElementsRedefine = ({
13
19
  // customElementClass,
14
20
  // options,
15
21
  ) => {
16
- if (!updateWholeDOMOnRedefine) {
22
+ if (!customElements.define[patchedSymbol].updateWholeDOMOnRedefine) {
17
23
  return;
18
24
  }
19
25
  elementsChanged.push(customElementName);
@@ -34,7 +40,7 @@ export const allowCustomElementsRedefine = ({
34
40
 
35
41
  const customElementClassMap = new Map();
36
42
  const defineOriginal = customElements.define;
37
- customElements.define = (customElementName, customElementClass, options) => {
43
+ const definePatched = (customElementName, customElementClass, options) => {
38
44
  const registeredCustomElement = customElements.get(customElementName);
39
45
  customElementClassMap.set(customElementName, customElementClass);
40
46
  if (registeredCustomElement) {
@@ -52,6 +58,8 @@ export const allowCustomElementsRedefine = ({
52
58
  options,
53
59
  );
54
60
  };
61
+ definePatched[patchedSymbol] = { updateWholeDOMOnRedefine };
62
+ customElements.define = definePatched;
55
63
 
56
64
  const observerSymbol = Symbol.for("observedAttributesObserver");
57
65
  const createCustomElementFacade = (
@@ -16,12 +16,12 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@babel/plugin-syntax-import-attributes": "7.28.6",
19
- "@jsenv/custom-elements-redefine": "0.0.1",
19
+ "@jsenv/custom-elements-redefine": "0.1.0",
20
20
  "@jsenv/assert": "4.5.6",
21
- "@jsenv/core": "41.2.4",
22
- "@jsenv/plugin-bundling": "2.10.10",
21
+ "@jsenv/core": "41.2.5",
22
+ "@jsenv/plugin-bundling": "2.10.11",
23
23
  "@jsenv/plugin-minification": "1.7.3",
24
- "@jsenv/eslint-config-relax": "1.8.5",
24
+ "@jsenv/eslint-config-relax": "1.8.6",
25
25
  "@jsenv/test": "3.7.21",
26
26
  "eslint": "9.39.2",
27
27
  "open": "11.0.0",
@@ -1,2 +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};
1
+ var n,l,u,t,i,r,o,f,e,c,s,h,a={},p=[],v=/(mi|mn|mo|ms$|mte|msp)/,y=Array.isArray,w=p.slice,d=Object.assign;function g(n){n&&n.parentNode&&n.remove()}function _(n,l,u){var t,i,r,o={};for(r in l)"key"==r?t=l[r]:"ref"==r&&"function"!=typeof n?i=l[r]:o[r]=l[r];return arguments.length>2&&(o.children=arguments.length>3?w.call(arguments,2):u),m(n,o,t,i,null)}function m(u,t,i,r,o){var f={type:u,props:t,key:i,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++l:o,__i:-1,__u:0};return null==o&&null!=n.vnode&&n.vnode(f),f}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 $(n,l){if(null==l)return n.__?$(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?$(n):null}function S(n){if(null!=(n=n.__)&&null!=n.__c)return n.__e=null,n.__k.some(function(l){if(null!=l&&null!=l.__e)return n.__e=l.__e}),S(n)}function x(l){(8&l.__g||!(l.__g|=8)||!t.push(l)||r++)&&i==n.debounceRendering||((i=n.debounceRendering)||queueMicrotask)(C)}function C(){for(var l,u,i,f,e,c,s,h,a=1;t.length;)t.length>a&&t.sort(o),l=t.shift(),a=t.length,8&l.__g&&(i=void 0,f=void 0,e=(f=(u=l).__v).__e,c=[],s=[],(h=u.__P)&&((i=d({},f)).__v=f.__v+1,n.vnode&&n.vnode(i),N(h,i,f,u.__n,h.namespaceURI,32&f.__u?[e]:null,c,null==e?$(f):e,!!(32&f.__u),s,h.ownerDocument),i.__v=f.__v,i.__.__k[i.__i]=i,V(c,i,s),f.__=f.__e=null,i.__e!=e&&S(i)));r=0}function L(n,l,u,t,i,r,o,f,e,c,s,h){var v,y,w,d,g,_,m,b=t&&t.__k||p,k=l.length;for(e=j(u,l,b,e,k),v=0;v<k;v++)null!=(w=u.__k[v])&&(y=-1!=w.__i&&b[w.__i]||a,w.__i=v,_=N(n,w,y,i,r,o,f,e,c,s,h),d=w.__e,w.ref&&y.ref!=w.ref&&(y.ref&&D(y.ref,null,w),s.push(w.ref,w.__c||d,w)),null==g&&null!=d&&(g=d),(m=4&w.__u)||y.__k===w.__k?e=A(w,e,n,m):"function"==typeof w.type&&void 0!==_?e=_:d&&(e=d.nextSibling),w.__u&=-7);return u.__e=g,e}function j(n,l,u,t,i){var r,o,f,e,c,s=u.length,h=s,a=0;for(n.__k=new Array(i),r=0;r<i;r++)null!=(o=l[r])&&"boolean"!=typeof o&&"function"!=typeof o?("string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?o=n.__k[r]=m(null,o,null,null,null):y(o)?o=n.__k[r]=m(k,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?o=n.__k[r]=m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):n.__k[r]=o,e=r+a,o.__=n,o.__b=n.__b+1,f=null,-1!=(c=o.__i=I(o,u,e,h))&&(h--,(f=u[c])&&(f.__u|=2)),null==f||null==f.__v?(-1==c&&(i>s?a--:i<s&&a++),"function"!=typeof o.type&&(o.__u|=4)):c!=e&&(c==e-1?a--:c==e+1?a++:(c>e?a--:a++,o.__u|=4))):n.__k[r]=null;if(h)for(r=0;r<s;r++)null!=(f=u[r])&&0==(2&f.__u)&&(f.__e==t&&(t=$(f)),E(f,f));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=$(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||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function I(n,l,u,t){var i,r,o,f=n.key,e=n.type,c=l[u],s=null!=c&&0==(2&c.__u);if(null===c&&null==f||s&&f==c.key&&e==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[o=i>=0?i--:r++])&&0==(2&c.__u)&&f==c.key&&e==c.type)return o;return-1}function O(n,l,u){"-"==l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":u}function T(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||O(n.style,l,"");if(u)for(l in u)t&&u[l]==t[l]||O(n.style,l,u[l])}else if("o"==l[0]&&"n"==l[1])r=l!=(l=l.replace(f,"$1")),l=l.slice(2).toLowerCase(),n.__l||(n.__l={}),n.__l[l+r]=u,u?t?u.l=t.l:(u.l=e,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 q(l){return function(u){if(this.__l){var t=this.__l[u.type+l];if(null==u.u)u.u=e++;else if(u.u<t.l)return;return t(n.event?n.event(u):u)}}}function N(l,u,t,i,r,o,f,e,c,s,h){var a,p,v,w,_,m,b,$,S,x,C,j,A,H,I,O,T,q,N,V=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=32&t.__u)&&t.__c.__z&&(e=(o=t.__c.__z)[0],t.__c.__z=null),(a=n.__b)&&a(u);n:if("function"==typeof V)try{if(m=u.props,b="prototype"in V&&V.prototype.render,$=(a=V.contextType)&&i[a.__c],S=a?$?$.props.value:a.__:i,t.__c?2&(p=u.__c=t.__c).__g&&(p.__g|=1):(b?u.__c=p=new V(m,S):(u.__c=p=new M(m,S),p.constructor=V,p.render=F),$&&$.sub(p),p.state||(p.state={}),p.__n=i,p.__g|=8,p.__h=[],p._sb=[]),b&&null==p.__s&&(p.__s=p.state),b&&null!=V.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=d({},p.__s)),d(p.__s,V.getDerivedStateFromProps(m,p.__s))),v=p.props,w=p.state,p.__v=u,t.__c){if(b&&null==V.getDerivedStateFromProps&&m!==v&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(m,S),u.__v==t.__v||!(4&p.__g)&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(m,p.__s,S)){u.__v!=t.__v&&(p.props=m,p.state=p.__s,p.__g&=-9),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),(x=p.__h).push.apply(x,p._sb),p._sb=[],p.__h.length&&f.push(p);break n}null!=p.componentWillUpdate&&p.componentWillUpdate(m,p.__s,S),b&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(v,w,_)})}else b&&null==V.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),b&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);if(p.context=S,p.props=m,p.__P=l,p.__g&=-5,C=n.__r,j=0,b)p.state=p.__s,p.__g&=-9,C&&C(u),a=p.render(p.props,p.state,p.context),(A=p.__h).push.apply(A,p._sb),p._sb=[];else do{p.__g&=-9,C&&C(u),a=p.render(p.props,p.state,p.context),p.state=p.__s}while(8&p.__g&&++j<25);p.state=p.__s,null!=p.getChildContext&&(i=d({},i,p.getChildContext())),b&&t.__c&&null!=p.getSnapshotBeforeUpdate&&(_=p.getSnapshotBeforeUpdate(v,w)),H=null!=a&&a.type===k&&null==a.key?z(a.props.children):a,e=L(l,y(H)?H:[H],u,t,i,r,o,f,e,c,s,h),u.__u&=-161,p.__h.length&&f.push(p),2&p.__g&&(p.__g&=-4)}catch(l){if(u.__v=null,c||null!=o)if(l.then){for(I=0,u.__u|=c?160:128,u.__c.__z=[],T=0;T<o.length;T++)null==(q=o[T])||O||(8==q.nodeType?("$s"==q.data?(I&&u.__c.__z.push(q),I++):"/$s"==q.data&&(--I&&u.__c.__z.push(q),O=0==I,e=o[T]),o[T]=null):I&&(u.__c.__z.push(q),o[T]=null));if(!O){for(;e&&8==e.nodeType&&e.nextSibling;)e=e.nextSibling;o[o.indexOf(e)]=null,u.__c.__z=[e]}u.__e=e}else{for(N=o.length;N--;)g(o[N]);P(u)}else u.__e=t.__e,u.__k=t.__k,l.then||P(u);n.__e(l,u,t)}else e=u.__e=B(t.__e,u,t,i,r,o,f,c,s,h);return(a=n.diffed)&&a(u),128&u.__u?void 0:e}function P(n){n&&n.__c&&(n.__c.__g|=4),n&&n.__k&&n.__k.forEach(P)}function V(l,u,t){for(var i=0;i<t.length;i++)D(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 z(n){return"object"!=typeof n||null==n||n.__b>0?n:y(n)?n.map(z):d({},n)}function B(l,u,t,i,r,o,f,e,c,s){var h,p,d,_,m,b,k,M,S=t.props||a,x=u.props,C=u.type;if("svg"==C?r="http://www.w3.org/2000/svg":"math"==C?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=o)for(h=0;h<o.length;h++)if((m=o[h])&&"setAttribute"in m==!!C&&(C?m.localName==C:3==m.nodeType)){l=m,o[h]=null;break}if(null==l){if(null==C)return s.createTextNode(x);l=s.createElementNS(r,C,x.is&&x),e&&(n.__m&&n.__m(u,o),e=!1),o=null}if(null==C)S===x||e&&l.data==x||(l.data=x);else{if(o=o&&w.call(l.childNodes),!e&&null!=o)for(S={},h=0;h<l.attributes.length;h++)S[(m=l.attributes[h]).name]=m.value;for(h in S)m=S[h],"dangerouslySetInnerHTML"==h?d=m:"children"==h||h in x||"value"==h&&"defaultValue"in x||"checked"==h&&"defaultChecked"in x||T(l,h,null,m,r);for(h in M=1&t.__u,x)m=x[h],"children"==h?_=m:"dangerouslySetInnerHTML"==h?p=m:"value"==h?b=m:"checked"==h?k=m:e&&"function"!=typeof m||S[h]===m&&!M||T(l,h,m,S[h],r);if(p)e||d&&(p.__html==d.__html||p.__html==l.innerHTML)||(l.innerHTML=p.__html),u.__k=[];else if(d&&(l.innerHTML=""),("foreignObject"==C||"http://www.w3.org/1998/Math/MathML"==r&&v.test(C))&&(r="http://www.w3.org/1999/xhtml"),L("template"==C?l.content:l,y(_)?_:[_],u,t,i,r,o,f,o?o[0]:t.__k&&$(t,0),e,c,s),null!=o)for(h=o.length;h--;)g(o[h]);e||(h="value","progress"==C&&null==b?l.removeAttribute("value"):null==b||b===l[h]&&("progress"!==C||b)||T(l,h,b,S[h],r),h="checked",null!=k&&k!=l[h]&&T(l,h,k,S[h],r))}return l}function D(l,u,t){try{"function"==typeof l?("function"==typeof l.__u&&l.__u(),"function"==typeof l.__u&&null==u||(l.__u=l(u))):l.current=u}catch(l){n.__e(l,t)}}function E(l,u,t){var i,r;if(n.unmount&&n.unmount(l),!(i=l.ref)||i.current&&i.current!=l.__e||D(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]&&E(i[r],u,t||"function"!=typeof l.type);t||g(l.__e),l.__e&&l.__e.__l&&(l.__e.__l=null),l.__e=l.__c=l.__=null}function F(n,l,u){return this.constructor(n,u)}function G(l,u){var t,i,r,o;u==document&&(u=document.documentElement),n.__&&n.__(l,u),i=(t=l&&32&l.__u)?null:u.__k,u.__k=_(k,null,[l]),r=[],o=[],N(u,u.__k,i||a,a,u.namespaceURI,i?null:u.firstChild?w.call(u.childNodes):null,r,i?i.__e:u.firstChild,t,o,u.ownerDocument),V(r,u.__k,o)}function J(n,l){n.__u|=32,G(n,l)}function K(n,l,u){var t,i,r,o=d({},n.props);for(r in l)"key"==r?t=l[r]:"ref"==r&&"function"!=typeof n.type?i=l[r]:o[r]=l[r];return arguments.length>2&&(o.children=arguments.length>3?w.call(arguments,2):u),m(n.type,o,t||n.key,i||n.ref,null)}function Q(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,x(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"+h++,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,o,f;l=l.__;)if((i=l.__c)&&!(1&i.__g)){i.__g|=4;try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),f=8&i.__g),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),f=8&i.__g),f)return void(i.__g|=2)}catch(l){n=l}}throw r=0,n}},l=0,u=function(n){return null!=n&&void 0===n.constructor},M.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&(d(u,n),this.__v&&(l&&this._sb.push(l),x(this)))},M.prototype.forceUpdate=function(n){this.__v&&(this.__g|=4,n&&this.__h.push(n),x(this))},M.prototype.render=k,t=[],r=0,o=function(n,l){return n.__v.__b-l.__v.__b},f=/(PointerCapture)$|Capture$/i,e=0,c=q(!1),s=q(!0),h=0;export{M as Component,k as Fragment,K as cloneElement,Q as createContext,_ as createElement,b as createRef,_ as h,J as hydrate,u as isValidElement,n as options,G as render,H as toChildArray};
2
2
 
@@ -1,2 +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};
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,p=e.unmount,s=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 y(n){return f=1,h(D,n)}function h(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.__,i=f.__c.props!==n||u.every(function(n){return!n.__N});return u.some(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.__}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=y();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.some(z),n.__H.__h.some(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),s&&s(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.__.some(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(i.__h.some(z),i.__h.some(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.__.some(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.some(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){p&&p(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.some(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,h as useReducer,F as useRef,y as useState};
2
2
 
@@ -1 +1 @@
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};
1
+ var _,n,e,t,o,l,u,r,i,c,f={},s=[],p=/(mi|mn|mo|ms$|mte|msp)/,a=Array.isArray,h=s.slice,v=Object.assign;function d(_){_&&_.parentNode&&_.remove()}function m(e,t,o,l,u){var r={type:e,props:t,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==u?++n:u,__i:-1,__u:0};return null==u&&null!=_.vnode&&_.vnode(r),r}function g(_){return _.children}function y(_,n){this.props=_,this.context=n,this.__g=0}function k(_,n){if(null==n)return _.__?k(_.__,_.__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?k(_):null}function b(_){if(null!=(_=_.__)&&null!=_.__c)return _.__e=null,_.__k.some(function(n){if(null!=n&&null!=n.__e)return _.__e=n.__e}),b(_)}function w(n){(8&n.__g||!(n.__g|=8)||!e.push(n)||o++)&&t==_.debounceRendering||((t=_.debounceRendering)||queueMicrotask)(H)}function H(){for(var n,t,u,r,i,c,f,s,p=1;e.length;)e.length>p&&e.sort(l),n=e.shift(),p=e.length,8&n.__g&&(u=void 0,r=void 0,i=(r=(t=n).__v).__e,c=[],f=[],(s=t.__P)&&((u=v({},r)).__v=r.__v+1,_.vnode&&_.vnode(u),T(s,u,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,c,null==i?k(r):i,!!(32&r.__u),f,s.ownerDocument),u.__v=r.__v,u.__.__k[u.__i]=u,A(c,u,f),r.__=r.__e=null,u.__e!=i&&b(u)));o=0}function S(_,n,e,t,o,l,u,r,i,c,p,h){var v,d,y,b,w,H,S,U=t&&t.__k||s,C=n.length;for(i=function(_,n,e,t,o){var l,u,r,i,c,f=e.length,s=f,p=0;for(_.__k=new Array(o),l=0;l<o;l++)null!=(u=n[l])&&"boolean"!=typeof u&&"function"!=typeof u?("string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?u=_.__k[l]=m(null,u,null,null,null):a(u)?u=_.__k[l]=m(g,{children:u},null,null,null):void 0===u.constructor&&u.__b>0?u=_.__k[l]=m(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):_.__k[l]=u,i=l+p,u.__=_,u.__b=_.__b+1,r=null,-1!=(c=u.__i=N(u,e,i,s))&&(s--,(r=e[c])&&(r.__u|=2)),null==r||null==r.__v?(-1==c&&(o>f?p--:o<f&&p++),"function"!=typeof u.type&&(u.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,u.__u|=4))):_.__k[l]=null;if(s)for(l=0;l<f;l++)null!=(r=e[l])&&!(2&r.__u)&&(r.__e==t&&(t=k(r)),W(r,r));return t}(e,n,U,i,C),v=0;v<C;v++)null!=(y=e.__k[v])&&(d=-1!=y.__i&&U[y.__i]||f,y.__i=v,H=T(_,y,d,o,l,u,r,i,c,p,h),b=y.__e,y.ref&&d.ref!=y.ref&&(d.ref&&L(d.ref,null,y),p.push(y.ref,y.__c||b,y)),null==w&&null!=b&&(w=b),(S=4&y.__u)||d.__k===y.__k?i=x(y,i,_,S):"function"==typeof y.type&&void 0!==H?i=H:b&&(i=b.nextSibling),y.__u&=-7);return e.__e=w,i}function x(_,n,e,t){var o,l;if("function"==typeof _.type){for(o=_.__k,l=0;o&&l<o.length;l++)o[l]&&(o[l].__=_,n=x(o[l],n,e,t));return n}_.__e!=n&&(t&&(n&&_.type&&!n.parentNode&&(n=k(_)),e.insertBefore(_.__e,n||null)),n=_.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function N(_,n,e,t){var o,l,u,r=_.key,i=_.type,c=n[e],f=null!=c&&!(2&c.__u);if(null===c&&null==r||f&&r==c.key&&i==c.type)return e;if(t>(f?1:0))for(o=e-1,l=e+1;o>=0||l<n.length;)if(null!=(c=n[u=o>=0?o--:l++])&&!(2&c.__u)&&r==c.key&&i==c.type)return u;return-1}function U(_,n,e){"-"==n[0]?_.setProperty(n,null==e?"":e):_[n]=null==e?"":e}function C(_,n,e,t,o){var l;_: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||U(_.style,n,"");if(e)for(n in e)t&&e[n]==t[n]||U(_.style,n,e[n])}else if("o"==n[0]&&"n"==n[1])l=n!=(n=n.replace(u,"$1")),n=n.slice(2).toLowerCase(),_.__l||(_.__l={}),_.__l[n+l]=e,e?t?e.l=t.l:(e.l=r,_.addEventListener(n,l?c:i,l)):_.removeEventListener(n,l?c:i,l);else{if("http://www.w3.org/2000/svg"==o)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 M(n){return function(e){if(this.__l){var t=this.__l[e.type+n];if(null==e.u)e.u=r++;else if(e.u<t.l)return;return t(_.event?_.event(e):e)}}}function T(n,e,t,o,l,u,r,i,c,f,s){var p,h,m,k,b,w,H,x,N,U,C,M,T,A,L,W,E,$,R,q=e.type;if(void 0!==e.constructor)return null;128&t.__u&&(c=32&t.__u)&&t.__c.__z&&(i=(u=t.__c.__z)[0],t.__c.__z=null),(p=_.__b)&&p(e);_:if("function"==typeof q)try{if(w=e.props,H="prototype"in q&&q.prototype.render,x=(p=q.contextType)&&o[p.__c],N=p?x?x.props.value:p.__:o,t.__c?2&(h=e.__c=t.__c).__g&&(h.__g|=1):(H?e.__c=h=new q(w,N):(e.__c=h=new y(w,N),h.constructor=q,h.render=z),x&&x.sub(h),h.state||(h.state={}),h.__n=o,h.__g|=8,h.__h=[],h._sb=[]),H&&null==h.__s&&(h.__s=h.state),H&&null!=q.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=v({},h.__s)),v(h.__s,q.getDerivedStateFromProps(w,h.__s))),m=h.props,k=h.state,h.__v=e,t.__c){if(H&&null==q.getDerivedStateFromProps&&w!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(w,N),e.__v==t.__v||!(4&h.__g)&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(w,h.__s,N)){e.__v!=t.__v&&(h.props=w,h.state=h.__s,h.__g&=-9),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(_){_&&(_.__=e)}),(U=h.__h).push.apply(U,h._sb),h._sb=[],h.__h.length&&r.push(h);break _}null!=h.componentWillUpdate&&h.componentWillUpdate(w,h.__s,N),H&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(m,k,b)})}else H&&null==q.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),H&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);if(h.context=N,h.props=w,h.__P=n,h.__g&=-5,C=_.__r,M=0,H)h.state=h.__s,h.__g&=-9,C&&C(e),p=h.render(h.props,h.state,h.context),(T=h.__h).push.apply(T,h._sb),h._sb=[];else do{h.__g&=-9,C&&C(e),p=h.render(h.props,h.state,h.context),h.state=h.__s}while(8&h.__g&&++M<25);h.state=h.__s,null!=h.getChildContext&&(o=v({},o,h.getChildContext())),H&&t.__c&&null!=h.getSnapshotBeforeUpdate&&(b=h.getSnapshotBeforeUpdate(m,k)),A=null!=p&&p.type===g&&null==p.key?P(p.props.children):p,i=S(n,a(A)?A:[A],e,t,o,l,u,r,i,c,f,s),e.__u&=-161,h.__h.length&&r.push(h),2&h.__g&&(h.__g&=-4)}catch(n){if(e.__v=null,c||null!=u)if(n.then){for(L=0,e.__u|=c?160:128,e.__c.__z=[],E=0;E<u.length;E++)null==($=u[E])||W||(8==$.nodeType?("$s"==$.data?(L&&e.__c.__z.push($),L++):"/$s"==$.data&&(--L&&e.__c.__z.push($),W=0==L,i=u[E]),u[E]=null):L&&(e.__c.__z.push($),u[E]=null));if(!W){for(;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;u[u.indexOf(i)]=null,e.__c.__z=[i]}e.__e=i}else{for(R=u.length;R--;)d(u[R]);D(e)}else e.__e=t.__e,e.__k=t.__k,n.then||D(e);_.__e(n,e,t)}else i=e.__e=F(t.__e,e,t,o,l,u,r,c,f,s);return(p=_.diffed)&&p(e),128&e.__u?void 0:i}function D(_){_&&_.__c&&(_.__c.__g|=4),_&&_.__k&&_.__k.forEach(D)}function A(n,e,t){for(var o=0;o<t.length;o++)L(t[o],t[++o],t[++o]);_.__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 P(_){return"object"!=typeof _||null==_||_.__b>0?_:a(_)?_.map(P):v({},_)}function F(n,e,t,o,l,u,r,i,c,s){var v,m,g,y,b,w,H,x,N=t.props||f,U=e.props,M=e.type;if("svg"==M?l="http://www.w3.org/2000/svg":"math"==M?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u)for(v=0;v<u.length;v++)if((b=u[v])&&"setAttribute"in b==!!M&&(M?b.localName==M:3==b.nodeType)){n=b,u[v]=null;break}if(null==n){if(null==M)return s.createTextNode(U);n=s.createElementNS(l,M,U.is&&U),i&&(_.__m&&_.__m(e,u),i=!1),u=null}if(null==M)N===U||i&&n.data==U||(n.data=U);else{if(u=u&&h.call(n.childNodes),!i&&null!=u)for(N={},v=0;v<n.attributes.length;v++)N[(b=n.attributes[v]).name]=b.value;for(v in N)b=N[v],"dangerouslySetInnerHTML"==v?g=b:"children"==v||v in U||"value"==v&&"defaultValue"in U||"checked"==v&&"defaultChecked"in U||C(n,v,null,b,l);for(v in x=1&t.__u,U)b=U[v],"children"==v?y=b:"dangerouslySetInnerHTML"==v?m=b:"value"==v?w=b:"checked"==v?H=b:i&&"function"!=typeof b||N[v]===b&&!x||C(n,v,b,N[v],l);if(m)i||g&&(m.__html==g.__html||m.__html==n.innerHTML)||(n.innerHTML=m.__html),e.__k=[];else if(g&&(n.innerHTML=""),("foreignObject"==M||"http://www.w3.org/1998/Math/MathML"==l&&p.test(M))&&(l="http://www.w3.org/1999/xhtml"),S("template"==M?n.content:n,a(y)?y:[y],e,t,o,l,u,r,u?u[0]:t.__k&&k(t,0),i,c,s),null!=u)for(v=u.length;v--;)d(u[v]);i||(v="value","progress"==M&&null==w?n.removeAttribute("value"):null==w||w===n[v]&&("progress"!==M||w)||C(n,v,w,N[v],l),v="checked",null!=H&&H!=n[v]&&C(n,v,H,N[v],l))}return n}function L(n,e,t){try{"function"==typeof n?("function"==typeof n.__u&&n.__u(),"function"==typeof n.__u&&null==e||(n.__u=n(e))):n.current=e}catch(n){_.__e(n,t)}}function W(n,e,t){var o,l;if(_.unmount&&_.unmount(n),!(o=n.ref)||o.current&&o.current!=n.__e||L(o,null,e),null!=(o=n.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(n){_.__e(n,e)}o.__P=null}if(o=n.__k)for(l=0;l<o.length;l++)o[l]&&W(o[l],e,t||"function"!=typeof n.type);t||d(n.__e),n.__e&&n.__e.__l&&(n.__e.__l=null),n.__e=n.__c=n.__=null}function z(_,n,e){return this.constructor(_,e)}function E(n,e){var t,o,l,u;e==document&&(e=document.documentElement),_.__&&_.__(n,e),o=(t=n&&32&n.__u)?null:e.__k,e.__k=function(_,n,e){var t,o,l,u={};for(l in n)"key"==l?t=n[l]:"ref"==l&&"function"!=typeof _?o=n[l]:u[l]=n[l];return arguments.length>2&&(u.children=arguments.length>3?h.call(arguments,2):e),m(_,u,t,o,null)}(g,null,[n]),l=[],u=[],T(e,e.__k,o||f,f,e.namespaceURI,o?null:e.firstChild?h.call(e.childNodes):null,l,o?o.__e:e.firstChild,t,u,e.ownerDocument),A(l,e.__k,u)}_={__e:function(_,n,e,t){for(var l,u,r;n=n.__;)if((l=n.__c)&&!(1&l.__g)){l.__g|=4;try{if((u=l.constructor)&&null!=u.getDerivedStateFromError&&(l.setState(u.getDerivedStateFromError(_)),r=8&l.__g),null!=l.componentDidCatch&&(l.componentDidCatch(_,t||{}),r=8&l.__g),r)return void(l.__g|=2)}catch(n){_=n}}throw o=0,_}},n=0,y.prototype.setState=function(_,n){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=v({},this.state),"function"==typeof _&&(_=_(v({},e),this.props)),_&&(v(e,_),this.__v&&(n&&this._sb.push(n),w(this)))},y.prototype.forceUpdate=function(_){this.__v&&(this.__g|=4,_&&this.__h.push(_),w(this))},y.prototype.render=g,e=[],o=0,l=function(_,n){return _.__v.__b-n.__v.__b},u=/(PointerCapture)$|Capture$/i,r=0,i=M(!1),c=M(!0);var $,R,q,I,j=Object.is,O=0,B=[],V=_,G=V.__b,J=V.__r,K=V.diffed,Q=V.__c,X=V.unmount,Y=V.__;function Z(_,n){V.__h&&V.__h(R,_,O||n),O=0;var e=R.__H||(R.__H={__:[],__h:[]});return _>=e.__.length&&e.__.push({}),e.__[_]}function __(_){return O=1,function(_,n){var e=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,_);j(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 l=e.__c.__H.__,u=e.__c.props!==_||l.every(function(_){return!_.__N});return l.some(function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,j(n,_.__[0])||(u=!0)}}),o&&o.call(this,_,n,t)||u};R.__f=!0;var o=R.shouldComponentUpdate,l=R.componentWillUpdate;R.componentWillUpdate=function(_,n,e){if(4&this.__g){var u=o;o=void 0,t(_,n,e),o=u}l&&l.call(this,_,n,e)},R.shouldComponentUpdate=t}return e.__}(r_,_)}function n_(_,n){var e=Z($++,4);!V.__s&&function(_,n){return!_||_.length!==n.length||n.some(function(n,e){return!j(n,_[e])})}(e.__H,n)&&(e.__=_,e.u=n,R.__h.push(e))}function e_(){for(var _;_=B.shift();)if(_.__P&&_.__H)try{_.__H.__h.some(l_),_.__H.__h.some(u_),_.__H.__h=[]}catch(n){_.__H.__h=[],V.__e(n,_.__v)}}V.__b=function(_){R=null,G&&G(_)},V.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),Y&&Y(_,n)},V.__r=function(_){J&&J(_),$=0;var n=(R=_.__c).__H;n&&(q===R?(n.__h=[],R.__h=[],n.__.some(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(n.__h.some(l_),n.__h.some(u_),n.__h=[],$=0)),q=R},V.diffed=function(_){K&&K(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==B.push(n)&&I===V.requestAnimationFrame||((I=V.requestAnimationFrame)||o_)(e_)),n.__H.__.some(function(_){_.u&&(_.__H=_.u),_.u=void 0})),q=R=null},V.__c=function(_,n){n.some(function(_){try{_.__h.some(l_),_.__h=_.__h.filter(function(_){return!_.__||u_(_)})}catch(e){n.some(function(_){_.__h&&(_.__h=[])}),n=[],V.__e(e,_.__v)}}),Q&&Q(_,n)},V.unmount=function(_){X&&X(_);var n,e=_.__c;e&&e.__H&&(e.__H.__.some(function(_){try{l_(_)}catch(_){n=_}}),e.__H=void 0,n&&V.__e(n,e.__v))};var t_="function"==typeof requestAnimationFrame;function o_(_){var n,e=function(){clearTimeout(t),t_&&cancelAnimationFrame(n),setTimeout(_)},t=setTimeout(e,35);t_&&(n=requestAnimationFrame(e))}function l_(_){var n=R,e=_.__c;"function"==typeof e&&(_.__c=void 0,e()),R=n}function u_(_){var n=R;_.__c=_.__(),R=n}function r_(_,n){return"function"==typeof n?n(_):n}var i_=0;function c_(n,e,t,o,l,u){e||(e={});var r,i,c=e;if("ref"in c&&"function"!=typeof n)for(i in c={},e)"ref"==i?r=e[i]:c[i]=e[i];var f={type:n,props:c,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--i_,__i:-1,__u:0,__source:l,__self:u};return _.vnode&&_.vnode(f),f}export{n_ as A,E as G,g as k,c_ as u,__ as y};
@@ -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=af801a91"
10
+ "/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=b826488f"
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=fe5fb03f" original-src-position="27:27;27:43"></script>
29
+ <script type="module" src="/js/main.js?v=1088675c" original-src-position="27:27;27:43"></script>
30
30
  </body>
31
31
  </html>
@@ -1 +1 @@
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
+ import{y as e,u as t,k as n,A as o,G 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=af801a91"
10
+ "/jsenv_template_web_preact_node_modules.js": "/jsenv_template_web_preact_node_modules.js?v=b826488f"
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=fe5fb03f"></script>
29
+ <script type="module" src="/js/main.js?v=1088675c"></script>
30
30
  </body>
31
31
  </html>
@@ -1 +1 @@
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
+ import{y as e,u as t,k as n,A as o,G 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 _,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};
1
+ var _,n,e,t,o,l,u,r,i,c,f={},s=[],p=/(mi|mn|mo|ms$|mte|msp)/,a=Array.isArray,h=s.slice,v=Object.assign;function d(_){_&&_.parentNode&&_.remove()}function m(e,t,o,l,u){var r={type:e,props:t,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==u?++n:u,__i:-1,__u:0};return null==u&&null!=_.vnode&&_.vnode(r),r}function g(_){return _.children}function y(_,n){this.props=_,this.context=n,this.__g=0}function k(_,n){if(null==n)return _.__?k(_.__,_.__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?k(_):null}function b(_){if(null!=(_=_.__)&&null!=_.__c)return _.__e=null,_.__k.some(function(n){if(null!=n&&null!=n.__e)return _.__e=n.__e}),b(_)}function w(n){(8&n.__g||!(n.__g|=8)||!e.push(n)||o++)&&t==_.debounceRendering||((t=_.debounceRendering)||queueMicrotask)(H)}function H(){for(var n,t,u,r,i,c,f,s,p=1;e.length;)e.length>p&&e.sort(l),n=e.shift(),p=e.length,8&n.__g&&(u=void 0,r=void 0,i=(r=(t=n).__v).__e,c=[],f=[],(s=t.__P)&&((u=v({},r)).__v=r.__v+1,_.vnode&&_.vnode(u),T(s,u,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,c,null==i?k(r):i,!!(32&r.__u),f,s.ownerDocument),u.__v=r.__v,u.__.__k[u.__i]=u,A(c,u,f),r.__=r.__e=null,u.__e!=i&&b(u)));o=0}function S(_,n,e,t,o,l,u,r,i,c,p,h){var v,d,y,b,w,H,S,U=t&&t.__k||s,C=n.length;for(i=function(_,n,e,t,o){var l,u,r,i,c,f=e.length,s=f,p=0;for(_.__k=new Array(o),l=0;l<o;l++)null!=(u=n[l])&&"boolean"!=typeof u&&"function"!=typeof u?("string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?u=_.__k[l]=m(null,u,null,null,null):a(u)?u=_.__k[l]=m(g,{children:u},null,null,null):void 0===u.constructor&&u.__b>0?u=_.__k[l]=m(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):_.__k[l]=u,i=l+p,u.__=_,u.__b=_.__b+1,r=null,-1!=(c=u.__i=N(u,e,i,s))&&(s--,(r=e[c])&&(r.__u|=2)),null==r||null==r.__v?(-1==c&&(o>f?p--:o<f&&p++),"function"!=typeof u.type&&(u.__u|=4)):c!=i&&(c==i-1?p--:c==i+1?p++:(c>i?p--:p++,u.__u|=4))):_.__k[l]=null;if(s)for(l=0;l<f;l++)null!=(r=e[l])&&!(2&r.__u)&&(r.__e==t&&(t=k(r)),W(r,r));return t}(e,n,U,i,C),v=0;v<C;v++)null!=(y=e.__k[v])&&(d=-1!=y.__i&&U[y.__i]||f,y.__i=v,H=T(_,y,d,o,l,u,r,i,c,p,h),b=y.__e,y.ref&&d.ref!=y.ref&&(d.ref&&L(d.ref,null,y),p.push(y.ref,y.__c||b,y)),null==w&&null!=b&&(w=b),(S=4&y.__u)||d.__k===y.__k?i=x(y,i,_,S):"function"==typeof y.type&&void 0!==H?i=H:b&&(i=b.nextSibling),y.__u&=-7);return e.__e=w,i}function x(_,n,e,t){var o,l;if("function"==typeof _.type){for(o=_.__k,l=0;o&&l<o.length;l++)o[l]&&(o[l].__=_,n=x(o[l],n,e,t));return n}_.__e!=n&&(t&&(n&&_.type&&!n.parentNode&&(n=k(_)),e.insertBefore(_.__e,n||null)),n=_.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function N(_,n,e,t){var o,l,u,r=_.key,i=_.type,c=n[e],f=null!=c&&!(2&c.__u);if(null===c&&null==r||f&&r==c.key&&i==c.type)return e;if(t>(f?1:0))for(o=e-1,l=e+1;o>=0||l<n.length;)if(null!=(c=n[u=o>=0?o--:l++])&&!(2&c.__u)&&r==c.key&&i==c.type)return u;return-1}function U(_,n,e){"-"==n[0]?_.setProperty(n,null==e?"":e):_[n]=null==e?"":e}function C(_,n,e,t,o){var l;_: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||U(_.style,n,"");if(e)for(n in e)t&&e[n]==t[n]||U(_.style,n,e[n])}else if("o"==n[0]&&"n"==n[1])l=n!=(n=n.replace(u,"$1")),n=n.slice(2).toLowerCase(),_.__l||(_.__l={}),_.__l[n+l]=e,e?t?e.l=t.l:(e.l=r,_.addEventListener(n,l?c:i,l)):_.removeEventListener(n,l?c:i,l);else{if("http://www.w3.org/2000/svg"==o)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 M(n){return function(e){if(this.__l){var t=this.__l[e.type+n];if(null==e.u)e.u=r++;else if(e.u<t.l)return;return t(_.event?_.event(e):e)}}}function T(n,e,t,o,l,u,r,i,c,f,s){var p,h,m,k,b,w,H,x,N,U,C,M,T,A,L,W,E,$,R,q=e.type;if(void 0!==e.constructor)return null;128&t.__u&&(c=32&t.__u)&&t.__c.__z&&(i=(u=t.__c.__z)[0],t.__c.__z=null),(p=_.__b)&&p(e);_:if("function"==typeof q)try{if(w=e.props,H="prototype"in q&&q.prototype.render,x=(p=q.contextType)&&o[p.__c],N=p?x?x.props.value:p.__:o,t.__c?2&(h=e.__c=t.__c).__g&&(h.__g|=1):(H?e.__c=h=new q(w,N):(e.__c=h=new y(w,N),h.constructor=q,h.render=z),x&&x.sub(h),h.state||(h.state={}),h.__n=o,h.__g|=8,h.__h=[],h._sb=[]),H&&null==h.__s&&(h.__s=h.state),H&&null!=q.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=v({},h.__s)),v(h.__s,q.getDerivedStateFromProps(w,h.__s))),m=h.props,k=h.state,h.__v=e,t.__c){if(H&&null==q.getDerivedStateFromProps&&w!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(w,N),e.__v==t.__v||!(4&h.__g)&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(w,h.__s,N)){e.__v!=t.__v&&(h.props=w,h.state=h.__s,h.__g&=-9),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(_){_&&(_.__=e)}),(U=h.__h).push.apply(U,h._sb),h._sb=[],h.__h.length&&r.push(h);break _}null!=h.componentWillUpdate&&h.componentWillUpdate(w,h.__s,N),H&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(m,k,b)})}else H&&null==q.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),H&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);if(h.context=N,h.props=w,h.__P=n,h.__g&=-5,C=_.__r,M=0,H)h.state=h.__s,h.__g&=-9,C&&C(e),p=h.render(h.props,h.state,h.context),(T=h.__h).push.apply(T,h._sb),h._sb=[];else do{h.__g&=-9,C&&C(e),p=h.render(h.props,h.state,h.context),h.state=h.__s}while(8&h.__g&&++M<25);h.state=h.__s,null!=h.getChildContext&&(o=v({},o,h.getChildContext())),H&&t.__c&&null!=h.getSnapshotBeforeUpdate&&(b=h.getSnapshotBeforeUpdate(m,k)),A=null!=p&&p.type===g&&null==p.key?P(p.props.children):p,i=S(n,a(A)?A:[A],e,t,o,l,u,r,i,c,f,s),e.__u&=-161,h.__h.length&&r.push(h),2&h.__g&&(h.__g&=-4)}catch(n){if(e.__v=null,c||null!=u)if(n.then){for(L=0,e.__u|=c?160:128,e.__c.__z=[],E=0;E<u.length;E++)null==($=u[E])||W||(8==$.nodeType?("$s"==$.data?(L&&e.__c.__z.push($),L++):"/$s"==$.data&&(--L&&e.__c.__z.push($),W=0==L,i=u[E]),u[E]=null):L&&(e.__c.__z.push($),u[E]=null));if(!W){for(;i&&8==i.nodeType&&i.nextSibling;)i=i.nextSibling;u[u.indexOf(i)]=null,e.__c.__z=[i]}e.__e=i}else{for(R=u.length;R--;)d(u[R]);D(e)}else e.__e=t.__e,e.__k=t.__k,n.then||D(e);_.__e(n,e,t)}else i=e.__e=F(t.__e,e,t,o,l,u,r,c,f,s);return(p=_.diffed)&&p(e),128&e.__u?void 0:i}function D(_){_&&_.__c&&(_.__c.__g|=4),_&&_.__k&&_.__k.forEach(D)}function A(n,e,t){for(var o=0;o<t.length;o++)L(t[o],t[++o],t[++o]);_.__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 P(_){return"object"!=typeof _||null==_||_.__b>0?_:a(_)?_.map(P):v({},_)}function F(n,e,t,o,l,u,r,i,c,s){var v,m,g,y,b,w,H,x,N=t.props||f,U=e.props,M=e.type;if("svg"==M?l="http://www.w3.org/2000/svg":"math"==M?l="http://www.w3.org/1998/Math/MathML":l||(l="http://www.w3.org/1999/xhtml"),null!=u)for(v=0;v<u.length;v++)if((b=u[v])&&"setAttribute"in b==!!M&&(M?b.localName==M:3==b.nodeType)){n=b,u[v]=null;break}if(null==n){if(null==M)return s.createTextNode(U);n=s.createElementNS(l,M,U.is&&U),i&&(_.__m&&_.__m(e,u),i=!1),u=null}if(null==M)N===U||i&&n.data==U||(n.data=U);else{if(u=u&&h.call(n.childNodes),!i&&null!=u)for(N={},v=0;v<n.attributes.length;v++)N[(b=n.attributes[v]).name]=b.value;for(v in N)b=N[v],"dangerouslySetInnerHTML"==v?g=b:"children"==v||v in U||"value"==v&&"defaultValue"in U||"checked"==v&&"defaultChecked"in U||C(n,v,null,b,l);for(v in x=1&t.__u,U)b=U[v],"children"==v?y=b:"dangerouslySetInnerHTML"==v?m=b:"value"==v?w=b:"checked"==v?H=b:i&&"function"!=typeof b||N[v]===b&&!x||C(n,v,b,N[v],l);if(m)i||g&&(m.__html==g.__html||m.__html==n.innerHTML)||(n.innerHTML=m.__html),e.__k=[];else if(g&&(n.innerHTML=""),("foreignObject"==M||"http://www.w3.org/1998/Math/MathML"==l&&p.test(M))&&(l="http://www.w3.org/1999/xhtml"),S("template"==M?n.content:n,a(y)?y:[y],e,t,o,l,u,r,u?u[0]:t.__k&&k(t,0),i,c,s),null!=u)for(v=u.length;v--;)d(u[v]);i||(v="value","progress"==M&&null==w?n.removeAttribute("value"):null==w||w===n[v]&&("progress"!==M||w)||C(n,v,w,N[v],l),v="checked",null!=H&&H!=n[v]&&C(n,v,H,N[v],l))}return n}function L(n,e,t){try{"function"==typeof n?("function"==typeof n.__u&&n.__u(),"function"==typeof n.__u&&null==e||(n.__u=n(e))):n.current=e}catch(n){_.__e(n,t)}}function W(n,e,t){var o,l;if(_.unmount&&_.unmount(n),!(o=n.ref)||o.current&&o.current!=n.__e||L(o,null,e),null!=(o=n.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(n){_.__e(n,e)}o.__P=null}if(o=n.__k)for(l=0;l<o.length;l++)o[l]&&W(o[l],e,t||"function"!=typeof n.type);t||d(n.__e),n.__e&&n.__e.__l&&(n.__e.__l=null),n.__e=n.__c=n.__=null}function z(_,n,e){return this.constructor(_,e)}function E(n,e){var t,o,l,u;e==document&&(e=document.documentElement),_.__&&_.__(n,e),o=(t=n&&32&n.__u)?null:e.__k,e.__k=function(_,n,e){var t,o,l,u={};for(l in n)"key"==l?t=n[l]:"ref"==l&&"function"!=typeof _?o=n[l]:u[l]=n[l];return arguments.length>2&&(u.children=arguments.length>3?h.call(arguments,2):e),m(_,u,t,o,null)}(g,null,[n]),l=[],u=[],T(e,e.__k,o||f,f,e.namespaceURI,o?null:e.firstChild?h.call(e.childNodes):null,l,o?o.__e:e.firstChild,t,u,e.ownerDocument),A(l,e.__k,u)}_={__e:function(_,n,e,t){for(var l,u,r;n=n.__;)if((l=n.__c)&&!(1&l.__g)){l.__g|=4;try{if((u=l.constructor)&&null!=u.getDerivedStateFromError&&(l.setState(u.getDerivedStateFromError(_)),r=8&l.__g),null!=l.componentDidCatch&&(l.componentDidCatch(_,t||{}),r=8&l.__g),r)return void(l.__g|=2)}catch(n){_=n}}throw o=0,_}},n=0,y.prototype.setState=function(_,n){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=v({},this.state),"function"==typeof _&&(_=_(v({},e),this.props)),_&&(v(e,_),this.__v&&(n&&this._sb.push(n),w(this)))},y.prototype.forceUpdate=function(_){this.__v&&(this.__g|=4,_&&this.__h.push(_),w(this))},y.prototype.render=g,e=[],o=0,l=function(_,n){return _.__v.__b-n.__v.__b},u=/(PointerCapture)$|Capture$/i,r=0,i=M(!1),c=M(!0);var $,R,q,I,j=Object.is,O=0,B=[],V=_,G=V.__b,J=V.__r,K=V.diffed,Q=V.__c,X=V.unmount,Y=V.__;function Z(_,n){V.__h&&V.__h(R,_,O||n),O=0;var e=R.__H||(R.__H={__:[],__h:[]});return _>=e.__.length&&e.__.push({}),e.__[_]}function __(_){return O=1,function(_,n){var e=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,_);j(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 l=e.__c.__H.__,u=e.__c.props!==_||l.every(function(_){return!_.__N});return l.some(function(_){if(_.__N){var n=_.__[0];_.__=_.__N,_.__N=void 0,j(n,_.__[0])||(u=!0)}}),o&&o.call(this,_,n,t)||u};R.__f=!0;var o=R.shouldComponentUpdate,l=R.componentWillUpdate;R.componentWillUpdate=function(_,n,e){if(4&this.__g){var u=o;o=void 0,t(_,n,e),o=u}l&&l.call(this,_,n,e)},R.shouldComponentUpdate=t}return e.__}(r_,_)}function n_(_,n){var e=Z($++,4);!V.__s&&function(_,n){return!_||_.length!==n.length||n.some(function(n,e){return!j(n,_[e])})}(e.__H,n)&&(e.__=_,e.u=n,R.__h.push(e))}function e_(){for(var _;_=B.shift();)if(_.__P&&_.__H)try{_.__H.__h.some(l_),_.__H.__h.some(u_),_.__H.__h=[]}catch(n){_.__H.__h=[],V.__e(n,_.__v)}}V.__b=function(_){R=null,G&&G(_)},V.__=function(_,n){_&&n.__k&&n.__k.__m&&(_.__m=n.__k.__m),Y&&Y(_,n)},V.__r=function(_){J&&J(_),$=0;var n=(R=_.__c).__H;n&&(q===R?(n.__h=[],R.__h=[],n.__.some(function(_){_.__N&&(_.__=_.__N),_.u=_.__N=void 0})):(n.__h.some(l_),n.__h.some(u_),n.__h=[],$=0)),q=R},V.diffed=function(_){K&&K(_);var n=_.__c;n&&n.__H&&(n.__H.__h.length&&(1!==B.push(n)&&I===V.requestAnimationFrame||((I=V.requestAnimationFrame)||o_)(e_)),n.__H.__.some(function(_){_.u&&(_.__H=_.u),_.u=void 0})),q=R=null},V.__c=function(_,n){n.some(function(_){try{_.__h.some(l_),_.__h=_.__h.filter(function(_){return!_.__||u_(_)})}catch(e){n.some(function(_){_.__h&&(_.__h=[])}),n=[],V.__e(e,_.__v)}}),Q&&Q(_,n)},V.unmount=function(_){X&&X(_);var n,e=_.__c;e&&e.__H&&(e.__H.__.some(function(_){try{l_(_)}catch(_){n=_}}),e.__H=void 0,n&&V.__e(n,e.__v))};var t_="function"==typeof requestAnimationFrame;function o_(_){var n,e=function(){clearTimeout(t),t_&&cancelAnimationFrame(n),setTimeout(_)},t=setTimeout(e,35);t_&&(n=requestAnimationFrame(e))}function l_(_){var n=R,e=_.__c;"function"==typeof e&&(_.__c=void 0,e()),R=n}function u_(_){var n=R;_.__c=_.__(),R=n}function r_(_,n){return"function"==typeof n?n(_):n}var i_=0;function c_(n,e,t,o,l,u){e||(e={});var r,i,c=e;if("ref"in c&&"function"!=typeof n)for(i in c={},e)"ref"==i?r=e[i]:c[i]=e[i];var f={type:n,props:c,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--i_,__i:-1,__u:0,__source:l,__self:u};return _.vnode&&_.vnode(f),f}export{n_ as A,E as G,g as k,c_ as u,__ as y};
@@ -21,11 +21,11 @@
21
21
  "@babel/plugin-syntax-import-attributes": "7.28.6",
22
22
  "@babel/plugin-transform-react-jsx": "7.28.6",
23
23
  "@jsenv/assert": "4.5.6",
24
- "@jsenv/core": "41.2.4",
24
+ "@jsenv/core": "41.2.5",
25
25
  "@jsenv/plugin-preact": "1.7.33",
26
- "@jsenv/plugin-bundling": "2.10.10",
26
+ "@jsenv/plugin-bundling": "2.10.11",
27
27
  "@jsenv/plugin-minification": "1.7.3",
28
- "@jsenv/eslint-config-relax": "1.8.5",
28
+ "@jsenv/eslint-config-relax": "1.8.6",
29
29
  "@jsenv/test": "3.7.21",
30
30
  "eslint": "9.39.2",
31
31
  "open": "11.0.0",
@@ -13,6 +13,6 @@
13
13
  "etag": "\"88fc-sW54MGPHJbdQxBNtXuUQj810Pc8\""
14
14
  }
15
15
  },
16
- "createdMs": 1776004565805,
17
- "lastModifiedMs": 1776004565805
16
+ "createdMs": 1777650491093,
17
+ "lastModifiedMs": 1777650491093
18
18
  }
@@ -13,6 +13,6 @@
13
13
  "etag": "\"9d7-jfzhaI9/k4Gws+S7BznSzZvrebU\""
14
14
  }
15
15
  },
16
- "createdMs": 1776004565789,
17
- "lastModifiedMs": 1776004565789
16
+ "createdMs": 1777650491071,
17
+ "lastModifiedMs": 1777650491071
18
18
  }
@@ -29,6 +29,6 @@
29
29
  "etag": "\"fd66c-Fhg2L6vSeLubjxc8SZjLBYd7stk\""
30
30
  }
31
31
  },
32
- "createdMs": 1776004566184,
33
- "lastModifiedMs": 1776004566184
32
+ "createdMs": 1777650491631,
33
+ "lastModifiedMs": 1777650491631
34
34
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "2.11.13"
2
+ "version": "2.11.14"
3
3
  }
@@ -22,11 +22,11 @@
22
22
  "@babel/plugin-syntax-import-attributes": "7.28.6",
23
23
  "@babel/plugin-transform-react-jsx": "7.28.6",
24
24
  "@jsenv/assert": "4.5.6",
25
- "@jsenv/core": "41.2.4",
26
- "@jsenv/plugin-react": "1.7.36",
27
- "@jsenv/plugin-bundling": "2.10.10",
25
+ "@jsenv/core": "41.2.5",
26
+ "@jsenv/plugin-react": "1.7.37",
27
+ "@jsenv/plugin-bundling": "2.10.11",
28
28
  "@jsenv/plugin-minification": "1.7.3",
29
- "@jsenv/eslint-config-relax": "1.8.5",
29
+ "@jsenv/eslint-config-relax": "1.8.6",
30
30
  "@jsenv/test": "3.7.21",
31
31
  "eslint": "9.39.2",
32
32
  "open": "11.0.0",