potatejs 0.25.0 → 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -4
- package/dist/astro-render.js +1 -1
- package/dist/index.js +4 -4
- package/dist/ssr-vite.js +1 -1
- package/package.json +6 -1
package/README.md
CHANGED
|
@@ -50,14 +50,20 @@ export default defineConfig({
|
|
|
50
50
|
});
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
Now you can use
|
|
53
|
+
Now, you can use not only Astro components (`.astro`) but also Potate JSX components (`.jsx` or `.tsx`).
|
|
54
54
|
|
|
55
|
-
> **Note:** Potate in Astro Islands
|
|
55
|
+
> **Note:** Potate components in Astro Islands
|
|
56
56
|
>
|
|
57
|
-
> * **No directive (Server Only)**: Rendered as just static HTML tags. It results in zero client-side JavaScript. (I used to think there wasn't much point in writing static content in JSX instead of just using
|
|
57
|
+
> * **No directive (Server Only)**: Rendered as just static HTML tags. It results in zero client-side JavaScript. (I used to think there wasn't much point in writing static content in JSX components instead of just using Astro components. It seemed like standard Astro components was more than enough. **However, I've realized one major advantage:** [SSR Emotion for Astro](docs/SSR_EMOTION_FOR_ASTRO.md) — the ultimate SSR Zero-Runtime CSS-in-JS solution, seamlessly integrated with Astro. By using Potate JSX components, your styles are automatically extracted into static CSS during the build process. This means you can enjoy the full power of CSS-in-JS while still shipping zero bytes of JS to the browser. In this regard, it's a significant upgrade over standard Astro components.)
|
|
58
58
|
> * `client:only="potate"` **(Client Only)**: This is the mode where the relationship between Potate and Astro is the clearest. (In this context, Potate plays the same role as React in other integrations.) It skips server-side rendering and runs entirely in the browser.
|
|
59
59
|
>
|
|
60
|
-
> * `client:load`(and others like `client:visible` or `client:idle`) **(SSR Hydration)**:
|
|
60
|
+
> * `client:load`(and others like `client:visible` or `client:idle`) **(SSR Hydration)**: Despite its cool and flashy name, "SSR Hydration" is not that complicated: it just creates a static HTML skeleton first, and once the JS is ready, the engine takes over the DOM as if it had been there from the start. If you are particular about the visual transition—like ensuring there is no layout shift by pre-setting an image's height—you might want to take control to make the swap feel completely natural.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
#### LIVE DEMO with Astro
|
|
64
|
+
|
|
65
|
+
[Here](https://stackblitz.com/edit/github-cywxrcwm-3n79zz3t?file=src%2Fcomponents%2FPotate.jsx
|
|
66
|
+
) is a live demo with Astro on StackBlitz.
|
|
61
67
|
|
|
62
68
|
|
|
63
69
|
### Vite
|
|
@@ -299,6 +305,7 @@ For the above example, the Brahmos output is 685 bytes, compared to 824 bytes fr
|
|
|
299
305
|
- [x] ⭐⭐⭐ Vite Plugin to transpile JSX to tagged templates
|
|
300
306
|
- [x] ⭐⭐⭐ Esbuild Plugin to transpile JSX to tagged templates
|
|
301
307
|
- [x] ⭐⭐⭐ [Potate Native Component(PNC)](docs/POTATE_NATIVE_COMPONENT.md)
|
|
308
|
+
- [x] ⭐⭐⭐ [SSR Emotion for Astro](docs/SSR_EMOTION_FOR_ASTRO.md)
|
|
302
309
|
- [x] ⭐⭐⭐ [reacty(ReactComponent) API](docs/API.md)
|
|
303
310
|
- [x] ⭐⭐⭐ [watch(resource) API](docs/API.md)
|
|
304
311
|
- [x] ⭐ The Lanes Light **(Though I haven't cleaned up the no-longer-needed TRANSITION_STATE_TIMED_OUT yet.)**
|
|
@@ -314,6 +321,7 @@ For the above example, the Brahmos output is 685 bytes, compared to 824 bytes fr
|
|
|
314
321
|
- [x] ⭐ [Cleanup functions for refs](https://react.dev/blog/2024/12/05/react-19#cleanup-functions-for-refs)
|
|
315
322
|
- [x] ⭐ `useImperativeHandle` hook
|
|
316
323
|
- [x] ⭐ Handle server rendering(SSR/SSG/renderToString)
|
|
324
|
+
- [x] ⭐ `useId` hook
|
|
317
325
|
- [ ] ⭐ `use(context)` API
|
|
318
326
|
- [ ] ⭐ [use(store) API](https://react.dev/blog/2025/04/23/react-labs-view-transitions-activity-and-more#concurrent-stores)
|
|
319
327
|
- [ ] ⭐ [useEffectEvent hook](https://react.dev/reference/react/useEffectEvent)
|
package/dist/astro-render.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var R=Promise.resolve();var x=Symbol.for("tag"),A=Symbol.for("tag-element"),b=Symbol.for("class-component"),l=Symbol.for("functional-component");function u({nodeType:e}){return e===A}function f({nodeType:e}){return e===x}function m({nodeType:e}){return e===b||e===l}function d(e){return typeof e=="string"||typeof e=="number"}import g from"potatejs";var O={area:1,base:1,br:1,col:1,embed:1,hr:1,img:1,input:1,link:1,meta:1,param:1,source:1,track:1,wbr:1};function E(e){return typeof e!="string"?String(e):e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function T(e){if(!e)return"";let t="";for(let o in e){let n=e[o];if(o==="children"||o==="key"||o==="ref"||n===!1||n===null||n===void 0)continue;let r=o==="className"?"class":o;n===!0?t+=` ${r}`:t+=` ${r}="${E(n)}"`}return t}function a(e){if(e==null||typeof e=="boolean")return"";if(d(e))return E(e);if(e.innerHTML
|
|
1
|
+
var R=Promise.resolve();var x=Symbol.for("tag"),A=Symbol.for("tag-element"),b=Symbol.for("class-component"),l=Symbol.for("functional-component");function u({nodeType:e}){return e===A}function f({nodeType:e}){return e===x}function m({nodeType:e}){return e===b||e===l}function d(e){return typeof e=="string"||typeof e=="number"}import g from"potatejs";var O={area:1,base:1,br:1,col:1,embed:1,hr:1,img:1,input:1,link:1,meta:1,param:1,source:1,track:1,wbr:1};function E(e){return typeof e!="string"?String(e):e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function T(e){if(!e)return"";let t="";for(let o in e){let n=e[o];if(o==="children"||o==="key"||o==="ref"||n===!1||n===null||n===void 0)continue;let r=o==="className"?"class":o;n===!0?t+=` ${r}`:t+=` ${r}="${E(n)}"`}return t}function a(e){if(e==null||typeof e=="boolean")return"";if(d(e))return E(e);if(e.innerHTML)return String(e.innerHTML);if(Array.isArray(e))return e.map(a).join("");if(m(e)){let t=e.type,o=e.props||{};if(t.prototype&&t.prototype.isReactComponent||t.__isReactCompat||typeof t=="object"&&t!==null)return"";if(typeof t=="function"){let n,{setCurrentComponentFiber:r,functionalComponentInstance:i}=g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED||{};if(r&&i){let c={nodeInstance:i(t),root:{updateType:"sync"}};r(c);try{n=t(o)}finally{r(null)}}else n=t(o);return a(n)}}if(u(e)){let t=e.type,o=e.props||{},n=`<${t}${T(o)}`;return O[t]?n+=" />":(n+=">",o.children&&(n+=a(o.children)),n+=`</${t}>`),n}if(f(e)){let{template:t,values:o}=e,n=t.strings,r=t.getPartsMeta(),i=n[0];for(let s=0;s<o.length;s++){let c=o[s];r[s].isAttribute?i+=T(c):i+=a(c),i+=n[s+1]}return i}return""}var $={name:"potate",check(e){return typeof e=="function"},async renderToStaticMarkup(e,t,o){let n={};if(o)for(let[y,_]of Object.entries(o))n[y]={innerHTML:_};let r={nodeType:l,type:e,props:{...t,children:n.default}},i=a(r),s="@emotion/server",{extractCritical:c}=await import(s),{ids:p,css:N}=c(i);return{html:`<style data-emotion="css ${p.join(" ")}">${N}</style>${i}`}}};export{$ as default};
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var wo=Object.defineProperty;var Lo=(e,t)=>{for(var n in t)wo(e,n,{get:t[n],enumerable:!0})};var tn={};Lo(tn,{Children:()=>bo,Component:()=>N,Fragment:()=>Br,PureComponent:()=>W,StrictMode:()=>Hr,Suspense:()=>Oe,SuspenseList:()=>V,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Gr,cloneElement:()=>Zt,createContext:()=>Dt,createElement:()=>Eo,createPortal:()=>_o,createRef:()=>oo,createRoot:()=>Po,forwardRef:()=>lt,html:()=>No,isValidElement:()=>Do,jsx:()=>jr,jsxDev:()=>zr,jsxs:()=>$r,lazy:()=>Co,memo:()=>Jt,reacty:()=>Kr,render:()=>Qt,startTransition:()=>Ie,unmountComponentAtNode:()=>xo,unstable_batchedUpdates:()=>Yr,unstable_deferredUpdates:()=>nt,unstable_syncUpdates:()=>Te,use:()=>Oo,useCallback:()=>Bn,useContext:()=>$n,useDebugValue:()=>jn,useDeferredValue:()=>Gn,useEffect:()=>vt,useImperativeHandle:()=>Kn,useLayoutEffect:()=>it,useMemo:()=>Ut,useReducer:()=>Hn,useRef:()=>kn,useState:()=>Ot,useTransition:()=>zn,watch:()=>ft});var ke=Symbol.for("react.element"),cn=Symbol.for("react.forward_ref"),ln="{{brahmos}}",pn={key:1,ref:1},un={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",tabIndex:"tabindex"},ht={doubleclick:"dblclick"},dn=typeof Symbol!="undefined"?/fil|che|rad/i:/fil|che|ra/i,fn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,Et="http://www.w3.org/1999/xlink",Tn=100,d="__brahmosData",He="__brahmosLastArrayDom",Be="__rootFiber",A="sync",y="deferred",ye="js",U="immediate_action",C="transition",Ye=0,yt=1,R=2,hn="initial",X="start",le="suspended",ge="resolved",gt="completed",K="timedOut";function En(e){return e[0]==="o"&&e[1]==="n"}function Ke(e){let t=fn.test(e)?e.replace(/[A-Z0-9]/,"-$&").toLowerCase():e;return un[e]||t}function Ct(e){return e.nodeName.toLowerCase()}function yn(e,t){return t&&(e=e.replace(/Capture$/,"")),e.replace("on","").toLowerCase()}function Q(e){return e==null}var ko=0;function j(){return ko++}function gn(){return Date.now()}function je(e){e.__brahmosData={events:{}}}function pe(e,t){if(!("key"in e||"ref"in e&&!t))return e;let n={},o;for(o in e)o!=="key"&&(o!=="ref"||t)&&(n[o]=e[o]);return n}function Ce(e,t){let n=Object.keys(e);for(let o=0,r=n.length;o<r;o++){let s=n[o],a=e[s];t(s,a)}}function $e(e,t){for(let n in e)t(n,e[n])}function Se(e){Array.isArray(e)||(e=[e]);for(let t=e.length-1;t>=0;t--)e[t].remove()}function $(e,t){return t=t||0,Array.prototype.slice.call(e,t)}function Ho(e){let t=e instanceof NodeList;if(e instanceof Node)return e;if(Array.isArray(e)||t){let n=document.createDocumentFragment(),o=0;for(;e[o];)n.appendChild(e[o]),t||(o+=1);return n}return document.createTextNode(e)}function ze(e,t,n){let o=Ho(n),r;return Array.isArray(n)?r=n:o instanceof DocumentFragment?r=$(o.childNodes):r=n,e.insertBefore(o,t),r}function ue(e,t){return t?t.nextSibling:e.firstChild}function L(e,t,n){if(e[t])return e[t].apply(e,n)}function Cn(e,t){let n=t===0?e.firstChild:e.childNodes[t],o=document.createTextNode("");return e.insertBefore(o,n),o}var Ge=Promise.resolve();function Ae(e){return Ge.then(e)}function Ne(){return j()+"-"+Math.random()*1e6}function Sn(e){let t="pending",n,o=e.then(r=>{t="success",n=r},r=>{t="error",n=r});return{read(){if(t==="pending")throw o;if(t==="error")throw n;if(t==="success")return n}}}function We(e){return e[d].mounted}function St(e){return e.displayName||e.name}function de({children:e}){return e}var Ve={transitionId:"",tryCount:0,transitionState:K},v={transitionId:Ne(),tryCount:0,transitionState:K};function Bo(e){let{transitionState:t}=e;return t===X||t===ge||t===K}function _e(e){let{transitionState:t}=e;return t===gt||t===K}function An(e){let{transitionState:t}=e;t!==K&&t!==le&&(e.isPending&&!e.isRunningAsyncAction?(e.clearTimeout(),e.updatePendingState(!1,C)):e.transitionState=gt)}function Z(e,t){return t=t||Ve,e.root.currentTransition||t}function At(e){let{pendingTransitions:t}=e;return t.find(Bo)}var Nt=Symbol.for("tag"),J=Symbol.for("tag-element"),D=Symbol.for("class-component"),_t=Symbol.for("functional-component"),z=Symbol.for("attribute");function G({nodeType:e}){return e===J}function ee({nodeType:e}){return e===Nt}function B(e){return G(e)||ee(e)}function x({nodeType:e}){return e===D||e===_t}function Y(e){return typeof e=="string"||typeof e=="number"}function qe(e){return!(Q(e)||typeof e=="boolean")}function xt(e,t){let n=e&&e.key;return n===void 0?t:n}function Xe(e,t,n){return{$$typeof:ke,nodeType:null,key:n,ref:null,portalContainer:null,type:null,props:e,values:t,template:null}}var Rt=Symbol.for("potate.currentFiber"),Ft=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:{};Ft[Rt]||(Ft[Rt]={current:null});var _n=Ft[Rt];function xe(e){_n.current=e}function _(){return _n.current}function Re(e){return e===y?"lastDeferredCompleteTime":"lastCompleteTime"}function te(e){return e===y?"deferredUpdateTime":"updateTime"}function k(e,t){let n=te(t),o=j();for(;e;)e[n]=o,e=e.parent}function xn(e,t,n){t===n?n.child=e:t.sibling=e,e.parent=n}function F(e,t){e.hasUncommittedEffect=t,e.root.hasUncommittedEffect=!0}function Qe(e,t,n,o){let{root:r,node:s,part:a,nodeInstance:i,child:c}=e,l=te(r.updateType);return t?(t.node=s,t.part=a,t.createdAt=j()):(t=fe(r,s,a),Yo(e,t)),e.shouldTearDown=!1,t.nodeInstance=i,t.child=c,t[l]=o[l],t.isReactCompat=e.isReactCompat,t.refCleanup=e.refCleanup,xn(t,n,o),t}function Rn(e,t){return e===t?e.child:e.sibling}function ne(e){let{child:t,root:n}=e;if(n.updateType===A)return;let o;for(;t;){let{alternate:r}=t;o=Qe(t,r,o||e,e),t=t.sibling}}function Ze(e){let t=[];return{updateType:y,updateSource:ye,cancelSchedule:null,domNode:e,forcedUpdateWith:null,current:null,wip:null,child:null,retryFiber:null,currentTransition:null,hasUncommittedEffect:!1,pendingTransitions:[],tearDownFibers:[],postCommitEffects:[],batchUpdates:{},lastDeferredCompleteTime:0,lastCompleteTime:0,deferredUpdateTime:0,updateTime:0,afterRender(n){t.includes(n)||t.push(n)},callRenderCallbacks(){for(let n=0,o=t.length;n<o;n++)t[n]()},resetRenderCallbacks(){t=[]}}}function fe(e,t,n){return t&&t.portalContainer&&(n.parentNode=t.portalContainer),{node:t,nodeInstance:null,root:e,parent:null,child:null,sibling:null,part:n,alternate:null,context:null,childFiberError:null,isSvgPart:!1,isReactCompat:!1,deferredUpdateTime:0,updateTime:0,processedTime:0,createdAt:j(),shouldTearDown:!1,hasUncommittedEffect:Ye,refCleanup:null}}function Yo(e,t){e&&(e.alternate=t),t.alternate=e}function oe(e,t,n,o,r){let{root:s}=o,a=te(s.updateType),i;n&&!Q(n.node)&&!Q(e)&&Ko(e,n.node)?(i=Qe(n,n.alternate,o,r),i.node=e,i.part=t):(i=fe(s,e,t),n&&re(n)),xn(i,o,r),i.processedTime=0,i[a]=r[a],i.context=r.context,i.isSvgPart=r.isSvgPart;let c=e&&e.type&&e.type.__isReactCompat;return i.isReactCompat=c||r.isReactCompat||!1,i}function Ko(e,t){return Y(e)&&Y(t)||e.nodeType===z||Array.isArray(e)&&Array.isArray(t)||(x(e)||G(e))&&e.type===t.type||ee(e)&&e.template===t.template}function jo(e,t,n){return e&&e[n]>=t}function Nn(e,t,n){if(e){for(;e&&!jo(e,t,n);)e=e.sibling;return e}}function Fn(e,t,n,o){let r=Nn(e.child,n,o);if(r)return r;let s;for(;!(s=Nn(e.sibling,n,o));)if(e=e.parent,e===t)return e;return s}function M(e){return e[d].fiber}function In(e){let{root:t,child:n}=e;n&&n.createdAt>t.lastCompleteTime&&(e.child=n.alternate)}function re(e){e.shouldTearDown=!0,e.root.tearDownFibers.push(e)}var et=ye,Je=Ve;function se(){return et}function It(){return Je}function I(e,t){et=e,t(),et=ye}function ie(e,t){let n=Je;Je=e,I(C,t),Je=n}function bn(e){let t=e.currentTransition&&e.currentTransition.isRunningAsyncAction;return e.updateSource===U||!!t}function $o(){return et===C}function Fe(){return $o()?y:A}function tt(e){return e===y?"pendingDeferredUpdates":"pendingSyncUpdates"}function me(e){let{root:{updateType:t},nodeInstance:n}=e,o=n[d],r=tt(t);if(t===A)return o[r];let s=Z(e,null).transitionId;return o[r].filter(a=>a.transitionId===s)}function nt(e){ie(v,e)}function Te(e){I(U,e)}function zo(e,t){let{root:n}=e;for(;e.nodeInstance!==t;)if(e=e.parent,e===n)return null;return e}function ot(e,t){let n,o,r=!0,s=e[d],a=_();if(a){let{renderCount:l}=s;if(l>50)throw new Error("Too many rerender. Check your setState call, this may cause an infinite loop.");let{root:p}=a;p.retryFiber=zo(a,e),n=p.updateType,o=p.currentTransition||Ve,r=!1}else s.renderCount=0,n=Fe(),o=It();let i=tt(n),c=t(o.transitionId);return s[i].push(c),r}var Go=1;function bt(e){return function(t){let n=M(e),{updateType:o}=n.root;e.context!==t&&(e[d].isDirty=!0,k(n,o))}}function Dt(e){let t=`cC${Go++}`;class n extends N{constructor(s){super(s),this.subs=[]}shouldComponentUpdate(s){let{value:a}=this.props;return a!==s.value&&this.subs.forEach(i=>i(s.value)),!0}sub(s){let{subs:a}=this,i=bt(s);a.push(i);let{componentWillUnmount:c}=s;s.componentWillUnmount=()=>{a.splice(a.indexOf(i),1),c&&c()}}render(){return this.props.children}}n.__ccId=t;class o extends N{render(){return this.props.children(this.context)}}return n.id=t,n.defaultValue=e,n.Provider=n,n.Consumer=o,o.contextType=n,n}function Pn(){return _().nodeInstance}function On(e){let{renderCount:t}=e[d];e.deferredHooks=e.syncHooks.map((n,o)=>Array.isArray(n)?[...n]:n.transitionId?n:n.hasOwnProperty("current")&&t>1?e.deferredHooks[o]||n:{...n})}function Un(e,t){let{syncHooks:n,deferredHooks:o}=t;return e===A?n:o}function rt(e){let{nodeInstance:t,root:{updateType:n}}=e;return Un(n,t)}function Dn(e,t,n){return e===y&&!n.deferredHooks.length&&On(n),Un(e,n)[t]}function vn(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!0;return!1}function Wo(e,t,n){let o=typeof t=="function";(se()===U||o||!Object.is(t,n))&&w(e)}function Pt(e){return!1}function Mn(e){return e}function st(e,t,n){let o=_(),{nodeInstance:r}=o,{pointer:s}=r,a=rt(o),i=a[s];return(!i||t(i))&&(i=e(),a[s]=i),r.pointer+=1,n(i)}function wn(){let e=_(),{nodeInstance:t,root:{updateType:n}}=e;t.pointer=0,n===y&&On(t),me(e).forEach(r=>r.updater())}function Ln(e,t){let n=Pn(),{pointer:o}=n;return st(()=>(typeof e=="function"&&(e=e()),[e,s=>{let a=Fe(),c=Dn(A,o,n)[0];ot(n,p=>({transitionId:p,updater(){let f=Dn(a,o,n);f[0]=t(s,f[0])}}))&&Wo(n,s,c)}]),Pt,Mn)}function Ot(e){return Ln(e,(t,n)=>(typeof t=="function"&&(t=t(n)),t))}function kn(e){return st(()=>({current:e}),Pt,Mn)}function Hn(e,t,n){return Ln(n?()=>n(t):t,(r,s)=>e(s,r))}function Ut(e,t){return st(()=>({value:e(),dependencies:t}),s=>vn(t,s.dependencies),s=>s.value)}function Bn(e,t){return Ut(()=>e,t)}function Yn(e,t){let n=_(),{nodeInstance:o}=n,{pointer:r}=o,s=rt(n),a=s[r]||{animationFrame:null,cleanEffect:null},i={...a,isDependenciesChanged:vn(t,a.dependencies),dependencies:t,effect(){i.isDependenciesChanged&&e(i)}};s[r]=i,o.pointer+=1}function vt(e,t){Yn(n=>{cancelAnimationFrame(n.animationFrame),n.animationFrame=requestAnimationFrame(()=>{setTimeout(()=>{n.cleanEffect=e()})})},t)}function it(e,t){Yn(n=>{n.cleanEffect=e()},t)}function Kn(e,t,n){it(()=>{if(typeof e=="function"){let o=e(t());return typeof o=="function"?o:()=>e(null)}else if(e!=null)return e.current=t(),()=>{e.current=null}},n?n.concat([e]):void 0)}function jn(){}function $n(e){let{nodeInstance:t,context:n}=_(),{id:o,defaultValue:r}=e,s=n[o],a=s?s.props.value:r;return it(()=>{if(s){let{subs:i}=s,c=bt(t);return i.push(c),()=>{i.splice(i.indexOf(c),1)}}},[]),t.context=a,a}function Ie(e){let t={transitionId:Ne(),transitionState:X,pendingSuspense:[],tryCount:0},n;ie(t,()=>{n=e()}),n&&typeof n.then=="function"&&n.then(null,o=>{console.error("Uncaught error in transition:",o)})}function zn(){let e=Pn();return st(()=>{let t={transitionId:Ne(),tryCount:0,isPending:!1,transitionTimeout:null,isRunningAsyncAction:!1,asyncActionCount:0,pendingSuspense:[],transitionState:hn,clearTimeout(){clearTimeout(t.transitionTimeout)},updatePendingState(n,o){t.isPending=n,e[d].isDirty=!0;let r=()=>{w(e)};o===C?ie(t,r):I(o,r)},startTransition(n){let o=se(),{root:r}=M(e);t.transitionState=X,t.pendingSuspense=[],t.isRunningAsyncAction=!1,t.clearTimeout();let s;ie(t,()=>{s=n()});let a=r.lastDeferredCompleteTime<r.deferredUpdateTime;s&&typeof s.then=="function"?(t.asyncActionCount=(t.asyncActionCount||0)+1,t.isRunningAsyncAction=!0,t.updatePendingState(!0,C),ae(r),s.then(()=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o))},i=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o)),console.error("Uncaught error in transition:",i)})):a&&t.updatePendingState(!0,o)}};return t},Pt,({startTransition:t,isPending:n})=>[n,t])}function Gn(e,t){let[n,o]=Ot(t!==void 0?t:e);return vt(()=>{Ie(()=>{o(e)})},[e]),n}function Wn(e){let t=rt(e);for(let n=0,o=t.length;n<o;n++){let r=t[n];r.effect&&r.effect()}}function at(e,t){let n=rt(e);for(let o=0,r=n.length;o<r;o++){let s=n[o];s.cleanEffect&&(s.isDependenciesChanged||t)&&s.cleanEffect(),s.clearTimeout&&t&&s.clearTimeout()}}function be(e){return{syncHooks:[],deferredHooks:[],context:void 0,pointer:0,__render(t){wn();let n=e(t);return this[d].nodes=n,n},__unmount:new Map,[d]:{pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,isDirty:!1,mounted:!1,renderCount:0}}}var Vo=Object.prototype.hasOwnProperty;function qo(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++)if(!Vo.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Mt=qo;function Xo(e){let{root:t}=e;for(;(e=e.parent)&&!(e.nodeInstance instanceof N&&(e.nodeInstance.componentDidCatch||e.node.type.getDerivedStateFromError));)if(e===t)return null;return e}function Qo(e){let t="";for(;e;){let{node:n}=e;n&&x(n)&&n.type!==de&&(t+=` at ${St(n.type)}
|
|
2
|
-
`),e=e.parent}return{componentStack:t}}function
|
|
3
|
-
${O.componentStack}`;console.error(q),P.childFiberError={error:g,errorInfo:O},Vn(P)}else throw g;return}finally{xe(null);let g=u[d];if(m&&l){let{committedValues:P}=g;Object.assign(u,P)}}}if(f||p){let{child:h}=e,{nodes:g}=S;!h||h.node!==g?(oe(g,n,h,e,e),F(e,R)):f||ne(e)}else ne(e)}function Xn(e){let{node:t,alternate:n,isReactCompat:o}=e,r=n&&n.node;(!o||t!==r)&&F(e,R)}function Lt(e,t){let{type:n}=e,o=t?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n);return je(o),{fragment:[o],domNodes:[o],parts:[{previousSibling:null,parentNode:o,isNode:!0}]}}function er(e){return!!e&&e.nodeType===8&&e.textContent===ln}var De=class{constructor(t,n){this.templateResult=t,t.create(n),this.fragment=this.createNode(n),this.parts=this.getParts(),this.domNodes=$(this.fragment.childNodes),this.patched=!1}createNode(t){let{template:n,svgTemplate:o}=this.templateResult,r=t?o:n;return document.importNode(r.content,!0)}getParts(){let{fragment:t,templateResult:n}=this,{partsMeta:o}=n,r=[],s=t.querySelectorAll("*");for(let a=0,i=o.length;a<i;a++){let c=o[a],{isAttribute:l,attrIndex:p,refNodeIndex:f,prevChildIndex:m,hasExpressionSibling:u}=c,T=s[f];if(l)c.tagAttrs||(c.tagAttrs=$(T.attributes)),r.push({isAttribute:!0,tagAttrs:c.tagAttrs,domNode:T,attrIndex:p}),je(T);else{T=T||t;let S=m!==-1,E,h=T.childNodes[m+1];S&&er(h)&&Se(h),S?u?E=Cn(T,m):E=T.childNodes[m]:E=null,r.push({isNode:!0,parentNode:T,previousSibling:E})}}return r}patchParts(t){let{parts:n}=this,{parentNode:o,previousSibling:r}=t;if(!this.patched){for(let s=0,a=n.length;s<a;s++){let i=n[s];i.isNode&&i.parentNode instanceof DocumentFragment&&(i.parentNode=o,i.previousSibling=i.previousSibling||r)}this.patched=!0}}};function tr(e,t,n){let o=e.lastIndexOf(t);return n<=o}function nr(e,t){return{nodeType:z,props:e,ref:t}}function or(e,t,n){let o=n,{isReactCompat:r}=n,s=n.child;for(let a=0,i=e.length;a<i;a++){let c=e[a],l=t[a],p;if(c.isAttribute){let{domNode:f}=c,m={},u;for(;c&&f===c.domNode;)(r?Ce:$e)(t[a],(S,E)=>{let h=c,g=!1;if(r){let P=Ke(S);g=tr(h.tagAttrs,P,h.attrIndex)}!g&&!pn[S]?m[S]=E:S==="ref"&&(u=E)}),c=e[++a];a--,c=e[a],p=nr(m,u)}else c.isNode&&(p=l);o=oe(p,c,s,o,n),s=s&&s.sibling}}function kt(e){let{node:t}=e,{part:n,alternate:o,parent:{context:r}}=e,s=o&&o.node,{values:a,nodeType:i}=t,c=i===J,l=e.isSvgPart||t.type==="svg";e.isSvgPart=l;let{nodeInstance:p}=e;p||(p=c?Lt(t,l):new De(t.template,l),e.nodeInstance=p),c||p.patchParts(n),t!==s?c?oe(t.props.children,p.parts[0],e.child,e,e):or(p.parts,a,e):ne(e),F(e,R),e.context=r}function Qn(e,t){let{type:n}=t,o=Ct(t);return ht[e]?ht[e]:/^change(textarea|input)/i.test(e+o)&&!dn.test(n)?"input":e}function Ht(e){let{type:t}=e,n=Ct(e);if(n==="input"&&(t==="radio"||t==="checkbox"))return"checked";if(n==="input"||n==="select"||n==="textarea")return"value"}function Zn(e){let t=Ht(e);if(!t)return;let n=e[`${t}Prop`],o=e[t];n!==void 0&&n!==o&&(e[t]=n)}function Jn(e,t,n,o){e==="checked"?n==="checked"?(t.checked=o,t.checkedProp=o):n==="defaultChecked"&&t.checkedProp===void 0?t.checked=o:t[n]=o:e==="value"&&(n==="value"?(t.value=o,t.valueProp=o):n==="defaultValue"&&t.valueProp===void 0?t.value=o:t[n]=o)}function eo(e,t,n){let o=e.__brahmosData.events,r=o[t];return r?(r.handler=n,r.patched):(r=o[t]={handler:n,patched:null},r.patched=function(s){r.handler&&Te(()=>{r.handler.call(this,s)})},r.patched)}function no(e,t,n,o){t=t||{},Ce(e,(r,s)=>{let a=t[r];s!==a&&o(r,s,a)}),Ce(t,(r,s)=>{e[r]===void 0&&s!==void 0&&o(r,n,s)})}function to(e,t,n,o,r,s){if(t==="children"||t==="key"||t==="ref")return;if(En(t)){let i=!1;s&&(i=t.substr(-7)==="Capture"&&t.substr(-14,7)==="Pointer");let c=yn(t,i);s&&(c=Qn(c,e));let l=eo(e,t,n);!s&&o===void 0?n?e.addEventListener(c,l,i):e.removeEventListener(c,l,i):o&&!n?e.removeEventListener(c,l,i):!o&&n&&e.addEventListener(c,l,i)}else if(t==="style")if(s){let{style:i}=e;no(n||{},o,"",(c,l)=>{c[0]==="-"?i.setProperty(c,l):i[c]=typeof l=="number"&&mn.test(c)===!1?l+"px":l})}else e.style.cssText=n||"";else if(t==="dangerouslySetInnerHTML"){if(s){let i=o&&o.__html,c=n&&n.__html;c!==i&&(e.innerHTML=c==null?"":c)}}else if(t in e&&!r){let i=s?Ht(e):null;i?Jn(i,e,t,n):e[t]=n==null?"":n}else{s&&(t=Ke(t));let i=t;r&&t.startsWith("xlink")&&(i=t.replace(/^xlink:?/,""));let c=n==null||n===!1;t!==i?(i=i.toLowerCase(),c?e.removeAttributeNS(Et,i):e.setAttributeNS(Et,i,n)):c?e.removeAttribute(t):e.setAttribute(t,n)}}function Bt(e,t,n,o,r){r?(no(t,n,null,(s,a,i)=>{to(e,s,a,i,o,r)}),Zn(e)):$e(t,(s,a)=>{to(e,s,a,void 0,o,!1)})}function lt(e){function t(n){return e(pe(n,!1),n.ref)}return t.__isForwardRef=!0,t.$$typeof=cn,t}function oo(){return{current:null}}function ce(e,t){if(typeof e=="function"){let n=e(t);return typeof n=="function"?n:void 0}else typeof e=="object"&&(e.current=t)}function rr(e){let{node:t,alternate:n}=e,o=e.part,{parentNode:r,previousSibling:s}=o,a=ue(r,s);n&&a?a.nodeValue=t:ze(r,a,t)}function sr(e){for(;e.child&&e.node&&!B(e.node);)e=e.child;return e}function ro(e,t){let{domNodes:n}=t;e[He]=n[n.length-1]}function so(e,t){if(e.isArrayNode&&e.nodeIndex===0)for(;e=e.parentArrayPart;)e.firstDOMNode=t}function io(e){let{previousSibling:t}=e;if(e.isArrayNode){let{firstDOMNode:n,nodeIndex:o}=e;o>0?t=e.parentNode[He]:e.parentArrayPart&&(t=n?n.previousSibling:e.parentNode[He])}return t}function ao(e,t){let{part:n}=e;if(!n.isArrayNode)return;let{nodeIndex:o,parentNode:r}=n,s=t.part.nodeIndex,a=sr(e),{nodeInstance:i}=a,c=a!==e&&a.hasUncommittedEffect;if(!(!i||c)){if(o!==s){let{domNodes:l}=i,p=io(n),f=ue(r,p),m=l[0];m&&m.previousSibling!==p&&m!==f&&ze(r,f,l),so(n,m)}ro(r,i)}}function ir(e){let{nodeInstance:t,alternate:n,node:o}=e,r=e.part,{parentNode:s}=r,a=G(o);if(a&&co(e,t.domNodes[0]),n)ao(e,n);else{let i=io(r),c=ue(s,i),l=ze(s,c,t.fragment);a||(t.domNodes=l),so(r,l[0]),ro(s,t)}}function ar(e){let{node:t,nodeInstance:n,root:o,alternate:r}=e,{updateType:s}=o,{nodeType:a}=t,i=n[d],c=s===y;if(a===D){c&&Object.assign(n,i.memoizedValues);let{props:f,state:m}=i.committedValues;i.lastSnapshot=L(n,"getSnapshotBeforeUpdate",[f,m]);let{ref:u}=t,T=r&&r.node.ref;u!==T&&(typeof e.refCleanup=="function"?(e.refCleanup(),e.refCleanup=null):(e.refCleanup=null,T&&ce(T,null)),u&&(e.refCleanup=ce(u,n)))}else at(e,!1);let{transitionId:l}=Z(e,null),p=tt(s);i[p]=c?i[p].filter(f=>f.transitionId!==l):[],i.isDirty=!1,i.renderCount=0,o.postCommitEffects.push(e)}function cr(e){let{node:t,nodeInstance:n,root:o,childFiberError:r}=e,{updateType:s}=o,{nodeType:a}=t,i=n[d];if(a===D){let{props:c,state:l}=n,{committedValues:p,lastSnapshot:f}=i,{props:m,state:u}=p;m?L(n,"componentDidUpdate",[m,u,f]):L(n,"componentDidMount"),r&&(L(n,"componentDidCatch",[r.error,r.errorInfo]),e.childFiberError=null),p.props=c,p.state=l,i.memoizedValues=null}else if(Wn(e),s===y){let{syncHooks:c,deferredHooks:l}=n;n.deferredHooks=c,n.syncHooks=l}i.mounted=!0,i.fiber=e}function co(e,t){let{node:n,alternate:o,isSvgPart:r,isReactCompat:s}=e,{props:a,ref:i}=n,c=o&&o.node.props;Bt(t,a,c,r,s);let l=o&&o.node.ref;i!==l&&(typeof e.refCleanup=="function"?(e.refCleanup(),e.refCleanup=null):(e.refCleanup=null,l&&ce(l,null)),i&&(e.refCleanup=ce(i,t)))}function pt(e){e.tearDownFibers=[],e.postCommitEffects=[],e.hasUncommittedEffect=!1,e.retryFiber=null,e.resetRenderCallbacks()}function lr(e){e.node=null,e.nodeInstance=null,e.child=null,e.sibling=null}function Yt(e){let{currentTransition:t,pendingTransitions:n}=e,o=n.indexOf(t);o!==-1&&n.splice(o,1)}function pr(e){let{node:t,alternate:n}=e,o=t&&x(t);o&&n&&ao(e,n),e.hasUncommittedEffect===R&&(Y(t)?rr(e):B(t)?ir(e):o?ar(e):t.nodeType===z&&co(e,e.part.domNode),e.hasUncommittedEffect=Ye),n&&lr(n)}function lo(e){let{updateType:t,wip:n,current:o}=e,r=te(t),s=e[Re(t)],a=[],i=t===A?o:n;for(;i;){let{createdAt:c,node:l,child:p,hasUncommittedEffect:f}=i,m=i[r],u=c>s,T=f||m>s;if(f&&a.push(i),u&&(p&&p.parent!==i&&(p.parent=i),l&&x(l)&&(i.nodeInstance[d].fiber=i)),p&&T)i=p;else{for(;i!==e&&!i.sibling;)i=i.parent;i=i.sibling}}return a}function Kt(e,t){for(let o=0,r=t.length;o<r;o++)pr(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)cr(n[o]);Yt(e),pt(e),e.forcedUpdateWith=null}function jt(e){let{node:t,part:n}=e,o=e,{parentNode:r,previousSibling:s,firstDOMNode:a}=n,i=new Map,c=0,l=e;for(;l=Rn(l,e);){let p=xt(l.node,c);i.set(p,l),c++}e.child=null,t.forEach((p,f)=>{let m=xt(p,f),u=i.get(m);u&&i.delete(m);let T=o;o=oe(p,{parentNode:r,previousSibling:s,a:void 0,firstDOMNode:a,isArrayNode:!0,nodeIndex:f,parentArrayPart:n.isArrayNode?n:null},u,T,e),o.sibling=null,u&&u.part.nodeIndex!==f&&(F(o,yt),f!==0&&F(T,yt))}),i.forEach(p=>{re(p)}),F(e,R)}function po(e,t,n,o){let r=e.part.parentNode!==t.parentNode&&n?!1:o,{node:s}=e;s&&s.portalContainer&&(r=!0),uo(e,r)}function uo(e,t){let{node:n,part:o,nodeInstance:r}=e;if(e.shouldTearDown=!1,!qe(n))return;let s=B(n),{child:a}=e;if(a)for(po(a,o,s,t);a.sibling;)a=a.sibling,po(a,o,s,t);if(Y(n)&&t){let c=ue(o.parentNode,o.previousSibling);c&&Se(c);return}let{ref:i}=n;if(i&&(typeof e.refCleanup=="function"?(e.refCleanup(),e.refCleanup=null):(e.refCleanup=null,ce(i,null))),!!r)if(s){let{domNodes:c}=r;t&&Se(c)}else x(n)&&We(r)&&(r.__unmount.forEach(c=>c()),r.__unmount.clear(),n.nodeType===D?L(r,"componentWillUnmount"):at(e,!0))}function he(e){let{tearDownFibers:t}=e;t.forEach(n=>{n.shouldTearDown&&uo(n,!0)}),e.tearDownFibers=[]}var fo=5,ur=30,$t=16,dr=300,fr=600,To=0;typeof requestAnimationFrame!="undefined"&&requestAnimationFrame(e=>{To=e});var zt=()=>performance.now(),mo=()=>!0,ho=(e,t)=>(t=t||$t,t-(e-To)%t),Gt,Pe;if(typeof MessageChannel!="undefined"){Pe=[];let e=new MessageChannel;e.port1.onmessage=function(){Pe.forEach(t=>t())},Gt=e.port2}function mr(e){if(!Gt||ho(zt())<1){let t=()=>{r(),e()},n=setTimeout(t,1),o=requestIdleCallback(t),r=()=>{clearTimeout(n),cancelIdleCallback(o)};return r}return Pe.push(e),Gt.postMessage(null),()=>{let t=Pe.indexOf(e);t!==-1&&Pe.splice(t,1)}}function Wt(e,t,n){let{cancelSchedule:o}=e;if(o&&(o(),e.cancelSchedule=null),t){e.cancelSchedule=mr(()=>{let{currentTransition:r}=e,s=r?r.tryCount:0,a=r===v?dr:fr,i=zt(),c=Math.min(ur,fo+s),l=Math.floor(c/$t)*$t,p=()=>{let u=zt(),T=ho(u,l),S=i+Math.min(fo,T);return u<S},m=s>a?mo:p;n(m)});return}n(mo)}function Tr(e){let{node:t,nodeInstance:n}=e;return x(t)&&n?!!me(e).length||n[d].isDirty:!1}function hr(e){let{node:t,alternate:n}=e;if(!qe(t)){n&&re(n);return}let o=Tr(e);if(e.processedTime&&!o){ne(e);return}Y(t)?Xn(e):Array.isArray(t)?jt(e):B(t)?kt(e):x(t)?wt(e):t.nodeType===z&&F(e,R),e.processedTime=j()}function Er(e){return e.updateType===A?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&(_e(e.currentTransition)||e.currentTransition.isRunningAsyncAction):!1}var yr={fn:e=>{let{updateType:t,current:n}=e,o=Re(t);he(e);let r=lo(e);e[o]=e.lastCompleteTime=j(),t===y&&(e.current=e.wip,e.wip=n),I(U,()=>Kt(e,r))}};function ut(e,t){let{root:n}=e,{updateType:o,currentTransition:r}=n,s=Re(o),a=te(o),i=n[s],c=!bn(n);Wt(n,c,l=>{for(;e!==t;)if(l()){hr(e);let{retryFiber:f}=n;f?(e=f,t=n,n.retryFiber=null):e=Fn(e,t,i,a)}else{ut(e,t);return}if(n.callRenderCallbacks(),r){let f=e===t&&!n.retryFiber,m=r.transitionState!==le,u=r.isRunningAsyncAction;f&&m&&!u&&(An(r),r.tryCount=0),!n.hasUncommittedEffect&&(_e(r)||u)&&Yt(n)}Er(n)&&yr.fn(n),At(n)&&I(C,()=>{n.updateSource=C,ae(n)})})}function ae(e){let t=At(e);t&&(e.updateType=y,pt(e),e.currentTransition=t,t.tryCount+=1,e.wip=Qe(e.current,e.wip,e,e),ut(e.wip,e))}function dt(e){let{root:t,parent:n}=e;t.updateType=A,t.currentTransition=null,pt(t),ut(e,n)}function w(e){let t=M(e),{root:n}=t,{pendingTransitions:o,batchUpdates:r}=n,s=se(),a=It(),i=Fe();if(k(t,i),s===C&&!o.includes(a)&&(a===v?o.unshift(a):o.push(a)),r[s]){r[s]+=1;return}r[s]=1,Ae(()=>{let c=r[s];r[s]=0;let l=s===C;if(!(l&&n.lastCompleteTime<n.updateTime))if(n.updateSource=s,l)ae(n);else{let p=n.updateType===A&&n.cancelSchedule;dt(s===U&&!p&&c===1?t:n.current)}})}function N(e){this.props=e,this.state=void 0,this.context=void 0,this[d]={lastSnapshot:null,pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,mounted:!1,committedValues:{},memoizedValues:null,isDirty:!1,renderCount:0}}N.prototype.setState=function(e,t){ot(this,o=>({state:e,transitionId:o,callback:t}))&&w(this)};N.prototype.forceUpdate=function(e){let t=this[d],{fiber:n}=t;n&&(n.root.forcedUpdateWith=this,this[d].isDirty=!0,w(this),e&&e(this.state))};N.prototype.render=function(){};N.prototype.__render=function(){let e=this.render();return this[d].nodes=e,e};N.prototype.isReactComponent=!0;function W(e){N.call(this,e)}W.prototype=Object.create(N.prototype);W.prototype.constructor=W;W.prototype.isPureReactComponent=!0;function b(e,t,n){if(!e||typeof e!="string"&&typeof e!="function"&&typeof e!="object"){let c="Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(e===null?"null":typeof e)+".";throw(typeof e=="undefined"||typeof e=="object"&&e!==null)&&(c+=`
|
|
1
|
+
var ko=Object.defineProperty;var Ho=(e,t)=>{for(var n in t)ko(e,n,{get:t[n],enumerable:!0})};var tn={};Ho(tn,{Children:()=>Po,Component:()=>C,Fragment:()=>Kr,PureComponent:()=>W,StrictMode:()=>Yr,Suspense:()=>Pe,SuspenseList:()=>q,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Wr,cloneElement:()=>Zt,createContext:()=>Pt,createElement:()=>go,createPortal:()=>Ro,createRef:()=>so,createRoot:()=>Uo,flushSync:()=>nt,forwardRef:()=>ut,html:()=>xo,isValidElement:()=>Oo,jsx:()=>zr,jsxDEV:()=>Vr,jsxs:()=>Gr,lazy:()=>Ao,memo:()=>Jt,reacty:()=>$r,render:()=>Qt,startTransition:()=>Fe,unmountComponentAtNode:()=>Fo,unstable_batchedUpdates:()=>jr,use:()=>vo,useCallback:()=>Yn,useContext:()=>Gn,useDebugValue:()=>$n,useDeferredValue:()=>Wn,useEffect:()=>vt,useId:()=>zn,useImperativeHandle:()=>jn,useLayoutEffect:()=>at,useMemo:()=>Ut,useReducer:()=>Bn,useRef:()=>Hn,useState:()=>it,useTransition:()=>Vn,watch:()=>mt});var Le=Symbol.for("react.element"),cn=Symbol.for("react.forward_ref"),ln="{{brahmos}}",un={key:1,ref:1},pn={className:"class",htmlFor:"for",acceptCharset:"accept-charset",httpEquiv:"http-equiv",tabIndex:"tabindex"},Et={doubleclick:"dblclick"},dn=typeof Symbol!="undefined"?/fil|che|rad/i:/fil|che|ra/i,fn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,mn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i,yt="http://www.w3.org/1999/xlink",Tn=100,d="__brahmosData",ke="__brahmosLastArrayDom",He="__rootFiber",A="sync",y="deferred",Be="js",F="immediate_action",_="transition",Ye=0,gt=1,I=2,hn="initial",Q="start",le="suspended",ye="resolved",Ct="completed",j="timedOut";function En(e){return e[0]==="o"&&e[1]==="n"}function Ke(e){let t=fn.test(e)?e.replace(/[A-Z0-9]/,"-$&").toLowerCase():e;return pn[e]||t}function St(e){return e.nodeName.toLowerCase()}function yn(e,t){return t&&(e=e.replace(/Capture$/,"")),e.replace("on","").toLowerCase()}function Z(e){return e==null}var Bo=0;function $(){return Bo++}function gn(){return Date.now()}function je(e){e.__brahmosData={events:{}}}function ue(e,t){if(!("key"in e||"ref"in e&&!t))return e;let n={},o;for(o in e)o!=="key"&&(o!=="ref"||t)&&(n[o]=e[o]);return n}function ge(e,t){let n=Object.keys(e);for(let o=0,r=n.length;o<r;o++){let s=n[o],a=e[s];t(s,a)}}function $e(e,t){for(let n in e)t(n,e[n])}function Ce(e){Array.isArray(e)||(e=[e]);for(let t=e.length-1;t>=0;t--)e[t].remove()}function z(e,t){return t=t||0,Array.prototype.slice.call(e,t)}function Yo(e){let t=e instanceof NodeList;if(e instanceof Node)return e;if(Array.isArray(e)||t){let n=document.createDocumentFragment(),o=0;for(;e[o];)n.appendChild(e[o]),t||(o+=1);return n}return document.createTextNode(e)}function ze(e,t,n){let o=Yo(n),r;return Array.isArray(n)?r=n:o instanceof DocumentFragment?r=z(o.childNodes):r=n,e.insertBefore(o,t),r}function pe(e,t){return t?t.nextSibling:e.firstChild}function L(e,t,n){if(e[t])return e[t].apply(e,n)}function Cn(e,t){let n=t===0?e.firstChild:e.childNodes[t],o=document.createTextNode("");return e.insertBefore(o,n),o}var Ge=Promise.resolve();function Se(e){return Ge.then(e)}function de(){return $()+"-"+Math.random()*1e6}function Sn(e){let t="pending",n,o=e.then(r=>{t="success",n=r},r=>{t="error",n=r});return{read(){if(t==="pending")throw o;if(t==="error")throw n;if(t==="success")return n}}}function Ve(e){return e[d].mounted}function At(e){return e.displayName||e.name}function fe({children:e}){return e}var We={transitionId:"",tryCount:0,transitionState:j},P={transitionId:de(),tryCount:0,transitionState:j};function Ko(e){let{transitionState:t}=e;return t===Q||t===ye||t===j}function Ae(e){let{transitionState:t}=e;return t===Ct||t===j}function An(e){let{transitionState:t}=e;t!==j&&t!==le&&(e.isPending&&!e.isRunningAsyncAction?(e.clearTimeout(),e.updatePendingState(!1,_)):e.transitionState=Ct)}function J(e,t){return t=t||We,e.root.currentTransition||t}function _t(e){let{pendingTransitions:t}=e;return t.find(Ko)}var Nt=Symbol.for("tag"),ee=Symbol.for("tag-element"),O=Symbol.for("class-component"),xt=Symbol.for("functional-component"),G=Symbol.for("attribute");function V({nodeType:e}){return e===ee}function te({nodeType:e}){return e===Nt}function B(e){return V(e)||te(e)}function x({nodeType:e}){return e===O||e===xt}function Y(e){return typeof e=="string"||typeof e=="number"}function qe(e){return!(Z(e)||typeof e=="boolean")}function Rt(e,t){let n=e&&e.key;return n===void 0?t:n}function Xe(e,t,n){return{$$typeof:Le,nodeType:null,key:n,ref:null,portalContainer:null,type:null,props:e,values:t,template:null}}var Ft=Symbol.for("potate.currentFiber"),It=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:{};It[Ft]||(It[Ft]={current:null});var Nn=It[Ft];function _e(e){Nn.current=e}function N(){return Nn.current}function Ne(e){return e===y?"lastDeferredCompleteTime":"lastCompleteTime"}function ne(e){return e===y?"deferredUpdateTime":"updateTime"}function k(e,t){let n=ne(t),o=$();for(;e;)e[n]=o,e=e.parent}function xn(e,t,n){t===n?n.child=e:t.sibling=e,e.parent=n}function b(e,t){e.hasUncommittedEffect=t,e.root.hasUncommittedEffect=!0}function Qe(e,t,n,o){let{root:r,node:s,part:a,nodeInstance:i,child:c}=e,l=ne(r.updateType);return t?(t.node=s,t.part=a,t.createdAt=$()):(t=me(r,s,a),jo(e,t)),e.shouldTearDown=!1,t.nodeInstance=i,t.child=c,t[l]=o[l],t.isReactCompat=e.isReactCompat,t.refCleanup=e.refCleanup,xn(t,n,o),t}function Rn(e,t){return e===t?e.child:e.sibling}function oe(e){let{child:t,root:n}=e;if(n.updateType===A)return;let o;for(;t;){let{alternate:r}=t;o=Qe(t,r,o||e,e),t=t.sibling}}function Ze(e){let t=[];return{updateType:y,updateSource:Be,cancelSchedule:null,domNode:e,forcedUpdateWith:null,current:null,wip:null,child:null,retryFiber:null,currentTransition:null,hasUncommittedEffect:!1,pendingTransitions:[],tearDownFibers:[],postCommitEffects:[],batchUpdates:{},lastDeferredCompleteTime:0,lastCompleteTime:0,deferredUpdateTime:0,updateTime:0,afterRender(n){t.includes(n)||t.push(n)},callRenderCallbacks(){for(let n=0,o=t.length;n<o;n++)t[n]()},resetRenderCallbacks(){t=[]}}}function me(e,t,n){return t&&t.portalContainer&&(n.parentNode=t.portalContainer),{node:t,nodeInstance:null,root:e,parent:null,child:null,sibling:null,part:n,alternate:null,context:null,childFiberError:null,isSvgPart:!1,isReactCompat:!1,deferredUpdateTime:0,updateTime:0,processedTime:0,createdAt:$(),shouldTearDown:!1,hasUncommittedEffect:Ye,refCleanup:null}}function jo(e,t){e&&(e.alternate=t),t.alternate=e}function re(e,t,n,o,r){let{root:s}=o,a=ne(s.updateType),i;n&&!Z(n.node)&&!Z(e)&&$o(e,n.node)?(i=Qe(n,n.alternate,o,r),i.node=e,i.part=t):(i=me(s,e,t),n&&se(n)),xn(i,o,r),i.processedTime=0,i[a]=r[a],i.context=r.context,i.isSvgPart=r.isSvgPart;let c=e&&e.type&&e.type.__isReactCompat;return i.isReactCompat=c||r.isReactCompat||!1,i}function $o(e,t){return Y(e)&&Y(t)||e.nodeType===G||Array.isArray(e)&&Array.isArray(t)||(x(e)||V(e))&&e.type===t.type||te(e)&&e.template===t.template}function zo(e,t,n){return e&&e[n]>=t}function _n(e,t,n){if(e){for(;e&&!zo(e,t,n);)e=e.sibling;return e}}function Fn(e,t,n,o){let r=_n(e.child,n,o);if(r)return r;let s;for(;!(s=_n(e.sibling,n,o));)if(e=e.parent,e===t)return e;return s}function M(e){return e[d].fiber}function In(e){let{root:t,child:n}=e;n&&n.createdAt>t.lastCompleteTime&&(e.child=n.alternate)}function se(e){e.shouldTearDown=!0,e.root.tearDownFibers.push(e)}var xe=Be,Je=We,et=!1;function bn(){return et}function ie(){return xe}function bt(){return Je}function R(e,t){let n=xe;xe=e;try{return t()}finally{xe=n}}function K(e,t){let n=Je;Je=e,R(_,t),Je=n}function Dn(e){let t=e.currentTransition&&e.currentTransition.isRunningAsyncAction;return e.updateSource===F||!!t}function Go(){return xe===_}function Re(){return Go()?y:A}function tt(e){return e===y?"pendingDeferredUpdates":"pendingSyncUpdates"}function Te(e){let{root:{updateType:t},nodeInstance:n}=e,o=n[d],r=tt(t);if(t===A)return o[r];let s=J(e,null).transitionId;return o[r].filter(a=>a.transitionId===s)}function nt(e){let t=et;et=!0;try{return R(F,e)}finally{et=t}}function Vo(e,t){let{root:n}=e;for(;e.nodeInstance!==t;)if(e=e.parent,e===n)return null;return e}function ot(e,t){let n,o,r=!0,s=e[d],a=N();if(a){let{renderCount:l}=s;if(l>50)throw new Error("Too many rerender. Check your setState call, this may cause an infinite loop.");let{root:u}=a;u.retryFiber=Vo(a,e),n=u.updateType,o=u.currentTransition||We,r=!1}else s.renderCount=0,n=Re(),o=bt();let i=tt(n),c=t(o.transitionId);return s[i].push(c),r}var Wo=1;function Dt(e){return function(t){let n=M(e),{updateType:o}=n.root;e.context!==t&&(e[d].isDirty=!0,k(n,o))}}function Pt(e){let t=`cC${Wo++}`;class n extends C{constructor(s){super(s),this.subs=[]}shouldComponentUpdate(s){let{value:a}=this.props;return a!==s.value&&this.subs.forEach(i=>i(s.value)),!0}sub(s){let{subs:a}=this,i=Dt(s);a.push(i);let{componentWillUnmount:c}=s;s.componentWillUnmount=()=>{a.splice(a.indexOf(i),1),c&&c()}}render(){return this.props.children}}n.__ccId=t;class o extends C{render(){return this.props.children(this.context)}}return n.id=t,n.defaultValue=e,n.Provider=n,n.Consumer=o,o.contextType=n,n}function On(){return N().nodeInstance}function Un(e){let{renderCount:t}=e[d];e.deferredHooks=e.syncHooks.map((n,o)=>Array.isArray(n)?[...n]:n.transitionId?n:n.hasOwnProperty("current")&&t>1?e.deferredHooks[o]||n:{...n})}function vn(e,t){let{syncHooks:n,deferredHooks:o}=t;return e===A?n:o}function rt(e){let{nodeInstance:t,root:{updateType:n}}=e;return vn(n,t)}function Pn(e,t,n){return e===y&&!n.deferredHooks.length&&Un(n),vn(e,n)[t]}function Mn(e,t){if(!e||!t||e.length!==t.length)return!0;for(let n=0,o=e.length;n<o;n++)if(e[n]!==t[n])return!0;return!1}function qo(e,t,n){let o=typeof t=="function";(ie()===F||o||!Object.is(t,n))&&w(e)}function Ot(e){return!1}function wn(e){return e}function st(e,t,n){let o=N(),{nodeInstance:r}=o,{pointer:s}=r,a=rt(o),i=a[s];return(!i||t(i))&&(i=e(),a[s]=i),r.pointer+=1,n(i)}function Ln(){let e=N(),{nodeInstance:t,root:{updateType:n}}=e;t.pointer=0,n===y&&Un(t),Te(e).forEach(r=>r.updater())}function kn(e,t){let n=On(),{pointer:o}=n;return st(()=>(typeof e=="function"&&(e=e()),[e,s=>{let a=Re(),c=Pn(A,o,n)[0];ot(n,u=>({transitionId:u,updater(){let f=Pn(a,o,n);f[0]=t(s,f[0])}}))&&qo(n,s,c)}]),Ot,wn)}function it(e){return kn(e,(t,n)=>(typeof t=="function"&&(t=t(n)),t))}function Hn(e){return st(()=>({current:e}),Ot,wn)}function Bn(e,t,n){return kn(n?()=>n(t):t,(r,s)=>e(s,r))}function Ut(e,t){return st(()=>({value:e(),dependencies:t}),s=>Mn(t,s.dependencies),s=>s.value)}function Yn(e,t){return Ut(()=>e,t)}function Kn(e,t){let n=N(),{nodeInstance:o}=n,{pointer:r}=o,s=rt(n),a=s[r]||{animationFrame:null,cleanEffect:null},i={...a,isDependenciesChanged:Mn(t,a.dependencies),dependencies:t,effect(){i.isDependenciesChanged&&e(i)}};s[r]=i,o.pointer+=1}function vt(e,t){Kn(n=>{cancelAnimationFrame(n.animationFrame),n.animationFrame=requestAnimationFrame(()=>{setTimeout(()=>{n.cleanEffect=e()})})},t)}function at(e,t){Kn(n=>{n.cleanEffect=e()},t)}function jn(e,t,n){at(()=>{if(typeof e=="function"){let o=e(t());return typeof o=="function"?o:()=>e(null)}else if(e!=null)return e.current=t(),()=>{e.current=null}},n?n.concat([e]):void 0)}function $n(){}function zn(){let[e]=it(()=>de());return e}function Gn(e){let{nodeInstance:t,context:n}=N(),{id:o,defaultValue:r}=e,s=n[o],a=s?s.props.value:r;return at(()=>{if(s){let{subs:i}=s,c=Dt(t);return i.push(c),()=>{i.splice(i.indexOf(c),1)}}},[]),t.context=a,a}function Fe(e){let t={transitionId:de(),transitionState:Q,pendingSuspense:[],tryCount:0},n;K(t,()=>{n=e()}),n&&typeof n.then=="function"&&n.then(null,o=>{console.error("Uncaught error in transition:",o)})}function Vn(){let e=On();return st(()=>{let t={transitionId:de(),tryCount:0,isPending:!1,transitionTimeout:null,isRunningAsyncAction:!1,asyncActionCount:0,pendingSuspense:[],transitionState:hn,clearTimeout(){clearTimeout(t.transitionTimeout)},updatePendingState(n,o){t.isPending=n,e[d].isDirty=!0;let r=()=>{w(e)};o===_?K(t,r):R(o,r)},startTransition(n){let o=ie(),{root:r}=M(e);t.transitionState=Q,t.pendingSuspense=[],t.isRunningAsyncAction=!1,t.clearTimeout();let s;K(t,()=>{s=n()});let a=r.lastDeferredCompleteTime<r.deferredUpdateTime;s&&typeof s.then=="function"?(t.asyncActionCount=(t.asyncActionCount||0)+1,t.isRunningAsyncAction=!0,t.updatePendingState(!0,_),ae(r),s.then(()=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o))},i=>{t.asyncActionCount--,t.asyncActionCount===0&&(t.isRunningAsyncAction=!1,t.updatePendingState(!1,o)),console.error("Uncaught error in transition:",i)})):a&&t.updatePendingState(!0,o)}};return t},Ot,({startTransition:t,isPending:n})=>[n,t])}function Wn(e,t){let[n,o]=it(t!==void 0?t:e);return vt(()=>{Fe(()=>{o(e)})},[e]),n}function qn(e){let t=rt(e);for(let n=0,o=t.length;n<o;n++){let r=t[n];r.effect&&r.effect()}}function ct(e,t){let n=rt(e);for(let o=0,r=n.length;o<r;o++){let s=n[o];s.cleanEffect&&(s.isDependenciesChanged||t)&&s.cleanEffect(),s.clearTimeout&&t&&s.clearTimeout()}}function Ie(e){return{syncHooks:[],deferredHooks:[],context:void 0,pointer:0,__render(t){Ln();let n=e(t);return this[d].nodes=n,n},__unmount:new Map,[d]:{pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,isDirty:!1,mounted:!1,renderCount:0}}}var Xo=Object.prototype.hasOwnProperty;function Qo(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;let n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++)if(!Xo.call(t,n[r])||!Object.is(e[n[r]],t[n[r]]))return!1;return!0}var Mt=Qo;function Zo(e){let{root:t}=e;for(;(e=e.parent)&&!(e.nodeInstance instanceof C&&(e.nodeInstance.componentDidCatch||e.node.type.getDerivedStateFromError));)if(e===t)return null;return e}function Jo(e){let t="";for(;e;){let{node:n}=e;n&&x(n)&&n.type!==fe&&(t+=` at ${At(n.type)}
|
|
2
|
+
`),e=e.parent}return{componentStack:t}}function er(e){let{node:{type:t},nodeInstance:n,parent:o}=e,{__ccId:r}=t,s=o.context||{};if(!r)return s;let a=Object.create(s);return a[r]=n,a}function tr(e,t){return t.reduce((n,{state:o})=>(typeof o=="function"&&(o=o(n)),{...n,...o}),e)}function Xn(e){let{root:t,nodeInstance:n}=e;n[d].isDirty=!0,t.retryFiber=e}function wt(e){let{node:t,part:n,root:o,childFiberError:r}=e,{type:s,nodeType:a,props:i={}}=t,{currentTransition:c}=o,l=o.updateType===y,u=!0,f=!1,m=a===O;In(e);let{nodeInstance:p}=e,h=!1;p||(p=m?new s(i):Ie(s),e.nodeInstance=p,h=!0),m&&!p[d]&&(p[d]={lastSnapshot:null,pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,mounted:!1,committedValues:{},memoizedValues:null,isDirty:!1,renderCount:0},p.setState=C.prototype.setState,p.forceUpdate=C.prototype.forceUpdate),m&&!p.__render&&(p.__render=function(){let T=this.render();return this[d].nodes=T,T});let S=p[d],E=er(e);if(e.context=E,m){let T=p,g=S,{committedValues:U,memoizedValues:v}=g;h&&(U.state=T.state);let{props:X,state:Ee}=U;v&&c&&c.transitionId===v.transitionId&&({props:X,state:Ee}=v,f=!0),T.props=X,T.state=Ee;let{shouldComponentUpdate:nn}=T,H=Ee,Tt=Te(e);Tt.length&&(H=tr(Ee,Tt));let on=!h&&o.forcedUpdateWith!==p,rn=L(s,"getDerivedStateFromProps",[i,H]),sn=r?L(s,"getDerivedStateFromError",[r.error]):void 0;(rn||sn)&&(H={...H,...rn,...sn}),e.isReactCompat&&T.isPureReactComponent&&on&&(u=!Mt(H,Ee)||!Mt(i,X)),e.isReactCompat&&nn&&u&&on&&(u=nn.call(T,i,H));let{contextType:an}=s;if(an){let{id:Me,defaultValue:ht}=an,we=E[Me],Lo=we?we.props.value:ht;we&&h&&we.sub(T),T.context=Lo}T.state=H,T.props=i,Tt.forEach(({callback:Me})=>{if(Me){let{updateSource:ht}=o;Se(()=>{R(ht,()=>Me(H))})}}),c&&(g.memoizedValues={state:H,props:i,transitionId:c.transitionId})}if(u){_e(e),S.renderCount+=1;let T=r&&!s.getDerivedStateFromError;try{T?S.nodes=null:p.__render(i)}catch(g){let U=Zo(e);if(typeof g.then=="function"){let v=lt(e);if(!v)throw new Error("Rendering which got suspended can't be used outside of suspense.");v.nodeInstance.handleSuspender(g,v);let X=Qn(v);Xn(X)}else if(U&&!U.childFiberError){let v=Jo(e);console.error(g);let X=`The above error occurred in the <${At(t.type)}> component:
|
|
3
|
+
${v.componentStack}`;console.error(X),U.childFiberError={error:g,errorInfo:v},Xn(U)}else throw g;return}finally{_e(null);let g=p[d];if(m&&l){let{committedValues:U}=g;Object.assign(p,U)}}}if(f||u){let{child:T}=e,{nodes:g}=S;!T||T.node!==g?(re(g,n,T,e,e),b(e,I)):f||oe(e)}else oe(e)}function Zn(e){let{node:t,alternate:n,isReactCompat:o}=e,r=n&&n.node;(!o||t!==r)&&b(e,I)}function Lt(e,t){let{type:n}=e,o=t?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n);return je(o),{fragment:[o],domNodes:[o],parts:[{previousSibling:null,parentNode:o,isNode:!0}]}}function nr(e){return!!e&&e.nodeType===8&&e.textContent===ln}var be=class{constructor(t,n){this.templateResult=t,t.create(n),this.fragment=this.createNode(n),this.parts=this.getParts(),this.domNodes=z(this.fragment.childNodes),this.patched=!1}createNode(t){let{template:n,svgTemplate:o}=this.templateResult,r=t?o:n;return document.importNode(r.content,!0)}getParts(){let{fragment:t,templateResult:n}=this,{partsMeta:o}=n,r=[],s=t.querySelectorAll("*");for(let a=0,i=o.length;a<i;a++){let c=o[a],{isAttribute:l,attrIndex:u,refNodeIndex:f,prevChildIndex:m,hasExpressionSibling:p}=c,h=s[f];if(l)c.tagAttrs||(c.tagAttrs=z(h.attributes)),r.push({isAttribute:!0,tagAttrs:c.tagAttrs,domNode:h,attrIndex:u}),je(h);else{h=h||t;let S=m!==-1,E,T=h.childNodes[m+1];S&&nr(T)&&Ce(T),S?p?E=Cn(h,m):E=h.childNodes[m]:E=null,r.push({isNode:!0,parentNode:h,previousSibling:E})}}return r}patchParts(t){let{parts:n}=this,{parentNode:o,previousSibling:r}=t;if(!this.patched){for(let s=0,a=n.length;s<a;s++){let i=n[s];i.isNode&&i.parentNode instanceof DocumentFragment&&(i.parentNode=o,i.previousSibling=i.previousSibling||r)}this.patched=!0}}};function or(e,t,n){let o=e.lastIndexOf(t);return n<=o}function rr(e,t){return{nodeType:G,props:e,ref:t}}function sr(e,t,n){let o=n,{isReactCompat:r}=n,s=n.child;for(let a=0,i=e.length;a<i;a++){let c=e[a],l=t[a],u;if(c.isAttribute){let{domNode:f}=c,m={},p;for(;c&&f===c.domNode;)(r?ge:$e)(t[a],(S,E)=>{let T=c,g=!1;if(r){let U=Ke(S);g=or(T.tagAttrs,U,T.attrIndex)}!g&&!un[S]?m[S]=E:S==="ref"&&(p=E)}),c=e[++a];a--,c=e[a],u=rr(m,p)}else c.isNode&&(u=l);o=re(u,c,s,o,n),s=s&&s.sibling}}function kt(e){let{node:t}=e,{part:n,alternate:o,parent:{context:r}}=e,s=o&&o.node,{values:a,nodeType:i}=t,c=i===ee,l=e.isSvgPart||t.type==="svg";e.isSvgPart=l;let{nodeInstance:u}=e;u||(u=c?Lt(t,l):new be(t.template,l),e.nodeInstance=u),c||u.patchParts(n),t!==s?c?re(t.props.children,u.parts[0],e.child,e,e):sr(u.parts,a,e):oe(e),b(e,I),e.context=r}function Jn(e,t){let{type:n}=t,o=St(t);return Et[e]?Et[e]:/^change(textarea|input)/i.test(e+o)&&!dn.test(n)?"input":e}function Ht(e){let{type:t}=e,n=St(e);if(n==="input"&&(t==="radio"||t==="checkbox"))return"checked";if(n==="input"||n==="select"||n==="textarea")return"value"}function eo(e){let t=Ht(e);if(!t)return;let n=e[`${t}Prop`],o=e[t];n!==void 0&&n!==o&&(e[t]=n)}function to(e,t,n,o){e==="checked"?n==="checked"?(t.checked=o,t.checkedProp=o):n==="defaultChecked"&&t.checkedProp===void 0?t.checked=o:t[n]=o:e==="value"&&(n==="value"?(t.value=o,t.valueProp=o):n==="defaultValue"&&t.valueProp===void 0?t.value=o:t[n]=o)}function no(e,t,n){let o=e.__brahmosData.events,r=o[t];return r?(r.handler=n,r.patched):(r=o[t]={handler:n,patched:null},r.patched=function(s){r.handler&&R(F,()=>{r.handler.call(this,s)})},r.patched)}function ro(e,t,n,o){t=t||{},ge(e,(r,s)=>{let a=t[r];s!==a&&o(r,s,a)}),ge(t,(r,s)=>{e[r]===void 0&&s!==void 0&&o(r,n,s)})}function oo(e,t,n,o,r,s){if(t==="children"||t==="key"||t==="ref")return;if(En(t)){let i=!1;s&&(i=t.substr(-7)==="Capture"&&t.substr(-14,7)==="Pointer");let c=yn(t,i);s&&(c=Jn(c,e));let l=no(e,t,n);!s&&o===void 0?n?e.addEventListener(c,l,i):e.removeEventListener(c,l,i):o&&!n?e.removeEventListener(c,l,i):!o&&n&&e.addEventListener(c,l,i)}else if(t==="style")if(s){let{style:i}=e;ro(n||{},o,"",(c,l)=>{c[0]==="-"?i.setProperty(c,l):i[c]=typeof l=="number"&&mn.test(c)===!1?l+"px":l})}else e.style.cssText=n||"";else if(t==="dangerouslySetInnerHTML"){if(s){let i=o&&o.__html,c=n&&n.__html;c!==i&&(e.innerHTML=c==null?"":c)}}else if(t in e&&!r){let i=s?Ht(e):null;i?to(i,e,t,n):e[t]=n==null?"":n}else{s&&(t=Ke(t));let i=t;r&&t.startsWith("xlink")&&(i=t.replace(/^xlink:?/,""));let c=n==null||n===!1;t!==i?(i=i.toLowerCase(),c?e.removeAttributeNS(yt,i):e.setAttributeNS(yt,i,n)):c?e.removeAttribute(t):e.setAttribute(t,n)}}function Bt(e,t,n,o,r){r?(ro(t,n,null,(s,a,i)=>{oo(e,s,a,i,o,r)}),eo(e)):$e(t,(s,a)=>{oo(e,s,a,void 0,o,!1)})}function ut(e){function t(n){return e(ue(n,!1),n.ref)}return t.__isForwardRef=!0,t.$$typeof=cn,t}function so(){return{current:null}}function ce(e,t){if(typeof e=="function"){let n=e(t);return typeof n=="function"?n:void 0}else typeof e=="object"&&(e.current=t)}function ir(e){let{node:t,alternate:n}=e,o=e.part,{parentNode:r,previousSibling:s}=o,a=pe(r,s);n&&a?a.nodeValue=t:ze(r,a,t)}function ar(e){for(;e.child&&e.node&&!B(e.node);)e=e.child;return e}function io(e,t){let{domNodes:n}=t;e[ke]=n[n.length-1]}function ao(e,t){if(e.isArrayNode&&e.nodeIndex===0)for(;e=e.parentArrayPart;)e.firstDOMNode=t}function co(e){let{previousSibling:t}=e;if(e.isArrayNode){let{firstDOMNode:n,nodeIndex:o}=e;o>0?t=e.parentNode[ke]:e.parentArrayPart&&(t=n?n.previousSibling:e.parentNode[ke])}return t}function lo(e,t){let{part:n}=e;if(!n.isArrayNode)return;let{nodeIndex:o,parentNode:r}=n,s=t.part.nodeIndex,a=ar(e),{nodeInstance:i}=a,c=a!==e&&a.hasUncommittedEffect;if(!(!i||c)){if(o!==s){let{domNodes:l}=i,u=co(n),f=pe(r,u),m=l[0];m&&m.previousSibling!==u&&m!==f&&ze(r,f,l),ao(n,m)}io(r,i)}}function cr(e){let{nodeInstance:t,alternate:n,node:o}=e,r=e.part,{parentNode:s}=r,a=V(o);if(a&&uo(e,t.domNodes[0]),n)lo(e,n);else{let i=co(r),c=pe(s,i),l=ze(s,c,t.fragment);a||(t.domNodes=l),ao(r,l[0]),io(s,t)}}function lr(e){let{node:t,nodeInstance:n,root:o,alternate:r}=e,{updateType:s}=o,{nodeType:a}=t,i=n[d],c=s===y;if(a===O){c&&Object.assign(n,i.memoizedValues);let{props:f,state:m}=i.committedValues;i.lastSnapshot=L(n,"getSnapshotBeforeUpdate",[f,m]);let{ref:p}=t,h=r&&r.node.ref;p!==h&&(typeof e.refCleanup=="function"?(e.refCleanup(),e.refCleanup=null):(e.refCleanup=null,h&&ce(h,null)),p&&(e.refCleanup=ce(p,n)))}else ct(e,!1);let{transitionId:l}=J(e,null),u=tt(s);i[u]=c?i[u].filter(f=>f.transitionId!==l):[],i.isDirty=!1,i.renderCount=0,o.postCommitEffects.push(e)}function ur(e){let{node:t,nodeInstance:n,root:o,childFiberError:r}=e,{updateType:s}=o,{nodeType:a}=t,i=n[d];if(i.mounted=!0,i.fiber=e,a===O){let{props:c,state:l}=n,{committedValues:u,lastSnapshot:f}=i,{props:m,state:p}=u;m?L(n,"componentDidUpdate",[m,p,f]):L(n,"componentDidMount"),r&&(L(n,"componentDidCatch",[r.error,r.errorInfo]),e.childFiberError=null),u.props=c,u.state=l,i.memoizedValues=null}else if(qn(e),s===y){let{syncHooks:c,deferredHooks:l}=n;n.deferredHooks=c,n.syncHooks=l}}function uo(e,t){let{node:n,alternate:o,isSvgPart:r,isReactCompat:s}=e,{props:a,ref:i}=n,c=o&&o.node.props;Bt(t,a,c,r,s);let l=o&&o.node.ref;i!==l&&(typeof e.refCleanup=="function"?(e.refCleanup(),e.refCleanup=null):(e.refCleanup=null,l&&ce(l,null)),i&&(e.refCleanup=ce(i,t)))}function pt(e){e.tearDownFibers=[],e.postCommitEffects=[],e.hasUncommittedEffect=!1,e.retryFiber=null,e.resetRenderCallbacks()}function pr(e){e.node=null,e.nodeInstance=null,e.child=null,e.sibling=null}function Yt(e){let{currentTransition:t,pendingTransitions:n}=e,o=n.indexOf(t);o!==-1&&n.splice(o,1)}function dr(e){let{node:t,alternate:n}=e,o=t&&x(t);o&&n&&lo(e,n),e.hasUncommittedEffect===I&&(Y(t)?ir(e):B(t)?cr(e):o?lr(e):t.nodeType===G&&uo(e,e.part.domNode),e.hasUncommittedEffect=Ye),n&&pr(n)}function po(e){let{updateType:t,wip:n,current:o}=e,r=ne(t),s=e[Ne(t)],a=[],i=t===A?o:n;for(;i;){let{createdAt:c,node:l,child:u,hasUncommittedEffect:f}=i,m=i[r],p=c>s,h=f||m>s;if(f&&a.push(i),p&&(u&&u.parent!==i&&(u.parent=i),l&&x(l)&&(i.nodeInstance[d].fiber=i)),u&&h)i=u;else{for(;i!==e&&!i.sibling;)i=i.parent;i=i.sibling}}return a}function Kt(e,t){for(let o=0,r=t.length;o<r;o++)dr(t[o]);let{postCommitEffects:n}=e;for(let o=n.length-1;o>=0;o--)ur(n[o]);Yt(e),pt(e),e.forcedUpdateWith=null}function jt(e){let{node:t,part:n}=e,o=e,{parentNode:r,previousSibling:s,firstDOMNode:a}=n,i=new Map,c=0,l=e;for(;l=Rn(l,e);){let u=Rt(l.node,c);i.set(u,l),c++}e.child=null,t.forEach((u,f)=>{let m=Rt(u,f),p=i.get(m);p&&i.delete(m);let h=o;o=re(u,{parentNode:r,previousSibling:s,a:void 0,firstDOMNode:a,isArrayNode:!0,nodeIndex:f,parentArrayPart:n.isArrayNode?n:null},p,h,e),o.sibling=null,p&&p.part.nodeIndex!==f&&(b(o,gt),f!==0&&b(h,gt))}),i.forEach(u=>{se(u)}),b(e,I)}function fo(e,t,n,o){let r=e.part.parentNode!==t.parentNode&&n?!1:o,{node:s}=e;s&&s.portalContainer&&(r=!0),mo(e,r)}function mo(e,t){let{node:n,part:o,nodeInstance:r}=e;if(e.shouldTearDown=!1,!qe(n))return;let s=B(n),{child:a}=e;if(a)for(fo(a,o,s,t);a.sibling;)a=a.sibling,fo(a,o,s,t);if(Y(n)&&t){let c=pe(o.parentNode,o.previousSibling);c&&Ce(c);return}let{ref:i}=n;if(i&&(typeof e.refCleanup=="function"?(e.refCleanup(),e.refCleanup=null):(e.refCleanup=null,ce(i,null))),!!r)if(s){let{domNodes:c}=r;t&&Ce(c)}else x(n)&&Ve(r)&&(r.__unmount.forEach(c=>c()),r.__unmount.clear(),n.nodeType===O?L(r,"componentWillUnmount"):ct(e,!0))}function he(e){let{tearDownFibers:t}=e;t.forEach(n=>{n.shouldTearDown&&mo(n,!0)}),e.tearDownFibers=[]}var To=5,fr=30,$t=16,mr=300,Tr=600,Eo=0;typeof requestAnimationFrame!="undefined"&&requestAnimationFrame(e=>{Eo=e});var zt=()=>performance.now(),ho=()=>!0,yo=(e,t)=>(t=t||$t,t-(e-Eo)%t),Gt,De;if(typeof MessageChannel!="undefined"){De=[];let e=new MessageChannel;e.port1.onmessage=function(){De.forEach(t=>t())},Gt=e.port2}function hr(e){if(!Gt||yo(zt())<1){let t=()=>{r(),e()},n=setTimeout(t,1),o=requestIdleCallback(t),r=()=>{clearTimeout(n),cancelIdleCallback(o)};return r}return De.push(e),Gt.postMessage(null),()=>{let t=De.indexOf(e);t!==-1&&De.splice(t,1)}}function Vt(e,t,n){let{cancelSchedule:o}=e;if(o&&(o(),e.cancelSchedule=null),t){e.cancelSchedule=hr(()=>{let{currentTransition:r}=e,s=r?r.tryCount:0,a=r===P?mr:Tr,i=zt(),c=Math.min(fr,To+s),l=Math.floor(c/$t)*$t,u=()=>{let p=zt(),h=yo(p,l),S=i+Math.min(To,h);return p<S},m=s>a?ho:u;n(m)});return}n(ho)}function Er(e){let{node:t,nodeInstance:n}=e;return x(t)&&n?!!Te(e).length||n[d].isDirty:!1}function yr(e){let{node:t,alternate:n}=e;if(!qe(t)){n&&se(n);return}let o=Er(e);if(e.processedTime&&!o){oe(e);return}Y(t)?Zn(e):Array.isArray(t)?jt(e):B(t)?kt(e):x(t)?wt(e):t.nodeType===G&&b(e,I),e.processedTime=$()}function gr(e){return e.updateType===A?!0:e.currentTransition?e.lastCompleteTime>=e.updateTime&&e.hasUncommittedEffect&&(Ae(e.currentTransition)||e.currentTransition.isRunningAsyncAction):!1}var Cr={fn:e=>{let{updateType:t,current:n}=e,o=Ne(t);he(e);let r=po(e);e[o]=e.lastCompleteTime=$(),t===y&&(e.current=e.wip,e.wip=n),R(F,()=>Kt(e,r))}};function dt(e,t){let{root:n}=e,{updateType:o,currentTransition:r}=n,s=Ne(o),a=ne(o),i=n[s],c=!Dn(n);Vt(n,c,l=>{for(;e!==t;)if(l()){yr(e);let{retryFiber:f}=n;f?(e=f,t=n,n.retryFiber=null):e=Fn(e,t,i,a)}else{dt(e,t);return}if(n.callRenderCallbacks(),r){let f=e===t&&!n.retryFiber,m=r.transitionState!==le,p=r.isRunningAsyncAction;f&&m&&!p&&(An(r),r.tryCount=0),!n.hasUncommittedEffect&&(Ae(r)||p)&&Yt(n)}gr(n)&&Cr.fn(n),_t(n)&&R(_,()=>{n.updateSource=_,ae(n)})})}function ae(e){let t=_t(e);t&&(e.updateType=y,pt(e),e.currentTransition=t,t.tryCount+=1,e.wip=Qe(e.current,e.wip,e,e),dt(e.wip,e))}function ft(e){let{root:t,parent:n}=e;t.updateType=A,t.currentTransition=null,pt(t),dt(e,n)}function w(e){let t=M(e),{root:n}=t,{pendingTransitions:o,batchUpdates:r}=n,s=ie(),a=bt(),i=Re();if(k(t,i),s===_&&!o.includes(a)&&(a===P?o.unshift(a):o.push(a)),r[s]){r[s]+=1;return}r[s]=1;let c=()=>{let l=r[s];r[s]=0;let u=s===_;if(!(u&&n.lastCompleteTime<n.updateTime))if(n.updateSource=s,u)ae(n);else{let f=n.updateType===A&&n.cancelSchedule;ft(s===F&&!f&&l===1?t:n.current)}};s===F&&bn()?c():Se(c)}function C(e){this.props=e,this.state=void 0,this.context=void 0,this[d]={lastSnapshot:null,pendingSyncUpdates:[],pendingDeferredUpdates:[],fiber:null,nodes:null,mounted:!1,committedValues:{},memoizedValues:null,isDirty:!1,renderCount:0}}C.prototype.setState=function(e,t){ot(this,o=>({state:e,transitionId:o,callback:t}))&&w(this)};C.prototype.forceUpdate=function(e){let t=this[d],{fiber:n}=t;n&&(n.root.forcedUpdateWith=this,this[d].isDirty=!0,w(this),e&&e(this.state))};C.prototype.render=function(){};C.prototype.__render=function(){let e=this.render();return this[d].nodes=e,e};C.prototype.isReactComponent=!0;function W(e){C.call(this,e)}W.prototype=Object.create(C.prototype);W.prototype.constructor=W;W.prototype.isPureReactComponent=!0;function D(e,t,n){if(!e||typeof e!="string"&&typeof e!="function"&&typeof e!="object"){let c="Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(e===null?"null":typeof e)+".";throw(typeof e=="undefined"||typeof e=="object"&&e!==null)&&(c+=`
|
|
4
4
|
|
|
5
|
-
You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),new Error(c)}let{ref:o}=t;n===void 0&&(n=t.key);let r=typeof e=="function"&&e.prototype&&e.prototype.isReactComponent,s=typeof e=="function"&&!r||e.__isForwardRef;t=pe(t,s);let a=Xe(t,null,n);if(a.type=e,typeof e=="string")return a.nodeType=J,a.ref=o,a;a.nodeType=r?D:_t,a.ref=r?o:null,e.__loadLazyComponent&&e.__loadLazyComponent();let i=typeof e=="function"&&e.defaultProps;if(i)for(n in i)t[n]===void 0&&(t[n]=i[n]);return a}function Eo(e,t,n){t=t||{};let r=arguments.length>3?$(arguments,2):n;return r&&(t.children=r),b(e,t,t.key)}function ct(e,t){let{root:n}=e,{nodeInstance:o}=e;for(;!(o instanceof Oe||t&&o instanceof V);){if(e=e.parent,e===n)return null;o=e.nodeInstance}return e}function qn(e){let t=ct(e.parent,!0);if(!(t&&t.nodeInstance instanceof V))return e;let{nodeInstance:o}=t,{childManagers:r}=o.suspenseManagers[Z(e,null).transitionId],{revealOrder:s}=o.props;return s==="backwards"||s==="together"?(r.forEach(a=>{a.component[d].isDirty=!0}),r[0].fiber):e}function Vt(e){let{parentSuspenseManager:t}=e;return t&&t.isSuspenseList?t:null}function qt(e,t){let{nodeInstance:n}=e,{suspenseManagers:o}=n,{transitionId:r}=t,s=o[r];return s||(s=o[r]=new Xt(e,t)),t.transitionState===X&&(s.suspender=null),s}function go(e){e[d].isDirty=!0}function gr(e){let t=M(e.component);e.isUnresolved()&&t&&(go(e.component),k(t,y))}var Xt=class{constructor(t,n){let{nodeInstance:o}=t;this.fiber=t,this.component=o,this.transition=n,this.childManagers=[],this.suspender=null,this.isSuspenseList=o instanceof V;let r=ct(t.parent,!0);this.parentSuspenseManager=r&&qt(r,n),this.recordChildSuspense(),this.handleSuspense=this.handleSuspense.bind(this)}recordChildSuspense(){let{parentSuspenseManager:t}=this;t?(t.childManagers.push(this),this.rootSuspenseManager=t.rootSuspenseManager):this.rootSuspenseManager=this}addRootToProcess(){let{rootSuspenseManager:t}=this,{root:n}=_();n.afterRender(t.handleSuspense)}suspend(t){this.suspender=t,this.addRootToProcess()}handleSuspense(){let{component:t,suspender:n}=this;return t instanceof V?this.handleSuspenseList():Promise.resolve(n).then(this.resolve.bind(this,n))}isUnresolved(){return this.isSuspenseList?this.childManagers.some(t=>t.isUnresolved()):this.suspender}shouldShowFallback(){let t=Vt(this);if(!t)return!0;let{component:n,childManagers:o}=t,{tail:r}=n.props;if(Vt(t)&&!t.shouldShowFallback())return!1;if(r==="collapsed")for(let a=0,i=o.length;a<i;a++){let c=o[a];if(r==="collapsed"&&c.isUnresolved())return c===this}return r!=="hidden"}shouldRenderChildren(){let t=Vt(this),{suspender:n}=this;if(!t)return!n;if(We(this.component)&&!n)return!0;let{component:{props:{revealOrder:o}},childManagers:r}=t,s=r.indexOf(this);return!r.some((i,c)=>{let{suspender:l}=i;return l?o==="together"||o==="forwards"&&c<=s||o==="backwards"&&c>=s:!1})}resolve(t){let{component:n,transition:o,suspender:r,childManagers:s}=this,a=o.pendingSuspense||[];if(t!==r)return;if(!r){s.forEach(p=>{p.handleSuspense()});return}this.suspender=null,go(this.component);let i=o.transitionState===K,c=a.filter(p=>p.suspenseManagers[o.transitionId].suspender).length;!i&&!c&&(o.transitionState=ge);let l=()=>{let p=n;M(n)||(p=this.fiber.root.wip.nodeInstance),w(p)};setTimeout(()=>{i||!a.includes(n)?nt(l):ie(o,l)},gn()%Tn)}getChildrenSuspenders(){let t=[];return this.childManagers.forEach(n=>{n.isSuspenseList?t=t.concat(n.getChildrenSuspenders()):n.suspender&&t.push(n.suspender)}),t}handleSuspenseList(){let{component:t,childManagers:n}=this,{revealOrder:o="together",tail:r}=t.props,s=(i,c)=>i.then(()=>(o==="forwards"&&r==="collapsed"&&gr(c),c.handleSuspense())),a=Promise.all(this.getChildrenSuspenders());if(o==="together")a.then(()=>{n.forEach(i=>i.handleSuspense())});else if(o==="forwards"){let i=Ge;for(let c=0,l=n.length;c<l;c++)i=s(i,n[c])}else if(o==="backwards"){let i=Ge;for(let c=n.length-1;c>=0;c--)i=s(i,n[c])}return a}};function yo(e){let t=_(),n=Z(t,v);return n.transitionState===ge&&!n.pendingSuspense.includes(e)&&(n=v),n}var V=class extends N{constructor(t){super(t),this.suspenseManagers={}}render(){return this.props.children}},Oe=class extends N{constructor(t){super(t),this.suspenseManagers={}}handleSuspender(t,n){let o=yo(this),r=qt(n,o);_e(o)||(o.pendingSuspense.includes(this)||o.pendingSuspense.push(this),o.transitionState=le),r.suspend(t)}render(){let{fallback:t,children:n}=this.props,o=yo(this),r=_(),s=qt(r,o);return s.shouldRenderChildren()?n:s.shouldShowFallback()?t:null}},Co=e=>{let t,n=lt((o,r)=>{let s=t.read();return b(s.default,{...o,ref:r})});return n.__loadLazyComponent=()=>{t||(t=Sn(e()))},n};function So(e){return e.split(",").map(n=>{let[o,r,s]=n.split("|"),a=o==="0",i=o==="2";return{isAttribute:a,refNodeIndex:r?Number(r):-1,attrIndex:a?Number(s):-1,prevChildIndex:!a&&s?Number(s):-1,hasExpressionSibling:i,tagAttrs:void 0}})}var Ue=class{constructor(t,n){this.strings=t,this.template=null,this.svgTemplate=null,this.partsMeta=[],this.partMetaCode=n}getPartsMeta(){return this.partsMeta.length||(this.partsMeta=So(this.partMetaCode)),this.partsMeta}create(t){t&&this.svgTemplate||this.template||(this.partsMeta.length||(this.partsMeta=So(this.partMetaCode)),this.createTemplate(t))}createTemplate(t){let{strings:n}=this,o=document.createElement("template"),r=n.join("");if(o.innerHTML=t?`<svg>${r}</svg>`:r,t){let{content:a}=o,i=a.firstChild;for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}let s=t?"svgTemplate":"template";this[s]=o}};var Ao=new WeakMap;function Cr(e,t){let n=Xe(null,t,void 0);return n.nodeType=Nt,n.template=e,n}function No(e,...t){return n=>{let o=Ao.get(e);return o||(o=new Ue(e,n),Ao.set(e,o)),Cr(o,t)}}function Qt(e,t){let{__rootFiber:n}=t,o;if(n)o=n.current,o.node.props.children=e,o.processedTime=0,k(o,A);else{let r=b(de,{children:e}),s={parentNode:t,previousSibling:null,isNode:!0};n=Ze(t),o=fe(n,r,s),o.parent=n,n.current=o,t.__rootFiber=n}return Te(()=>{n.updateSource=se(),dt(o)}),e&&e.nodeType===D?o.child.nodeInstance:null}function Sr(e,t){return e&&(e.portalContainer=t),e}var _o=Sr;function Ar(e){let{__rootFiber:t}=e;return t?(re(t.current),he(t),e.__rootFiber=void 0,!0):!1}var xo=Ar;var Nr=/<([^\s"'=<>/]+)/g,Ro=/\s*([^\s"'=<>/]*)/g,_r=/[^"]*/g,xr=/[^"]*/g,Rr=/<\/([^\s"'=<>]+)>/g,Fr=/[^<]*/g,Ir=/<!--.*?-->/g,br=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Dr(e){let t=[],n=!1,o,r={},s=(l,p)=>{l.children?Array.isArray(l.children)?l.children.push(p):l.children=[l.children,p]:l.children=p},a=l=>{let p=t[t.length-1];s(p?p.props:r,l)},i=()=>{n=!1,a(o),br.includes(o.type)||t.push(o)},c=l=>{let p={$$BrahmosDynamicPart:l};o?n?o.props[`$$BrahmosDynamicPart${l}`]=p:s(o.props,p):s(r,p)};return e.forEach((l,p)=>{let f=l.length,m,u=0,T=E=>{E.lastIndex=u;let h=E.exec(l);return h&&(u=E.lastIndex),h},S=E=>{E.lastIndex=u+2;let h=E.exec(l);return u=E.lastIndex+1,h[0]};for(;u<f;){if(l[u]==="<"&&l[u+1]==="/"){t.pop(),T(Rr);continue}else if(l[u]==="<"&&l[u+1]==="!"){T(Ir);continue}else if(l[u]==="<"){m=T(Nr)[1],o={$$typeof:ke,type:m,nodeType:J,props:{}},n=!0;continue}else if(l[u]===" "&&n){Ro.lastIndex=u;let E=T(Ro),h,g;if(E){h=E[1],l[u]!=="="?g=!0:l[u+1]==='"'?g=S(_r):l[u+1]==="'"&&(g=S(xr)),h&&(o.props[h]=g);continue}}else if(l[u]===">"&&n)i();else if(!n){let E=T(Fr);a(E[0]);continue}u++}c(p)}),r.children}var{hasOwnProperty:Pr}=Object.prototype;function Fo(e,t){if(e==null||typeof e!="object")return e;let n=new e.constructor;for(var o in e)if(Pr.call(e,o)){let r=e[o],s=r&&r.$$BrahmosDynamicPart;if(s!==void 0){let a=t[s];o[0]==="$"?n=Object.assign(n,a):n[o]=a}else n[o]=Fo(e[o],t)}return n}function ve(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=Dr(o)),Fo(n.staticTree,t)}function Or(e){return B(e)&&!e.template.strings.some(Boolean)}function Io(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(Io(n)):n&&ee(n)?t.push(ve(n)):t.push(n)}),t}function Me(e){if(Q(e))return;if(typeof e=="boolean")return[];if(e[d])return e[d];let t=e;return Or(t)&&(t=t.values),ee(t)&&(t=ve(t)),Array.isArray(t)||(t=[t]),t=Io(t),e[d]=t,t}function Ur(e,t){let n=Me(e);return n?n.map(t):e}function vr(e){return(Me(e)||[]).map((n,o)=>(n&&n.key===void 0&&(n.key=o),n))}function Mr(e,t){(Me(e)||[]).forEach(t)}function wr(e){let t=Me(e);if(t&&t.length===1)return t[0];throw new Error("React.Children.only expected to receive a single React element child.")}function Lr(e){let t=Me(e);return t?t.length:0}var bo={map:Ur,toArray:vr,forEach:Mr,only:wr,count:Lr};function Do(e){return e&&(x(e)||G(e))}function Zt(e,t){t=t||{};let n=arguments.length;if(n>2){let o=n>3?$(arguments,2):arguments[2];t.children=o}if(e){if(ee(e)){let o=ve(e);return Zt(o,t)}else if(x(e)||G(e)){let o=e.type,r=typeof o=="function"&&o.prototype&&o.prototype.isReactComponent,s=typeof o=="function"&&!r||o.__isForwardRef;return{...e,key:t.key!==void 0?t.key:e.key,props:{...e.props,...pe(t,s)},ref:s?null:t.ref!==void 0?t.ref:e.ref}}}return e}function Jt(e,t){class n extends W{render(){return b(e,this.props)}}return n.displayName=`Memo(${e.displayName||e.name})`,n}function Po(e){let t=e[Be];return t||(t=Ze(e),e[Be]=t),{render(n){let o=t.current;if(o)o.node.props.children=n,o.processedTime=0,k(o,y);else{let s=b(de,{children:n});o=fe(t,s,{parentNode:e,previousSibling:null,isNode:!0}),o.parent=t,t.current=o}let r=v;t.pendingTransitions.includes(r)||t.pendingTransitions.push(r),I(C,()=>{t.updateSource=C,ae(t)})},unmount(){t.cancelSchedule&&(t.cancelSchedule(),t.cancelSchedule=null);let n=t.current;n&&(n.shouldTearDown=!0,t.tearDownFibers.push(n),he(t),t.current=null),delete e[Be]}}}function en(e){if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status==="pending"||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})),e)}function Oo(e){if(!_())throw new Error("use() must be called during render.");if(e&&typeof e.then=="function")return en(e);throw new Error("Unsupported type passed to use()")}function kr(e){let t=Promise.resolve(),n=new Set,o=e(r=>{n.forEach(s=>s(r))});return t._watch={unsubscribe:r=>{r&&n.delete(r),n.size===0&&o&&o()},subscribe:r=>n.add(r)},t}function ft(e){Uo(e)}ft.create=kr;ft.sync=e=>{Uo(e,{sync:!0})};function Uo(e,t={}){Ie(()=>{var r;let n=_(),o=n?n.nodeInstance:null;if(!o)throw new Error("watch() must be called during render.");if(e._watch&&!((r=o.__unmount)!=null&&r.has(e))){let s=()=>{let a=M(o);if(a){let i=t.sync?U:C;I(i,()=>{o[d].isDirty=!0,F(a,R),w(o)})}};e._watch.subscribe(s),o.__unmount.set(e,()=>e._watch.unsubscribe(s))}en(e)})}var vo=e=>e.children,Hr=vo,Br=vo;function Yr(e){e()}function Kr(...e){e.forEach(t=>{t.__isReactCompat=!0})}var jr=b,$r=b,zr=b;var Gr={setCurrentComponentFiber:xe,functionalComponentInstance:be};var Fc=tn;export{bo as Children,N as Component,Br as Fragment,W as PureComponent,Hr as StrictMode,Oe as Suspense,V as SuspenseList,Gr as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zt as cloneElement,Dt as createContext,Eo as createElement,_o as createPortal,oo as createRef,Po as createRoot,Fc as default,lt as forwardRef,No as html,Do as isValidElement,jr as jsx,zr as jsxDev,$r as jsxs,Co as lazy,Jt as memo,Kr as reacty,Qt as render,Ie as startTransition,xo as unmountComponentAtNode,Yr as unstable_batchedUpdates,nt as unstable_deferredUpdates,Te as unstable_syncUpdates,Oo as use,Bn as useCallback,$n as useContext,jn as useDebugValue,Gn as useDeferredValue,vt as useEffect,Kn as useImperativeHandle,it as useLayoutEffect,Ut as useMemo,Hn as useReducer,kn as useRef,Ot as useState,zn as useTransition,ft as watch};
|
|
5
|
+
You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),new Error(c)}let{ref:o}=t;n===void 0&&(n=t.key);let r=typeof e=="function"&&e.prototype&&e.prototype.isReactComponent,s=typeof e=="function"&&!r||e.__isForwardRef;t=ue(t,s);let a=Xe(t,null,n);if(a.type=e,typeof e=="string")return a.nodeType=ee,a.ref=o,a;a.nodeType=r?O:xt,a.ref=r?o:null,e.__loadLazyComponent&&e.__loadLazyComponent();let i=typeof e=="function"&&e.defaultProps;if(i)for(n in i)t[n]===void 0&&(t[n]=i[n]);return a}function go(e,t,n){t=t||{};let r=arguments.length>3?z(arguments,2):n;return r&&(t.children=r),D(e,t,t.key)}function lt(e,t){let{root:n}=e,{nodeInstance:o}=e;for(;!(o instanceof Pe||t&&o instanceof q);){if(e=e.parent,e===n)return null;o=e.nodeInstance}return e}function Qn(e){let t=lt(e.parent,!0);if(!(t&&t.nodeInstance instanceof q))return e;let{nodeInstance:o}=t,{childManagers:r}=o.suspenseManagers[J(e,null).transitionId],{revealOrder:s}=o.props;return s==="backwards"||s==="together"?(r.forEach(a=>{a.component[d].isDirty=!0}),r[0].fiber):e}function Wt(e){let{parentSuspenseManager:t}=e;return t&&t.isSuspenseList?t:null}function qt(e,t){let{nodeInstance:n}=e,{suspenseManagers:o}=n,{transitionId:r}=t,s=o[r];return s||(s=o[r]=new Xt(e,t)),t.transitionState===Q&&(s.suspender=null),s}function So(e){e[d].isDirty=!0}function Sr(e){let t=M(e.component);e.isUnresolved()&&t&&(So(e.component),k(t,y))}var Xt=class{constructor(t,n){let{nodeInstance:o}=t;this.fiber=t,this.component=o,this.transition=n,this.childManagers=[],this.suspender=null,this.isSuspenseList=o instanceof q;let r=lt(t.parent,!0);this.parentSuspenseManager=r&&qt(r,n),this.recordChildSuspense(),this.handleSuspense=this.handleSuspense.bind(this)}recordChildSuspense(){let{parentSuspenseManager:t}=this;t?(t.childManagers.push(this),this.rootSuspenseManager=t.rootSuspenseManager):this.rootSuspenseManager=this}addRootToProcess(){let{rootSuspenseManager:t}=this,{root:n}=N();n.afterRender(t.handleSuspense)}suspend(t){this.suspender=t,this.addRootToProcess()}handleSuspense(){let{component:t,suspender:n}=this;return t instanceof q?this.handleSuspenseList():Promise.resolve(n).then(this.resolve.bind(this,n))}isUnresolved(){return this.isSuspenseList?this.childManagers.some(t=>t.isUnresolved()):this.suspender}shouldShowFallback(){let t=Wt(this);if(!t)return!0;let{component:n,childManagers:o}=t,{tail:r}=n.props;if(Wt(t)&&!t.shouldShowFallback())return!1;if(r==="collapsed")for(let a=0,i=o.length;a<i;a++){let c=o[a];if(r==="collapsed"&&c.isUnresolved())return c===this}return r!=="hidden"}shouldRenderChildren(){let t=Wt(this),{suspender:n}=this;if(!t)return!n;if(Ve(this.component)&&!n)return!0;let{component:{props:{revealOrder:o}},childManagers:r}=t,s=r.indexOf(this);return!r.some((i,c)=>{let{suspender:l}=i;return l?o==="together"||o==="forwards"&&c<=s||o==="backwards"&&c>=s:!1})}resolve(t){let{component:n,transition:o,suspender:r,childManagers:s}=this,a=o.pendingSuspense||[];if(t!==r)return;if(!r){s.forEach(u=>{u.handleSuspense()});return}this.suspender=null,So(this.component);let i=o.transitionState===j,c=a.filter(u=>u.suspenseManagers[o.transitionId].suspender).length;!i&&!c&&(o.transitionState=ye);let l=()=>{let u=n;M(n)||(u=this.fiber.root.wip.nodeInstance),w(u)};setTimeout(()=>{i||!a.includes(n)?K(P,l):K(o,l)},gn()%Tn)}getChildrenSuspenders(){let t=[];return this.childManagers.forEach(n=>{n.isSuspenseList?t=t.concat(n.getChildrenSuspenders()):n.suspender&&t.push(n.suspender)}),t}handleSuspenseList(){let{component:t,childManagers:n}=this,{revealOrder:o="together",tail:r}=t.props,s=(i,c)=>i.then(()=>(o==="forwards"&&r==="collapsed"&&Sr(c),c.handleSuspense())),a=Promise.all(this.getChildrenSuspenders());if(o==="together")a.then(()=>{n.forEach(i=>i.handleSuspense())});else if(o==="forwards"){let i=Ge;for(let c=0,l=n.length;c<l;c++)i=s(i,n[c])}else if(o==="backwards"){let i=Ge;for(let c=n.length-1;c>=0;c--)i=s(i,n[c])}return a}};function Co(e){let t=N(),n=J(t,P);return n.transitionState===ye&&!n.pendingSuspense.includes(e)&&(n=P),n}var q=class extends C{constructor(t){super(t),this.suspenseManagers={}}render(){return this.props.children}},Pe=class extends C{constructor(t){super(t),this.suspenseManagers={}}handleSuspender(t,n){let o=Co(this),r=qt(n,o);Ae(o)||(o.pendingSuspense.includes(this)||o.pendingSuspense.push(this),o.transitionState=le),r.suspend(t)}render(){let{fallback:t,children:n}=this.props,o=Co(this),r=N(),s=qt(r,o);return s.shouldRenderChildren()?n:s.shouldShowFallback()?t:null}},Ao=e=>{let t,n=ut((o,r)=>{let s=t.read();return D(s.default,{...o,ref:r})});return n.__loadLazyComponent=()=>{t||(t=Sn(e()))},n};function _o(e){return e.split(",").map(n=>{let[o,r,s]=n.split("|"),a=o==="0",i=o==="2";return{isAttribute:a,refNodeIndex:r?Number(r):-1,attrIndex:a?Number(s):-1,prevChildIndex:!a&&s?Number(s):-1,hasExpressionSibling:i,tagAttrs:void 0}})}var Oe=class{constructor(t,n){this.strings=t,this.template=null,this.svgTemplate=null,this.partsMeta=[],this.partMetaCode=n}getPartsMeta(){return this.partsMeta.length||(this.partsMeta=_o(this.partMetaCode)),this.partsMeta}create(t){t&&this.svgTemplate||this.template||(this.partsMeta.length||(this.partsMeta=_o(this.partMetaCode)),this.createTemplate(t))}createTemplate(t){let{strings:n}=this,o=document.createElement("template"),r=n.join("");if(o.innerHTML=t?`<svg>${r}</svg>`:r,t){let{content:a}=o,i=a.firstChild;for(;i.firstChild;)a.insertBefore(i.firstChild,i);a.removeChild(i)}let s=t?"svgTemplate":"template";this[s]=o}};var No=new WeakMap;function Ar(e,t){let n=Xe(null,t,void 0);return n.nodeType=Nt,n.template=e,n}function xo(e,...t){return n=>{let o=No.get(e);return o||(o=new Oe(e,n),No.set(e,o)),Ar(o,t)}}function Qt(e,t){let{__rootFiber:n}=t,o;if(n)o=n.current,o.node.props.children=e,o.processedTime=0,k(o,A);else{let r=D(fe,{children:e}),s={parentNode:t,previousSibling:null,isNode:!0};n=Ze(t),o=me(n,r,s),o.parent=n,n.current=o,t.__rootFiber=n}return R(F,()=>{n.updateSource=ie(),ft(o)}),e&&e.nodeType===O?o.child.nodeInstance:null}function _r(e,t){return e&&(e.portalContainer=t),e}var Ro=_r;function Nr(e){let{__rootFiber:t}=e;return t?(se(t.current),he(t),e.__rootFiber=void 0,!0):!1}var Fo=Nr;var xr=/<([^\s"'=<>/]+)/g,Io=/\s*([^\s"'=<>/]*)/g,Rr=/[^"]*/g,Fr=/[^"]*/g,Ir=/<\/([^\s"'=<>]+)>/g,br=/[^<]*/g,Dr=/<!--.*?-->/g,Pr=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function Or(e){let t=[],n=!1,o,r={},s=(l,u)=>{l.children?Array.isArray(l.children)?l.children.push(u):l.children=[l.children,u]:l.children=u},a=l=>{let u=t[t.length-1];s(u?u.props:r,l)},i=()=>{n=!1,a(o),Pr.includes(o.type)||t.push(o)},c=l=>{let u={$$BrahmosDynamicPart:l};o?n?o.props[`$$BrahmosDynamicPart${l}`]=u:s(o.props,u):s(r,u)};return e.forEach((l,u)=>{let f=l.length,m,p=0,h=E=>{E.lastIndex=p;let T=E.exec(l);return T&&(p=E.lastIndex),T},S=E=>{E.lastIndex=p+2;let T=E.exec(l);return p=E.lastIndex+1,T[0]};for(;p<f;){if(l[p]==="<"&&l[p+1]==="/"){t.pop(),h(Ir);continue}else if(l[p]==="<"&&l[p+1]==="!"){h(Dr);continue}else if(l[p]==="<"){m=h(xr)[1],o={$$typeof:Le,type:m,nodeType:ee,props:{}},n=!0;continue}else if(l[p]===" "&&n){Io.lastIndex=p;let E=h(Io),T,g;if(E){T=E[1],l[p]!=="="?g=!0:l[p+1]==='"'?g=S(Rr):l[p+1]==="'"&&(g=S(Fr)),T&&(o.props[T]=g);continue}}else if(l[p]===">"&&n)i();else if(!n){let E=h(br);a(E[0]);continue}p++}c(u)}),r.children}var{hasOwnProperty:Ur}=Object.prototype;function bo(e,t){if(e==null||typeof e!="object")return e;let n=new e.constructor;for(var o in e)if(Ur.call(e,o)){let r=e[o],s=r&&r.$$BrahmosDynamicPart;if(s!==void 0){let a=t[s];o[0]==="$"?n=Object.assign(n,a):n[o]=a}else n[o]=bo(e[o],t)}return n}function Ue(e){let{values:t,template:n}=e,{strings:o}=n;return n.staticTree||(n.staticTree=Or(o)),bo(n.staticTree,t)}function vr(e){return B(e)&&!e.template.strings.some(Boolean)}function Do(e){let t=[];return e.forEach(n=>{Array.isArray(n)?t=t.concat(Do(n)):n&&te(n)?t.push(Ue(n)):t.push(n)}),t}function ve(e){if(Z(e))return;if(typeof e=="boolean")return[];if(e[d])return e[d];let t=e;return vr(t)&&(t=t.values),te(t)&&(t=Ue(t)),Array.isArray(t)||(t=[t]),t=Do(t),e[d]=t,t}function Mr(e,t){let n=ve(e);return n?n.map(t):e}function wr(e){return(ve(e)||[]).map((n,o)=>(n&&n.key===void 0&&(n.key=o),n))}function Lr(e,t){(ve(e)||[]).forEach(t)}function kr(e){let t=ve(e);if(t&&t.length===1)return t[0];throw new Error("React.Children.only expected to receive a single React element child.")}function Hr(e){let t=ve(e);return t?t.length:0}var Po={map:Mr,toArray:wr,forEach:Lr,only:kr,count:Hr};function Oo(e){return e&&(x(e)||V(e))}function Zt(e,t){t=t||{};let n=arguments.length;if(n>2){let o=n>3?z(arguments,2):arguments[2];t.children=o}if(e){if(te(e)){let o=Ue(e);return Zt(o,t)}else if(x(e)||V(e)){let o=e.type,r=typeof o=="function"&&o.prototype&&o.prototype.isReactComponent,s=typeof o=="function"&&!r||o.__isForwardRef;return{...e,key:t.key!==void 0?t.key:e.key,props:{...e.props,...ue(t,s)},ref:s?null:t.ref!==void 0?t.ref:e.ref}}}return e}function Jt(e,t){class n extends W{render(){return D(e,this.props)}}return n.displayName=`Memo(${e.displayName||e.name})`,n}function Uo(e){let t=e[He];return t||(t=Ze(e),e[He]=t),{render(n){let o=t.current;if(o)o.node.props.children=n,o.processedTime=0,k(o,y);else{let s=D(fe,{children:n});o=me(t,s,{parentNode:e,previousSibling:null,isNode:!0}),o.parent=t,t.current=o}let r=P;t.pendingTransitions.includes(r)||t.pendingTransitions.push(r),R(_,()=>{t.updateSource=_,ae(t)})},unmount(){t.cancelSchedule&&(t.cancelSchedule(),t.cancelSchedule=null);let n=t.current;n&&(n.shouldTearDown=!0,t.tearDownFibers.push(n),he(t),t.current=null),delete e[He]}}}function en(e){if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status==="pending"||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t})),e)}function vo(e){if(!N())throw new Error("use() must be called during render.");if(e&&typeof e.then=="function")return en(e);throw new Error("Unsupported type passed to use()")}function Br(e){let t=Promise.resolve(),n=new Set,o=e(r=>{n.forEach(s=>s(r))});return t._watch={unsubscribe:r=>{r&&n.delete(r),n.size===0&&o&&o()},subscribe:r=>n.add(r)},t}function mt(e){Mo(e)}mt.create=Br;mt.sync=e=>{Mo(e,{sync:!0})};function Mo(e,t={}){Fe(()=>{var r;let n=N(),o=n?n.nodeInstance:null;if(!o)throw new Error("watch() must be called during render.");if(e._watch&&!((r=o.__unmount)!=null&&r.has(e))){let s=()=>{let a=M(o);if(a){let i=()=>{o[d].isDirty=!0,b(a,I),w(o)};t.sync?nt(i):K(P,i)}};e._watch.subscribe(s),o.__unmount.set(e,()=>e._watch.unsubscribe(s))}en(e)})}var wo=e=>e.children,Yr=wo,Kr=wo;function jr(e){e()}function $r(...e){e.forEach(t=>{t.__isReactCompat=!0})}var zr=D,Gr=D,Vr=D;var Wr={setCurrentComponentFiber:_e,functionalComponentInstance:Ie};var bc=tn;export{Po as Children,C as Component,Kr as Fragment,W as PureComponent,Yr as StrictMode,Pe as Suspense,q as SuspenseList,Wr as __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Zt as cloneElement,Pt as createContext,go as createElement,Ro as createPortal,so as createRef,Uo as createRoot,bc as default,nt as flushSync,ut as forwardRef,xo as html,Oo as isValidElement,zr as jsx,Vr as jsxDEV,Gr as jsxs,Ao as lazy,Jt as memo,$r as reacty,Qt as render,Fe as startTransition,Fo as unmountComponentAtNode,jr as unstable_batchedUpdates,vo as use,Yn as useCallback,Gn as useContext,$n as useDebugValue,Wn as useDeferredValue,vt as useEffect,zn as useId,jn as useImperativeHandle,at as useLayoutEffect,Ut as useMemo,Bn as useReducer,Hn as useRef,it as useState,Vn as useTransition,mt as watch};
|
package/dist/ssr-vite.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var I=Promise.resolve();var N=Symbol.for("tag"),y=Symbol.for("tag-element"),_=Symbol.for("class-component"),x=Symbol.for("functional-component");function u({nodeType:e}){return e===y}function f({nodeType:e}){return e===N}function m({nodeType:e}){return e===_||e===x}function d(e){return typeof e=="string"||typeof e=="number"}import A from"potatejs";var g={area:1,base:1,br:1,col:1,embed:1,hr:1,img:1,input:1,link:1,meta:1,param:1,source:1,track:1,wbr:1};function T(e){return typeof e!="string"?String(e):e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function E(e){if(!e)return"";let t="";for(let o in e){let n=e[o];if(o==="children"||o==="key"||o==="ref"||n===!1||n===null||n===void 0)continue;let r=o==="className"?"class":o;n===!0?t+=` ${r}`:t+=` ${r}="${T(n)}"`}return t}function a(e){if(e==null||typeof e=="boolean")return"";if(d(e))return T(e);if(e.innerHTML
|
|
1
|
+
var I=Promise.resolve();var N=Symbol.for("tag"),y=Symbol.for("tag-element"),_=Symbol.for("class-component"),x=Symbol.for("functional-component");function u({nodeType:e}){return e===y}function f({nodeType:e}){return e===N}function m({nodeType:e}){return e===_||e===x}function d(e){return typeof e=="string"||typeof e=="number"}import A from"potatejs";var g={area:1,base:1,br:1,col:1,embed:1,hr:1,img:1,input:1,link:1,meta:1,param:1,source:1,track:1,wbr:1};function T(e){return typeof e!="string"?String(e):e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function E(e){if(!e)return"";let t="";for(let o in e){let n=e[o];if(o==="children"||o==="key"||o==="ref"||n===!1||n===null||n===void 0)continue;let r=o==="className"?"class":o;n===!0?t+=` ${r}`:t+=` ${r}="${T(n)}"`}return t}function a(e){if(e==null||typeof e=="boolean")return"";if(d(e))return T(e);if(e.innerHTML)return String(e.innerHTML);if(Array.isArray(e))return e.map(a).join("");if(m(e)){let t=e.type,o=e.props||{};if(t.prototype&&t.prototype.isReactComponent||t.__isReactCompat||typeof t=="object"&&t!==null)return"";if(typeof t=="function"){let n,{setCurrentComponentFiber:r,functionalComponentInstance:s}=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED||{};if(r&&s){let c={nodeInstance:s(t),root:{updateType:"sync"}};r(c);try{n=t(o)}finally{r(null)}}else n=t(o);return a(n)}}if(u(e)){let t=e.type,o=e.props||{},n=`<${t}${E(o)}`;return g[t]?n+=" />":(n+=">",o.children&&(n+=a(o.children)),n+=`</${t}>`),n}if(f(e)){let{template:t,values:o}=e,n=t.strings,r=t.getPartsMeta(),s=n[0];for(let i=0;i<o.length;i++){let c=o[i];r[i].isAttribute?s+=E(c):s+=a(c),s+=n[i+1]}return s}return""}function B(e={}){return{name:"potate-ssr-plugin",async transformIndexHtml(t,{server:o}){let n=e.entry;if(!n){let c=t.matchAll(/<script([^>]+)>/g);for(let l of c)if(l[1].includes('type="module"')){let p=l[1].match(/src="([^"]+)"/);if(p){n=p[1];break}}}let r=e.entryComponent;if(o&&n){let c=await o.ssrLoadModule(n);r=c.App||c.default}typeof r=="function"&&(r=r({}));let s=a(r),i=e.replaceTarget||'<div id="app"></div>';return i.includes("></")?t.replace(i,i.replace("></",`>${s}</`)):t.replace(i,s)}}}export{B as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "potatejs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.0",
|
|
4
4
|
"description": "Super charged UI library with modern React API and native templates.",
|
|
5
5
|
"author": "uniho",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,6 +52,11 @@
|
|
|
52
52
|
"import": "./dist/index.js",
|
|
53
53
|
"require": "./dist/index.js",
|
|
54
54
|
"default": "./dist/index.js"
|
|
55
|
+
},
|
|
56
|
+
"./jsx-dev-runtime": {
|
|
57
|
+
"import": "./dist/index.js",
|
|
58
|
+
"require": "./dist/index.js",
|
|
59
|
+
"default": "./dist/index.js"
|
|
55
60
|
}
|
|
56
61
|
},
|
|
57
62
|
"bin": {
|