@codefrydev/svg-engine 0.1.0 → 0.1.2
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 +56 -1
- package/dist/chunk-VCDC4W3X.js +3439 -0
- package/dist/editor.cjs +2910 -1630
- package/dist/editor.d.cts +2 -4
- package/dist/editor.d.ts +2 -4
- package/dist/editor.js +1068 -433
- package/dist/index.cjs +1864 -1219
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{types-BTYLCn9x.d.cts → types-BHUCCfQX.d.cts} +12 -2
- package/dist/{types-BTYLCn9x.d.ts → types-BHUCCfQX.d.ts} +12 -2
- package/dist/wc.cjs +1 -1
- package/dist/wc.d.cts +6 -3
- package/dist/wc.d.ts +6 -3
- package/dist/wc.iife.js +10 -299
- package/dist/wc.js +1 -1
- package/package.json +13 -5
- package/dist/chunk-KRCGD3CL.js +0 -2794
package/dist/wc.iife.js
CHANGED
|
@@ -1,246 +1,12 @@
|
|
|
1
|
-
var CodefrydevSvgEngine=(function(exports){'use strict';var jR=Object.create;var w8=Object.defineProperty;var qR=Object.getOwnPropertyDescriptor;var XR=Object.getOwnPropertyNames;var GR=Object.getPrototypeOf,QR=Object.prototype.hasOwnProperty;var gl=(t,l)=>()=>(l||t((l={exports:{}}).exports,l),l.exports);var VR=(t,l,o,i)=>{if(l&&typeof l=="object"||typeof l=="function")for(let c of XR(l))!QR.call(t,c)&&c!==o&&w8(t,c,{get:()=>l[c],enumerable:!(i=qR(l,c))||i.enumerable});return t};var Nt=(t,l,o)=>(o=t!=null?jR(GR(t)):{},VR(w8(o,"default",{value:t,enumerable:true}),t));var X8=gl(Wt=>{var Px=Symbol.for("react.transitional.element"),ZR=Symbol.for("react.portal"),JR=Symbol.for("react.fragment"),KR=Symbol.for("react.strict_mode"),FR=Symbol.for("react.profiler"),IR=Symbol.for("react.consumer"),PR=Symbol.for("react.context"),t7=Symbol.for("react.forward_ref"),e7=Symbol.for("react.suspense"),n7=Symbol.for("react.memo"),L8=Symbol.for("react.lazy"),l7=Symbol.for("react.activity"),U8=Symbol.iterator;function a7(t){return t===null||typeof t!="object"?null:(t=U8&&t[U8]||t["@@iterator"],typeof t=="function"?t:null)}var Y8={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B8=Object.assign,W8={};function Ns(t,l,o){this.props=t,this.context=l,this.refs=W8,this.updater=o||Y8;}Ns.prototype.isReactComponent={};Ns.prototype.setState=function(t,l){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,l,"setState");};Ns.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate");};function j8(){}j8.prototype=Ns.prototype;function tb(t,l,o){this.props=t,this.context=l,this.refs=W8,this.updater=o||Y8;}var eb=tb.prototype=new j8;eb.constructor=tb;B8(eb,Ns.prototype);eb.isPureReactComponent=true;var N8=Array.isArray;function Ix(){}var qe={H:null,A:null,T:null,S:null},q8=Object.prototype.hasOwnProperty;function nb(t,l,o){var i=o.ref;return {$$typeof:Px,type:t,key:l,ref:i!==void 0?i:null,props:o}}function o7(t,l){return nb(t.type,l,t.props)}function lb(t){return typeof t=="object"&&t!==null&&t.$$typeof===Px}function i7(t){var l={"=":"=0",":":"=2"};return "$"+t.replace(/[=:]/g,function(o){return l[o]})}var $8=/\/+/g;function Fx(t,l){return typeof t=="object"&&t!==null&&t.key!=null?i7(""+t.key):l.toString(36)}function u7(t){switch(t.status){case "fulfilled":return t.value;case "rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Ix,Ix):(t.status="pending",t.then(function(l){t.status==="pending"&&(t.status="fulfilled",t.value=l);},function(l){t.status==="pending"&&(t.status="rejected",t.reason=l);})),t.status){case "fulfilled":return t.value;case "rejected":throw t.reason}}throw t}function Us(t,l,o,i,c){var f=typeof t;(f==="undefined"||f==="boolean")&&(t=null);var h=false;if(t===null)h=true;else switch(f){case "bigint":case "string":case "number":h=true;break;case "object":switch(t.$$typeof){case Px:case ZR:h=true;break;case L8:return h=t._init,Us(h(t._payload),l,o,i,c)}}if(h)return c=c(t),h=i===""?"."+Fx(t,0):i,N8(c)?(o="",h!=null&&(o=h.replace($8,"$&/")+"/"),Us(c,l,o,"",function(E){return E})):c!=null&&(lb(c)&&(c=o7(c,o+(c.key==null||t&&t.key===c.key?"":(""+c.key).replace($8,"$&/")+"/")+h)),l.push(c)),1;h=0;var m=i===""?".":i+":";if(N8(t))for(var x=0;x<t.length;x++)i=t[x],f=m+Fx(i,x),h+=Us(i,l,o,f,c);else if(x=a7(t),typeof x=="function")for(t=x.call(t),x=0;!(i=t.next()).done;)i=i.value,f=m+Fx(i,x++),h+=Us(i,l,o,f,c);else if(f==="object"){if(typeof t.then=="function")return Us(u7(t),l,o,i,c);throw l=String(t),Error("Objects are not valid as a React child (found: "+(l==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":l)+"). If you meant to render a collection of children, use an array instead.")}return h}function C1(t,l,o){if(t==null)return t;var i=[],c=0;return Us(t,i,"","",function(f){return l.call(o,f,c++)}),i}function c7(t){if(t._status===-1){var l=t._result;l=l(),l.then(function(o){(t._status===0||t._status===-1)&&(t._status=1,t._result=o);},function(o){(t._status===0||t._status===-1)&&(t._status=2,t._result=o);}),t._status===-1&&(t._status=0,t._result=l);}if(t._status===1)return t._result.default;throw t._result}var H8=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t);},r7={map:C1,forEach:function(t,l,o){C1(t,function(){l.apply(this,arguments);},o);},count:function(t){var l=0;return C1(t,function(){l++;}),l},toArray:function(t){return C1(t,function(l){return l})||[]},only:function(t){if(!lb(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Wt.Activity=l7;Wt.Children=r7;Wt.Component=Ns;Wt.Fragment=JR;Wt.Profiler=FR;Wt.PureComponent=tb;Wt.StrictMode=KR;Wt.Suspense=e7;Wt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=qe;Wt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return qe.H.useMemoCache(t)}};Wt.cache=function(t){return function(){return t.apply(null,arguments)}};Wt.cacheSignal=function(){return null};Wt.cloneElement=function(t,l,o){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var i=B8({},t.props),c=t.key;if(l!=null)for(f in l.key!==void 0&&(c=""+l.key),l)!q8.call(l,f)||f==="key"||f==="__self"||f==="__source"||f==="ref"&&l.ref===void 0||(i[f]=l[f]);var f=arguments.length-2;if(f===1)i.children=o;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];i.children=h;}return nb(t.type,c,i)};Wt.createContext=function(t){return t={$$typeof:PR,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:IR,_context:t},t};Wt.createElement=function(t,l,o){var i,c={},f=null;if(l!=null)for(i in l.key!==void 0&&(f=""+l.key),l)q8.call(l,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(c[i]=l[i]);var h=arguments.length-2;if(h===1)c.children=o;else if(1<h){for(var m=Array(h),x=0;x<h;x++)m[x]=arguments[x+2];c.children=m;}if(t&&t.defaultProps)for(i in h=t.defaultProps,h)c[i]===void 0&&(c[i]=h[i]);return nb(t,f,c)};Wt.createRef=function(){return {current:null}};Wt.forwardRef=function(t){return {$$typeof:t7,render:t}};Wt.isValidElement=lb;Wt.lazy=function(t){return {$$typeof:L8,_payload:{_status:-1,_result:t},_init:c7}};Wt.memo=function(t,l){return {$$typeof:n7,type:t,compare:l===void 0?null:l}};Wt.startTransition=function(t){var l=qe.T,o={};qe.T=o;try{var i=t(),c=qe.S;c!==null&&c(o,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Ix,H8);}catch(f){H8(f);}finally{l!==null&&o.types!==null&&(l.types=o.types),qe.T=l;}};Wt.unstable_useCacheRefresh=function(){return qe.H.useCacheRefresh()};Wt.use=function(t){return qe.H.use(t)};Wt.useActionState=function(t,l,o){return qe.H.useActionState(t,l,o)};Wt.useCallback=function(t,l){return qe.H.useCallback(t,l)};Wt.useContext=function(t){return qe.H.useContext(t)};Wt.useDebugValue=function(){};Wt.useDeferredValue=function(t,l){return qe.H.useDeferredValue(t,l)};Wt.useEffect=function(t,l){return qe.H.useEffect(t,l)};Wt.useEffectEvent=function(t){return qe.H.useEffectEvent(t)};Wt.useId=function(){return qe.H.useId()};Wt.useImperativeHandle=function(t,l,o){return qe.H.useImperativeHandle(t,l,o)};Wt.useInsertionEffect=function(t,l){return qe.H.useInsertionEffect(t,l)};Wt.useLayoutEffect=function(t,l){return qe.H.useLayoutEffect(t,l)};Wt.useMemo=function(t,l){return qe.H.useMemo(t,l)};Wt.useOptimistic=function(t,l){return qe.H.useOptimistic(t,l)};Wt.useReducer=function(t,l,o){return qe.H.useReducer(t,l,o)};Wt.useRef=function(t){return qe.H.useRef(t)};Wt.useState=function(t){return qe.H.useState(t)};Wt.useSyncExternalStore=function(t,l,o){return qe.H.useSyncExternalStore(t,l,o)};Wt.useTransition=function(){return qe.H.useTransition()};Wt.version="19.2.5";});var G8=gl((Lt,O1)=>{process.env.NODE_ENV!=="production"&&(function(){function t(S,N){Object.defineProperty(i.prototype,S,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",N[0],N[1]);}});}function l(S){return S===null||typeof S!="object"?null:(S=Dr&&S[Dr]||S["@@iterator"],typeof S=="function"?S:null)}function o(S,N){S=(S=S.constructor)&&(S.displayName||S.name)||"ReactClass";var tt=S+"."+N;dt[tt]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",N,S),dt[tt]=true);}function i(S,N,tt){this.props=S,this.context=N,this.refs=Zi,this.updater=tt||kr;}function c(){}function f(S,N,tt){this.props=S,this.context=N,this.refs=Zi,this.updater=tt||kr;}function h(){}function m(S){return ""+S}function x(S){try{m(S);var N=!1;}catch{N=true;}if(N){N=console;var tt=N.error,ot=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return tt.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ot),m(S)}}function E(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===Of?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case ye:return "Fragment";case K:return "Profiler";case kn:return "StrictMode";case Xl:return "Suspense";case yc:return "SuspenseList";case Fa:return "Activity"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case he:return "Portal";case Pt:return S.displayName||"Context";case Dt:return (S._context.displayName||"Context")+".Consumer";case Yt:var N=S.render;return S=S.displayName,S||(S=N.displayName||N.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case $e:return N=S.displayName||null,N!==null?N:E(S.type)||"Memo";case ul:N=S._payload,S=S._init;try{return E(S(N))}catch{}}return null}function T(S){if(S===ye)return "<>";if(typeof S=="object"&&S!==null&&S.$$typeof===ul)return "<...>";try{var N=E(S);return N?"<"+N+">":"<...>"}catch{return "<...>"}}function M(){var S=jt.A;return S===null?null:S.getOwner()}function v(){return Error("react-stack-top-frame")}function _(S){if(Cr.call(S,"key")){var N=Object.getOwnPropertyDescriptor(S,"key").get;if(N&&N.isReactWarning)return false}return S.key!==void 0}function $(S,N){function tt(){yh||(yh=true,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",N));}tt.isReactWarning=true,Object.defineProperty(S,"key",{get:tt,configurable:true});}function X(){var S=E(this.type);return pc[S]||(pc[S]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function I(S,N,tt,ot,xt,$t){var Ht=tt.ref;return S={$$typeof:ht,type:S,key:N,props:tt,_owner:ot},(Ht!==void 0?Ht:null)!==null?Object.defineProperty(S,"ref",{enumerable:false,get:X}):Object.defineProperty(S,"ref",{enumerable:false,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(S,"_debugStack",{configurable:false,enumerable:false,writable:true,value:xt}),Object.defineProperty(S,"_debugTask",{configurable:false,enumerable:false,writable:true,value:$t}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function C(S,N){return N=I(S.type,N,S.props,S._owner,S._debugStack,S._debugTask),S._store&&(N._store.validated=S._store.validated),N}function z(S){U(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===ul&&(S._payload.status==="fulfilled"?U(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1));}function U(S){return typeof S=="object"&&S!==null&&S.$$typeof===ht}function B(S){var N={"=":"=0",":":"=2"};return "$"+S.replace(/[=:]/g,function(tt){return N[tt]})}function L(S,N){return typeof S=="object"&&S!==null&&S.key!=null?(x(S.key),B(""+S.key)):N.toString(36)}function gt(S){switch(S.status){case "fulfilled":return S.value;case "rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(h,h):(S.status="pending",S.then(function(N){S.status==="pending"&&(S.status="fulfilled",S.value=N);},function(N){S.status==="pending"&&(S.status="rejected",S.reason=N);})),S.status){case "fulfilled":return S.value;case "rejected":throw S.reason}}throw S}function et(S,N,tt,ot,xt){var $t=typeof S;($t==="undefined"||$t==="boolean")&&(S=null);var Ht=false;if(S===null)Ht=true;else switch($t){case "bigint":case "string":case "number":Ht=true;break;case "object":switch(S.$$typeof){case ht:case he:Ht=true;break;case ul:return Ht=S._init,et(Ht(S._payload),N,tt,ot,xt)}}if(Ht){Ht=S,xt=xt(Ht);var de=ot===""?"."+L(Ht,0):ot;return Se(xt)?(tt="",de!=null&&(tt=de.replace(Rr,"$&/")+"/"),et(xt,N,tt,"",function(el){return el})):xt!=null&&(U(xt)&&(xt.key!=null&&(Ht&&Ht.key===xt.key||x(xt.key)),tt=C(xt,tt+(xt.key==null||Ht&&Ht.key===xt.key?"":(""+xt.key).replace(Rr,"$&/")+"/")+de),ot!==""&&Ht!=null&&U(Ht)&&Ht.key==null&&Ht._store&&!Ht._store.validated&&(tt._store.validated=2),xt=tt),N.push(xt)),1}if(Ht=0,de=ot===""?".":ot+":",Se(S))for(var _t=0;_t<S.length;_t++)ot=S[_t],$t=de+L(ot,_t),Ht+=et(ot,N,tt,$t,xt);else if(_t=l(S),typeof _t=="function")for(_t===S.entries&&(Or||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Or=true),S=_t.call(S),_t=0;!(ot=S.next()).done;)ot=ot.value,$t=de+L(ot,_t++),Ht+=et(ot,N,tt,$t,xt);else if($t==="object"){if(typeof S.then=="function")return et(gt(S),N,tt,ot,xt);throw N=String(S),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return Ht}function nt(S,N,tt){if(S==null)return S;var ot=[],xt=0;return et(S,ot,"","",function($t){return N.call(tt,$t,xt++)}),ot}function vt(S){if(S._status===-1){var N=S._ioInfo;N!=null&&(N.start=N.end=performance.now()),N=S._result;var tt=N();if(tt.then(function(xt){if(S._status===0||S._status===-1){S._status=1,S._result=xt;var $t=S._ioInfo;$t!=null&&($t.end=performance.now()),tt.status===void 0&&(tt.status="fulfilled",tt.value=xt);}},function(xt){if(S._status===0||S._status===-1){S._status=2,S._result=xt;var $t=S._ioInfo;$t!=null&&($t.end=performance.now()),tt.status===void 0&&(tt.status="rejected",tt.reason=xt);}}),N=S._ioInfo,N!=null){N.value=tt;var ot=tt.displayName;typeof ot=="string"&&(N.name=ot);}S._status===-1&&(S._status=0,S._result=tt);}if(S._status===1)return N=S._result,N===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,N),N.default;throw S._result}function Z(){var S=jt.H;return S===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
10
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
11
|
-
2. You might be breaking the Rules of Hooks
|
|
12
|
-
3. You might have more than one copy of React in the same app
|
|
13
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),S}function re(){jt.asyncTransitions--;}function Et(S){if(xc===null)try{var N=("require"+Math.random()).slice(0,7);xc=(O1&&O1[N]).call(O1,"timers").setImmediate;}catch{xc=function(ot){mh===false&&(mh=true,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var xt=new MessageChannel;xt.port1.onmessage=ot,xt.port2.postMessage(void 0);};}return xc(S)}function st(S){return 1<S.length&&typeof AggregateError=="function"?new AggregateError(S):S[0]}function Mt(S,N){N!==bc-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),bc=N;}function Q(S,N,tt){var ot=jt.actQueue;if(ot!==null)if(ot.length!==0)try{mt(ot),Et(function(){return Q(S,N,tt)});return}catch(xt){jt.thrownErrors.push(xt);}else jt.actQueue=null;0<jt.thrownErrors.length?(ot=st(jt.thrownErrors),jt.thrownErrors.length=0,tt(ot)):N(S);}function mt(S){if(!Sc){Sc=true;var N=0;try{for(;N<S.length;N++){var tt=S[N];do{jt.didUsePromise=!1;var ot=tt(!1);if(ot!==null){if(jt.didUsePromise){S[N]=tt,S.splice(0,N);return}tt=ot;}else break}while(!0)}S.length=0;}catch(xt){S.splice(0,N+1),jt.thrownErrors.push(xt);}finally{Sc=false;}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ht=Symbol.for("react.transitional.element"),he=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),kn=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),Dt=Symbol.for("react.consumer"),Pt=Symbol.for("react.context"),Yt=Symbol.for("react.forward_ref"),Xl=Symbol.for("react.suspense"),yc=Symbol.for("react.suspense_list"),$e=Symbol.for("react.memo"),ul=Symbol.for("react.lazy"),Fa=Symbol.for("react.activity"),Dr=Symbol.iterator,dt={},kr={isMounted:function(){return false},enqueueForceUpdate:function(S){o(S,"forceUpdate");},enqueueReplaceState:function(S){o(S,"replaceState");},enqueueSetState:function(S){o(S,"setState");}},mc=Object.assign,Zi={};Object.freeze(Zi),i.prototype.isReactComponent={},i.prototype.setState=function(S,N){if(typeof S!="object"&&typeof S!="function"&&S!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,S,N,"setState");},i.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate");};var Cn={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Ki in Cn)Cn.hasOwnProperty(Ki)&&t(Ki,Cn[Ki]);c.prototype=i.prototype,Cn=f.prototype=new c,Cn.constructor=f,mc(Cn,i.prototype),Cn.isPureReactComponent=true;var Se=Array.isArray,Of=Symbol.for("react.client.reference"),jt={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:false,didScheduleLegacyUpdate:false,didUsePromise:false,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Cr=Object.prototype.hasOwnProperty,Oe=console.createTask?console.createTask:function(){return null};Cn={react_stack_bottom_frame:function(S){return S()}};var yh,yo,pc={},gc=Cn.react_stack_bottom_frame.bind(Cn,v)(),pp=Oe(T(v)),Or=false,Rr=/\/+/g,Ji=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S);},mh=false,xc=null,bc=0,vc=false,Sc=false,Rf=typeof queueMicrotask=="function"?function(S){queueMicrotask(function(){return queueMicrotask(S)});}:Et;Cn=Object.freeze({__proto__:null,c:function(S){return Z().useMemoCache(S)}});var Ki={map:nt,forEach:function(S,N,tt){nt(S,function(){N.apply(this,arguments);},tt);},count:function(S){var N=0;return nt(S,function(){N++;}),N},toArray:function(S){return nt(S,function(N){return N})||[]},only:function(S){if(!U(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};Lt.Activity=Fa,Lt.Children=Ki,Lt.Component=i,Lt.Fragment=ye,Lt.Profiler=K,Lt.PureComponent=f,Lt.StrictMode=kn,Lt.Suspense=Xl,Lt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=jt,Lt.__COMPILER_RUNTIME=Cn,Lt.act=function(S){var N=jt.actQueue,tt=bc;bc++;var ot=jt.actQueue=N!==null?N:[],xt=false;try{var $t=S();}catch(_t){jt.thrownErrors.push(_t);}if(0<jt.thrownErrors.length)throw Mt(N,tt),S=st(jt.thrownErrors),jt.thrownErrors.length=0,S;if($t!==null&&typeof $t=="object"&&typeof $t.then=="function"){var Ht=$t;return Rf(function(){xt||vc||(vc=true,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));}),{then:function(_t,el){xt=true,Ht.then(function(Gl){if(Mt(N,tt),tt===0){try{mt(ot),Et(function(){return Q(Gl,_t,el)});}catch(wf){jt.thrownErrors.push(wf);}if(0<jt.thrownErrors.length){var Fi=st(jt.thrownErrors);jt.thrownErrors.length=0,el(Fi);}}else _t(Gl);},function(Gl){Mt(N,tt),0<jt.thrownErrors.length&&(Gl=st(jt.thrownErrors),jt.thrownErrors.length=0),el(Gl);});}}}var de=$t;if(Mt(N,tt),tt===0&&(mt(ot),ot.length!==0&&Rf(function(){xt||vc||(vc=true,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));}),jt.actQueue=null),0<jt.thrownErrors.length)throw S=st(jt.thrownErrors),jt.thrownErrors.length=0,S;return {then:function(_t,el){xt=true,tt===0?(jt.actQueue=ot,Et(function(){return Q(de,_t,el)})):_t(de);}}},Lt.cache=function(S){return function(){return S.apply(null,arguments)}},Lt.cacheSignal=function(){return null},Lt.captureOwnerStack=function(){var S=jt.getCurrentStack;return S===null?null:S()},Lt.cloneElement=function(S,N,tt){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ot=mc({},S.props),xt=S.key,$t=S._owner;if(N!=null){var Ht;t:{if(Cr.call(N,"ref")&&(Ht=Object.getOwnPropertyDescriptor(N,"ref").get)&&Ht.isReactWarning){Ht=false;break t}Ht=N.ref!==void 0;}Ht&&($t=M()),_(N)&&(x(N.key),xt=""+N.key);for(de in N)!Cr.call(N,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&N.ref===void 0||(ot[de]=N[de]);}var de=arguments.length-2;if(de===1)ot.children=tt;else if(1<de){Ht=Array(de);for(var _t=0;_t<de;_t++)Ht[_t]=arguments[_t+2];ot.children=Ht;}for(ot=I(S.type,xt,ot,$t,S._debugStack,S._debugTask),xt=2;xt<arguments.length;xt++)z(arguments[xt]);return ot},Lt.createContext=function(S){return S={$$typeof:Pt,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:Dt,_context:S},S._currentRenderer=null,S._currentRenderer2=null,S},Lt.createElement=function(S,N,tt){for(var ot=2;ot<arguments.length;ot++)z(arguments[ot]);ot={};var xt=null;if(N!=null)for(_t in yo||!("__self"in N)||"key"in N||(yo=true,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),_(N)&&(x(N.key),xt=""+N.key),N)Cr.call(N,_t)&&_t!=="key"&&_t!=="__self"&&_t!=="__source"&&(ot[_t]=N[_t]);var $t=arguments.length-2;if($t===1)ot.children=tt;else if(1<$t){for(var Ht=Array($t),de=0;de<$t;de++)Ht[de]=arguments[de+2];Object.freeze&&Object.freeze(Ht),ot.children=Ht;}if(S&&S.defaultProps)for(_t in $t=S.defaultProps,$t)ot[_t]===void 0&&(ot[_t]=$t[_t]);xt&&$(ot,typeof S=="function"?S.displayName||S.name||"Unknown":S);var _t=1e4>jt.recentlyCreatedOwnerStacks++;return I(S,xt,ot,M(),_t?Error("react-stack-top-frame"):gc,_t?Oe(T(S)):pp)},Lt.createRef=function(){var S={current:null};return Object.seal(S),S},Lt.forwardRef=function(S){S!=null&&S.$$typeof===$e?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof S!="function"?console.error("forwardRef requires a render function but was given %s.",S===null?"null":typeof S):S.length!==0&&S.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",S.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),S!=null&&S.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var N={$$typeof:Yt,render:S},tt;return Object.defineProperty(N,"displayName",{enumerable:false,configurable:true,get:function(){return tt},set:function(ot){tt=ot,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ot}),S.displayName=ot);}}),N},Lt.isValidElement=U,Lt.lazy=function(S){S={_status:-1,_result:S};var N={$$typeof:ul,_payload:S,_init:vt},tt={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return S._ioInfo=tt,N._debugInfo=[{awaited:tt}],N},Lt.memo=function(S,N){S==null&&console.error("memo: The first argument must be a component. Instead received: %s",S===null?"null":typeof S),N={$$typeof:$e,type:S,compare:N===void 0?null:N};var tt;return Object.defineProperty(N,"displayName",{enumerable:false,configurable:true,get:function(){return tt},set:function(ot){tt=ot,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ot}),S.displayName=ot);}}),N},Lt.startTransition=function(S){var N=jt.T,tt={};tt._updatedFibers=new Set,jt.T=tt;try{var ot=S(),xt=jt.S;xt!==null&&xt(tt,ot),typeof ot=="object"&&ot!==null&&typeof ot.then=="function"&&(jt.asyncTransitions++,ot.then(re,re),ot.then(h,Ji));}catch($t){Ji($t);}finally{N===null&&tt._updatedFibers&&(S=tt._updatedFibers.size,tt._updatedFibers.clear(),10<S&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),N!==null&&tt.types!==null&&(N.types!==null&&N.types!==tt.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),N.types=tt.types),jt.T=N;}},Lt.unstable_useCacheRefresh=function(){return Z().useCacheRefresh()},Lt.use=function(S){return Z().use(S)},Lt.useActionState=function(S,N,tt){return Z().useActionState(S,N,tt)},Lt.useCallback=function(S,N){return Z().useCallback(S,N)},Lt.useContext=function(S){var N=Z();return S.$$typeof===Dt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),N.useContext(S)},Lt.useDebugValue=function(S,N){return Z().useDebugValue(S,N)},Lt.useDeferredValue=function(S,N){return Z().useDeferredValue(S,N)},Lt.useEffect=function(S,N){return S==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Z().useEffect(S,N)},Lt.useEffectEvent=function(S){return Z().useEffectEvent(S)},Lt.useId=function(){return Z().useId()},Lt.useImperativeHandle=function(S,N,tt){return Z().useImperativeHandle(S,N,tt)},Lt.useInsertionEffect=function(S,N){return S==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Z().useInsertionEffect(S,N)},Lt.useLayoutEffect=function(S,N){return S==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),Z().useLayoutEffect(S,N)},Lt.useMemo=function(S,N){return Z().useMemo(S,N)},Lt.useOptimistic=function(S,N){return Z().useOptimistic(S,N)},Lt.useReducer=function(S,N,tt){return Z().useReducer(S,N,tt)},Lt.useRef=function(S){return Z().useRef(S)},Lt.useState=function(S){return Z().useState(S)},Lt.useSyncExternalStore=function(S,N,tt){return Z().useSyncExternalStore(S,N,tt)},Lt.useTransition=function(){return Z().useTransition()},Lt.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var Na=gl((cU,ab)=>{process.env.NODE_ENV==="production"?ab.exports=X8():ab.exports=G8();});var u_=gl(w1=>{var f7=Symbol.for("react.transitional.element"),d7=Symbol.for("react.fragment");function i_(t,l,o){var i=null;if(o!==void 0&&(i=""+o),l.key!==void 0&&(i=""+l.key),"key"in l){o={};for(var c in l)c!=="key"&&(o[c]=l[c]);}else o=l;return l=o.ref,{$$typeof:f7,type:t,key:i,ref:l!==void 0?l:null,props:o}}w1.Fragment=d7;w1.jsx=i_;w1.jsxs=i_;});var c_=gl(U1=>{process.env.NODE_ENV!=="production"&&(function(){function t(K){if(K==null)return null;if(typeof K=="function")return K.$$typeof===re?null:K.displayName||K.name||null;if(typeof K=="string")return K;switch(K){case I:return "Fragment";case z:return "Profiler";case C:return "StrictMode";case gt:return "Suspense";case et:return "SuspenseList";case Z:return "Activity"}if(typeof K=="object")switch(typeof K.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),K.$$typeof){case X:return "Portal";case B:return K.displayName||"Context";case U:return (K._context.displayName||"Context")+".Consumer";case L:var Dt=K.render;return K=K.displayName,K||(K=Dt.displayName||Dt.name||"",K=K!==""?"ForwardRef("+K+")":"ForwardRef"),K;case nt:return Dt=K.displayName||null,Dt!==null?Dt:t(K.type)||"Memo";case vt:Dt=K._payload,K=K._init;try{return t(K(Dt))}catch{}}return null}function l(K){return ""+K}function o(K){try{l(K);var Dt=!1;}catch{Dt=true;}if(Dt){Dt=console;var Pt=Dt.error,Yt=typeof Symbol=="function"&&Symbol.toStringTag&&K[Symbol.toStringTag]||K.constructor.name||"Object";return Pt.call(Dt,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Yt),l(K)}}function i(K){if(K===I)return "<>";if(typeof K=="object"&&K!==null&&K.$$typeof===vt)return "<...>";try{var Dt=t(K);return Dt?"<"+Dt+">":"<...>"}catch{return "<...>"}}function c(){var K=Et.A;return K===null?null:K.getOwner()}function f(){return Error("react-stack-top-frame")}function h(K){if(st.call(K,"key")){var Dt=Object.getOwnPropertyDescriptor(K,"key").get;if(Dt&&Dt.isReactWarning)return false}return K.key!==void 0}function m(K,Dt){function Pt(){mt||(mt=true,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Dt));}Pt.isReactWarning=true,Object.defineProperty(K,"key",{get:Pt,configurable:true});}function x(){var K=t(this.type);return ht[K]||(ht[K]=true,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),K=this.props.ref,K!==void 0?K:null}function E(K,Dt,Pt,Yt,Xl,yc){var $e=Pt.ref;return K={$$typeof:$,type:K,key:Dt,props:Pt,_owner:Yt},($e!==void 0?$e:null)!==null?Object.defineProperty(K,"ref",{enumerable:false,get:x}):Object.defineProperty(K,"ref",{enumerable:false,value:null}),K._store={},Object.defineProperty(K._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(K,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(K,"_debugStack",{configurable:false,enumerable:false,writable:true,value:Xl}),Object.defineProperty(K,"_debugTask",{configurable:false,enumerable:false,writable:true,value:yc}),Object.freeze&&(Object.freeze(K.props),Object.freeze(K)),K}function T(K,Dt,Pt,Yt,Xl,yc){var $e=Dt.children;if($e!==void 0)if(Yt)if(Mt($e)){for(Yt=0;Yt<$e.length;Yt++)M($e[Yt]);Object.freeze&&Object.freeze($e);}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else M($e);if(st.call(Dt,"key")){$e=t(K);var ul=Object.keys(Dt).filter(function(Dr){return Dr!=="key"});Yt=0<ul.length?"{key: someKey, "+ul.join(": ..., ")+": ...}":"{key: someKey}",kn[$e+Yt]||(ul=0<ul.length?"{"+ul.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
14
|
-
let props = %s;
|
|
15
|
-
<%s {...props} />
|
|
16
|
-
React keys must be passed directly to JSX without using spread:
|
|
17
|
-
let props = %s;
|
|
18
|
-
<%s key={someKey} {...props} />`,Yt,$e,ul,$e),kn[$e+Yt]=true);}if($e=null,Pt!==void 0&&(o(Pt),$e=""+Pt),h(Dt)&&(o(Dt.key),$e=""+Dt.key),"key"in Dt){Pt={};for(var Fa in Dt)Fa!=="key"&&(Pt[Fa]=Dt[Fa]);}else Pt=Dt;return $e&&m(Pt,typeof K=="function"?K.displayName||K.name||"Unknown":K),E(K,$e,Pt,c(),Xl,yc)}function M(K){v(K)?K._store&&(K._store.validated=1):typeof K=="object"&&K!==null&&K.$$typeof===vt&&(K._payload.status==="fulfilled"?v(K._payload.value)&&K._payload.value._store&&(K._payload.value._store.validated=1):K._store&&(K._store.validated=1));}function v(K){return typeof K=="object"&&K!==null&&K.$$typeof===$}var _=Na(),$=Symbol.for("react.transitional.element"),X=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),B=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),gt=Symbol.for("react.suspense"),et=Symbol.for("react.suspense_list"),nt=Symbol.for("react.memo"),vt=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),re=Symbol.for("react.client.reference"),Et=_.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,st=Object.prototype.hasOwnProperty,Mt=Array.isArray,Q=console.createTask?console.createTask:function(){return null};_={react_stack_bottom_frame:function(K){return K()}};var mt,ht={},he=_.react_stack_bottom_frame.bind(_,f)(),ye=Q(i(f)),kn={};U1.Fragment=I,U1.jsx=function(K,Dt,Pt){var Yt=1e4>Et.recentlyCreatedOwnerStacks++;return T(K,Dt,Pt,false,Yt?Error("react-stack-top-frame"):he,Yt?Q(i(K)):ye)},U1.jsxs=function(K,Dt,Pt){var Yt=1e4>Et.recentlyCreatedOwnerStacks++;return T(K,Dt,Pt,true,Yt?Error("react-stack-top-frame"):he,Yt?Q(i(K)):ye)};})();});var Zt=gl((jU,ib)=>{process.env.NODE_ENV==="production"?ib.exports=u_():ib.exports=c_();});var w_=gl(Ke=>{function yb(t,l){var o=t.length;t.push(l);t:for(;0<o;){var i=o-1>>>1,c=t[i];if(0<L1(c,l))t[i]=l,t[o]=c,o=i;else break t}}function Qo(t){return t.length===0?null:t[0]}function B1(t){if(t.length===0)return null;var l=t[0],o=t.pop();if(o!==l){t[0]=o;t:for(var i=0,c=t.length,f=c>>>1;i<f;){var h=2*(i+1)-1,m=t[h],x=h+1,E=t[x];if(0>L1(m,o))x<c&&0>L1(E,m)?(t[i]=E,t[x]=o,i=x):(t[i]=m,t[h]=o,i=h);else if(x<c&&0>L1(E,o))t[i]=E,t[x]=o,i=x;else break t}}return l}function L1(t,l){var o=t.sortIndex-l.sortIndex;return o!==0?o:t.id-l.id}Ke.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(__=performance,Ke.unstable_now=function(){return __.now()}):(fb=Date,T_=fb.now(),Ke.unstable_now=function(){return fb.now()-T_});var __,fb,T_,Di=[],Bu=[],k7=1,Ba=null,il=3,mb=false,h0=false,y0=false,pb=false,D_=typeof setTimeout=="function"?setTimeout:null,k_=typeof clearTimeout=="function"?clearTimeout:null,A_=typeof setImmediate<"u"?setImmediate:null;function Y1(t){for(var l=Qo(Bu);l!==null;){if(l.callback===null)B1(Bu);else if(l.startTime<=t)B1(Bu),l.sortIndex=l.expirationTime,yb(Di,l);else break;l=Qo(Bu);}}function gb(t){if(y0=false,Y1(t),!h0)if(Qo(Di)!==null)h0=true,Ys||(Ys=true,Ls());else {var l=Qo(Bu);l!==null&&xb(gb,l.startTime-t);}}var Ys=false,m0=-1,C_=5,O_=-1;function R_(){return pb?true:!(Ke.unstable_now()-O_<C_)}function db(){if(pb=false,Ys){var t=Ke.unstable_now();O_=t;var l=true;try{t:{h0=!1,y0&&(y0=!1,k_(m0),m0=-1),mb=!0;var o=il;try{e:{for(Y1(t),Ba=Qo(Di);Ba!==null&&!(Ba.expirationTime>t&&R_());){var i=Ba.callback;if(typeof i=="function"){Ba.callback=null,il=Ba.priorityLevel;var c=i(Ba.expirationTime<=t);if(t=Ke.unstable_now(),typeof c=="function"){Ba.callback=c,Y1(t),l=!0;break e}Ba===Qo(Di)&&B1(Di),Y1(t);}else B1(Di);Ba=Qo(Di);}if(Ba!==null)l=!0;else {var f=Qo(Bu);f!==null&&xb(gb,f.startTime-t),l=!1;}}break t}finally{Ba=null,il=o,mb=!1;}l=void 0;}}finally{l?Ls():Ys=false;}}}var Ls;typeof A_=="function"?Ls=function(){A_(db);}:typeof MessageChannel<"u"?(hb=new MessageChannel,z_=hb.port2,hb.port1.onmessage=db,Ls=function(){z_.postMessage(null);}):Ls=function(){D_(db,0);};var hb,z_;function xb(t,l){m0=D_(function(){t(Ke.unstable_now());},l);}Ke.unstable_IdlePriority=5;Ke.unstable_ImmediatePriority=1;Ke.unstable_LowPriority=4;Ke.unstable_NormalPriority=3;Ke.unstable_Profiling=null;Ke.unstable_UserBlockingPriority=2;Ke.unstable_cancelCallback=function(t){t.callback=null;};Ke.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C_=0<t?Math.floor(1e3/t):5;};Ke.unstable_getCurrentPriorityLevel=function(){return il};Ke.unstable_next=function(t){switch(il){case 1:case 2:case 3:var l=3;break;default:l=il;}var o=il;il=l;try{return t()}finally{il=o;}};Ke.unstable_requestPaint=function(){pb=true;};Ke.unstable_runWithPriority=function(t,l){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3;}var o=il;il=t;try{return l()}finally{il=o;}};Ke.unstable_scheduleCallback=function(t,l,o){var i=Ke.unstable_now();switch(typeof o=="object"&&o!==null?(o=o.delay,o=typeof o=="number"&&0<o?i+o:i):o=i,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3;}return c=o+c,t={id:k7++,callback:l,priorityLevel:t,startTime:o,expirationTime:c,sortIndex:-1},o>i?(t.sortIndex=o,yb(Bu,t),Qo(Di)===null&&t===Qo(Bu)&&(y0?(k_(m0),m0=-1):y0=true,xb(gb,o-i))):(t.sortIndex=c,yb(Di,t),h0||mb||(h0=true,Ys||(Ys=true,Ls()))),t};Ke.unstable_shouldYield=R_;Ke.unstable_wrapCallback=function(t){var l=il;return function(){var o=il;il=l;try{return t.apply(this,arguments)}finally{il=o;}}};});var U_=gl(Fe=>{process.env.NODE_ENV!=="production"&&(function(){function t(){if(B=false,nt){var Q=Fe.unstable_now();re=Q;var mt=true;try{t:{z=!1,U&&(U=!1,gt(vt),vt=-1),C=!0;var ht=I;try{e:{for(f(Q),X=o(v);X!==null&&!(X.expirationTime>Q&&m());){var he=X.callback;if(typeof he=="function"){X.callback=null,I=X.priorityLevel;var ye=he(X.expirationTime<=Q);if(Q=Fe.unstable_now(),typeof ye=="function"){X.callback=ye,f(Q),mt=!0;break e}X===o(v)&&i(v),f(Q);}else i(v);X=o(v);}if(X!==null)mt=!0;else {var kn=o(_);kn!==null&&x(h,kn.startTime-Q),mt=!1;}}break t}finally{X=null,I=ht,C=!1;}mt=void 0;}}finally{mt?Et():nt=false;}}}function l(Q,mt){var ht=Q.length;Q.push(mt);t:for(;0<ht;){var he=ht-1>>>1,ye=Q[he];if(0<c(ye,mt))Q[he]=mt,Q[ht]=ye,ht=he;else break t}}function o(Q){return Q.length===0?null:Q[0]}function i(Q){if(Q.length===0)return null;var mt=Q[0],ht=Q.pop();if(ht!==mt){Q[0]=ht;t:for(var he=0,ye=Q.length,kn=ye>>>1;he<kn;){var K=2*(he+1)-1,Dt=Q[K],Pt=K+1,Yt=Q[Pt];if(0>c(Dt,ht))Pt<ye&&0>c(Yt,Dt)?(Q[he]=Yt,Q[Pt]=ht,he=Pt):(Q[he]=Dt,Q[K]=ht,he=K);else if(Pt<ye&&0>c(Yt,ht))Q[he]=Yt,Q[Pt]=ht,he=Pt;else break t}}return mt}function c(Q,mt){var ht=Q.sortIndex-mt.sortIndex;return ht!==0?ht:Q.id-mt.id}function f(Q){for(var mt=o(_);mt!==null;){if(mt.callback===null)i(_);else if(mt.startTime<=Q)i(_),mt.sortIndex=mt.expirationTime,l(v,mt);else break;mt=o(_);}}function h(Q){if(U=false,f(Q),!z)if(o(v)!==null)z=true,nt||(nt=true,Et());else {var mt=o(_);mt!==null&&x(h,mt.startTime-Q);}}function m(){return B?true:!(Fe.unstable_now()-re<Z)}function x(Q,mt){vt=L(function(){Q(Fe.unstable_now());},mt);}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),Fe.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var E=performance;Fe.unstable_now=function(){return E.now()};}else {var T=Date,M=T.now();Fe.unstable_now=function(){return T.now()-M};}var v=[],_=[],$=1,X=null,I=3,C=false,z=false,U=false,B=false,L=typeof setTimeout=="function"?setTimeout:null,gt=typeof clearTimeout=="function"?clearTimeout:null,et=typeof setImmediate<"u"?setImmediate:null,nt=false,vt=-1,Z=5,re=-1;if(typeof et=="function")var Et=function(){et(t);};else if(typeof MessageChannel<"u"){var st=new MessageChannel,Mt=st.port2;st.port1.onmessage=t,Et=function(){Mt.postMessage(null);};}else Et=function(){L(t,0);};Fe.unstable_IdlePriority=5,Fe.unstable_ImmediatePriority=1,Fe.unstable_LowPriority=4,Fe.unstable_NormalPriority=3,Fe.unstable_Profiling=null,Fe.unstable_UserBlockingPriority=2,Fe.unstable_cancelCallback=function(Q){Q.callback=null;},Fe.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<Q?Math.floor(1e3/Q):5;},Fe.unstable_getCurrentPriorityLevel=function(){return I},Fe.unstable_next=function(Q){switch(I){case 1:case 2:case 3:var mt=3;break;default:mt=I;}var ht=I;I=mt;try{return Q()}finally{I=ht;}},Fe.unstable_requestPaint=function(){B=true;},Fe.unstable_runWithPriority=function(Q,mt){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3;}var ht=I;I=Q;try{return mt()}finally{I=ht;}},Fe.unstable_scheduleCallback=function(Q,mt,ht){var he=Fe.unstable_now();switch(typeof ht=="object"&&ht!==null?(ht=ht.delay,ht=typeof ht=="number"&&0<ht?he+ht:he):ht=he,Q){case 1:var ye=-1;break;case 2:ye=250;break;case 5:ye=1073741823;break;case 4:ye=1e4;break;default:ye=5e3;}return ye=ht+ye,Q={id:$++,callback:mt,priorityLevel:Q,startTime:ht,expirationTime:ye,sortIndex:-1},ht>he?(Q.sortIndex=ht,l(_,Q),o(v)===null&&Q===o(_)&&(U?(gt(vt),vt=-1):U=true,x(h,ht-he))):(Q.sortIndex=ye,l(v,Q),z||C||(z=true,nt||(nt=true,Et()))),Q},Fe.unstable_shouldYield=m,Fe.unstable_wrapCallback=function(Q){var mt=I;return function(){var ht=I;I=mt;try{return Q.apply(this,arguments)}finally{I=ht;}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var vb=gl((JN,bb)=>{process.env.NODE_ENV==="production"?bb.exports=w_():bb.exports=U_();});var $_=gl(Ml=>{var C7=Na();function N_(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)l+="&args[]="+encodeURIComponent(arguments[o]);}return "Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Wu(){}var El={d:{f:Wu,r:function(){throw Error(N_(522))},D:Wu,C:Wu,L:Wu,m:Wu,X:Wu,S:Wu,M:Wu},p:0,findDOMNode:null},O7=Symbol.for("react.portal");function R7(t,l,o){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return {$$typeof:O7,key:i==null?null:""+i,children:t,containerInfo:l,implementation:o}}var p0=C7.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function W1(t,l){if(t==="font")return "";if(typeof l=="string")return l==="use-credentials"?l:""}Ml.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=El;Ml.createPortal=function(t,l){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)throw Error(N_(299));return R7(t,l,null,o)};Ml.flushSync=function(t){var l=p0.T,o=El.p;try{if(p0.T=null,El.p=2,t)return t()}finally{p0.T=l,El.p=o,El.d.f();}};Ml.preconnect=function(t,l){typeof t=="string"&&(l?(l=l.crossOrigin,l=typeof l=="string"?l==="use-credentials"?l:"":void 0):l=null,El.d.C(t,l));};Ml.prefetchDNS=function(t){typeof t=="string"&&El.d.D(t);};Ml.preinit=function(t,l){if(typeof t=="string"&&l&&typeof l.as=="string"){var o=l.as,i=W1(o,l.crossOrigin),c=typeof l.integrity=="string"?l.integrity:void 0,f=typeof l.fetchPriority=="string"?l.fetchPriority:void 0;o==="style"?El.d.S(t,typeof l.precedence=="string"?l.precedence:void 0,{crossOrigin:i,integrity:c,fetchPriority:f}):o==="script"&&El.d.X(t,{crossOrigin:i,integrity:c,fetchPriority:f,nonce:typeof l.nonce=="string"?l.nonce:void 0});}};Ml.preinitModule=function(t,l){if(typeof t=="string")if(typeof l=="object"&&l!==null){if(l.as==null||l.as==="script"){var o=W1(l.as,l.crossOrigin);El.d.M(t,{crossOrigin:o,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0});}}else l==null&&El.d.M(t);};Ml.preload=function(t,l){if(typeof t=="string"&&typeof l=="object"&&l!==null&&typeof l.as=="string"){var o=l.as,i=W1(o,l.crossOrigin);El.d.L(t,o,{crossOrigin:i,integrity:typeof l.integrity=="string"?l.integrity:void 0,nonce:typeof l.nonce=="string"?l.nonce:void 0,type:typeof l.type=="string"?l.type:void 0,fetchPriority:typeof l.fetchPriority=="string"?l.fetchPriority:void 0,referrerPolicy:typeof l.referrerPolicy=="string"?l.referrerPolicy:void 0,imageSrcSet:typeof l.imageSrcSet=="string"?l.imageSrcSet:void 0,imageSizes:typeof l.imageSizes=="string"?l.imageSizes:void 0,media:typeof l.media=="string"?l.media:void 0});}};Ml.preloadModule=function(t,l){if(typeof t=="string")if(l){var o=W1(l.as,l.crossOrigin);El.d.m(t,{as:typeof l.as=="string"&&l.as!=="script"?l.as:void 0,crossOrigin:o,integrity:typeof l.integrity=="string"?l.integrity:void 0});}else El.d.m(t);};Ml.requestFormReset=function(t){El.d.r(t);};Ml.unstable_batchedUpdates=function(t,l){return t(l)};Ml.useFormState=function(t,l,o){return p0.H.useFormState(t,l,o)};Ml.useFormStatus=function(){return p0.H.useHostTransitionStatus()};Ml.version="19.2.5";});var H_=gl(_l=>{process.env.NODE_ENV!=="production"&&(function(){function t(){}function l(M){return ""+M}function o(M,v,_){var $=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{l($);var X=!1;}catch{X=true;}return X&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object"),l($)),{$$typeof:E,key:$==null?null:""+$,children:M,containerInfo:v,implementation:_}}function i(M,v){if(M==="font")return "";if(typeof v=="string")return v==="use-credentials"?v:""}function c(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":'something with type "'+typeof M+'"'}function f(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":typeof M=="string"?JSON.stringify(M):typeof M=="number"?"`"+M+"`":'something with type "'+typeof M+'"'}function h(){var M=T.H;return M===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
19
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
20
|
-
2. You might be breaking the Rules of Hooks
|
|
21
|
-
3. You might have more than one copy of React in the same app
|
|
22
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),M}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var m=Na(),x={d:{f:t,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},E=Symbol.for("react.portal"),T=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),_l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,_l.createPortal=function(M,v){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error("Target container is not a DOM element.");return o(M,v,null,_)},_l.flushSync=function(M){var v=T.T,_=x.p;try{if(T.T=null,x.p=2,M)return M()}finally{T.T=v,x.p=_,x.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.");}},_l.preconnect=function(M,v){typeof M=="string"&&M?v!=null&&typeof v!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",f(v)):v!=null&&typeof v.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",c(v.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(M)),typeof M=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,x.d.C(M,v));},_l.prefetchDNS=function(M){if(typeof M!="string"||!M)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(M));else if(1<arguments.length){var v=arguments[1];typeof v=="object"&&v.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(v)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",f(v));}typeof M=="string"&&x.d.D(M);},_l.preinit=function(M,v){if(typeof M=="string"&&M?v==null||typeof v!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",f(v)):v.as!=="style"&&v.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',f(v.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",c(M)),typeof M=="string"&&v&&typeof v.as=="string"){var _=v.as,$=i(_,v.crossOrigin),X=typeof v.integrity=="string"?v.integrity:void 0,I=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;_==="style"?x.d.S(M,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:$,integrity:X,fetchPriority:I}):_==="script"&&x.d.X(M,{crossOrigin:$,integrity:X,fetchPriority:I,nonce:typeof v.nonce=="string"?v.nonce:void 0});}},_l.preinitModule=function(M,v){var _="";typeof M=="string"&&M||(_+=" The `href` argument encountered was "+c(M)+"."),v!==void 0&&typeof v!="object"?_+=" The `options` argument encountered was "+c(v)+".":v&&"as"in v&&v.as!=="script"&&(_+=" The `as` option encountered was "+f(v.as)+"."),_?console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",_):(_=v&&typeof v.as=="string"?v.as:"script",_)==="script"||(_=f(_),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',_,M)),typeof M=="string"&&(typeof v=="object"&&v!==null?(v.as==null||v.as==="script")&&(_=i(v.as,v.crossOrigin),x.d.M(M,{crossOrigin:_,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})):v==null&&x.d.M(M));},_l.preload=function(M,v){var _="";if(typeof M=="string"&&M||(_+=" The `href` argument encountered was "+c(M)+"."),v==null||typeof v!="object"?_+=" The `options` argument encountered was "+c(v)+".":typeof v.as=="string"&&v.as||(_+=" The `as` option encountered was "+c(v.as)+"."),_&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',_),typeof M=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){_=v.as;var $=i(_,v.crossOrigin);x.d.L(M,_,{crossOrigin:$,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0});}},_l.preloadModule=function(M,v){var _="";typeof M=="string"&&M||(_+=" The `href` argument encountered was "+c(M)+"."),v!==void 0&&typeof v!="object"?_+=" The `options` argument encountered was "+c(v)+".":v&&"as"in v&&typeof v.as!="string"&&(_+=" The `as` option encountered was "+c(v.as)+"."),_&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',_),typeof M=="string"&&(v?(_=i(v.as,v.crossOrigin),x.d.m(M,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:_,integrity:typeof v.integrity=="string"?v.integrity:void 0})):x.d.m(M));},_l.requestFormReset=function(M){x.d.r(M);},_l.unstable_batchedUpdates=function(M,v){return M(v)},_l.useFormState=function(M,v,_){return h().useFormState(M,v,_)},_l.useFormStatus=function(){return h().useHostTransitionStatus()},_l.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var Eb=gl((IN,Sb)=>{function L_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(L_);}catch(t){console.error(t);}}}process.env.NODE_ENV==="production"?(L_(),Sb.exports=$_()):Sb.exports=H_();});var KD=gl(dp=>{var Dn=vb(),sA=Na(),w7=Eb();function J(t){var l="https://react.dev/errors/"+t;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)l+="&args[]="+encodeURIComponent(arguments[o]);}return "Minified React error #"+t+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function fA(t){return !(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function nh(t){var l=t,o=t;if(t.alternate)for(;l.return;)l=l.return;else {t=l;do l=t,(l.flags&4098)!==0&&(o=l.return),t=l.return;while(t)}return l.tag===3?o:null}function dA(t){if(t.tag===13){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function hA(t){if(t.tag===31){var l=t.memoizedState;if(l===null&&(t=t.alternate,t!==null&&(l=t.memoizedState)),l!==null)return l.dehydrated}return null}function Y_(t){if(nh(t)!==t)throw Error(J(188))}function U7(t){var l=t.alternate;if(!l){if(l=nh(t),l===null)throw Error(J(188));return l!==t?null:t}for(var o=t,i=l;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(i=c.return,i!==null){o=i;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return Y_(c),t;if(f===i)return Y_(c),l;f=f.sibling;}throw Error(J(188))}if(o.return!==i.return)o=c,i=f;else {for(var h=false,m=c.child;m;){if(m===o){h=true,o=c,i=f;break}if(m===i){h=true,i=c,o=f;break}m=m.sibling;}if(!h){for(m=f.child;m;){if(m===o){h=true,o=f,i=c;break}if(m===i){h=true,i=f,o=c;break}m=m.sibling;}if(!h)throw Error(J(189))}}if(o.alternate!==i)throw Error(J(190))}if(o.tag!==3)throw Error(J(188));return o.stateNode.current===o?t:l}function yA(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t;for(t=t.child;t!==null;){if(l=yA(t),l!==null)return l;t=t.sibling;}return null}var Qe=Object.assign,N7=Symbol.for("react.element"),j1=Symbol.for("react.transitional.element"),_0=Symbol.for("react.portal"),Gs=Symbol.for("react.fragment"),mA=Symbol.for("react.strict_mode"),nv=Symbol.for("react.profiler"),pA=Symbol.for("react.consumer"),$i=Symbol.for("react.context"),Fv=Symbol.for("react.forward_ref"),lv=Symbol.for("react.suspense"),av=Symbol.for("react.suspense_list"),Iv=Symbol.for("react.memo"),ju=Symbol.for("react.lazy"),ov=Symbol.for("react.activity"),$7=Symbol.for("react.memo_cache_sentinel"),B_=Symbol.iterator;function g0(t){return t===null||typeof t!="object"?null:(t=B_&&t[B_]||t["@@iterator"],typeof t=="function"?t:null)}var H7=Symbol.for("react.client.reference");function iv(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===H7?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Gs:return "Fragment";case nv:return "Profiler";case mA:return "StrictMode";case lv:return "Suspense";case av:return "SuspenseList";case ov:return "Activity"}if(typeof t=="object")switch(t.$$typeof){case _0:return "Portal";case $i:return t.displayName||"Context";case pA:return (t._context.displayName||"Context")+".Consumer";case Fv:var l=t.render;return t=t.displayName,t||(t=l.displayName||l.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Iv:return l=t.displayName||null,l!==null?l:iv(t.type)||"Memo";case ju:l=t._payload,t=t._init;try{return iv(t(l))}catch{}}return null}var T0=Array.isArray,Ut=sA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xe=w7.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,hr={pending:false,data:null,method:null,action:null},uv=[],Qs=-1;function Fo(t){return {current:t}}function Wn(t){0>Qs||(t.current=uv[Qs],uv[Qs]=null,Qs--);}function Be(t,l){Qs++,uv[Qs]=t.current,t.current=l;}var Ko=Fo(null),j0=Fo(null),Pu=Fo(null),Sm=Fo(null);function Em(t,l){switch(Be(Pu,l),Be(j0,t),Be(Ko,null),l.nodeType){case 9:case 11:t=(t=l.documentElement)&&(t=t.namespaceURI)?VT(t):0;break;default:if(t=l.tagName,l=l.namespaceURI)l=VT(l),t=$D(l,t);else switch(t){case "svg":t=1;break;case "math":t=2;break;default:t=0;}}Wn(Ko),Be(Ko,t);}function ff(){Wn(Ko),Wn(j0),Wn(Pu);}function cv(t){t.memoizedState!==null&&Be(Sm,t);var l=Ko.current,o=$D(l,t.type);l!==o&&(Be(j0,t),Be(Ko,o));}function Mm(t){j0.current===t&&(Wn(Ko),Wn(j0)),Sm.current===t&&(Wn(Sm),P0._currentValue=hr);}var Mb,W_;function rr(t){if(Mb===void 0)try{throw Error()}catch(o){var l=o.stack.trim().match(/\n( *(at )?)/);Mb=l&&l[1]||"",W_=-1<o.stack.indexOf(`
|
|
23
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":"";}return `
|
|
24
|
-
`+Mb+t+W_}var _b=false;function Tb(t,l){if(!t||_b)return "";_b=true;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(l){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[]);}catch(_){var v=_;}Reflect.construct(t,[],M);}else {try{M.call();}catch(_){v=_;}t.call(M.prototype);}}else {try{throw Error()}catch(_){v=_;}(M=t())&&typeof M.catch=="function"&&M.catch(function(){});}}catch(_){if(_&&v&&typeof _.stack=="string")return [_.stack,v.stack]}return [null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),h=f[0],m=f[1];if(h&&m){var x=h.split(`
|
|
25
|
-
`),E=m.split(`
|
|
26
|
-
`);for(c=i=0;i<x.length&&!x[i].includes("DetermineComponentFrameRoot");)i++;for(;c<E.length&&!E[c].includes("DetermineComponentFrameRoot");)c++;if(i===x.length||c===E.length)for(i=x.length-1,c=E.length-1;1<=i&&0<=c&&x[i]!==E[c];)c--;for(;1<=i&&0<=c;i--,c--)if(x[i]!==E[c]){if(i!==1||c!==1)do if(i--,c--,0>c||x[i]!==E[c]){var T=`
|
|
27
|
-
`+x[i].replace(" at new "," at ");return t.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",t.displayName)),T}while(1<=i&&0<=c);break}}}finally{_b=false,Error.prepareStackTrace=o;}return (o=t?t.displayName||t.name:"")?rr(o):""}function L7(t,l){switch(t.tag){case 26:case 27:case 5:return rr(t.type);case 16:return rr("Lazy");case 13:return t.child!==l&&l!==null?rr("Suspense Fallback"):rr("Suspense");case 19:return rr("SuspenseList");case 0:case 15:return Tb(t.type,false);case 11:return Tb(t.type.render,false);case 1:return Tb(t.type,true);case 31:return rr("Activity");default:return ""}}function j_(t){try{var l="",o=null;do l+=L7(t,o),o=t,t=t.return;while(t);return l}catch(i){return `
|
|
28
|
-
Error generating stack: `+i.message+`
|
|
29
|
-
`+i.stack}}var rv=Object.prototype.hasOwnProperty,Pv=Dn.unstable_scheduleCallback,Ab=Dn.unstable_cancelCallback,Y7=Dn.unstable_shouldYield,B7=Dn.unstable_requestPaint,ya=Dn.unstable_now,W7=Dn.unstable_getCurrentPriorityLevel,gA=Dn.unstable_ImmediatePriority,xA=Dn.unstable_UserBlockingPriority,_m=Dn.unstable_NormalPriority,j7=Dn.unstable_LowPriority,bA=Dn.unstable_IdlePriority,q7=Dn.log,X7=Dn.unstable_setDisableYieldValue,lh=null,ma=null;function Zu(t){if(typeof q7=="function"&&X7(t),ma&&typeof ma.setStrictMode=="function")try{ma.setStrictMode(lh,t);}catch{}}var pa=Math.clz32?Math.clz32:V7,G7=Math.log,Q7=Math.LN2;function V7(t){return t>>>=0,t===0?32:31-(G7(t)/Q7|0)|0}var q1=256,X1=262144,G1=4194304;function sr(t){var l=t&42;if(l!==0)return l;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Km(t,l,o){var i=t.pendingLanes;if(i===0)return 0;var c=0,f=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var m=i&134217727;return m!==0?(i=m&~f,i!==0?c=sr(i):(h&=m,h!==0?c=sr(h):o||(o=m&~t,o!==0&&(c=sr(o))))):(m=i&~f,m!==0?c=sr(m):h!==0?c=sr(h):o||(o=i&~t,o!==0&&(c=sr(o)))),c===0?0:l!==0&&l!==c&&(l&f)===0&&(f=c&-c,o=l&-l,f>=o||f===32&&(o&4194048)!==0)?l:c}function ah(t,l){return (t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&l)===0}function Z7(t,l){switch(t){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return -1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return -1;default:return -1}}function vA(){var t=G1;return G1<<=1,(G1&62914560)===0&&(G1=4194304),t}function zb(t){for(var l=[],o=0;31>o;o++)l.push(t);return l}function oh(t,l){t.pendingLanes|=l,l!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0);}function J7(t,l,o,i,c,f){var h=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var m=t.entanglements,x=t.expirationTimes,E=t.hiddenUpdates;for(o=h&~o;0<o;){var T=31-pa(o),M=1<<T;m[T]=0,x[T]=-1;var v=E[T];if(v!==null)for(E[T]=null,T=0;T<v.length;T++){var _=v[T];_!==null&&(_.lane&=-536870913);}o&=~M;}i!==0&&SA(t,i,0),f!==0&&c===0&&t.tag!==0&&(t.suspendedLanes|=f&~(h&~l));}function SA(t,l,o){t.pendingLanes|=l,t.suspendedLanes&=~l;var i=31-pa(l);t.entangledLanes|=l,t.entanglements[i]=t.entanglements[i]|1073741824|o&261930;}function EA(t,l){var o=t.entangledLanes|=l;for(t=t.entanglements;o;){var i=31-pa(o),c=1<<i;c&l|t[i]&l&&(t[i]|=l),o&=~c;}}function MA(t,l){var o=l&-l;return o=(o&42)!==0?1:tS(o),(o&(t.suspendedLanes|l))!==0?0:o}function tS(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0;}return t}function eS(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function _A(){var t=xe.p;return t!==0?t:(t=window.event,t===void 0?32:VD(t.type))}function q_(t,l){var o=xe.p;try{return xe.p=t,l()}finally{xe.p=o;}}var dc=Math.random().toString(36).slice(2),Fn="__reactFiber$"+dc,jl="__reactProps$"+dc,Ef="__reactContainer$"+dc,sv="__reactEvents$"+dc,K7="__reactListeners$"+dc,F7="__reactHandles$"+dc,X_="__reactResources$"+dc,ih="__reactMarker$"+dc;function nS(t){delete t[Fn],delete t[jl],delete t[sv],delete t[K7],delete t[F7];}function Vs(t){var l=t[Fn];if(l)return l;for(var o=t.parentNode;o;){if(l=o[Ef]||o[Fn]){if(o=l.alternate,l.child!==null||o!==null&&o.child!==null)for(t=IT(t);t!==null;){if(o=t[Fn])return o;t=IT(t);}return l}t=o,o=t.parentNode;}return null}function Mf(t){if(t=t[Fn]||t[Ef]){var l=t.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return t}return null}function A0(t){var l=t.tag;if(l===5||l===26||l===27||l===6)return t.stateNode;throw Error(J(33))}function lf(t){var l=t[X_];return l||(l=t[X_]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Bn(t){t[ih]=true;}var TA=new Set,AA={};function Mr(t,l){df(t,l),df(t+"Capture",l);}function df(t,l){for(AA[t]=l,t=0;t<l.length;t++)TA.add(l[t]);}var I7=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),G_={},Q_={};function P7(t){return rv.call(Q_,t)?true:rv.call(G_,t)?false:I7.test(t)?Q_[t]=true:(G_[t]=true,false)}function im(t,l,o){if(P7(l))if(o===null)t.removeAttribute(l);else {switch(typeof o){case "undefined":case "function":case "symbol":t.removeAttribute(l);return;case "boolean":var i=l.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(l);return}}t.setAttribute(l,""+o);}}function Q1(t,l,o){if(o===null)t.removeAttribute(l);else {switch(typeof o){case "undefined":case "function":case "symbol":case "boolean":t.removeAttribute(l);return}t.setAttribute(l,""+o);}}function ki(t,l,o,i){if(i===null)t.removeAttribute(o);else {switch(typeof i){case "undefined":case "function":case "symbol":case "boolean":t.removeAttribute(o);return}t.setAttributeNS(l,o,""+i);}}function ja(t){switch(typeof t){case "bigint":case "boolean":case "number":case "string":case "undefined":return t;case "object":return t;default:return ""}}function zA(t){var l=t.type;return (t=t.nodeName)&&t.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function tw(t,l,o){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,l);if(!t.hasOwnProperty(l)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,f=i.set;return Object.defineProperty(t,l,{configurable:true,get:function(){return c.call(this)},set:function(h){o=""+h,f.call(this,h);}}),Object.defineProperty(t,l,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(h){o=""+h;},stopTracking:function(){t._valueTracker=null,delete t[l];}}}}function fv(t){if(!t._valueTracker){var l=zA(t)?"checked":"value";t._valueTracker=tw(t,l,""+t[l]);}}function DA(t){if(!t)return false;var l=t._valueTracker;if(!l)return true;var o=l.getValue(),i="";return t&&(i=zA(t)?t.checked?"true":"false":t.value),t=i,t!==o?(l.setValue(t),true):false}function Tm(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ew=/[\n"\\]/g;function Ga(t){return t.replace(ew,function(l){return "\\"+l.charCodeAt(0).toString(16)+" "})}function dv(t,l,o,i,c,f,h,m){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),l!=null?h==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+ja(l)):t.value!==""+ja(l)&&(t.value=""+ja(l)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),l!=null?hv(t,h,ja(l)):o!=null?hv(t,h,ja(o)):i!=null&&t.removeAttribute("value"),c==null&&f!=null&&(t.defaultChecked=!!f),c!=null&&(t.checked=c&&typeof c!="function"&&typeof c!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.name=""+ja(m):t.removeAttribute("name");}function kA(t,l,o,i,c,f,h,m){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.type=f),l!=null||o!=null){if(!(f!=="submit"&&f!=="reset"||l!=null)){fv(t);return}o=o!=null?""+ja(o):"",l=l!=null?""+ja(l):o,m||l===t.value||(t.value=l),t.defaultValue=l;}i=i??c,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=m?t.checked:!!i,t.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),fv(t);}function hv(t,l,o){l==="number"&&Tm(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o);}function af(t,l,o,i){if(t=t.options,l){l={};for(var c=0;c<o.length;c++)l["$"+o[c]]=true;for(o=0;o<t.length;o++)c=l.hasOwnProperty("$"+t[o].value),t[o].selected!==c&&(t[o].selected=c),c&&i&&(t[o].defaultSelected=true);}else {for(o=""+ja(o),l=null,c=0;c<t.length;c++){if(t[c].value===o){t[c].selected=true,i&&(t[c].defaultSelected=true);return}l!==null||t[c].disabled||(l=t[c]);}l!==null&&(l.selected=true);}}function CA(t,l,o){if(l!=null&&(l=""+ja(l),l!==t.value&&(t.value=l),o==null)){t.defaultValue!==l&&(t.defaultValue=l);return}t.defaultValue=o!=null?""+ja(o):"";}function OA(t,l,o,i){if(l==null){if(i!=null){if(o!=null)throw Error(J(92));if(T0(i)){if(1<i.length)throw Error(J(93));i=i[0];}o=i;}o==null&&(o=""),l=o;}o=ja(l),t.defaultValue=o,i=t.textContent,i===o&&i!==""&&i!==null&&(t.value=i),fv(t);}function hf(t,l){if(l){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=l;return}}t.textContent=l;}var nw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function V_(t,l,o){var i=l.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?i?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="":i?t.setProperty(l,o):typeof o!="number"||o===0||nw.has(l)?l==="float"?t.cssFloat=o:t[l]=(""+o).trim():t[l]=o+"px";}function RA(t,l,o){if(l!=null&&typeof l!="object")throw Error(J(62));if(t=t.style,o!=null){for(var i in o)!o.hasOwnProperty(i)||l!=null&&l.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var c in l)i=l[c],l.hasOwnProperty(c)&&o[c]!==i&&V_(t,c,i);}else for(var f in l)l.hasOwnProperty(f)&&V_(t,f,l[f]);}function lS(t){if(t.indexOf("-")===-1)return false;switch(t){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return false;default:return true}}var lw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),aw=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function um(t){return aw.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Hi(){}var yv=null;function aS(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Zs=null,of=null;function Z_(t){var l=Mf(t);if(l&&(t=l.stateNode)){var o=t[jl]||null;t:switch(t=l.stateNode,l.type){case "input":if(dv(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),l=o.name,o.type==="radio"&&l!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Ga(""+l)+'"][type="radio"]'),l=0;l<o.length;l++){var i=o[l];if(i!==t&&i.form===t.form){var c=i[jl]||null;if(!c)throw Error(J(90));dv(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name);}}for(l=0;l<o.length;l++)i=o[l],i.form===t.form&&DA(i);}break t;case "textarea":CA(t,o.value,o.defaultValue);break t;case "select":l=o.value,l!=null&&af(t,!!o.multiple,l,false);}}}var Db=false;function wA(t,l,o){if(Db)return t(l,o);Db=true;try{var i=t(l);return i}finally{if(Db=false,(Zs!==null||of!==null)&&(cp(),Zs&&(l=Zs,t=of,of=Zs=null,Z_(l),t)))for(l=0;l<t.length;l++)Z_(t[l]);}}function q0(t,l){var o=t.stateNode;if(o===null)return null;var i=o[jl]||null;if(i===null)return null;o=i[l];t:switch(l){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=false;}if(t)return null;if(o&&typeof o!="function")throw Error(J(231,l,typeof o));return o}var ji=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),mv=false;if(ji)try{Bs={},Object.defineProperty(Bs,"passive",{get:function(){mv=!0;}}),window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs);}catch{mv=false;}var Bs,Ju=null,oS=null,cm=null;function UA(){if(cm)return cm;var t,l=oS,o=l.length,i,c="value"in Ju?Ju.value:Ju.textContent,f=c.length;for(t=0;t<o&&l[t]===c[t];t++);var h=o-t;for(i=1;i<=h&&l[o-i]===c[f-i];i++);return cm=c.slice(t,1<i?1-i:void 0)}function rm(t){var l=t.keyCode;return "charCode"in t?(t=t.charCode,t===0&&l===13&&(t=13)):t=l,t===10&&(t=13),32<=t||t===13?t:0}function V1(){return true}function J_(){return false}function ql(t){function l(o,i,c,f,h){this._reactName=o,this._targetInst=c,this.type=i,this.nativeEvent=f,this.target=h,this.currentTarget=null;for(var m in t)t.hasOwnProperty(m)&&(o=t[m],this[m]=o?o(f):f[m]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===false)?V1:J_,this.isPropagationStopped=J_,this}return Qe(l.prototype,{preventDefault:function(){this.defaultPrevented=true;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=false),this.isDefaultPrevented=V1);},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=true),this.isPropagationStopped=V1);},persist:function(){},isPersistent:V1}),l}var _r={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fm=ql(_r),uh=Qe({},_r,{view:0,detail:0}),ow=ql(uh),kb,Cb,x0,Im=Qe({},uh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iS,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return "movementX"in t?t.movementX:(t!==x0&&(x0&&t.type==="mousemove"?(kb=t.screenX-x0.screenX,Cb=t.screenY-x0.screenY):Cb=kb=0,x0=t),kb)},movementY:function(t){return "movementY"in t?t.movementY:Cb}}),K_=ql(Im),iw=Qe({},Im,{dataTransfer:0}),uw=ql(iw),cw=Qe({},uh,{relatedTarget:0}),Ob=ql(cw),rw=Qe({},_r,{animationName:0,elapsedTime:0,pseudoElement:0}),sw=ql(rw),fw=Qe({},_r,{clipboardData:function(t){return "clipboardData"in t?t.clipboardData:window.clipboardData}}),dw=ql(fw),hw=Qe({},_r,{data:0}),F_=ql(hw),yw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mw={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gw(t){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(t):(t=pw[t])?!!l[t]:false}function iS(){return gw}var xw=Qe({},uh,{key:function(t){if(t.key){var l=yw[t.key]||t.key;if(l!=="Unidentified")return l}return t.type==="keypress"?(t=rm(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?mw[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iS,charCode:function(t){return t.type==="keypress"?rm(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?rm(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),bw=ql(xw),vw=Qe({},Im,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),I_=ql(vw),Sw=Qe({},uh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iS}),Ew=ql(Sw),Mw=Qe({},_r,{propertyName:0,elapsedTime:0,pseudoElement:0}),_w=ql(Mw),Tw=Qe({},Im,{deltaX:function(t){return "deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return "deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Aw=ql(Tw),zw=Qe({},_r,{newState:0,oldState:0}),Dw=ql(zw),kw=[9,13,27,32],uS=ji&&"CompositionEvent"in window,k0=null;ji&&"documentMode"in document&&(k0=document.documentMode);var Cw=ji&&"TextEvent"in window&&!k0,NA=ji&&(!uS||k0&&8<k0&&11>=k0),P_=" ",tT=false;function $A(t,l){switch(t){case "keyup":return kw.indexOf(l.keyCode)!==-1;case "keydown":return l.keyCode!==229;case "keypress":case "mousedown":case "focusout":return true;default:return false}}function HA(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Js=false;function Ow(t,l){switch(t){case "compositionend":return HA(l);case "keypress":return l.which!==32?null:(tT=true,P_);case "textInput":return t=l.data,t===P_&&tT?null:t;default:return null}}function Rw(t,l){if(Js)return t==="compositionend"||!uS&&$A(t,l)?(t=UA(),cm=oS=Ju=null,Js=false,t):null;switch(t){case "paste":return null;case "keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case "compositionend":return NA&&l.locale!=="ko"?null:l.data;default:return null}}var ww={color:true,date:true,datetime:true,"datetime-local":true,email:true,month:true,number:true,password:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true};function eT(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l==="input"?!!ww[t.type]:l==="textarea"}function LA(t,l,o,i){Zs?of?of.push(i):of=[i]:Zs=i,l=qm(l,"onChange"),0<l.length&&(o=new Fm("onChange","change",null,o,i),t.push({event:o,listeners:l}));}var C0=null,X0=null;function Uw(t){wD(t,0);}function Pm(t){var l=A0(t);if(DA(l))return t}function nT(t,l){if(t==="change")return l}var YA=false;ji&&(ji?(J1="oninput"in document,J1||(Rb=document.createElement("div"),Rb.setAttribute("oninput","return;"),J1=typeof Rb.oninput=="function"),Z1=J1):Z1=false,YA=Z1&&(!document.documentMode||9<document.documentMode));var Z1,J1,Rb;function lT(){C0&&(C0.detachEvent("onpropertychange",BA),X0=C0=null);}function BA(t){if(t.propertyName==="value"&&Pm(X0)){var l=[];LA(l,X0,t,aS(t)),wA(Uw,l);}}function Nw(t,l,o){t==="focusin"?(lT(),C0=l,X0=o,C0.attachEvent("onpropertychange",BA)):t==="focusout"&&lT();}function $w(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Pm(X0)}function Hw(t,l){if(t==="click")return Pm(l)}function Lw(t,l){if(t==="input"||t==="change")return Pm(l)}function Yw(t,l){return t===l&&(t!==0||1/t===1/l)||t!==t&&l!==l}var xa=typeof Object.is=="function"?Object.is:Yw;function G0(t,l){if(xa(t,l))return true;if(typeof t!="object"||t===null||typeof l!="object"||l===null)return false;var o=Object.keys(t),i=Object.keys(l);if(o.length!==i.length)return false;for(i=0;i<o.length;i++){var c=o[i];if(!rv.call(l,c)||!xa(t[c],l[c]))return false}return true}function aT(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function oT(t,l){var o=aT(t);t=0;for(var i;o;){if(o.nodeType===3){if(i=t+o.textContent.length,t<=l&&i>=l)return {node:o,offset:l-t};t=i;}t:{for(;o;){if(o.nextSibling){o=o.nextSibling;break t}o=o.parentNode;}o=void 0;}o=aT(o);}}function WA(t,l){return t&&l?t===l?true:t&&t.nodeType===3?false:l&&l.nodeType===3?WA(t,l.parentNode):"contains"in t?t.contains(l):t.compareDocumentPosition?!!(t.compareDocumentPosition(l)&16):false:false}function jA(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var l=Tm(t.document);l instanceof t.HTMLIFrameElement;){try{var o=typeof l.contentWindow.location.href=="string";}catch{o=false;}if(o)t=l.contentWindow;else break;l=Tm(t.document);}return l}function cS(t){var l=t&&t.nodeName&&t.nodeName.toLowerCase();return l&&(l==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||l==="textarea"||t.contentEditable==="true")}var Bw=ji&&"documentMode"in document&&11>=document.documentMode,Ks=null,pv=null,O0=null,gv=false;function iT(t,l,o){var i=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;gv||Ks==null||Ks!==Tm(i)||(i=Ks,"selectionStart"in i&&cS(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),O0&&G0(O0,i)||(O0=i,i=qm(pv,"onSelect"),0<i.length&&(l=new Fm("onSelect","select",null,l,o),t.push({event:l,listeners:i}),l.target=Ks)));}function cr(t,l){var o={};return o[t.toLowerCase()]=l.toLowerCase(),o["Webkit"+t]="webkit"+l,o["Moz"+t]="moz"+l,o}var Fs={animationend:cr("Animation","AnimationEnd"),animationiteration:cr("Animation","AnimationIteration"),animationstart:cr("Animation","AnimationStart"),transitionrun:cr("Transition","TransitionRun"),transitionstart:cr("Transition","TransitionStart"),transitioncancel:cr("Transition","TransitionCancel"),transitionend:cr("Transition","TransitionEnd")},wb={},qA={};ji&&(qA=document.createElement("div").style,"AnimationEvent"in window||(delete Fs.animationend.animation,delete Fs.animationiteration.animation,delete Fs.animationstart.animation),"TransitionEvent"in window||delete Fs.transitionend.transition);function Tr(t){if(wb[t])return wb[t];if(!Fs[t])return t;var l=Fs[t],o;for(o in l)if(l.hasOwnProperty(o)&&o in qA)return wb[t]=l[o];return t}var XA=Tr("animationend"),GA=Tr("animationiteration"),QA=Tr("animationstart"),Ww=Tr("transitionrun"),jw=Tr("transitionstart"),qw=Tr("transitioncancel"),VA=Tr("transitionend"),ZA=new Map,xv="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");xv.push("scrollEnd");function ho(t,l){ZA.set(t,l),Mr(l,[t]);}var Am=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t);},Wa=[],Is=0,rS=0;function tp(){for(var t=Is,l=rS=Is=0;l<t;){var o=Wa[l];Wa[l++]=null;var i=Wa[l];Wa[l++]=null;var c=Wa[l];Wa[l++]=null;var f=Wa[l];if(Wa[l++]=null,i!==null&&c!==null){var h=i.pending;h===null?c.next=c:(c.next=h.next,h.next=c),i.pending=c;}f!==0&&JA(o,c,f);}}function ep(t,l,o,i){Wa[Is++]=t,Wa[Is++]=l,Wa[Is++]=o,Wa[Is++]=i,rS|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i);}function sS(t,l,o,i){return ep(t,l,o,i),zm(t)}function Ar(t,l){return ep(t,null,null,l),zm(t)}function JA(t,l,o){t.lanes|=o;var i=t.alternate;i!==null&&(i.lanes|=o);for(var c=false,f=t.return;f!==null;)f.childLanes|=o,i=f.alternate,i!==null&&(i.childLanes|=o),f.tag===22&&(t=f.stateNode,t===null||t._visibility&1||(c=true)),t=f,f=f.return;return t.tag===3?(f=t.stateNode,c&&l!==null&&(c=31-pa(o),t=f.hiddenUpdates,i=t[c],i===null?t[c]=[l]:i.push(l),l.lane=o|536870912),f):null}function zm(t){if(50<B0)throw B0=0,Yv=null,Error(J(185));for(var l=t.return;l!==null;)t=l,l=t.return;return t.tag===3?t.stateNode:null}var Ps={};function Xw(t,l,o,i){this.tag=t,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null;}function da(t,l,o,i){return new Xw(t,l,o,i)}function fS(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Yi(t,l){var o=t.alternate;return o===null?(o=da(t.tag,l,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=l,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,l=t.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function KA(t,l){t.flags&=65011714;var o=t.alternate;return o===null?(t.childLanes=0,t.lanes=l,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,l=o.dependencies,t.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),t}function sm(t,l,o,i,c,f){var h=0;if(i=t,typeof t=="function")fS(t)&&(h=1);else if(typeof t=="string")h=V9(t,o,Ko.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case ov:return t=da(31,o,l,c),t.elementType=ov,t.lanes=f,t;case Gs:return yr(o.children,c,f,l);case mA:h=8,c|=24;break;case nv:return t=da(12,o,l,c|2),t.elementType=nv,t.lanes=f,t;case lv:return t=da(13,o,l,c),t.elementType=lv,t.lanes=f,t;case av:return t=da(19,o,l,c),t.elementType=av,t.lanes=f,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case $i:h=10;break t;case pA:h=9;break t;case Fv:h=11;break t;case Iv:h=14;break t;case ju:h=16,i=null;break t}h=29,o=Error(J(130,t===null?"null":typeof t,"")),i=null;}return l=da(h,o,l,c),l.elementType=t,l.type=i,l.lanes=f,l}function yr(t,l,o,i){return t=da(7,t,i,l),t.lanes=o,t}function Ub(t,l,o){return t=da(6,t,null,l),t.lanes=o,t}function FA(t){var l=da(18,null,null,0);return l.stateNode=t,l}function Nb(t,l,o){return l=da(4,t.children!==null?t.children:[],t.key,l),l.lanes=o,l.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},l}var uT=new WeakMap;function Qa(t,l){if(typeof t=="object"&&t!==null){var o=uT.get(t);return o!==void 0?o:(l={value:t,source:l,stack:j_(l)},uT.set(t,l),l)}return {value:t,source:l,stack:j_(l)}}var tf=[],ef=0,Dm=null,Q0=0,qa=[],Xa=0,cc=null,Vo=1,Zo="";function Ui(t,l){tf[ef++]=Q0,tf[ef++]=Dm,Dm=t,Q0=l;}function IA(t,l,o){qa[Xa++]=Vo,qa[Xa++]=Zo,qa[Xa++]=cc,cc=t;var i=Vo;t=Zo;var c=32-pa(i)-1;i&=~(1<<c),o+=1;var f=32-pa(l)+c;if(30<f){var h=c-c%5;f=(i&(1<<h)-1).toString(32),i>>=h,c-=h,Vo=1<<32-pa(l)+c|o<<c|i,Zo=f+t;}else Vo=1<<f|o<<c|i,Zo=t;}function dS(t){t.return!==null&&(Ui(t,1),IA(t,1,0));}function hS(t){for(;t===Dm;)Dm=tf[--ef],tf[ef]=null,Q0=tf[--ef],tf[ef]=null;for(;t===cc;)cc=qa[--Xa],qa[Xa]=null,Zo=qa[--Xa],qa[Xa]=null,Vo=qa[--Xa],qa[Xa]=null;}function PA(t,l){qa[Xa++]=Vo,qa[Xa++]=Zo,qa[Xa++]=cc,Vo=l.id,Zo=l.overflow,cc=t;}var In=null,Ge=null,fe=false,tc=null,Va=false,bv=Error(J(519));function rc(t){var l=Error(J(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw V0(Qa(l,t)),bv}function cT(t){var l=t.stateNode,o=t.type,i=t.memoizedProps;switch(l[Fn]=t,l[jl]=i,o){case "dialog":ie("cancel",l),ie("close",l);break;case "iframe":case "object":case "embed":ie("load",l);break;case "video":case "audio":for(o=0;o<F0.length;o++)ie(F0[o],l);break;case "source":ie("error",l);break;case "img":case "image":case "link":ie("error",l),ie("load",l);break;case "details":ie("toggle",l);break;case "input":ie("invalid",l),kA(l,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,true);break;case "select":ie("invalid",l);break;case "textarea":ie("invalid",l),OA(l,i.value,i.defaultValue,i.children);}o=i.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||l.textContent===""+o||i.suppressHydrationWarning===true||ND(l.textContent,o)?(i.popover!=null&&(ie("beforetoggle",l),ie("toggle",l)),i.onScroll!=null&&ie("scroll",l),i.onScrollEnd!=null&&ie("scrollend",l),i.onClick!=null&&(l.onclick=Hi),l=true):l=false,l||rc(t,true);}function rT(t){for(In=t.return;In;)switch(In.tag){case 5:case 31:case 13:Va=false;return;case 27:case 3:Va=true;return;default:In=In.return;}}function Ws(t){if(t!==In)return false;if(!fe)return rT(t),fe=true,false;var l=t.tag,o;if((o=l!==3&&l!==27)&&((o=l===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||Xv(t.type,t.memoizedProps)),o=!o),o&&Ge&&rc(t),rT(t),l===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(J(317));Ge=FT(t);}else if(l===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(J(317));Ge=FT(t);}else l===27?(l=Ge,hc(t.type)?(t=Zv,Zv=null,Ge=t):Ge=l):Ge=In?Ja(t.stateNode.nextSibling):null;return true}function xr(){Ge=In=null,fe=false;}function $b(){var t=tc;return t!==null&&(Bl===null?Bl=t:Bl.push.apply(Bl,t),tc=null),t}function V0(t){tc===null?tc=[t]:tc.push(t);}var vv=Fo(null),zr=null,Li=null;function Xu(t,l,o){Be(vv,l._currentValue),l._currentValue=o;}function Bi(t){t._currentValue=vv.current,Wn(vv);}function Sv(t,l,o){for(;t!==null;){var i=t.alternate;if((t.childLanes&l)!==l?(t.childLanes|=l,i!==null&&(i.childLanes|=l)):i!==null&&(i.childLanes&l)!==l&&(i.childLanes|=l),t===o)break;t=t.return;}}function Ev(t,l,o,i){var c=t.child;for(c!==null&&(c.return=t);c!==null;){var f=c.dependencies;if(f!==null){var h=c.child;f=f.firstContext;t:for(;f!==null;){var m=f;f=c;for(var x=0;x<l.length;x++)if(m.context===l[x]){f.lanes|=o,m=f.alternate,m!==null&&(m.lanes|=o),Sv(f.return,o,t),i||(h=null);break t}f=m.next;}}else if(c.tag===18){if(h=c.return,h===null)throw Error(J(341));h.lanes|=o,f=h.alternate,f!==null&&(f.lanes|=o),Sv(h,o,t),h=null;}else h=c.child;if(h!==null)h.return=c;else for(h=c;h!==null;){if(h===t){h=null;break}if(c=h.sibling,c!==null){c.return=h.return,h=c;break}h=h.return;}c=h;}}function _f(t,l,o,i){t=null;for(var c=l,f=false;c!==null;){if(!f){if((c.flags&524288)!==0)f=true;else if((c.flags&262144)!==0)break}if(c.tag===10){var h=c.alternate;if(h===null)throw Error(J(387));if(h=h.memoizedProps,h!==null){var m=c.type;xa(c.pendingProps.value,h.value)||(t!==null?t.push(m):t=[m]);}}else if(c===Sm.current){if(h=c.alternate,h===null)throw Error(J(387));h.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(t!==null?t.push(P0):t=[P0]);}c=c.return;}t!==null&&Ev(l,t,o,i),l.flags|=262144;}function km(t){for(t=t.firstContext;t!==null;){if(!xa(t.context._currentValue,t.memoizedValue))return true;t=t.next;}return false}function br(t){zr=t,Li=null,t=t.dependencies,t!==null&&(t.firstContext=null);}function Pn(t){return tz(zr,t)}function K1(t,l){return zr===null&&br(t),tz(t,l)}function tz(t,l){var o=l._currentValue;if(l={context:l,memoizedValue:o,next:null},Li===null){if(t===null)throw Error(J(308));Li=l,t.dependencies={lanes:0,firstContext:l},t.flags|=524288;}else Li=Li.next=l;return o}var Gw=typeof AbortController<"u"?AbortController:function(){var t=[],l=this.signal={aborted:false,addEventListener:function(o,i){t.push(i);}};this.abort=function(){l.aborted=true,t.forEach(function(o){return o()});};},Qw=Dn.unstable_scheduleCallback,Vw=Dn.unstable_NormalPriority,Sn={$$typeof:$i,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yS(){return {controller:new Gw,data:new Map,refCount:0}}function ch(t){t.refCount--,t.refCount===0&&Qw(Vw,function(){t.controller.abort();});}var R0=null,Mv=0,yf=0,uf=null;function Zw(t,l){if(R0===null){var o=R0=[];Mv=0,yf=YS(),uf={status:"pending",value:void 0,then:function(i){o.push(i);}};}return Mv++,l.then(sT,sT),l}function sT(){if(--Mv===0&&R0!==null){uf!==null&&(uf.status="fulfilled");var t=R0;R0=null,yf=0,uf=null;for(var l=0;l<t.length;l++)(0, t[l])();}}function Jw(t,l){var o=[],i={status:"pending",value:null,reason:null,then:function(c){o.push(c);}};return t.then(function(){i.status="fulfilled",i.value=l;for(var c=0;c<o.length;c++)(0, o[c])(l);},function(c){for(i.status="rejected",i.reason=c,c=0;c<o.length;c++)(0, o[c])(void 0);}),i}var fT=Ut.S;Ut.S=function(t,l){yD=ya(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Zw(t,l),fT!==null&&fT(t,l);};var mr=Fo(null);function mS(){var t=mr.current;return t!==null?t:Ne.pooledCache}function fm(t,l){l===null?Be(mr,mr.current):Be(mr,l.pool);}function ez(){var t=mS();return t===null?null:{parent:Sn._currentValue,pool:t}}var Tf=Error(J(460)),pS=Error(J(474)),np=Error(J(542)),Cm={then:function(){}};function dT(t){return t=t.status,t==="fulfilled"||t==="rejected"}function nz(t,l,o){switch(o=t[o],o===void 0?t.push(l):o!==l&&(l.then(Hi,Hi),l=o),l.status){case "fulfilled":return l.value;case "rejected":throw t=l.reason,yT(t),t;default:if(typeof l.status=="string")l.then(Hi,Hi);else {if(t=Ne,t!==null&&100<t.shellSuspendCounter)throw Error(J(482));t=l,t.status="pending",t.then(function(i){if(l.status==="pending"){var c=l;c.status="fulfilled",c.value=i;}},function(i){if(l.status==="pending"){var c=l;c.status="rejected",c.reason=i;}});}switch(l.status){case "fulfilled":return l.value;case "rejected":throw t=l.reason,yT(t),t}throw pr=l,Tf}}function fr(t){try{var l=t._init;return l(t._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(pr=o,Tf):o}}var pr=null;function hT(){if(pr===null)throw Error(J(459));var t=pr;return pr=null,t}function yT(t){if(t===Tf||t===np)throw Error(J(483))}var cf=null,Z0=0;function F1(t){var l=Z0;return Z0+=1,cf===null&&(cf=[]),nz(cf,t,l)}function b0(t,l){l=l.props.ref,t.ref=l!==void 0?l:null;}function I1(t,l){throw l.$$typeof===N7?Error(J(525)):(t=Object.prototype.toString.call(l),Error(J(31,t==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":t)))}function lz(t){function l(C,z){if(t){var U=C.deletions;U===null?(C.deletions=[z],C.flags|=16):U.push(z);}}function o(C,z){if(!t)return null;for(;z!==null;)l(C,z),z=z.sibling;return null}function i(C){for(var z=new Map;C!==null;)C.key!==null?z.set(C.key,C):z.set(C.index,C),C=C.sibling;return z}function c(C,z){return C=Yi(C,z),C.index=0,C.sibling=null,C}function f(C,z,U){return C.index=U,t?(U=C.alternate,U!==null?(U=U.index,U<z?(C.flags|=67108866,z):U):(C.flags|=67108866,z)):(C.flags|=1048576,z)}function h(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function m(C,z,U,B){return z===null||z.tag!==6?(z=Ub(U,C.mode,B),z.return=C,z):(z=c(z,U),z.return=C,z)}function x(C,z,U,B){var L=U.type;return L===Gs?T(C,z,U.props.children,B,U.key):z!==null&&(z.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ju&&fr(L)===z.type)?(z=c(z,U.props),b0(z,U),z.return=C,z):(z=sm(U.type,U.key,U.props,null,C.mode,B),b0(z,U),z.return=C,z)}function E(C,z,U,B){return z===null||z.tag!==4||z.stateNode.containerInfo!==U.containerInfo||z.stateNode.implementation!==U.implementation?(z=Nb(U,C.mode,B),z.return=C,z):(z=c(z,U.children||[]),z.return=C,z)}function T(C,z,U,B,L){return z===null||z.tag!==7?(z=yr(U,C.mode,B,L),z.return=C,z):(z=c(z,U),z.return=C,z)}function M(C,z,U){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Ub(""+z,C.mode,U),z.return=C,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case j1:return U=sm(z.type,z.key,z.props,null,C.mode,U),b0(U,z),U.return=C,U;case _0:return z=Nb(z,C.mode,U),z.return=C,z;case ju:return z=fr(z),M(C,z,U)}if(T0(z)||g0(z))return z=yr(z,C.mode,U,null),z.return=C,z;if(typeof z.then=="function")return M(C,F1(z),U);if(z.$$typeof===$i)return M(C,K1(C,z),U);I1(C,z);}return null}function v(C,z,U,B){var L=z!==null?z.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return L!==null?null:m(C,z,""+U,B);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case j1:return U.key===L?x(C,z,U,B):null;case _0:return U.key===L?E(C,z,U,B):null;case ju:return U=fr(U),v(C,z,U,B)}if(T0(U)||g0(U))return L!==null?null:T(C,z,U,B,null);if(typeof U.then=="function")return v(C,z,F1(U),B);if(U.$$typeof===$i)return v(C,z,K1(C,U),B);I1(C,U);}return null}function _(C,z,U,B,L){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return C=C.get(U)||null,m(z,C,""+B,L);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j1:return C=C.get(B.key===null?U:B.key)||null,x(z,C,B,L);case _0:return C=C.get(B.key===null?U:B.key)||null,E(z,C,B,L);case ju:return B=fr(B),_(C,z,U,B,L)}if(T0(B)||g0(B))return C=C.get(U)||null,T(z,C,B,L,null);if(typeof B.then=="function")return _(C,z,U,F1(B),L);if(B.$$typeof===$i)return _(C,z,U,K1(z,B),L);I1(z,B);}return null}function $(C,z,U,B){for(var L=null,gt=null,et=z,nt=z=0,vt=null;et!==null&&nt<U.length;nt++){et.index>nt?(vt=et,et=null):vt=et.sibling;var Z=v(C,et,U[nt],B);if(Z===null){et===null&&(et=vt);break}t&&et&&Z.alternate===null&&l(C,et),z=f(Z,z,nt),gt===null?L=Z:gt.sibling=Z,gt=Z,et=vt;}if(nt===U.length)return o(C,et),fe&&Ui(C,nt),L;if(et===null){for(;nt<U.length;nt++)et=M(C,U[nt],B),et!==null&&(z=f(et,z,nt),gt===null?L=et:gt.sibling=et,gt=et);return fe&&Ui(C,nt),L}for(et=i(et);nt<U.length;nt++)vt=_(et,C,nt,U[nt],B),vt!==null&&(t&&vt.alternate!==null&&et.delete(vt.key===null?nt:vt.key),z=f(vt,z,nt),gt===null?L=vt:gt.sibling=vt,gt=vt);return t&&et.forEach(function(re){return l(C,re)}),fe&&Ui(C,nt),L}function X(C,z,U,B){if(U==null)throw Error(J(151));for(var L=null,gt=null,et=z,nt=z=0,vt=null,Z=U.next();et!==null&&!Z.done;nt++,Z=U.next()){et.index>nt?(vt=et,et=null):vt=et.sibling;var re=v(C,et,Z.value,B);if(re===null){et===null&&(et=vt);break}t&&et&&re.alternate===null&&l(C,et),z=f(re,z,nt),gt===null?L=re:gt.sibling=re,gt=re,et=vt;}if(Z.done)return o(C,et),fe&&Ui(C,nt),L;if(et===null){for(;!Z.done;nt++,Z=U.next())Z=M(C,Z.value,B),Z!==null&&(z=f(Z,z,nt),gt===null?L=Z:gt.sibling=Z,gt=Z);return fe&&Ui(C,nt),L}for(et=i(et);!Z.done;nt++,Z=U.next())Z=_(et,C,nt,Z.value,B),Z!==null&&(t&&Z.alternate!==null&&et.delete(Z.key===null?nt:Z.key),z=f(Z,z,nt),gt===null?L=Z:gt.sibling=Z,gt=Z);return t&&et.forEach(function(Et){return l(C,Et)}),fe&&Ui(C,nt),L}function I(C,z,U,B){if(typeof U=="object"&&U!==null&&U.type===Gs&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case j1:t:{for(var L=U.key;z!==null;){if(z.key===L){if(L=U.type,L===Gs){if(z.tag===7){o(C,z.sibling),B=c(z,U.props.children),B.return=C,C=B;break t}}else if(z.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===ju&&fr(L)===z.type){o(C,z.sibling),B=c(z,U.props),b0(B,U),B.return=C,C=B;break t}o(C,z);break}else l(C,z);z=z.sibling;}U.type===Gs?(B=yr(U.props.children,C.mode,B,U.key),B.return=C,C=B):(B=sm(U.type,U.key,U.props,null,C.mode,B),b0(B,U),B.return=C,C=B);}return h(C);case _0:t:{for(L=U.key;z!==null;){if(z.key===L)if(z.tag===4&&z.stateNode.containerInfo===U.containerInfo&&z.stateNode.implementation===U.implementation){o(C,z.sibling),B=c(z,U.children||[]),B.return=C,C=B;break t}else {o(C,z);break}else l(C,z);z=z.sibling;}B=Nb(U,C.mode,B),B.return=C,C=B;}return h(C);case ju:return U=fr(U),I(C,z,U,B)}if(T0(U))return $(C,z,U,B);if(g0(U)){if(L=g0(U),typeof L!="function")throw Error(J(150));return U=L.call(U),X(C,z,U,B)}if(typeof U.then=="function")return I(C,z,F1(U),B);if(U.$$typeof===$i)return I(C,z,K1(C,U),B);I1(C,U);}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,z!==null&&z.tag===6?(o(C,z.sibling),B=c(z,U),B.return=C,C=B):(o(C,z),B=Ub(U,C.mode,B),B.return=C,C=B),h(C)):o(C,z)}return function(C,z,U,B){try{Z0=0;var L=I(C,z,U,B);return cf=null,L}catch(et){if(et===Tf||et===np)throw et;var gt=da(29,et,null,C.mode);return gt.lanes=B,gt.return=C,gt}}}var vr=lz(true),az=lz(false),qu=false;function gS(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function _v(t,l){t=t.updateQueue,l.updateQueue===t&&(l.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null});}function ec(t){return {lane:t,tag:0,payload:null,callback:null,next:null}}function nc(t,l,o){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(ge&2)!==0){var c=i.pending;return c===null?l.next=l:(l.next=c.next,c.next=l),i.pending=l,l=zm(t),JA(t,null,o),l}return ep(t,i,l,o),zm(t)}function w0(t,l,o){if(l=l.updateQueue,l!==null&&(l=l.shared,(o&4194048)!==0)){var i=l.lanes;i&=t.pendingLanes,o|=i,l.lanes=o,EA(t,o);}}function Hb(t,l){var o=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,o===i)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var h={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};f===null?c=f=h:f=f.next=h,o=o.next;}while(o!==null);f===null?c=f=l:f=f.next=l;}else c=f=l;o={baseState:i.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=l:t.next=l,o.lastBaseUpdate=l;}var Tv=false;function U0(){if(Tv){var t=uf;if(t!==null)throw t}}function N0(t,l,o,i){Tv=false;var c=t.updateQueue;qu=false;var f=c.firstBaseUpdate,h=c.lastBaseUpdate,m=c.shared.pending;if(m!==null){c.shared.pending=null;var x=m,E=x.next;x.next=null,h===null?f=E:h.next=E,h=x;var T=t.alternate;T!==null&&(T=T.updateQueue,m=T.lastBaseUpdate,m!==h&&(m===null?T.firstBaseUpdate=E:m.next=E,T.lastBaseUpdate=x));}if(f!==null){var M=c.baseState;h=0,T=E=x=null,m=f;do{var v=m.lane&-536870913,_=v!==m.lane;if(_?(ce&v)===v:(i&v)===v){v!==0&&v===yf&&(Tv=true),T!==null&&(T=T.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});t:{var $=t,X=m;v=l;var I=o;switch(X.tag){case 1:if($=X.payload,typeof $=="function"){M=$.call(I,M,v);break t}M=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=X.payload,v=typeof $=="function"?$.call(I,M,v):$,v==null)break t;M=Qe({},M,v);break t;case 2:qu=true;}}v=m.callback,v!==null&&(t.flags|=64,_&&(t.flags|=8192),_=c.callbacks,_===null?c.callbacks=[v]:_.push(v));}else _={lane:v,tag:m.tag,payload:m.payload,callback:m.callback,next:null},T===null?(E=T=_,x=M):T=T.next=_,h|=v;if(m=m.next,m===null){if(m=c.shared.pending,m===null)break;_=m,m=_.next,_.next=null,c.lastBaseUpdate=_,c.shared.pending=null;}}while(true);T===null&&(x=M),c.baseState=x,c.firstBaseUpdate=E,c.lastBaseUpdate=T,f===null&&(c.shared.lanes=0),fc|=h,t.lanes=h,t.memoizedState=M;}}function oz(t,l){if(typeof t!="function")throw Error(J(191,t));t.call(l);}function iz(t,l){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)oz(o[t],l);}var mf=Fo(null),Om=Fo(0);function mT(t,l){t=Qi,Be(Om,t),Be(mf,l),Qi=t|l.baseLanes;}function Av(){Be(Om,Qi),Be(mf,mf.current);}function xS(){Qi=Om.current,Wn(mf),Wn(Om);}var ba=Fo(null),Za=null;function Gu(t){var l=t.alternate;Be(cn,cn.current&1),Be(ba,t),Za===null&&(l===null||mf.current!==null||l.memoizedState!==null)&&(Za=t);}function zv(t){Be(cn,cn.current),Be(ba,t),Za===null&&(Za=t);}function uz(t){t.tag===22?(Be(cn,cn.current),Be(ba,t),Za===null&&(Za=t)):Qu();}function Qu(){Be(cn,cn.current),Be(ba,ba.current);}function fa(t){Wn(ba),Za===t&&(Za=null),Wn(cn);}var cn=Fo(0);function Rm(t){for(var l=t;l!==null;){if(l.tag===13){var o=l.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Qv(o)||Vv(o)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return null;l=l.return;}l.sibling.return=l.return,l=l.sibling;}return null}var qi=0,Qt=null,Ce=null,bn=null,wm=false,rf=false,Sr=false,Um=0,J0=0,sf=null,Kw=0;function ln(){throw Error(J(321))}function bS(t,l){if(l===null)return false;for(var o=0;o<l.length&&o<t.length;o++)if(!xa(t[o],l[o]))return false;return true}function vS(t,l,o,i,c,f){return qi=f,Qt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Ut.H=t===null||t.memoizedState===null?Lz:OS,Sr=false,f=o(i,c),Sr=false,rf&&(f=rz(l,o,i,c)),cz(t),f}function cz(t){Ut.H=K0;var l=Ce!==null&&Ce.next!==null;if(qi=0,bn=Ce=Qt=null,wm=false,J0=0,sf=null,l)throw Error(J(300));t===null||En||(t=t.dependencies,t!==null&&km(t)&&(En=true));}function rz(t,l,o,i){Qt=t;var c=0;do{if(rf&&(sf=null),J0=0,rf=false,25<=c)throw Error(J(301));if(c+=1,bn=Ce=null,t.updateQueue!=null){var f=t.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0);}Ut.H=Yz,f=l(o,i);}while(rf);return f}function Fw(){var t=Ut.H,l=t.useState()[0];return l=typeof l.then=="function"?rh(l):l,t=t.useState()[0],(Ce!==null?Ce.memoizedState:null)!==t&&(Qt.flags|=1024),l}function SS(){var t=Um!==0;return Um=0,t}function ES(t,l,o){l.updateQueue=t.updateQueue,l.flags&=-2053,t.lanes&=~o;}function MS(t){if(wm){for(t=t.memoizedState;t!==null;){var l=t.queue;l!==null&&(l.pending=null),t=t.next;}wm=false;}qi=0,bn=Ce=Qt=null,rf=false,J0=Um=0,sf=null;}function Tl(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bn===null?Qt.memoizedState=bn=t:bn=bn.next=t,bn}function rn(){if(Ce===null){var t=Qt.alternate;t=t!==null?t.memoizedState:null;}else t=Ce.next;var l=bn===null?Qt.memoizedState:bn.next;if(l!==null)bn=l,Ce=t;else {if(t===null)throw Qt.alternate===null?Error(J(467)):Error(J(310));Ce=t,t={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},bn===null?Qt.memoizedState=bn=t:bn=bn.next=t;}return bn}function lp(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function rh(t){var l=J0;return J0+=1,sf===null&&(sf=[]),t=nz(sf,t,l),l=Qt,(bn===null?l.memoizedState:bn.next)===null&&(l=l.alternate,Ut.H=l===null||l.memoizedState===null?Lz:OS),t}function ap(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return rh(t);if(t.$$typeof===$i)return Pn(t)}throw Error(J(438,String(t)))}function _S(t){var l=null,o=Qt.updateQueue;if(o!==null&&(l=o.memoCache),l==null){var i=Qt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(l={data:i.data.map(function(c){return c.slice()}),index:0})));}if(l==null&&(l={data:[],index:0}),o===null&&(o=lp(),Qt.updateQueue=o),o.memoCache=l,o=l.data[l.index],o===void 0)for(o=l.data[l.index]=Array(t),i=0;i<t;i++)o[i]=$7;return l.index++,o}function Xi(t,l){return typeof l=="function"?l(t):l}function dm(t){var l=rn();return TS(l,Ce,t)}function TS(t,l,o){var i=t.queue;if(i===null)throw Error(J(311));i.lastRenderedReducer=o;var c=t.baseQueue,f=i.pending;if(f!==null){if(c!==null){var h=c.next;c.next=f.next,f.next=h;}l.baseQueue=c=f,i.pending=null;}if(f=t.baseState,c===null)t.memoizedState=f;else {l=c.next;var m=h=null,x=null,E=l,T=false;do{var M=E.lane&-536870913;if(M!==E.lane?(ce&M)===M:(qi&M)===M){var v=E.revertLane;if(v===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),M===yf&&(T=true);else if((qi&v)===v){E=E.next,v===yf&&(T=true);continue}else M={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},x===null?(m=x=M,h=f):x=x.next=M,Qt.lanes|=v,fc|=v;M=E.action,Sr&&o(f,M),f=E.hasEagerState?E.eagerState:o(f,M);}else v={lane:M,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},x===null?(m=x=v,h=f):x=x.next=v,Qt.lanes|=M,fc|=M;E=E.next;}while(E!==null&&E!==l);if(x===null?h=f:x.next=m,!xa(f,t.memoizedState)&&(En=true,T&&(o=uf,o!==null)))throw o;t.memoizedState=f,t.baseState=h,t.baseQueue=x,i.lastRenderedState=f;}return c===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function Lb(t){var l=rn(),o=l.queue;if(o===null)throw Error(J(311));o.lastRenderedReducer=t;var i=o.dispatch,c=o.pending,f=l.memoizedState;if(c!==null){o.pending=null;var h=c=c.next;do f=t(f,h.action),h=h.next;while(h!==c);xa(f,l.memoizedState)||(En=true),l.memoizedState=f,l.baseQueue===null&&(l.baseState=f),o.lastRenderedState=f;}return [f,i]}function sz(t,l,o){var i=Qt,c=rn(),f=fe;if(f){if(o===void 0)throw Error(J(407));o=o();}else o=l();var h=!xa((Ce||c).memoizedState,o);if(h&&(c.memoizedState=o,En=true),c=c.queue,AS(hz.bind(null,i,c,t),[t]),c.getSnapshot!==l||h||bn!==null&&bn.memoizedState.tag&1){if(i.flags|=2048,pf(9,{destroy:void 0},dz.bind(null,i,c,o,l),null),Ne===null)throw Error(J(349));f||(qi&127)!==0||fz(i,l,o);}return o}function fz(t,l,o){t.flags|=16384,t={getSnapshot:l,value:o},l=Qt.updateQueue,l===null?(l=lp(),Qt.updateQueue=l,l.stores=[t]):(o=l.stores,o===null?l.stores=[t]:o.push(t));}function dz(t,l,o,i){l.value=o,l.getSnapshot=i,yz(l)&&mz(t);}function hz(t,l,o){return o(function(){yz(l)&&mz(t);})}function yz(t){var l=t.getSnapshot;t=t.value;try{var o=l();return !xa(t,o)}catch{return true}}function mz(t){var l=Ar(t,2);l!==null&&Wl(l,t,2);}function Dv(t){var l=Tl();if(typeof t=="function"){var o=t;if(t=o(),Sr){Zu(true);try{o();}finally{Zu(false);}}}return l.memoizedState=l.baseState=t,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:t},l}function pz(t,l,o,i){return t.baseState=o,TS(t,Ce,typeof i=="function"?i:Xi)}function Iw(t,l,o,i,c){if(ip(t))throw Error(J(485));if(t=l.action,t!==null){var f={payload:c,action:t,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(h){f.listeners.push(h);}};Ut.T!==null?o(true):f.isTransition=false,i(f),o=l.pending,o===null?(f.next=l.pending=f,gz(l,f)):(f.next=o.next,l.pending=o.next=f);}}function gz(t,l){var o=l.action,i=l.payload,c=t.state;if(l.isTransition){var f=Ut.T,h={};Ut.T=h;try{var m=o(c,i),x=Ut.S;x!==null&&x(h,m),pT(t,l,m);}catch(E){kv(t,l,E);}finally{f!==null&&h.types!==null&&(f.types=h.types),Ut.T=f;}}else try{f=o(c,i),pT(t,l,f);}catch(E){kv(t,l,E);}}function pT(t,l,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(i){gT(t,l,i);},function(i){return kv(t,l,i)}):gT(t,l,o);}function gT(t,l,o){l.status="fulfilled",l.value=o,xz(l),t.state=o,l=t.pending,l!==null&&(o=l.next,o===l?t.pending=null:(o=o.next,l.next=o,gz(t,o)));}function kv(t,l,o){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do l.status="rejected",l.reason=o,xz(l),l=l.next;while(l!==i)}t.action=null;}function xz(t){t=t.listeners;for(var l=0;l<t.length;l++)(0, t[l])();}function bz(t,l){return l}function xT(t,l){if(fe){var o=Ne.formState;if(o!==null){t:{var i=Qt;if(fe){if(Ge){e:{for(var c=Ge,f=Va;c.nodeType!==8;){if(!f){c=null;break e}if(c=Ja(c.nextSibling),c===null){c=null;break e}}f=c.data,c=f==="F!"||f==="F"?c:null;}if(c){Ge=Ja(c.nextSibling),i=c.data==="F!";break t}}rc(i);}i=false;}i&&(l=o[0]);}}return o=Tl(),o.memoizedState=o.baseState=l,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bz,lastRenderedState:l},o.queue=i,o=Nz.bind(null,Qt,i),i.dispatch=o,i=Dv(false),f=CS.bind(null,Qt,false,i.queue),i=Tl(),c={state:l,dispatch:null,action:t,pending:null},i.queue=c,o=Iw.bind(null,Qt,c,f,o),c.dispatch=o,i.memoizedState=t,[l,o,false]}function bT(t){var l=rn();return vz(l,Ce,t)}function vz(t,l,o){if(l=TS(t,l,bz)[0],t=dm(Xi)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var i=rh(l);}catch(h){throw h===Tf?np:h}else i=l;l=rn();var c=l.queue,f=c.dispatch;return o!==l.memoizedState&&(Qt.flags|=2048,pf(9,{destroy:void 0},Pw.bind(null,c,o),null)),[i,f,t]}function Pw(t,l){t.action=l;}function vT(t){var l=rn(),o=Ce;if(o!==null)return vz(l,o,t);rn(),l=l.memoizedState,o=rn();var i=o.queue.dispatch;return o.memoizedState=t,[l,i,false]}function pf(t,l,o,i){return t={tag:t,create:o,deps:i,inst:l,next:null},l=Qt.updateQueue,l===null&&(l=lp(),Qt.updateQueue=l),o=l.lastEffect,o===null?l.lastEffect=t.next=t:(i=o.next,o.next=t,t.next=i,l.lastEffect=t),t}function Sz(){return rn().memoizedState}function hm(t,l,o,i){var c=Tl();Qt.flags|=t,c.memoizedState=pf(1|l,{destroy:void 0},o,i===void 0?null:i);}function op(t,l,o,i){var c=rn();i=i===void 0?null:i;var f=c.memoizedState.inst;Ce!==null&&i!==null&&bS(i,Ce.memoizedState.deps)?c.memoizedState=pf(l,f,o,i):(Qt.flags|=t,c.memoizedState=pf(1|l,f,o,i));}function ST(t,l){hm(8390656,8,t,l);}function AS(t,l){op(2048,8,t,l);}function t9(t){Qt.flags|=4;var l=Qt.updateQueue;if(l===null)l=lp(),Qt.updateQueue=l,l.events=[t];else {var o=l.events;o===null?l.events=[t]:o.push(t);}}function Ez(t){var l=rn().memoizedState;return t9({ref:l,nextImpl:t}),function(){if((ge&2)!==0)throw Error(J(440));return l.impl.apply(void 0,arguments)}}function Mz(t,l){return op(4,2,t,l)}function _z(t,l){return op(4,4,t,l)}function Tz(t,l){if(typeof l=="function"){t=t();var o=l(t);return function(){typeof o=="function"?o():l(null);}}if(l!=null)return t=t(),l.current=t,function(){l.current=null;}}function Az(t,l,o){o=o!=null?o.concat([t]):null,op(4,4,Tz.bind(null,l,t),o);}function zS(){}function zz(t,l){var o=rn();l=l===void 0?null:l;var i=o.memoizedState;return l!==null&&bS(l,i[1])?i[0]:(o.memoizedState=[t,l],t)}function Dz(t,l){var o=rn();l=l===void 0?null:l;var i=o.memoizedState;if(l!==null&&bS(l,i[1]))return i[0];if(i=t(),Sr){Zu(true);try{t();}finally{Zu(false);}}return o.memoizedState=[i,l],i}function DS(t,l,o){return o===void 0||(qi&1073741824)!==0&&(ce&261930)===0?t.memoizedState=l:(t.memoizedState=o,t=pD(),Qt.lanes|=t,fc|=t,o)}function kz(t,l,o,i){return xa(o,l)?o:mf.current!==null?(t=DS(t,o,i),xa(t,l)||(En=true),t):(qi&42)===0||(qi&1073741824)!==0&&(ce&261930)===0?(En=true,t.memoizedState=o):(t=pD(),Qt.lanes|=t,fc|=t,l)}function Cz(t,l,o,i,c){var f=xe.p;xe.p=f!==0&&8>f?f:8;var h=Ut.T,m={};Ut.T=m,CS(t,false,l,o);try{var x=c(),E=Ut.S;if(E!==null&&E(m,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){var T=Jw(x,i);$0(t,l,T,ga(t));}else $0(t,l,i,ga(t));}catch(M){$0(t,l,{then:function(){},status:"rejected",reason:M},ga());}finally{xe.p=f,h!==null&&m.types!==null&&(h.types=m.types),Ut.T=h;}}function e9(){}function Cv(t,l,o,i){if(t.tag!==5)throw Error(J(476));var c=Oz(t).queue;Cz(t,c,l,hr,o===null?e9:function(){return Rz(t),o(i)});}function Oz(t){var l=t.memoizedState;if(l!==null)return l;l={memoizedState:hr,baseState:hr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:hr},next:null};var o={};return l.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:o},next:null},t.memoizedState=l,t=t.alternate,t!==null&&(t.memoizedState=l),l}function Rz(t){var l=Oz(t);l.next===null&&(l=t.alternate.memoizedState),$0(t,l.next.queue,{},ga());}function kS(){return Pn(P0)}function wz(){return rn().memoizedState}function Uz(){return rn().memoizedState}function n9(t){for(var l=t.return;l!==null;){switch(l.tag){case 24:case 3:var o=ga();t=ec(o);var i=nc(l,t,o);i!==null&&(Wl(i,l,o),w0(i,l,o)),l={cache:yS()},t.payload=l;return}l=l.return;}}function l9(t,l,o){var i=ga();o={lane:i,revertLane:0,gesture:null,action:o,hasEagerState:false,eagerState:null,next:null},ip(t)?$z(l,o):(o=sS(t,l,o,i),o!==null&&(Wl(o,t,i),Hz(o,l,i)));}function Nz(t,l,o){var i=ga();$0(t,l,o,i);}function $0(t,l,o,i){var c={lane:i,revertLane:0,gesture:null,action:o,hasEagerState:false,eagerState:null,next:null};if(ip(t))$z(l,c);else {var f=t.alternate;if(t.lanes===0&&(f===null||f.lanes===0)&&(f=l.lastRenderedReducer,f!==null))try{var h=l.lastRenderedState,m=f(h,o);if(c.hasEagerState=!0,c.eagerState=m,xa(m,h))return ep(t,l,c,0),Ne===null&&tp(),!1}catch{}if(o=sS(t,l,c,i),o!==null)return Wl(o,t,i),Hz(o,l,i),true}return false}function CS(t,l,o,i){if(i={lane:2,revertLane:YS(),gesture:null,action:i,hasEagerState:false,eagerState:null,next:null},ip(t)){if(l)throw Error(J(479))}else l=sS(t,o,i,2),l!==null&&Wl(l,t,2);}function ip(t){var l=t.alternate;return t===Qt||l!==null&&l===Qt}function $z(t,l){rf=wm=true;var o=t.pending;o===null?l.next=l:(l.next=o.next,o.next=l),t.pending=l;}function Hz(t,l,o){if((o&4194048)!==0){var i=l.lanes;i&=t.pendingLanes,o|=i,l.lanes=o,EA(t,o);}}var K0={readContext:Pn,use:ap,useCallback:ln,useContext:ln,useEffect:ln,useImperativeHandle:ln,useLayoutEffect:ln,useInsertionEffect:ln,useMemo:ln,useReducer:ln,useRef:ln,useState:ln,useDebugValue:ln,useDeferredValue:ln,useTransition:ln,useSyncExternalStore:ln,useId:ln,useHostTransitionStatus:ln,useFormState:ln,useActionState:ln,useOptimistic:ln,useMemoCache:ln,useCacheRefresh:ln};K0.useEffectEvent=ln;var Lz={readContext:Pn,use:ap,useCallback:function(t,l){return Tl().memoizedState=[t,l===void 0?null:l],t},useContext:Pn,useEffect:ST,useImperativeHandle:function(t,l,o){o=o!=null?o.concat([t]):null,hm(4194308,4,Tz.bind(null,l,t),o);},useLayoutEffect:function(t,l){return hm(4194308,4,t,l)},useInsertionEffect:function(t,l){hm(4,2,t,l);},useMemo:function(t,l){var o=Tl();l=l===void 0?null:l;var i=t();if(Sr){Zu(true);try{t();}finally{Zu(false);}}return o.memoizedState=[i,l],i},useReducer:function(t,l,o){var i=Tl();if(o!==void 0){var c=o(l);if(Sr){Zu(true);try{o(l);}finally{Zu(false);}}}else c=l;return i.memoizedState=i.baseState=c,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:c},i.queue=t,t=t.dispatch=l9.bind(null,Qt,t),[i.memoizedState,t]},useRef:function(t){var l=Tl();return t={current:t},l.memoizedState=t},useState:function(t){t=Dv(t);var l=t.queue,o=Nz.bind(null,Qt,l);return l.dispatch=o,[t.memoizedState,o]},useDebugValue:zS,useDeferredValue:function(t,l){var o=Tl();return DS(o,t,l)},useTransition:function(){var t=Dv(false);return t=Cz.bind(null,Qt,t.queue,true,false),Tl().memoizedState=t,[false,t]},useSyncExternalStore:function(t,l,o){var i=Qt,c=Tl();if(fe){if(o===void 0)throw Error(J(407));o=o();}else {if(o=l(),Ne===null)throw Error(J(349));(ce&127)!==0||fz(i,l,o);}c.memoizedState=o;var f={value:o,getSnapshot:l};return c.queue=f,ST(hz.bind(null,i,f,t),[t]),i.flags|=2048,pf(9,{destroy:void 0},dz.bind(null,i,f,o,l),null),o},useId:function(){var t=Tl(),l=Ne.identifierPrefix;if(fe){var o=Zo,i=Vo;o=(i&~(1<<32-pa(i)-1)).toString(32)+o,l="_"+l+"R_"+o,o=Um++,0<o&&(l+="H"+o.toString(32)),l+="_";}else o=Kw++,l="_"+l+"r_"+o.toString(32)+"_";return t.memoizedState=l},useHostTransitionStatus:kS,useFormState:xT,useActionState:xT,useOptimistic:function(t){var l=Tl();l.memoizedState=l.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=o,l=CS.bind(null,Qt,true,o),o.dispatch=l,[t,l]},useMemoCache:_S,useCacheRefresh:function(){return Tl().memoizedState=n9.bind(null,Qt)},useEffectEvent:function(t){var l=Tl(),o={impl:t};return l.memoizedState=o,function(){if((ge&2)!==0)throw Error(J(440));return o.impl.apply(void 0,arguments)}}},OS={readContext:Pn,use:ap,useCallback:zz,useContext:Pn,useEffect:AS,useImperativeHandle:Az,useInsertionEffect:Mz,useLayoutEffect:_z,useMemo:Dz,useReducer:dm,useRef:Sz,useState:function(){return dm(Xi)},useDebugValue:zS,useDeferredValue:function(t,l){var o=rn();return kz(o,Ce.memoizedState,t,l)},useTransition:function(){var t=dm(Xi)[0],l=rn().memoizedState;return [typeof t=="boolean"?t:rh(t),l]},useSyncExternalStore:sz,useId:wz,useHostTransitionStatus:kS,useFormState:bT,useActionState:bT,useOptimistic:function(t,l){var o=rn();return pz(o,Ce,t,l)},useMemoCache:_S,useCacheRefresh:Uz};OS.useEffectEvent=Ez;var Yz={readContext:Pn,use:ap,useCallback:zz,useContext:Pn,useEffect:AS,useImperativeHandle:Az,useInsertionEffect:Mz,useLayoutEffect:_z,useMemo:Dz,useReducer:Lb,useRef:Sz,useState:function(){return Lb(Xi)},useDebugValue:zS,useDeferredValue:function(t,l){var o=rn();return Ce===null?DS(o,t,l):kz(o,Ce.memoizedState,t,l)},useTransition:function(){var t=Lb(Xi)[0],l=rn().memoizedState;return [typeof t=="boolean"?t:rh(t),l]},useSyncExternalStore:sz,useId:wz,useHostTransitionStatus:kS,useFormState:vT,useActionState:vT,useOptimistic:function(t,l){var o=rn();return Ce!==null?pz(o,Ce,t,l):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:_S,useCacheRefresh:Uz};Yz.useEffectEvent=Ez;function Yb(t,l,o,i){l=t.memoizedState,o=o(i,l),o=o==null?l:Qe({},l,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o);}var Ov={enqueueSetState:function(t,l,o){t=t._reactInternals;var i=ga(),c=ec(i);c.payload=l,o!=null&&(c.callback=o),l=nc(t,c,i),l!==null&&(Wl(l,t,i),w0(l,t,i));},enqueueReplaceState:function(t,l,o){t=t._reactInternals;var i=ga(),c=ec(i);c.tag=1,c.payload=l,o!=null&&(c.callback=o),l=nc(t,c,i),l!==null&&(Wl(l,t,i),w0(l,t,i));},enqueueForceUpdate:function(t,l){t=t._reactInternals;var o=ga(),i=ec(o);i.tag=2,l!=null&&(i.callback=l),l=nc(t,i,o),l!==null&&(Wl(l,t,o),w0(l,t,o));}};function ET(t,l,o,i,c,f,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,f,h):l.prototype&&l.prototype.isPureReactComponent?!G0(o,i)||!G0(c,f):true}function MT(t,l,o,i){t=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(o,i),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(o,i),l.state!==t&&Ov.enqueueReplaceState(l,l.state,null);}function Er(t,l){var o=l;if("ref"in l){o={};for(var i in l)i!=="ref"&&(o[i]=l[i]);}if(t=t.defaultProps){o===l&&(o=Qe({},o));for(var c in t)o[c]===void 0&&(o[c]=t[c]);}return o}function Bz(t){Am(t);}function Wz(t){console.error(t);}function jz(t){Am(t);}function Nm(t,l){try{var o=t.onUncaughtError;o(l.value,{componentStack:l.stack});}catch(i){setTimeout(function(){throw i});}}function _T(t,l,o){try{var i=t.onCaughtError;i(o.value,{componentStack:o.stack,errorBoundary:l.tag===1?l.stateNode:null});}catch(c){setTimeout(function(){throw c});}}function Rv(t,l,o){return o=ec(o),o.tag=3,o.payload={element:null},o.callback=function(){Nm(t,l);},o}function qz(t){return t=ec(t),t.tag=3,t}function Xz(t,l,o,i){var c=o.type.getDerivedStateFromError;if(typeof c=="function"){var f=i.value;t.payload=function(){return c(f)},t.callback=function(){_T(l,o,i);};}var h=o.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){_T(l,o,i),typeof c!="function"&&(lc===null?lc=new Set([this]):lc.add(this));var m=i.stack;this.componentDidCatch(i.value,{componentStack:m!==null?m:""});});}function a9(t,l,o,i,c){if(o.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(l=o.alternate,l!==null&&_f(l,o,c,true),o=ba.current,o!==null){switch(o.tag){case 31:case 13:return Za===null?Bm():o.alternate===null&&an===0&&(an=3),o.flags&=-257,o.flags|=65536,o.lanes=c,i===Cm?o.flags|=16384:(l=o.updateQueue,l===null?o.updateQueue=new Set([i]):l.add(i),Kb(t,i,c)),false;case 22:return o.flags|=65536,i===Cm?o.flags|=16384:(l=o.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([i])},o.updateQueue=l):(o=l.retryQueue,o===null?l.retryQueue=new Set([i]):o.add(i)),Kb(t,i,c)),false}throw Error(J(435,o.tag))}return Kb(t,i,c),Bm(),false}if(fe)return l=ba.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=c,i!==bv&&(t=Error(J(422),{cause:i}),V0(Qa(t,o)))):(i!==bv&&(l=Error(J(423),{cause:i}),V0(Qa(l,o))),t=t.current.alternate,t.flags|=65536,c&=-c,t.lanes|=c,i=Qa(i,o),c=Rv(t.stateNode,i,c),Hb(t,c),an!==4&&(an=2)),false;var f=Error(J(520),{cause:i});if(f=Qa(f,o),Y0===null?Y0=[f]:Y0.push(f),an!==4&&(an=2),l===null)return true;i=Qa(i,o),o=l;do{switch(o.tag){case 3:return o.flags|=65536,t=c&-c,o.lanes|=t,t=Rv(o.stateNode,i,t),Hb(o,t),false;case 1:if(l=o.type,f=o.stateNode,(o.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(lc===null||!lc.has(f))))return o.flags|=65536,c&=-c,o.lanes|=c,c=qz(c),Xz(c,t,o,i),Hb(o,c),false}o=o.return;}while(o!==null);return false}var RS=Error(J(461)),En=false;function Kn(t,l,o,i){l.child=t===null?az(l,null,o,i):vr(l,t.child,o,i);}function TT(t,l,o,i,c){o=o.render;var f=l.ref;if("ref"in i){var h={};for(var m in i)m!=="ref"&&(h[m]=i[m]);}else h=i;return br(l),i=vS(t,l,o,h,f,c),m=SS(),t!==null&&!En?(ES(t,l,c),Gi(t,l,c)):(fe&&m&&dS(l),l.flags|=1,Kn(t,l,i,c),l.child)}function AT(t,l,o,i,c){if(t===null){var f=o.type;return typeof f=="function"&&!fS(f)&&f.defaultProps===void 0&&o.compare===null?(l.tag=15,l.type=f,Gz(t,l,f,i,c)):(t=sm(o.type,null,i,l,l.mode,c),t.ref=l.ref,t.return=l,l.child=t)}if(f=t.child,!wS(t,c)){var h=f.memoizedProps;if(o=o.compare,o=o!==null?o:G0,o(h,i)&&t.ref===l.ref)return Gi(t,l,c)}return l.flags|=1,t=Yi(f,i),t.ref=l.ref,t.return=l,l.child=t}function Gz(t,l,o,i,c){if(t!==null){var f=t.memoizedProps;if(G0(f,i)&&t.ref===l.ref)if(En=false,l.pendingProps=i=f,wS(t,c))(t.flags&131072)!==0&&(En=true);else return l.lanes=t.lanes,Gi(t,l,c)}return wv(t,l,o,i,c)}function Qz(t,l,o,i){var c=i.children,f=t!==null?t.memoizedState:null;if(t===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((l.flags&128)!==0){if(f=f!==null?f.baseLanes|o:o,t!==null){for(i=l.child=t.child,c=0;i!==null;)c=c|i.lanes|i.childLanes,i=i.sibling;i=c&~f;}else i=0,l.child=null;return zT(t,l,f,o,i)}if((o&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},t!==null&&fm(l,f!==null?f.cachePool:null),f!==null?mT(l,f):Av(),uz(l);else return i=l.lanes=536870912,zT(t,l,f!==null?f.baseLanes|o:o,o,i)}else f!==null?(fm(l,f.cachePool),mT(l,f),Qu(),l.memoizedState=null):(t!==null&&fm(l,null),Av(),Qu());return Kn(t,l,c,o),l.child}function z0(t,l){return t!==null&&t.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function zT(t,l,o,i,c){var f=mS();return f=f===null?null:{parent:Sn._currentValue,pool:f},l.memoizedState={baseLanes:o,cachePool:f},t!==null&&fm(l,null),Av(),uz(l),t!==null&&_f(t,l,i,true),l.childLanes=c,null}function ym(t,l){return l=$m({mode:l.mode,children:l.children},t.mode),l.ref=t.ref,t.child=l,l.return=t,l}function DT(t,l,o){return vr(l,t.child,null,o),t=ym(l,l.pendingProps),t.flags|=2,fa(l),l.memoizedState=null,t}function o9(t,l,o){var i=l.pendingProps,c=(l.flags&128)!==0;if(l.flags&=-129,t===null){if(fe){if(i.mode==="hidden")return t=ym(l,i),l.lanes=536870912,z0(null,t);if(zv(l),(t=Ge)?(t=LD(t,Va),t=t!==null&&t.data==="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:cc!==null?{id:Vo,overflow:Zo}:null,retryLane:536870912,hydrationErrors:null},o=FA(t),o.return=l,l.child=o,In=l,Ge=null)):t=null,t===null)throw rc(l);return l.lanes=536870912,null}return ym(l,i)}var f=t.memoizedState;if(f!==null){var h=f.dehydrated;if(zv(l),c)if(l.flags&256)l.flags&=-257,l=DT(t,l,o);else if(l.memoizedState!==null)l.child=t.child,l.flags|=128,l=null;else throw Error(J(558));else if(En||_f(t,l,o,false),c=(o&t.childLanes)!==0,En||c){if(i=Ne,i!==null&&(h=MA(i,o),h!==0&&h!==f.retryLane))throw f.retryLane=h,Ar(t,h),Wl(i,t,h),RS;Bm(),l=DT(t,l,o);}else t=f.treeContext,Ge=Ja(h.nextSibling),In=l,fe=true,tc=null,Va=false,t!==null&&PA(l,t),l=ym(l,i),l.flags|=4096;return l}return t=Yi(t.child,{mode:i.mode,children:i.children}),t.ref=l.ref,l.child=t,t.return=l,t}function mm(t,l){var o=l.ref;if(o===null)t!==null&&t.ref!==null&&(l.flags|=4194816);else {if(typeof o!="function"&&typeof o!="object")throw Error(J(284));(t===null||t.ref!==o)&&(l.flags|=4194816);}}function wv(t,l,o,i,c){return br(l),o=vS(t,l,o,i,void 0,c),i=SS(),t!==null&&!En?(ES(t,l,c),Gi(t,l,c)):(fe&&i&&dS(l),l.flags|=1,Kn(t,l,o,c),l.child)}function kT(t,l,o,i,c,f){return br(l),l.updateQueue=null,o=rz(l,i,o,c),cz(t),i=SS(),t!==null&&!En?(ES(t,l,f),Gi(t,l,f)):(fe&&i&&dS(l),l.flags|=1,Kn(t,l,o,f),l.child)}function CT(t,l,o,i,c){if(br(l),l.stateNode===null){var f=Ps,h=o.contextType;typeof h=="object"&&h!==null&&(f=Pn(h)),f=new o(i,f),l.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Ov,l.stateNode=f,f._reactInternals=l,f=l.stateNode,f.props=i,f.state=l.memoizedState,f.refs={},gS(l),h=o.contextType,f.context=typeof h=="object"&&h!==null?Pn(h):Ps,f.state=l.memoizedState,h=o.getDerivedStateFromProps,typeof h=="function"&&(Yb(l,o,h,i),f.state=l.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(h=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),h!==f.state&&Ov.enqueueReplaceState(f,f.state,null),N0(l,i,f,c),U0(),f.state=l.memoizedState),typeof f.componentDidMount=="function"&&(l.flags|=4194308),i=true;}else if(t===null){f=l.stateNode;var m=l.memoizedProps,x=Er(o,m);f.props=x;var E=f.context,T=o.contextType;h=Ps,typeof T=="object"&&T!==null&&(h=Pn(T));var M=o.getDerivedStateFromProps;T=typeof M=="function"||typeof f.getSnapshotBeforeUpdate=="function",m=l.pendingProps!==m,T||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(m||E!==h)&&MT(l,f,i,h),qu=false;var v=l.memoizedState;f.state=v,N0(l,i,f,c),U0(),E=l.memoizedState,m||v!==E||qu?(typeof M=="function"&&(Yb(l,o,M,i),E=l.memoizedState),(x=qu||ET(l,o,x,i,v,E,h))?(T||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(l.flags|=4194308)):(typeof f.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=i,l.memoizedState=E),f.props=i,f.state=E,f.context=h,i=x):(typeof f.componentDidMount=="function"&&(l.flags|=4194308),i=false);}else {f=l.stateNode,_v(t,l),h=l.memoizedProps,T=Er(o,h),f.props=T,M=l.pendingProps,v=f.context,E=o.contextType,x=Ps,typeof E=="object"&&E!==null&&(x=Pn(E)),m=o.getDerivedStateFromProps,(E=typeof m=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(h!==M||v!==x)&&MT(l,f,i,x),qu=false,v=l.memoizedState,f.state=v,N0(l,i,f,c),U0();var _=l.memoizedState;h!==M||v!==_||qu||t!==null&&t.dependencies!==null&&km(t.dependencies)?(typeof m=="function"&&(Yb(l,o,m,i),_=l.memoizedState),(T=qu||ET(l,o,T,i,v,_,x)||t!==null&&t.dependencies!==null&&km(t.dependencies))?(E||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,_,x),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,_,x)),typeof f.componentDidUpdate=="function"&&(l.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof f.componentDidUpdate!="function"||h===t.memoizedProps&&v===t.memoizedState||(l.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&v===t.memoizedState||(l.flags|=1024),l.memoizedProps=i,l.memoizedState=_),f.props=i,f.state=_,f.context=x,i=T):(typeof f.componentDidUpdate!="function"||h===t.memoizedProps&&v===t.memoizedState||(l.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&v===t.memoizedState||(l.flags|=1024),i=false);}return f=i,mm(t,l),i=(l.flags&128)!==0,f||i?(f=l.stateNode,o=i&&typeof o.getDerivedStateFromError!="function"?null:f.render(),l.flags|=1,t!==null&&i?(l.child=vr(l,t.child,null,c),l.child=vr(l,null,o,c)):Kn(t,l,o,c),l.memoizedState=f.state,t=l.child):t=Gi(t,l,c),t}function OT(t,l,o,i){return xr(),l.flags|=256,Kn(t,l,o,i),l.child}var Bb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wb(t){return {baseLanes:t,cachePool:ez()}}function jb(t,l,o){return t=t!==null?t.childLanes&~o:0,l&&(t|=ha),t}function Vz(t,l,o){var i=l.pendingProps,c=false,f=(l.flags&128)!==0,h;if((h=f)||(h=t!==null&&t.memoizedState===null?false:(cn.current&2)!==0),h&&(c=true,l.flags&=-129),h=(l.flags&32)!==0,l.flags&=-33,t===null){if(fe){if(c?Gu(l):Qu(),(t=Ge)?(t=LD(t,Va),t=t!==null&&t.data!=="&"?t:null,t!==null&&(l.memoizedState={dehydrated:t,treeContext:cc!==null?{id:Vo,overflow:Zo}:null,retryLane:536870912,hydrationErrors:null},o=FA(t),o.return=l,l.child=o,In=l,Ge=null)):t=null,t===null)throw rc(l);return Vv(t)?l.lanes=32:l.lanes=536870912,null}var m=i.children;return i=i.fallback,c?(Qu(),c=l.mode,m=$m({mode:"hidden",children:m},c),i=yr(i,c,o,null),m.return=l,i.return=l,m.sibling=i,l.child=m,i=l.child,i.memoizedState=Wb(o),i.childLanes=jb(t,h,o),l.memoizedState=Bb,z0(null,i)):(Gu(l),Uv(l,m))}var x=t.memoizedState;if(x!==null&&(m=x.dehydrated,m!==null)){if(f)l.flags&256?(Gu(l),l.flags&=-257,l=qb(t,l,o)):l.memoizedState!==null?(Qu(),l.child=t.child,l.flags|=128,l=null):(Qu(),m=i.fallback,c=l.mode,i=$m({mode:"visible",children:i.children},c),m=yr(m,c,o,null),m.flags|=2,i.return=l,m.return=l,i.sibling=m,l.child=i,vr(l,t.child,null,o),i=l.child,i.memoizedState=Wb(o),i.childLanes=jb(t,h,o),l.memoizedState=Bb,l=z0(null,i));else if(Gu(l),Vv(m)){if(h=m.nextSibling&&m.nextSibling.dataset,h)var E=h.dgst;h=E,i=Error(J(419)),i.stack="",i.digest=h,V0({value:i,source:null,stack:null}),l=qb(t,l,o);}else if(En||_f(t,l,o,false),h=(o&t.childLanes)!==0,En||h){if(h=Ne,h!==null&&(i=MA(h,o),i!==0&&i!==x.retryLane))throw x.retryLane=i,Ar(t,i),Wl(h,t,i),RS;Qv(m)||Bm(),l=qb(t,l,o);}else Qv(m)?(l.flags|=192,l.child=t.child,l=null):(t=x.treeContext,Ge=Ja(m.nextSibling),In=l,fe=true,tc=null,Va=false,t!==null&&PA(l,t),l=Uv(l,i.children),l.flags|=4096);return l}return c?(Qu(),m=i.fallback,c=l.mode,x=t.child,E=x.sibling,i=Yi(x,{mode:"hidden",children:i.children}),i.subtreeFlags=x.subtreeFlags&65011712,E!==null?m=Yi(E,m):(m=yr(m,c,o,null),m.flags|=2),m.return=l,i.return=l,i.sibling=m,l.child=i,z0(null,i),i=l.child,m=t.child.memoizedState,m===null?m=Wb(o):(c=m.cachePool,c!==null?(x=Sn._currentValue,c=c.parent!==x?{parent:x,pool:x}:c):c=ez(),m={baseLanes:m.baseLanes|o,cachePool:c}),i.memoizedState=m,i.childLanes=jb(t,h,o),l.memoizedState=Bb,z0(t.child,i)):(Gu(l),o=t.child,t=o.sibling,o=Yi(o,{mode:"visible",children:i.children}),o.return=l,o.sibling=null,t!==null&&(h=l.deletions,h===null?(l.deletions=[t],l.flags|=16):h.push(t)),l.child=o,l.memoizedState=null,o)}function Uv(t,l){return l=$m({mode:"visible",children:l},t.mode),l.return=t,t.child=l}function $m(t,l){return t=da(22,t,null,l),t.lanes=0,t}function qb(t,l,o){return vr(l,t.child,null,o),t=Uv(l,l.pendingProps.children),t.flags|=2,l.memoizedState=null,t}function RT(t,l,o){t.lanes|=l;var i=t.alternate;i!==null&&(i.lanes|=l),Sv(t.return,l,o);}function Xb(t,l,o,i,c,f){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:i,tail:o,tailMode:c,treeForkCount:f}:(h.isBackwards=l,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=o,h.tailMode=c,h.treeForkCount=f);}function Zz(t,l,o){var i=l.pendingProps,c=i.revealOrder,f=i.tail;i=i.children;var h=cn.current,m=(h&2)!==0;if(m?(h=h&1|2,l.flags|=128):h&=1,Be(cn,h),Kn(t,l,i,o),i=fe?Q0:0,!m&&t!==null&&(t.flags&128)!==0)t:for(t=l.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&RT(t,o,l);else if(t.tag===19)RT(t,o,l);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===l)break t;for(;t.sibling===null;){if(t.return===null||t.return===l)break t;t=t.return;}t.sibling.return=t.return,t=t.sibling;}switch(c){case "forwards":for(o=l.child,c=null;o!==null;)t=o.alternate,t!==null&&Rm(t)===null&&(c=o),o=o.sibling;o=c,o===null?(c=l.child,l.child=null):(c=o.sibling,o.sibling=null),Xb(l,false,c,o,f,i);break;case "backwards":case "unstable_legacy-backwards":for(o=null,c=l.child,l.child=null;c!==null;){if(t=c.alternate,t!==null&&Rm(t)===null){l.child=c;break}t=c.sibling,c.sibling=o,o=c,c=t;}Xb(l,true,o,null,f,i);break;case "together":Xb(l,false,null,null,void 0,i);break;default:l.memoizedState=null;}return l.child}function Gi(t,l,o){if(t!==null&&(l.dependencies=t.dependencies),fc|=l.lanes,(o&l.childLanes)===0)if(t!==null){if(_f(t,l,o,false),(o&l.childLanes)===0)return null}else return null;if(t!==null&&l.child!==t.child)throw Error(J(153));if(l.child!==null){for(t=l.child,o=Yi(t,t.pendingProps),l.child=o,o.return=l;t.sibling!==null;)t=t.sibling,o=o.sibling=Yi(t,t.pendingProps),o.return=l;o.sibling=null;}return l.child}function wS(t,l){return (t.lanes&l)!==0?true:(t=t.dependencies,!!(t!==null&&km(t)))}function i9(t,l,o){switch(l.tag){case 3:Em(l,l.stateNode.containerInfo),Xu(l,Sn,t.memoizedState.cache),xr();break;case 27:case 5:cv(l);break;case 4:Em(l,l.stateNode.containerInfo);break;case 10:Xu(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,zv(l),null;break;case 13:var i=l.memoizedState;if(i!==null)return i.dehydrated!==null?(Gu(l),l.flags|=128,null):(o&l.child.childLanes)!==0?Vz(t,l,o):(Gu(l),t=Gi(t,l,o),t!==null?t.sibling:null);Gu(l);break;case 19:var c=(t.flags&128)!==0;if(i=(o&l.childLanes)!==0,i||(_f(t,l,o,false),i=(o&l.childLanes)!==0),c){if(i)return Zz(t,l,o);l.flags|=128;}if(c=l.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Be(cn,cn.current),i)break;return null;case 22:return l.lanes=0,Qz(t,l,o,l.pendingProps);case 24:Xu(l,Sn,t.memoizedState.cache);}return Gi(t,l,o)}function Jz(t,l,o){if(t!==null)if(t.memoizedProps!==l.pendingProps)En=true;else {if(!wS(t,o)&&(l.flags&128)===0)return En=false,i9(t,l,o);En=(t.flags&131072)!==0;}else En=false,fe&&(l.flags&1048576)!==0&&IA(l,Q0,l.index);switch(l.lanes=0,l.tag){case 16:t:{var i=l.pendingProps;if(t=fr(l.elementType),l.type=t,typeof t=="function")fS(t)?(i=Er(t,i),l.tag=1,l=CT(null,l,t,i,o)):(l.tag=0,l=wv(null,l,t,i,o));else {if(t!=null){var c=t.$$typeof;if(c===Fv){l.tag=11,l=TT(null,l,t,i,o);break t}else if(c===Iv){l.tag=14,l=AT(null,l,t,i,o);break t}}throw l=iv(t)||t,Error(J(306,l,""))}}return l;case 0:return wv(t,l,l.type,l.pendingProps,o);case 1:return i=l.type,c=Er(i,l.pendingProps),CT(t,l,i,c,o);case 3:t:{if(Em(l,l.stateNode.containerInfo),t===null)throw Error(J(387));i=l.pendingProps;var f=l.memoizedState;c=f.element,_v(t,l),N0(l,i,null,o);var h=l.memoizedState;if(i=h.cache,Xu(l,Sn,i),i!==f.cache&&Ev(l,[Sn],o,true),U0(),i=h.element,f.isDehydrated)if(f={element:i,isDehydrated:false,cache:h.cache},l.updateQueue.baseState=f,l.memoizedState=f,l.flags&256){l=OT(t,l,i,o);break t}else if(i!==c){c=Qa(Error(J(424)),l),V0(c),l=OT(t,l,i,o);break t}else for(t=l.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ge=Ja(t.firstChild),In=l,fe=true,tc=null,Va=true,o=az(l,null,i,o),l.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else {if(xr(),i===c){l=Gi(t,l,o);break t}Kn(t,l,i,o);}l=l.child;}return l;case 26:return mm(t,l),t===null?(o=tA(l.type,null,l.pendingProps,null))?l.memoizedState=o:fe||(o=l.type,t=l.pendingProps,i=Xm(Pu.current).createElement(o),i[Fn]=l,i[jl]=t,tl(i,o,t),Bn(i),l.stateNode=i):l.memoizedState=tA(l.type,t.memoizedProps,l.pendingProps,t.memoizedState),null;case 27:return cv(l),t===null&&fe&&(i=l.stateNode=YD(l.type,l.pendingProps,Pu.current),In=l,Va=true,c=Ge,hc(l.type)?(Zv=c,Ge=Ja(i.firstChild)):Ge=c),Kn(t,l,l.pendingProps.children,o),mm(t,l),t===null&&(l.flags|=4194304),l.child;case 5:return t===null&&fe&&((c=i=Ge)&&(i=U9(i,l.type,l.pendingProps,Va),i!==null?(l.stateNode=i,In=l,Ge=Ja(i.firstChild),Va=false,c=true):c=false),c||rc(l)),cv(l),c=l.type,f=l.pendingProps,h=t!==null?t.memoizedProps:null,i=f.children,Xv(c,f)?i=null:h!==null&&Xv(c,h)&&(l.flags|=32),l.memoizedState!==null&&(c=vS(t,l,Fw,null,null,o),P0._currentValue=c),mm(t,l),Kn(t,l,i,o),l.child;case 6:return t===null&&fe&&((t=o=Ge)&&(o=N9(o,l.pendingProps,Va),o!==null?(l.stateNode=o,In=l,Ge=null,t=true):t=false),t||rc(l)),null;case 13:return Vz(t,l,o);case 4:return Em(l,l.stateNode.containerInfo),i=l.pendingProps,t===null?l.child=vr(l,null,i,o):Kn(t,l,i,o),l.child;case 11:return TT(t,l,l.type,l.pendingProps,o);case 7:return Kn(t,l,l.pendingProps,o),l.child;case 8:return Kn(t,l,l.pendingProps.children,o),l.child;case 12:return Kn(t,l,l.pendingProps.children,o),l.child;case 10:return i=l.pendingProps,Xu(l,l.type,i.value),Kn(t,l,i.children,o),l.child;case 9:return c=l.type._context,i=l.pendingProps.children,br(l),c=Pn(c),i=i(c),l.flags|=1,Kn(t,l,i,o),l.child;case 14:return AT(t,l,l.type,l.pendingProps,o);case 15:return Gz(t,l,l.type,l.pendingProps,o);case 19:return Zz(t,l,o);case 31:return o9(t,l,o);case 22:return Qz(t,l,o,l.pendingProps);case 24:return br(l),i=Pn(Sn),t===null?(c=mS(),c===null&&(c=Ne,f=yS(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=o),c=f),l.memoizedState={parent:i,cache:c},gS(l),Xu(l,Sn,c)):((t.lanes&o)!==0&&(_v(t,l),N0(l,null,null,o),U0()),c=t.memoizedState,f=l.memoizedState,c.parent!==i?(c={parent:i,cache:i},l.memoizedState=c,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=c),Xu(l,Sn,i)):(i=f.cache,Xu(l,Sn,i),i!==c.cache&&Ev(l,[Sn],o,true))),Kn(t,l,l.pendingProps.children,o),l.child;case 29:throw l.pendingProps}throw Error(J(156,l.tag))}function Ci(t){t.flags|=4;}function Gb(t,l,o,i,c){if((l=(t.mode&32)!==0)&&(l=false),l){if(t.flags|=16777216,(c&335544128)===c)if(t.stateNode.complete)t.flags|=8192;else if(bD())t.flags|=8192;else throw pr=Cm,pS}else t.flags&=-16777217;}function wT(t,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!jD(l))if(bD())t.flags|=8192;else throw pr=Cm,pS}function P1(t,l){l!==null&&(t.flags|=4),t.flags&16384&&(l=t.tag!==22?vA():536870912,t.lanes|=l,gf|=l);}function v0(t,l){if(!fe)switch(t.tailMode){case "hidden":l=t.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?t.tail=null:o.sibling=null;break;case "collapsed":o=t.tail;for(var i=null;o!==null;)o.alternate!==null&&(i=o),o=o.sibling;i===null?l||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null;}}function Xe(t){var l=t.alternate!==null&&t.alternate.child===t.child,o=0,i=0;if(l)for(var c=t.child;c!==null;)o|=c.lanes|c.childLanes,i|=c.subtreeFlags&65011712,i|=c.flags&65011712,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)o|=c.lanes|c.childLanes,i|=c.subtreeFlags,i|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=i,t.childLanes=o,l}function u9(t,l,o){var i=l.pendingProps;switch(hS(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(l),null;case 1:return Xe(l),null;case 3:return o=l.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),l.memoizedState.cache!==i&&(l.flags|=2048),Bi(Sn),ff(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(Ws(l)?Ci(l):t===null||t.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,$b())),Xe(l),null;case 26:var c=l.type,f=l.memoizedState;return t===null?(Ci(l),f!==null?(Xe(l),wT(l,f)):(Xe(l),Gb(l,c,null,i,o))):f?f!==t.memoizedState?(Ci(l),Xe(l),wT(l,f)):(Xe(l),l.flags&=-16777217):(t=t.memoizedProps,t!==i&&Ci(l),Xe(l),Gb(l,c,t,i,o)),null;case 27:if(Mm(l),o=Pu.current,c=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==i&&Ci(l);else {if(!i){if(l.stateNode===null)throw Error(J(166));return Xe(l),null}t=Ko.current,Ws(l)?cT(l):(t=YD(c,i,o),l.stateNode=t,Ci(l));}return Xe(l),null;case 5:if(Mm(l),c=l.type,t!==null&&l.stateNode!=null)t.memoizedProps!==i&&Ci(l);else {if(!i){if(l.stateNode===null)throw Error(J(166));return Xe(l),null}if(f=Ko.current,Ws(l))cT(l);else {var h=Xm(Pu.current);switch(f){case 1:f=h.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:f=h.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case "svg":f=h.createElementNS("http://www.w3.org/2000/svg",c);break;case "math":f=h.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case "script":f=h.createElement("div"),f.innerHTML="<script></script>",f=f.removeChild(f.firstChild);break;case "select":f=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?f.multiple=true:i.size&&(f.size=i.size);break;default:f=typeof i.is=="string"?h.createElement(c,{is:i.is}):h.createElement(c);}}f[Fn]=l,f[jl]=i;t:for(h=l.child;h!==null;){if(h.tag===5||h.tag===6)f.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===l)break t;for(;h.sibling===null;){if(h.return===null||h.return===l)break t;h=h.return;}h.sibling.return=h.return,h=h.sibling;}l.stateNode=f;t:switch(tl(f,c,i),c){case "button":case "input":case "select":case "textarea":i=!!i.autoFocus;break t;case "img":i=true;break t;default:i=false;}i&&Ci(l);}}return Xe(l),Gb(l,l.type,t===null?null:t.memoizedProps,l.pendingProps,o),null;case 6:if(t&&l.stateNode!=null)t.memoizedProps!==i&&Ci(l);else {if(typeof i!="string"&&l.stateNode===null)throw Error(J(166));if(t=Pu.current,Ws(l)){if(t=l.stateNode,o=l.memoizedProps,i=null,c=In,c!==null)switch(c.tag){case 27:case 5:i=c.memoizedProps;}t[Fn]=l,t=!!(t.nodeValue===o||i!==null&&i.suppressHydrationWarning===true||ND(t.nodeValue,o)),t||rc(l,true);}else t=Xm(t).createTextNode(i),t[Fn]=l,l.stateNode=t;}return Xe(l),null;case 31:if(o=l.memoizedState,t===null||t.memoizedState!==null){if(i=Ws(l),o!==null){if(t===null){if(!i)throw Error(J(318));if(t=l.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(J(557));t[Fn]=l;}else xr(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Xe(l),t=false;}else o=$b(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),t=true;if(!t)return l.flags&256?(fa(l),l):(fa(l),null);if((l.flags&128)!==0)throw Error(J(558))}return Xe(l),null;case 13:if(i=l.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(c=Ws(l),i!==null&&i.dehydrated!==null){if(t===null){if(!c)throw Error(J(318));if(c=l.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(J(317));c[Fn]=l;}else xr(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Xe(l),c=false;}else c=$b(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=c),c=true;if(!c)return l.flags&256?(fa(l),l):(fa(l),null)}return fa(l),(l.flags&128)!==0?(l.lanes=o,l):(o=i!==null,t=t!==null&&t.memoizedState!==null,o&&(i=l.child,c=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(c=i.alternate.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==c&&(i.flags|=2048)),o!==t&&o&&(l.child.flags|=8192),P1(l,l.updateQueue),Xe(l),null);case 4:return ff(),t===null&&BS(l.stateNode.containerInfo),Xe(l),null;case 10:return Bi(l.type),Xe(l),null;case 19:if(Wn(cn),i=l.memoizedState,i===null)return Xe(l),null;if(c=(l.flags&128)!==0,f=i.rendering,f===null)if(c)v0(i,false);else {if(an!==0||t!==null&&(t.flags&128)!==0)for(t=l.child;t!==null;){if(f=Rm(t),f!==null){for(l.flags|=128,v0(i,false),t=f.updateQueue,l.updateQueue=t,P1(l,t),l.subtreeFlags=0,t=o,o=l.child;o!==null;)KA(o,t),o=o.sibling;return Be(cn,cn.current&1|2),fe&&Ui(l,i.treeForkCount),l.child}t=t.sibling;}i.tail!==null&&ya()>Lm&&(l.flags|=128,c=true,v0(i,false),l.lanes=4194304);}else {if(!c)if(t=Rm(f),t!==null){if(l.flags|=128,c=true,t=t.updateQueue,l.updateQueue=t,P1(l,t),v0(i,true),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!fe)return Xe(l),null}else 2*ya()-i.renderingStartTime>Lm&&o!==536870912&&(l.flags|=128,c=true,v0(i,false),l.lanes=4194304);i.isBackwards?(f.sibling=l.child,l.child=f):(t=i.last,t!==null?t.sibling=f:l.child=f,i.last=f);}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ya(),t.sibling=null,o=cn.current,Be(cn,c?o&1|2:o&1),fe&&Ui(l,i.treeForkCount),t):(Xe(l),null);case 22:case 23:return fa(l),xS(),i=l.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(l.flags|=8192):i&&(l.flags|=8192),i?(o&536870912)!==0&&(l.flags&128)===0&&(Xe(l),l.subtreeFlags&6&&(l.flags|=8192)):Xe(l),o=l.updateQueue,o!==null&&P1(l,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==o&&(l.flags|=2048),t!==null&&Wn(mr),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),l.memoizedState.cache!==o&&(l.flags|=2048),Bi(Sn),Xe(l),null;case 25:return null;case 30:return null}throw Error(J(156,l.tag))}function c9(t,l){switch(hS(l),l.tag){case 1:return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 3:return Bi(Sn),ff(),t=l.flags,(t&65536)!==0&&(t&128)===0?(l.flags=t&-65537|128,l):null;case 26:case 27:case 5:return Mm(l),null;case 31:if(l.memoizedState!==null){if(fa(l),l.alternate===null)throw Error(J(340));xr();}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 13:if(fa(l),t=l.memoizedState,t!==null&&t.dehydrated!==null){if(l.alternate===null)throw Error(J(340));xr();}return t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 19:return Wn(cn),null;case 4:return ff(),null;case 10:return Bi(l.type),null;case 22:case 23:return fa(l),xS(),t!==null&&Wn(mr),t=l.flags,t&65536?(l.flags=t&-65537|128,l):null;case 24:return Bi(Sn),null;case 25:return null;default:return null}}function Kz(t,l){switch(hS(l),l.tag){case 3:Bi(Sn),ff();break;case 26:case 27:case 5:Mm(l);break;case 4:ff();break;case 31:l.memoizedState!==null&&fa(l);break;case 13:fa(l);break;case 19:Wn(cn);break;case 10:Bi(l.type);break;case 22:case 23:fa(l),xS(),t!==null&&Wn(mr);break;case 24:Bi(Sn);}}function sh(t,l){try{var o=l.updateQueue,i=o!==null?o.lastEffect:null;if(i!==null){var c=i.next;o=c;do{if((o.tag&t)===t){i=void 0;var f=o.create,h=o.inst;i=f(),h.destroy=i;}o=o.next;}while(o!==c)}}catch(m){Me(l,l.return,m);}}function sc(t,l,o){try{var i=l.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next;i=f;do{if((i.tag&t)===t){var h=i.inst,m=h.destroy;if(m!==void 0){h.destroy=void 0,c=l;var x=o,E=m;try{E();}catch(T){Me(c,x,T);}}}i=i.next;}while(i!==f)}}catch(T){Me(l,l.return,T);}}function Fz(t){var l=t.updateQueue;if(l!==null){var o=t.stateNode;try{iz(l,o);}catch(i){Me(t,t.return,i);}}}function Iz(t,l,o){o.props=Er(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount();}catch(i){Me(t,l,i);}}function H0(t,l){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode;}typeof o=="function"?t.refCleanup=o(i):o.current=i;}}catch(c){Me(t,l,c);}}function Jo(t,l){var o=t.ref,i=t.refCleanup;if(o!==null)if(typeof i=="function")try{i();}catch(c){Me(t,l,c);}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null);}else if(typeof o=="function")try{o(null);}catch(c){Me(t,l,c);}else o.current=null;}function Pz(t){var l=t.type,o=t.memoizedProps,i=t.stateNode;try{t:switch(l){case "button":case "input":case "select":case "textarea":o.autoFocus&&i.focus();break t;case "img":o.src?i.src=o.src:o.srcSet&&(i.srcset=o.srcSet);}}catch(c){Me(t,t.return,c);}}function Qb(t,l,o){try{var i=t.stateNode;D9(i,t.type,o,l),i[jl]=l;}catch(c){Me(t,t.return,c);}}function tD(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&hc(t.type)||t.tag===4}function Vb(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||tD(t.return))return null;t=t.return;}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&hc(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child;}if(!(t.flags&2))return t.stateNode}}function Nv(t,l,o){var i=t.tag;if(i===5||i===6)t=t.stateNode,l?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,l):(l=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,l.appendChild(t),o=o._reactRootContainer,o!=null||l.onclick!==null||(l.onclick=Hi));else if(i!==4&&(i===27&&hc(t.type)&&(o=t.stateNode,l=null),t=t.child,t!==null))for(Nv(t,l,o),t=t.sibling;t!==null;)Nv(t,l,o),t=t.sibling;}function Hm(t,l,o){var i=t.tag;if(i===5||i===6)t=t.stateNode,l?o.insertBefore(t,l):o.appendChild(t);else if(i!==4&&(i===27&&hc(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(Hm(t,l,o),t=t.sibling;t!==null;)Hm(t,l,o),t=t.sibling;}function eD(t){var l=t.stateNode,o=t.memoizedProps;try{for(var i=t.type,c=l.attributes;c.length;)l.removeAttributeNode(c[0]);tl(l,i,o),l[Fn]=t,l[jl]=o;}catch(f){Me(t,t.return,f);}}var Ni=false,vn=false,Zb=false,UT=typeof WeakSet=="function"?WeakSet:Set,Yn=null;function r9(t,l){if(t=t.containerInfo,jv=Zm,t=jA(t),cS(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else t:{o=(o=t.ownerDocument)&&o.defaultView||window;var i=o.getSelection&&o.getSelection();if(i&&i.rangeCount!==0){o=i.anchorNode;var c=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{o.nodeType,f.nodeType;}catch{o=null;break t}var h=0,m=-1,x=-1,E=0,T=0,M=t,v=null;e:for(;;){for(var _;M!==o||c!==0&&M.nodeType!==3||(m=h+c),M!==f||i!==0&&M.nodeType!==3||(x=h+i),M.nodeType===3&&(h+=M.nodeValue.length),(_=M.firstChild)!==null;)v=M,M=_;for(;;){if(M===t)break e;if(v===o&&++E===c&&(m=h),v===f&&++T===i&&(x=h),(_=M.nextSibling)!==null)break;M=v,v=M.parentNode;}M=_;}o=m===-1||x===-1?null:{start:m,end:x};}else o=null;}o=o||{start:0,end:0};}else o=null;for(qv={focusedElem:t,selectionRange:o},Zm=false,Yn=l;Yn!==null;)if(l=Yn,t=l.child,(l.subtreeFlags&1028)!==0&&t!==null)t.return=l,Yn=t;else for(;Yn!==null;){switch(l=Yn,f=l.alternate,t=l.flags,l.tag){case 0:if((t&4)!==0&&(t=l.updateQueue,t=t!==null?t.events:null,t!==null))for(o=0;o<t.length;o++)c=t[o],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&f!==null){t=void 0,o=l,c=f.memoizedProps,f=f.memoizedState,i=o.stateNode;try{var $=Er(o.type,c);t=i.getSnapshotBeforeUpdate($,f),i.__reactInternalSnapshotBeforeUpdate=t;}catch(X){Me(o,o.return,X);}}break;case 3:if((t&1024)!==0){if(t=l.stateNode.containerInfo,o=t.nodeType,o===9)Gv(t);else if(o===1)switch(t.nodeName){case "HEAD":case "HTML":case "BODY":Gv(t);break;default:t.textContent="";}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(J(163))}if(t=l.sibling,t!==null){t.return=l.return,Yn=t;break}Yn=l.return;}}function nD(t,l,o){var i=o.flags;switch(o.tag){case 0:case 11:case 15:Ri(t,o),i&4&&sh(5,o);break;case 1:if(Ri(t,o),i&4)if(t=o.stateNode,l===null)try{t.componentDidMount();}catch(h){Me(o,o.return,h);}else {var c=Er(o.type,l.memoizedProps);l=l.memoizedState;try{t.componentDidUpdate(c,l,t.__reactInternalSnapshotBeforeUpdate);}catch(h){Me(o,o.return,h);}}i&64&&Fz(o),i&512&&H0(o,o.return);break;case 3:if(Ri(t,o),i&64&&(t=o.updateQueue,t!==null)){if(l=null,o.child!==null)switch(o.child.tag){case 27:case 5:l=o.child.stateNode;break;case 1:l=o.child.stateNode;}try{iz(t,l);}catch(h){Me(o,o.return,h);}}break;case 27:l===null&&i&4&&eD(o);case 26:case 5:Ri(t,o),l===null&&i&4&&Pz(o),i&512&&H0(o,o.return);break;case 12:Ri(t,o);break;case 31:Ri(t,o),i&4&&oD(t,o);break;case 13:Ri(t,o),i&4&&iD(t,o),i&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=x9.bind(null,o),$9(t,o))));break;case 22:if(i=o.memoizedState!==null||Ni,!i){l=l!==null&&l.memoizedState!==null||vn,c=Ni;var f=vn;Ni=i,(vn=l)&&!f?wi(t,o,(o.subtreeFlags&8772)!==0):Ri(t,o),Ni=c,vn=f;}break;case 30:break;default:Ri(t,o);}}function lD(t){var l=t.alternate;l!==null&&(t.alternate=null,lD(l)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(l=t.stateNode,l!==null&&nS(l)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null;}var Ie=null,Yl=false;function Oi(t,l,o){for(o=o.child;o!==null;)aD(t,l,o),o=o.sibling;}function aD(t,l,o){if(ma&&typeof ma.onCommitFiberUnmount=="function")try{ma.onCommitFiberUnmount(lh,o);}catch{}switch(o.tag){case 26:vn||Jo(o,l),Oi(t,l,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:vn||Jo(o,l);var i=Ie,c=Yl;hc(o.type)&&(Ie=o.stateNode,Yl=false),Oi(t,l,o),W0(o.stateNode),Ie=i,Yl=c;break;case 5:vn||Jo(o,l);case 6:if(i=Ie,c=Yl,Ie=null,Oi(t,l,o),Ie=i,Yl=c,Ie!==null)if(Yl)try{(Ie.nodeType===9?Ie.body:Ie.nodeName==="HTML"?Ie.ownerDocument.body:Ie).removeChild(o.stateNode);}catch(f){Me(o,l,f);}else try{Ie.removeChild(o.stateNode);}catch(f){Me(o,l,f);}break;case 18:Ie!==null&&(Yl?(t=Ie,JT(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),Sf(t)):JT(Ie,o.stateNode));break;case 4:i=Ie,c=Yl,Ie=o.stateNode.containerInfo,Yl=true,Oi(t,l,o),Ie=i,Yl=c;break;case 0:case 11:case 14:case 15:sc(2,o,l),vn||sc(4,o,l),Oi(t,l,o);break;case 1:vn||(Jo(o,l),i=o.stateNode,typeof i.componentWillUnmount=="function"&&Iz(o,l,i)),Oi(t,l,o);break;case 21:Oi(t,l,o);break;case 22:vn=(i=vn)||o.memoizedState!==null,Oi(t,l,o),vn=i;break;default:Oi(t,l,o);}}function oD(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Sf(t);}catch(o){Me(l,l.return,o);}}}function iD(t,l){if(l.memoizedState===null&&(t=l.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Sf(t);}catch(o){Me(l,l.return,o);}}function s9(t){switch(t.tag){case 31:case 13:case 19:var l=t.stateNode;return l===null&&(l=t.stateNode=new UT),l;case 22:return t=t.stateNode,l=t._retryCache,l===null&&(l=t._retryCache=new UT),l;default:throw Error(J(435,t.tag))}}function tm(t,l){var o=s9(t);l.forEach(function(i){if(!o.has(i)){o.add(i);var c=b9.bind(null,t,i);i.then(c,c);}});}function Hl(t,l){var o=l.deletions;if(o!==null)for(var i=0;i<o.length;i++){var c=o[i],f=t,h=l,m=h;t:for(;m!==null;){switch(m.tag){case 27:if(hc(m.type)){Ie=m.stateNode,Yl=false;break t}break;case 5:Ie=m.stateNode,Yl=false;break t;case 3:case 4:Ie=m.stateNode.containerInfo,Yl=true;break t}m=m.return;}if(Ie===null)throw Error(J(160));aD(f,h,c),Ie=null,Yl=false,f=c.alternate,f!==null&&(f.return=null),c.return=null;}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)uD(l,t),l=l.sibling;}var fo=null;function uD(t,l){var o=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Hl(l,t),Ll(t),i&4&&(sc(3,t,t.return),sh(3,t),sc(5,t,t.return));break;case 1:Hl(l,t),Ll(t),i&512&&(vn||o===null||Jo(o,o.return)),i&64&&Ni&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?i:o.concat(i))));break;case 26:var c=fo;if(Hl(l,t),Ll(t),i&512&&(vn||o===null||Jo(o,o.return)),i&4){var f=o!==null?o.memoizedState:null;if(i=t.memoizedState,o===null)if(i===null)if(t.stateNode===null){t:{i=t.type,o=t.memoizedProps,c=c.ownerDocument||c;e:switch(i){case "title":f=c.getElementsByTagName("title")[0],(!f||f[ih]||f[Fn]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(i),c.head.insertBefore(f,c.querySelector("head > title"))),tl(f,i,o),f[Fn]=t,Bn(f),i=f;break t;case "link":var h=nA("link","href",c).get(i+(o.href||""));if(h){for(var m=0;m<h.length;m++)if(f=h[m],f.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&f.getAttribute("rel")===(o.rel==null?null:o.rel)&&f.getAttribute("title")===(o.title==null?null:o.title)&&f.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){h.splice(m,1);break e}}f=c.createElement(i),tl(f,i,o),c.head.appendChild(f);break;case "meta":if(h=nA("meta","content",c).get(i+(o.content||""))){for(m=0;m<h.length;m++)if(f=h[m],f.getAttribute("content")===(o.content==null?null:""+o.content)&&f.getAttribute("name")===(o.name==null?null:o.name)&&f.getAttribute("property")===(o.property==null?null:o.property)&&f.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&f.getAttribute("charset")===(o.charSet==null?null:o.charSet)){h.splice(m,1);break e}}f=c.createElement(i),tl(f,i,o),c.head.appendChild(f);break;default:throw Error(J(468,i))}f[Fn]=t,Bn(f),i=f;}t.stateNode=i;}else lA(c,t.type,t.stateNode);else t.stateNode=eA(c,i,t.memoizedProps);else f!==i?(f===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):f.count--,i===null?lA(c,t.type,t.stateNode):eA(c,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Qb(t,t.memoizedProps,o.memoizedProps);}break;case 27:Hl(l,t),Ll(t),i&512&&(vn||o===null||Jo(o,o.return)),o!==null&&i&4&&Qb(t,t.memoizedProps,o.memoizedProps);break;case 5:if(Hl(l,t),Ll(t),i&512&&(vn||o===null||Jo(o,o.return)),t.flags&32){c=t.stateNode;try{hf(c,"");}catch($){Me(t,t.return,$);}}i&4&&t.stateNode!=null&&(c=t.memoizedProps,Qb(t,c,o!==null?o.memoizedProps:c)),i&1024&&(Zb=true);break;case 6:if(Hl(l,t),Ll(t),i&4){if(t.stateNode===null)throw Error(J(162));i=t.memoizedProps,o=t.stateNode;try{o.nodeValue=i;}catch($){Me(t,t.return,$);}}break;case 3:if(xm=null,c=fo,fo=Gm(l.containerInfo),Hl(l,t),fo=c,Ll(t),i&4&&o!==null&&o.memoizedState.isDehydrated)try{Sf(l.containerInfo);}catch($){Me(t,t.return,$);}Zb&&(Zb=false,cD(t));break;case 4:i=fo,fo=Gm(t.stateNode.containerInfo),Hl(l,t),Ll(t),fo=i;break;case 12:Hl(l,t),Ll(t);break;case 31:Hl(l,t),Ll(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,tm(t,i)));break;case 13:Hl(l,t),Ll(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(up=ya()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,tm(t,i)));break;case 22:c=t.memoizedState!==null;var x=o!==null&&o.memoizedState!==null,E=Ni,T=vn;if(Ni=E||c,vn=T||x,Hl(l,t),vn=T,Ni=E,Ll(t),i&8192)t:for(l=t.stateNode,l._visibility=c?l._visibility&-2:l._visibility|1,c&&(o===null||x||Ni||vn||dr(t)),o=null,l=t;;){if(l.tag===5||l.tag===26){if(o===null){x=o=l;try{if(f=x.stateNode,c)h=f.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else {m=x.stateNode;var M=x.memoizedProps.style,v=M!=null&&M.hasOwnProperty("display")?M.display:null;m.style.display=v==null||typeof v=="boolean"?"":(""+v).trim();}}catch($){Me(x,x.return,$);}}}else if(l.tag===6){if(o===null){x=l;try{x.stateNode.nodeValue=c?"":x.memoizedProps;}catch($){Me(x,x.return,$);}}}else if(l.tag===18){if(o===null){x=l;try{var _=x.stateNode;c?KT(_,!0):KT(x.stateNode,!1);}catch($){Me(x,x.return,$);}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===t)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break t;for(;l.sibling===null;){if(l.return===null||l.return===t)break t;o===l&&(o=null),l=l.return;}o===l&&(o=null),l.sibling.return=l.return,l=l.sibling;}i&4&&(i=t.updateQueue,i!==null&&(o=i.retryQueue,o!==null&&(i.retryQueue=null,tm(t,o))));break;case 19:Hl(l,t),Ll(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,tm(t,i)));break;case 30:break;case 21:break;default:Hl(l,t),Ll(t);}}function Ll(t){var l=t.flags;if(l&2){try{for(var o,i=t.return;i!==null;){if(tD(i)){o=i;break}i=i.return;}if(o==null)throw Error(J(160));switch(o.tag){case 27:var c=o.stateNode,f=Vb(t);Hm(t,f,c);break;case 5:var h=o.stateNode;o.flags&32&&(hf(h,""),o.flags&=-33);var m=Vb(t);Hm(t,m,h);break;case 3:case 4:var x=o.stateNode.containerInfo,E=Vb(t);Nv(t,E,x);break;default:throw Error(J(161))}}catch(T){Me(t,t.return,T);}t.flags&=-3;}l&4096&&(t.flags&=-4097);}function cD(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var l=t;cD(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),t=t.sibling;}}function Ri(t,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)nD(t,l.alternate,l),l=l.sibling;}function dr(t){for(t=t.child;t!==null;){var l=t;switch(l.tag){case 0:case 11:case 14:case 15:sc(4,l,l.return),dr(l);break;case 1:Jo(l,l.return);var o=l.stateNode;typeof o.componentWillUnmount=="function"&&Iz(l,l.return,o),dr(l);break;case 27:W0(l.stateNode);case 26:case 5:Jo(l,l.return),dr(l);break;case 22:l.memoizedState===null&&dr(l);break;case 30:dr(l);break;default:dr(l);}t=t.sibling;}}function wi(t,l,o){for(o=o&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var i=l.alternate,c=t,f=l,h=f.flags;switch(f.tag){case 0:case 11:case 15:wi(c,f,o),sh(4,f);break;case 1:if(wi(c,f,o),i=f,c=i.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount();}catch(E){Me(i,i.return,E);}if(i=f,c=i.updateQueue,c!==null){var m=i.stateNode;try{var x=c.shared.hiddenCallbacks;if(x!==null)for(c.shared.hiddenCallbacks=null,c=0;c<x.length;c++)oz(x[c],m);}catch(E){Me(i,i.return,E);}}o&&h&64&&Fz(f),H0(f,f.return);break;case 27:eD(f);case 26:case 5:wi(c,f,o),o&&i===null&&h&4&&Pz(f),H0(f,f.return);break;case 12:wi(c,f,o);break;case 31:wi(c,f,o),o&&h&4&&oD(c,f);break;case 13:wi(c,f,o),o&&h&4&&iD(c,f);break;case 22:f.memoizedState===null&&wi(c,f,o),H0(f,f.return);break;case 30:break;default:wi(c,f,o);}l=l.sibling;}}function US(t,l){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(t=l.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&ch(o));}function NS(t,l){t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&ch(t));}function so(t,l,o,i){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)rD(t,l,o,i),l=l.sibling;}function rD(t,l,o,i){var c=l.flags;switch(l.tag){case 0:case 11:case 15:so(t,l,o,i),c&2048&&sh(9,l);break;case 1:so(t,l,o,i);break;case 3:so(t,l,o,i),c&2048&&(t=null,l.alternate!==null&&(t=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==t&&(l.refCount++,t!=null&&ch(t)));break;case 12:if(c&2048){so(t,l,o,i),t=l.stateNode;try{var f=l.memoizedProps,h=f.id,m=f.onPostCommit;typeof m=="function"&&m(h,l.alternate===null?"mount":"update",t.passiveEffectDuration,-0);}catch(x){Me(l,l.return,x);}}else so(t,l,o,i);break;case 31:so(t,l,o,i);break;case 13:so(t,l,o,i);break;case 23:break;case 22:f=l.stateNode,h=l.alternate,l.memoizedState!==null?f._visibility&2?so(t,l,o,i):L0(t,l):f._visibility&2?so(t,l,o,i):(f._visibility|=2,qs(t,l,o,i,(l.subtreeFlags&10256)!==0||false)),c&2048&&US(h,l);break;case 24:so(t,l,o,i),c&2048&&NS(l.alternate,l);break;default:so(t,l,o,i);}}function qs(t,l,o,i,c){for(c=c&&((l.subtreeFlags&10256)!==0||false),l=l.child;l!==null;){var f=t,h=l,m=o,x=i,E=h.flags;switch(h.tag){case 0:case 11:case 15:qs(f,h,m,x,c),sh(8,h);break;case 23:break;case 22:var T=h.stateNode;h.memoizedState!==null?T._visibility&2?qs(f,h,m,x,c):L0(f,h):(T._visibility|=2,qs(f,h,m,x,c)),c&&E&2048&&US(h.alternate,h);break;case 24:qs(f,h,m,x,c),c&&E&2048&&NS(h.alternate,h);break;default:qs(f,h,m,x,c);}l=l.sibling;}}function L0(t,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var o=t,i=l,c=i.flags;switch(i.tag){case 22:L0(o,i),c&2048&&US(i.alternate,i);break;case 24:L0(o,i),c&2048&&NS(i.alternate,i);break;default:L0(o,i);}l=l.sibling;}}var D0=8192;function js(t,l,o){if(t.subtreeFlags&D0)for(t=t.child;t!==null;)sD(t,l,o),t=t.sibling;}function sD(t,l,o){switch(t.tag){case 26:js(t,l,o),t.flags&D0&&t.memoizedState!==null&&Z9(o,fo,t.memoizedState,t.memoizedProps);break;case 5:js(t,l,o);break;case 3:case 4:var i=fo;fo=Gm(t.stateNode.containerInfo),js(t,l,o),fo=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=D0,D0=16777216,js(t,l,o),D0=i):js(t,l,o));break;default:js(t,l,o);}}function fD(t){var l=t.alternate;if(l!==null&&(t=l.child,t!==null)){l.child=null;do l=t.sibling,t.sibling=null,t=l;while(t!==null)}}function S0(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var o=0;o<l.length;o++){var i=l[o];Yn=i,hD(i,t);}fD(t);}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dD(t),t=t.sibling;}function dD(t){switch(t.tag){case 0:case 11:case 15:S0(t),t.flags&2048&&sc(9,t,t.return);break;case 3:S0(t);break;case 12:S0(t);break;case 22:var l=t.stateNode;t.memoizedState!==null&&l._visibility&2&&(t.return===null||t.return.tag!==13)?(l._visibility&=-3,pm(t)):S0(t);break;default:S0(t);}}function pm(t){var l=t.deletions;if((t.flags&16)!==0){if(l!==null)for(var o=0;o<l.length;o++){var i=l[o];Yn=i,hD(i,t);}fD(t);}for(t=t.child;t!==null;){switch(l=t,l.tag){case 0:case 11:case 15:sc(8,l,l.return),pm(l);break;case 22:o=l.stateNode,o._visibility&2&&(o._visibility&=-3,pm(l));break;default:pm(l);}t=t.sibling;}}function hD(t,l){for(;Yn!==null;){var o=Yn;switch(o.tag){case 0:case 11:case 15:sc(8,o,l);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var i=o.memoizedState.cachePool.pool;i!=null&&i.refCount++;}break;case 24:ch(o.memoizedState.cache);}if(i=o.child,i!==null)i.return=o,Yn=i;else t:for(o=t;Yn!==null;){i=Yn;var c=i.sibling,f=i.return;if(lD(i),i===o){Yn=null;break t}if(c!==null){c.return=f,Yn=c;break t}Yn=f;}}}var f9={getCacheForType:function(t){var l=Pn(Sn),o=l.data.get(t);return o===void 0&&(o=t(),l.data.set(t,o)),o},cacheSignal:function(){return Pn(Sn).controller.signal}},d9=typeof WeakMap=="function"?WeakMap:Map,ge=0,Ne=null,ue=null,ce=0,Ee=0,sa=null,Ku=false,Af=false,$S=false,Qi=0,an=0,fc=0,gr=0,HS=0,ha=0,gf=0,Y0=null,Bl=null,$v=false,up=0,yD=0,Lm=1/0,Ym=null,lc=null,zn=0,ac=null,xf=null,Wi=0,Hv=0,Lv=null,mD=null,B0=0,Yv=null;function ga(){return (ge&2)!==0&&ce!==0?ce&-ce:Ut.T!==null?YS():_A()}function pD(){if(ha===0)if((ce&536870912)===0||fe){var t=X1;X1<<=1,(X1&3932160)===0&&(X1=262144),ha=t;}else ha=536870912;return t=ba.current,t!==null&&(t.flags|=32),ha}function Wl(t,l,o){(t===Ne&&(Ee===2||Ee===9)||t.cancelPendingCommit!==null)&&(bf(t,0),Fu(t,ce,ha,false)),oh(t,o),((ge&2)===0||t!==Ne)&&(t===Ne&&((ge&2)===0&&(gr|=o),an===4&&Fu(t,ce,ha,false)),Io(t));}function gD(t,l,o){if((ge&6)!==0)throw Error(J(327));var i=!o&&(l&127)===0&&(l&t.expiredLanes)===0||ah(t,l),c=i?m9(t,l):Jb(t,l,true),f=i;do{if(c===0){Af&&!i&&Fu(t,l,0,false);break}else {if(o=t.current.alternate,f&&!h9(o)){c=Jb(t,l,false),f=false;continue}if(c===2){if(f=l,t.errorRecoveryDisabledLanes&f)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){l=h;t:{var m=t;c=Y0;var x=m.current.memoizedState.isDehydrated;if(x&&(bf(m,h).flags|=256),h=Jb(m,h,false),h!==2){if($S&&!x){m.errorRecoveryDisabledLanes|=f,gr|=f,c=4;break t}f=Bl,Bl=c,f!==null&&(Bl===null?Bl=f:Bl.push.apply(Bl,f));}c=h;}if(f=false,c!==2)continue}}if(c===1){bf(t,0),Fu(t,l,0,true);break}t:{switch(i=t,f=c,f){case 0:case 1:throw Error(J(345));case 4:if((l&4194048)!==l)break;case 6:Fu(i,l,ha,!Ku);break t;case 2:Bl=null;break;case 3:case 5:break;default:throw Error(J(329))}if((l&62914560)===l&&(c=up+300-ya(),10<c)){if(Fu(i,l,ha,!Ku),Km(i,0,true)!==0)break t;Wi=l,i.timeoutHandle=HD(NT.bind(null,i,o,Bl,Ym,$v,l,ha,gr,gf,Ku,f,"Throttled",-0,0),c);break t}NT(i,o,Bl,Ym,$v,l,ha,gr,gf,Ku,f,null,-0,0);}}break}while(true);Io(t);}function NT(t,l,o,i,c,f,h,m,x,E,T,M,v,_){if(t.timeoutHandle=-1,M=l.subtreeFlags,M&8192||(M&16785408)===16785408){M={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:Hi},sD(l,f,M);var $=(f&62914560)===f?up-ya():(f&4194048)===f?yD-ya():0;if($=J9(M,$),$!==null){Wi=f,t.cancelPendingCommit=$(HT.bind(null,t,l,f,o,i,c,h,m,x,T,M,null,v,_)),Fu(t,f,h,!E);return}}HT(t,l,f,o,i,c,h,m,x);}function h9(t){for(var l=t;;){var o=l.tag;if((o===0||o===11||o===15)&&l.flags&16384&&(o=l.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var i=0;i<o.length;i++){var c=o[i],f=c.getSnapshot;c=c.value;try{if(!xa(f(),c))return !1}catch{return false}}if(o=l.child,l.subtreeFlags&16384&&o!==null)o.return=l,l=o;else {if(l===t)break;for(;l.sibling===null;){if(l.return===null||l.return===t)return true;l=l.return;}l.sibling.return=l.return,l=l.sibling;}}return true}function Fu(t,l,o,i){l&=~HS,l&=~gr,t.suspendedLanes|=l,t.pingedLanes&=~l,i&&(t.warmLanes|=l),i=t.expirationTimes;for(var c=l;0<c;){var f=31-pa(c),h=1<<f;i[f]=-1,c&=~h;}o!==0&&SA(t,o,l);}function cp(){return (ge&6)===0?(fh(0),false):true}function LS(){if(ue!==null){if(Ee===0)var t=ue.return;else t=ue,Li=zr=null,MS(t),cf=null,Z0=0,t=ue;for(;t!==null;)Kz(t.alternate,t),t=t.return;ue=null;}}function bf(t,l){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,O9(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),Wi=0,LS(),Ne=t,ue=o=Yi(t.current,null),ce=l,Ee=0,sa=null,Ku=false,Af=ah(t,l),$S=false,gf=ha=HS=gr=fc=an=0,Bl=Y0=null,$v=false,(l&8)!==0&&(l|=l&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=l;0<i;){var c=31-pa(i),f=1<<c;l|=t[c],i&=~f;}return Qi=l,tp(),o}function xD(t,l){Qt=null,Ut.H=K0,l===Tf||l===np?(l=hT(),Ee=3):l===pS?(l=hT(),Ee=4):Ee=l===RS?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,sa=l,ue===null&&(an=1,Nm(t,Qa(l,t.current)));}function bD(){var t=ba.current;return t===null?true:(ce&4194048)===ce?Za===null:(ce&62914560)===ce||(ce&536870912)!==0?t===Za:false}function vD(){var t=Ut.H;return Ut.H=K0,t===null?K0:t}function SD(){var t=Ut.A;return Ut.A=f9,t}function Bm(){an=4,Ku||(ce&4194048)!==ce&&ba.current!==null||(Af=true),(fc&134217727)===0&&(gr&134217727)===0||Ne===null||Fu(Ne,ce,ha,false);}function Jb(t,l,o){var i=ge;ge|=2;var c=vD(),f=SD();(Ne!==t||ce!==l)&&(Ym=null,bf(t,l)),l=false;var h=an;t:do try{if(Ee!==0&&ue!==null){var m=ue,x=sa;switch(Ee){case 8:LS(),h=6;break t;case 3:case 2:case 9:case 6:ba.current===null&&(l=!0);var E=Ee;if(Ee=0,sa=null,nf(t,m,x,E),o&&Af){h=0;break t}break;default:E=Ee,Ee=0,sa=null,nf(t,m,x,E);}}y9(),h=an;break}catch(T){xD(t,T);}while(true);return l&&t.shellSuspendCounter++,Li=zr=null,ge=i,Ut.H=c,Ut.A=f,ue===null&&(Ne=null,ce=0,tp()),h}function y9(){for(;ue!==null;)ED(ue);}function m9(t,l){var o=ge;ge|=2;var i=vD(),c=SD();Ne!==t||ce!==l?(Ym=null,Lm=ya()+500,bf(t,l)):Af=ah(t,l);t:do try{if(Ee!==0&&ue!==null){l=ue;var f=sa;e:switch(Ee){case 1:Ee=0,sa=null,nf(t,l,f,1);break;case 2:case 9:if(dT(f)){Ee=0,sa=null,$T(l);break}l=function(){Ee!==2&&Ee!==9||Ne!==t||(Ee=7),Io(t);},f.then(l,l);break t;case 3:Ee=7;break t;case 4:Ee=5;break t;case 7:dT(f)?(Ee=0,sa=null,$T(l)):(Ee=0,sa=null,nf(t,l,f,7));break;case 5:var h=null;switch(ue.tag){case 26:h=ue.memoizedState;case 5:case 27:var m=ue;if(h?jD(h):m.stateNode.complete){Ee=0,sa=null;var x=m.sibling;if(x!==null)ue=x;else {var E=m.return;E!==null?(ue=E,rp(E)):ue=null;}break e}}Ee=0,sa=null,nf(t,l,f,5);break;case 6:Ee=0,sa=null,nf(t,l,f,6);break;case 8:LS(),an=6;break t;default:throw Error(J(462))}}p9();break}catch(T){xD(t,T);}while(true);return Li=zr=null,Ut.H=i,Ut.A=c,ge=o,ue!==null?0:(Ne=null,ce=0,tp(),an)}function p9(){for(;ue!==null&&!Y7();)ED(ue);}function ED(t){var l=Jz(t.alternate,t,Qi);t.memoizedProps=t.pendingProps,l===null?rp(t):ue=l;}function $T(t){var l=t,o=l.alternate;switch(l.tag){case 15:case 0:l=kT(o,l,l.pendingProps,l.type,void 0,ce);break;case 11:l=kT(o,l,l.pendingProps,l.type.render,l.ref,ce);break;case 5:MS(l);default:Kz(o,l),l=ue=KA(l,Qi),l=Jz(o,l,Qi);}t.memoizedProps=t.pendingProps,l===null?rp(t):ue=l;}function nf(t,l,o,i){Li=zr=null,MS(l),cf=null,Z0=0;var c=l.return;try{if(a9(t,c,l,o,ce)){an=1,Nm(t,Qa(o,t.current)),ue=null;return}}catch(f){if(c!==null)throw ue=c,f;an=1,Nm(t,Qa(o,t.current)),ue=null;return}l.flags&32768?(fe||i===1?t=true:Af||(ce&536870912)!==0?t=false:(Ku=t=true,(i===2||i===9||i===3||i===6)&&(i=ba.current,i!==null&&i.tag===13&&(i.flags|=16384))),MD(l,t)):rp(l);}function rp(t){var l=t;do{if((l.flags&32768)!==0){MD(l,Ku);return}t=l.return;var o=u9(l.alternate,l,Qi);if(o!==null){ue=o;return}if(l=l.sibling,l!==null){ue=l;return}ue=l=t;}while(l!==null);an===0&&(an=5);}function MD(t,l){do{var o=c9(t.alternate,t);if(o!==null){o.flags&=32767,ue=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!l&&(t=t.sibling,t!==null)){ue=t;return}ue=t=o;}while(t!==null);an=6,ue=null;}function HT(t,l,o,i,c,f,h,m,x){t.cancelPendingCommit=null;do sp();while(zn!==0);if((ge&6)!==0)throw Error(J(327));if(l!==null){if(l===t.current)throw Error(J(177));if(f=l.lanes|l.childLanes,f|=rS,J7(t,o,f,h,m,x),t===Ne&&(ue=Ne=null,ce=0),xf=l,ac=t,Wi=o,Hv=f,Lv=c,mD=i,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,v9(_m,function(){return DD(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||i){i=Ut.T,Ut.T=null,c=xe.p,xe.p=2,h=ge,ge|=4;try{r9(t,l,o);}finally{ge=h,xe.p=c,Ut.T=i;}}zn=1,_D(),TD(),AD();}}function _D(){if(zn===1){zn=0;var t=ac,l=xf,o=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||o){o=Ut.T,Ut.T=null;var i=xe.p;xe.p=2;var c=ge;ge|=4;try{uD(l,t);var f=qv,h=jA(t.containerInfo),m=f.focusedElem,x=f.selectionRange;if(h!==m&&m&&m.ownerDocument&&WA(m.ownerDocument.documentElement,m)){if(x!==null&&cS(m)){var E=x.start,T=x.end;if(T===void 0&&(T=E),"selectionStart"in m)m.selectionStart=E,m.selectionEnd=Math.min(T,m.value.length);else {var M=m.ownerDocument||document,v=M&&M.defaultView||window;if(v.getSelection){var _=v.getSelection(),$=m.textContent.length,X=Math.min(x.start,$),I=x.end===void 0?X:Math.min(x.end,$);!_.extend&&X>I&&(h=I,I=X,X=h);var C=oT(m,X),z=oT(m,I);if(C&&z&&(_.rangeCount!==1||_.anchorNode!==C.node||_.anchorOffset!==C.offset||_.focusNode!==z.node||_.focusOffset!==z.offset)){var U=M.createRange();U.setStart(C.node,C.offset),_.removeAllRanges(),X>I?(_.addRange(U),_.extend(z.node,z.offset)):(U.setEnd(z.node,z.offset),_.addRange(U));}}}}for(M=[],_=m;_=_.parentNode;)_.nodeType===1&&M.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<M.length;m++){var B=M[m];B.element.scrollLeft=B.left,B.element.scrollTop=B.top;}}Zm=!!jv,qv=jv=null;}finally{ge=c,xe.p=i,Ut.T=o;}}t.current=l,zn=2;}}function TD(){if(zn===2){zn=0;var t=ac,l=xf,o=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||o){o=Ut.T,Ut.T=null;var i=xe.p;xe.p=2;var c=ge;ge|=4;try{nD(t,l.alternate,l);}finally{ge=c,xe.p=i,Ut.T=o;}}zn=3;}}function AD(){if(zn===4||zn===3){zn=0,B7();var t=ac,l=xf,o=Wi,i=mD;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?zn=5:(zn=0,xf=ac=null,zD(t,t.pendingLanes));var c=t.pendingLanes;if(c===0&&(lc=null),eS(o),l=l.stateNode,ma&&typeof ma.onCommitFiberRoot=="function")try{ma.onCommitFiberRoot(lh,l,void 0,(l.current.flags&128)===128);}catch{}if(i!==null){l=Ut.T,c=xe.p,xe.p=2,Ut.T=null;try{for(var f=t.onRecoverableError,h=0;h<i.length;h++){var m=i[h];f(m.value,{componentStack:m.stack});}}finally{Ut.T=l,xe.p=c;}}(Wi&3)!==0&&sp(),Io(t),c=t.pendingLanes,(o&261930)!==0&&(c&42)!==0?t===Yv?B0++:(B0=0,Yv=t):B0=0,fh(0);}}function zD(t,l){(t.pooledCacheLanes&=l)===0&&(l=t.pooledCache,l!=null&&(t.pooledCache=null,ch(l)));}function sp(){return _D(),TD(),AD(),DD()}function DD(){if(zn!==5)return false;var t=ac,l=Hv;Hv=0;var o=eS(Wi),i=Ut.T,c=xe.p;try{xe.p=32>o?32:o,Ut.T=null,o=Lv,Lv=null;var f=ac,h=Wi;if(zn=0,xf=ac=null,Wi=0,(ge&6)!==0)throw Error(J(331));var m=ge;if(ge|=4,dD(f.current),rD(f,f.current,h,o),ge=m,fh(0,!1),ma&&typeof ma.onPostCommitFiberRoot=="function")try{ma.onPostCommitFiberRoot(lh,f);}catch{}return !0}finally{xe.p=c,Ut.T=i,zD(t,l);}}function LT(t,l,o){l=Qa(o,l),l=Rv(t.stateNode,l,2),t=nc(t,l,2),t!==null&&(oh(t,2),Io(t));}function Me(t,l,o){if(t.tag===3)LT(t,t,o);else for(;l!==null;){if(l.tag===3){LT(l,t,o);break}else if(l.tag===1){var i=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(lc===null||!lc.has(i))){t=Qa(o,t),o=qz(2),i=nc(l,o,2),i!==null&&(Xz(o,i,l,t),oh(i,2),Io(i));break}}l=l.return;}}function Kb(t,l,o){var i=t.pingCache;if(i===null){i=t.pingCache=new d9;var c=new Set;i.set(l,c);}else c=i.get(l),c===void 0&&(c=new Set,i.set(l,c));c.has(o)||($S=true,c.add(o),t=g9.bind(null,t,l,o),l.then(t,t));}function g9(t,l,o){var i=t.pingCache;i!==null&&i.delete(l),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,Ne===t&&(ce&o)===o&&(an===4||an===3&&(ce&62914560)===ce&&300>ya()-up?(ge&2)===0&&bf(t,0):HS|=o,gf===ce&&(gf=0)),Io(t);}function kD(t,l){l===0&&(l=vA()),t=Ar(t,l),t!==null&&(oh(t,l),Io(t));}function x9(t){var l=t.memoizedState,o=0;l!==null&&(o=l.retryLane),kD(t,o);}function b9(t,l){var o=0;switch(t.tag){case 31:case 13:var i=t.stateNode,c=t.memoizedState;c!==null&&(o=c.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(J(314))}i!==null&&i.delete(l),kD(t,o);}function v9(t,l){return Pv(t,l)}var Wm=null,Xs=null,Bv=false,jm=false,Fb=false,Iu=0;function Io(t){t!==Xs&&t.next===null&&(Xs===null?Wm=Xs=t:Xs=Xs.next=t),jm=true,Bv||(Bv=true,E9());}function fh(t,l){if(!Fb&&jm){Fb=true;do for(var o=false,i=Wm;i!==null;){if(t!==0){var c=i.pendingLanes;if(c===0)var f=0;else {var h=i.suspendedLanes,m=i.pingedLanes;f=(1<<31-pa(42|t)+1)-1,f&=c&~(h&~m),f=f&201326741?f&201326741|1:f?f|2:0;}f!==0&&(o=true,YT(i,f));}else f=ce,f=Km(i,i===Ne?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||ah(i,f)||(o=true,YT(i,f));i=i.next;}while(o);Fb=false;}}function S9(){CD();}function CD(){jm=Bv=false;var t=0;Iu!==0&&C9()&&(t=Iu);for(var l=ya(),o=null,i=Wm;i!==null;){var c=i.next,f=OD(i,l);f===0?(i.next=null,o===null?Wm=c:o.next=c,c===null&&(Xs=o)):(o=i,(t!==0||(f&3)!==0)&&(jm=true)),i=c;}zn!==0&&zn!==5||fh(t),Iu!==0&&(Iu=0);}function OD(t,l){for(var o=t.suspendedLanes,i=t.pingedLanes,c=t.expirationTimes,f=t.pendingLanes&-62914561;0<f;){var h=31-pa(f),m=1<<h,x=c[h];x===-1?((m&o)===0||(m&i)!==0)&&(c[h]=Z7(m,l)):x<=l&&(t.expiredLanes|=m),f&=~m;}if(l=Ne,o=ce,o=Km(t,t===l?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,o===0||t===l&&(Ee===2||Ee===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&Ab(i),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||ah(t,o)){if(l=o&-o,l===t.callbackPriority)return l;switch(i!==null&&Ab(i),eS(o)){case 2:case 8:o=xA;break;case 32:o=_m;break;case 268435456:o=bA;break;default:o=_m;}return i=RD.bind(null,t),o=Pv(o,i),t.callbackPriority=l,t.callbackNode=o,l}return i!==null&&i!==null&&Ab(i),t.callbackPriority=2,t.callbackNode=null,2}function RD(t,l){if(zn!==0&&zn!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(sp()&&t.callbackNode!==o)return null;var i=ce;return i=Km(t,t===Ne?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(gD(t,i,l),OD(t,ya()),t.callbackNode!=null&&t.callbackNode===o?RD.bind(null,t):null)}function YT(t,l){if(sp())return null;gD(t,l,true);}function E9(){R9(function(){(ge&6)!==0?Pv(gA,S9):CD();});}function YS(){if(Iu===0){var t=yf;t===0&&(t=q1,q1<<=1,(q1&261888)===0&&(q1=256)),Iu=t;}return Iu}function BT(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:um(""+t)}function WT(t,l){var o=l.ownerDocument.createElement("input");return o.name=l.name,o.value=l.value,t.id&&o.setAttribute("form",t.id),l.parentNode.insertBefore(o,l),t=new FormData(t),o.parentNode.removeChild(o),t}function M9(t,l,o,i,c){if(l==="submit"&&o&&o.stateNode===c){var f=BT((c[jl]||null).action),h=i.submitter;h&&(l=(l=h[jl]||null)?BT(l.formAction):h.getAttribute("formAction"),l!==null&&(f=l,h=null));var m=new Fm("action","action",null,i,c);t.push({event:m,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Iu!==0){var x=h?WT(c,h):new FormData(c);Cv(o,{pending:true,data:x,method:c.method,action:f},null,x);}}else typeof f=="function"&&(m.preventDefault(),x=h?WT(c,h):new FormData(c),Cv(o,{pending:true,data:x,method:c.method,action:f},f,x));},currentTarget:c}]});}}for(em=0;em<xv.length;em++)nm=xv[em],jT=nm.toLowerCase(),qT=nm[0].toUpperCase()+nm.slice(1),ho(jT,"on"+qT);var nm,jT,qT,em;ho(XA,"onAnimationEnd");ho(GA,"onAnimationIteration");ho(QA,"onAnimationStart");ho("dblclick","onDoubleClick");ho("focusin","onFocus");ho("focusout","onBlur");ho(Ww,"onTransitionRun");ho(jw,"onTransitionStart");ho(qw,"onTransitionCancel");ho(VA,"onTransitionEnd");df("onMouseEnter",["mouseout","mouseover"]);df("onMouseLeave",["mouseout","mouseover"]);df("onPointerEnter",["pointerout","pointerover"]);df("onPointerLeave",["pointerout","pointerover"]);Mr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Mr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Mr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Mr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Mr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Mr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var F0="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),_9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(F0));function wD(t,l){l=(l&4)!==0;for(var o=0;o<t.length;o++){var i=t[o],c=i.event;i=i.listeners;t:{var f=void 0;if(l)for(var h=i.length-1;0<=h;h--){var m=i[h],x=m.instance,E=m.currentTarget;if(m=m.listener,x!==f&&c.isPropagationStopped())break t;f=m,c.currentTarget=E;try{f(c);}catch(T){Am(T);}c.currentTarget=null,f=x;}else for(h=0;h<i.length;h++){if(m=i[h],x=m.instance,E=m.currentTarget,m=m.listener,x!==f&&c.isPropagationStopped())break t;f=m,c.currentTarget=E;try{f(c);}catch(T){Am(T);}c.currentTarget=null,f=x;}}}}function ie(t,l){var o=l[sv];o===void 0&&(o=l[sv]=new Set);var i=t+"__bubble";o.has(i)||(UD(l,t,2,false),o.add(i));}function Ib(t,l,o){var i=0;l&&(i|=4),UD(o,t,i,l);}var lm="_reactListening"+Math.random().toString(36).slice(2);function BS(t){if(!t[lm]){t[lm]=true,TA.forEach(function(o){o!=="selectionchange"&&(_9.has(o)||Ib(o,false,t),Ib(o,true,t));});var l=t.nodeType===9?t:t.ownerDocument;l===null||l[lm]||(l[lm]=true,Ib("selectionchange",false,l));}}function UD(t,l,o,i){switch(VD(l)){case 2:var c=I9;break;case 8:c=P9;break;default:c=XS;}o=c.bind(null,l,o,t),c=void 0,!mv||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(c=true),i?c!==void 0?t.addEventListener(l,o,{capture:true,passive:c}):t.addEventListener(l,o,true):c!==void 0?t.addEventListener(l,o,{passive:c}):t.addEventListener(l,o,false);}function Pb(t,l,o,i,c){var f=i;if((l&1)===0&&(l&2)===0&&i!==null)t:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var m=i.stateNode.containerInfo;if(m===c)break;if(h===4)for(h=i.return;h!==null;){var x=h.tag;if((x===3||x===4)&&h.stateNode.containerInfo===c)return;h=h.return;}for(;m!==null;){if(h=Vs(m),h===null)return;if(x=h.tag,x===5||x===6||x===26||x===27){i=f=h;continue t}m=m.parentNode;}}i=i.return;}wA(function(){var E=f,T=aS(o),M=[];t:{var v=ZA.get(t);if(v!==void 0){var _=Fm,$=t;switch(t){case "keypress":if(rm(o)===0)break t;case "keydown":case "keyup":_=bw;break;case "focusin":$="focus",_=Ob;break;case "focusout":$="blur",_=Ob;break;case "beforeblur":case "afterblur":_=Ob;break;case "click":if(o.button===2)break t;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":_=K_;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":_=uw;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":_=Ew;break;case XA:case GA:case QA:_=sw;break;case VA:_=_w;break;case "scroll":case "scrollend":_=ow;break;case "wheel":_=Aw;break;case "copy":case "cut":case "paste":_=dw;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":_=I_;break;case "toggle":case "beforetoggle":_=Dw;}var X=(l&4)!==0,I=!X&&(t==="scroll"||t==="scrollend"),C=X?v!==null?v+"Capture":null:v;X=[];for(var z=E,U;z!==null;){var B=z;if(U=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||U===null||C===null||(B=q0(z,C),B!=null&&X.push(I0(z,B,U))),I)break;z=z.return;}0<X.length&&(v=new _(v,$,null,o,T),M.push({event:v,listeners:X}));}}if((l&7)===0){t:{if(v=t==="mouseover"||t==="pointerover",_=t==="mouseout"||t==="pointerout",v&&o!==yv&&($=o.relatedTarget||o.fromElement)&&(Vs($)||$[Ef]))break t;if((_||v)&&(v=T.window===T?T:(v=T.ownerDocument)?v.defaultView||v.parentWindow:window,_?($=o.relatedTarget||o.toElement,_=E,$=$?Vs($):null,$!==null&&(I=nh($),X=$.tag,$!==I||X!==5&&X!==27&&X!==6)&&($=null)):(_=null,$=E),_!==$)){if(X=K_,B="onMouseLeave",C="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(X=I_,B="onPointerLeave",C="onPointerEnter",z="pointer"),I=_==null?v:A0(_),U=$==null?v:A0($),v=new X(B,z+"leave",_,o,T),v.target=I,v.relatedTarget=U,B=null,Vs(T)===E&&(X=new X(C,z+"enter",$,o,T),X.target=U,X.relatedTarget=I,B=X),I=B,_&&$)e:{for(X=T9,C=_,z=$,U=0,B=C;B;B=X(B))U++;B=0;for(var L=z;L;L=X(L))B++;for(;0<U-B;)C=X(C),U--;for(;0<B-U;)z=X(z),B--;for(;U--;){if(C===z||z!==null&&C===z.alternate){X=C;break e}C=X(C),z=X(z);}X=null;}else X=null;_!==null&&XT(M,v,_,X,!1),$!==null&&I!==null&&XT(M,I,$,X,!0);}}t:{if(v=E?A0(E):window,_=v.nodeName&&v.nodeName.toLowerCase(),_==="select"||_==="input"&&v.type==="file")var gt=nT;else if(eT(v))if(YA)gt=Lw;else {gt=$w;var et=Nw;}else _=v.nodeName,!_||_.toLowerCase()!=="input"||v.type!=="checkbox"&&v.type!=="radio"?E&&lS(E.elementType)&&(gt=nT):gt=Hw;if(gt&&(gt=gt(t,E))){LA(M,gt,o,T);break t}et&&et(t,v,E),t==="focusout"&&E&&v.type==="number"&&E.memoizedProps.value!=null&&hv(v,"number",v.value);}switch(et=E?A0(E):window,t){case "focusin":(eT(et)||et.contentEditable==="true")&&(Ks=et,pv=E,O0=null);break;case "focusout":O0=pv=Ks=null;break;case "mousedown":gv=!0;break;case "contextmenu":case "mouseup":case "dragend":gv=!1,iT(M,o,T);break;case "selectionchange":if(Bw)break;case "keydown":case "keyup":iT(M,o,T);}var nt;if(uS)t:{switch(t){case "compositionstart":var vt="onCompositionStart";break t;case "compositionend":vt="onCompositionEnd";break t;case "compositionupdate":vt="onCompositionUpdate";break t}vt=void 0;}else Js?$A(t,o)&&(vt="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(vt="onCompositionStart");vt&&(NA&&o.locale!=="ko"&&(Js||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&Js&&(nt=UA()):(Ju=T,oS="value"in Ju?Ju.value:Ju.textContent,Js=!0)),et=qm(E,vt),0<et.length&&(vt=new F_(vt,t,null,o,T),M.push({event:vt,listeners:et}),nt?vt.data=nt:(nt=HA(o),nt!==null&&(vt.data=nt)))),(nt=Cw?Ow(t,o):Rw(t,o))&&(vt=qm(E,"onBeforeInput"),0<vt.length&&(et=new F_("onBeforeInput","beforeinput",null,o,T),M.push({event:et,listeners:vt}),et.data=nt)),M9(M,t,E,o,T);}wD(M,l);});}function I0(t,l,o){return {instance:t,listener:l,currentTarget:o}}function qm(t,l){for(var o=l+"Capture",i=[];t!==null;){var c=t,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=q0(t,o),c!=null&&i.unshift(I0(t,c,f)),c=q0(t,l),c!=null&&i.push(I0(t,c,f))),t.tag===3)return i;t=t.return;}return []}function T9(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function XT(t,l,o,i,c){for(var f=l._reactName,h=[];o!==null&&o!==i;){var m=o,x=m.alternate,E=m.stateNode;if(m=m.tag,x!==null&&x===i)break;m!==5&&m!==26&&m!==27||E===null||(x=E,c?(E=q0(o,f),E!=null&&h.unshift(I0(o,E,x))):c||(E=q0(o,f),E!=null&&h.push(I0(o,E,x)))),o=o.return;}h.length!==0&&t.push({event:l,listeners:h});}var A9=/\r\n?/g,z9=/\u0000|\uFFFD/g;function GT(t){return (typeof t=="string"?t:""+t).replace(A9,`
|
|
30
|
-
`).replace(z9,"")}function ND(t,l){return l=GT(l),GT(t)===l}function ke(t,l,o,i,c,f){switch(o){case "children":typeof i=="string"?l==="body"||l==="textarea"&&i===""||hf(t,i):(typeof i=="number"||typeof i=="bigint")&&l!=="body"&&hf(t,""+i);break;case "className":Q1(t,"class",i);break;case "tabIndex":Q1(t,"tabindex",i);break;case "dir":case "role":case "viewBox":case "width":case "height":Q1(t,o,i);break;case "style":RA(t,i,f);break;case "data":if(l!=="object"){Q1(t,"data",i);break}case "src":case "href":if(i===""&&(l!=="a"||o!=="href")){t.removeAttribute(o);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(o);break}i=um(""+i),t.setAttribute(o,i);break;case "action":case "formAction":if(typeof i=="function"){t.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(o==="formAction"?(l!=="input"&&ke(t,l,"name",c.name,c,null),ke(t,l,"formEncType",c.formEncType,c,null),ke(t,l,"formMethod",c.formMethod,c,null),ke(t,l,"formTarget",c.formTarget,c,null)):(ke(t,l,"encType",c.encType,c,null),ke(t,l,"method",c.method,c,null),ke(t,l,"target",c.target,c,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(o);break}i=um(""+i),t.setAttribute(o,i);break;case "onClick":i!=null&&(t.onclick=Hi);break;case "onScroll":i!=null&&ie("scroll",t);break;case "onScrollEnd":i!=null&&ie("scrollend",t);break;case "dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(J(61));if(o=i.__html,o!=null){if(c.children!=null)throw Error(J(60));t.innerHTML=o;}}break;case "multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case "muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":break;case "autoFocus":break;case "xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}o=um(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(o,""+i):t.removeAttribute(o);break;case "inert":case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case "capture":case "download":i===true?t.setAttribute(o,""):i!==false&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(o,i):t.removeAttribute(o);break;case "cols":case "rows":case "size":case "span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(o,i):t.removeAttribute(o);break;case "rowSpan":case "start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(o):t.setAttribute(o,i);break;case "popover":ie("beforetoggle",t),ie("toggle",t),im(t,"popover",i);break;case "xlinkActuate":ki(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case "xlinkArcrole":ki(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case "xlinkRole":ki(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case "xlinkShow":ki(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case "xlinkTitle":ki(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case "xlinkType":ki(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case "xmlBase":ki(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case "xmlLang":ki(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case "xmlSpace":ki(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case "is":im(t,"is",i);break;case "innerText":case "textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=lw.get(o)||o,im(t,o,i));}}function Wv(t,l,o,i,c,f){switch(o){case "style":RA(t,i,f);break;case "dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(J(61));if(o=i.__html,o!=null){if(c.children!=null)throw Error(J(60));t.innerHTML=o;}}break;case "children":typeof i=="string"?hf(t,i):(typeof i=="number"||typeof i=="bigint")&&hf(t,""+i);break;case "onScroll":i!=null&&ie("scroll",t);break;case "onScrollEnd":i!=null&&ie("scrollend",t);break;case "onClick":i!=null&&(t.onclick=Hi);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(!AA.hasOwnProperty(o))t:{if(o[0]==="o"&&o[1]==="n"&&(c=o.endsWith("Capture"),l=o.slice(2,c?o.length-7:void 0),f=t[jl]||null,f=f!=null?f[o]:null,typeof f=="function"&&t.removeEventListener(l,f,c),typeof i=="function")){typeof f!="function"&&f!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(l,i,c);break t}o in t?t[o]=i:i===true?t.setAttribute(o,""):im(t,o,i);}}}function tl(t,l,o){switch(l){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":ie("error",t),ie("load",t);var i=false,c=false,f;for(f in o)if(o.hasOwnProperty(f)){var h=o[f];if(h!=null)switch(f){case "src":i=true;break;case "srcSet":c=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(J(137,l));default:ke(t,l,f,h,o,null);}}c&&ke(t,l,"srcSet",o.srcSet,o,null),i&&ke(t,l,"src",o.src,o,null);return;case "input":ie("invalid",t);var m=f=h=c=null,x=null,E=null;for(i in o)if(o.hasOwnProperty(i)){var T=o[i];if(T!=null)switch(i){case "name":c=T;break;case "type":h=T;break;case "checked":x=T;break;case "defaultChecked":E=T;break;case "value":f=T;break;case "defaultValue":m=T;break;case "children":case "dangerouslySetInnerHTML":if(T!=null)throw Error(J(137,l));break;default:ke(t,l,i,T,o,null);}}kA(t,f,m,x,E,h,c,false);return;case "select":ie("invalid",t),i=h=f=null;for(c in o)if(o.hasOwnProperty(c)&&(m=o[c],m!=null))switch(c){case "value":f=m;break;case "defaultValue":h=m;break;case "multiple":i=m;default:ke(t,l,c,m,o,null);}l=f,o=h,t.multiple=!!i,l!=null?af(t,!!i,l,false):o!=null&&af(t,!!i,o,true);return;case "textarea":ie("invalid",t),f=c=i=null;for(h in o)if(o.hasOwnProperty(h)&&(m=o[h],m!=null))switch(h){case "value":i=m;break;case "defaultValue":c=m;break;case "children":f=m;break;case "dangerouslySetInnerHTML":if(m!=null)throw Error(J(91));break;default:ke(t,l,h,m,o,null);}OA(t,i,c,f);return;case "option":for(x in o)o.hasOwnProperty(x)&&(i=o[x],i!=null)&&(x==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":ke(t,l,x,i,o,null));return;case "dialog":ie("beforetoggle",t),ie("toggle",t),ie("cancel",t),ie("close",t);break;case "iframe":case "object":ie("load",t);break;case "video":case "audio":for(i=0;i<F0.length;i++)ie(F0[i],t);break;case "image":ie("error",t),ie("load",t);break;case "details":ie("toggle",t);break;case "embed":case "source":case "link":ie("error",t),ie("load",t);case "area":case "base":case "br":case "col":case "hr":case "keygen":case "meta":case "param":case "track":case "wbr":case "menuitem":for(E in o)if(o.hasOwnProperty(E)&&(i=o[E],i!=null))switch(E){case "children":case "dangerouslySetInnerHTML":throw Error(J(137,l));default:ke(t,l,E,i,o,null);}return;default:if(lS(l)){for(T in o)o.hasOwnProperty(T)&&(i=o[T],i!==void 0&&Wv(t,l,T,i,o,void 0));return}}for(m in o)o.hasOwnProperty(m)&&(i=o[m],i!=null&&ke(t,l,m,i,o,null));}function D9(t,l,o,i){switch(l){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var c=null,f=null,h=null,m=null,x=null,E=null,T=null;for(_ in o){var M=o[_];if(o.hasOwnProperty(_)&&M!=null)switch(_){case "checked":break;case "value":break;case "defaultValue":x=M;default:i.hasOwnProperty(_)||ke(t,l,_,null,i,M);}}for(var v in i){var _=i[v];if(M=o[v],i.hasOwnProperty(v)&&(_!=null||M!=null))switch(v){case "type":f=_;break;case "name":c=_;break;case "checked":E=_;break;case "defaultChecked":T=_;break;case "value":h=_;break;case "defaultValue":m=_;break;case "children":case "dangerouslySetInnerHTML":if(_!=null)throw Error(J(137,l));break;default:_!==M&&ke(t,l,v,_,i,M);}}dv(t,h,m,x,E,T,f,c);return;case "select":_=h=m=v=null;for(f in o)if(x=o[f],o.hasOwnProperty(f)&&x!=null)switch(f){case "value":break;case "multiple":_=x;default:i.hasOwnProperty(f)||ke(t,l,f,null,i,x);}for(c in i)if(f=i[c],x=o[c],i.hasOwnProperty(c)&&(f!=null||x!=null))switch(c){case "value":v=f;break;case "defaultValue":m=f;break;case "multiple":h=f;default:f!==x&&ke(t,l,c,f,i,x);}l=m,o=h,i=_,v!=null?af(t,!!o,v,false):!!i!=!!o&&(l!=null?af(t,!!o,l,true):af(t,!!o,o?[]:"",false));return;case "textarea":_=v=null;for(m in o)if(c=o[m],o.hasOwnProperty(m)&&c!=null&&!i.hasOwnProperty(m))switch(m){case "value":break;case "children":break;default:ke(t,l,m,null,i,c);}for(h in i)if(c=i[h],f=o[h],i.hasOwnProperty(h)&&(c!=null||f!=null))switch(h){case "value":v=c;break;case "defaultValue":_=c;break;case "children":break;case "dangerouslySetInnerHTML":if(c!=null)throw Error(J(91));break;default:c!==f&&ke(t,l,h,c,i,f);}CA(t,v,_);return;case "option":for(var $ in o)v=o[$],o.hasOwnProperty($)&&v!=null&&!i.hasOwnProperty($)&&($==="selected"?t.selected=false:ke(t,l,$,null,i,v));for(x in i)v=i[x],_=o[x],i.hasOwnProperty(x)&&v!==_&&(v!=null||_!=null)&&(x==="selected"?t.selected=v&&typeof v!="function"&&typeof v!="symbol":ke(t,l,x,v,i,_));return;case "img":case "link":case "area":case "base":case "br":case "col":case "embed":case "hr":case "keygen":case "meta":case "param":case "source":case "track":case "wbr":case "menuitem":for(var X in o)v=o[X],o.hasOwnProperty(X)&&v!=null&&!i.hasOwnProperty(X)&&ke(t,l,X,null,i,v);for(E in i)if(v=i[E],_=o[E],i.hasOwnProperty(E)&&v!==_&&(v!=null||_!=null))switch(E){case "children":case "dangerouslySetInnerHTML":if(v!=null)throw Error(J(137,l));break;default:ke(t,l,E,v,i,_);}return;default:if(lS(l)){for(var I in o)v=o[I],o.hasOwnProperty(I)&&v!==void 0&&!i.hasOwnProperty(I)&&Wv(t,l,I,void 0,i,v);for(T in i)v=i[T],_=o[T],!i.hasOwnProperty(T)||v===_||v===void 0&&_===void 0||Wv(t,l,T,v,i,_);return}}for(var C in o)v=o[C],o.hasOwnProperty(C)&&v!=null&&!i.hasOwnProperty(C)&&ke(t,l,C,null,i,v);for(M in i)v=i[M],_=o[M],!i.hasOwnProperty(M)||v===_||v==null&&_==null||ke(t,l,M,v,i,_);}function QT(t){switch(t){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return true;default:return false}}function k9(){if(typeof performance.getEntriesByType=="function"){for(var t=0,l=0,o=performance.getEntriesByType("resource"),i=0;i<o.length;i++){var c=o[i],f=c.transferSize,h=c.initiatorType,m=c.duration;if(f&&m&&QT(h)){for(h=0,m=c.responseEnd,i+=1;i<o.length;i++){var x=o[i],E=x.startTime;if(E>m)break;var T=x.transferSize,M=x.initiatorType;T&&QT(M)&&(x=x.responseEnd,h+=T*(x<m?1:(m-E)/(x-E)));}if(--i,l+=8*(f+h)/(c.duration/1e3),t++,10<t)break}}if(0<t)return l/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var jv=null,qv=null;function Xm(t){return t.nodeType===9?t:t.ownerDocument}function VT(t){switch(t){case "http://www.w3.org/2000/svg":return 1;case "http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $D(t,l){if(t===0)switch(l){case "svg":return 1;case "math":return 2;default:return 0}return t===1&&l==="foreignObject"?0:t}function Xv(t,l){return t==="textarea"||t==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var tv=null;function C9(){var t=window.event;return t&&t.type==="popstate"?t===tv?false:(tv=t,true):(tv=null,false)}var HD=typeof setTimeout=="function"?setTimeout:void 0,O9=typeof clearTimeout=="function"?clearTimeout:void 0,ZT=typeof Promise=="function"?Promise:void 0,R9=typeof queueMicrotask=="function"?queueMicrotask:typeof ZT<"u"?function(t){return ZT.resolve(null).then(t).catch(w9)}:HD;function w9(t){setTimeout(function(){throw t});}function hc(t){return t==="head"}function JT(t,l){var o=l,i=0;do{var c=o.nextSibling;if(t.removeChild(o),c&&c.nodeType===8)if(o=c.data,o==="/$"||o==="/&"){if(i===0){t.removeChild(c),Sf(l);return}i--;}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")i++;else if(o==="html")W0(t.ownerDocument.documentElement);else if(o==="head"){o=t.ownerDocument.head,W0(o);for(var f=o.firstChild;f;){var h=f.nextSibling,m=f.nodeName;f[ih]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&f.rel.toLowerCase()==="stylesheet"||o.removeChild(f),f=h;}}else o==="body"&&W0(t.ownerDocument.body);o=c;}while(o);Sf(l);}function KT(t,l){var o=t;t=0;do{var i=o.nextSibling;if(o.nodeType===1?l?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(l?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),i&&i.nodeType===8)if(o=i.data,o==="/$"){if(t===0)break;t--;}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||t++;o=i;}while(o)}function Gv(t){var l=t.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var o=l;switch(l=l.nextSibling,o.nodeName){case "HTML":case "HEAD":case "BODY":Gv(o),nS(o);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o);}}function U9(t,l,o,i){for(;t.nodeType===1;){var c=o;if(t.nodeName.toLowerCase()!==l.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[ih])switch(l){case "meta":if(!t.hasAttribute("itemprop"))break;return t;case "link":if(f=t.getAttribute("rel"),f==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(f!==c.rel||t.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||t.getAttribute("title")!==(c.title==null?null:c.title))break;return t;case "style":if(t.hasAttribute("data-precedence"))break;return t;case "script":if(f=t.getAttribute("src"),(f!==(c.src==null?null:c.src)||t.getAttribute("type")!==(c.type==null?null:c.type)||t.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(l==="input"&&t.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&t.getAttribute("name")===f)return t}else return t;if(t=Ja(t.nextSibling),t===null)break}return null}function N9(t,l,o){if(l==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=Ja(t.nextSibling),t===null))return null;return t}function LD(t,l){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ja(t.nextSibling),t===null))return null;return t}function Qv(t){return t.data==="$?"||t.data==="$~"}function Vv(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function $9(t,l){var o=t.ownerDocument;if(t.data==="$~")t._reactRetry=l;else if(t.data!=="$?"||o.readyState!=="loading")l();else {var i=function(){l(),o.removeEventListener("DOMContentLoaded",i);};o.addEventListener("DOMContentLoaded",i),t._reactRetry=i;}}function Ja(t){for(;t!=null;t=t.nextSibling){var l=t.nodeType;if(l===1||l===3)break;if(l===8){if(l=t.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return t}var Zv=null;function FT(t){t=t.nextSibling;for(var l=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"||o==="/&"){if(l===0)return Ja(t.nextSibling);l--;}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||l++;}t=t.nextSibling;}return null}function IT(t){t=t.previousSibling;for(var l=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(l===0)return t;l--;}else o!=="/$"&&o!=="/&"||l++;}t=t.previousSibling;}return null}function YD(t,l,o){switch(l=Xm(o),t){case "html":if(t=l.documentElement,!t)throw Error(J(452));return t;case "head":if(t=l.head,!t)throw Error(J(453));return t;case "body":if(t=l.body,!t)throw Error(J(454));return t;default:throw Error(J(451))}}function W0(t){for(var l=t.attributes;l.length;)t.removeAttributeNode(l[0]);nS(t);}var Ka=new Map,PT=new Set;function Gm(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Vi=xe.d;xe.d={f:H9,r:L9,D:Y9,C:B9,L:W9,m:j9,X:X9,S:q9,M:G9};function H9(){var t=Vi.f(),l=cp();return t||l}function L9(t){var l=Mf(t);l!==null&&l.tag===5&&l.type==="form"?Rz(l):Vi.r(t);}var zf=typeof document>"u"?null:document;function BD(t,l,o){var i=zf;if(i&&typeof l=="string"&&l){var c=Ga(l);c='link[rel="'+t+'"][href="'+c+'"]',typeof o=="string"&&(c+='[crossorigin="'+o+'"]'),PT.has(c)||(PT.add(c),t={rel:t,crossOrigin:o,href:l},i.querySelector(c)===null&&(l=i.createElement("link"),tl(l,"link",t),Bn(l),i.head.appendChild(l)));}}function Y9(t){Vi.D(t),BD("dns-prefetch",t,null);}function B9(t,l){Vi.C(t,l),BD("preconnect",t,l);}function W9(t,l,o){Vi.L(t,l,o);var i=zf;if(i&&t&&l){var c='link[rel="preload"][as="'+Ga(l)+'"]';l==="image"&&o&&o.imageSrcSet?(c+='[imagesrcset="'+Ga(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(c+='[imagesizes="'+Ga(o.imageSizes)+'"]')):c+='[href="'+Ga(t)+'"]';var f=c;switch(l){case "style":f=vf(t);break;case "script":f=Df(t);}Ka.has(f)||(t=Qe({rel:"preload",href:l==="image"&&o&&o.imageSrcSet?void 0:t,as:l},o),Ka.set(f,t),i.querySelector(c)!==null||l==="style"&&i.querySelector(dh(f))||l==="script"&&i.querySelector(hh(f))||(l=i.createElement("link"),tl(l,"link",t),Bn(l),i.head.appendChild(l)));}}function j9(t,l){Vi.m(t,l);var o=zf;if(o&&t){var i=l&&typeof l.as=="string"?l.as:"script",c='link[rel="modulepreload"][as="'+Ga(i)+'"][href="'+Ga(t)+'"]',f=c;switch(i){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":f=Df(t);}if(!Ka.has(f)&&(t=Qe({rel:"modulepreload",href:t},l),Ka.set(f,t),o.querySelector(c)===null)){switch(i){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(o.querySelector(hh(f)))return}i=o.createElement("link"),tl(i,"link",t),Bn(i),o.head.appendChild(i);}}}function q9(t,l,o){Vi.S(t,l,o);var i=zf;if(i&&t){var c=lf(i).hoistableStyles,f=vf(t);l=l||"default";var h=c.get(f);if(!h){var m={loading:0,preload:null};if(h=i.querySelector(dh(f)))m.loading=5;else {t=Qe({rel:"stylesheet",href:t,"data-precedence":l},o),(o=Ka.get(f))&&WS(t,o);var x=h=i.createElement("link");Bn(x),tl(x,"link",t),x._p=new Promise(function(E,T){x.onload=E,x.onerror=T;}),x.addEventListener("load",function(){m.loading|=1;}),x.addEventListener("error",function(){m.loading|=2;}),m.loading|=4,gm(h,l,i);}h={type:"stylesheet",instance:h,count:1,state:m},c.set(f,h);}}}function X9(t,l){Vi.X(t,l);var o=zf;if(o&&t){var i=lf(o).hoistableScripts,c=Df(t),f=i.get(c);f||(f=o.querySelector(hh(c)),f||(t=Qe({src:t,async:true},l),(l=Ka.get(c))&&jS(t,l),f=o.createElement("script"),Bn(f),tl(f,"link",t),o.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f));}}function G9(t,l){Vi.M(t,l);var o=zf;if(o&&t){var i=lf(o).hoistableScripts,c=Df(t),f=i.get(c);f||(f=o.querySelector(hh(c)),f||(t=Qe({src:t,async:true,type:"module"},l),(l=Ka.get(c))&&jS(t,l),f=o.createElement("script"),Bn(f),tl(f,"link",t),o.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(c,f));}}function tA(t,l,o,i){var c=(c=Pu.current)?Gm(c):null;if(!c)throw Error(J(446));switch(t){case "meta":case "title":return null;case "style":return typeof o.precedence=="string"&&typeof o.href=="string"?(l=vf(o.href),o=lf(c).hoistableStyles,i=o.get(l),i||(i={type:"style",instance:null,count:0,state:null},o.set(l,i)),i):{type:"void",instance:null,count:0,state:null};case "link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=vf(o.href);var f=lf(c).hoistableStyles,h=f.get(t);if(h||(c=c.ownerDocument||c,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(t,h),(f=c.querySelector(dh(t)))&&!f._p&&(h.instance=f,h.state.loading=5),Ka.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Ka.set(t,o),f||Q9(c,t,o,h.state))),l&&i===null)throw Error(J(528,""));return h}if(l&&i!==null)throw Error(J(529,""));return null;case "script":return l=o.async,o=o.src,typeof o=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Df(o),o=lf(c).hoistableScripts,i=o.get(l),i||(i={type:"script",instance:null,count:0,state:null},o.set(l,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(J(444,t))}}function vf(t){return 'href="'+Ga(t)+'"'}function dh(t){return 'link[rel="stylesheet"]['+t+"]"}function WD(t){return Qe({},t,{"data-precedence":t.precedence,precedence:null})}function Q9(t,l,o,i){t.querySelector('link[rel="preload"][as="style"]['+l+"]")?i.loading=1:(l=t.createElement("link"),i.preload=l,l.addEventListener("load",function(){return i.loading|=1}),l.addEventListener("error",function(){return i.loading|=2}),tl(l,"link",o),Bn(l),t.head.appendChild(l));}function Df(t){return '[src="'+Ga(t)+'"]'}function hh(t){return "script[async]"+t}function eA(t,l,o){if(l.count++,l.instance===null)switch(l.type){case "style":var i=t.querySelector('style[data-href~="'+Ga(o.href)+'"]');if(i)return l.instance=i,Bn(i),i;var c=Qe({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),Bn(i),tl(i,"style",c),gm(i,o.precedence,t),l.instance=i;case "stylesheet":c=vf(o.href);var f=t.querySelector(dh(c));if(f)return l.state.loading|=4,l.instance=f,Bn(f),f;i=WD(o),(c=Ka.get(c))&&WS(i,c),f=(t.ownerDocument||t).createElement("link"),Bn(f);var h=f;return h._p=new Promise(function(m,x){h.onload=m,h.onerror=x;}),tl(f,"link",i),l.state.loading|=4,gm(f,o.precedence,t),l.instance=f;case "script":return f=Df(o.src),(c=t.querySelector(hh(f)))?(l.instance=c,Bn(c),c):(i=o,(c=Ka.get(f))&&(i=Qe({},o),jS(i,c)),t=t.ownerDocument||t,c=t.createElement("script"),Bn(c),tl(c,"link",i),t.head.appendChild(c),l.instance=c);case "void":return null;default:throw Error(J(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(i=l.instance,l.state.loading|=4,gm(i,o.precedence,t));return l.instance}function gm(t,l,o){for(var i=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=i.length?i[i.length-1]:null,f=c,h=0;h<i.length;h++){var m=i[h];if(m.dataset.precedence===l)f=m;else if(f!==c)break}f?f.parentNode.insertBefore(t,f.nextSibling):(l=o.nodeType===9?o.head:o,l.insertBefore(t,l.firstChild));}function WS(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.title==null&&(t.title=l.title);}function jS(t,l){t.crossOrigin==null&&(t.crossOrigin=l.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=l.referrerPolicy),t.integrity==null&&(t.integrity=l.integrity);}var xm=null;function nA(t,l,o){if(xm===null){var i=new Map,c=xm=new Map;c.set(o,i);}else c=xm,i=c.get(o),i||(i=new Map,c.set(o,i));if(i.has(t))return i;for(i.set(t,null),o=o.getElementsByTagName(t),c=0;c<o.length;c++){var f=o[c];if(!(f[ih]||f[Fn]||t==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var h=f.getAttribute(l)||"";h=t+h;var m=i.get(h);m?m.push(f):i.set(h,[f]);}}return i}function lA(t,l,o){t=t.ownerDocument||t,t.head.insertBefore(o,l==="title"?t.querySelector("head > title"):null);}function V9(t,l,o){if(o===1||l.itemProp!=null)return false;switch(t){case "meta":case "title":return true;case "style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return true;case "link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(t=l.disabled,typeof l.precedence=="string"&&t==null):true;case "script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return true}return false}function jD(t){return !(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Z9(t,l,o,i){if(o.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==false)&&(o.state.loading&4)===0){if(o.instance===null){var c=vf(i.href),f=l.querySelector(dh(c));if(f){l=f._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(t.count++,t=Qm.bind(t),l.then(t,t)),o.state.loading|=4,o.instance=f,Bn(f);return}f=l.ownerDocument||l,i=WD(i),(c=Ka.get(c))&&WS(i,c),f=f.createElement("link"),Bn(f);var h=f;h._p=new Promise(function(m,x){h.onload=m,h.onerror=x;}),tl(f,"link",i),o.instance=f;}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(o,l),(l=o.state.preload)&&(o.state.loading&3)===0&&(t.count++,o=Qm.bind(t),l.addEventListener("load",o),l.addEventListener("error",o));}}var ev=0;function J9(t,l){return t.stylesheets&&t.count===0&&bm(t,t.stylesheets),0<t.count||0<t.imgCount?function(o){var i=setTimeout(function(){if(t.stylesheets&&bm(t,t.stylesheets),t.unsuspend){var f=t.unsuspend;t.unsuspend=null,f();}},6e4+l);0<t.imgBytes&&ev===0&&(ev=62500*k9());var c=setTimeout(function(){if(t.waitingForImages=false,t.count===0&&(t.stylesheets&&bm(t,t.stylesheets),t.unsuspend)){var f=t.unsuspend;t.unsuspend=null,f();}},(t.imgBytes>ev?50:800)+l);return t.unsuspend=o,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(c);}}:null}function Qm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bm(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t();}}}var Vm=null;function bm(t,l){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vm=new Map,l.forEach(K9,t),Vm=null,Qm.call(t));}function K9(t,l){if(!(l.state.loading&4)){var o=Vm.get(t);if(o)var i=o.get(null);else {o=new Map,Vm.set(t,o);for(var c=t.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var h=c[f];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(o.set(h.dataset.precedence,h),i=h);}i&&o.set(null,i);}c=l.instance,h=c.getAttribute("data-precedence"),f=o.get(h)||i,f===i&&o.set(null,c),o.set(h,c),this.count++,i=Qm.bind(this),c.addEventListener("load",i),c.addEventListener("error",i),f?f.parentNode.insertBefore(c,f.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(c,t.firstChild)),l.state.loading|=4;}}var P0={$$typeof:$i,Provider:null,Consumer:null,_currentValue:hr,_currentValue2:hr,_threadCount:0};function F9(t,l,o,i,c,f,h,m,x){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zb(0),this.hiddenUpdates=zb(null),this.identifierPrefix=i,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map;}function qD(t,l,o,i,c,f,h,m,x,E,T,M){return t=new F9(t,l,o,h,x,E,T,M,m),l=1,f===true&&(l|=24),f=da(3,null,null,l),t.current=f,f.stateNode=t,l=yS(),l.refCount++,t.pooledCache=l,l.refCount++,f.memoizedState={element:i,isDehydrated:o,cache:l},gS(f),t}function XD(t){return t?(t=Ps,t):Ps}function GD(t,l,o,i,c,f){c=XD(c),i.context===null?i.context=c:i.pendingContext=c,i=ec(l),i.payload={element:o},f=f===void 0?null:f,f!==null&&(i.callback=f),o=nc(t,i,l),o!==null&&(Wl(o,t,l),w0(o,t,l));}function aA(t,l){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<l?o:l;}}function qS(t,l){aA(t,l),(t=t.alternate)&&aA(t,l);}function QD(t){if(t.tag===13||t.tag===31){var l=Ar(t,67108864);l!==null&&Wl(l,t,67108864),qS(t,67108864);}}function oA(t){if(t.tag===13||t.tag===31){var l=ga();l=tS(l);var o=Ar(t,l);o!==null&&Wl(o,t,l),qS(t,l);}}var Zm=true;function I9(t,l,o,i){var c=Ut.T;Ut.T=null;var f=xe.p;try{xe.p=2,XS(t,l,o,i);}finally{xe.p=f,Ut.T=c;}}function P9(t,l,o,i){var c=Ut.T;Ut.T=null;var f=xe.p;try{xe.p=8,XS(t,l,o,i);}finally{xe.p=f,Ut.T=c;}}function XS(t,l,o,i){if(Zm){var c=Jv(i);if(c===null)Pb(t,l,i,Jm,o),iA(t,i);else if(eU(c,t,l,o,i))i.stopPropagation();else if(iA(t,i),l&4&&-1<tU.indexOf(t)){for(;c!==null;){var f=Mf(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var h=sr(f.pendingLanes);if(h!==0){var m=f;for(m.pendingLanes|=2,m.entangledLanes|=2;h;){var x=1<<31-pa(h);m.entanglements[1]|=x,h&=~x;}Io(f),(ge&6)===0&&(Lm=ya()+500,fh(0));}}break;case 31:case 13:m=Ar(f,2),m!==null&&Wl(m,f,2),cp(),qS(f,2);}if(f=Jv(i),f===null&&Pb(t,l,i,Jm,o),f===c)break;c=f;}c!==null&&i.stopPropagation();}else Pb(t,l,i,null,o);}}function Jv(t){return t=aS(t),GS(t)}var Jm=null;function GS(t){if(Jm=null,t=Vs(t),t!==null){var l=nh(t);if(l===null)t=null;else {var o=l.tag;if(o===13){if(t=dA(l),t!==null)return t;t=null;}else if(o===31){if(t=hA(l),t!==null)return t;t=null;}else if(o===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;t=null;}else l!==t&&(t=null);}}return Jm=t,null}function VD(t){switch(t){case "beforetoggle":case "cancel":case "click":case "close":case "contextmenu":case "copy":case "cut":case "auxclick":case "dblclick":case "dragend":case "dragstart":case "drop":case "focusin":case "focusout":case "input":case "invalid":case "keydown":case "keypress":case "keyup":case "mousedown":case "mouseup":case "paste":case "pause":case "play":case "pointercancel":case "pointerdown":case "pointerup":case "ratechange":case "reset":case "resize":case "seeked":case "submit":case "toggle":case "touchcancel":case "touchend":case "touchstart":case "volumechange":case "change":case "selectionchange":case "textInput":case "compositionstart":case "compositionend":case "compositionupdate":case "beforeblur":case "afterblur":case "beforeinput":case "blur":case "fullscreenchange":case "focus":case "hashchange":case "popstate":case "select":case "selectstart":return 2;case "drag":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "mousemove":case "mouseout":case "mouseover":case "pointermove":case "pointerout":case "pointerover":case "scroll":case "touchmove":case "wheel":case "mouseenter":case "mouseleave":case "pointerenter":case "pointerleave":return 8;case "message":switch(W7()){case gA:return 2;case xA:return 8;case _m:case j7:return 32;case bA:return 268435456;default:return 32}default:return 32}}var Kv=false,oc=null,ic=null,uc=null,th=new Map,eh=new Map,Vu=[],tU="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function iA(t,l){switch(t){case "focusin":case "focusout":oc=null;break;case "dragenter":case "dragleave":ic=null;break;case "mouseover":case "mouseout":uc=null;break;case "pointerover":case "pointerout":th.delete(l.pointerId);break;case "gotpointercapture":case "lostpointercapture":eh.delete(l.pointerId);}}function E0(t,l,o,i,c,f){return t===null||t.nativeEvent!==f?(t={blockedOn:l,domEventName:o,eventSystemFlags:i,nativeEvent:f,targetContainers:[c]},l!==null&&(l=Mf(l),l!==null&&QD(l)),t):(t.eventSystemFlags|=i,l=t.targetContainers,c!==null&&l.indexOf(c)===-1&&l.push(c),t)}function eU(t,l,o,i,c){switch(l){case "focusin":return oc=E0(oc,t,l,o,i,c),true;case "dragenter":return ic=E0(ic,t,l,o,i,c),true;case "mouseover":return uc=E0(uc,t,l,o,i,c),true;case "pointerover":var f=c.pointerId;return th.set(f,E0(th.get(f)||null,t,l,o,i,c)),true;case "gotpointercapture":return f=c.pointerId,eh.set(f,E0(eh.get(f)||null,t,l,o,i,c)),true}return false}function ZD(t){var l=Vs(t.target);if(l!==null){var o=nh(l);if(o!==null){if(l=o.tag,l===13){if(l=dA(o),l!==null){t.blockedOn=l,q_(t.priority,function(){oA(o);});return}}else if(l===31){if(l=hA(o),l!==null){t.blockedOn=l,q_(t.priority,function(){oA(o);});return}}else if(l===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null;}function vm(t){if(t.blockedOn!==null)return false;for(var l=t.targetContainers;0<l.length;){var o=Jv(t.nativeEvent);if(o===null){o=t.nativeEvent;var i=new o.constructor(o.type,o);yv=i,o.target.dispatchEvent(i),yv=null;}else return l=Mf(o),l!==null&&QD(l),t.blockedOn=o,false;l.shift();}return true}function uA(t,l,o){vm(t)&&o.delete(l);}function nU(){Kv=false,oc!==null&&vm(oc)&&(oc=null),ic!==null&&vm(ic)&&(ic=null),uc!==null&&vm(uc)&&(uc=null),th.forEach(uA),eh.forEach(uA);}function am(t,l){t.blockedOn===l&&(t.blockedOn=null,Kv||(Kv=true,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,nU)));}var om=null;function cA(t){om!==t&&(om=t,Dn.unstable_scheduleCallback(Dn.unstable_NormalPriority,function(){om===t&&(om=null);for(var l=0;l<t.length;l+=3){var o=t[l],i=t[l+1],c=t[l+2];if(typeof i!="function"){if(GS(i||o)===null)continue;break}var f=Mf(o);f!==null&&(t.splice(l,3),l-=3,Cv(f,{pending:true,data:c,method:o.method,action:i},i,c));}}));}function Sf(t){function l(x){return am(x,t)}oc!==null&&am(oc,t),ic!==null&&am(ic,t),uc!==null&&am(uc,t),th.forEach(l),eh.forEach(l);for(var o=0;o<Vu.length;o++){var i=Vu[o];i.blockedOn===t&&(i.blockedOn=null);}for(;0<Vu.length&&(o=Vu[0],o.blockedOn===null);)ZD(o),o.blockedOn===null&&Vu.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(i=0;i<o.length;i+=3){var c=o[i],f=o[i+1],h=c[jl]||null;if(typeof f=="function")h||cA(o);else if(h){var m=null;if(f&&f.hasAttribute("formAction")){if(c=f,h=f[jl]||null)m=h.formAction;else if(GS(c)!==null)continue}else m=h.action;typeof m=="function"?o[i+1]=m:(o.splice(i,3),i-=3),cA(o);}}}function JD(){function t(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(h){return c=h})},focusReset:"manual",scroll:"manual"});}function l(){c!==null&&(c(),c=null),i||setTimeout(o,20);}function o(){if(!i&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"});}}if(typeof navigation=="object"){var i=false,c=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(o,100),function(){i=true,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),c!==null&&(c(),c=null);}}}function QS(t){this._internalRoot=t;}fp.prototype.render=QS.prototype.render=function(t){var l=this._internalRoot;if(l===null)throw Error(J(409));var o=l.current,i=ga();GD(o,i,t,l,null,null);};fp.prototype.unmount=QS.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var l=t.containerInfo;GD(t.current,2,null,t,null,null),cp(),l[Ef]=null;}};function fp(t){this._internalRoot=t;}fp.prototype.unstable_scheduleHydration=function(t){if(t){var l=_A();t={blockedOn:null,target:t,priority:l};for(var o=0;o<Vu.length&&l!==0&&l<Vu[o].priority;o++);Vu.splice(o,0,t),o===0&&ZD(t);}};var rA=sA.version;if(rA!=="19.2.5")throw Error(J(527,rA,"19.2.5"));xe.findDOMNode=function(t){var l=t._reactInternals;if(l===void 0)throw typeof t.render=="function"?Error(J(188)):(t=Object.keys(t).join(","),Error(J(268,t)));return t=U7(l),t=t!==null?yA(t):null,t=t===null?null:t.stateNode,t};var lU={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:Ut,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(M0=__REACT_DEVTOOLS_GLOBAL_HOOK__,!M0.isDisabled&&M0.supportsFiber))try{lh=M0.inject(lU),ma=M0;}catch{}var M0;dp.createRoot=function(t,l){if(!fA(t))throw Error(J(299));var o=false,i="",c=Bz,f=Wz,h=jz;return l!=null&&(l.unstable_strictMode===true&&(o=true),l.identifierPrefix!==void 0&&(i=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError)),l=qD(t,1,false,null,null,o,i,null,c,f,h,JD),t[Ef]=l.current,BS(t),new QS(l)};dp.hydrateRoot=function(t,l,o){if(!fA(t))throw Error(J(299));var i=false,c="",f=Bz,h=Wz,m=jz,x=null;return o!=null&&(o.unstable_strictMode===true&&(i=true),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onUncaughtError!==void 0&&(f=o.onUncaughtError),o.onCaughtError!==void 0&&(h=o.onCaughtError),o.onRecoverableError!==void 0&&(m=o.onRecoverableError),o.formState!==void 0&&(x=o.formState)),l=qD(t,1,true,l,o??null,i,c,x,f,h,m,JD),l.context=XD(null),o=l.current,i=ga(),i=tS(i),c=ec(i),c.callback=null,nc(o,c,i),o=i,l.current.lanes=o,oh(l,o),Io(l),t[Ef]=l.current,BS(t),new fp(l)};dp.version="19.2.5";});var FD=gl(hp=>{process.env.NODE_ENV!=="production"&&(function(){function t(e,n){for(e=e.memoizedState;e!==null&&0<n;)e=e.next,n--;return e}function l(e,n,a,u){if(a>=n.length)return u;var r=n[a],s=Mn(e)?e.slice():Ft({},e);return s[r]=l(e[r],n,a+1,u),s}function o(e,n,a){if(n.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else {for(var u=0;u<a.length-1;u++)if(n[u]!==a[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return i(e,n,a,0)}}function i(e,n,a,u){var r=n[u],s=Mn(e)?e.slice():Ft({},e);return u+1===n.length?(s[a[u]]=s[r],Mn(s)?s.splice(r,1):delete s[r]):s[r]=i(e[r],n,a,u+1),s}function c(e,n,a){var u=n[a],r=Mn(e)?e.slice():Ft({},e);return a+1===n.length?(Mn(r)?r.splice(u,1):delete r[u],r):(r[u]=c(e[u],n,a+1),r)}function f(){return false}function h(){return null}function m(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks");}function x(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");}function E(){}function T(){}function M(e){var n=[];return e.forEach(function(a){n.push(a);}),n.sort().join(", ")}function v(e,n,a,u){return new Ck(e,n,a,u)}function _(e,n){e.context===gu&&(pg(e.current,2,n,e,null,null),Gr());}function $(e,n){if(Ta!==null){var a=n.staleFamilies;n=n.updatedFamilies,od(),Y4(e.current,n,a),Gr();}}function X(e){Ta=e;}function I(e){return !(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function C(e){var n=e,a=e;if(e.alternate)for(;n.return;)n=n.return;else {e=n;do n=e,(n.flags&4098)!==0&&(a=n.return),e=n.return;while(e)}return n.tag===3?a:null}function z(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function U(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function B(e){if(C(e)!==e)throw Error("Unable to find node on an unmounted component.")}function L(e){var n=e.alternate;if(!n){if(n=C(e),n===null)throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var a=e,u=n;;){var r=a.return;if(r===null)break;var s=r.alternate;if(s===null){if(u=r.return,u!==null){a=u;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===a)return B(r),e;if(s===u)return B(r),n;s=s.sibling;}throw Error("Unable to find node on an unmounted component.")}if(a.return!==u.return)a=r,u=s;else {for(var d=false,y=r.child;y;){if(y===a){d=true,a=r,u=s;break}if(y===u){d=true,u=r,a=s;break}y=y.sibling;}if(!d){for(y=s.child;y;){if(y===a){d=true,a=s,u=r;break}if(y===u){d=true,u=s,a=r;break}y=y.sibling;}if(!d)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==u)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:n}function gt(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=gt(e),n!==null)return n;e=e.sibling;}return null}function et(e){return e===null||typeof e!="object"?null:(e=Q5&&e[Q5]||e["@@iterator"],typeof e=="function"?e:null)}function nt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===IC?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ir:return "Fragment";case Mg:return "Profiler";case _y:return "StrictMode";case Tg:return "Suspense";case Ag:return "SuspenseList";case zg:return "Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Fr:return "Portal";case Ro:return e.displayName||"Context";case _g:return (e._context.displayName||"Context")+".Consumer";case md:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ty:return n=e.displayName||null,n!==null?n:nt(e.type)||"Memo";case ta:n=e._payload,e=e._init;try{return nt(e(n))}catch{}}return null}function vt(e){return typeof e.tag=="number"?Z(e):typeof e.name=="string"?e.name:null}function Z(e){var n=e.type;switch(e.tag){case 31:return "Activity";case 24:return "Cache";case 9:return (n._context.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return "DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return "Fragment";case 26:case 27:case 5:return n;case 4:return "Portal";case 3:return "Root";case 6:return "Text";case 16:return nt(n);case 8:return n===_y?"StrictMode":"Mode";case 22:return "Offscreen";case 12:return "Profiler";case 21:return "Scope";case 13:return "Suspense";case 19:return "SuspenseList";case 25:return "TracingMarker";case 1:case 0:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=e._debugInfo,n!=null){for(var a=n.length-1;0<=a;a--)if(typeof n[a].name=="string")return n[a].name}if(e.return!==null)return Z(e.return)}return null}function re(e){return {current:e}}function Et(e,n){0>ci?console.error("Unexpected pop."):(n!==kg[ci]&&console.error("Unexpected Fiber popped."),e.current=Dg[ci],Dg[ci]=null,kg[ci]=null,ci--);}function st(e,n,a){ci++,Dg[ci]=e.current,kg[ci]=a,e.current=n;}function Mt(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function Q(e,n){st(fu,n,e),st(pd,e,e),st(su,null,e);var a=n.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?p5(n):Ei;break;default:if(a=n.tagName,n=n.namespaceURI)n=p5(n),n=g5(n,a);else switch(a){case "svg":n=Rs;break;case "math":n=M1;break;default:n=Ei;}}a=a.toLowerCase(),a=s4(null,a),a={context:n,ancestorInfo:a},Et(su,e),st(su,a,e);}function mt(e){Et(su,e),Et(pd,e),Et(fu,e);}function ht(){return Mt(su.current)}function he(e){e.memoizedState!==null&&st(Ay,e,e);var n=Mt(su.current),a=e.type,u=g5(n.context,a);a=s4(n.ancestorInfo,a),u={context:u,ancestorInfo:a},n!==u&&(st(pd,e,e),st(su,u,e));}function ye(e){pd.current===e&&(Et(su,e),Et(pd,e)),Ay.current===e&&(Et(Ay,e),u0._currentValue=or);}function kn(){}function K(){if(gd===0){V5=console.log,Z5=console.info,J5=console.warn,K5=console.error,F5=console.group,I5=console.groupCollapsed,P5=console.groupEnd;var e={configurable:true,enumerable:true,value:kn,writable:true};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e});}gd++;}function Dt(){if(gd--,gd===0){var e={configurable:true,enumerable:true,writable:true};Object.defineProperties(console,{log:Ft({},e,{value:V5}),info:Ft({},e,{value:Z5}),warn:Ft({},e,{value:J5}),error:Ft({},e,{value:K5}),group:Ft({},e,{value:F5}),groupCollapsed:Ft({},e,{value:I5}),groupEnd:Ft({},e,{value:P5})});}0>gd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");}function Pt(e){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=n,e.startsWith(`Error: react-stack-top-frame
|
|
31
|
-
`)&&(e=e.slice(29)),n=e.indexOf(`
|
|
32
|
-
`),n!==-1&&(e=e.slice(n+1)),n=e.indexOf("react_stack_bottom_frame"),n!==-1&&(n=e.lastIndexOf(`
|
|
33
|
-
`,n)),n!==-1)e=e.slice(0,n);else return "";return e}function Yt(e){if(Cg===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Cg=n&&n[1]||"",t6=-1<a.stack.indexOf(`
|
|
34
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":"";}return `
|
|
35
|
-
`+Cg+e+t6}function Xl(e,n){if(!e||Og)return "";var a=Rg.get(e);if(a!==void 0)return a;Og=true,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=q.H,q.H=null,K();try{var r={DetermineComponentFrameRoot:function(){try{if(n){var D=function(){throw Error()};if(Object.defineProperty(D.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(D,[]);}catch(lt){var Y=lt;}Reflect.construct(e,[],D);}else {try{D.call();}catch(lt){Y=lt;}e.call(D.prototype);}}else {try{throw Error()}catch(lt){Y=lt;}(D=e())&&typeof D.catch=="function"&&D.catch(function(){});}}catch(lt){if(lt&&Y&&typeof lt.stack=="string")return [lt.stack,Y.stack]}return [null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=r.DetermineComponentFrameRoot(),y=d[0],g=d[1];if(y&&g){var b=y.split(`
|
|
36
|
-
`),R=g.split(`
|
|
37
|
-
`);for(d=s=0;s<b.length&&!b[s].includes("DetermineComponentFrameRoot");)s++;for(;d<R.length&&!R[d].includes("DetermineComponentFrameRoot");)d++;if(s===b.length||d===R.length)for(s=b.length-1,d=R.length-1;1<=s&&0<=d&&b[s]!==R[d];)d--;for(;1<=s&&0<=d;s--,d--)if(b[s]!==R[d]){if(s!==1||d!==1)do if(s--,d--,0>d||b[s]!==R[d]){var w=`
|
|
38
|
-
`+b[s].replace(" at new "," at ");return e.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",e.displayName)),typeof e=="function"&&Rg.set(e,w),w}while(1<=s&&0<=d);break}}}finally{Og=false,q.H=u,Dt(),Error.prepareStackTrace=a;}return b=(b=e?e.displayName||e.name:"")?Yt(b):"",typeof e=="function"&&Rg.set(e,b),b}function yc(e,n){switch(e.tag){case 26:case 27:case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return e.child!==n&&n!==null?Yt("Suspense Fallback"):Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 15:return Xl(e.type,false);case 11:return Xl(e.type.render,false);case 1:return Xl(e.type,true);case 31:return Yt("Activity");default:return ""}}function $e(e){try{var n="",a=null;do{n+=yc(e,a);var u=e._debugInfo;if(u)for(var r=u.length-1;0<=r;r--){var s=u[r];if(typeof s.name=="string"){var d=n;t:{var y=s.name,g=s.env,b=s.debugLocation;if(b!=null){var R=Pt(b),w=R.lastIndexOf(`
|
|
39
|
-
`),D=w===-1?R:R.slice(w+1);if(D.indexOf(y)!==-1){var Y=`
|
|
40
|
-
`+D;break t}}Y=Yt(y+(g?" ["+g+"]":""));}n=d+Y;}}a=e,e=e.return;}while(e);return n}catch(lt){return `
|
|
41
|
-
Error generating stack: `+lt.message+`
|
|
42
|
-
`+lt.stack}}function ul(e){return (e=e?e.displayName||e.name:"")?Yt(e):""}function Fa(){if(ea===null)return null;var e=ea._debugOwner;return e!=null?vt(e):null}function Dr(){if(ea===null)return "";var e=ea;try{var n="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:n+=Yt(e.type);break;case 13:n+=Yt("Suspense");break;case 19:n+=Yt("SuspenseList");break;case 31:n+=Yt("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||n!==""||(n+=ul(e.type));break;case 11:e._debugOwner||n!==""||(n+=ul(e.type.render));}for(;e;)if(typeof e.tag=="number"){var a=e;e=a._debugOwner;var u=a._debugStack;if(e&&u){var r=Pt(u);r!==""&&(n+=`
|
|
43
|
-
`+r);}}else if(e.debugStack!=null){var s=e.debugStack;(e=e.owner)&&s&&(n+=`
|
|
44
|
-
`+Pt(s));}else break;var d=n;}catch(y){d=`
|
|
45
|
-
Error generating stack: `+y.message+`
|
|
46
|
-
`+y.stack;}return d}function dt(e,n,a,u,r,s,d){var y=ea;kr(e);try{return e!==null&&e._debugTask?e._debugTask.run(n.bind(null,a,u,r,s,d)):n(a,u,r,s,d)}finally{kr(y);}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function kr(e){q.getCurrentStack=e===null?null:Dr,wo=false,ea=e;}function mc(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Zi(e){try{return Cn(e),!1}catch{return true}}function Cn(e){return ""+e}function Se(e,n){if(Zi(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,mc(e)),Cn(e)}function Of(e,n){if(Zi(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,mc(e)),Cn(e)}function jt(e){if(Zi(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",mc(e)),Cn(e)}function Cr(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return false;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return true;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),true;try{ts=n.inject(e),ll=n;}catch(a){console.error("React instrumentation encountered an error: %o.",a);}return !!n.checkDCE}function Oe(e){if(typeof oO=="function"&&iO(e),ll&&typeof ll.setStrictMode=="function")try{ll.setStrictMode(ts,e);}catch(n){Uo||(Uo=true,console.error("React instrumentation encountered an error: %o",n));}}function yh(e){return e>>>=0,e===0?32:31-(uO(e)/cO|0)|0}function yo(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),e}}function pc(e,n,a){var u=e.pendingLanes;if(u===0)return 0;var r=0,s=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=u&134217727;return y!==0?(u=y&~s,u!==0?r=yo(u):(d&=y,d!==0?r=yo(d):a||(a=y&~e,a!==0&&(r=yo(a))))):(y=u&~s,y!==0?r=yo(y):d!==0?r=yo(d):a||(a=u&~e,a!==0&&(r=yo(a)))),r===0?0:n!==0&&n!==r&&(n&s)===0&&(s=r&-r,a=n&-n,s>=a||s===32&&(a&4194048)!==0)?n:r}function gc(e,n){return (e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function pp(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return -1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return -1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function Or(){var e=ky;return ky<<=1,(ky&62914560)===0&&(ky=4194304),e}function Rr(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function Ji(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0);}function mh(e,n,a,u,r,s){var d=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,g=e.expirationTimes,b=e.hiddenUpdates;for(a=d&~a;0<a;){var R=31-rl(a),w=1<<R;y[R]=0,g[R]=-1;var D=b[R];if(D!==null)for(b[R]=null,R=0;R<D.length;R++){var Y=D[R];Y!==null&&(Y.lane&=-536870913);}a&=~w;}u!==0&&xc(e,u,0),s!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=s&~(d&~n));}function xc(e,n,a){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-rl(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|a&261930;}function bc(e,n){var a=e.entangledLanes|=n;for(e=e.entanglements;a;){var u=31-rl(a),r=1<<u;r&n|e[u]&n&&(e[u]|=n),a&=~r;}}function vc(e,n){var a=n&-n;return a=(a&42)!==0?1:Sc(a),(a&(e.suspendedLanes|n))!==0?0:a}function Sc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0;}return e}function Rf(e,n,a){if(No)for(e=e.pendingUpdatersLaneMap;0<a;){var u=31-rl(a),r=1<<u;e[u].add(n),a&=~r;}}function Ki(e,n){if(No)for(var a=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<n;){var r=31-rl(n);e=1<<r,r=a[r],0<r.size&&(r.forEach(function(s){var d=s.alternate;d!==null&&u.has(d)||u.add(s);}),r.clear()),n&=~e;}}function S(e){return e&=-e,na<e?no<e?(e&134217727)!==0?$o:Cy:no:na}function N(){var e=pe.p;return e!==0?e:(e=window.event,e===void 0?$o:Y5(e.type))}function tt(e,n){var a=pe.p;try{return pe.p=e,n()}finally{pe.p=a;}}function ot(e){delete e[Gn],delete e[sl],delete e[Hg],delete e[rO],delete e[sO];}function xt(e){var n=e[Gn];if(n)return n;for(var a=e.parentNode;a;){if(n=a[hu]||a[Gn]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(e=T5(e);e!==null;){if(a=e[Gn])return a;e=T5(e);}return n}e=a,a=e.parentNode;}return null}function $t(e){if(e=e[Gn]||e[hu]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ht(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function de(e){var n=e[e6];return n||(n=e[e6]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function _t(e){e[xd]=true;}function el(e,n){Gl(e,n),Gl(e+"Capture",n);}function Gl(e,n){Hc[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Hc[e]=n;var a=e.toLowerCase();for(Lg[a]=e,e==="onDoubleClick"&&(Lg.ondblclick=e),e=0;e<n.length;e++)n6.add(n[e]);}function Fi(e,n){fO[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(e==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.");}function wf(e){return eo.call(a6,e)?true:eo.call(l6,e)?false:dO.test(e)?a6[e]=true:(l6[e]=true,console.error("Invalid attribute name: `%s`",e),false)}function JS(e,n,a){if(wf(n)){if(!e.hasAttribute(n)){switch(typeof a){case "symbol":case "object":return a;case "function":return a;case "boolean":if(a===false)return a}return a===void 0?void 0:null}return e=e.getAttribute(n),e===""&&a===true?true:(Se(a,n),e===""+a?a:e)}}function ph(e,n,a){if(wf(n))if(a===null)e.removeAttribute(n);else {switch(typeof a){case "undefined":case "function":case "symbol":e.removeAttribute(n);return;case "boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}Se(a,n),e.setAttribute(n,""+a);}}function gh(e,n,a){if(a===null)e.removeAttribute(n);else {switch(typeof a){case "undefined":case "function":case "symbol":case "boolean":e.removeAttribute(n);return}Se(a,n),e.setAttribute(n,""+a);}}function Po(e,n,a,u){if(u===null)e.removeAttribute(a);else {switch(typeof u){case "undefined":case "function":case "symbol":case "boolean":e.removeAttribute(a);return}Se(u,a),e.setAttributeNS(n,a,""+u);}}function va(e){switch(typeof e){case "bigint":case "boolean":case "number":case "string":case "undefined":return e;case "object":return jt(e),e;default:return ""}}function KS(e){var n=e.type;return (e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function uk(e,n,a){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var r=u.get,s=u.set;return Object.defineProperty(e,n,{configurable:true,get:function(){return r.call(this)},set:function(d){jt(d),a=""+d,s.call(this,d);}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return a},setValue:function(d){jt(d),a=""+d;},stopTracking:function(){e._valueTracker=null,delete e[n];}}}}function gp(e){if(!e._valueTracker){var n=KS(e)?"checked":"value";e._valueTracker=uk(e,n,""+e[n]);}}function FS(e){if(!e)return false;var n=e._valueTracker;if(!n)return true;var a=n.getValue(),u="";return e&&(u=KS(e)?e.checked?"true":"false":e.value),e=u,e!==a?(n.setValue(e),true):false}function xh(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sa(e){return e.replace(hO,function(n){return "\\"+n.charCodeAt(0).toString(16)+" "})}function IS(e,n){n.checked===void 0||n.defaultChecked===void 0||i6||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Fa()||"A component",n.type),i6=true),n.value===void 0||n.defaultValue===void 0||o6||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Fa()||"A component",n.type),o6=true);}function xp(e,n,a,u,r,s,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(Se(d,"type"),e.type=d):e.removeAttribute("type"),n!=null?d==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+va(n)):e.value!==""+va(n)&&(e.value=""+va(n)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),n!=null?bp(e,d,va(n)):a!=null?bp(e,d,va(a)):u!=null&&e.removeAttribute("value"),r==null&&s!=null&&(e.defaultChecked=!!s),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?(Se(y,"name"),e.name=""+va(y)):e.removeAttribute("name");}function PS(e,n,a,u,r,s,d,y){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(Se(s,"type"),e.type=s),n!=null||a!=null){if(!(s!=="submit"&&s!=="reset"||n!=null)){gp(e);return}a=a!=null?""+va(a):"",n=n!=null?""+va(n):a,y||n===e.value||(e.value=n),e.defaultValue=n;}u=u??r,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=y?e.checked:!!u,e.defaultChecked=!!u,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(Se(d,"name"),e.name=d),gp(e);}function bp(e,n,a){n==="number"&&xh(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a);}function t4(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?Eg.Children.forEach(n.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||c6||(c6=true,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."));}):n.dangerouslySetInnerHTML==null||r6||(r6=true,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||u6||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),u6=true);}function e4(){var e=Fa();return e?`
|
|
47
|
-
|
|
48
|
-
Check the render method of \``+e+"`.":""}function wr(e,n,a,u){if(e=e.options,n){n={};for(var r=0;r<a.length;r++)n["$"+a[r]]=true;for(a=0;a<e.length;a++)r=n.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&u&&(e[a].defaultSelected=true);}else {for(a=""+va(a),n=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=true,u&&(e[r].defaultSelected=true);return}n!==null||e[r].disabled||(n=e[r]);}n!==null&&(n.selected=true);}}function n4(e,n){for(e=0;e<f6.length;e++){var a=f6[e];if(n[a]!=null){var u=Mn(n[a]);n.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,e4()):!n.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,e4());}}n.value===void 0||n.defaultValue===void 0||s6||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),s6=true);}function l4(e,n){n.value===void 0||n.defaultValue===void 0||d6||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Fa()||"A component"),d6=true),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");}function a4(e,n,a){if(n!=null&&(n=""+va(n),n!==e.value&&(e.value=n),a==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=a!=null?""+va(a):"";}function o4(e,n,a,u){if(n==null){if(u!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Mn(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0];}a=u;}a==null&&(a=""),n=a;}a=va(n),e.defaultValue=a,u=e.textContent,u===a&&u!==""&&u!==null&&(e.value=u),gp(e);}function i4(e,n){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?i4(e.children[0],n):e}function Ql(e){return " "+" ".repeat(e)}function Ur(e){return "+ "+" ".repeat(e)}function Ec(e){return "- "+" ".repeat(e)}function u4(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return "Lazy";case 31:return "Activity";case 13:return "Suspense";case 19:return "SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Uf(e,n){return h6.test(e)?(e=JSON.stringify(e),e.length>n-2?8>n?'{"..."}':"{"+e.slice(0,n-7)+'..."}':"{"+e+"}"):e.length>n?5>n?'{"..."}':e.slice(0,n-3)+"...":e}function bh(e,n,a){var u=120-2*a;if(n===null)return Ur(a)+Uf(e,u)+`
|
|
49
|
-
`;if(typeof n=="string"){for(var r=0;r<n.length&&r<e.length&&n.charCodeAt(r)===e.charCodeAt(r);r++);return r>u-8&&10<r&&(e="..."+e.slice(r-8),n="..."+n.slice(r-8)),Ur(a)+Uf(e,u)+`
|
|
50
|
-
`+Ec(a)+Uf(n,u)+`
|
|
51
|
-
`}return Ql(a)+Uf(e,u)+`
|
|
52
|
-
`}function vp(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(n,a){return a})}function Nf(e,n){switch(typeof e){case "string":return e=JSON.stringify(e),e.length>n?5>n?'"..."':e.slice(0,n-4)+'..."':e;case "object":if(e===null)return "null";if(Mn(e))return "[...]";if(e.$$typeof===Oo)return (n=nt(e.type))?"<"+n+">":"<...>";var a=vp(e);if(a==="Object"){a="",n-=2;for(var u in e)if(e.hasOwnProperty(u)){var r=JSON.stringify(u);if(r!=='"'+u+'"'&&(u=r),n-=u.length-2,r=Nf(e[u],15>n?n:15),n-=r.length,0>n){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+u+":"+r;}return "{"+a+"}"}return a;case "function":return (n=e.displayName||e.name)?"function "+n:"function";default:return String(e)}}function Nr(e,n){return typeof e!="string"||h6.test(e)?"{"+Nf(e,n-2)+"}":e.length>n-2?5>n?'"..."':'"'+e.slice(0,n-5)+'..."':'"'+e+'"'}function Sp(e,n,a){var u=120-a.length-e.length,r=[],s;for(s in n)if(n.hasOwnProperty(s)&&s!=="children"){var d=Nr(n[s],120-a.length-s.length-1);u-=s.length+d.length+2,r.push(s+"="+d);}return r.length===0?a+"<"+e+`>
|
|
53
|
-
`:0<u?a+"<"+e+" "+r.join(" ")+`>
|
|
54
|
-
`:a+"<"+e+`
|
|
55
|
-
`+a+" "+r.join(`
|
|
56
|
-
`+a+" ")+`
|
|
57
|
-
`+a+`>
|
|
58
|
-
`}function ck(e,n,a){var u="",r=Ft({},n),s;for(s in e)if(e.hasOwnProperty(s)){delete r[s];var d=120-2*a-s.length-2,y=Nf(e[s],d);n.hasOwnProperty(s)?(d=Nf(n[s],d),u+=Ur(a)+s+": "+y+`
|
|
59
|
-
`,u+=Ec(a)+s+": "+d+`
|
|
60
|
-
`):u+=Ur(a)+s+": "+y+`
|
|
61
|
-
`;}for(var g in r)r.hasOwnProperty(g)&&(e=Nf(r[g],120-2*a-g.length-2),u+=Ec(a)+g+": "+e+`
|
|
62
|
-
`);return u}function rk(e,n,a,u){var r="",s=new Map;for(b in a)a.hasOwnProperty(b)&&s.set(b.toLowerCase(),b);if(s.size===1&&s.has("children"))r+=Sp(e,n,Ql(u));else {for(var d in n)if(n.hasOwnProperty(d)&&d!=="children"){var y=120-2*(u+1)-d.length-1,g=s.get(d.toLowerCase());if(g!==void 0){s.delete(d.toLowerCase());var b=n[d];g=a[g];var R=Nr(b,y);y=Nr(g,y),typeof b=="object"&&b!==null&&typeof g=="object"&&g!==null&&vp(b)==="Object"&&vp(g)==="Object"&&(2<Object.keys(b).length||2<Object.keys(g).length||-1<R.indexOf("...")||-1<y.indexOf("..."))?r+=Ql(u+1)+d+`={{
|
|
63
|
-
`+ck(b,g,u+2)+Ql(u+1)+`}}
|
|
64
|
-
`:(r+=Ur(u+1)+d+"="+R+`
|
|
65
|
-
`,r+=Ec(u+1)+d+"="+y+`
|
|
66
|
-
`);}else r+=Ql(u+1)+d+"="+Nr(n[d],y)+`
|
|
67
|
-
`;}s.forEach(function(w){if(w!=="children"){var D=120-2*(u+1)-w.length-1;r+=Ec(u+1)+w+"="+Nr(a[w],D)+`
|
|
68
|
-
`;}}),r=r===""?Ql(u)+"<"+e+`>
|
|
69
|
-
`:Ql(u)+"<"+e+`
|
|
70
|
-
`+r+Ql(u)+`>
|
|
71
|
-
`;}return e=a.children,n=n.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(s="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(s=""+n),r+=bh(s,""+e,u+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(r=e==null?r+bh(""+n,null,u+1):r+bh(""+n,void 0,u+1)),r}function c4(e,n){var a=u4(e);if(a===null){for(a="",e=e.child;e;)a+=c4(e,n),e=e.sibling;return a}return Ql(n)+"<"+a+`>
|
|
72
|
-
`}function Ep(e,n){var a=i4(e,n);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Ql(n)+`...
|
|
73
|
-
`+Ep(a,n+1);a="";var u=e.fiber._debugInfo;if(u)for(var r=0;r<u.length;r++){var s=u[r].name;typeof s=="string"&&(a+=Ql(n)+"<"+s+`>
|
|
74
|
-
`,n++);}if(u="",r=e.fiber.pendingProps,e.fiber.tag===6)u=bh(r,e.serverProps,n),n++;else if(s=u4(e.fiber),s!==null)if(e.serverProps===void 0){u=n;var d=120-2*u-s.length-2,y="";for(b in r)if(r.hasOwnProperty(b)&&b!=="children"){var g=Nr(r[b],15);if(d-=b.length+g.length+2,0>d){y+=" ...";break}y+=" "+b+"="+g;}u=Ql(u)+"<"+s+y+`>
|
|
75
|
-
`,n++;}else e.serverProps===null?(u=Sp(s,r,Ur(n)),n++):typeof e.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(u=rk(s,r,e.serverProps,n),n++);var b="";for(r=e.fiber.child,s=0;r&&s<e.children.length;)d=e.children[s],d.fiber===r?(b+=Ep(d,n),s++):b+=c4(r,n),r=r.sibling;for(r&&0<e.children.length&&(b+=Ql(n)+`...
|
|
76
|
-
`),r=e.serverTail,e.serverProps===null&&n--,e=0;e<r.length;e++)s=r[e],b=typeof s=="string"?b+(Ec(n)+Uf(s,120-2*n)+`
|
|
77
|
-
`):b+Sp(s.type,s.props,Ec(n));return a+u+b}function Mp(e){try{return `
|
|
78
|
-
|
|
79
|
-
`+Ep(e,0)}catch{return ""}}function r4(e,n,a){for(var u=n,r=null,s=0;u;)u===e&&(s=0),r={fiber:u,children:r!==null?[r]:[],serverProps:u===n?a:u===e?null:void 0,serverTail:[],distanceFromLeaf:s},s++,u=u.return;return r!==null?Mp(r).replaceAll(/^[+-]/gm,">"):""}function s4(e,n){var a=Ft({},e||m6),u={tag:n};return y6.indexOf(n)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),mO.indexOf(n)!==-1&&(a.pTagInButtonScope=null),yO.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=u,n==="form"&&(a.formTag=u),n==="a"&&(a.aTagInScope=u),n==="button"&&(a.buttonTagInScope=u),n==="nobr"&&(a.nobrTagInScope=u),n==="p"&&(a.pTagInButtonScope=u),n==="li"&&(a.listItemTagAutoclosing=u),(n==="dd"||n==="dt")&&(a.dlItemTagAutoclosing=u),n==="#document"||n==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=u),e!==null||n!=="#document"&&n!=="html"&&n!=="body"?a.implicitRootScope===true&&(a.implicitRootScope=false):a.implicitRootScope=true,a}function f4(e,n,a){switch(n){case "select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case "optgroup":return e==="option"||e==="#text";case "option":return e==="#text";case "tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case "tbody":case "thead":case "tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case "colgroup":return e==="col"||e==="template";case "table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case "head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case "html":if(a)break;return e==="head"||e==="body"||e==="frameset";case "frameset":return e==="frame";case "#document":if(!a)return e==="html"}switch(e){case "h1":case "h2":case "h3":case "h4":case "h5":case "h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case "rp":case "rt":return pO.indexOf(n)===-1;case "caption":case "col":case "colgroup":case "frameset":case "frame":case "tbody":case "td":case "tfoot":case "th":case "thead":case "tr":return n==null;case "head":return a||n===null;case "html":return a&&n==="#document"||n===null;case "body":return a&&(n==="#document"||n==="html")||n===null}return true}function sk(e,n){switch(e){case "address":case "article":case "aside":case "blockquote":case "center":case "details":case "dialog":case "dir":case "div":case "dl":case "fieldset":case "figcaption":case "figure":case "footer":case "header":case "hgroup":case "main":case "menu":case "nav":case "ol":case "p":case "section":case "summary":case "ul":case "pre":case "listing":case "table":case "hr":case "xmp":case "h1":case "h2":case "h3":case "h4":case "h5":case "h6":return n.pTagInButtonScope;case "form":return n.formTag||n.pTagInButtonScope;case "li":return n.listItemTagAutoclosing;case "dd":case "dt":return n.dlItemTagAutoclosing;case "button":return n.buttonTagInScope;case "a":return n.aTagInScope;case "nobr":return n.nobrTagInScope}return null}function d4(e,n){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===n)return e}e=e.return;}return null}function _p(e,n){n=n||m6;var a=n.current;if(n=(a=f4(e,a&&a.tag,n.implicitRootScope)?null:a)?null:sk(e,n),n=a||n,!n)return true;var u=n.tag;if(n=String(!!a)+"|"+e+"|"+u,Oy[n])return false;Oy[n]=true;var r=(n=ea)?d4(n.return,u):null,s=n!==null&&r!==null?r4(r,n,null):"",d="<"+e+">";return a?(a="",u==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
|
|
80
|
-
This will cause a hydration error.%s`,d,u,a,s)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
81
|
-
This will cause a hydration error.%s`,d,u,s),n&&(e=n.return,r===null||e===null||r===e&&e._debugOwner===n._debugOwner||dt(r,function(){console.error(`<%s> cannot contain a nested %s.
|
|
82
|
-
See this log for the ancestor stack trace.`,u,d);})),false}function vh(e,n,a){if(a||f4("#text",n,false))return true;if(a="#text|"+n,Oy[a])return false;Oy[a]=true;var u=(a=ea)?d4(a,n):null;return a=a!==null&&u!==null?r4(u,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
83
|
-
This will cause a hydration error.%s`,n,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
84
|
-
This will cause a hydration error.%s`,n,a),false}function $f(e,n){if(n){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=n;return}}e.textContent=n;}function fk(e){return e.replace(bO,function(n,a){return a.toUpperCase()})}function h4(e,n,a){var u=n.indexOf("--")===0;u||(-1<n.indexOf("-")?es.hasOwnProperty(n)&&es[n]||(es[n]=true,console.error("Unsupported style property %s. Did you mean %s?",n,fk(n.replace(xO,"ms-")))):gO.test(n)?es.hasOwnProperty(n)&&es[n]||(es[n]=true,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!x6.test(a)||Bg.hasOwnProperty(a)&&Bg[a]||(Bg[a]=true,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(x6,""))),typeof a=="number"&&(isNaN(a)?b6||(b6=true,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(a)||v6||(v6=true,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),a==null||typeof a=="boolean"||a===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,a):typeof a!="number"||a===0||S6.has(n)?n==="float"?e.cssFloat=a:(Of(a,n),e[n]=(""+a).trim()):e[n]=a+"px";}function y4(e,n,a){if(n!=null&&typeof n!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(n&&Object.freeze(n),e=e.style,a!=null){if(n){var u={};if(a){for(var r in a)if(a.hasOwnProperty(r)&&!n.hasOwnProperty(r))for(var s=Yg[r]||[r],d=0;d<s.length;d++)u[s[d]]=r;}for(var y in n)if(n.hasOwnProperty(y)&&(!a||a[y]!==n[y]))for(r=Yg[y]||[y],s=0;s<r.length;s++)u[r[s]]=y;y={};for(var g in n)for(r=Yg[g]||[g],s=0;s<r.length;s++)y[r[s]]=g;g={};for(var b in u)if(r=u[b],(s=y[b])&&r!==s&&(d=r+","+s,!g[d])){g[d]=true,d=console;var R=n[r];d.error.call(d,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",R==null||typeof R=="boolean"||R===""?"Removing":"Updating",r,s);}}for(var w in a)!a.hasOwnProperty(w)||n!=null&&n.hasOwnProperty(w)||(w.indexOf("--")===0?e.setProperty(w,""):w==="float"?e.cssFloat="":e[w]="");for(var D in n)b=n[D],n.hasOwnProperty(D)&&a[D]!==b&&h4(e,D,b);}else for(u in n)n.hasOwnProperty(u)&&h4(e,u,n[u]);}function Hf(e){if(e.indexOf("-")===-1)return false;switch(e){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return false;default:return true}}function m4(e){return vO.get(e)||e}function dk(e,n){if(eo.call(ls,n)&&ls[n])return true;if(EO.test(n)){if(e="aria-"+n.slice(4).toLowerCase(),e=E6.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),ls[n]=true;if(n!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,e),ls[n]=true}if(SO.test(n)){if(e=n.toLowerCase(),e=E6.hasOwnProperty(e)?e:null,e==null)return ls[n]=true,false;n!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,e),ls[n]=true);}return true}function hk(e,n){var a=[],u;for(u in n)dk(e,u)||a.push(u);n=a.map(function(r){return "`"+r+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e);}function yk(e,n,a,u){if(eo.call(fl,n)&&fl[n])return true;var r=n.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),fl[n]=true;if(typeof a=="function"&&(e==="form"&&n==="action"||e==="input"&&n==="formAction"||e==="button"&&n==="formAction"))return true;if(u!=null){if(e=u.possibleRegistrationNames,u.registrationNameDependencies.hasOwnProperty(n))return true;if(u=e.hasOwnProperty(r)?e[r]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,u),fl[n]=true;if(_6.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),fl[n]=true}else if(_6.test(n))return MO.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),fl[n]=true;if(_O.test(n)||TO.test(n))return true;if(r==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),fl[n]=true;if(r==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),fl[n]=true;if(r==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),fl[n]=true;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),fl[n]=true;if(wy.hasOwnProperty(r)){if(r=wy[r],r!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,r),fl[n]=true}else if(n!==r)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,r),fl[n]=true;switch(n){case "dangerouslySetInnerHTML":case "children":case "style":case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":return true;case "innerText":case "textContent":return true}switch(typeof a){case "boolean":switch(n){case "autoFocus":case "checked":case "multiple":case "muted":case "selected":case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":case "capture":case "download":case "inert":return true;default:return r=n.toLowerCase().slice(0,5),r==="data-"||r==="aria-"?true:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,n,n,a,n):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,n,n,a,n,n,n),fl[n]=true)}case "function":case "symbol":return fl[n]=true,false;case "string":if(a==="false"||a==="true"){switch(n){case "checked":case "selected":case "multiple":case "muted":case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":case "inert":break;default:return true}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,n,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,a),fl[n]=true;}}return true}function mk(e,n,a){var u=[],r;for(r in n)yk(e,r,n[r],a)||u.push(r);n=u.map(function(s){return "`"+s+"`"}).join(", "),u.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e):1<u.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,e);}function Lf(e){return AO.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ti(){}function Tp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function p4(e){var n=$t(e);if(n&&(e=n.stateNode)){var a=e[sl]||null;t:switch(e=n.stateNode,n.type){case "input":if(xp(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=e;a.parentNode;)a=a.parentNode;for(Se(n,"name"),a=a.querySelectorAll('input[name="'+Sa(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var u=a[n];if(u!==e&&u.form===e.form){var r=u[sl]||null;if(!r)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");xp(u,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name);}}for(n=0;n<a.length;n++)u=a[n],u.form===e.form&&FS(u);}break t;case "textarea":a4(e,a.value,a.defaultValue);break t;case "select":n=a.value,n!=null&&wr(e,!!a.multiple,n,false);}}}function g4(e,n,a){if(Wg)return e(n,a);Wg=true;try{var u=e(n);return u}finally{if(Wg=false,(as!==null||os!==null)&&(Gr(),as&&(n=as,e=os,os=as=null,p4(n),e)))for(n=0;n<e.length;n++)p4(e[n]);}}function Yf(e,n){var a=e.stateNode;if(a===null)return null;var u=a[sl]||null;if(u===null)return null;a=u[n];t:switch(n){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break t;default:e=false;}if(e)return null;if(a&&typeof a!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function x4(){if(Uy)return Uy;var e,n=qg,a=n.length,u,r="value"in yu?yu.value:yu.textContent,s=r.length;for(e=0;e<a&&n[e]===r[e];e++);var d=a-e;for(u=1;u<=d&&n[a-u]===r[s-u];u++);return Uy=r.slice(e,1<u?1-u:void 0)}function Sh(e){var n=e.keyCode;return "charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Eh(){return true}function b4(){return false}function Al(e){function n(a,u,r,s,d){this._reactName=a,this._targetInst=r,this.type=u,this.nativeEvent=s,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(s):s[y]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===false)?Eh:b4,this.isPropagationStopped=b4,this}return Ft(n.prototype,{preventDefault:function(){this.defaultPrevented=true;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=false),this.isDefaultPrevented=Eh);},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=true),this.isPropagationStopped=Eh);},persist:function(){},isPersistent:Eh}),n}function pk(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=YO[e])?!!n[e]:false}function Ap(){return pk}function v4(e,n){switch(e){case "keyup":return FO.indexOf(n.keyCode)!==-1;case "keydown":return n.keyCode!==D6;case "keypress":case "mousedown":case "focusout":return true;default:return false}}function S4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function gk(e,n){switch(e){case "compositionend":return S4(n);case "keypress":return n.which!==C6?null:(R6=true,O6);case "textInput":return e=n.data,e===O6&&R6?null:e;default:return null}}function xk(e,n){if(is)return e==="compositionend"||!Vg&&v4(e,n)?(e=x4(),Uy=qg=yu=null,is=false,e):null;switch(e){case "paste":return null;case "keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case "compositionend":return k6&&n.locale!=="ko"?null:n.data;default:return null}}function E4(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!PO[e.type]:n==="textarea"}function bk(e){if(!Ho)return false;e="on"+e;var n=e in document;return n||(n=document.createElement("div"),n.setAttribute(e,"return;"),n=typeof n[e]=="function"),n}function M4(e,n,a,u){as?os?os.push(u):os=[u]:as=u,n=yy(n,"onChange"),0<n.length&&(a=new Ny("onChange","change",null,a,u),e.push({event:a,listeners:n}));}function vk(e){o5(e,0);}function Mh(e){var n=Ht(e);if(FS(n))return e}function _4(e,n){if(e==="change")return n}function T4(){_d&&(_d.detachEvent("onpropertychange",A4),Td=_d=null);}function A4(e){if(e.propertyName==="value"&&Mh(Td)){var n=[];M4(n,Td,e,Tp(e)),g4(vk,n);}}function Sk(e,n,a){e==="focusin"?(T4(),_d=n,Td=a,_d.attachEvent("onpropertychange",A4)):e==="focusout"&&T4();}function Ek(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mh(Td)}function Mk(e,n){if(e==="click")return Mh(n)}function _k(e,n){if(e==="input"||e==="change")return Mh(n)}function Tk(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function Bf(e,n){if(dl(e,n))return true;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return false;var a=Object.keys(e),u=Object.keys(n);if(a.length!==u.length)return false;for(u=0;u<a.length;u++){var r=a[u];if(!eo.call(n,r)||!dl(e[r],n[r]))return false}return true}function z4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function D4(e,n){var a=z4(e);e=0;for(var u;a;){if(a.nodeType===3){if(u=e+a.textContent.length,e<=n&&u>=n)return {node:a,offset:n-e};e=u;}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode;}a=void 0;}a=z4(a);}}function k4(e,n){return e&&n?e===n?true:e&&e.nodeType===3?false:n&&n.nodeType===3?k4(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):false:false}function C4(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=xh(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string";}catch{a=false;}if(a)e=n.contentWindow;else break;n=xh(e.document);}return n}function zp(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function O4(e,n,a){var u=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Jg||us==null||us!==xh(u)||(u=us,"selectionStart"in u&&zp(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ad&&Bf(Ad,u)||(Ad=u,u=yy(Zg,"onSelect"),0<u.length&&(n=new Ny("onSelect","select",null,n,a),e.push({event:n,listeners:u}),n.target=us)));}function Mc(e,n){var a={};return a[e.toLowerCase()]=n.toLowerCase(),a["Webkit"+e]="webkit"+n,a["Moz"+e]="moz"+n,a}function _c(e){if(Kg[e])return Kg[e];if(!cs[e])return e;var n=cs[e],a;for(a in n)if(n.hasOwnProperty(a)&&a in U6)return Kg[e]=n[a];return e}function Ia(e,n){Y6.set(e,n),el(n,[e]);}function Ak(e){for(var n=Hy,a=0;a<e.length;a++){var u=e[a];if(typeof u=="object"&&u!==null)if(Mn(u)&&u.length===2&&typeof u[0]=="string"){if(n!==Hy&&n!==ex)return Pg;n=ex;}else return Pg;else {if(typeof u=="function"||typeof u=="string"&&50<u.length||n!==Hy&&n!==tx)return Pg;n=tx;}}return n}function Dp(e,n,a,u){for(var r in e)eo.call(e,r)&&r[0]!=="_"&&mo(r,e[r],n,a,u);}function mo(e,n,a,u,r){switch(typeof n){case "object":if(n===null){n="null";break}else {if(n.$$typeof===Oo){var s=nt(n.type)||"\u2026",d=n.key;n=n.props;var y=Object.keys(n),g=y.length;if(d==null&&g===0){n="<"+s+" />";break}if(3>u||g===1&&y[0]==="children"&&d==null){n="<"+s+" \u2026 />";break}a.push([r+"\xA0\xA0".repeat(u)+e,"<"+s]),d!==null&&mo("key",d,a,u+1,r),e=false;for(var b in n)b==="children"?n.children!=null&&(!Mn(n.children)||0<n.children.length)&&(e=true):eo.call(n,b)&&b[0]!=="_"&&mo(b,n[b],a,u+1,r);a.push(["",e?">\u2026</"+s+">":"/>"]);return}if(s=Object.prototype.toString.call(n),s=s.slice(8,s.length-1),s==="Array"){if(b=Ak(n),b===tx||b===Hy){n=JSON.stringify(n);break}else if(b===ex){for(a.push([r+"\xA0\xA0".repeat(u)+e,""]),e=0;e<n.length;e++)s=n[e],mo(s[0],s[1],a,u+1,r);return}}if(s==="Promise"){if(n.status==="fulfilled"){if(s=a.length,mo(e,n.value,a,u,r),a.length>s){a=a[s],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(n.status==="rejected"&&(s=a.length,mo(e,n.reason,a,u,r),a.length>s)){a=a[s],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["\xA0\xA0".repeat(u)+e,"Promise"]);return}s==="Object"&&(b=Object.getPrototypeOf(n))&&typeof b.constructor=="function"&&(s=b.constructor.name),a.push([r+"\xA0\xA0".repeat(u)+e,s==="Object"?3>u?"":"\u2026":s]),3>u&&Dp(n,a,u+1,r);return}case "function":n=n.name===""?"() => {}":n.name+"() {}";break;case "string":n=n===iR?"\u2026":JSON.stringify(n);break;case "undefined":n="undefined";break;case "boolean":n=n?"true":"false";break;default:n=String(n);}a.push([r+"\xA0\xA0".repeat(u)+e,n]);}function R4(e,n,a,u){var r=true;for(d in e)d in n||(a.push([Ly+"\xA0\xA0".repeat(u)+d,"\u2026"]),r=false);for(var s in n)if(s in e){var d=e[s],y=n[s];if(d!==y){if(u===0&&s==="children")r="\xA0\xA0".repeat(u)+s,a.push([Ly+r,"\u2026"],[Yy+r,"\u2026"]);else {if(!(3<=u)){if(typeof d=="object"&&typeof y=="object"&&d!==null&&y!==null&&d.$$typeof===y.$$typeof)if(y.$$typeof===Oo){if(d.type===y.type&&d.key===y.key){d=nt(y.type)||"\u2026",r="\xA0\xA0".repeat(u)+s,d="<"+d+" \u2026 />",a.push([Ly+r,d],[Yy+r,d]),r=false;continue}}else {var g=Object.prototype.toString.call(d),b=Object.prototype.toString.call(y);if(g===b&&(b==="[object Object]"||b==="[object Array]")){g=[j6+"\xA0\xA0".repeat(u)+s,b==="[object Array]"?"Array":""],a.push(g),b=a.length,R4(d,y,a,u+1)?b===a.length&&(g[1]="Referentially unequal but deeply equal objects. Consider memoization."):r=false;continue}}else if(typeof d=="function"&&typeof y=="function"&&d.name===y.name&&d.length===y.length&&(g=Function.prototype.toString.call(d),b=Function.prototype.toString.call(y),g===b)){d=y.name===""?"() => {}":y.name+"() {}",a.push([j6+"\xA0\xA0".repeat(u)+s,d+" Referentially unequal function closure. Consider memoization."]);continue}}mo(s,d,a,u,Ly),mo(s,y,a,u,Yy);}r=false;}}else a.push([Yy+"\xA0\xA0".repeat(u)+s,"\u2026"]),r=false;return r}function Vl(e){te=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other";}function po(e,n,a,u){He&&(pu.start=n,pu.end=a,ri.color="warning",ri.tooltipText=u,ri.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,u,pu)):performance.measure(u,pu));}function _h(e,n,a){po(e,n,a,"Reconnect");}function Th(e,n,a,u,r){var s=Z(e);if(s!==null&&He){var d=e.alternate,y=e.actualDuration;if(d===null||d.child!==e.child)for(var g=e.child;g!==null;g=g.sibling)y-=g.actualDuration;u=.5>y?u?"tertiary-light":"primary-light":10>y?u?"tertiary":"primary":100>y?u?"tertiary-dark":"primary-dark":"error";var b=e.memoizedProps;y=e._debugTask,b!==null&&d!==null&&d.memoizedProps!==b?(g=[uR],b=R4(d.memoizedProps,b,g,0),1<g.length&&(b&&!mu&&(d.lanes&r)===0&&100<e.actualDuration?(mu=true,g[0]=cR,ri.color="warning",ri.tooltipText=q6):(ri.color=u,ri.tooltipText=s),ri.properties=g,pu.start=n,pu.end=a,y!=null?y.run(performance.measure.bind(performance,"\u200B"+s,pu)):performance.measure("\u200B"+s,pu))):y!=null?y.run(console.timeStamp.bind(console,s,n,a,Ma,void 0,u)):console.timeStamp(s,n,a,Ma,void 0,u);}}function kp(e,n,a,u){if(He){var r=Z(e);if(r!==null){for(var s=null,d=[],y=0;y<u.length;y++){var g=u[y];s==null&&g.source!==null&&(s=g.source._debugTask),g=g.value,d.push(["Error",typeof g=="object"&&g!==null&&typeof g.message=="string"?String(g.message):String(g)]);}e.key!==null&&mo("key",e.key,d,0,""),e.memoizedProps!==null&&Dp(e.memoizedProps,d,0,""),s==null&&(s=e._debugTask),e={start:n,end:a,detail:{devtools:{color:"error",track:Ma,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:d}}},s?s.run(performance.measure.bind(performance,"\u200B"+r,e)):performance.measure("\u200B"+r,e);}}}function go(e,n,a,u,r){if(r!==null){if(He){var s=Z(e);if(s!==null){u=[];for(var d=0;d<r.length;d++){var y=r[d].value;u.push(["Error",typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y)]);}e.key!==null&&mo("key",e.key,u,0,""),e.memoizedProps!==null&&Dp(e.memoizedProps,u,0,""),n={start:n,end:a,detail:{devtools:{color:"error",track:Ma,tooltipText:"A lifecycle or effect errored",properties:u}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"\u200B"+s,n)):performance.measure("\u200B"+s,n);}}}else s=Z(e),s!==null&&He&&(r=1>u?"secondary-light":100>u?"secondary":500>u?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,s,n,a,Ma,void 0,r)):console.timeStamp(s,n,a,Ma,void 0,r));}function zk(e,n,a,u){if(He&&!(n<=e)){var r=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",u?u.run(console.timeStamp.bind(console,a,e,n,te,It,r)):console.timeStamp(a,e,n,te,It,r);}}function w4(e,n,a,u){!He||n<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Prewarm",e,n,te,It,a)):console.timeStamp("Prewarm",e,n,te,It,a));}function U4(e,n,a,u){!He||n<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Suspended",e,n,te,It,a)):console.timeStamp("Suspended",e,n,te,It,a));}function Dk(e,n,a,u,r,s){if(He&&!(n<=e)){a=[];for(var d=0;d<u.length;d++){var y=u[d].value;a.push(["Recoverable Error",typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y)]);}e={start:e,end:n,detail:{devtools:{color:"primary-dark",track:te,trackGroup:It,tooltipText:r?"Hydration Failed":"Recovered after Error",properties:a}}},s?s.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e);}}function Cp(e,n,a,u){!He||n<=e||(u?u.run(console.timeStamp.bind(console,"Errored",e,n,te,It,"error")):console.timeStamp("Errored",e,n,te,It,"error"));}function kk(e,n,a,u){!He||n<=e||(u?u.run(console.timeStamp.bind(console,a,e,n,te,It,"secondary-light")):console.timeStamp(a,e,n,te,It,"secondary-light"));}function N4(e,n,a,u,r){if(He&&!(n<=e)){for(var s=[],d=0;d<a.length;d++){var y=a[d].value;s.push(["Error",typeof y=="object"&&y!==null&&typeof y.message=="string"?String(y.message):String(y)]);}e={start:e,end:n,detail:{devtools:{color:"error",track:te,trackGroup:It,tooltipText:u?"Remaining Effects Errored":"Commit Errored",properties:s}}},r?r.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e);}}function Wf(e,n,a){!He||n<=e||(console.timeStamp("Animating",e,n,te,It,"secondary-dark"));}function Ah(){for(var e=rs,n=nx=rs=0;n<e;){var a=_a[n];_a[n++]=null;var u=_a[n];_a[n++]=null;var r=_a[n];_a[n++]=null;var s=_a[n];if(_a[n++]=null,u!==null&&r!==null){var d=u.pending;d===null?r.next=r:(r.next=d.next,d.next=r),u.pending=r;}s!==0&&$4(a,r,s);}}function zh(e,n,a,u){_a[rs++]=e,_a[rs++]=n,_a[rs++]=a,_a[rs++]=u,nx|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u);}function Op(e,n,a,u){return zh(e,n,a,u),Dh(e)}function nl(e,n){return zh(e,null,null,n),Dh(e)}function $4(e,n,a){e.lanes|=a;var u=e.alternate;u!==null&&(u.lanes|=a);for(var r=false,s=e.return;s!==null;)s.childLanes|=a,u=s.alternate,u!==null&&(u.childLanes|=a),s.tag===22&&(e=s.stateNode,e===null||e._visibility&zd||(r=true)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,r&&n!==null&&(r=31-rl(a),e=s.hiddenUpdates,u=e[r],u===null?e[r]=[n]:u.push(n),n.lane=a|536870912),s):null}function Dh(e){if(t0>MR)throw Pc=t0=0,e0=Nx=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Pc>_R&&(Pc=0,e0=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&IE(e);for(var n=e,a=n.return;a!==null;)n.alternate===null&&(n.flags&4098)!==0&&IE(e),n=a,a=n.return;return n.tag===3?n.stateNode:null}function Tc(e){if(Ta===null)return e;var n=Ta(e);return n===void 0?e:n.current}function Rp(e){if(Ta===null)return e;var n=Ta(e);return n===void 0?e!=null&&typeof e.render=="function"&&(n=Tc(e.render),e.render!==n)?(n={$$typeof:md,render:n},e.displayName!==void 0&&(n.displayName=e.displayName),n):e:n.current}function H4(e,n){if(Ta===null)return false;var a=e.elementType;n=n.type;var u=false,r=typeof n=="object"&&n!==null?n.$$typeof:null;switch(e.tag){case 1:typeof n=="function"&&(u=true);break;case 0:(typeof n=="function"||r===ta)&&(u=true);break;case 11:(r===md||r===ta)&&(u=true);break;case 14:case 15:(r===Ty||r===ta)&&(u=true);break;default:return false}return !!(u&&(e=Ta(a),e!==void 0&&e===Ta(n)))}function L4(e){Ta!==null&&typeof WeakSet=="function"&&(ss===null&&(ss=new WeakSet),ss.add(e));}function Y4(e,n,a){do{var u=e,r=u.alternate,s=u.child,d=u.sibling,y=u.tag;u=u.type;var g=null;switch(y){case 0:case 15:case 1:g=u;break;case 11:g=u.render;}if(Ta===null)throw Error("Expected resolveFamily to be set during hot reload.");var b=false;if(u=false,g!==null&&(g=Ta(g),g!==void 0&&(a.has(g)?u=true:n.has(g)&&(y===1?u=true:b=true))),ss!==null&&(ss.has(e)||r!==null&&ss.has(r))&&(u=true),u&&(e._debugNeedsRemount=true),(u||b)&&(r=nl(e,2),r!==null&&Pe(r,e,2)),s===null||u||Y4(s,n,a),d===null)break;e=d;}while(true)}function Ck(e,n,a,u){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=false,this._debugHookTypes=null,X6||typeof Object.preventExtensions!="function"||Object.preventExtensions(this);}function wp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ei(e,n){var a=e.alternate;switch(a===null?(a=v(e.tag,n,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=n,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,n=e.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=Tc(e.type);break;case 1:a.type=Tc(e.type);break;case 11:a.type=Rp(e.type);}return a}function B4(e,n){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,n=a.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Up(e,n,a,u,r,s){var d=0,y=e;if(typeof e=="function")wp(e)&&(d=1),y=Tc(y);else if(typeof e=="string")d=ht(),d=YC(e,a,d)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case zg:return n=v(31,a,n,r),n.elementType=zg,n.lanes=s,n;case Ir:return Ac(a.children,r,s,n);case _y:d=8,r|=al,r|=lo;break;case Mg:return e=a,u=r,typeof e.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),n=v(12,e,n,u|qt),n.elementType=Mg,n.lanes=s,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case Tg:return n=v(13,a,n,r),n.elementType=Tg,n.lanes=s,n;case Ag:return n=v(19,a,n,r),n.elementType=Ag,n.lanes=s,n;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ro:d=10;break t;case _g:d=9;break t;case md:d=11,y=Rp(y);break t;case Ty:d=14;break t;case ta:d=16,y=null;break t}y="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?a="null":Mn(e)?a="array":e!==void 0&&e.$$typeof===Oo?(a="<"+(nt(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(d=u?vt(u):null)&&(y+=`
|
|
85
|
-
|
|
86
|
-
Check the render method of \``+d+"`."),d=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+y)),y=null;}return n=v(d,a,n,r),n.elementType=e,n.type=y,n.lanes=s,n._debugOwner=u,n}function kh(e,n,a){return n=Up(e.type,e.key,e.props,e._owner,n,a),n._debugOwner=e._owner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n}function Ac(e,n,a,u){return e=v(7,e,u,n),e.lanes=a,e}function Np(e,n,a){return e=v(6,e,null,n),e.lanes=a,e}function W4(e){var n=v(18,null,null,Ot);return n.stateNode=e,n}function $p(e,n,a){return n=v(4,e.children!==null?e.children:[],e.key,n),n.lanes=a,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Zl(e,n){if(typeof e=="object"&&e!==null){var a=lx.get(e);return a!==void 0?a:(n={value:e,source:n,stack:$e(n)},lx.set(e,n),n)}return {value:e,source:n,stack:$e(n)}}function ni(e,n){Ii(),fs[ds++]=Dd,fs[ds++]=By,By=e,Dd=n;}function j4(e,n,a){Ii(),Aa[za++]=fi,Aa[za++]=di,Aa[za++]=Yc,Yc=e;var u=fi;e=di;var r=32-rl(u)-1;u&=~(1<<r),a+=1;var s=32-rl(n)+r;if(30<s){var d=r-r%5;s=(u&(1<<d)-1).toString(32),u>>=d,r-=d,fi=1<<32-rl(n)+r|a<<r|u,di=s+e;}else fi=1<<s|a<<r|u,di=e;}function Hp(e){Ii(),e.return!==null&&(ni(e,1),j4(e,1,0));}function Lp(e){for(;e===By;)By=fs[--ds],fs[ds]=null,Dd=fs[--ds],fs[ds]=null;for(;e===Yc;)Yc=Aa[--za],Aa[za]=null,di=Aa[--za],Aa[za]=null,fi=Aa[--za],Aa[za]=null;}function q4(){return Ii(),Yc!==null?{id:fi,overflow:di}:null}function X4(e,n){Ii(),Aa[za++]=fi,Aa[za++]=di,Aa[za++]=Yc,fi=n.id,di=n.overflow,Yc=e;}function Ii(){ne||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.");}function zc(e,n){if(e.return===null){if(la===null)la={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else {if(la.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");la.distanceFromLeaf>n&&(la.distanceFromLeaf=n);}return la}var a=zc(e.return,n+1).children;return 0<a.length&&a[a.length-1].fiber===e?(a=a[a.length-1],a.distanceFromLeaf>n&&(a.distanceFromLeaf=n),a):(n={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},a.push(n),n)}function G4(){ne&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.");}function Ch(e,n){Lo||(e=zc(e,0),e.serverProps=null,n!==null&&(n=M5(n),e.serverTail.push(n)));}function Pi(e){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:false,a="",u=la;throw u!==null&&(la=null,a=Mp(u)),jf(Zl(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
87
|
-
|
|
88
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
89
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
90
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
91
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
92
|
-
- Invalid HTML tag nesting.
|
|
93
|
-
|
|
94
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
95
|
-
|
|
96
|
-
https://react.dev/link/hydration-mismatch`+a),e)),ax}function Q4(e){var n=e.stateNode,a=e.type,u=e.memoizedProps;switch(n[Gn]=e,n[sl]=u,ag(a,u),a){case "dialog":ae("cancel",n),ae("close",n);break;case "iframe":case "object":case "embed":ae("load",n);break;case "video":case "audio":for(a=0;a<n0.length;a++)ae(n0[a],n);break;case "source":ae("error",n);break;case "img":case "image":case "link":ae("error",n),ae("load",n);break;case "details":ae("toggle",n);break;case "input":Fi("input",u),ae("invalid",n),IS(n,u),PS(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,true);break;case "option":t4(n,u);break;case "select":Fi("select",u),ae("invalid",n),n4(n,u);break;case "textarea":Fi("textarea",u),ae("invalid",n),l4(n,u),o4(n,u.value,u.defaultValue,u.children);}a=u.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||u.suppressHydrationWarning===true||r5(n.textContent,a)?(u.popover!=null&&(ae("beforetoggle",n),ae("toggle",n)),u.onScroll!=null&&ae("scroll",n),u.onScrollEnd!=null&&ae("scrollend",n),u.onClick!=null&&(n.onclick=ti),n=true):n=false,n||Pi(e,true);}function V4(e){for(Qn=e.return;Qn;)switch(Qn.tag){case 5:case 31:case 13:Da=false;return;case 27:case 3:Da=true;return;default:Qn=Qn.return;}}function $r(e){if(e!==Qn)return false;if(!ne)return V4(e),ne=true,false;var n=e.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||rg(e.type,e.memoizedProps)),a=!a),a&&Le){for(a=Le;a;){var u=zc(e,0),r=M5(a);u.serverTail.push(r),a=r.type==="Suspense"?hg(a):Pl(a.nextSibling);}Pi(e);}if(V4(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Le=hg(e);}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Le=hg(e);}else n===27?(n=Le,ru(e.type)?(e=Vx,Vx=null,Le=e):Le=n):Le=Qn?Pl(e.stateNode.nextSibling):null;return true}function Dc(){Le=Qn=null,Lo=ne=false;}function Yp(){var e=xu;return e!==null&&(pl===null?pl=e:pl.push.apply(pl,e),xu=null),e}function jf(e){xu===null?xu=[e]:xu.push(e);}function Bp(){var e=la;if(e!==null){la=null;for(var n=Mp(e);0<e.children.length;)e=e.children[0];dt(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
97
|
-
|
|
98
|
-
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
99
|
-
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
100
|
-
- Date formatting in a user's locale which doesn't match the server.
|
|
101
|
-
- External changing data without sending a snapshot of it along with the HTML.
|
|
102
|
-
- Invalid HTML tag nesting.
|
|
103
|
-
|
|
104
|
-
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
105
|
-
|
|
106
|
-
%s%s`,"https://react.dev/link/hydration-mismatch",n);});}}function Oh(){hs=Wy=null,ys=false;}function tu(e,n,a){st(ox,n._currentValue,e),n._currentValue=a,st(ix,n._currentRenderer,e),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==Q6&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=Q6;}function li(e,n){e._currentValue=ox.current;var a=ix.current;Et(ix,n),e._currentRenderer=a,Et(ox,n);}function Wp(e,n,a){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===a)break;e=e.return;}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.");}function jp(e,n,a,u){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var s=r.dependencies;if(s!==null){var d=r.child;s=s.firstContext;t:for(;s!==null;){var y=s;s=r;for(var g=0;g<n.length;g++)if(y.context===n[g]){s.lanes|=a,y=s.alternate,y!==null&&(y.lanes|=a),Wp(s.return,a,e),u||(d=null);break t}s=y.next;}}else if(r.tag===18){if(d=r.return,d===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");d.lanes|=a,s=d.alternate,s!==null&&(s.lanes|=a),Wp(d,a,e),d=null;}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return;}r=d;}}function Hr(e,n,a,u){e=null;for(var r=n,s=false;r!==null;){if(!s){if((r.flags&524288)!==0)s=true;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error("Should have a current fiber. This is a bug in React.");if(d=d.memoizedProps,d!==null){var y=r.type;dl(r.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y]);}}else if(r===Ay.current){if(d=r.alternate,d===null)throw Error("Should have a current fiber. This is a bug in React.");d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(u0):e=[u0]);}r=r.return;}e!==null&&jp(n,e,a,u),n.flags|=262144;}function Rh(e){for(e=e.firstContext;e!==null;){if(!dl(e.context._currentValue,e.memoizedValue))return true;e=e.next;}return false}function kc(e){Wy=e,hs=null,e=e.dependencies,e!==null&&(e.firstContext=null);}function We(e){return ys&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),Z4(Wy,e)}function wh(e,n){return Wy===null&&kc(e),Z4(e,n)}function Z4(e,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},hs===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");hs=n,e.dependencies={lanes:0,firstContext:n,_debugThenableState:null},e.flags|=524288;}else hs=hs.next=n;return a}function qp(){return {controller:new fR,data:new Map,refCount:0}}function Cc(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++;}function qf(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&dR(hR,function(){e.controller.abort();});}function xo(e,n,a){(e&127)!==0?0>Yo&&(Yo=dn(),Cd=jy(n),ux=n,a!=null&&(cx=Z(a)),(se&(Tn|ia))!==Nn&&(tn=true,Su=kd),e=sd(),n=rd(),e!==ms||n!==Od?ms=-1.1:n!==null&&(Su=kd),Wc=e,Od=n):(e&4194048)!==0&&0>ka&&(ka=dn(),Rd=jy(n),V6=n,a!=null&&(Z6=Z(a)),0>mi)&&(e=sd(),n=rd(),(e!==Mu||n!==jc)&&(Mu=-1.1),Eu=e,jc=n);}function Ok(e){if(0>Yo){Yo=dn(),Cd=e._debugTask!=null?e._debugTask:null,(se&(Tn|ia))!==Nn&&(Su=kd);var n=sd(),a=rd();n!==ms||a!==Od?ms=-1.1:a!==null&&(Su=kd),Wc=n,Od=a;}0>ka&&(ka=dn(),Rd=e._debugTask!=null?e._debugTask:null,0>mi)&&(e=sd(),n=rd(),(e!==Mu||n!==jc)&&(Mu=-1.1),Eu=e,jc=n);}function ai(){var e=Bc;return Bc=0,e}function Uh(e){var n=Bc;return Bc=e,n}function Xf(e){var n=Bc;return Bc+=e,n}function Nh(){kt=Tt=-1.1;}function Jl(){var e=Tt;return Tt=-1.1,e}function Kl(e){0<=e&&(Tt=e);}function bo(){var e=Ve;return Ve=-0,e}function vo(e){0<=e&&(Ve=e);}function So(){var e=je;return je=null,e}function Eo(){var e=tn;return tn=false,e}function Xp(e){hl=dn(),0>e.actualStartTime&&(e.actualStartTime=hl);}function Gp(e){if(0<=hl){var n=dn()-hl;e.actualDuration+=n,e.selfBaseDuration=n,hl=-1;}}function J4(e){if(0<=hl){var n=dn()-hl;e.actualDuration+=n,hl=-1;}}function Mo(){if(0<=hl){var e=dn(),n=e-hl;hl=-1,Bc+=n,Ve+=n,kt=e;}}function K4(e){je===null&&(je=[]),je.push(e),yi===null&&(yi=[]),yi.push(e);}function _o(){hl=dn(),0>Tt&&(Tt=hl);}function Gf(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling;}function Rk(e,n){if(Ud===null){var a=Ud=[];sx=0,qc=tg(),ps={status:"pending",value:void 0,then:function(u){a.push(u);}};}return sx++,n.then(F4,F4),n}function F4(){if(--sx===0&&(-1<ka||(mi=-1.1),Ud!==null)){ps!==null&&(ps.status="fulfilled");var e=Ud;Ud=null,qc=0,ps=null;for(var n=0;n<e.length;n++)(0, e[n])();}}function wk(e,n){var a=[],u={status:"pending",value:null,reason:null,then:function(r){a.push(r);}};return e.then(function(){u.status="fulfilled",u.value=n;for(var r=0;r<a.length;r++)(0, a[r])(n);},function(r){for(u.status="rejected",u.reason=r,r=0;r<a.length;r++)(0, a[r])(void 0);}),u}function Qp(){var e=Xc.current;return e!==null?e:Ae.pooledCache}function $h(e,n){n===null?st(Xc,Xc.current,e):st(Xc,n.pool,e);}function I4(){var e=Qp();return e===null?null:{parent:fn._currentValue,pool:e}}function P4(){return {didWarnAboutUncachedPromise:false,thenables:[]}}function t3(e){return e=e.status,e==="fulfilled"||e==="rejected"}function e3(e,n,a){q.actQueue!==null&&(q.didUsePromise=true);var u=e.thenables;if(a=u[a],a===void 0?u.push(n):a!==n&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=true,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then(ti,ti),n=a),n._debugInfo===void 0){e=performance.now(),u=n.displayName;var r={name:typeof u=="string"?u:"Promise",start:e,end:e,value:n};n._debugInfo=[{awaited:r}],n.status!=="fulfilled"&&n.status!=="rejected"&&(e=function(){r.end=performance.now();},n.then(e,e));}switch(n.status){case "fulfilled":return n.value;case "rejected":throw e=n.reason,l3(e),e;default:if(typeof n.status=="string")n.then(ti,ti);else {if(e=Ae,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=n,e.status="pending",e.then(function(s){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=s;}},function(s){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=s;}});}switch(n.status){case "fulfilled":return n.value;case "rejected":throw e=n.reason,l3(e),e}throw Qc=n,Wd=true,gs}}function eu(e){try{return gR(e)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Qc=n,Wd=true,gs):n}}function n3(){if(Qc===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Qc;return Qc=null,Wd=false,e}function l3(e){if(e===gs||e===Ky)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function jn(e){var n=Xt;return e!=null&&(Xt=n===null?e:n.concat(e)),n}function Vp(){var e=Xt;if(e!=null){for(var n=e.length-1;0<=n;n--)if(e[n].name!=null){var a=e[n].debugTask;if(a!=null)return a}}return null}function Hh(e,n,a){for(var u=Object.keys(e.props),r=0;r<u.length;r++){var s=u[r];if(s!=="children"&&s!=="key"){n===null&&(n=kh(e,a.mode,0),n._debugInfo=Xt,n.return=a),dt(n,function(d){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d);},s);break}}}function Lh(e){var n=jd;return jd+=1,xs===null&&(xs=P4()),e3(xs,e,n)}function Qf(e,n){n=n.props.ref,e.ref=n!==void 0?n:null;}function a3(e,n){throw n.$$typeof===KC?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
|
|
107
|
-
- Multiple copies of the "react" package is used.
|
|
108
|
-
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
|
|
109
|
-
- A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead."))}function Yh(e,n){var a=Vp();a!==null?a.run(a3.bind(null,e,n)):a3(e,n);}function o3(e,n){var a=Z(e)||"Component";yM[a]||(yM[a]=true,n=n.displayName||n.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
110
|
-
root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
|
|
111
|
-
<%s>{%s}</%s>`,n,n,a,n,a));}function Bh(e,n){var a=Vp();a!==null?a.run(o3.bind(null,e,n)):o3(e,n);}function i3(e,n){var a=Z(e)||"Component";mM[a]||(mM[a]=true,n=String(n),e.tag===3?console.error(`Symbols are not valid as a React child.
|
|
112
|
-
root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
|
|
113
|
-
<%s>%s</%s>`,a,n,a));}function Wh(e,n){var a=Vp();a!==null?a.run(i3.bind(null,e,n)):i3(e,n);}function u3(e){function n(A,k){if(e){var O=A.deletions;O===null?(A.deletions=[k],A.flags|=16):O.push(k);}}function a(A,k){if(!e)return null;for(;k!==null;)n(A,k),k=k.sibling;return null}function u(A){for(var k=new Map;A!==null;)A.key!==null?k.set(A.key,A):k.set(A.index,A),A=A.sibling;return k}function r(A,k){return A=ei(A,k),A.index=0,A.sibling=null,A}function s(A,k,O){return A.index=O,e?(O=A.alternate,O!==null?(O=O.index,O<k?(A.flags|=67108866,k):O):(A.flags|=67108866,k)):(A.flags|=1048576,k)}function d(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function y(A,k,O,G){return k===null||k.tag!==6?(k=Np(O,A.mode,G),k.return=A,k._debugOwner=A,k._debugTask=A._debugTask,k._debugInfo=Xt,k):(k=r(k,O),k.return=A,k._debugInfo=Xt,k)}function g(A,k,O,G){var it=O.type;return it===Ir?(k=R(A,k,O.props.children,G,O.key),Hh(O,k,A),k):k!==null&&(k.elementType===it||H4(k,O)||typeof it=="object"&&it!==null&&it.$$typeof===ta&&eu(it)===k.type)?(k=r(k,O.props),Qf(k,O),k.return=A,k._debugOwner=O._owner,k._debugInfo=Xt,k):(k=kh(O,A.mode,G),Qf(k,O),k.return=A,k._debugInfo=Xt,k)}function b(A,k,O,G){return k===null||k.tag!==4||k.stateNode.containerInfo!==O.containerInfo||k.stateNode.implementation!==O.implementation?(k=$p(O,A.mode,G),k.return=A,k._debugInfo=Xt,k):(k=r(k,O.children||[]),k.return=A,k._debugInfo=Xt,k)}function R(A,k,O,G,it){return k===null||k.tag!==7?(k=Ac(O,A.mode,G,it),k.return=A,k._debugOwner=A,k._debugTask=A._debugTask,k._debugInfo=Xt,k):(k=r(k,O),k.return=A,k._debugInfo=Xt,k)}function w(A,k,O){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Np(""+k,A.mode,O),k.return=A,k._debugOwner=A,k._debugTask=A._debugTask,k._debugInfo=Xt,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Oo:return O=kh(k,A.mode,O),Qf(O,k),O.return=A,A=jn(k._debugInfo),O._debugInfo=Xt,Xt=A,O;case Fr:return k=$p(k,A.mode,O),k.return=A,k._debugInfo=Xt,k;case ta:var G=jn(k._debugInfo);return k=eu(k),A=w(A,k,O),Xt=G,A}if(Mn(k)||et(k))return O=Ac(k,A.mode,O,null),O.return=A,O._debugOwner=A,O._debugTask=A._debugTask,A=jn(k._debugInfo),O._debugInfo=Xt,Xt=A,O;if(typeof k.then=="function")return G=jn(k._debugInfo),A=w(A,Lh(k),O),Xt=G,A;if(k.$$typeof===Ro)return w(A,wh(A,k),O);Yh(A,k);}return typeof k=="function"&&Bh(A,k),typeof k=="symbol"&&Wh(A,k),null}function D(A,k,O,G){var it=k!==null?k.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return it!==null?null:y(A,k,""+O,G);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case Oo:return O.key===it?(it=jn(O._debugInfo),A=g(A,k,O,G),Xt=it,A):null;case Fr:return O.key===it?b(A,k,O,G):null;case ta:return it=jn(O._debugInfo),O=eu(O),A=D(A,k,O,G),Xt=it,A}if(Mn(O)||et(O))return it!==null?null:(it=jn(O._debugInfo),A=R(A,k,O,G,null),Xt=it,A);if(typeof O.then=="function")return it=jn(O._debugInfo),A=D(A,k,Lh(O),G),Xt=it,A;if(O.$$typeof===Ro)return D(A,k,wh(A,O),G);Yh(A,O);}return typeof O=="function"&&Bh(A,O),typeof O=="symbol"&&Wh(A,O),null}function Y(A,k,O,G,it){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return A=A.get(O)||null,y(k,A,""+G,it);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case Oo:return O=A.get(G.key===null?O:G.key)||null,A=jn(G._debugInfo),k=g(k,O,G,it),Xt=A,k;case Fr:return A=A.get(G.key===null?O:G.key)||null,b(k,A,G,it);case ta:var wt=jn(G._debugInfo);return G=eu(G),k=Y(A,k,O,G,it),Xt=wt,k}if(Mn(G)||et(G))return O=A.get(O)||null,A=jn(G._debugInfo),k=R(k,O,G,it,null),Xt=A,k;if(typeof G.then=="function")return wt=jn(G._debugInfo),k=Y(A,k,O,Lh(G),it),Xt=wt,k;if(G.$$typeof===Ro)return Y(A,k,O,wh(k,G),it);Yh(k,G);}return typeof G=="function"&&Bh(k,G),typeof G=="symbol"&&Wh(k,G),null}function lt(A,k,O,G){if(typeof O!="object"||O===null)return G;switch(O.$$typeof){case Oo:case Fr:T(A,k,O);var it=O.key;if(typeof it!="string")break;if(G===null){G=new Set,G.add(it);break}if(!G.has(it)){G.add(it);break}dt(k,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted \u2014 the behavior is unsupported and could change in a future version.",it);});break;case ta:O=eu(O),lt(A,k,O,G);}return G}function ct(A,k,O,G){for(var it=null,wt=null,St=null,bt=k,Bt=k=0,Ye=null;bt!==null&&Bt<O.length;Bt++){bt.index>Bt?(Ye=bt,bt=null):Ye=bt.sibling;var un=D(A,bt,O[Bt],G);if(un===null){bt===null&&(bt=Ye);break}it=lt(A,un,O[Bt],it),e&&bt&&un.alternate===null&&n(A,bt),k=s(un,k,Bt),St===null?wt=un:St.sibling=un,St=un,bt=Ye;}if(Bt===O.length)return a(A,bt),ne&&ni(A,Bt),wt;if(bt===null){for(;Bt<O.length;Bt++)bt=w(A,O[Bt],G),bt!==null&&(it=lt(A,bt,O[Bt],it),k=s(bt,k,Bt),St===null?wt=bt:St.sibling=bt,St=bt);return ne&&ni(A,Bt),wt}for(bt=u(bt);Bt<O.length;Bt++)Ye=Y(bt,A,Bt,O[Bt],G),Ye!==null&&(it=lt(A,Ye,O[Bt],it),e&&Ye.alternate!==null&&bt.delete(Ye.key===null?Bt:Ye.key),k=s(Ye,k,Bt),St===null?wt=Ye:St.sibling=Ye,St=Ye);return e&&bt.forEach(function(_i){return n(A,_i)}),ne&&ni(A,Bt),wt}function we(A,k,O,G){if(O==null)throw Error("An iterable object provided no iterator.");for(var it=null,wt=null,St=k,bt=k=0,Bt=null,Ye=null,un=O.next();St!==null&&!un.done;bt++,un=O.next()){St.index>bt?(Bt=St,St=null):Bt=St.sibling;var _i=D(A,St,un.value,G);if(_i===null){St===null&&(St=Bt);break}Ye=lt(A,_i,un.value,Ye),e&&St&&_i.alternate===null&&n(A,St),k=s(_i,k,bt),wt===null?it=_i:wt.sibling=_i,wt=_i,St=Bt;}if(un.done)return a(A,St),ne&&ni(A,bt),it;if(St===null){for(;!un.done;bt++,un=O.next())St=w(A,un.value,G),St!==null&&(Ye=lt(A,St,un.value,Ye),k=s(St,k,bt),wt===null?it=St:wt.sibling=St,wt=St);return ne&&ni(A,bt),it}for(St=u(St);!un.done;bt++,un=O.next())Bt=Y(St,A,bt,un.value,G),Bt!==null&&(Ye=lt(A,Bt,un.value,Ye),e&&Bt.alternate!==null&&St.delete(Bt.key===null?bt:Bt.key),k=s(Bt,k,bt),wt===null?it=Bt:wt.sibling=Bt,wt=Bt);return e&&St.forEach(function(WR){return n(A,WR)}),ne&&ni(A,bt),it}function oe(A,k,O,G){if(typeof O=="object"&&O!==null&&O.type===Ir&&O.key===null&&(Hh(O,null,A),O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case Oo:var it=jn(O._debugInfo);t:{for(var wt=O.key;k!==null;){if(k.key===wt){if(wt=O.type,wt===Ir){if(k.tag===7){a(A,k.sibling),G=r(k,O.props.children),G.return=A,G._debugOwner=O._owner,G._debugInfo=Xt,Hh(O,G,A),A=G;break t}}else if(k.elementType===wt||H4(k,O)||typeof wt=="object"&&wt!==null&&wt.$$typeof===ta&&eu(wt)===k.type){a(A,k.sibling),G=r(k,O.props),Qf(G,O),G.return=A,G._debugOwner=O._owner,G._debugInfo=Xt,A=G;break t}a(A,k);break}else n(A,k);k=k.sibling;}O.type===Ir?(G=Ac(O.props.children,A.mode,G,O.key),G.return=A,G._debugOwner=A,G._debugTask=A._debugTask,G._debugInfo=Xt,Hh(O,G,A),A=G):(G=kh(O,A.mode,G),Qf(G,O),G.return=A,G._debugInfo=Xt,A=G);}return A=d(A),Xt=it,A;case Fr:t:{for(it=O,O=it.key;k!==null;){if(k.key===O)if(k.tag===4&&k.stateNode.containerInfo===it.containerInfo&&k.stateNode.implementation===it.implementation){a(A,k.sibling),G=r(k,it.children||[]),G.return=A,A=G;break t}else {a(A,k);break}else n(A,k);k=k.sibling;}G=$p(it,A.mode,G),G.return=A,A=G;}return d(A);case ta:return it=jn(O._debugInfo),O=eu(O),A=oe(A,k,O,G),Xt=it,A}if(Mn(O))return it=jn(O._debugInfo),A=ct(A,k,O,G),Xt=it,A;if(et(O)){if(it=jn(O._debugInfo),wt=et(O),typeof wt!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var St=wt.call(O);return St===O?(A.tag!==0||Object.prototype.toString.call(A.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(St)!=="[object Generator]")&&(dM||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),dM=true):O.entries!==wt||yx||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),yx=true),A=we(A,k,St,G),Xt=it,A}if(typeof O.then=="function")return it=jn(O._debugInfo),A=oe(A,k,Lh(O),G),Xt=it,A;if(O.$$typeof===Ro)return oe(A,k,wh(A,O),G);Yh(A,O);}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(it=""+O,k!==null&&k.tag===6?(a(A,k.sibling),G=r(k,it),G.return=A,A=G):(a(A,k),G=Np(it,A.mode,G),G.return=A,G._debugOwner=A,G._debugTask=A._debugTask,G._debugInfo=Xt,A=G),d(A)):(typeof O=="function"&&Bh(A,O),typeof O=="symbol"&&Wh(A,O),a(A,k))}return function(A,k,O,G){var it=Xt;Xt=null;try{jd=0;var wt=oe(A,k,O,G);return xs=null,wt}catch(Ye){if(Ye===gs||Ye===Ky)throw Ye;var St=v(29,Ye,null,A.mode);St.lanes=G,St.return=A;var bt=St._debugInfo=Xt;if(St._debugOwner=A._debugOwner,St._debugTask=A._debugTask,bt!=null){for(var Bt=bt.length-1;0<=Bt;Bt--)if(typeof bt[Bt].stack=="string"){St._debugOwner=bt[Bt],St._debugTask=bt[Bt].debugTask;break}}return St}finally{Xt=it;}}}function c3(e,n){var a=Mn(e);return e=!a&&typeof et(e)=="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,n,a),false):true}function Zp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function Jp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null});}function nu(e){return {lane:e,tag:gM,payload:null,callback:null,next:null}}function lu(e,n,a){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,px===u&&!vM){var r=Z(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
|
|
114
|
-
|
|
115
|
-
Please update the following component: %s`,r),vM=true;}return (se&Tn)!==Nn?(r=u.pending,r===null?n.next=n:(n.next=r.next,r.next=n),u.pending=n,n=Dh(e),$4(e,null,a),n):(zh(e,u,n,a),Dh(e))}function Vf(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,a|=u,n.lanes=a,bc(e,a);}}function jh(e,n){var a=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,a===u)){var r=null,s=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};s===null?r=s=d:s=s.next=d,a=a.next;}while(a!==null);s===null?r=s=n:s=s.next=n;}else r=s=n;a={baseState:u.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:u.shared,callbacks:u.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n;}function Zf(){if(gx){var e=ps;if(e!==null)throw e}}function Jf(e,n,a,u){gx=false;var r=e.updateQueue;_u=false,px=r.shared;var s=r.firstBaseUpdate,d=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var g=y,b=g.next;g.next=null,d===null?s=b:d.next=b,d=g;var R=e.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==d&&(y===null?R.firstBaseUpdate=b:y.next=b,R.lastBaseUpdate=g));}if(s!==null){var w=r.baseState;d=0,R=b=g=null,y=s;do{var D=y.lane&-536870913,Y=D!==y.lane;if(Y?(Gt&D)===D:(u&D)===D){D!==0&&D===qc&&(gx=true),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{D=e;var lt=y,ct=n,we=a;switch(lt.tag){case xM:if(lt=lt.payload,typeof lt=="function"){ys=true;var oe=lt.call(we,w,ct);if(D.mode&al){Oe(true);try{lt.call(we,w,ct);}finally{Oe(false);}}ys=false,w=oe;break t}w=lt;break t;case mx:D.flags=D.flags&-65537|128;case gM:if(oe=lt.payload,typeof oe=="function"){if(ys=true,lt=oe.call(we,w,ct),D.mode&al){Oe(true);try{oe.call(we,w,ct);}finally{Oe(false);}}ys=false;}else lt=oe;if(lt==null)break t;w=Ft({},w,lt);break t;case bM:_u=true;}}D=y.callback,D!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=r.callbacks,Y===null?r.callbacks=[D]:Y.push(D));}else Y={lane:D,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(b=R=Y,g=w):R=R.next=Y,d|=D;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;Y=y,y=Y.next,Y.next=null,r.lastBaseUpdate=Y,r.shared.pending=null;}}while(true);R===null&&(g=w),r.baseState=g,r.firstBaseUpdate=b,r.lastBaseUpdate=R,s===null&&(r.shared.lanes=0),zu|=d,e.lanes=d,e.memoizedState=w;}px=null;}function r3(e,n){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n);}function Uk(e,n){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)r3(a[e],n);}function s3(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)r3(a[e],n);}function f3(e,n){var a=jo;st(Iy,a,e),st(bs,n,e),jo=a|n.baseLanes;}function Kp(e){st(Iy,jo,e),st(bs,bs.current,e);}function Fp(e){jo=Iy.current,Et(bs,e),Et(Iy,e);}function au(e){var n=e.alternate;st(on,on.current&vs,e),st(aa,e,e),Ca===null&&(n===null||bs.current!==null||n.memoizedState!==null)&&(Ca=e);}function Ip(e){st(on,on.current,e),st(aa,e,e),Ca===null&&(Ca=e);}function d3(e){e.tag===22?(st(on,on.current,e),st(aa,e,e),Ca===null&&(Ca=e)):ou(e);}function ou(e){st(on,on.current,e),st(aa,aa.current,e);}function Fl(e){Et(aa,e),Ca===e&&(Ca=null),Et(on,e);}function qh(e){for(var n=e;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||fg(a)||dg(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return;}n.sibling.return=n.return,n=n.sibling;}return null}function Kt(){var e=W;Ra===null?Ra=[e]:Ra.push(e);}function P(){var e=W;if(Ra!==null&&(bi++,Ra[bi]!==e)){var n=Z(Rt);if(!SM.has(n)&&(SM.add(n),Ra!==null)){for(var a="",u=0;u<=bi;u++){var r=Ra[u],s=u===bi?e:r;for(r=u+1+". "+r;30>r.length;)r+=" ";r+=s+`
|
|
116
|
-
`,a+=r;}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
|
|
117
|
-
|
|
118
|
-
Previous render Next render
|
|
119
|
-
------------------------------------------------------
|
|
120
|
-
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
121
|
-
`,n,a);}}}function Lr(e){e==null||Mn(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",W,typeof e);}function Xh(){var e=Z(Rt);MM.has(e)||(MM.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e));}function en(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
122
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
123
|
-
2. You might be breaking the Rules of Hooks
|
|
124
|
-
3. You might have more than one copy of React in the same app
|
|
125
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Pp(e,n){if(Gd)return false;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",W),false;e.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
126
|
-
|
|
127
|
-
Previous: %s
|
|
128
|
-
Incoming: %s`,W,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<n.length&&a<e.length;a++)if(!dl(e[a],n[a]))return false;return true}function t2(e,n,a,u,r,s){gi=s,Rt=n,Ra=e!==null?e._debugHookTypes:null,bi=-1,Gd=e!==null&&e.type!==n.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(s=Z(Rt),xx.has(s)||(xx.add(s),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",s===null?"An unknown Component":"<"+s+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,q.H=e!==null&&e.memoizedState!==null?vx:Ra!==null?_M:bx,Zc=s=(n.mode&al)!==Ot;var d=fx(a,u,r);if(Zc=false,Es&&(d=e2(n,a,u,r)),s){Oe(true);try{d=e2(n,a,u,r);}finally{Oe(false);}}return h3(e,n),d}function h3(e,n){n._debugHookTypes=Ra,n.dependencies===null?xi!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:xi}):n.dependencies._debugThenableState=xi,q.H=Qd;var a=Te!==null&&Te.next!==null;if(gi=0,Ra=W=hn=Te=Rt=null,bi=-1,e!==null&&(e.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),t1=false,Xd=0,xi=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||yn||(e=e.dependencies,e!==null&&Rh(e)&&(yn=true)),Wd?(Wd=false,e=true):e=false,e&&(n=Z(n)||"Unknown",EM.has(n)||xx.has(n)||(EM.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")));}function e2(e,n,a,u){Rt=e;var r=0;do{if(Es&&(xi=null),Xd=0,Es=false,r>=bR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(r+=1,Gd=false,hn=Te=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0);}bi=-1,q.H=TM,s=fx(n,a,u);}while(Es);return s}function Nk(){var e=q.H,n=e.useState()[0];return n=typeof n.then=="function"?Kf(n):n,e=e.useState()[0],(Te!==null?Te.memoizedState:null)!==e&&(Rt.flags|=1024),n}function n2(){var e=e1!==0;return e1=0,e}function l2(e,n,a){n.updateQueue=e.updateQueue,n.flags=(n.mode&lo)!==Ot?n.flags&-402655237:n.flags&-2053,e.lanes&=~a;}function a2(e){if(t1){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next;}t1=false;}gi=0,Ra=hn=Te=Rt=null,bi=-1,W=null,Es=false,Xd=e1=0,xi=null;}function cl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hn===null?Rt.memoizedState=hn=e:hn=hn.next=e,hn}function be(){if(Te===null){var e=Rt.alternate;e=e!==null?e.memoizedState:null;}else e=Te.next;var n=hn===null?Rt.memoizedState:hn.next;if(n!==null)hn=n,Te=e;else {if(e===null)throw Rt.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},hn===null?Rt.memoizedState=hn=e:hn=hn.next=e;}return hn}function Gh(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function Kf(e){var n=Xd;return Xd+=1,xi===null&&(xi=P4()),e=e3(xi,e,n),n=Rt,(hn===null?n.memoizedState:hn.next)===null&&(n=n.alternate,q.H=n!==null&&n.memoizedState!==null?vx:bx),e}function iu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kf(e);if(e.$$typeof===Ro)return We(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Oc(e){var n=null,a=Rt.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var u=Rt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(r){return r.slice()}),index:0})));}if(n==null&&(n={data:[],index:0}),a===null&&(a=Gh(),Rt.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0||Gd)for(a=n.data[n.index]=Array(e),u=0;u<e;u++)a[u]=FC;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return n.index++,a}function Pa(e,n){return typeof n=="function"?n(e):n}function o2(e,n,a){var u=cl();if(a!==void 0){var r=a(n);if(Zc){Oe(true);try{a(n);}finally{Oe(false);}}}else r=n;return u.memoizedState=u.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},u.queue=e,e=e.dispatch=Bk.bind(null,Rt,e),[u.memoizedState,e]}function Yr(e){var n=be();return i2(n,Te,e)}function i2(e,n,a){var u=e.queue;if(u===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");u.lastRenderedReducer=a;var r=e.baseQueue,s=u.pending;if(s!==null){if(r!==null){var d=r.next;r.next=s.next,s.next=d;}n.baseQueue!==r&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=r=s,u.pending=null;}if(s=e.baseState,r===null)e.memoizedState=s;else {n=r.next;var y=d=null,g=null,b=n,R=false;do{var w=b.lane&-536870913;if(w!==b.lane?(Gt&w)===w:(gi&w)===w){var D=b.revertLane;if(D===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null}),w===qc&&(R=true);else if((gi&D)===D){b=b.next,D===qc&&(R=true);continue}else w={lane:0,revertLane:b.revertLane,gesture:null,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},g===null?(y=g=w,d=s):g=g.next=w,Rt.lanes|=D,zu|=D;w=b.action,Zc&&a(s,w),s=b.hasEagerState?b.eagerState:a(s,w);}else D={lane:w,revertLane:b.revertLane,gesture:b.gesture,action:b.action,hasEagerState:b.hasEagerState,eagerState:b.eagerState,next:null},g===null?(y=g=D,d=s):g=g.next=D,Rt.lanes|=w,zu|=w;b=b.next;}while(b!==null&&b!==n);if(g===null?d=s:g.next=y,!dl(s,e.memoizedState)&&(yn=true,R&&(a=ps,a!==null)))throw a;e.memoizedState=s,e.baseState=d,e.baseQueue=g,u.lastRenderedState=s;}return r===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Ff(e){var n=be(),a=n.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var u=a.dispatch,r=a.pending,s=n.memoizedState;if(r!==null){a.pending=null;var d=r=r.next;do s=e(s,d.action),d=d.next;while(d!==r);dl(s,n.memoizedState)||(yn=true),n.memoizedState=s,n.baseQueue===null&&(n.baseState=s),a.lastRenderedState=s;}return [s,u]}function u2(e,n,a){var u=Rt,r=cl();if(ne){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var s=a();Ss||s===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Ss=true);}else {if(s=n(),Ss||(a=n(),dl(s,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ss=true)),Ae===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Gt&127)!==0||y3(u,n,s);}return r.memoizedState=s,a={value:s,getSnapshot:n},r.queue=a,Jh(p3.bind(null,u,a,e),[e]),u.flags|=2048,Wr(Oa|ml,{destroy:void 0},m3.bind(null,u,a,s,n),null),s}function Qh(e,n,a){var u=Rt,r=be(),s=ne;if(s){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a();}else if(a=n(),!Ss){var d=n();dl(a,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Ss=true);}(d=!dl((Te||r).memoizedState,a))&&(r.memoizedState=a,yn=true),r=r.queue;var y=p3.bind(null,u,r,e);if(zl(2048,ml,y,[e]),r.getSnapshot!==n||d||hn!==null&&hn.memoizedState.tag&Oa){if(u.flags|=2048,Wr(Oa|ml,{destroy:void 0},m3.bind(null,u,r,a,n),null),Ae===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");s||(gi&127)!==0||y3(u,n,a);}return a}function y3(e,n,a){e.flags|=16384,e={getSnapshot:n,value:a},n=Rt.updateQueue,n===null?(n=Gh(),Rt.updateQueue=n,n.stores=[e]):(a=n.stores,a===null?n.stores=[e]:a.push(e));}function m3(e,n,a,u){n.value=a,n.getSnapshot=u,g3(n)&&x3(e);}function p3(e,n,a){return a(function(){g3(n)&&(xo(2,"updateSyncExternalStore()",e),x3(e));})}function g3(e){var n=e.getSnapshot;e=e.value;try{var a=n();return !dl(e,a)}catch{return true}}function x3(e){var n=nl(e,2);n!==null&&Pe(n,e,2);}function c2(e){var n=cl();if(typeof e=="function"){var a=e;if(e=a(),Zc){Oe(true);try{a();}finally{Oe(false);}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:e},n}function r2(e){e=c2(e);var n=e.queue,a=H3.bind(null,Rt,n);return n.dispatch=a,[e.memoizedState,a]}function s2(e){var n=cl();n.memoizedState=n.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=_2.bind(null,Rt,true,a),a.dispatch=n,[e,n]}function b3(e,n){var a=be();return v3(a,Te,e,n)}function v3(e,n,a,u){return e.baseState=a,i2(e,Te,typeof u=="function"?u:Pa)}function S3(e,n){var a=be();return Te!==null?v3(a,Te,e,n):(a.baseState=e,[e,a.queue.dispatch])}function $k(e,n,a,u,r){if(ey(e))throw Error("Cannot update form state while rendering.");if(e=n.action,e!==null){var s={payload:r,action:e,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(d){s.listeners.push(d);}};q.T!==null?a(true):s.isTransition=false,u(s),a=n.pending,a===null?(s.next=n.pending=s,E3(n,s)):(s.next=a.next,n.pending=a.next=s);}}function E3(e,n){var a=n.action,u=n.payload,r=e.state;if(n.isTransition){var s=q.T,d={};d._updatedFibers=new Set,q.T=d;try{var y=a(r,u),g=q.S;g!==null&&g(d,y),M3(e,n,y);}catch(b){f2(e,n,b);}finally{s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),s.types=d.types),q.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."));}}else try{d=a(r,u),M3(e,n,d);}catch(b){f2(e,n,b);}}function M3(e,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(q.asyncTransitions++,a.then(ty,ty),a.then(function(u){_3(e,n,u);},function(u){return f2(e,n,u)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):_3(e,n,a);}function _3(e,n,a){n.status="fulfilled",n.value=a,T3(n),e.state=a,n=e.pending,n!==null&&(a=n.next,a===n?e.pending=null:(a=a.next,n.next=a,E3(e,a)));}function f2(e,n,a){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=a,T3(n),n=n.next;while(n!==u)}e.action=null;}function T3(e){e=e.listeners;for(var n=0;n<e.length;n++)(0, e[n])();}function A3(e,n){return n}function Br(e,n){if(ne){var a=Ae.formState;if(a!==null){t:{var u=Rt;if(ne){if(Le){e:{for(var r=Le,s=Da;r.nodeType!==8;){if(!s){r=null;break e}if(r=Pl(r.nextSibling),r===null){r=null;break e}}s=r.data,r=s===qx||s===s8?r:null;}if(r){Le=Pl(r.nextSibling),u=r.data===qx;break t}}Pi(u);}u=false;}u&&(n=a[0]);}}return a=cl(),a.memoizedState=a.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:A3,lastRenderedState:n},a.queue=u,a=H3.bind(null,Rt,u),u.dispatch=a,u=c2(false),s=_2.bind(null,Rt,false,u.queue),u=cl(),r={state:n,dispatch:null,action:e,pending:null},u.queue=r,a=$k.bind(null,Rt,r,s,a),r.dispatch=a,u.memoizedState=e,[n,a,false]}function Vh(e){var n=be();return z3(n,Te,e)}function z3(e,n,a){if(n=i2(e,n,A3)[0],e=Yr(Pa)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Kf(n);}catch(d){throw d===gs?Ky:d}else u=n;n=be();var r=n.queue,s=r.dispatch;return a!==n.memoizedState&&(Rt.flags|=2048,Wr(Oa|ml,{destroy:void 0},Hk.bind(null,r,a),null)),[u,s,e]}function Hk(e,n){e.action=n;}function Zh(e){var n=be(),a=Te;if(a!==null)return z3(n,a,e);be(),n=n.memoizedState,a=be();var u=a.queue.dispatch;return a.memoizedState=e,[n,u,false]}function Wr(e,n,a,u){return e={tag:e,create:a,deps:u,inst:n,next:null},n=Rt.updateQueue,n===null&&(n=Gh(),Rt.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=e.next=e:(u=a.next,a.next=e,e.next=u,n.lastEffect=e),e}function d2(e){var n=cl();return e={current:e},n.memoizedState=e}function Rc(e,n,a,u){var r=cl();Rt.flags|=e,r.memoizedState=Wr(Oa|n,{destroy:void 0},a,u===void 0?null:u);}function zl(e,n,a,u){var r=be();u=u===void 0?null:u;var s=r.memoizedState.inst;Te!==null&&u!==null&&Pp(u,Te.memoizedState.deps)?r.memoizedState=Wr(n,s,a,u):(Rt.flags|=e,r.memoizedState=Wr(Oa|n,s,a,u));}function Jh(e,n){(Rt.mode&lo)!==Ot?Rc(276826112,ml,e,n):Rc(8390656,ml,e,n);}function Lk(e){Rt.flags|=4;var n=Rt.updateQueue;if(n===null)n=Gh(),Rt.updateQueue=n,n.events=[e];else {var a=n.events;a===null?n.events=[e]:a.push(e);}}function h2(e){var n=cl(),a={impl:e};return n.memoizedState=a,function(){if((se&Tn)!==Nn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Kh(e){var n=be().memoizedState;return Lk({ref:n,nextImpl:e}),function(){if((se&Tn)!==Nn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function y2(e,n){var a=4194308;return (Rt.mode&lo)!==Ot&&(a|=134217728),Rc(a,oa,e,n)}function D3(e,n){if(typeof n=="function"){e=e();var a=n(e);return function(){typeof a=="function"?a():n(null);}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),e=e(),n.current=e,function(){n.current=null;}}function m2(e,n,a){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),a=a!=null?a.concat([e]):null;var u=4194308;(Rt.mode&lo)!==Ot&&(u|=134217728),Rc(u,oa,D3.bind(null,n,e),a);}function Fh(e,n,a){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),a=a!=null?a.concat([e]):null,zl(4,oa,D3.bind(null,n,e),a);}function p2(e,n){return cl().memoizedState=[e,n===void 0?null:n],e}function Ih(e,n){var a=be();n=n===void 0?null:n;var u=a.memoizedState;return n!==null&&Pp(n,u[1])?u[0]:(a.memoizedState=[e,n],e)}function g2(e,n){var a=cl();n=n===void 0?null:n;var u=e();if(Zc){Oe(true);try{e();}finally{Oe(false);}}return a.memoizedState=[u,n],u}function Ph(e,n){var a=be();n=n===void 0?null:n;var u=a.memoizedState;if(n!==null&&Pp(n,u[1]))return u[0];if(u=e(),Zc){Oe(true);try{e();}finally{Oe(false);}}return a.memoizedState=[u,n],u}function x2(e,n){var a=cl();return b2(a,e,n)}function k3(e,n){var a=be();return O3(a,Te.memoizedState,e,n)}function C3(e,n){var a=be();return Te===null?b2(a,e,n):O3(a,Te.memoizedState,e,n)}function b2(e,n,a){return a===void 0||(gi&1073741824)!==0&&(Gt&261930)===0?e.memoizedState=n:(e.memoizedState=a,e=RE(),Rt.lanes|=e,zu|=e,a)}function O3(e,n,a,u){return dl(a,n)?a:bs.current!==null?(e=b2(e,a,u),dl(e,n)||(yn=true),e):(gi&42)===0||(gi&1073741824)!==0&&(Gt&261930)===0?(yn=true,e.memoizedState=a):(e=RE(),Rt.lanes|=e,zu|=e,n)}function ty(){q.asyncTransitions--;}function R3(e,n,a,u,r){var s=pe.p;pe.p=s!==0&&s<no?s:no;var d=q.T,y={};y._updatedFibers=new Set,q.T=y,_2(e,false,n,a);try{var g=r(),b=q.S;if(b!==null&&b(y,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){q.asyncTransitions++,g.then(ty,ty);var R=wk(g,u);If(e,n,R,Il(e));}else If(e,n,u,Il(e));}catch(w){If(e,n,{then:function(){},status:"rejected",reason:w},Il(e));}finally{pe.p=s,d!==null&&y.types!==null&&(d.types!==null&&d.types!==y.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),d.types=y.types),q.T=d,d===null&&y._updatedFibers&&(e=y._updatedFibers.size,y._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."));}}function v2(e,n,a,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var r=w3(e).queue;Ok(e),R3(e,r,n,or,a===null?E:function(){return U3(e),a(u)});}function w3(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:or,baseState:or,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:or},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Pa,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function U3(e){q.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=w3(e);n.next===null&&(n=e.alternate.memoizedState),If(e,n.next.queue,{},Il(e));}function S2(){var e=c2(false);return e=R3.bind(null,Rt,e.queue,true,false),cl().memoizedState=e,[false,e]}function N3(){var e=Yr(Pa)[0],n=be().memoizedState;return [typeof e=="boolean"?e:Kf(e),n]}function $3(){var e=Ff(Pa)[0],n=be().memoizedState;return [typeof e=="boolean"?e:Kf(e),n]}function wc(){return We(u0)}function E2(){var e=cl(),n=Ae.identifierPrefix;if(ne){var a=di,u=fi;a=(u&~(1<<32-rl(u)-1)).toString(32)+a,n="_"+n+"R_"+a,a=e1++,0<a&&(n+="H"+a.toString(32)),n+="_";}else a=xR++,n="_"+n+"r_"+a.toString(32)+"_";return e.memoizedState=n}function M2(){return cl().memoizedState=Yk.bind(null,Rt)}function Yk(e,n){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var u=Il(a),r=nu(u),s=lu(a,r,u);s!==null&&(xo(u,"refresh()",e),Pe(s,a,u),Vf(s,a,u)),e=qp(),n!=null&&s!==null&&console.error("The seed argument is not enabled outside experimental channels."),r.payload={cache:e};return}a=a.return;}}function Bk(e,n,a){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Il(e);var r={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:false,eagerState:null,next:null};ey(e)?L3(n,r):(r=Op(e,n,r,u),r!==null&&(xo(u,"dispatch()",e),Pe(r,e,u),Y3(r,n,u)));}function H3(e,n,a){var u=arguments;typeof u[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),u=Il(e),If(e,n,a,u)&&xo(u,"setState()",e);}function If(e,n,a,u){var r={lane:u,revertLane:0,gesture:null,action:a,hasEagerState:false,eagerState:null,next:null};if(ey(e))L3(n,r);else {var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=n.lastRenderedReducer,s!==null)){var d=q.H;q.H=oo;try{var y=n.lastRenderedState,g=s(y,a);if(r.hasEagerState=!0,r.eagerState=g,dl(g,y))return zh(e,n,r,0),Ae===null&&Ah(),!1}catch{}finally{q.H=d;}}if(a=Op(e,n,r,u),a!==null)return Pe(a,e,u),Y3(a,n,u),true}return false}function _2(e,n,a,u){if(q.T===null&&qc===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),u={lane:2,revertLane:tg(),gesture:null,action:u,hasEagerState:false,eagerState:null,next:null},ey(e)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.");}else n=Op(e,a,u,2),n!==null&&(xo(2,"setOptimistic()",e),Pe(n,e,2));}function ey(e){var n=e.alternate;return e===Rt||n!==null&&n===Rt}function L3(e,n){Es=t1=true;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n;}function Y3(e,n,a){if((a&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,a|=u,n.lanes=a,bc(e,a);}}function T2(e){if(e!==null&&typeof e!="function"){var n=String(e);$M.has(n)||($M.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e));}}function A2(e,n,a,u){var r=e.memoizedState,s=a(u,r);if(e.mode&al){Oe(true);try{s=a(u,r);}finally{Oe(false);}}s===void 0&&(n=nt(n)||"Component",RM.has(n)||(RM.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),r=s==null?r:Ft({},r,s),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r);}function B3(e,n,a,u,r,s,d){var y=e.stateNode;if(typeof y.shouldComponentUpdate=="function"){if(a=y.shouldComponentUpdate(u,s,d),e.mode&al){Oe(true);try{a=y.shouldComponentUpdate(u,s,d);}finally{Oe(false);}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",nt(n)||"Component"),a}return n.prototype&&n.prototype.isPureReactComponent?!Bf(a,u)||!Bf(r,s):true}function W3(e,n,a,u){var r=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,u),n.state!==r&&(e=Z(e)||"Component",zM.has(e)||(zM.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Sx.enqueueReplaceState(n,n.state,null));}function Uc(e,n){var a=n;if("ref"in n){a={};for(var u in n)u!=="ref"&&(a[u]=n[u]);}if(e=e.defaultProps){a===n&&(a=Ft({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r]);}return a}function j3(e){Ig(e),console.warn(`%s
|
|
129
|
-
|
|
130
|
-
%s
|
|
131
|
-
`,Ms?"An error occurred in the <"+Ms+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
132
|
-
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`);}function q3(e){var n=Ms?"The above error occurred in the <"+Ms+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Ex||"Anonymous")+".");if(typeof e=="object"&&e!==null&&typeof e.environmentName=="string"){var u=e.environmentName;e=[`%o
|
|
133
|
-
|
|
134
|
-
%s
|
|
135
|
-
|
|
136
|
-
%s
|
|
137
|
-
`,e,n,a].slice(0),typeof e[0]=="string"?e.splice(0,1,x8+" "+e[0],b8,A1+u+A1,v8):e.splice(0,0,x8,b8,A1+u+A1,v8),e.unshift(console),u=YR.apply(console.error,e),u();}else console.error(`%o
|
|
138
|
-
|
|
139
|
-
%s
|
|
140
|
-
|
|
141
|
-
%s
|
|
142
|
-
`,e,n,a);}function X3(e){Ig(e);}function ny(e,n){try{Ms=n.source?Z(n.source):null,Ex=null;var a=n.value;if(q.actQueue!==null)q.thrownErrors.push(a);else {var u=e.onUncaughtError;u(a,{componentStack:n.stack});}}catch(r){setTimeout(function(){throw r});}}function G3(e,n,a){try{Ms=a.source?Z(a.source):null,Ex=Z(n);var u=e.onCaughtError;u(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null});}catch(r){setTimeout(function(){throw r});}}function z2(e,n,a){return a=nu(a),a.tag=mx,a.payload={element:null},a.callback=function(){dt(n.source,ny,e,n);},a}function D2(e){return e=nu(e),e.tag=mx,e}function k2(e,n,a,u){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var s=u.value;e.payload=function(){return r(s)},e.callback=function(){L4(a),dt(u.source,G3,n,a,u);};}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){L4(a),dt(u.source,G3,n,a,u),typeof r!="function"&&(ku===null?ku=new Set([this]):ku.add(this)),yR(this,u),typeof r=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Z(a)||"Unknown");});}function Wk(e,n,a,u,r){if(a.flags|=32768,No&&id(e,r),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=a.alternate,n!==null&&Hr(n,a,r,true),ne&&(Lo=true),a=aa.current,a!==null){switch(a.tag){case 31:case 13:return Ca===null?fy():a.alternate===null&&Ze===Si&&(Ze=a1),a.flags&=-257,a.flags|=65536,a.lanes=r,u===Fy?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([u]):n.add(u),K2(e,u,r)),false;case 22:return a.flags|=65536,u===Fy?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([u]):a.add(u)),K2(e,u,r)),false}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return K2(e,u,r),fy(),false}if(ne)return Lo=true,n=aa.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=r,u!==ax&&jf(Zl(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),a))):(u!==ax&&jf(Zl(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),a)),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,u=Zl(u,a),r=z2(e.stateNode,u,r),jh(e,r),Ze!==Tu&&(Ze=Jc)),false;var s=Zl(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),a);if(Id===null?Id=[s]:Id.push(s),Ze!==Tu&&(Ze=Jc),n===null)return true;u=Zl(u,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=z2(a.stateNode,u,e),jh(a,e),false;case 1:if(n=a.type,s=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(ku===null||!ku.has(s))))return a.flags|=65536,r&=-r,a.lanes|=r,r=D2(r),k2(r,e,a,u),jh(a,r),false}a=a.return;}while(a!==null);return false}function qn(e,n,a,u){n.child=e===null?pM(n,null,a,u):Vc(n,e.child,a,u);}function Q3(e,n,a,u,r){a=a.render;var s=n.ref;if("ref"in u){var d={};for(var y in u)y!=="ref"&&(d[y]=u[y]);}else d=u;return kc(n),u=t2(e,n,a,d,s,r),y=n2(),e!==null&&!yn?(l2(e,n,r),oi(e,n,r)):(ne&&y&&Hp(n),n.flags|=1,qn(e,n,u,r),n.child)}function V3(e,n,a,u,r){if(e===null){var s=a.type;return typeof s=="function"&&!wp(s)&&s.defaultProps===void 0&&a.compare===null?(a=Tc(s),n.tag=15,n.type=a,O2(n,s),Z3(e,n,a,u,r)):(e=Up(a.type,null,u,n,n.mode,r),e.ref=n.ref,e.return=n,n.child=e)}if(s=e.child,!H2(e,r)){var d=s.memoizedProps;if(a=a.compare,a=a!==null?a:Bf,a(d,u)&&e.ref===n.ref)return oi(e,n,r)}return n.flags|=1,e=ei(s,u),e.ref=n.ref,e.return=n,n.child=e}function Z3(e,n,a,u,r){if(e!==null){var s=e.memoizedProps;if(Bf(s,u)&&e.ref===n.ref&&n.type===e.type)if(yn=false,n.pendingProps=u=s,H2(e,r))(e.flags&131072)!==0&&(yn=true);else return n.lanes=e.lanes,oi(e,n,r)}return C2(e,n,a,u,r)}function J3(e,n,a,u){var r=u.children,s=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:zd,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(s=s!==null?s.baseLanes|a:a,e!==null){for(u=n.child=e.child,r=0;u!==null;)r=r|u.lanes|u.childLanes,u=u.sibling;u=r&~s;}else u=0,n.child=null;return K3(e,n,s,a,u)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&$h(n,s!==null?s.cachePool:null),s!==null?f3(n,s):Kp(n),d3(n);else return u=n.lanes=536870912,K3(e,n,s!==null?s.baseLanes|a:a,a,u)}else s!==null?($h(n,s.cachePool),f3(n,s),ou(n),n.memoizedState=null):(e!==null&&$h(n,null),Kp(n),ou(n));return qn(e,n,r,a),n.child}function Pf(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:zd,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function K3(e,n,a,u,r){var s=Qp();return s=s===null?null:{parent:fn._currentValue,pool:s},n.memoizedState={baseLanes:a,cachePool:s},e!==null&&$h(n,null),Kp(n),d3(n),e!==null&&Hr(e,n,u,true),n.childLanes=r,null}function ly(e,n){var a=n.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
|
|
143
|
-
- <Activity %s>
|
|
144
|
-
+ <Activity %s>`,a===true?"hidden":a===false?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),n=oy({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function F3(e,n,a){return Vc(n,e.child,null,a),e=ly(n,n.pendingProps),e.flags|=2,Fl(n),n.memoizedState=null,e}function jk(e,n,a){var u=n.pendingProps,r=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(ne){if(u.mode==="hidden")return e=ly(n,u),n.lanes=536870912,Pf(null,e);if(Ip(n),(e=Le)?(a=E5(e,Da),a=a!==null&&a.data===er?a:null,a!==null&&(u={dehydrated:a,treeContext:q4(),retryLane:536870912,hydrationErrors:null},n.memoizedState=u,u=W4(a),u.return=n,n.child=u,Qn=n,Le=null)):a=null,a===null)throw Ch(n,e),Pi(n);return n.lanes=536870912,null}return ly(n,u)}var s=e.memoizedState;if(s!==null){var d=s.dehydrated;if(Ip(n),r)if(n.flags&256)n.flags&=-257,n=F3(e,n,a);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(G4(),(a&536870912)!==0&&sy(n),yn||Hr(e,n,a,false),r=(a&e.childLanes)!==0,yn||r){if(u=Ae,u!==null&&(d=vc(u,a),d!==0&&d!==s.retryLane))throw s.retryLane=d,nl(e,d),Pe(u,e,d),Mx;fy(),n=F3(e,n,a);}else e=s.treeContext,Le=Pl(d.nextSibling),Qn=n,ne=true,xu=null,Lo=false,la=null,Da=false,e!==null&&X4(n,e),n=ly(n,u),n.flags|=4096;return n}return s=e.child,u={mode:u.mode,children:u.children},(a&536870912)!==0&&(a&e.lanes)!==0&&sy(n),e=ei(s,u),e.ref=n.ref,n.child=e,e.return=n,e}function ay(e,n){var a=n.ref;if(a===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else {if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==a)&&(n.flags|=4194816);}}function C2(e,n,a,u,r){if(a.prototype&&typeof a.prototype.render=="function"){var s=nt(a)||"Unknown";HM[s]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",s,s),HM[s]=true);}return n.mode&al&&ao.recordLegacyContextWarning(n,null),e===null&&(O2(n,n.type),a.contextTypes&&(s=nt(a)||"Unknown",YM[s]||(YM[s]=true,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",s)))),kc(n),a=t2(e,n,a,u,void 0,r),u=n2(),e!==null&&!yn?(l2(e,n,r),oi(e,n,r)):(ne&&u&&Hp(n),n.flags|=1,qn(e,n,a,r),n.child)}function I3(e,n,a,u,r,s){return kc(n),bi=-1,Gd=e!==null&&e.type!==n.type,n.updateQueue=null,a=e2(n,u,a,r),h3(e,n),u=n2(),e!==null&&!yn?(l2(e,n,s),oi(e,n,s)):(ne&&u&&Hp(n),n.flags|=1,qn(e,n,a,s),n.child)}function P3(e,n,a,u,r){switch(h(n)){case false:var s=n.stateNode,d=new n.type(n.memoizedProps,s.context).state;s.updater.enqueueSetState(s,d,null);break;case true:n.flags|=128,n.flags|=65536,s=Error("Simulated error coming from DevTools");var y=r&-r;if(n.lanes|=y,d=Ae,d===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");y=D2(y),k2(y,d,n,Zl(s,n)),jh(n,y);}if(kc(n),n.stateNode===null){if(d=gu,s=a.contextType,"contextType"in a&&s!==null&&(s===void 0||s.$$typeof!==Ro)&&!NM.has(a)&&(NM.add(a),y=s===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof s!="object"?" However, it is set to a "+typeof s+".":s.$$typeof===_g?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(s).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",nt(a)||"Component",y)),typeof s=="object"&&s!==null&&(d=We(s)),s=new a(u,d),n.mode&al){Oe(true);try{s=new a(u,d);}finally{Oe(false);}}if(d=n.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Sx,n.stateNode=s,s._reactInternals=n,s._reactInternalInstance=AM,typeof a.getDerivedStateFromProps=="function"&&d===null&&(d=nt(a)||"Component",DM.has(d)||(DM.add(d),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",d,s.state===null?"null":"undefined",d))),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"){var g=y=d=null;if(typeof s.componentWillMount=="function"&&s.componentWillMount.__suppressDeprecationWarning!==true?d="componentWillMount":typeof s.UNSAFE_componentWillMount=="function"&&(d="UNSAFE_componentWillMount"),typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps.__suppressDeprecationWarning!==true?y="componentWillReceiveProps":typeof s.UNSAFE_componentWillReceiveProps=="function"&&(y="UNSAFE_componentWillReceiveProps"),typeof s.componentWillUpdate=="function"&&s.componentWillUpdate.__suppressDeprecationWarning!==true?g="componentWillUpdate":typeof s.UNSAFE_componentWillUpdate=="function"&&(g="UNSAFE_componentWillUpdate"),d!==null||y!==null||g!==null){s=nt(a)||"Component";var b=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";CM.has(s)||(CM.add(s),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
145
|
-
|
|
146
|
-
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
147
|
-
|
|
148
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
149
|
-
https://react.dev/link/unsafe-component-lifecycles`,s,b,d!==null?`
|
|
150
|
-
`+d:"",y!==null?`
|
|
151
|
-
`+y:"",g!==null?`
|
|
152
|
-
`+g:""));}}s=n.stateNode,d=nt(a)||"Component",s.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",d):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",d)),!s.getInitialState||s.getInitialState.isReactClassApproved||s.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",d),s.getDefaultProps&&!s.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",d),s.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),a.childContextTypes&&!UM.has(a)&&(UM.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",d)),a.contextTypes&&!wM.has(a)&&(wM.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",d)),typeof s.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",d),a.prototype&&a.prototype.isPureReactComponent&&typeof s.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",nt(a)||"A pure component"),typeof s.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof s.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",d),typeof s.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof s.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d),y=s.props!==u,s.props!==void 0&&y&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d),s.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",d,d),typeof s.getSnapshotBeforeUpdate!="function"||typeof s.componentDidUpdate=="function"||kM.has(a)||(kM.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",nt(a))),typeof s.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof s.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",d),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d),(y=s.state)&&(typeof y!="object"||Mn(y))&&console.error("%s.state: must be set to an object or null",d),typeof s.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d),s=n.stateNode,s.props=u,s.state=n.memoizedState,s.refs={},Zp(n),d=a.contextType,s.context=typeof d=="object"&&d!==null?We(d):gu,s.state===u&&(d=nt(a)||"Component",OM.has(d)||(OM.add(d),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",d))),n.mode&al&&ao.recordLegacyContextWarning(n,s),ao.recordUnsafeLifecycleWarnings(n,s),s.state=n.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(A2(n,a,d,u),s.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(d=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),d!==s.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Z(n)||"Component"),Sx.enqueueReplaceState(s,s.state,null)),Jf(n,u,s,r),Zf(),s.state=n.memoizedState),typeof s.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&lo)!==Ot&&(n.flags|=134217728),s=true;}else if(e===null){s=n.stateNode;var R=n.memoizedProps;y=Uc(a,R),s.props=y;var w=s.context;g=a.contextType,d=gu,typeof g=="object"&&g!==null&&(d=We(g)),b=a.getDerivedStateFromProps,g=typeof b=="function"||typeof s.getSnapshotBeforeUpdate=="function",R=n.pendingProps!==R,g||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(R||w!==d)&&W3(n,s,u,d),_u=false;var D=n.memoizedState;s.state=D,Jf(n,u,s,r),Zf(),w=n.memoizedState,R||D!==w||_u?(typeof b=="function"&&(A2(n,a,b,u),w=n.memoizedState),(y=_u||B3(n,a,y,u,D,w,d))?(g||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&lo)!==Ot&&(n.flags|=134217728)):(typeof s.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&lo)!==Ot&&(n.flags|=134217728),n.memoizedProps=u,n.memoizedState=w),s.props=u,s.state=w,s.context=d,s=y):(typeof s.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&lo)!==Ot&&(n.flags|=134217728),s=false);}else {s=n.stateNode,Jp(e,n),d=n.memoizedProps,g=Uc(a,d),s.props=g,b=n.pendingProps,D=s.context,w=a.contextType,y=gu,typeof w=="object"&&w!==null&&(y=We(w)),R=a.getDerivedStateFromProps,(w=typeof R=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(d!==b||D!==y)&&W3(n,s,u,y),_u=false,D=n.memoizedState,s.state=D,Jf(n,u,s,r),Zf();var Y=n.memoizedState;d!==b||D!==Y||_u||e!==null&&e.dependencies!==null&&Rh(e.dependencies)?(typeof R=="function"&&(A2(n,a,R,u),Y=n.memoizedState),(g=_u||B3(n,a,g,u,D,Y,y)||e!==null&&e.dependencies!==null&&Rh(e.dependencies))?(w||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(u,Y,y),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(u,Y,y)),typeof s.componentDidUpdate=="function"&&(n.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(n.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=Y),s.props=u,s.state=Y,s.context=y,s=g):(typeof s.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(n.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(n.flags|=1024),s=false);}if(y=s,ay(e,n),d=(n.flags&128)!==0,y||d){if(y=n.stateNode,kr(n),d&&typeof a.getDerivedStateFromError!="function")a=null,hl=-1;else if(a=nM(y),n.mode&al){Oe(true);try{nM(y);}finally{Oe(false);}}n.flags|=1,e!==null&&d?(n.child=Vc(n,e.child,null,r),n.child=Vc(n,null,a,r)):qn(e,n,a,r),n.memoizedState=y.state,e=n.child;}else e=oi(e,n,r);return r=n.stateNode,s&&r.props!==u&&(_s||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Z(n)||"a component"),_s=true),e}function tE(e,n,a,u){return Dc(),n.flags|=256,qn(e,n,a,u),n.child}function O2(e,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
|
|
153
|
-
%s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(e=nt(n)||"Unknown",BM[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),BM[e]=true)),typeof n.contextType=="object"&&n.contextType!==null&&(n=nt(n)||"Unknown",LM[n]||(console.error("%s: Function components do not support contextType.",n),LM[n]=true));}function R2(e){return {baseLanes:e,cachePool:I4()}}function w2(e,n,a){return e=e!==null?e.childLanes&~a:0,n&&(e|=Rl),e}function eE(e,n,a){var u,r=n.pendingProps;f(n)&&(n.flags|=128);var s=false,d=(n.flags&128)!==0;if((u=d)||(u=e!==null&&e.memoizedState===null?false:(on.current&qd)!==0),u&&(s=true,n.flags&=-129),u=(n.flags&32)!==0,n.flags&=-33,e===null){if(ne){if(s?au(n):ou(n),(e=Le)?(a=E5(e,Da),a=a!==null&&a.data!==er?a:null,a!==null&&(u={dehydrated:a,treeContext:q4(),retryLane:536870912,hydrationErrors:null},n.memoizedState=u,u=W4(a),u.return=n,n.child=u,Qn=n,Le=null)):a=null,a===null)throw Ch(n,e),Pi(n);return dg(a)?n.lanes=32:n.lanes=536870912,null}var y=r.children;if(r=r.fallback,s){ou(n);var g=n.mode;return y=oy({mode:"hidden",children:y},g),r=Ac(r,g,a,null),y.return=n,r.return=n,y.sibling=r,n.child=y,r=n.child,r.memoizedState=R2(a),r.childLanes=w2(e,u,a),n.memoizedState=_x,Pf(null,r)}return au(n),U2(n,y)}var b=e.memoizedState;if(b!==null){var R=b.dehydrated;if(R!==null){if(d)n.flags&256?(au(n),n.flags&=-257,n=N2(e,n,a)):n.memoizedState!==null?(ou(n),n.child=e.child,n.flags|=128,n=null):(ou(n),y=r.fallback,g=n.mode,r=oy({mode:"visible",children:r.children},g),y=Ac(y,g,a,null),y.flags|=2,r.return=n,y.return=n,r.sibling=y,n.child=r,Vc(n,e.child,null,a),r=n.child,r.memoizedState=R2(a),r.childLanes=w2(e,u,a),n.memoizedState=_x,n=Pf(null,r));else if(au(n),G4(),(a&536870912)!==0&&sy(n),dg(R)){if(u=R.nextSibling&&R.nextSibling.dataset,u){y=u.dgst;var w=u.msg;g=u.stck;var D=u.cstck;}s=w,u=y,r=g,R=D,y=s,g=R,y=Error(y||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),y.stack=r||"",y.digest=u,u=g===void 0?null:g,r={value:y,source:null,stack:u},typeof u=="string"&&lx.set(y,r),jf(r),n=N2(e,n,a);}else if(yn||Hr(e,n,a,false),u=(a&e.childLanes)!==0,yn||u){if(u=Ae,u!==null&&(r=vc(u,a),r!==0&&r!==b.retryLane))throw b.retryLane=r,nl(e,r),Pe(u,e,r),Mx;fg(R)||fy(),n=N2(e,n,a);}else fg(R)?(n.flags|=192,n.child=e.child,n=null):(e=b.treeContext,Le=Pl(R.nextSibling),Qn=n,ne=true,xu=null,Lo=false,la=null,Da=false,e!==null&&X4(n,e),n=U2(n,r.children),n.flags|=4096);return n}}return s?(ou(n),y=r.fallback,g=n.mode,D=e.child,R=D.sibling,r=ei(D,{mode:"hidden",children:r.children}),r.subtreeFlags=D.subtreeFlags&65011712,R!==null?y=ei(R,y):(y=Ac(y,g,a,null),y.flags|=2),y.return=n,r.return=n,r.sibling=y,n.child=r,Pf(null,r),r=n.child,y=e.child.memoizedState,y===null?y=R2(a):(g=y.cachePool,g!==null?(D=fn._currentValue,g=g.parent!==D?{parent:D,pool:D}:g):g=I4(),y={baseLanes:y.baseLanes|a,cachePool:g}),r.memoizedState=y,r.childLanes=w2(e,u,a),n.memoizedState=_x,Pf(e.child,r)):(b!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&sy(n),au(n),a=e.child,e=a.sibling,a=ei(a,{mode:"visible",children:r.children}),a.return=n,a.sibling=null,e!==null&&(u=n.deletions,u===null?(n.deletions=[e],n.flags|=16):u.push(e)),n.child=a,n.memoizedState=null,a)}function U2(e,n){return n=oy({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function oy(e,n){return e=v(22,e,null,n),e.lanes=0,e}function N2(e,n,a){return Vc(n,e.child,null,a),e=U2(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function nE(e,n,a){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),Wp(e.return,n,a);}function $2(e,n,a,u,r,s){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:a,tailMode:r,treeForkCount:s}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=u,d.tail=a,d.tailMode=r,d.treeForkCount=s);}function lE(e,n,a){var u=n.pendingProps,r=u.revealOrder,s=u.tail,d=u.children,y=on.current;if((u=(y&qd)!==0)?(y=y&vs|qd,n.flags|=128):y&=vs,st(on,y,n),y=r??"null",r!=="forwards"&&r!=="unstable_legacy-backwards"&&r!=="together"&&r!=="independent"&&!WM[y])if(WM[y]=true,r==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(r==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof r=="string")switch(r.toLowerCase()){case "together":case "forwards":case "backwards":case "independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',r,r.toLowerCase());break;case "forward":case "backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',r,r.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',r);y=s??"null",l1[y]||(s==null?(r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&(l1[y]=true,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):s!=="visible"&&s!=="collapsed"&&s!=="hidden"?(l1[y]=true,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',s)):r!=="forwards"&&r!=="backwards"&&r!=="unstable_legacy-backwards"&&(l1[y]=true,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',s)));t:if((r==="forwards"||r==="backwards"||r==="unstable_legacy-backwards")&&d!==void 0&&d!==null&&d!==false)if(Mn(d)){for(y=0;y<d.length;y++)if(!c3(d[y],y))break t}else if(y=et(d),typeof y=="function"){if(y=y.call(d))for(var g=y.next(),b=0;!g.done;g=y.next()){if(!c3(g.value,b))break t;b++;}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',r);if(qn(e,n,d,a),ne?(Ii(),d=Dd):d=0,!u&&e!==null&&(e.flags&128)!==0)t:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nE(e,a,n);else if(e.tag===19)nE(e,a,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break t;for(;e.sibling===null;){if(e.return===null||e.return===n)break t;e=e.return;}e.sibling.return=e.return,e=e.sibling;}switch(r){case "forwards":for(a=n.child,r=null;a!==null;)e=a.alternate,e!==null&&qh(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=n.child,n.child=null):(r=a.sibling,a.sibling=null),$2(n,false,r,a,s,d);break;case "backwards":case "unstable_legacy-backwards":for(a=null,r=n.child,n.child=null;r!==null;){if(e=r.alternate,e!==null&&qh(e)===null){n.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e;}$2(n,true,a,null,s,d);break;case "together":$2(n,false,null,null,void 0,d);break;default:n.memoizedState=null;}return n.child}function oi(e,n,a){if(e!==null&&(n.dependencies=e.dependencies),hl=-1,zu|=n.lanes,(a&n.childLanes)===0)if(e!==null){if(Hr(e,n,a,false),(a&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(e=n.child,a=ei(e,e.pendingProps),n.child=a,a.return=n;e.sibling!==null;)e=e.sibling,a=a.sibling=ei(e,e.pendingProps),a.return=n;a.sibling=null;}return n.child}function H2(e,n){return (e.lanes&n)!==0?true:(e=e.dependencies,!!(e!==null&&Rh(e)))}function qk(e,n,a){switch(n.tag){case 3:Q(n,n.stateNode.containerInfo),tu(n,fn,e.memoizedState.cache),Dc();break;case 27:case 5:he(n);break;case 4:Q(n,n.stateNode.containerInfo);break;case 10:tu(n,n.type,n.memoizedProps.value);break;case 12:(a&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var u=n.stateNode;u.effectDuration=-0,u.passiveEffectDuration=-0;break;case 31:if(n.memoizedState!==null)return n.flags|=128,Ip(n),null;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(au(n),n.flags|=128,null):(a&n.child.childLanes)!==0?eE(e,n,a):(au(n),e=oi(e,n,a),e!==null?e.sibling:null);au(n);break;case 19:var r=(e.flags&128)!==0;if(u=(a&n.childLanes)!==0,u||(Hr(e,n,a,false),u=(a&n.childLanes)!==0),r){if(u)return lE(e,n,a);n.flags|=128;}if(r=n.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),st(on,on.current,n),u)break;return null;case 22:return n.lanes=0,J3(e,n,a,n.pendingProps);case 24:tu(n,fn,e.memoizedState.cache);}return oi(e,n,a)}function L2(e,n,a){if(n._debugNeedsRemount&&e!==null){a=Up(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),a._debugStack=n._debugStack,a._debugTask=n._debugTask;var u=n.return;if(u===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,a.index=n.index,a.sibling=n.sibling,a.return=n.return,a.ref=n.ref,a._debugInfo=n._debugInfo,n===u.child)u.child=a;else {var r=u.child;if(r===null)throw Error("Expected parent to have a child.");for(;r.sibling!==n;)if(r=r.sibling,r===null)throw Error("Expected to find the previous sibling.");r.sibling=a;}return n=u.deletions,n===null?(u.deletions=[e],u.flags|=16):n.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==n.pendingProps||n.type!==e.type)yn=true;else {if(!H2(e,a)&&(n.flags&128)===0)return yn=false,qk(e,n,a);yn=(e.flags&131072)!==0;}else yn=false,(u=ne)&&(Ii(),u=(n.flags&1048576)!==0),u&&(u=n.index,Ii(),j4(n,Dd,u));switch(n.lanes=0,n.tag){case 16:t:if(u=n.pendingProps,e=eu(n.elementType),n.type=e,typeof e=="function")wp(e)?(u=Uc(e,u),n.tag=1,n.type=e=Tc(e),n=P3(null,n,e,u,a)):(n.tag=0,O2(n,e),n.type=e=Tc(e),n=C2(null,n,e,u,a));else {if(e!=null){if(r=e.$$typeof,r===md){n.tag=11,n.type=e=Rp(e),n=Q3(null,n,e,u,a);break t}else if(r===Ty){n.tag=14,n=V3(null,n,e,u,a);break t}}throw n="",e!==null&&typeof e=="object"&&e.$$typeof===ta&&(n=" Did you wrap a component in React.lazy() more than once?"),a=nt(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return C2(e,n,n.type,n.pendingProps,a);case 1:return u=n.type,r=Uc(u,n.pendingProps),P3(e,n,u,r,a);case 3:t:{if(Q(n,n.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");u=n.pendingProps;var s=n.memoizedState;r=s.element,Jp(e,n),Jf(n,u,null,a);var d=n.memoizedState;if(u=d.cache,tu(n,fn,u),u!==s.cache&&jp(n,[fn],a,true),Zf(),u=d.element,s.isDehydrated)if(s={element:u,isDehydrated:false,cache:d.cache},n.updateQueue.baseState=s,n.memoizedState=s,n.flags&256){n=tE(e,n,u,a);break t}else if(u!==r){r=Zl(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),jf(r),n=tE(e,n,u,a);break t}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Le=Pl(e.firstChild),Qn=n,ne=true,xu=null,Lo=false,la=null,Da=true,a=pM(n,null,u,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else {if(Dc(),u===r){n=oi(e,n,a);break t}qn(e,n,u,a);}n=n.child;}return n;case 26:return ay(e,n),e===null?(a=D5(n.type,null,n.pendingProps,null))?n.memoizedState=a:ne||(a=n.type,e=n.pendingProps,u=Mt(fu.current),u=my(u).createElement(a),u[Gn]=n,u[sl]=e,Xn(u,a,e),_t(u),n.stateNode=u):n.memoizedState=D5(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return he(n),e===null&&ne&&(u=Mt(fu.current),r=ht(),u=n.stateNode=A5(n.type,n.pendingProps,u,r,false),Lo||(r=y5(u,n.type,n.pendingProps,r),r!==null&&(zc(n,0).serverProps=r)),Qn=n,Da=true,r=Le,ru(n.type)?(Vx=r,Le=Pl(u.firstChild)):Le=r),qn(e,n,n.pendingProps.children,a),ay(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&ne&&(s=ht(),u=_p(n.type,s.ancestorInfo),r=Le,(d=!r)||(d=OC(r,n.type,n.pendingProps,Da),d!==null?(n.stateNode=d,Lo||(s=y5(d,n.type,n.pendingProps,s),s!==null&&(zc(n,0).serverProps=s)),Qn=n,Le=Pl(d.firstChild),Da=false,s=true):s=false,d=!s),d&&(u&&Ch(n,r),Pi(n))),he(n),r=n.type,s=n.pendingProps,d=e!==null?e.memoizedProps:null,u=s.children,rg(r,s)?u=null:d!==null&&rg(r,d)&&(n.flags|=32),n.memoizedState!==null&&(r=t2(e,n,Nk,null,null,a),u0._currentValue=r),ay(e,n),qn(e,n,u,a),n.child;case 6:return e===null&&ne&&(a=n.pendingProps,e=ht(),u=e.ancestorInfo.current,a=u!=null?vh(a,u.tag,e.ancestorInfo.implicitRootScope):true,e=Le,(u=!e)||(u=RC(e,n.pendingProps,Da),u!==null?(n.stateNode=u,Qn=n,Le=null,u=true):u=false,u=!u),u&&(a&&Ch(n,e),Pi(n))),null;case 13:return eE(e,n,a);case 4:return Q(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Vc(n,null,u,a):qn(e,n,u,a),n.child;case 11:return Q3(e,n,n.type,n.pendingProps,a);case 7:return qn(e,n,n.pendingProps,a),n.child;case 8:return qn(e,n,n.pendingProps.children,a),n.child;case 12:return n.flags|=4,n.flags|=2048,u=n.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,qn(e,n,n.pendingProps.children,a),n.child;case 10:return u=n.type,r=n.pendingProps,s=r.value,"value"in r||jM||(jM=true,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),tu(n,u,s),qn(e,n,r.children,a),n.child;case 9:return r=n.type._context,u=n.pendingProps.children,typeof u!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),kc(n),r=We(r),u=fx(u,r,void 0),n.flags|=1,qn(e,n,u,a),n.child;case 14:return V3(e,n,n.type,n.pendingProps,a);case 15:return Z3(e,n,n.type,n.pendingProps,a);case 19:return lE(e,n,a);case 31:return jk(e,n,a);case 22:return J3(e,n,a,n.pendingProps);case 24:return kc(n),u=We(fn),e===null?(r=Qp(),r===null&&(r=Ae,s=qp(),r.pooledCache=s,Cc(s),s!==null&&(r.pooledCacheLanes|=a),r=s),n.memoizedState={parent:u,cache:r},Zp(n),tu(n,fn,r)):((e.lanes&a)!==0&&(Jp(e,n),Jf(n,null,null,a),Zf()),r=e.memoizedState,s=n.memoizedState,r.parent!==u?(r={parent:u,cache:u},n.memoizedState=r,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=r),tu(n,fn,u)):(u=s.cache,tu(n,fn,u),u!==r.cache&&jp(n,[fn],a,true))),qn(e,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ii(e){e.flags|=4;}function Y2(e,n,a,u,r){if((n=(e.mode&sR)!==Ot)&&(n=false),n){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if($E())e.flags|=8192;else throw Qc=Fy,hx}else e.flags&=-16777217;}function aE(e,n){if(n.type!=="stylesheet"||(n.state.loading&wa)!==ar)e.flags&=-16777217;else if(e.flags|=16777216,!w5(n))if($E())e.flags|=8192;else throw Qc=Fy,hx}function iy(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Or():536870912,e.lanes|=n,Ic|=n);}function td(e,n){if(!ne)switch(e.tailMode){case "hidden":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break;case "collapsed":a=e.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null;}}function Re(e){var n=e.alternate!==null&&e.alternate.child===e.child,a=0,u=0;if(n)if((e.mode&qt)!==Ot){for(var r=e.selfBaseDuration,s=e.child;s!==null;)a|=s.lanes|s.childLanes,u|=s.subtreeFlags&65011712,u|=s.flags&65011712,r+=s.treeBaseDuration,s=s.sibling;e.treeBaseDuration=r;}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,u|=r.subtreeFlags&65011712,u|=r.flags&65011712,r.return=e,r=r.sibling;else if((e.mode&qt)!==Ot){r=e.actualDuration,s=e.selfBaseDuration;for(var d=e.child;d!==null;)a|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,r+=d.actualDuration,s+=d.treeBaseDuration,d=d.sibling;e.actualDuration=r,e.treeBaseDuration=s;}else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,u|=r.subtreeFlags,u|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=u,e.childLanes=a,n}function Xk(e,n,a){var u=n.pendingProps;switch(Lp(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(n),null;case 1:return Re(n),null;case 3:return a=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),li(fn,n),mt(n),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&($r(n)?(Bp(),ii(n)):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Yp())),Re(n),null;case 26:var r=n.type,s=n.memoizedState;return e===null?(ii(n),s!==null?(Re(n),aE(n,s)):(Re(n),Y2(n,r,null,u,a))):s?s!==e.memoizedState?(ii(n),Re(n),aE(n,s)):(Re(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&ii(n),Re(n),Y2(n,r,e,u,a)),null;case 27:if(ye(n),a=Mt(fu.current),r=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&ii(n);else {if(!u){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Re(n),null}e=ht(),$r(n)?Q4(n):(e=A5(r,u,a,e,true),n.stateNode=e,ii(n));}return Re(n),null;case 5:if(ye(n),r=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&ii(n);else {if(!u){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Re(n),null}var d=ht();if($r(n))Q4(n);else {switch(s=Mt(fu.current),_p(r,d.ancestorInfo),d=d.context,s=my(s),d){case Rs:s=s.createElementNS(ns,r);break;case M1:s=s.createElementNS(Ry,r);break;default:switch(r){case "svg":s=s.createElementNS(ns,r);break;case "math":s=s.createElementNS(Ry,r);break;case "script":s=s.createElement("div"),s.innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case "select":s=typeof u.is=="string"?s.createElement("select",{is:u.is}):s.createElement("select"),u.multiple?s.multiple=true:u.size&&(s.size=u.size);break;default:s=typeof u.is=="string"?s.createElement(r,{is:u.is}):s.createElement(r),r.indexOf("-")===-1&&(r!==r.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",r),Object.prototype.toString.call(s)!=="[object HTMLUnknownElement]"||eo.call(d8,r)||(d8[r]=true,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",r)));}}s[Gn]=n,s[sl]=u;t:for(d=n.child;d!==null;){if(d.tag===5||d.tag===6)s.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===n)break t;for(;d.sibling===null;){if(d.return===null||d.return===n)break t;d=d.return;}d.sibling.return=d.return,d=d.sibling;}n.stateNode=s;t:switch(Xn(s,r,u),r){case "button":case "input":case "select":case "textarea":u=!!u.autoFocus;break t;case "img":u=true;break t;default:u=false;}u&&ii(n);}}return Re(n),Y2(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&ii(n);else {if(typeof u!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Mt(fu.current),a=ht(),$r(n)){if(e=n.stateNode,a=n.memoizedProps,r=!Lo,u=null,s=Qn,s!==null)switch(s.tag){case 3:r&&(r=_5(e,a,u),r!==null&&(zc(n,0).serverProps=r));break;case 27:case 5:u=s.memoizedProps,r&&(r=_5(e,a,u),r!==null&&(zc(n,0).serverProps=r));}e[Gn]=n,e=!!(e.nodeValue===a||u!==null&&u.suppressHydrationWarning===true||r5(e.nodeValue,a)),e||Pi(n,true);}else r=a.ancestorInfo.current,r!=null&&vh(u,r.tag,a.ancestorInfo.implicitRootScope),e=my(e).createTextNode(u),e[Gn]=n,n.stateNode=e;}return Re(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(u=$r(n),a!==null){if(e===null){if(!u)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Gn]=n,Re(n),(n.mode&qt)!==Ot&&a!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration));}else Bp(),Dc(),(n.flags&128)===0&&(a=n.memoizedState=null),n.flags|=4,Re(n),(n.mode&qt)!==Ot&&a!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration));e=false;}else a=Yp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=true;if(!e)return n.flags&256?(Fl(n),n):(Fl(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Re(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=u,s=$r(n),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(s=n.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");s[Gn]=n,Re(n),(n.mode&qt)!==Ot&&r!==null&&(r=n.child,r!==null&&(n.treeBaseDuration-=r.treeBaseDuration));}else Bp(),Dc(),(n.flags&128)===0&&(r=n.memoizedState=null),n.flags|=4,Re(n),(n.mode&qt)!==Ot&&r!==null&&(r=n.child,r!==null&&(n.treeBaseDuration-=r.treeBaseDuration));r=false;}else r=Yp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=true;if(!r)return n.flags&256?(Fl(n),n):(Fl(n),null)}return Fl(n),(n.flags&128)!==0?(n.lanes=a,(n.mode&qt)!==Ot&&Gf(n),n):(a=u!==null,e=e!==null&&e.memoizedState!==null,a&&(u=n.child,r=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(r=u.alternate.memoizedState.cachePool.pool),s=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(s=u.memoizedState.cachePool.pool),s!==r&&(u.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),iy(n,n.updateQueue),Re(n),(n.mode&qt)!==Ot&&a&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return mt(n),e===null&&ng(n.stateNode.containerInfo),Re(n),null;case 10:return li(n.type,n),Re(n),null;case 19:if(Et(on,n),u=n.memoizedState,u===null)return Re(n),null;if(r=(n.flags&128)!==0,s=u.rendering,s===null)if(r)td(u,false);else {if(Ze!==Si||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(s=qh(e),s!==null){for(n.flags|=128,td(u,false),e=s.updateQueue,n.updateQueue=e,iy(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)B4(a,e),a=a.sibling;return st(on,on.current&vs|qd,n),ne&&ni(n,u.treeForkCount),n.child}e=e.sibling;}u.tail!==null&&Rn()>s1&&(n.flags|=128,r=true,td(u,false),n.lanes=4194304);}else {if(!r)if(e=qh(s),e!==null){if(n.flags|=128,r=true,e=e.updateQueue,n.updateQueue=e,iy(n,e),td(u,true),u.tail===null&&u.tailMode==="hidden"&&!s.alternate&&!ne)return Re(n),null}else 2*Rn()-u.renderingStartTime>s1&&a!==536870912&&(n.flags|=128,r=true,td(u,false),n.lanes=4194304);u.isBackwards?(s.sibling=n.child,n.child=s):(e=u.last,e!==null?e.sibling=s:n.child=s,u.last=s);}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Rn(),e.sibling=null,a=on.current,a=r?a&vs|qd:a&vs,st(on,a,n),ne&&ni(n,u.treeForkCount),e):(Re(n),null);case 22:case 23:return Fl(n),Fp(n),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(a&536870912)!==0&&(n.flags&128)===0&&(Re(n),n.subtreeFlags&6&&(n.flags|=8192)):Re(n),a=n.updateQueue,a!==null&&iy(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==a&&(n.flags|=2048),e!==null&&Et(Xc,n),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),li(fn,n),Re(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Gk(e,n){switch(Lp(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&qt)!==Ot&&Gf(n),n):null;case 3:return li(fn,n),mt(n),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ye(n),null;case 31:if(n.memoizedState!==null){if(Fl(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Dc();}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&qt)!==Ot&&Gf(n),n):null;case 13:if(Fl(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Dc();}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&qt)!==Ot&&Gf(n),n):null;case 19:return Et(on,n),null;case 4:return mt(n),null;case 10:return li(n.type,n),null;case 22:case 23:return Fl(n),Fp(n),e!==null&&Et(Xc,n),e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&qt)!==Ot&&Gf(n),n):null;case 24:return li(fn,n),null;case 25:return null;default:return null}}function oE(e,n){switch(Lp(n),n.tag){case 3:li(fn,n),mt(n);break;case 26:case 27:case 5:ye(n);break;case 4:mt(n);break;case 31:n.memoizedState!==null&&Fl(n);break;case 13:Fl(n);break;case 19:Et(on,n);break;case 10:li(n.type,n);break;case 22:case 23:Fl(n),Fp(n),e!==null&&Et(Xc,n);break;case 24:li(fn,n);}}function To(e){return (e.mode&qt)!==Ot}function iE(e,n){To(e)?(_o(),ed(n,e),Mo()):ed(n,e);}function B2(e,n,a){To(e)?(_o(),jr(a,e,n),Mo()):jr(a,e,n);}function ed(e,n){try{var a=n.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var r=u.next;a=r;do{if((a.tag&e)===e&&(u=void 0,(e&yl)!==Py&&(ks=!0),u=dt(n,mR,a),(e&yl)!==Py&&(ks=!1),u!==void 0&&typeof u!="function")){var s=void 0;s=(a.tag&oa)!==0?"useLayoutEffect":(a.tag&yl)!==0?"useInsertionEffect":"useEffect";var d=void 0;d=u===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof u.then=="function"?`
|
|
154
|
-
|
|
155
|
-
It looks like you wrote `+s+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
156
|
-
|
|
157
|
-
`+s+`(() => {
|
|
158
|
-
async function fetchData() {
|
|
159
|
-
// You can await here
|
|
160
|
-
const response = await MyAPI.getData(someId);
|
|
161
|
-
// ...
|
|
162
|
-
}
|
|
163
|
-
fetchData();
|
|
164
|
-
}, [someId]); // Or [] if effect doesn't need props or state
|
|
165
|
-
|
|
166
|
-
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+u,dt(n,function(y,g){console.error("%s must not return anything besides a function, which is used for clean-up.%s",y,g);},s,d);}a=a.next;}while(a!==r)}}catch(y){me(n,n.return,y);}}function jr(e,n,a){try{var u=n.updateQueue,r=u!==null?u.lastEffect:null;if(r!==null){var s=r.next;u=s;do{if((u.tag&e)===e){var d=u.inst,y=d.destroy;y!==void 0&&(d.destroy=void 0,(e&yl)!==Py&&(ks=!0),r=n,dt(r,pR,r,a,y),(e&yl)!==Py&&(ks=!1));}u=u.next;}while(u!==s)}}catch(g){me(n,n.return,g);}}function uE(e,n){To(e)?(_o(),ed(n,e),Mo()):ed(n,e);}function W2(e,n,a){To(e)?(_o(),jr(a,e,n),Mo()):jr(a,e,n);}function cE(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||_s||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(e)||"instance"));try{dt(e,s3,n,a);}catch(u){me(e,e.return,u);}}}function Qk(e,n,a){return e.getSnapshotBeforeUpdate(n,a)}function Vk(e,n){var a=n.memoizedProps,u=n.memoizedState;n=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||_s||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(e)||"instance"),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(e)||"instance"));try{var r=Uc(e.type,a),s=dt(e,Qk,n,r,u);a=qM,s!==void 0||a.has(e.type)||(a.add(e.type),dt(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Z(e));})),n.__reactInternalSnapshotBeforeUpdate=s;}catch(d){me(e,e.return,d);}}function rE(e,n,a){a.props=Uc(e.type,e.memoizedProps),a.state=e.memoizedState,To(e)?(_o(),dt(e,cM,e,n,a),Mo()):dt(e,cM,e,n,a);}function Zk(e){var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode;}if(typeof n=="function")if(To(e))try{_o(),e.refCleanup=n(a);}finally{Mo();}else e.refCleanup=n(a);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Z(e)),n.current=a;}}function nd(e,n){try{dt(e,Zk,e);}catch(a){me(e,n,a);}}function Ao(e,n){var a=e.ref,u=e.refCleanup;if(a!==null)if(typeof u=="function")try{if(To(e))try{_o(),dt(e,u);}finally{Mo(e);}else dt(e,u);}catch(r){me(e,n,r);}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null);}else if(typeof a=="function")try{if(To(e))try{_o(),dt(e,a,null);}finally{Mo(e);}else dt(e,a,null);}catch(r){me(e,n,r);}else a.current=null;}function sE(e,n,a,u){var r=e.memoizedProps,s=r.id,d=r.onCommit;r=r.onRender,n=n===null?"mount":"update",Vy&&(n="nested-update"),typeof r=="function"&&r(s,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof d=="function"&&d(s,n,u,a);}function Jk(e,n,a,u){var r=e.memoizedProps;e=r.id,r=r.onPostCommit,n=n===null?"mount":"update",Vy&&(n="nested-update"),typeof r=="function"&&r(e,n,u,a);}function fE(e){var n=e.type,a=e.memoizedProps,u=e.stateNode;try{dt(e,bC,u,n,a,e);}catch(r){me(e,e.return,r);}}function j2(e,n,a){try{dt(e,SC,e.stateNode,e.type,a,n,e);}catch(u){me(e,e.return,u);}}function dE(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ru(e.type)||e.tag===4}function q2(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||dE(e.return))return null;e=e.return;}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ru(e.type)||e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child;}if(!(e.flags&2))return e.stateNode}}function X2(e,n,a){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(b5(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n)):(b5(a),n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=ti));else if(u!==4&&(u===27&&ru(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(X2(e,n,a),e=e.sibling;e!==null;)X2(e,n,a),e=e.sibling;}function uy(e,n,a){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(u!==4&&(u===27&&ru(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(uy(e,n,a),e=e.sibling;e!==null;)uy(e,n,a),e=e.sibling;}function Kk(e){for(var n,a=e.return;a!==null;){if(dE(a)){n=a;break}a=a.return;}if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,a=q2(e),uy(e,a,n);break;case 5:a=n.stateNode,n.flags&32&&(x5(a),n.flags&=-33),n=q2(e),uy(e,n,a);break;case 3:case 4:n=n.stateNode.containerInfo,a=q2(e),X2(e,a,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function hE(e){var n=e.stateNode,a=e.memoizedProps;try{dt(e,HC,e.type,a,n,e);}catch(u){me(e,e.return,u);}}function yE(e,n){return n.tag===31?(n=n.memoizedState,e.memoizedState!==null&&n===null):n.tag===13?(e=e.memoizedState,n=n.memoizedState,e!==null&&e.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?e.memoizedState.isDehydrated&&(n.flags&256)===0:false}function Fk(e,n){if(e=e.containerInfo,Xx=z1,e=C4(e),zp(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else t:{a=(a=e.ownerDocument)&&a.defaultView||window;var u=a.getSelection&&a.getSelection();if(u&&u.rangeCount!==0){a=u.anchorNode;var r=u.anchorOffset,s=u.focusNode;u=u.focusOffset;try{a.nodeType,s.nodeType;}catch{a=null;break t}var d=0,y=-1,g=-1,b=0,R=0,w=e,D=null;e:for(;;){for(var Y;w!==a||r!==0&&w.nodeType!==3||(y=d+r),w!==s||u!==0&&w.nodeType!==3||(g=d+u),w.nodeType===3&&(d+=w.nodeValue.length),(Y=w.firstChild)!==null;)D=w,w=Y;for(;;){if(w===e)break e;if(D===a&&++b===r&&(y=d),D===s&&++R===u&&(g=d),(Y=w.nextSibling)!==null)break;w=D,D=w.parentNode;}w=Y;}a=y===-1||g===-1?null:{start:y,end:g};}else a=null;}a=a||{start:0,end:0};}else a=null;for(Gx={focusedElem:e,selectionRange:a},z1=false,Un=n;Un!==null;)if(n=Un,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Un=e;else for(;Un!==null;){switch(e=n=Un,a=e.alternate,r=e.flags,e.tag){case 0:if((r&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:(r&1024)!==0&&a!==null&&Vk(e,a);break;case 3:if((r&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)sg(e);else if(a===1)switch(e.nodeName){case "HEAD":case "HTML":case "BODY":sg(e);break;default:e.textContent="";}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=n.sibling,e!==null){e.return=n.return,Un=e;break}Un=n.return;}}function mE(e,n,a){var u=Jl(),r=bo(),s=So(),d=Eo(),y=a.flags;switch(a.tag){case 0:case 11:case 15:zo(e,a),y&4&&iE(a,oa|Oa);break;case 1:if(zo(e,a),y&4)if(e=a.stateNode,n===null)a.type.defaultProps||"ref"in a.memoizedProps||_s||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(a)||"instance")),To(a)?(_o(),dt(a,dx,a,e),Mo()):dt(a,dx,a,e);else {var g=Uc(a.type,n.memoizedProps);n=n.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||_s||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Z(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Z(a)||"instance")),To(a)?(_o(),dt(a,oM,a,e,g,n,e.__reactInternalSnapshotBeforeUpdate),Mo()):dt(a,oM,a,e,g,n,e.__reactInternalSnapshotBeforeUpdate);}y&64&&cE(a),y&512&&nd(a,a.return);break;case 3:if(n=ai(),zo(e,a),y&64&&(y=a.updateQueue,y!==null)){if(g=null,a.child!==null)switch(a.child.tag){case 27:case 5:g=a.child.stateNode;break;case 1:g=a.child.stateNode;}try{dt(a,s3,y,g);}catch(R){me(a,a.return,R);}}e.effectDuration+=Uh(n);break;case 27:n===null&&y&4&&hE(a);case 26:case 5:if(zo(e,a),n===null){if(y&4)fE(a);else if(y&64){e=a.type,n=a.memoizedProps,g=a.stateNode;try{dt(a,vC,g,e,n,a);}catch(R){me(a,a.return,R);}}}y&512&&nd(a,a.return);break;case 12:if(y&4){y=ai(),zo(e,a),e=a.stateNode,e.effectDuration+=Xf(y);try{dt(a,sE,a,n,bu,e.effectDuration);}catch(R){me(a,a.return,R);}}else zo(e,a);break;case 31:zo(e,a),y&4&&xE(e,a);break;case 13:zo(e,a),y&4&&bE(e,a),y&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(y=iC.bind(null,a),wC(e,y))));break;case 22:if(y=a.memoizedState!==null||vi,!y){n=n!==null&&n.memoizedState!==null||mn,g=vi;var b=mn;vi=y,(mn=n)&&!b?(Do(e,a,(a.subtreeFlags&8772)!==0),(a.mode&qt)!==Ot&&0<=Tt&&0<=kt&&.05<kt-Tt&&_h(a,Tt,kt)):zo(e,a),vi=g,mn=b;}break;case 30:break;default:zo(e,a);}(a.mode&qt)!==Ot&&0<=Tt&&0<=kt&&((tn||.05<Ve)&&go(a,Tt,kt,Ve,je),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<kt-Tt&&(yE(a.return.alternate,a.return)||po(a,Tt,kt,"Mount"))),Kl(u),vo(r),je=s,tn=d;}function pE(e){var n=e.alternate;n!==null&&(e.alternate=null,pE(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ot(n)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null;}function ui(e,n,a){for(a=a.child;a!==null;)gE(e,n,a),a=a.sibling;}function gE(e,n,a){if(ll&&typeof ll.onCommitFiberUnmount=="function")try{ll.onCommitFiberUnmount(ts,a);}catch(b){Uo||(Uo=true,console.error("React instrumentation encountered an error: %o",b));}var u=Jl(),r=bo(),s=So(),d=Eo();switch(a.tag){case 26:mn||Ao(a,n),ui(e,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:mn||Ao(a,n);var y=pn,g=Cl;ru(a.type)&&(pn=a.stateNode,Cl=false),ui(e,n,a),dt(a,fd,a.stateNode),pn=y,Cl=g;break;case 5:mn||Ao(a,n);case 6:if(y=pn,g=Cl,pn=null,ui(e,n,a),pn=y,Cl=g,pn!==null)if(Cl)try{dt(a,_C,pn,a.stateNode);}catch(b){me(a,n,b);}else try{dt(a,MC,pn,a.stateNode);}catch(b){me(a,n,b);}break;case 18:pn!==null&&(Cl?(e=pn,v5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Kr(e)):v5(pn,a.stateNode));break;case 4:y=pn,g=Cl,pn=a.stateNode.containerInfo,Cl=true,ui(e,n,a),pn=y,Cl=g;break;case 0:case 11:case 14:case 15:jr(yl,a,n),mn||B2(a,n,oa),ui(e,n,a);break;case 1:mn||(Ao(a,n),y=a.stateNode,typeof y.componentWillUnmount=="function"&&rE(a,n,y)),ui(e,n,a);break;case 21:ui(e,n,a);break;case 22:mn=(y=mn)||a.memoizedState!==null,ui(e,n,a),mn=y;break;default:ui(e,n,a);}(a.mode&qt)!==Ot&&0<=Tt&&0<=kt&&(tn||.05<Ve)&&go(a,Tt,kt,Ve,je),Kl(u),vo(r),je=s,tn=d;}function xE(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{dt(n,NC,e);}catch(a){me(n,n.return,a);}}}function bE(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{dt(n,$C,e);}catch(a){me(n,n.return,a);}}function Ik(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new XM),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new XM),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function cy(e,n){var a=Ik(e);n.forEach(function(u){if(!a.has(u)){if(a.add(u),No)if(Ts!==null&&As!==null)id(As,Ts);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var r=uC.bind(null,e,u);u.then(r,r);}});}function Dl(e,n){var a=n.deletions;if(a!==null)for(var u=0;u<a.length;u++){var r=e,s=n,d=a[u],y=Jl(),g=s;t:for(;g!==null;){switch(g.tag){case 27:if(ru(g.type)){pn=g.stateNode,Cl=false;break t}break;case 5:pn=g.stateNode,Cl=false;break t;case 3:case 4:pn=g.stateNode.containerInfo,Cl=true;break t}g=g.return;}if(pn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");gE(r,s,d),pn=null,Cl=false,(d.mode&qt)!==Ot&&0<=Tt&&0<=kt&&.05<kt-Tt&&po(d,Tt,kt,"Unmount"),Kl(y),r=d,s=r.alternate,s!==null&&(s.return=null),r.return=null;}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)vE(n,e),n=n.sibling;}function vE(e,n){var a=Jl(),u=bo(),r=So(),s=Eo(),d=e.alternate,y=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Dl(n,e),kl(e),y&4&&(jr(yl|Oa,e,e.return),ed(yl|Oa,e),B2(e,e.return,oa|Oa));break;case 1:if(Dl(n,e),kl(e),y&512&&(mn||d===null||Ao(d,d.return)),y&64&&vi&&(y=e.updateQueue,y!==null&&(d=y.callbacks,d!==null))){var g=y.shared.hiddenCallbacks;y.shared.hiddenCallbacks=g===null?d:g.concat(d);}break;case 26:if(g=io,Dl(n,e),kl(e),y&512&&(mn||d===null||Ao(d,d.return)),y&4){var b=d!==null?d.memoizedState:null;if(y=e.memoizedState,d===null)if(y===null)if(e.stateNode===null){t:{y=e.type,d=e.memoizedProps,g=g.ownerDocument||g;e:switch(y){case "title":b=g.getElementsByTagName("title")[0],(!b||b[xd]||b[Gn]||b.namespaceURI===ns||b.hasAttribute("itemprop"))&&(b=g.createElement(y),g.head.insertBefore(b,g.querySelector("head > title"))),Xn(b,y,d),b[Gn]=e,_t(b),y=b;break t;case "link":var R=O5("link","href",g).get(y+(d.href||""));if(R){for(var w=0;w<R.length;w++)if(b=R[w],b.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&b.getAttribute("rel")===(d.rel==null?null:d.rel)&&b.getAttribute("title")===(d.title==null?null:d.title)&&b.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){R.splice(w,1);break e}}b=g.createElement(y),Xn(b,y,d),g.head.appendChild(b);break;case "meta":if(R=O5("meta","content",g).get(y+(d.content||""))){for(w=0;w<R.length;w++)if(b=R[w],Se(d.content,"content"),b.getAttribute("content")===(d.content==null?null:""+d.content)&&b.getAttribute("name")===(d.name==null?null:d.name)&&b.getAttribute("property")===(d.property==null?null:d.property)&&b.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&b.getAttribute("charset")===(d.charSet==null?null:d.charSet)){R.splice(w,1);break e}}b=g.createElement(y),Xn(b,y,d),g.head.appendChild(b);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+y+'". This is a bug in React.')}b[Gn]=e,_t(b),y=b;}e.stateNode=y;}else R5(g,e.type,e.stateNode);else e.stateNode=C5(g,y,e.memoizedProps);else b!==y?(b===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):b.count--,y===null?R5(g,e.type,e.stateNode):C5(g,y,e.memoizedProps)):y===null&&e.stateNode!==null&&j2(e,e.memoizedProps,d.memoizedProps);}break;case 27:Dl(n,e),kl(e),y&512&&(mn||d===null||Ao(d,d.return)),d!==null&&y&4&&j2(e,e.memoizedProps,d.memoizedProps);break;case 5:if(Dl(n,e),kl(e),y&512&&(mn||d===null||Ao(d,d.return)),e.flags&32){g=e.stateNode;try{dt(e,x5,g);}catch(ct){me(e,e.return,ct);}}y&4&&e.stateNode!=null&&(g=e.memoizedProps,j2(e,g,d!==null?d.memoizedProps:g)),y&1024&&(Tx=true,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Dl(n,e),kl(e),y&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");y=e.memoizedProps,d=d!==null?d.memoizedProps:y,g=e.stateNode;try{dt(e,EC,g,d,y);}catch(ct){me(e,e.return,ct);}}break;case 3:if(g=ai(),_1=null,b=io,io=py(n.containerInfo),Dl(n,e),io=b,kl(e),y&4&&d!==null&&d.memoizedState.isDehydrated)try{dt(e,UC,n.containerInfo);}catch(ct){me(e,e.return,ct);}Tx&&(Tx=false,SE(e)),n.effectDuration+=Uh(g);break;case 4:y=io,io=py(e.stateNode.containerInfo),Dl(n,e),kl(e),io=y;break;case 12:y=ai(),Dl(n,e),kl(e),e.stateNode.effectDuration+=Xf(y);break;case 31:Dl(n,e),kl(e),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,cy(e,y)));break;case 13:Dl(n,e),kl(e),e.child.flags&8192&&e.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(r1=Rn()),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,cy(e,y)));break;case 22:g=e.memoizedState!==null;var D=d!==null&&d.memoizedState!==null,Y=vi,lt=mn;if(vi=Y||g,mn=lt||D,Dl(n,e),mn=lt,vi=Y,D&&!g&&!Y&&!lt&&(e.mode&qt)!==Ot&&0<=Tt&&0<=kt&&.05<kt-Tt&&_h(e,Tt,kt),kl(e),y&8192)t:for(n=e.stateNode,n._visibility=g?n._visibility&~zd:n._visibility|zd,!g||d===null||D||vi||mn||(Nc(e),(e.mode&qt)!==Ot&&0<=Tt&&0<=kt&&.05<kt-Tt&&po(e,Tt,kt,"Disconnect")),d=null,n=e;;){if(n.tag===5||n.tag===26){if(d===null){D=d=n;try{b=D.stateNode,g?dt(D,AC,b):dt(D,kC,D.stateNode,D.memoizedProps);}catch(ct){me(D,D.return,ct);}}}else if(n.tag===6){if(d===null){D=n;try{R=D.stateNode,g?dt(D,zC,R):dt(D,CC,R,D.memoizedProps);}catch(ct){me(D,D.return,ct);}}}else if(n.tag===18){if(d===null){D=n;try{w=D.stateNode,g?dt(D,TC,w):dt(D,DC,D.stateNode);}catch(ct){me(D,D.return,ct);}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break t;for(;n.sibling===null;){if(n.return===null||n.return===e)break t;d===n&&(d=null),n=n.return;}d===n&&(d=null),n.sibling.return=n.return,n=n.sibling;}y&4&&(y=e.updateQueue,y!==null&&(d=y.retryQueue,d!==null&&(y.retryQueue=null,cy(e,d))));break;case 19:Dl(n,e),kl(e),y&4&&(y=e.updateQueue,y!==null&&(e.updateQueue=null,cy(e,y)));break;case 30:break;case 21:break;default:Dl(n,e),kl(e);}(e.mode&qt)!==Ot&&0<=Tt&&0<=kt&&((tn||.05<Ve)&&go(e,Tt,kt,Ve,je),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<kt-Tt&&(yE(e.return.alternate,e.return)||po(e,Tt,kt,"Mount"))),Kl(a),vo(u),je=r,tn=s;}function kl(e){var n=e.flags;if(n&2){try{dt(e,Kk,e);}catch(a){me(e,e.return,a);}e.flags&=-3;}n&4096&&(e.flags&=-4097);}function SE(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;SE(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling;}}function zo(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)mE(e,n.alternate,n),n=n.sibling;}function EE(e){var n=Jl(),a=bo(),u=So(),r=Eo();switch(e.tag){case 0:case 11:case 14:case 15:B2(e,e.return,oa),Nc(e);break;case 1:Ao(e,e.return);var s=e.stateNode;typeof s.componentWillUnmount=="function"&&rE(e,e.return,s),Nc(e);break;case 27:dt(e,fd,e.stateNode);case 26:case 5:Ao(e,e.return),Nc(e);break;case 22:e.memoizedState===null&&Nc(e);break;case 30:Nc(e);break;default:Nc(e);}(e.mode&qt)!==Ot&&0<=Tt&&0<=kt&&(tn||.05<Ve)&&go(e,Tt,kt,Ve,je),Kl(n),vo(a),je=u,tn=r;}function Nc(e){for(e=e.child;e!==null;)EE(e),e=e.sibling;}function ME(e,n,a,u){var r=Jl(),s=bo(),d=So(),y=Eo(),g=a.flags;switch(a.tag){case 0:case 11:case 15:Do(e,a,u),iE(a,oa);break;case 1:if(Do(e,a,u),n=a.stateNode,typeof n.componentDidMount=="function"&&dt(a,dx,a,n),n=a.updateQueue,n!==null){e=a.stateNode;try{dt(a,Uk,n,e);}catch(b){me(a,a.return,b);}}u&&g&64&&cE(a),nd(a,a.return);break;case 27:hE(a);case 26:case 5:Do(e,a,u),u&&n===null&&g&4&&fE(a),nd(a,a.return);break;case 12:if(u&&g&4){g=ai(),Do(e,a,u),u=a.stateNode,u.effectDuration+=Xf(g);try{dt(a,sE,a,n,bu,u.effectDuration);}catch(b){me(a,a.return,b);}}else Do(e,a,u);break;case 31:Do(e,a,u),u&&g&4&&xE(e,a);break;case 13:Do(e,a,u),u&&g&4&&bE(e,a);break;case 22:a.memoizedState===null&&Do(e,a,u),nd(a,a.return);break;case 30:break;default:Do(e,a,u);}(a.mode&qt)!==Ot&&0<=Tt&&0<=kt&&(tn||.05<Ve)&&go(a,Tt,kt,Ve,je),Kl(r),vo(s),je=d,tn=y;}function Do(e,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)ME(e,n.alternate,n,a),n=n.sibling;}function G2(e,n){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==a&&(e!=null&&Cc(e),a!=null&&qf(a));}function Q2(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(Cc(n),e!=null&&qf(e));}function to(e,n,a,u,r){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var s=n.sibling;_E(e,n,a,u,s!==null?s.actualStartTime:r),n=s;}}function _E(e,n,a,u,r){var s=Jl(),d=bo(),y=So(),g=Eo(),b=mu,R=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&qt)!==Ot&&0<n.actualStartTime&&(n.flags&1)!==0&&Th(n,n.actualStartTime,r,_n,a),to(e,n,a,u,r),R&2048&&uE(n,ml|Oa);break;case 1:(n.mode&qt)!==Ot&&0<n.actualStartTime&&((n.flags&128)!==0?kp(n,n.actualStartTime,r,[]):(n.flags&1)!==0&&Th(n,n.actualStartTime,r,_n,a)),to(e,n,a,u,r);break;case 3:var w=ai(),D=_n;_n=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,to(e,n,a,u,r),_n=D,R&2048&&(a=null,n.alternate!==null&&(a=n.alternate.memoizedState.cache),u=n.memoizedState.cache,u!==a&&(Cc(u),a!=null&&qf(a))),e.passiveEffectDuration+=Uh(w);break;case 12:if(R&2048){R=ai(),to(e,n,a,u,r),e=n.stateNode,e.passiveEffectDuration+=Xf(R);try{dt(n,Jk,n,n.alternate,bu,e.passiveEffectDuration);}catch(Y){me(n,n.return,Y);}}else to(e,n,a,u,r);break;case 31:R=_n,w=n.alternate!==null?n.alternate.memoizedState:null,D=n.memoizedState,w!==null&&D===null?(D=n.deletions,D!==null&&0<D.length&&D[0].tag===18?(_n=false,w=w.hydrationErrors,w!==null&&kp(n,n.actualStartTime,r,w)):_n=true):_n=false,to(e,n,a,u,r),_n=R;break;case 13:R=_n,w=n.alternate!==null?n.alternate.memoizedState:null,D=n.memoizedState,w===null||w.dehydrated===null||D!==null&&D.dehydrated!==null?_n=false:(D=n.deletions,D!==null&&0<D.length&&D[0].tag===18?(_n=false,w=w.hydrationErrors,w!==null&&kp(n,n.actualStartTime,r,w)):_n=true),to(e,n,a,u,r),_n=R;break;case 23:break;case 22:D=n.stateNode,w=n.alternate,n.memoizedState!==null?D._visibility&si?to(e,n,a,u,r):ld(e,n,a,u,r):D._visibility&si?to(e,n,a,u,r):(D._visibility|=si,qr(e,n,a,u,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),r),(n.mode&qt)===Ot||_n||(e=n.actualStartTime,0<=e&&.05<r-e&&_h(n,e,r),0<=Tt&&0<=kt&&.05<kt-Tt&&_h(n,Tt,kt))),R&2048&&G2(w,n);break;case 24:to(e,n,a,u,r),R&2048&&Q2(n.alternate,n);break;default:to(e,n,a,u,r);}(n.mode&qt)!==Ot&&((e=!_n&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(a=n.actualStartTime,0<=a&&.05<r-a&&po(n,a,r,"Mount")),0<=Tt&&0<=kt&&((tn||.05<Ve)&&go(n,Tt,kt,Ve,je),e&&.05<kt-Tt&&po(n,Tt,kt,"Mount"))),Kl(s),vo(d),je=y,tn=g,mu=b;}function qr(e,n,a,u,r,s){for(r=r&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var d=n.sibling;TE(e,n,a,u,r,d!==null?d.actualStartTime:s),n=d;}}function TE(e,n,a,u,r,s){var d=Jl(),y=bo(),g=So(),b=Eo(),R=mu;r&&(n.mode&qt)!==Ot&&0<n.actualStartTime&&(n.flags&1)!==0&&Th(n,n.actualStartTime,s,_n,a);var w=n.flags;switch(n.tag){case 0:case 11:case 15:qr(e,n,a,u,r,s),uE(n,ml);break;case 23:break;case 22:var D=n.stateNode;n.memoizedState!==null?D._visibility&si?qr(e,n,a,u,r,s):ld(e,n,a,u,s):(D._visibility|=si,qr(e,n,a,u,r,s)),r&&w&2048&&G2(n.alternate,n);break;case 24:qr(e,n,a,u,r,s),r&&w&2048&&Q2(n.alternate,n);break;default:qr(e,n,a,u,r,s);}(n.mode&qt)!==Ot&&0<=Tt&&0<=kt&&(tn||.05<Ve)&&go(n,Tt,kt,Ve,je),Kl(d),vo(y),je=g,tn=b,mu=R;}function ld(e,n,a,u,r){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var s=n.child;s!==null;){n=s.sibling;var d=e,y=a,g=u,b=n!==null?n.actualStartTime:r,R=mu;(s.mode&qt)!==Ot&&0<s.actualStartTime&&(s.flags&1)!==0&&Th(s,s.actualStartTime,b,_n,y);var w=s.flags;switch(s.tag){case 22:ld(d,s,y,g,b),w&2048&&G2(s.alternate,s);break;case 24:ld(d,s,y,g,b),w&2048&&Q2(s.alternate,s);break;default:ld(d,s,y,g,b);}mu=R,s=n;}}function Xr(e,n,a){if(e.subtreeFlags&Vd)for(e=e.child;e!==null;)AE(e,n,a),e=e.sibling;}function AE(e,n,a){switch(e.tag){case 26:Xr(e,n,a),e.flags&Vd&&e.memoizedState!==null&&BC(a,io,e.memoizedState,e.memoizedProps);break;case 5:Xr(e,n,a);break;case 3:case 4:var u=io;io=py(e.stateNode.containerInfo),Xr(e,n,a),io=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Vd,Vd=16777216,Xr(e,n,a),Vd=u):Xr(e,n,a));break;default:Xr(e,n,a);}}function zE(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function ad(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],r=Jl();Un=u,CE(u,e),(u.mode&qt)!==Ot&&0<=Tt&&0<=kt&&.05<kt-Tt&&po(u,Tt,kt,"Unmount"),Kl(r);}zE(e);}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)DE(e),e=e.sibling;}function DE(e){var n=Jl(),a=bo(),u=So(),r=Eo();switch(e.tag){case 0:case 11:case 15:ad(e),e.flags&2048&&W2(e,e.return,ml|Oa);break;case 3:var s=ai();ad(e),e.stateNode.passiveEffectDuration+=Uh(s);break;case 12:s=ai(),ad(e),e.stateNode.passiveEffectDuration+=Xf(s);break;case 22:s=e.stateNode,e.memoizedState!==null&&s._visibility&si&&(e.return===null||e.return.tag!==13)?(s._visibility&=~si,ry(e),(e.mode&qt)!==Ot&&0<=Tt&&0<=kt&&.05<kt-Tt&&po(e,Tt,kt,"Disconnect")):ad(e);break;default:ad(e);}(e.mode&qt)!==Ot&&0<=Tt&&0<=kt&&(tn||.05<Ve)&&go(e,Tt,kt,Ve,je),Kl(n),vo(a),tn=r,je=u;}function ry(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],r=Jl();Un=u,CE(u,e),(u.mode&qt)!==Ot&&0<=Tt&&0<=kt&&.05<kt-Tt&&po(u,Tt,kt,"Unmount"),Kl(r);}zE(e);}for(e=e.child;e!==null;)kE(e),e=e.sibling;}function kE(e){var n=Jl(),a=bo(),u=So(),r=Eo();switch(e.tag){case 0:case 11:case 15:W2(e,e.return,ml),ry(e);break;case 22:var s=e.stateNode;s._visibility&si&&(s._visibility&=~si,ry(e));break;default:ry(e);}(e.mode&qt)!==Ot&&0<=Tt&&0<=kt&&(tn||.05<Ve)&&go(e,Tt,kt,Ve,je),Kl(n),vo(a),tn=r,je=u;}function CE(e,n){for(;Un!==null;){var a=Un,u=a,r=n,s=Jl(),d=bo(),y=So(),g=Eo();switch(u.tag){case 0:case 11:case 15:W2(u,r,ml);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(r=u.memoizedState.cachePool.pool,r!=null&&Cc(r));break;case 24:qf(u.memoizedState.cache);}if((u.mode&qt)!==Ot&&0<=Tt&&0<=kt&&(tn||.05<Ve)&&go(u,Tt,kt,Ve,je),Kl(s),vo(d),tn=g,je=y,u=a.child,u!==null)u.return=a,Un=u;else t:for(a=e;Un!==null;){if(u=Un,s=u.sibling,d=u.return,pE(u),u===a){Un=null;break t}if(s!==null){s.return=d,Un=s;break t}Un=d;}}}function Pk(){SR.forEach(function(e){return e()});}function OE(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||q.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Il(e){if((se&Tn)!==Nn&&Gt!==0)return Gt&-Gt;var n=q.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(e),tg()):N()}function RE(){if(Rl===0)if((Gt&536870912)===0||ne){var e=Dy;Dy<<=1,(Dy&3932160)===0&&(Dy=262144),Rl=e;}else Rl=536870912;return e=aa.current,e!==null&&(e.flags|=32),Rl}function Pe(e,n,a){if(ks&&console.error("useInsertionEffect must not schedule updates."),$x&&(h1=true),(e===Ae&&(ve===Kc||ve===Fc)||e.cancelPendingCommit!==null)&&(Qr(e,0),uu(e,Gt,Rl,false)),Ji(e,a),(se&Tn)!==Nn&&e===Ae){if(wo)switch(n.tag){case 0:case 11:case 15:e=Vt&&Z(Vt)||"Unknown",o8.has(e)||(o8.add(e),n=Z(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,e,e));break;case 1:a8||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),a8=true);}}else No&&Rf(e,n,a),rC(n),e===Ae&&((se&Tn)===Nn&&(Du|=a),Ze===Tu&&uu(e,Gt,Rl,false)),ko(e);}function wE(e,n,a){if((se&(Tn|ia))!==Nn)throw Error("Should not already be working.");if(Gt!==0&&Vt!==null){var u=Vt,r=Rn();switch(F6){case Kd:case Kc:var s=wd;He&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Suspended",s,r,Ma,void 0,"primary-light")):console.timeStamp("Suspended",s,r,Ma,void 0,"primary-light"));break;case Fc:s=wd,He&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Action",s,r,Ma,void 0,"primary-light")):console.timeStamp("Action",s,r,Ma,void 0,"primary-light"));break;default:He&&(u=r-wd,3>u||console.timeStamp("Blocked",wd,r,Ma,void 0,5>u?"primary-light":10>u?"primary":100>u?"primary-dark":"error"));}}s=(a=!a&&(n&127)===0&&(n&e.expiredLanes)===0||gc(e,n))?eC(e,n):Z2(e,n,true);var d=a;do{if(s===Si){zs&&!a&&uu(e,n,0,false),n=ve,wd=dn(),F6=n;break}else {if(u=Rn(),r=e.current.alternate,d&&!tC(r)){Vl(n),r=wn,s=u,!He||s<=r||(nn?nn.run(console.timeStamp.bind(console,"Teared Render",r,s,te,It,"error")):console.timeStamp("Teared Render",r,s,te,It,"error")),$c(n,u),s=Z2(e,n,false),d=false;continue}if(s===Jc){if(d=n,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){Vl(n),Cp(wn,u,n,nn),$c(n,u),n=y;t:{u=e,s=d,d=Id;var g=u.current.memoizedState.isDehydrated;if(g&&(Qr(u,y).flags|=256),y=Z2(u,y,false),y!==Jc){if(Dx&&!g){u.errorRecoveryDisabledLanes|=s,Du|=s,s=Tu;break t}u=pl,pl=d,u!==null&&(pl===null?pl=u:pl.push.apply(pl,u));}s=y;}if(d=false,s!==Jc)continue;u=Rn();}}if(s===Jd){Vl(n),Cp(wn,u,n,nn),$c(n,u),Qr(e,0),uu(e,n,0,true);break}t:{switch(a=e,s){case Si:case Jd:throw Error("Root did not complete. This is a bug in React.");case Tu:if((n&4194048)!==n)break;case o1:Vl(n),w4(wn,u,n,nn),$c(n,u),r=n,(r&127)!==0?Xy=u:(r&4194048)!==0&&(Gy=u),uu(a,n,Rl,!Au);break t;case Jc:pl=null;break;case a1:case GM:break;default:throw Error("Unknown root exit status.")}if(q.actQueue!==null)J2(a,r,n,pl,Pd,c1,Rl,Du,Ic,s,null,null,wn,u);else {if((n&62914560)===n&&(d=r1+ZM-Rn(),10<d)){if(uu(a,n,Rl,!Au),pc(a,0,true)!==0)break t;uo=n,a.timeoutHandle=h8(UE.bind(null,a,r,pl,Pd,c1,n,Rl,Du,Ic,Au,s,"Throttled",wn,u),d);break t}UE(a,r,pl,Pd,c1,n,Rl,Du,Ic,Au,s,null,wn,u);}}}break}while(true);ko(e);}function UE(e,n,a,u,r,s,d,y,g,b,R,w,D,Y){e.timeoutHandle=lr;var lt=n.subtreeFlags,ct=null;if((lt&8192||(lt&16785408)===16785408)&&(ct={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:ti},AE(n,s,ct),lt=(s&62914560)===s?r1-Rn():(s&4194048)===s?VM-Rn():0,lt=WC(ct,lt),lt!==null)){uo=s,e.cancelPendingCommit=lt(J2.bind(null,e,n,s,a,u,r,d,y,g,R,ct,ct.waitingForViewTransition?"Waiting for the previous Animation":0<ct.count?0<ct.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ct.imgCount===1?"Suspended on an Image":0<ct.imgCount?"Suspended on Images":null,D,Y)),uu(e,s,d,!b);return}J2(e,n,s,a,u,r,d,y,g,R,ct,w,D,Y);}function tC(e){for(var n=e;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var u=0;u<a.length;u++){var r=a[u],s=r.getSnapshot;r=r.value;try{if(!dl(s(),r))return !1}catch{return false}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else {if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return true;n=n.return;}n.sibling.return=n.return,n=n.sibling;}}return true}function uu(e,n,a,u){n&=~kx,n&=~Du,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var r=n;0<r;){var s=31-rl(r),d=1<<s;u[s]=-1,r&=~d;}a!==0&&xc(e,a,n);}function Gr(){return (se&(Tn|ia))===Nn?(ud(0),false):true}function V2(){if(Vt!==null){if(ve===Ol)var e=Vt.return;else e=Vt,Oh(),a2(e),xs=null,jd=0,e=Vt;for(;e!==null;)oE(e.alternate,e),e=e.return;Vt=null;}}function $c(e,n){(e&127)!==0&&(vu=n),(e&4194048)!==0&&(Bo=n),(e&62914560)!==0&&(J6=n),(e&2080374784)!==0&&(K6=n);}function Qr(e,n){He&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",It,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",It,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",It,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",It,"primary-light"));var a=wn;if(wn=dn(),Gt!==0&&0<a){if(Vl(Gt),Ze===a1||Ze===Tu)w4(a,wn,n,nn);else {var u=wn,r=nn;if(He&&!(u<=a)){var s=(n&738197653)===n?"tertiary-dark":"primary-dark",d=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";r?r.run(console.timeStamp.bind(console,d,a,u,te,It,s)):console.timeStamp(d,a,u,te,It,s);}}$c(Gt,wn);}if(a=nn,nn=null,(n&127)!==0){nn=Cd,r=0<=Yo&&Yo<vu?vu:Yo,u=0<=Wc&&Wc<vu?vu:Wc,s=0<=u?u:0<=r?r:wn,0<=Xy?(Vl(2),U4(Xy,s,n,a)):(Qy&127)!==0,a=r;var y=u,g=Od,b=0<ms,R=Su===kd,w=Su===qy;if(r=wn,u=Cd,s=ux,d=cx,He){if(te="Blocking",0<a?a>r&&(a=r):a=r,0<y?y>a&&(y=a):y=a,g!==null&&a>y){var D=b?"secondary-light":"warning";u?u.run(console.timeStamp.bind(console,b?"Consecutive":"Event: "+g,y,a,te,It,D)):console.timeStamp(b?"Consecutive":"Event: "+g,y,a,te,It,D);}r>a&&(y=R?"error":(n&738197653)===n?"tertiary-light":"primary-light",R=w?"Promise Resolved":R?"Cascading Update":5<r-a?"Update Blocked":"Update",w=[],d!=null&&w.push(["Component name",d]),s!=null&&w.push(["Method name",s]),a={start:a,end:r,detail:{devtools:{properties:w,track:te,trackGroup:It,color:y}}},u?u.run(performance.measure.bind(performance,R,a)):performance.measure(R,a));}Yo=-1.1,Su=0,cx=ux=null,Xy=-1.1,ms=Wc,Wc=-1.1,vu=dn();}if((n&4194048)!==0&&(nn=Rd,r=0<=mi&&mi<Bo?Bo:mi,a=0<=ka&&ka<Bo?Bo:ka,u=0<=Eu&&Eu<Bo?Bo:Eu,s=0<=u?u:0<=a?a:wn,0<=Gy?(Vl(256),U4(Gy,s,n,nn)):(Qy&4194048)!==0,w=u,y=jc,g=0<Mu,b=rx===qy,s=wn,u=Rd,d=V6,R=Z6,He&&(te="Transition",0<a?a>s&&(a=s):a=s,0<r?r>a&&(r=a):r=a,0<w?w>r&&(w=r):w=r,r>w&&y!==null&&(D=g?"secondary-light":"warning",u?u.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+y,w,r,te,It,D)):console.timeStamp(g?"Consecutive":"Event: "+y,w,r,te,It,D)),a>r&&(u?u.run(console.timeStamp.bind(console,"Action",r,a,te,It,"primary-dark")):console.timeStamp("Action",r,a,te,It,"primary-dark")),s>a&&(r=b?"Promise Resolved":5<s-a?"Update Blocked":"Update",w=[],R!=null&&w.push(["Component name",R]),d!=null&&w.push(["Method name",d]),a={start:a,end:s,detail:{devtools:{properties:w,track:te,trackGroup:It,color:"primary-light"}}},u?u.run(performance.measure.bind(performance,r,a)):performance.measure(r,a))),ka=mi=-1.1,rx=0,Gy=-1.1,Mu=Eu,Eu=-1.1,Bo=dn()),(n&62914560)!==0&&(Qy&62914560)!==0&&(Vl(4194304),Wf(J6,wn)),(n&2080374784)!==0&&(Qy&2080374784)!==0&&(Vl(268435456),Wf(K6,wn)),a=e.timeoutHandle,a!==lr&&(e.timeoutHandle=lr,UR(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),uo=0,V2(),Ae=e,Vt=a=ei(e.current,null),Gt=n,ve=Ol,ua=null,Au=false,zs=gc(e,n),Dx=false,Ze=Si,Ic=Rl=kx=Du=zu=0,pl=Id=null,c1=false,(n&8)!==0&&(n|=n&32),u=e.entangledLanes,u!==0)for(e=e.entanglements,u&=n;0<u;)r=31-rl(u),s=1<<r,n|=e[r],u&=~s;return jo=n,Ah(),e=W6(),1e3<e-B6&&(q.recentlyCreatedOwnerStacks=0,B6=e),ao.discardPendingWarnings(),a}function NE(e,n){Rt=null,q.H=Qd,q.getCurrentStack=null,wo=false,ea=null,n===gs||n===Ky?(n=n3(),ve=Kd):n===hx?(n=n3(),ve=QM):ve=n===Mx?zx:n!==null&&typeof n=="object"&&typeof n.then=="function"?Fd:i1,ua=n;var a=Vt;a===null?(Ze=Jd,ny(e,Zl(n,e.current))):a.mode&qt&&Gp(a);}function $E(){var e=aa.current;return e===null?true:(Gt&4194048)===Gt?Ca===null:(Gt&62914560)===Gt||(Gt&536870912)!==0?e===Ca:false}function HE(){var e=q.H;return q.H=Qd,e===null?Qd:e}function LE(){var e=q.A;return q.A=vR,e}function sy(e){nn===null&&(nn=e._debugTask==null?null:e._debugTask);}function fy(){Ze=Tu,Au||(Gt&4194048)!==Gt&&aa.current!==null||(zs=true),(zu&134217727)===0&&(Du&134217727)===0||Ae===null||uu(Ae,Gt,Rl,false);}function Z2(e,n,a){var u=se;se|=Tn;var r=HE(),s=LE();if(Ae!==e||Gt!==n){if(No){var d=e.memoizedUpdaters;0<d.size&&(id(e,Gt),d.clear()),Ki(e,n);}Pd=null,Qr(e,n);}n=false,d=Ze;t:do try{if(ve!==Ol&&Vt!==null){var y=Vt,g=ua;switch(ve){case zx:V2(),d=o1;break t;case Kd:case Kc:case Fc:case Fd:aa.current===null&&(n=!0);var b=ve;if(ve=Ol,ua=null,Vr(e,y,g,b),a&&zs){d=Si;break t}break;default:b=ve,ve=Ol,ua=null,Vr(e,y,g,b);}}YE(),d=Ze;break}catch(R){NE(e,R);}while(true);return n&&e.shellSuspendCounter++,Oh(),se=u,q.H=r,q.A=s,Vt===null&&(Ae=null,Gt=0,Ah()),d}function YE(){for(;Vt!==null;)BE(Vt);}function eC(e,n){var a=se;se|=Tn;var u=HE(),r=LE();if(Ae!==e||Gt!==n){if(No){var s=e.memoizedUpdaters;0<s.size&&(id(e,Gt),s.clear()),Ki(e,n);}Pd=null,s1=Rn()+JM,Qr(e,n);}else zs=gc(e,n);t:do try{if(ve!==Ol&&Vt!==null)e:switch(n=Vt,s=ua,ve){case i1:ve=Ol,ua=null,Vr(e,n,s,i1);break;case Kc:case Fc:if(t3(s)){ve=Ol,ua=null,WE(n);break}n=function(){ve!==Kc&&ve!==Fc||Ae!==e||(ve=u1),ko(e);},s.then(n,n);break t;case Kd:ve=u1;break t;case QM:ve=Ax;break t;case u1:t3(s)?(ve=Ol,ua=null,WE(n)):(ve=Ol,ua=null,Vr(e,n,s,u1));break;case Ax:var d=null;switch(Vt.tag){case 26:d=Vt.memoizedState;case 5:case 27:var y=Vt;if(d?w5(d):y.stateNode.complete){ve=Ol,ua=null;var g=y.sibling;if(g!==null)Vt=g;else {var b=y.return;b!==null?(Vt=b,dy(b)):Vt=null;}break e}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.");}ve=Ol,ua=null,Vr(e,n,s,Ax);break;case Fd:ve=Ol,ua=null,Vr(e,n,s,Fd);break;case zx:V2(),Ze=o1;break t;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}q.actQueue!==null?YE():nC();break}catch(R){NE(e,R);}while(true);return Oh(),q.H=u,q.A=r,se=a,Vt!==null?Si:(Ae=null,Gt=0,Ah(),Ze)}function nC(){for(;Vt!==null&&!eO();)BE(Vt);}function BE(e){var n=e.alternate;(e.mode&qt)!==Ot?(Xp(e),n=dt(e,L2,n,e,jo),Gp(e)):n=dt(e,L2,n,e,jo),e.memoizedProps=e.pendingProps,n===null?dy(e):Vt=n;}function WE(e){var n=dt(e,lC,e);e.memoizedProps=e.pendingProps,n===null?dy(e):Vt=n;}function lC(e){var n=e.alternate,a=(e.mode&qt)!==Ot;switch(a&&Xp(e),e.tag){case 15:case 0:n=I3(n,e,e.pendingProps,e.type,void 0,Gt);break;case 11:n=I3(n,e,e.pendingProps,e.type.render,e.ref,Gt);break;case 5:a2(e);default:oE(n,e),e=Vt=B4(e,jo),n=L2(n,e,jo);}return a&&Gp(e),n}function Vr(e,n,a,u){Oh(),a2(n),xs=null,jd=0;var r=n.return;try{if(Wk(e,r,n,a,Gt)){Ze=Jd,ny(e,Zl(a,e.current)),Vt=null;return}}catch(s){if(r!==null)throw Vt=r,s;Ze=Jd,ny(e,Zl(a,e.current)),Vt=null;return}n.flags&32768?(ne||u===i1?e=true:zs||(Gt&536870912)!==0?e=false:(Au=e=true,(u===Kc||u===Fc||u===Kd||u===Fd)&&(u=aa.current,u!==null&&u.tag===13&&(u.flags|=16384))),jE(n,e)):dy(n);}function dy(e){var n=e;do{if((n.flags&32768)!==0){jE(n,Au);return}var a=n.alternate;if(e=n.return,Xp(n),a=dt(n,Xk,a,n,jo),(n.mode&qt)!==Ot&&J4(n),a!==null){Vt=a;return}if(n=n.sibling,n!==null){Vt=n;return}Vt=n=e;}while(n!==null);Ze===Si&&(Ze=GM);}function jE(e,n){do{var a=Gk(e.alternate,e);if(a!==null){a.flags&=32767,Vt=a;return}if((e.mode&qt)!==Ot){J4(e),a=e.actualDuration;for(var u=e.child;u!==null;)a+=u.actualDuration,u=u.sibling;e.actualDuration=a;}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(e=e.sibling,e!==null)){Vt=e;return}Vt=e=a;}while(e!==null);Ze=o1,Vt=null;}function J2(e,n,a,u,r,s,d,y,g,b,R,w,D,Y){e.cancelPendingCommit=null;do od();while(gn!==Cu);if(ao.flushLegacyContextWarning(),ao.flushPendingUnsafeLifecycleWarnings(),(se&(Tn|ia))!==Nn)throw Error("Should not already be working.");if(Vl(a),b===Jc?Cp(D,Y,a,nn):u!==null?Dk(D,Y,a,u,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,nn):zk(D,Y,a,nn),n!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(s=n.lanes|n.childLanes,s|=nx,mh(e,a,s,d,y,g),e===Ae&&(Vt=Ae=null,Gt=0),Ds=n,Ou=e,uo=a,Rx=s,Ux=r,e8=u,wx=Y,n8=w,co=f1,l8=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cC(Pr,function(){return o0=window.event,co===f1&&(co=Ox),VE(),null})):(e.callbackNode=null,e.callbackPriority=0),yi=null,bu=dn(),w!==null&&kk(Y,bu,w,nn),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=q.T,q.T=null,r=pe.p,pe.p=na,d=se,se|=ia;try{Fk(e,n,a);}finally{se=d,pe.p=r,q.T=u;}}gn=FM,qE(),XE(),GE();}}function qE(){if(gn===FM){gn=Cu;var e=Ou,n=Ds,a=uo,u=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||u){u=q.T,q.T=null;var r=pe.p;pe.p=na;var s=se;se|=ia;try{Ts=a,As=e,Nh(),vE(n,e),As=Ts=null,a=Gx;var d=C4(e.containerInfo),y=a.focusedElem,g=a.selectionRange;if(d!==y&&y&&y.ownerDocument&&k4(y.ownerDocument.documentElement,y)){if(g!==null&&zp(y)){var b=g.start,R=g.end;if(R===void 0&&(R=b),"selectionStart"in y)y.selectionStart=b,y.selectionEnd=Math.min(R,y.value.length);else {var w=y.ownerDocument||document,D=w&&w.defaultView||window;if(D.getSelection){var Y=D.getSelection(),lt=y.textContent.length,ct=Math.min(g.start,lt),we=g.end===void 0?ct:Math.min(g.end,lt);!Y.extend&&ct>we&&(d=we,we=ct,ct=d);var oe=D4(y,ct),A=D4(y,we);if(oe&&A&&(Y.rangeCount!==1||Y.anchorNode!==oe.node||Y.anchorOffset!==oe.offset||Y.focusNode!==A.node||Y.focusOffset!==A.offset)){var k=w.createRange();k.setStart(oe.node,oe.offset),Y.removeAllRanges(),ct>we?(Y.addRange(k),Y.extend(A.node,A.offset)):(k.setEnd(A.node,A.offset),Y.addRange(k));}}}}for(w=[],Y=y;Y=Y.parentNode;)Y.nodeType===1&&w.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<w.length;y++){var O=w[y];O.element.scrollLeft=O.left,O.element.scrollTop=O.top;}}z1=!!Xx,Gx=Xx=null;}finally{se=s,pe.p=r,q.T=u;}}e.current=n,gn=IM;}}function XE(){if(gn===IM){gn=Cu;var e=l8;if(e!==null){bu=dn();var n=hi,a=bu;!He||a<=n||(console.timeStamp(e,n,a,te,It,"secondary-light"));}e=Ou,n=Ds,a=uo;var u=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||u){u=q.T,q.T=null;var r=pe.p;pe.p=na;var s=se;se|=ia;try{Ts=a,As=e,Nh(),mE(e,n.alternate,n),As=Ts=null;}finally{se=s,pe.p=r,q.T=u;}}e=wx,n=n8,hi=dn(),e=n===null?e:bu,n=hi,a=co===Cx,u=nn,yi!==null?N4(e,n,yi,false,u):!He||n<=e||(u?u.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,n,te,It,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,n,te,It,a?"error":"secondary-dark")),gn=PM;}}function GE(){if(gn===t8||gn===PM){if(gn===t8){var e=hi;hi=dn();var n=hi,a=co===Cx;!He||n<=e||(console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,n,te,It,a?" error":"secondary-light")),co!==Cx&&(co=KM);}gn=Cu,nO(),e=Ou;var u=Ds;n=uo,a=e8;var r=u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;r?gn=d1:(gn=Cu,Ds=Ou=null,QE(e,e.pendingLanes),Pc=0,e0=null);var s=e.pendingLanes;if(s===0&&(ku=null),r||FE(e),s=S(n),u=u.stateNode,ll&&typeof ll.onCommitFiberRoot=="function")try{var d=(u.current.flags&128)===128;switch(s){case na:var y=Ug;break;case no:y=Ng;break;case $o:y=Pr;break;case Cy:y=$g;break;default:y=Pr;}ll.onCommitFiberRoot(ts,u,y,d);}catch(w){Uo||(Uo=true,console.error("React instrumentation encountered an error: %o",w));}if(No&&e.memoizedUpdaters.clear(),Pk(),a!==null){d=q.T,y=pe.p,pe.p=na,q.T=null;try{var g=e.onRecoverableError;for(u=0;u<a.length;u++){var b=a[u],R=aC(b.stack);dt(b.source,g,b.value,R);}}finally{q.T=d,pe.p=y;}}(uo&3)!==0&&od(),ko(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?(Zy=true,e===Nx?t0++:(t0=0,Nx=e)):t0=0,r||$c(n,hi),ud(0);}}function aC(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.');}}),e}function QE(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,qf(n)));}function od(){return qE(),XE(),GE(),VE()}function VE(){if(gn!==d1)return false;var e=Ou,n=Rx;Rx=0;var a=S(uo),u=$o>a?$o:a;a=q.T;var r=pe.p;try{pe.p=u,q.T=null;var s=Ux;Ux=null,u=Ou;var d=uo;if(gn=Cu,Ds=Ou=null,uo=0,(se&(Tn|ia))!==Nn)throw Error("Cannot flush passive effects while already rendering.");Vl(d),$x=!0,h1=!1;var y=0;if(yi=null,y=Rn(),co===KM)Wf(hi,y,pi);else {var g=hi,b=y,R=co===Ox;!He||b<=g||(nn?nn.run(console.timeStamp.bind(console,R?"Waiting for Paint":"Waiting",g,b,te,It,"secondary-light")):console.timeStamp(R?"Waiting for Paint":"Waiting",g,b,te,It,"secondary-light"));}g=se,se|=ia;var w=u.current;Nh(),DE(w);var D=u.current;w=wx,Nh(),_E(u,D,d,s,w),FE(u),se=g;var Y=Rn();if(D=y,w=nn,yi!==null?N4(D,Y,yi,!0,w):!He||Y<=D||(w?w.run(console.timeStamp.bind(console,"Remaining Effects",D,Y,te,It,"secondary-dark")):console.timeStamp("Remaining Effects",D,Y,te,It,"secondary-dark")),$c(d,Y),ud(0,!1),h1?u===e0?Pc++:(Pc=0,e0=u):Pc=0,h1=$x=!1,ll&&typeof ll.onPostCommitFiberRoot=="function")try{ll.onPostCommitFiberRoot(ts,u);}catch(ct){Uo||(Uo=!0,console.error("React instrumentation encountered an error: %o",ct));}var lt=u.current.stateNode;return lt.effectDuration=0,lt.passiveEffectDuration=0,!0}finally{pe.p=r,q.T=a,QE(e,n);}}function ZE(e,n,a){n=Zl(a,n),K4(n),n=z2(e.stateNode,n,2),e=lu(e,n,2),e!==null&&(Ji(e,2),ko(e));}function me(e,n,a){if(ks=false,e.tag===3)ZE(e,e,a);else {for(;n!==null;){if(n.tag===3){ZE(n,e,a);return}if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(ku===null||!ku.has(u))){e=Zl(a,e),K4(e),a=D2(2),u=lu(n,a,2),u!==null&&(k2(a,u,n,e),Ji(u,2),ko(u));return}}n=n.return;}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
167
|
-
|
|
168
|
-
Error message:
|
|
169
|
-
|
|
170
|
-
%s`,a);}}function K2(e,n,a){var u=e.pingCache;if(u===null){u=e.pingCache=new ER;var r=new Set;u.set(n,r);}else r=u.get(n),r===void 0&&(r=new Set,u.set(n,r));r.has(a)||(Dx=true,r.add(a),u=oC.bind(null,e,n,a),No&&id(e,a),n.then(u,u));}function oC(e,n,a){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Yo&&(vu=Yo=dn(),Cd=jy("Promise Resolved"),Su=qy):(a&4194048)!==0&&0>ka&&(Bo=ka=dn(),Rd=jy("Promise Resolved"),rx=qy),OE()&&q.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
171
|
-
|
|
172
|
-
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
173
|
-
|
|
174
|
-
act(() => {
|
|
175
|
-
/* finish loading suspended data */
|
|
176
|
-
});
|
|
177
|
-
/* assert on the output */
|
|
178
|
-
|
|
179
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Ae===e&&(Gt&a)===a&&(Ze===Tu||Ze===a1&&(Gt&62914560)===Gt&&Rn()-r1<ZM?(se&Tn)===Nn&&Qr(e,0):kx|=a,Ic===Gt&&(Ic=0)),ko(e);}function JE(e,n){n===0&&(n=Or()),e=nl(e,n),e!==null&&(Ji(e,n),ko(e));}function iC(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),JE(e,a);}function uC(e,n){var a=0;switch(e.tag){case 31:case 13:var u=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}u!==null&&u.delete(n),JE(e,a);}function F2(e,n,a){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var u=e,r=n,s=r.type===_y;s=a||s,r.tag!==22?r.flags&67108864?s&&dt(r,KE,u,r):F2(u,r,s):r.memoizedState===null&&(s&&r.flags&8192?dt(r,KE,u,r):r.subtreeFlags&67108864&&dt(r,F2,u,r,s)),n=n.sibling;}}function KE(e,n){Oe(true);try{EE(n),kE(n),ME(e,n.alternate,n,!1),TE(e,n,0,null,!1,0);}finally{Oe(false);}}function FE(e){var n=true;e.current.mode&(al|lo)||(n=false),F2(e,e.current,n);}function IE(e){if((se&Tn)===Nn){var n=e.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=Z(e)||"ReactComponent",y1!==null){if(y1.has(n))return;y1.add(n);}else y1=new Set([n]);dt(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.");});}}}function id(e,n){No&&e.memoizedUpdaters.forEach(function(a){Rf(e,a,n);});}function cC(e,n){var a=q.actQueue;return a!==null?(a.push(n),TR):wg(e,n)}function rC(e){OE()&&q.actQueue===null&&dt(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
|
|
180
|
-
|
|
181
|
-
When testing, code that causes React state updates should be wrapped into act(...):
|
|
182
|
-
|
|
183
|
-
act(() => {
|
|
184
|
-
/* fire events that update state */
|
|
185
|
-
});
|
|
186
|
-
/* assert on the output */
|
|
187
|
-
|
|
188
|
-
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,Z(e));});}function ko(e){e!==Cs&&e.next===null&&(Cs===null?m1=Cs=e:Cs=Cs.next=e),p1=true,q.actQueue!==null?Lx||(Lx=true,n5()):Hx||(Hx=true,n5());}function ud(e,n){if(!Yx&&p1){Yx=true;do for(var a=false,u=m1;u!==null;){if(e!==0){var r=u.pendingLanes;if(r===0)var s=0;else {var d=u.suspendedLanes,y=u.pingedLanes;s=(1<<31-rl(42|e)+1)-1,s&=r&~(d&~y),s=s&201326741?s&201326741|1:s?s|2:0;}s!==0&&(a=true,e5(u,s));}else s=Gt,s=pc(u,u===Ae?s:0,u.cancelPendingCommit!==null||u.timeoutHandle!==lr),(s&3)===0||gc(u,s)||(a=true,e5(u,s));u=u.next;}while(a);Yx=false;}}function sC(){o0=window.event,I2();}function I2(){p1=Lx=Hx=false;var e=0;Ru!==0&&gC()&&(e=Ru);for(var n=Rn(),a=null,u=m1;u!==null;){var r=u.next,s=PE(u,n);s===0?(u.next=null,a===null?m1=r:a.next=r,r===null&&(Cs=a)):(a=u,(e!==0||(s&3)!==0)&&(p1=true)),u=r;}gn!==Cu&&gn!==d1||ud(e),Ru!==0&&(Ru=0);}function PE(e,n){for(var a=e.suspendedLanes,u=e.pingedLanes,r=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var d=31-rl(s),y=1<<d,g=r[d];g===-1?((y&a)===0||(y&u)!==0)&&(r[d]=pp(y,n)):g<=n&&(e.expiredLanes|=y),s&=~y;}if(n=Ae,a=Gt,a=pc(e,e===n?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==lr),u=e.callbackNode,a===0||e===n&&(ve===Kc||ve===Fc)||e.cancelPendingCommit!==null)return u!==null&&P2(u),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||gc(e,a)){if(n=a&-a,n!==e.callbackPriority||q.actQueue!==null&&u!==Bx)P2(u);else return n;switch(S(a)){case na:case no:a=Ng;break;case $o:a=Pr;break;case Cy:a=$g;break;default:a=Pr;}return u=t5.bind(null,e),q.actQueue!==null?(q.actQueue.push(u),a=Bx):a=wg(a,u),e.callbackPriority=n,e.callbackNode=a,n}return u!==null&&P2(u),e.callbackPriority=2,e.callbackNode=null,2}function t5(e,n){if(Zy=Vy=false,o0=window.event,gn!==Cu&&gn!==d1)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(co===f1&&(co=Ox),od()&&e.callbackNode!==a)return null;var u=Gt;return u=pc(e,e===Ae?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==lr),u===0?null:(wE(e,u,n),PE(e,Rn()),e.callbackNode!=null&&e.callbackNode===a?t5.bind(null,e):null)}function e5(e,n){if(od())return null;Vy=Zy,Zy=false,wE(e,n,true);}function P2(e){e!==Bx&&e!==null&&tO(e);}function n5(){q.actQueue!==null&&q.actQueue.push(function(){return I2(),null}),NR(function(){(se&(Tn|ia))!==Nn?wg(Ug,sC):I2();});}function tg(){if(Ru===0){var e=qc;e===0&&(e=zy,zy<<=1,(zy&261888)===0&&(zy=256)),Ru=e;}return Ru}function l5(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Se(e,"action"),Lf(""+e))}function a5(e,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,e.id&&a.setAttribute("form",e.id),n.parentNode.insertBefore(a,n),e=new FormData(e),a.parentNode.removeChild(a),e}function fC(e,n,a,u,r){if(n==="submit"&&a&&a.stateNode===r){var s=l5((r[sl]||null).action),d=u.submitter;d&&(n=(n=d[sl]||null)?l5(n.formAction):d.getAttribute("formAction"),n!==null&&(s=n,d=null));var y=new Ny("action","action",null,u,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Ru!==0){var g=d?a5(r,d):new FormData(r),b={pending:true,data:g,method:r.method,action:s};Object.freeze(b),v2(a,b,null,g);}}else typeof s=="function"&&(y.preventDefault(),g=d?a5(r,d):new FormData(r),b={pending:true,data:g,method:r.method,action:s},Object.freeze(b),v2(a,b,s,g));},currentTarget:r}]});}}function hy(e,n,a){e.currentTarget=a;try{n(e);}catch(u){Ig(u);}e.currentTarget=null;}function o5(e,n){n=(n&4)!==0;for(var a=0;a<e.length;a++){var u=e[a];t:{var r=void 0,s=u.event;if(u=u.listeners,n)for(var d=u.length-1;0<=d;d--){var y=u[d],g=y.instance,b=y.currentTarget;if(y=y.listener,g!==r&&s.isPropagationStopped())break t;g!==null?dt(g,hy,s,y,b):hy(s,y,b),r=g;}else for(d=0;d<u.length;d++){if(y=u[d],g=y.instance,b=y.currentTarget,y=y.listener,g!==r&&s.isPropagationStopped())break t;g!==null?dt(g,hy,s,y,b):hy(s,y,b),r=g;}}}}function ae(e,n){Wx.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=n[Hg];a===void 0&&(a=n[Hg]=new Set);var u=e+"__bubble";a.has(u)||(i5(n,e,2,false),a.add(u));}function eg(e,n,a){Wx.has(e)&&!n&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var u=0;n&&(u|=4),i5(a,e,u,n);}function ng(e){if(!e[g1]){e[g1]=true,n6.forEach(function(a){a!=="selectionchange"&&(Wx.has(a)||eg(a,false,e),eg(a,true,e));});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[g1]||(n[g1]=true,eg("selectionchange",false,n));}}function i5(e,n,a,u){switch(Y5(n)){case na:var r=GC;break;case no:r=QC;break;default:r=xg;}a=r.bind(null,n,a,e),r=void 0,!jg||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(r=true),u?r!==void 0?e.addEventListener(n,a,{capture:true,passive:r}):e.addEventListener(n,a,true):r!==void 0?e.addEventListener(n,a,{passive:r}):e.addEventListener(n,a,false);}function lg(e,n,a,u,r){var s=u;if((n&1)===0&&(n&2)===0&&u!==null)t:for(;;){if(u===null)return;var d=u.tag;if(d===3||d===4){var y=u.stateNode.containerInfo;if(y===r)break;if(d===4)for(d=u.return;d!==null;){var g=d.tag;if((g===3||g===4)&&d.stateNode.containerInfo===r)return;d=d.return;}for(;y!==null;){if(d=xt(y),d===null)return;if(g=d.tag,g===5||g===6||g===26||g===27){u=s=d;continue t}y=y.parentNode;}}u=u.return;}g4(function(){var b=s,R=Tp(a),w=[];t:{var D=Y6.get(e);if(D!==void 0){var Y=Ny,lt=e;switch(e){case "keypress":if(Sh(a)===0)break t;case "keydown":case "keyup":Y=WO;break;case "focusin":lt="focus",Y=Qg;break;case "focusout":lt="blur",Y=Qg;break;case "beforeblur":case "afterblur":Y=Qg;break;case "click":if(a.button===2)break t;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":Y=T6;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":Y=kO;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":Y=XO;break;case N6:case $6:case H6:Y=RO;break;case L6:Y=QO;break;case "scroll":case "scrollend":Y=zO;break;case "wheel":Y=ZO;break;case "copy":case "cut":case "paste":Y=UO;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":Y=z6;break;case "toggle":case "beforetoggle":Y=KO;}var ct=(n&4)!==0,we=!ct&&(e==="scroll"||e==="scrollend"),oe=ct?D!==null?D+"Capture":null:D;ct=[];for(var A=b,k;A!==null;){var O=A;if(k=O.stateNode,O=O.tag,O!==5&&O!==26&&O!==27||k===null||oe===null||(O=Yf(A,oe),O!=null&&ct.push(cd(A,O,k))),we)break;A=A.return;}0<ct.length&&(D=new Y(D,lt,null,a,R),w.push({event:D,listeners:ct}));}}if((n&7)===0){t:{if(D=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",D&&a!==bd&&(lt=a.relatedTarget||a.fromElement)&&(xt(lt)||lt[hu]))break t;if((Y||D)&&(D=R.window===R?R:(D=R.ownerDocument)?D.defaultView||D.parentWindow:window,Y?(lt=a.relatedTarget||a.toElement,Y=b,lt=lt?xt(lt):null,lt!==null&&(we=C(lt),ct=lt.tag,lt!==we||ct!==5&&ct!==27&&ct!==6)&&(lt=null)):(Y=null,lt=b),Y!==lt)){if(ct=T6,O="onMouseLeave",oe="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(ct=z6,O="onPointerLeave",oe="onPointerEnter",A="pointer"),we=Y==null?D:Ht(Y),k=lt==null?D:Ht(lt),D=new ct(O,A+"leave",Y,a,R),D.target=we,D.relatedTarget=k,O=null,xt(R)===b&&(ct=new ct(oe,A+"enter",lt,a,R),ct.target=k,ct.relatedTarget=we,O=ct),we=O,Y&<)e:{for(ct=dC,oe=Y,A=lt,k=0,O=oe;O;O=ct(O))k++;O=0;for(var G=A;G;G=ct(G))O++;for(;0<k-O;)oe=ct(oe),k--;for(;0<O-k;)A=ct(A),O--;for(;k--;){if(oe===A||A!==null&&oe===A.alternate){ct=oe;break e}oe=ct(oe),A=ct(A);}ct=null;}else ct=null;Y!==null&&u5(w,D,Y,ct,!1),lt!==null&&we!==null&&u5(w,we,lt,ct,!0);}}t:{if(D=b?Ht(b):window,Y=D.nodeName&&D.nodeName.toLowerCase(),Y==="select"||Y==="input"&&D.type==="file")var it=_4;else if(E4(D))if(w6)it=_k;else {it=Ek;var wt=Sk;}else Y=D.nodeName,!Y||Y.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?b&&Hf(b.elementType)&&(it=_4):it=Mk;if(it&&(it=it(e,b))){M4(w,it,a,R);break t}wt&&wt(e,D,b),e==="focusout"&&b&&D.type==="number"&&b.memoizedProps.value!=null&&bp(D,"number",D.value);}switch(wt=b?Ht(b):window,e){case "focusin":(E4(wt)||wt.contentEditable==="true")&&(us=wt,Zg=b,Ad=null);break;case "focusout":Ad=Zg=us=null;break;case "mousedown":Jg=!0;break;case "contextmenu":case "mouseup":case "dragend":Jg=!1,O4(w,a,R);break;case "selectionchange":if(tR)break;case "keydown":case "keyup":O4(w,a,R);}var St;if(Vg)t:{switch(e){case "compositionstart":var bt="onCompositionStart";break t;case "compositionend":bt="onCompositionEnd";break t;case "compositionupdate":bt="onCompositionUpdate";break t}bt=void 0;}else is?v4(e,a)&&(bt="onCompositionEnd"):e==="keydown"&&a.keyCode===D6&&(bt="onCompositionStart");bt&&(k6&&a.locale!=="ko"&&(is||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&is&&(St=x4()):(yu=R,qg="value"in yu?yu.value:yu.textContent,is=!0)),wt=yy(b,bt),0<wt.length&&(bt=new A6(bt,e,null,a,R),w.push({event:bt,listeners:wt}),St?bt.data=St:(St=S4(a),St!==null&&(bt.data=St)))),(St=IO?gk(e,a):xk(e,a))&&(bt=yy(b,"onBeforeInput"),0<bt.length&&(wt=new $O("onBeforeInput","beforeinput",null,a,R),w.push({event:wt,listeners:bt}),wt.data=St)),fC(w,e,b,a,R);}o5(w,n);});}function cd(e,n,a){return {instance:e,listener:n,currentTarget:a}}function yy(e,n){for(var a=n+"Capture",u=[];e!==null;){var r=e,s=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=Yf(e,a),r!=null&&u.unshift(cd(e,r,s)),r=Yf(e,n),r!=null&&u.push(cd(e,r,s))),e.tag===3)return u;e=e.return;}return []}function dC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function u5(e,n,a,u,r){for(var s=n._reactName,d=[];a!==null&&a!==u;){var y=a,g=y.alternate,b=y.stateNode;if(y=y.tag,g!==null&&g===u)break;y!==5&&y!==26&&y!==27||b===null||(g=b,r?(b=Yf(a,s),b!=null&&d.unshift(cd(a,b,g))):r||(b=Yf(a,s),b!=null&&d.push(cd(a,b,g)))),a=a.return;}d.length!==0&&e.push({event:n,listeners:d});}function ag(e,n){hk(e,n),e!=="input"&&e!=="textarea"&&e!=="select"||n==null||n.value!==null||M6||(M6=true,e==="select"&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:Hc,possibleRegistrationNames:Lg};Hf(e)||typeof n.is=="string"||mk(e,n,a),n.contentEditable&&!n.suppressContentEditableWarning&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.");}function On(e,n,a,u){n!==a&&(a=cu(a),cu(n)!==a&&(u[e]=n));}function hC(e,n,a){n.forEach(function(u){a[s5(u)]=u==="style"?ig(e):e.getAttribute(u);});}function Co(e,n){n===false?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof n);}function c5(e,n){return e=e.namespaceURI===Ry||e.namespaceURI===ns?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=n,e.innerHTML}function cu(e){return Zi(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",mc(e)),Cn(e)),(typeof e=="string"?e:""+e).replace(AR,`
|
|
189
|
-
`).replace(zR,"")}function r5(e,n){return n=cu(n),cu(e)===n}function _e(e,n,a,u,r,s){switch(a){case "children":typeof u=="string"?(vh(u,n,false),n==="body"||n==="textarea"&&u===""||$f(e,u)):(typeof u=="number"||typeof u=="bigint")&&(vh(""+u,n,false),n!=="body"&&$f(e,""+u));break;case "className":gh(e,"class",u);break;case "tabIndex":gh(e,"tabindex",u);break;case "dir":case "role":case "viewBox":case "width":case "height":gh(e,a,u);break;case "style":y4(e,u,s);break;case "data":if(n!=="object"){gh(e,"data",u);break}case "src":case "href":if(u===""&&(n!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}Se(u,a),u=Lf(""+u),e.setAttribute(a,u);break;case "action":case "formAction":if(u!=null&&(n==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(r.encType==null&&r.method==null||v1||(v1=true,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),r.target==null||b1||(b1=true,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):n==="input"||n==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||r.type==="submit"||r.type==="image"||x1?n!=="button"||r.type==null||r.type==="submit"||x1?typeof u=="function"&&(r.name==null||c8||(c8=true,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),r.formEncType==null&&r.formMethod==null||v1||(v1=true,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),r.formTarget==null||b1||(b1=true,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(x1=true,console.error('A button can only specify a formAction along with type="submit" or no type.')):(x1=true,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof u=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof s=="function"&&(a==="formAction"?(n!=="input"&&_e(e,n,"name",r.name,r,null),_e(e,n,"formEncType",r.formEncType,r,null),_e(e,n,"formMethod",r.formMethod,r,null),_e(e,n,"formTarget",r.formTarget,r,null)):(_e(e,n,"encType",r.encType,r,null),_e(e,n,"method",r.method,r,null),_e(e,n,"target",r.target,r,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(a);break}Se(u,a),u=Lf(""+u),e.setAttribute(a,u);break;case "onClick":u!=null&&(typeof u!="function"&&Co(a,u),e.onclick=ti);break;case "onScroll":u!=null&&(typeof u!="function"&&Co(a,u),ae("scroll",e));break;case "onScrollEnd":u!=null&&(typeof u!="function"&&Co(a,u),ae("scrollend",e));break;case "dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=u.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a;}}break;case "multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case "muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":break;case "autoFocus":break;case "xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}Se(u,a),a=Lf(""+u),e.setAttributeNS(tr,"xlink:href",a);break;case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?(Se(u,a),e.setAttribute(a,""+u)):e.removeAttribute(a);break;case "inert":u!==""||S1[a]||(S1[a]=true,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case "capture":case "download":u===true?e.setAttribute(a,""):u!==false&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(Se(u,a),e.setAttribute(a,u)):e.removeAttribute(a);break;case "cols":case "rows":case "size":case "span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(Se(u,a),e.setAttribute(a,u)):e.removeAttribute(a);break;case "rowSpan":case "start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(a):(Se(u,a),e.setAttribute(a,u));break;case "popover":ae("beforetoggle",e),ae("toggle",e),ph(e,"popover",u);break;case "xlinkActuate":Po(e,tr,"xlink:actuate",u);break;case "xlinkArcrole":Po(e,tr,"xlink:arcrole",u);break;case "xlinkRole":Po(e,tr,"xlink:role",u);break;case "xlinkShow":Po(e,tr,"xlink:show",u);break;case "xlinkTitle":Po(e,tr,"xlink:title",u);break;case "xlinkType":Po(e,tr,"xlink:type",u);break;case "xmlBase":Po(e,jx,"xml:base",u);break;case "xmlLang":Po(e,jx,"xml:lang",u);break;case "xmlSpace":Po(e,jx,"xml:space",u);break;case "is":s!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),ph(e,"is",u);break;case "innerText":case "textContent":break;case "popoverTarget":r8||u==null||typeof u!="object"||(r8=true,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=m4(a),ph(e,a,u)):Hc.hasOwnProperty(a)&&u!=null&&typeof u!="function"&&Co(a,u);}}function og(e,n,a,u,r,s){switch(a){case "style":y4(e,u,s);break;case "dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=u.__html,a!=null){if(r.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a;}}break;case "children":typeof u=="string"?$f(e,u):(typeof u=="number"||typeof u=="bigint")&&$f(e,""+u);break;case "onScroll":u!=null&&(typeof u!="function"&&Co(a,u),ae("scroll",e));break;case "onScrollEnd":u!=null&&(typeof u!="function"&&Co(a,u),ae("scrollend",e));break;case "onClick":u!=null&&(typeof u!="function"&&Co(a,u),e.onclick=ti);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(Hc.hasOwnProperty(a))u!=null&&typeof u!="function"&&Co(a,u);else t:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),n=a.slice(2,r?a.length-7:void 0),s=e[sl]||null,s=s!=null?s[a]:null,typeof s=="function"&&e.removeEventListener(n,s,r),typeof u=="function")){typeof s!="function"&&s!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(n,u,r);break t}a in e?e[a]=u:u===true?e.setAttribute(a,""):ph(e,a,u);}}}function Xn(e,n,a){switch(ag(n,a),n){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":ae("error",e),ae("load",e);var u=false,r=false,s;for(s in a)if(a.hasOwnProperty(s)){var d=a[s];if(d!=null)switch(s){case "src":u=true;break;case "srcSet":r=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_e(e,n,s,d,a,null);}}r&&_e(e,n,"srcSet",a.srcSet,a,null),u&&_e(e,n,"src",a.src,a,null);return;case "input":Fi("input",a),ae("invalid",e);var y=s=d=r=null,g=null,b=null;for(u in a)if(a.hasOwnProperty(u)){var R=a[u];if(R!=null)switch(u){case "name":r=R;break;case "type":d=R;break;case "checked":g=R;break;case "defaultChecked":b=R;break;case "value":s=R;break;case "defaultValue":y=R;break;case "children":case "dangerouslySetInnerHTML":if(R!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_e(e,n,u,R,a,null);}}IS(e,a),PS(e,s,y,g,b,d,r,false);return;case "select":Fi("select",a),ae("invalid",e),u=d=s=null;for(r in a)if(a.hasOwnProperty(r)&&(y=a[r],y!=null))switch(r){case "value":s=y;break;case "defaultValue":d=y;break;case "multiple":u=y;default:_e(e,n,r,y,a,null);}n4(e,a),n=s,a=d,e.multiple=!!u,n!=null?wr(e,!!u,n,false):a!=null&&wr(e,!!u,a,true);return;case "textarea":Fi("textarea",a),ae("invalid",e),s=r=u=null;for(d in a)if(a.hasOwnProperty(d)&&(y=a[d],y!=null))switch(d){case "value":u=y;break;case "defaultValue":r=y;break;case "children":s=y;break;case "dangerouslySetInnerHTML":if(y!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_e(e,n,d,y,a,null);}l4(e,a),o4(e,u,r,s);return;case "option":t4(e,a);for(g in a)a.hasOwnProperty(g)&&(u=a[g],u!=null)&&(g==="selected"?e.selected=u&&typeof u!="function"&&typeof u!="symbol":_e(e,n,g,u,a,null));return;case "dialog":ae("beforetoggle",e),ae("toggle",e),ae("cancel",e),ae("close",e);break;case "iframe":case "object":ae("load",e);break;case "video":case "audio":for(u=0;u<n0.length;u++)ae(n0[u],e);break;case "image":ae("error",e),ae("load",e);break;case "details":ae("toggle",e);break;case "embed":case "source":case "link":ae("error",e),ae("load",e);case "area":case "base":case "br":case "col":case "hr":case "keygen":case "meta":case "param":case "track":case "wbr":case "menuitem":for(b in a)if(a.hasOwnProperty(b)&&(u=a[b],u!=null))switch(b){case "children":case "dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:_e(e,n,b,u,a,null);}return;default:if(Hf(n)){for(R in a)a.hasOwnProperty(R)&&(u=a[R],u!==void 0&&og(e,n,R,u,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(u=a[y],u!=null&&_e(e,n,y,u,a,null));}function yC(e,n,a,u){switch(ag(n,u),n){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var r=null,s=null,d=null,y=null,g=null,b=null,R=null;for(Y in a){var w=a[Y];if(a.hasOwnProperty(Y)&&w!=null)switch(Y){case "checked":break;case "value":break;case "defaultValue":g=w;default:u.hasOwnProperty(Y)||_e(e,n,Y,null,u,w);}}for(var D in u){var Y=u[D];if(w=a[D],u.hasOwnProperty(D)&&(Y!=null||w!=null))switch(D){case "type":s=Y;break;case "name":r=Y;break;case "checked":b=Y;break;case "defaultChecked":R=Y;break;case "value":d=Y;break;case "defaultValue":y=Y;break;case "children":case "dangerouslySetInnerHTML":if(Y!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Y!==w&&_e(e,n,D,Y,u,w);}}n=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,n||!u||u8||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),u8=true),!n||u||i8||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),i8=true),xp(e,d,y,g,b,R,s,r);return;case "select":Y=d=y=D=null;for(s in a)if(g=a[s],a.hasOwnProperty(s)&&g!=null)switch(s){case "value":break;case "multiple":Y=g;default:u.hasOwnProperty(s)||_e(e,n,s,null,u,g);}for(r in u)if(s=u[r],g=a[r],u.hasOwnProperty(r)&&(s!=null||g!=null))switch(r){case "value":D=s;break;case "defaultValue":y=s;break;case "multiple":d=s;default:s!==g&&_e(e,n,r,s,u,g);}u=y,n=d,a=Y,D!=null?wr(e,!!n,D,false):!!a!=!!n&&(u!=null?wr(e,!!n,u,true):wr(e,!!n,n?[]:"",false));return;case "textarea":Y=D=null;for(y in a)if(r=a[y],a.hasOwnProperty(y)&&r!=null&&!u.hasOwnProperty(y))switch(y){case "value":break;case "children":break;default:_e(e,n,y,null,u,r);}for(d in u)if(r=u[d],s=a[d],u.hasOwnProperty(d)&&(r!=null||s!=null))switch(d){case "value":D=r;break;case "defaultValue":Y=r;break;case "children":break;case "dangerouslySetInnerHTML":if(r!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:r!==s&&_e(e,n,d,r,u,s);}a4(e,D,Y);return;case "option":for(var lt in a)D=a[lt],a.hasOwnProperty(lt)&&D!=null&&!u.hasOwnProperty(lt)&&(lt==="selected"?e.selected=false:_e(e,n,lt,null,u,D));for(g in u)D=u[g],Y=a[g],u.hasOwnProperty(g)&&D!==Y&&(D!=null||Y!=null)&&(g==="selected"?e.selected=D&&typeof D!="function"&&typeof D!="symbol":_e(e,n,g,D,u,Y));return;case "img":case "link":case "area":case "base":case "br":case "col":case "embed":case "hr":case "keygen":case "meta":case "param":case "source":case "track":case "wbr":case "menuitem":for(var ct in a)D=a[ct],a.hasOwnProperty(ct)&&D!=null&&!u.hasOwnProperty(ct)&&_e(e,n,ct,null,u,D);for(b in u)if(D=u[b],Y=a[b],u.hasOwnProperty(b)&&D!==Y&&(D!=null||Y!=null))switch(b){case "children":case "dangerouslySetInnerHTML":if(D!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:_e(e,n,b,D,u,Y);}return;default:if(Hf(n)){for(var we in a)D=a[we],a.hasOwnProperty(we)&&D!==void 0&&!u.hasOwnProperty(we)&&og(e,n,we,void 0,u,D);for(R in u)D=u[R],Y=a[R],!u.hasOwnProperty(R)||D===Y||D===void 0&&Y===void 0||og(e,n,R,D,u,Y);return}}for(var oe in a)D=a[oe],a.hasOwnProperty(oe)&&D!=null&&!u.hasOwnProperty(oe)&&_e(e,n,oe,null,u,D);for(w in u)D=u[w],Y=a[w],!u.hasOwnProperty(w)||D===Y||D==null&&Y==null||_e(e,n,w,D,u,Y);}function s5(e){switch(e){case "class":return "className";case "for":return "htmlFor";default:return e}}function ig(e){var n={};e=e.style;for(var a=0;a<e.length;a++){var u=e[a];n[u]=e.getPropertyValue(u);}return n}function f5(e,n,a){if(n!=null&&typeof n!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else {var u,r=u="",s;for(s in n)if(n.hasOwnProperty(s)){var d=n[s];d!=null&&typeof d!="boolean"&&d!==""&&(s.indexOf("--")===0?(Of(d,s),u+=r+s+":"+(""+d).trim()):typeof d!="number"||d===0||S6.has(s)?(Of(d,s),u+=r+s.replace(p6,"-$1").toLowerCase().replace(g6,"-ms-")+":"+(""+d).trim()):u+=r+s.replace(p6,"-$1").toLowerCase().replace(g6,"-ms-")+":"+d+"px",r=";");}u=u||null,n=e.getAttribute("style"),n!==u&&(u=cu(u),cu(n)!==u&&(a.style=ig(e)));}}function Ea(e,n,a,u,r,s){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case "undefined":case "function":case "symbol":case "boolean":return}else if(u!=null)switch(typeof u){case "function":case "symbol":case "boolean":break;default:if(Se(u,n),e===""+u)return}On(n,e,u,s);}function d5(e,n,a,u,r,s){if(r.delete(a),e=e.getAttribute(a),e===null){switch(typeof u){case "function":case "symbol":return}if(!u)return}else switch(typeof u){case "function":case "symbol":break;default:if(u)return}On(n,e,u,s);}function ug(e,n,a,u,r,s){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case "undefined":case "function":case "symbol":return}else if(u!=null)switch(typeof u){case "function":case "symbol":break;default:if(Se(u,a),e===""+u)return}On(n,e,u,s);}function h5(e,n,a,u,r,s){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case "undefined":case "function":case "symbol":case "boolean":return;default:if(isNaN(u))return}else if(u!=null)switch(typeof u){case "function":case "symbol":case "boolean":break;default:if(!isNaN(u)&&(Se(u,n),e===""+u))return}On(n,e,u,s);}function cg(e,n,a,u,r,s){if(r.delete(a),e=e.getAttribute(a),e===null)switch(typeof u){case "undefined":case "function":case "symbol":case "boolean":return}else if(u!=null)switch(typeof u){case "function":case "symbol":case "boolean":break;default:if(Se(u,n),a=Lf(""+u),e===a)return}On(n,e,u,s);}function y5(e,n,a,u){for(var r={},s=new Set,d=e.attributes,y=0;y<d.length;y++)switch(d[y].name.toLowerCase()){case "value":break;case "checked":break;case "selected":break;default:s.add(d[y].name);}if(Hf(n)){for(var g in a)if(a.hasOwnProperty(g)){var b=a[g];if(b!=null){if(Hc.hasOwnProperty(g))typeof b!="function"&&Co(g,b);else if(a.suppressHydrationWarning!==true)switch(g){case "children":typeof b!="string"&&typeof b!="number"||On("children",e.textContent,b,r);continue;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":continue;case "dangerouslySetInnerHTML":d=e.innerHTML,b=b?b.__html:void 0,b!=null&&(b=c5(e,b),On(g,d,b,r));continue;case "style":s.delete(g),f5(e,b,r);continue;case "offsetParent":case "offsetTop":case "offsetLeft":case "offsetWidth":case "offsetHeight":case "isContentEditable":case "outerText":case "outerHTML":s.delete(g.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",g);continue;case "className":s.delete("class"),d=JS(e,"class",b),On("className",d,b,r);continue;default:u.context===Ei&&n!=="svg"&&n!=="math"?s.delete(g.toLowerCase()):s.delete(g),d=JS(e,g,b),On(g,d,b,r);}}}}else for(b in a)if(a.hasOwnProperty(b)&&(g=a[b],g!=null)){if(Hc.hasOwnProperty(b))typeof g!="function"&&Co(b,g);else if(a.suppressHydrationWarning!==true)switch(b){case "children":typeof g!="string"&&typeof g!="number"||On("children",e.textContent,g,r);continue;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "value":case "checked":case "selected":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":continue;case "dangerouslySetInnerHTML":d=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=c5(e,g),d!==g&&(r[b]={__html:d}));continue;case "className":Ea(e,b,"class",g,s,r);continue;case "tabIndex":Ea(e,b,"tabindex",g,s,r);continue;case "style":s.delete(b),f5(e,g,r);continue;case "multiple":s.delete(b),On(b,e.multiple,g,r);continue;case "muted":s.delete(b),On(b,e.muted,g,r);continue;case "autoFocus":s.delete("autofocus"),On(b,e.autofocus,g,r);continue;case "data":if(n!=="object"){s.delete(b),d=e.getAttribute("data"),On(b,d,g,r);continue}case "src":case "href":if(!(g!==""||n==="a"&&b==="href"||n==="object"&&b==="data")){console.error(b==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',b,b);continue}cg(e,b,b,g,s,r);continue;case "action":case "formAction":if(d=e.getAttribute(b),typeof g=="function"){s.delete(b.toLowerCase()),b==="formAction"?(s.delete("name"),s.delete("formenctype"),s.delete("formmethod"),s.delete("formtarget")):(s.delete("enctype"),s.delete("method"),s.delete("target"));continue}else if(d===DR){s.delete(b.toLowerCase()),On(b,"function",g,r);continue}cg(e,b,b.toLowerCase(),g,s,r);continue;case "xlinkHref":cg(e,b,"xlink:href",g,s,r);continue;case "contentEditable":ug(e,b,"contenteditable",g,s,r);continue;case "spellCheck":ug(e,b,"spellcheck",g,s,r);continue;case "draggable":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":ug(e,b,b,g,s,r);continue;case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":d5(e,b,b.toLowerCase(),g,s,r);continue;case "capture":case "download":t:{y=e;var R=d=b,w=r;if(s.delete(R),y=y.getAttribute(R),y===null)switch(typeof g){case "undefined":case "function":case "symbol":break t;default:if(g===false)break t}else if(g!=null)switch(typeof g){case "function":case "symbol":break;case "boolean":if(g===true&&y==="")break t;break;default:if(Se(g,d),y===""+g)break t}On(d,y,g,w);}continue;case "cols":case "rows":case "size":case "span":t:{if(y=e,R=d=b,w=r,s.delete(R),y=y.getAttribute(R),y===null)switch(typeof g){case "undefined":case "function":case "symbol":case "boolean":break t;default:if(isNaN(g)||1>g)break t}else if(g!=null)switch(typeof g){case "function":case "symbol":case "boolean":break;default:if(!(isNaN(g)||1>g)&&(Se(g,d),y===""+g))break t}On(d,y,g,w);}continue;case "rowSpan":h5(e,b,"rowspan",g,s,r);continue;case "start":h5(e,b,b,g,s,r);continue;case "xHeight":Ea(e,b,"x-height",g,s,r);continue;case "xlinkActuate":Ea(e,b,"xlink:actuate",g,s,r);continue;case "xlinkArcrole":Ea(e,b,"xlink:arcrole",g,s,r);continue;case "xlinkRole":Ea(e,b,"xlink:role",g,s,r);continue;case "xlinkShow":Ea(e,b,"xlink:show",g,s,r);continue;case "xlinkTitle":Ea(e,b,"xlink:title",g,s,r);continue;case "xlinkType":Ea(e,b,"xlink:type",g,s,r);continue;case "xmlBase":Ea(e,b,"xml:base",g,s,r);continue;case "xmlLang":Ea(e,b,"xml:lang",g,s,r);continue;case "xmlSpace":Ea(e,b,"xml:space",g,s,r);continue;case "inert":g!==""||S1[b]||(S1[b]=true,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",b)),d5(e,b,b,g,s,r);continue;default:if(!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N"){y=m4(b),d=false,u.context===Ei&&n!=="svg"&&n!=="math"?s.delete(y.toLowerCase()):(R=b.toLowerCase(),R=wy.hasOwnProperty(R)&&wy[R]||null,R!==null&&R!==b&&(d=true,s.delete(R)),s.delete(y));t:if(R=e,w=y,y=g,wf(w))if(R.hasAttribute(w))R=R.getAttribute(w),Se(y,w),y=R===""+y?y:R;else {switch(typeof y){case "function":case "symbol":break t;case "boolean":if(R=w.toLowerCase().slice(0,5),R!=="data-"&&R!=="aria-")break t}y=y===void 0?void 0:null;}else y=void 0;d||On(b,y,g,r);}}}return 0<s.size&&a.suppressHydrationWarning!==true&&hC(e,s,r),Object.keys(r).length===0?null:r}function mC(e,n){switch(e.length){case 0:return "";case 1:return e[0];case 2:return e[0]+" "+n+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+n+" "+e[e.length-1]}}function m5(e){switch(e){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return true;default:return false}}function pC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,a=performance.getEntriesByType("resource"),u=0;u<a.length;u++){var r=a[u],s=r.transferSize,d=r.initiatorType,y=r.duration;if(s&&y&&m5(d)){for(d=0,y=r.responseEnd,u+=1;u<a.length;u++){var g=a[u],b=g.startTime;if(b>y)break;var R=g.transferSize,w=g.initiatorType;R&&m5(w)&&(g=g.responseEnd,d+=R*(g<y?1:(y-b)/(g-b)));}if(--u,n+=8*(s+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}function my(e){return e.nodeType===9?e:e.ownerDocument}function p5(e){switch(e){case ns:return Rs;case Ry:return M1;default:return Ei}}function g5(e,n){if(e===Ei)switch(n){case "svg":return Rs;case "math":return M1;default:return Ei}return e===Rs&&n==="foreignObject"?Ei:e}function rg(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function gC(){var e=window.event;return e&&e.type==="popstate"?e===Qx?false:(Qx=e,true):(Qx=null,false)}function rd(){var e=window.event;return e&&e!==o0?e.type:null}function sd(){var e=window.event;return e&&e!==o0?e.timeStamp:-1.1}function xC(e){setTimeout(function(){throw e});}function bC(e,n,a){switch(n){case "button":case "input":case "select":case "textarea":a.autoFocus&&e.focus();break;case "img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet);}}function vC(){}function SC(e,n,a,u){yC(e,n,a,u),e[sl]=u;}function x5(e){$f(e,"");}function EC(e,n,a){e.nodeValue=a;}function b5(e){if(!e.__reactWarnedAboutChildrenConflict){var n=e[sl]||null;if(n!==null){var a=$t(e);a!==null&&(typeof n.children=="string"||typeof n.children=="number"?(e.__reactWarnedAboutChildrenConflict=true,dt(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.');})):n.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=true,dt(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.');})));}}}function ru(e){return e==="head"}function MC(e,n){e.removeChild(n);}function _C(e,n){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(n);}function v5(e,n){var a=n,u=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a===a0||a===E1){if(u===0){e.removeChild(r),Kr(n);return}u--;}else if(a===l0||a===wu||a===nr||a===Os||a===er)u++;else if(a===CR)fd(e.ownerDocument.documentElement);else if(a===RR){a=e.ownerDocument.head,fd(a);for(var s=a.firstChild;s;){var d=s.nextSibling,y=s.nodeName;s[xd]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&s.rel.toLowerCase()==="stylesheet"||a.removeChild(s),s=d;}}else a===OR&&fd(e.ownerDocument.body);a=r;}while(a);Kr(n);}function S5(e,n){var a=e;e=0;do{var u=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),u&&u.nodeType===8)if(a=u.data,a===a0){if(e===0)break;e--;}else a!==l0&&a!==wu&&a!==nr&&a!==Os||e++;a=u;}while(a)}function TC(e){S5(e,true);}function AC(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none";}function zC(e){e.nodeValue="";}function DC(e){S5(e,false);}function kC(e,n){n=n[wR],n=n!=null&&n.hasOwnProperty("display")?n.display:null,e.style.display=n==null||typeof n=="boolean"?"":(""+n).trim();}function CC(e,n){e.nodeValue=n;}function sg(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case "HTML":case "HEAD":case "BODY":sg(a),ot(a);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a);}}function OC(e,n,a,u){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[xd])switch(n){case "meta":if(!e.hasAttribute("itemprop"))break;return e;case "link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case "style":if(e.hasAttribute("data-precedence"))break;return e;case "script":if(s=e.getAttribute("src"),(s!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){Se(r.name,"name");var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Pl(e.nextSibling),e===null)break}return null}function RC(e,n,a){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Pl(e.nextSibling),e===null))return null;return e}function E5(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pl(e.nextSibling),e===null))return null;return e}function fg(e){return e.data===wu||e.data===nr}function dg(e){return e.data===Os||e.data===wu&&e.ownerDocument.readyState!==f8}function wC(e,n){var a=e.ownerDocument;if(e.data===nr)e._reactRetry=n;else if(e.data!==wu||a.readyState!==f8)n();else {var u=function(){n(),a.removeEventListener("DOMContentLoaded",u);};a.addEventListener("DOMContentLoaded",u),e._reactRetry=u;}}function Pl(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n===l0||n===Os||n===wu||n===nr||n===er||n===qx||n===s8)break;if(n===a0||n===E1)return null}}return e}function M5(e){if(e.nodeType===1){for(var n=e.nodeName.toLowerCase(),a={},u=e.attributes,r=0;r<u.length;r++){var s=u[r];a[s5(s.name)]=s.name.toLowerCase()==="style"?ig(e):s.value;}return {type:n,props:a}}return e.nodeType===8?e.data===er?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function _5(e,n,a){return a===null||a[kR]!==true?(e.nodeValue===n?e=null:(n=cu(n),e=cu(e.nodeValue)===n?null:e.nodeValue),e):null}function hg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a===a0||a===E1){if(n===0)return Pl(e.nextSibling);n--;}else a!==l0&&a!==Os&&a!==wu&&a!==nr&&a!==er||n++;}e=e.nextSibling;}return null}function T5(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var a=e.data;if(a===l0||a===Os||a===wu||a===nr||a===er){if(n===0)return e;n--;}else a!==a0&&a!==E1||n++;}e=e.previousSibling;}return null}function UC(e){Kr(e);}function NC(e){Kr(e);}function $C(e){Kr(e);}function A5(e,n,a,u,r){switch(r&&_p(e,u.ancestorInfo),n=my(a),e){case "html":if(e=n.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case "head":if(e=n.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case "body":if(e=n.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function HC(e,n,a,u){if(!a[hu]&&$t(a)){var r=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",r,r,r);}switch(e){case "html":case "head":case "body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.");}for(r=a.attributes;r.length;)a.removeAttributeNode(r[0]);Xn(a,e,n),a[Gn]=u,a[sl]=n;}function fd(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ot(e);}function py(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function z5(e,n,a){var u=ws;if(u&&typeof n=="string"&&n){var r=Sa(n);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),g8.has(r)||(g8.add(r),e={rel:e,crossOrigin:a,href:n},u.querySelector(r)===null&&(n=u.createElement("link"),Xn(n,"link",e),_t(n),u.head.appendChild(n)));}}function D5(e,n,a,u){var r=(r=fu.current)?py(r):null;if(!r)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case "meta":case "title":return null;case "style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Zr(a.href),n=de(r).hoistableStyles,u=n.get(a),u||(u={type:"style",instance:null,count:0,state:null},n.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case "link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Zr(a.href);var s=de(r).hoistableStyles,d=s.get(e);if(!d&&(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:ar,preload:null}},s.set(e,d),(s=r.querySelector(dd(e)))&&!s._p&&(d.instance=s,d.state.loading=i0|wa),!Ua.has(e))){var y={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Ua.set(e,y),s||LC(r,e,y,d.state);}if(n&&u===null)throw a=`
|
|
190
|
-
|
|
191
|
-
- `+gy(n)+`
|
|
192
|
-
+ `+gy(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return d}if(n&&u!==null)throw a=`
|
|
193
|
-
|
|
194
|
-
- `+gy(n)+`
|
|
195
|
-
+ `+gy(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case "script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(a=Jr(a),n=de(r).hoistableScripts,u=n.get(a),u||(u={type:"script",instance:null,count:0,state:null},n.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function gy(e){var n=0,a="<link";return typeof e.rel=="string"?(n++,a+=' rel="'+e.rel+'"'):eo.call(e,"rel")&&(n++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(n++,a+=' href="'+e.href+'"'):eo.call(e,"href")&&(n++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(n++,a+=' precedence="'+e.precedence+'"'):eo.call(e,"precedence")&&(n++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>n&&(a+=" ..."),a+" />"}function Zr(e){return 'href="'+Sa(e)+'"'}function dd(e){return 'link[rel="stylesheet"]['+e+"]"}function k5(e){return Ft({},e,{"data-precedence":e.precedence,precedence:null})}function LC(e,n,a,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=i0:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=i0}),n.addEventListener("error",function(){return u.loading|=m8}),Xn(n,"link",a),_t(n),e.head.appendChild(n));}function Jr(e){return '[src="'+Sa(e)+'"]'}function hd(e){return "script[async]"+e}function C5(e,n,a){if(n.count++,n.instance===null)switch(n.type){case "style":var u=e.querySelector('style[data-href~="'+Sa(a.href)+'"]');if(u)return n.instance=u,_t(u),u;var r=Ft({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),_t(u),Xn(u,"style",r),xy(u,a.precedence,e),n.instance=u;case "stylesheet":r=Zr(a.href);var s=e.querySelector(dd(r));if(s)return n.state.loading|=wa,n.instance=s,_t(s),s;u=k5(a),(r=Ua.get(r))&&yg(u,r),s=(e.ownerDocument||e).createElement("link"),_t(s);var d=s;return d._p=new Promise(function(y,g){d.onload=y,d.onerror=g;}),Xn(s,"link",u),n.state.loading|=wa,xy(s,a.precedence,e),n.instance=s;case "script":return s=Jr(a.src),(r=e.querySelector(hd(s)))?(n.instance=r,_t(r),r):(u=a,(r=Ua.get(s))&&(u=Ft({},a),mg(u,r)),e=e.ownerDocument||e,r=e.createElement("script"),_t(r),Xn(r,"link",u),e.head.appendChild(r),n.instance=r);case "void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else n.type==="stylesheet"&&(n.state.loading&wa)===ar&&(u=n.instance,n.state.loading|=wa,xy(u,a.precedence,e));return n.instance}function xy(e,n,a){for(var u=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=u.length?u[u.length-1]:null,s=r,d=0;d<u.length;d++){var y=u[d];if(y.dataset.precedence===n)s=y;else if(s!==r)break}s?s.parentNode.insertBefore(e,s.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(e,n.firstChild));}function yg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title);}function mg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity);}function O5(e,n,a){if(_1===null){var u=new Map,r=_1=new Map;r.set(a,u);}else r=_1,u=r.get(a),u||(u=new Map,r.set(a,u));if(u.has(e))return u;for(u.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var s=a[r];if(!(s[xd]||s[Gn]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!==ns){var d=s.getAttribute(n)||"";d=e+d;var y=u.get(d);y?y.push(s):u.set(d,[s]);}}return u}function R5(e,n,a){e=e.ownerDocument||e,e.head.insertBefore(a,n==="title"?e.querySelector("head > title"):null);}function YC(e,n,a){var u=!a.ancestorInfo.containerTagInScope;if(a.context===Rs||n.itemProp!=null)return !u||n.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),false;switch(e){case "meta":case "title":return true;case "style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href===""){u&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return true;case "link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError){if(n.rel==="stylesheet"&&typeof n.precedence=="string"){e=n.href;var r=n.onError,s=n.disabled;a=[],n.onLoad&&a.push("`onLoad`"),r&&a.push("`onError`"),s!=null&&a.push("`disabled`"),r=mC(a,"and"),r+=a.length===1?" prop":" props",s=a.length===1?"an "+r:"the "+r,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,s,r);}u&&(typeof n.rel!="string"||typeof n.href!="string"||n.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(n.onError||n.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}return n.rel==="stylesheet"?(e=n.precedence,n=n.disabled,typeof e!="string"&&u&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e=="string"&&n==null):true;case "script":if(e=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!e||n.onLoad||n.onError||!n.src||typeof n.src!="string"){u&&(e?n.onLoad||n.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return true;case "noscript":case "template":u&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e);}return false}function w5(e){return !(e.type==="stylesheet"&&(e.state.loading&p8)===ar)}function BC(e,n,a,u){if(a.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==false)&&(a.state.loading&wa)===ar){if(a.instance===null){var r=Zr(u.href),s=n.querySelector(dd(r));if(s){n=s._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=by.bind(e),n.then(e,e)),a.state.loading|=wa,a.instance=s,_t(s);return}s=n.ownerDocument||n,u=k5(u),(r=Ua.get(r))&&yg(u,r),s=s.createElement("link"),_t(s);var d=s;d._p=new Promise(function(y,g){d.onload=y,d.onerror=g;}),Xn(s,"link",u),a.instance=s;}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&p8)===ar&&(e.count++,a=by.bind(e),n.addEventListener("load",a),n.addEventListener("error",a));}}function WC(e,n){return e.stylesheets&&e.count===0&&vy(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var u=setTimeout(function(){if(e.stylesheets&&vy(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s();}},$R+n);0<e.imgBytes&&Zx===0&&(Zx=125*pC()*LR);var r=setTimeout(function(){if(e.waitingForImages=false,e.count===0&&(e.stylesheets&&vy(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s();}},(e.imgBytes>Zx?50:HR)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(r);}}:null}function by(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vy(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e();}}}function vy(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,T1=new Map,n.forEach(jC,e),T1=null,by.call(e));}function jC(e,n){if(!(n.state.loading&wa)){var a=T1.get(e);if(a)var u=a.get(Jx);else {a=new Map,T1.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var d=r[s];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),u=d);}u&&a.set(Jx,u);}r=n.instance,d=r.getAttribute("data-precedence"),s=a.get(d)||u,s===u&&a.set(Jx,r),a.set(d,r),this.count++,u=by.bind(this),r.addEventListener("load",u),r.addEventListener("error",u),s?s.parentNode.insertBefore(r,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),n.state.loading|=wa;}}function qC(e,n,a,u,r,s,d,y,g){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=lr,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rr(0),this.hiddenUpdates=Rr(null),this.identifierPrefix=u,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()";}function U5(e,n,a,u,r,s,d,y,g,b,R,w){return e=new qC(e,n,a,d,g,b,R,w,y),n=rR,s===true&&(n|=al|lo),n|=qt,s=v(3,null,null,n),e.current=s,s.stateNode=e,n=qp(),Cc(n),e.pooledCache=n,Cc(n),s.memoizedState={element:u,isDehydrated:a,cache:n},Zp(s),e}function N5(e){return e?(e=gu,e):gu}function pg(e,n,a,u,r,s){if(ll&&typeof ll.onScheduleFiberRoot=="function")try{ll.onScheduleFiberRoot(ts,u,a);}catch(d){Uo||(Uo=true,console.error("React instrumentation encountered an error: %o",d));}r=N5(r),u.context===null?u.context=r:u.pendingContext=r,wo&&ea!==null&&!S8&&(S8=true,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
196
|
-
|
|
197
|
-
Check the render method of %s.`,Z(ea)||"Unknown")),u=nu(n),u.payload={element:a},s=s===void 0?null:s,s!==null&&(typeof s!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",s),u.callback=s),a=lu(e,u,n),a!==null&&(xo(n,"root.render()",null),Pe(a,e,n),Vf(a,e,n));}function $5(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<n?a:n;}}function gg(e,n){$5(e,n),(e=e.alternate)&&$5(e,n);}function H5(e){if(e.tag===13||e.tag===31){var n=nl(e,67108864);n!==null&&Pe(n,e,67108864),gg(e,67108864);}}function L5(e){if(e.tag===13||e.tag===31){var n=Il(e);n=Sc(n);var a=nl(e,n);a!==null&&Pe(a,e,n),gg(e,n);}}function XC(){return ea}function GC(e,n,a,u){var r=q.T;q.T=null;var s=pe.p;try{pe.p=na,xg(e,n,a,u);}finally{pe.p=s,q.T=r;}}function QC(e,n,a,u){var r=q.T;q.T=null;var s=pe.p;try{pe.p=no,xg(e,n,a,u);}finally{pe.p=s,q.T=r;}}function xg(e,n,a,u){if(z1){var r=bg(u);if(r===null)lg(e,n,u,D1,a),B5(e,u);else if(VC(r,e,n,a,u))u.stopPropagation();else if(B5(e,u),n&4&&-1<BR.indexOf(e)){for(;r!==null;){var s=$t(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var d=yo(s.pendingLanes);if(d!==0){var y=s;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var g=1<<31-rl(d);y.entanglements[1]|=g,d&=~g;}ko(s),(se&(Tn|ia))===Nn&&(s1=Rn()+JM,ud(0));}}break;case 31:case 13:y=nl(s,2),y!==null&&Pe(y,s,2),Gr(),gg(s,2);}if(s=bg(u),s===null&&lg(e,n,u,D1,a),s===r)break;r=s;}r!==null&&u.stopPropagation();}else lg(e,n,u,null,a);}}function bg(e){return e=Tp(e),vg(e)}function vg(e){if(D1=null,e=xt(e),e!==null){var n=C(e);if(n===null)e=null;else {var a=n.tag;if(a===13){if(e=z(n),e!==null)return e;e=null;}else if(a===31){if(e=U(n),e!==null)return e;e=null;}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null;}else n!==e&&(e=null);}}return D1=e,null}function Y5(e){switch(e){case "beforetoggle":case "cancel":case "click":case "close":case "contextmenu":case "copy":case "cut":case "auxclick":case "dblclick":case "dragend":case "dragstart":case "drop":case "focusin":case "focusout":case "input":case "invalid":case "keydown":case "keypress":case "keyup":case "mousedown":case "mouseup":case "paste":case "pause":case "play":case "pointercancel":case "pointerdown":case "pointerup":case "ratechange":case "reset":case "resize":case "seeked":case "submit":case "toggle":case "touchcancel":case "touchend":case "touchstart":case "volumechange":case "change":case "selectionchange":case "textInput":case "compositionstart":case "compositionend":case "compositionupdate":case "beforeblur":case "afterblur":case "beforeinput":case "blur":case "fullscreenchange":case "focus":case "hashchange":case "popstate":case "select":case "selectstart":return na;case "drag":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "mousemove":case "mouseout":case "mouseover":case "pointermove":case "pointerout":case "pointerover":case "scroll":case "touchmove":case "wheel":case "mouseenter":case "mouseleave":case "pointerenter":case "pointerleave":return no;case "message":switch(lO()){case Ug:return na;case Ng:return no;case Pr:case aO:return $o;case $g:return Cy;default:return $o}default:return $o}}function B5(e,n){switch(e){case "focusin":case "focusout":Uu=null;break;case "dragenter":case "dragleave":Nu=null;break;case "mouseover":case "mouseout":$u=null;break;case "pointerover":case "pointerout":c0.delete(n.pointerId);break;case "gotpointercapture":case "lostpointercapture":r0.delete(n.pointerId);}}function yd(e,n,a,u,r,s){return e===null||e.nativeEvent!==s?(e={blockedOn:n,domEventName:a,eventSystemFlags:u,nativeEvent:s,targetContainers:[r]},n!==null&&(n=$t(n),n!==null&&H5(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,r!==null&&n.indexOf(r)===-1&&n.push(r),e)}function VC(e,n,a,u,r){switch(n){case "focusin":return Uu=yd(Uu,e,n,a,u,r),true;case "dragenter":return Nu=yd(Nu,e,n,a,u,r),true;case "mouseover":return $u=yd($u,e,n,a,u,r),true;case "pointerover":var s=r.pointerId;return c0.set(s,yd(c0.get(s)||null,e,n,a,u,r)),true;case "gotpointercapture":return s=r.pointerId,r0.set(s,yd(r0.get(s)||null,e,n,a,u,r)),true}return false}function W5(e){var n=xt(e.target);if(n!==null){var a=C(n);if(a!==null){if(n=a.tag,n===13){if(n=z(a),n!==null){e.blockedOn=n,tt(e.priority,function(){L5(a);});return}}else if(n===31){if(n=U(a),n!==null){e.blockedOn=n,tt(e.priority,function(){L5(a);});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null;}function Sy(e){if(e.blockedOn!==null)return false;for(var n=e.targetContainers;0<n.length;){var a=bg(e.nativeEvent);if(a===null){a=e.nativeEvent;var u=new a.constructor(a.type,a),r=u;bd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),bd=r,a.target.dispatchEvent(u),bd===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),bd=null;}else return n=$t(a),n!==null&&H5(n),e.blockedOn=a,false;n.shift();}return true}function j5(e,n,a){Sy(e)&&a.delete(n);}function ZC(){Kx=false,Uu!==null&&Sy(Uu)&&(Uu=null),Nu!==null&&Sy(Nu)&&(Nu=null),$u!==null&&Sy($u)&&($u=null),c0.forEach(j5),r0.forEach(j5);}function Ey(e,n){e.blockedOn===n&&(e.blockedOn=null,Kx||(Kx=true,sn.unstable_scheduleCallback(sn.unstable_NormalPriority,ZC)));}function q5(e){k1!==e&&(k1=e,sn.unstable_scheduleCallback(sn.unstable_NormalPriority,function(){k1===e&&(k1=null);for(var n=0;n<e.length;n+=3){var a=e[n],u=e[n+1],r=e[n+2];if(typeof u!="function"){if(vg(u||a)===null)continue;break}var s=$t(a);s!==null&&(e.splice(n,3),n-=3,a={pending:true,data:r,method:a.method,action:u},Object.freeze(a),v2(s,a,u,r));}}));}function Kr(e){function n(g){return Ey(g,e)}Uu!==null&&Ey(Uu,e),Nu!==null&&Ey(Nu,e),$u!==null&&Ey($u,e),c0.forEach(n),r0.forEach(n);for(var a=0;a<Hu.length;a++){var u=Hu[a];u.blockedOn===e&&(u.blockedOn=null);}for(;0<Hu.length&&(a=Hu[0],a.blockedOn===null);)W5(a),a.blockedOn===null&&Hu.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(u=0;u<a.length;u+=3){var r=a[u],s=a[u+1],d=r[sl]||null;if(typeof s=="function")d||q5(a);else if(d){var y=null;if(s&&s.hasAttribute("formAction")){if(r=s,d=s[sl]||null)y=d.formAction;else if(vg(r)!==null)continue}else y=d.action;typeof y=="function"?a[u+1]=y:(a.splice(u,3),u-=3),q5(a);}}}function X5(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"});}function n(){r!==null&&(r(),r=null),u||setTimeout(a,20);}function a(){if(!u&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"});}}if(typeof navigation=="object"){var u=false,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){u=true,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),r!==null&&(r(),r=null);}}}function Sg(e){this._internalRoot=e;}function My(e){this._internalRoot=e;}function G5(e){e[hu]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."));}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var sn=vb(),Eg=Na(),JC=Eb(),Ft=Object.assign,KC=Symbol.for("react.element"),Oo=Symbol.for("react.transitional.element"),Fr=Symbol.for("react.portal"),Ir=Symbol.for("react.fragment"),_y=Symbol.for("react.strict_mode"),Mg=Symbol.for("react.profiler"),_g=Symbol.for("react.consumer"),Ro=Symbol.for("react.context"),md=Symbol.for("react.forward_ref"),Tg=Symbol.for("react.suspense"),Ag=Symbol.for("react.suspense_list"),Ty=Symbol.for("react.memo"),ta=Symbol.for("react.lazy"),zg=Symbol.for("react.activity"),FC=Symbol.for("react.memo_cache_sentinel"),Q5=Symbol.iterator,IC=Symbol.for("react.client.reference"),Mn=Array.isArray,q=Eg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pe=JC.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,PC=Object.freeze({pending:false,data:null,method:null,action:null}),Dg=[],kg=[],ci=-1,su=re(null),pd=re(null),fu=re(null),Ay=re(null),gd=0,V5,Z5,J5,K5,F5,I5,P5;kn.__reactDisabledLog=true;var Cg,t6,Og=false,Rg=new(typeof WeakMap=="function"?WeakMap:Map),ea=null,wo=false,eo=Object.prototype.hasOwnProperty,wg=sn.unstable_scheduleCallback,tO=sn.unstable_cancelCallback,eO=sn.unstable_shouldYield,nO=sn.unstable_requestPaint,Rn=sn.unstable_now,lO=sn.unstable_getCurrentPriorityLevel,Ug=sn.unstable_ImmediatePriority,Ng=sn.unstable_UserBlockingPriority,Pr=sn.unstable_NormalPriority,aO=sn.unstable_LowPriority,$g=sn.unstable_IdlePriority,oO=sn.log,iO=sn.unstable_setDisableYieldValue,ts=null,ll=null,Uo=false,No=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",rl=Math.clz32?Math.clz32:yh,uO=Math.log,cO=Math.LN2,zy=256,Dy=262144,ky=4194304,na=2,no=8,$o=32,Cy=268435456,du=Math.random().toString(36).slice(2),Gn="__reactFiber$"+du,sl="__reactProps$"+du,hu="__reactContainer$"+du,Hg="__reactEvents$"+du,rO="__reactListeners$"+du,sO="__reactHandles$"+du,e6="__reactResources$"+du,xd="__reactMarker$"+du,n6=new Set,Hc={},Lg={},fO={button:true,checkbox:true,image:true,hidden:true,radio:true,reset:true,submit:true},dO=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),l6={},a6={},hO=/[\n"\\]/g,o6=false,i6=false,u6=false,c6=false,r6=false,s6=false,f6=["value","defaultValue"],d6=false,h6=/["'&<>\n\t]|^\s|\s$/,yO="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),y6="applet caption html table td th marquee object template foreignObject desc title".split(" "),mO=y6.concat(["button"]),pO="dd dt li option optgroup p rp rt".split(" "),m6={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:false},Oy={},Yg={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},p6=/([A-Z])/g,g6=/^ms-/,gO=/^(?:webkit|moz|o)[A-Z]/,xO=/^-ms-/,bO=/-(.)/g,x6=/;\s*$/,es={},Bg={},b6=false,v6=false,S6=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),Ry="http://www.w3.org/1998/Math/MathML",ns="http://www.w3.org/2000/svg",vO=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),wy={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},E6={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},ls={},SO=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),EO=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),M6=false,fl={},_6=/^on./,MO=/^on[^A-Z]/,_O=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),TO=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),AO=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,bd=null,as=null,os=null,Wg=false,Ho=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jg=false;if(Ho)try{var vd={};Object.defineProperty(vd,"passive",{get:function(){jg=!0;}}),window.addEventListener("test",vd,vd),window.removeEventListener("test",vd,vd);}catch{jg=false;}var yu=null,qg=null,Uy=null,Lc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ny=Al(Lc),Sd=Ft({},Lc,{view:0,detail:0}),zO=Al(Sd),Xg,Gg,Ed,$y=Ft({},Sd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ap,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return "movementX"in e?e.movementX:(e!==Ed&&(Ed&&e.type==="mousemove"?(Xg=e.screenX-Ed.screenX,Gg=e.screenY-Ed.screenY):Gg=Xg=0,Ed=e),Xg)},movementY:function(e){return "movementY"in e?e.movementY:Gg}}),T6=Al($y),DO=Ft({},$y,{dataTransfer:0}),kO=Al(DO),CO=Ft({},Sd,{relatedTarget:0}),Qg=Al(CO),OO=Ft({},Lc,{animationName:0,elapsedTime:0,pseudoElement:0}),RO=Al(OO),wO=Ft({},Lc,{clipboardData:function(e){return "clipboardData"in e?e.clipboardData:window.clipboardData}}),UO=Al(wO),NO=Ft({},Lc,{data:0}),A6=Al(NO),$O=A6,HO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LO={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},YO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},BO=Ft({},Sd,{key:function(e){if(e.key){var n=HO[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Sh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LO[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ap,charCode:function(e){return e.type==="keypress"?Sh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Sh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),WO=Al(BO),jO=Ft({},$y,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),z6=Al(jO),qO=Ft({},Sd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ap}),XO=Al(qO),GO=Ft({},Lc,{propertyName:0,elapsedTime:0,pseudoElement:0}),QO=Al(GO),VO=Ft({},$y,{deltaX:function(e){return "deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return "deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ZO=Al(VO),JO=Ft({},Lc,{newState:0,oldState:0}),KO=Al(JO),FO=[9,13,27,32],D6=229,Vg=Ho&&"CompositionEvent"in window,Md=null;Ho&&"documentMode"in document&&(Md=document.documentMode);var IO=Ho&&"TextEvent"in window&&!Md,k6=Ho&&(!Vg||Md&&8<Md&&11>=Md),C6=32,O6=String.fromCharCode(C6),R6=false,is=false,PO={color:true,date:true,datetime:true,"datetime-local":true,email:true,month:true,number:true,password:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true},_d=null,Td=null,w6=false;Ho&&(w6=bk("input")&&(!document.documentMode||9<document.documentMode));var dl=typeof Object.is=="function"?Object.is:Tk,tR=Ho&&"documentMode"in document&&11>=document.documentMode,us=null,Zg=null,Ad=null,Jg=false,cs={animationend:Mc("Animation","AnimationEnd"),animationiteration:Mc("Animation","AnimationIteration"),animationstart:Mc("Animation","AnimationStart"),transitionrun:Mc("Transition","TransitionRun"),transitionstart:Mc("Transition","TransitionStart"),transitioncancel:Mc("Transition","TransitionCancel"),transitionend:Mc("Transition","TransitionEnd")},Kg={},U6={};Ho&&(U6=document.createElement("div").style,"AnimationEvent"in window||(delete cs.animationend.animation,delete cs.animationiteration.animation,delete cs.animationstart.animation),"TransitionEvent"in window||delete cs.transitionend.transition);var N6=_c("animationend"),$6=_c("animationiteration"),H6=_c("animationstart"),eR=_c("transitionrun"),nR=_c("transitionstart"),lR=_c("transitioncancel"),L6=_c("transitionend"),Y6=new Map,Fg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fg.push("scrollEnd");var B6=0;if(typeof performance=="object"&&typeof performance.now=="function")var aR=performance,W6=function(){return aR.now()};else {var oR=Date;W6=function(){return oR.now()};}var Ig=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e);},iR="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Hy=0,Pg=1,tx=2,ex=3,Ly="\u2013\xA0",Yy="+\xA0",j6="\u2007\xA0",He=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Ma="Components \u269B",It="Scheduler \u269B",te="Blocking",mu=false,ri={color:"primary",properties:null,tooltipText:"",track:Ma},pu={start:-0,end:-0,detail:{devtools:ri}},uR=["Changed Props",""],q6="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cR=["Changed Props",q6],zd=1,si=2,_a=[],rs=0,nx=0,gu={};Object.freeze(gu);var Ta=null,ss=null,Ot=0,rR=1,qt=2,al=8,lo=16,sR=32,X6=false;try{var G6=Object.preventExtensions({});}catch{X6=true;}var lx=new WeakMap,fs=[],ds=0,By=null,Dd=0,Aa=[],za=0,Yc=null,fi=1,di="",Qn=null,Le=null,ne=false,Lo=false,la=null,xu=null,Da=false,ax=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ox=re(null),ix=re(null),Q6={},Wy=null,hs=null,ys=false,fR=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:false,addEventListener:function(a,u){e.push(u);}};this.abort=function(){n.aborted=true,e.forEach(function(a){return a()});};},dR=sn.unstable_scheduleCallback,hR=sn.unstable_NormalPriority,fn={$$typeof:Ro,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},dn=sn.unstable_now,jy=console.createTask?console.createTask:function(){return null},kd=1,qy=2,wn=-0,bu=-0,hi=-0,yi=null,hl=-1.1,Bc=-0,Ve=-0,Tt=-1.1,kt=-1.1,je=null,tn=false,vu=-0,Yo=-1.1,Cd=null,Su=0,ux=null,cx=null,Wc=-1.1,Od=null,ms=-1.1,Xy=-1.1,Bo=-0,mi=-1.1,ka=-1.1,rx=0,Rd=null,V6=null,Z6=null,Eu=-1.1,jc=null,Mu=-1.1,Gy=-1.1,J6=-0,K6=-0,Qy=0,pi=null,F6=0,wd=-1.1,Vy=false,Zy=false,Ud=null,sx=0,qc=0,ps=null,I6=q.S;q.S=function(e,n){if(VM=Rn(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>mi&&0>ka){mi=dn();var a=sd(),u=rd();(a!==Mu||u!==jc)&&(Mu=-1.1),Eu=a,jc=u;}Rk(e,n);}I6!==null&&I6(e,n);};var Xc=re(null),ao={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Nd=[],$d=[],Hd=[],Ld=[],Yd=[],Bd=[],Gc=new Set;ao.recordUnsafeLifecycleWarnings=function(e,n){Gc.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==true&&Nd.push(e),e.mode&al&&typeof n.UNSAFE_componentWillMount=="function"&&$d.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==true&&Hd.push(e),e.mode&al&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&Ld.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==true&&Yd.push(e),e.mode&al&&typeof n.UNSAFE_componentWillUpdate=="function"&&Bd.push(e));},ao.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Nd.length&&(Nd.forEach(function(y){e.add(Z(y)||"Component"),Gc.add(y.type);}),Nd=[]);var n=new Set;0<$d.length&&($d.forEach(function(y){n.add(Z(y)||"Component"),Gc.add(y.type);}),$d=[]);var a=new Set;0<Hd.length&&(Hd.forEach(function(y){a.add(Z(y)||"Component"),Gc.add(y.type);}),Hd=[]);var u=new Set;0<Ld.length&&(Ld.forEach(function(y){u.add(Z(y)||"Component"),Gc.add(y.type);}),Ld=[]);var r=new Set;0<Yd.length&&(Yd.forEach(function(y){r.add(Z(y)||"Component"),Gc.add(y.type);}),Yd=[]);var s=new Set;if(0<Bd.length&&(Bd.forEach(function(y){s.add(Z(y)||"Component"),Gc.add(y.type);}),Bd=[]),0<n.size){var d=M(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
|
-
|
|
199
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
|
-
|
|
201
|
-
Please update the following components: %s`,d);}0<u.size&&(d=M(u),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
202
|
-
|
|
203
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
204
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
205
|
-
|
|
206
|
-
Please update the following components: %s`,d)),0<s.size&&(d=M(s),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
207
|
-
|
|
208
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
209
|
-
|
|
210
|
-
Please update the following components: %s`,d)),0<e.size&&(d=M(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
211
|
-
|
|
212
|
-
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
213
|
-
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
214
|
-
|
|
215
|
-
Please update the following components: %s`,d)),0<a.size&&(d=M(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
216
|
-
|
|
217
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
218
|
-
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
219
|
-
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
220
|
-
|
|
221
|
-
Please update the following components: %s`,d)),0<r.size&&(d=M(r),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
222
|
-
|
|
223
|
-
* Move data fetching code or side effects to componentDidUpdate.
|
|
224
|
-
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
225
|
-
|
|
226
|
-
Please update the following components: %s`,d));};var Jy=new Map,P6=new Set;ao.recordLegacyContextWarning=function(e,n){for(var a=null,u=e;u!==null;)u.mode&al&&(a=u),u=u.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!P6.has(e.type)&&(u=Jy.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(u===void 0&&(u=[],Jy.set(a,u)),u.push(e));},ao.flushLegacyContextWarning=function(){Jy.forEach(function(e){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(r){a.add(Z(r)||"Component"),P6.add(r.type);});var u=M(a);dt(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
|
|
227
|
-
|
|
228
|
-
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
229
|
-
|
|
230
|
-
Please update the following components: %s
|
|
231
|
-
|
|
232
|
-
Learn more about this warning here: https://react.dev/link/legacy-context`,u);});}});},ao.discardPendingWarnings=function(){Nd=[],$d=[],Hd=[],Ld=[],Yd=[],Bd=[],Jy=new Map;};var tM={react_stack_bottom_frame:function(e,n,a){var u=wo;wo=true;try{return e(n,a)}finally{wo=u;}}},fx=tM.react_stack_bottom_frame.bind(tM),eM={react_stack_bottom_frame:function(e){var n=wo;wo=true;try{return e.render()}finally{wo=n;}}},nM=eM.react_stack_bottom_frame.bind(eM),lM={react_stack_bottom_frame:function(e,n){try{n.componentDidMount();}catch(a){me(e,e.return,a);}}},dx=lM.react_stack_bottom_frame.bind(lM),aM={react_stack_bottom_frame:function(e,n,a,u,r){try{n.componentDidUpdate(a,u,r);}catch(s){me(e,e.return,s);}}},oM=aM.react_stack_bottom_frame.bind(aM),iM={react_stack_bottom_frame:function(e,n){var a=n.stack;e.componentDidCatch(n.value,{componentStack:a!==null?a:""});}},yR=iM.react_stack_bottom_frame.bind(iM),uM={react_stack_bottom_frame:function(e,n,a){try{a.componentWillUnmount();}catch(u){me(e,n,u);}}},cM=uM.react_stack_bottom_frame.bind(uM),rM={react_stack_bottom_frame:function(e){var n=e.create;return e=e.inst,n=n(),e.destroy=n}},mR=rM.react_stack_bottom_frame.bind(rM),sM={react_stack_bottom_frame:function(e,n,a){try{a();}catch(u){me(e,n,u);}}},pR=sM.react_stack_bottom_frame.bind(sM),fM={react_stack_bottom_frame:function(e){var n=e._init;return n(e._payload)}},gR=fM.react_stack_bottom_frame.bind(fM),gs=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),hx=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Ky=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Fy={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.');}},Qc=null,Wd=false,xs=null,jd=0,Xt=null,yx,dM=yx=false,hM={},yM={},mM={};T=function(e,n,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var u=Z(e),r=u||"null";if(!hM[r]){hM[r]=true,a=a._owner,e=e._debugOwner;var s="";e&&typeof e.tag=="number"&&(r=Z(e))&&(s=`
|
|
233
|
-
|
|
234
|
-
Check the render method of \``+r+"`."),s||u&&(s=`
|
|
235
|
-
|
|
236
|
-
Check the top-level render call using <`+u+">.");var d="";a!=null&&e!==a&&(u=null,typeof a.tag=="number"?u=Z(a):typeof a.name=="string"&&(u=a.name),u&&(d=" It was passed a child from "+u+".")),dt(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',s,d);});}}};var Vc=u3(true),pM=u3(false),gM=0,xM=1,bM=2,mx=3,_u=false,vM=false,px=null,gx=false,bs=re(null),Iy=re(0),aa=re(null),Ca=null,vs=1,qd=2,on=re(0),Py=0,Oa=1,yl=2,oa=4,ml=8,Ss,SM=new Set,EM=new Set,xx=new Set,MM=new Set,gi=0,Rt=null,Te=null,hn=null,t1=false,Es=false,Zc=false,e1=0,Xd=0,xi=null,xR=0,bR=25,W=null,Ra=null,bi=-1,Gd=false,Qd={readContext:We,use:iu,useCallback:en,useContext:en,useEffect:en,useImperativeHandle:en,useLayoutEffect:en,useInsertionEffect:en,useMemo:en,useReducer:en,useRef:en,useState:en,useDebugValue:en,useDeferredValue:en,useTransition:en,useSyncExternalStore:en,useId:en,useHostTransitionStatus:en,useFormState:en,useActionState:en,useOptimistic:en,useMemoCache:en,useCacheRefresh:en};Qd.useEffectEvent=en;var bx=null,_M=null,vx=null,TM=null,Wo=null,oo=null,n1=null;bx={readContext:function(e){return We(e)},use:iu,useCallback:function(e,n){return W="useCallback",Kt(),Lr(n),p2(e,n)},useContext:function(e){return W="useContext",Kt(),We(e)},useEffect:function(e,n){return W="useEffect",Kt(),Lr(n),Jh(e,n)},useImperativeHandle:function(e,n,a){return W="useImperativeHandle",Kt(),Lr(a),m2(e,n,a)},useInsertionEffect:function(e,n){W="useInsertionEffect",Kt(),Lr(n),Rc(4,yl,e,n);},useLayoutEffect:function(e,n){return W="useLayoutEffect",Kt(),Lr(n),y2(e,n)},useMemo:function(e,n){W="useMemo",Kt(),Lr(n);var a=q.H;q.H=Wo;try{return g2(e,n)}finally{q.H=a;}},useReducer:function(e,n,a){W="useReducer",Kt();var u=q.H;q.H=Wo;try{return o2(e,n,a)}finally{q.H=u;}},useRef:function(e){return W="useRef",Kt(),d2(e)},useState:function(e){W="useState",Kt();var n=q.H;q.H=Wo;try{return r2(e)}finally{q.H=n;}},useDebugValue:function(){W="useDebugValue",Kt();},useDeferredValue:function(e,n){return W="useDeferredValue",Kt(),x2(e,n)},useTransition:function(){return W="useTransition",Kt(),S2()},useSyncExternalStore:function(e,n,a){return W="useSyncExternalStore",Kt(),u2(e,n,a)},useId:function(){return W="useId",Kt(),E2()},useFormState:function(e,n){return W="useFormState",Kt(),Xh(),Br(e,n)},useActionState:function(e,n){return W="useActionState",Kt(),Br(e,n)},useOptimistic:function(e){return W="useOptimistic",Kt(),s2(e)},useHostTransitionStatus:wc,useMemoCache:Oc,useCacheRefresh:function(){return W="useCacheRefresh",Kt(),M2()},useEffectEvent:function(e){return W="useEffectEvent",Kt(),h2(e)}},_M={readContext:function(e){return We(e)},use:iu,useCallback:function(e,n){return W="useCallback",P(),p2(e,n)},useContext:function(e){return W="useContext",P(),We(e)},useEffect:function(e,n){return W="useEffect",P(),Jh(e,n)},useImperativeHandle:function(e,n,a){return W="useImperativeHandle",P(),m2(e,n,a)},useInsertionEffect:function(e,n){W="useInsertionEffect",P(),Rc(4,yl,e,n);},useLayoutEffect:function(e,n){return W="useLayoutEffect",P(),y2(e,n)},useMemo:function(e,n){W="useMemo",P();var a=q.H;q.H=Wo;try{return g2(e,n)}finally{q.H=a;}},useReducer:function(e,n,a){W="useReducer",P();var u=q.H;q.H=Wo;try{return o2(e,n,a)}finally{q.H=u;}},useRef:function(e){return W="useRef",P(),d2(e)},useState:function(e){W="useState",P();var n=q.H;q.H=Wo;try{return r2(e)}finally{q.H=n;}},useDebugValue:function(){W="useDebugValue",P();},useDeferredValue:function(e,n){return W="useDeferredValue",P(),x2(e,n)},useTransition:function(){return W="useTransition",P(),S2()},useSyncExternalStore:function(e,n,a){return W="useSyncExternalStore",P(),u2(e,n,a)},useId:function(){return W="useId",P(),E2()},useActionState:function(e,n){return W="useActionState",P(),Br(e,n)},useFormState:function(e,n){return W="useFormState",P(),Xh(),Br(e,n)},useOptimistic:function(e){return W="useOptimistic",P(),s2(e)},useHostTransitionStatus:wc,useMemoCache:Oc,useCacheRefresh:function(){return W="useCacheRefresh",P(),M2()},useEffectEvent:function(e){return W="useEffectEvent",P(),h2(e)}},vx={readContext:function(e){return We(e)},use:iu,useCallback:function(e,n){return W="useCallback",P(),Ih(e,n)},useContext:function(e){return W="useContext",P(),We(e)},useEffect:function(e,n){W="useEffect",P(),zl(2048,ml,e,n);},useImperativeHandle:function(e,n,a){return W="useImperativeHandle",P(),Fh(e,n,a)},useInsertionEffect:function(e,n){return W="useInsertionEffect",P(),zl(4,yl,e,n)},useLayoutEffect:function(e,n){return W="useLayoutEffect",P(),zl(4,oa,e,n)},useMemo:function(e,n){W="useMemo",P();var a=q.H;q.H=oo;try{return Ph(e,n)}finally{q.H=a;}},useReducer:function(e,n,a){W="useReducer",P();var u=q.H;q.H=oo;try{return Yr(e,n,a)}finally{q.H=u;}},useRef:function(){return W="useRef",P(),be().memoizedState},useState:function(){W="useState",P();var e=q.H;q.H=oo;try{return Yr(Pa)}finally{q.H=e;}},useDebugValue:function(){W="useDebugValue",P();},useDeferredValue:function(e,n){return W="useDeferredValue",P(),k3(e,n)},useTransition:function(){return W="useTransition",P(),N3()},useSyncExternalStore:function(e,n,a){return W="useSyncExternalStore",P(),Qh(e,n,a)},useId:function(){return W="useId",P(),be().memoizedState},useFormState:function(e){return W="useFormState",P(),Xh(),Vh(e)},useActionState:function(e){return W="useActionState",P(),Vh(e)},useOptimistic:function(e,n){return W="useOptimistic",P(),b3(e,n)},useHostTransitionStatus:wc,useMemoCache:Oc,useCacheRefresh:function(){return W="useCacheRefresh",P(),be().memoizedState},useEffectEvent:function(e){return W="useEffectEvent",P(),Kh(e)}},TM={readContext:function(e){return We(e)},use:iu,useCallback:function(e,n){return W="useCallback",P(),Ih(e,n)},useContext:function(e){return W="useContext",P(),We(e)},useEffect:function(e,n){W="useEffect",P(),zl(2048,ml,e,n);},useImperativeHandle:function(e,n,a){return W="useImperativeHandle",P(),Fh(e,n,a)},useInsertionEffect:function(e,n){return W="useInsertionEffect",P(),zl(4,yl,e,n)},useLayoutEffect:function(e,n){return W="useLayoutEffect",P(),zl(4,oa,e,n)},useMemo:function(e,n){W="useMemo",P();var a=q.H;q.H=n1;try{return Ph(e,n)}finally{q.H=a;}},useReducer:function(e,n,a){W="useReducer",P();var u=q.H;q.H=n1;try{return Ff(e,n,a)}finally{q.H=u;}},useRef:function(){return W="useRef",P(),be().memoizedState},useState:function(){W="useState",P();var e=q.H;q.H=n1;try{return Ff(Pa)}finally{q.H=e;}},useDebugValue:function(){W="useDebugValue",P();},useDeferredValue:function(e,n){return W="useDeferredValue",P(),C3(e,n)},useTransition:function(){return W="useTransition",P(),$3()},useSyncExternalStore:function(e,n,a){return W="useSyncExternalStore",P(),Qh(e,n,a)},useId:function(){return W="useId",P(),be().memoizedState},useFormState:function(e){return W="useFormState",P(),Xh(),Zh(e)},useActionState:function(e){return W="useActionState",P(),Zh(e)},useOptimistic:function(e,n){return W="useOptimistic",P(),S3(e,n)},useHostTransitionStatus:wc,useMemoCache:Oc,useCacheRefresh:function(){return W="useCacheRefresh",P(),be().memoizedState},useEffectEvent:function(e){return W="useEffectEvent",P(),Kh(e)}},Wo={readContext:function(e){return x(),We(e)},use:function(e){return m(),iu(e)},useCallback:function(e,n){return W="useCallback",m(),Kt(),p2(e,n)},useContext:function(e){return W="useContext",m(),Kt(),We(e)},useEffect:function(e,n){return W="useEffect",m(),Kt(),Jh(e,n)},useImperativeHandle:function(e,n,a){return W="useImperativeHandle",m(),Kt(),m2(e,n,a)},useInsertionEffect:function(e,n){W="useInsertionEffect",m(),Kt(),Rc(4,yl,e,n);},useLayoutEffect:function(e,n){return W="useLayoutEffect",m(),Kt(),y2(e,n)},useMemo:function(e,n){W="useMemo",m(),Kt();var a=q.H;q.H=Wo;try{return g2(e,n)}finally{q.H=a;}},useReducer:function(e,n,a){W="useReducer",m(),Kt();var u=q.H;q.H=Wo;try{return o2(e,n,a)}finally{q.H=u;}},useRef:function(e){return W="useRef",m(),Kt(),d2(e)},useState:function(e){W="useState",m(),Kt();var n=q.H;q.H=Wo;try{return r2(e)}finally{q.H=n;}},useDebugValue:function(){W="useDebugValue",m(),Kt();},useDeferredValue:function(e,n){return W="useDeferredValue",m(),Kt(),x2(e,n)},useTransition:function(){return W="useTransition",m(),Kt(),S2()},useSyncExternalStore:function(e,n,a){return W="useSyncExternalStore",m(),Kt(),u2(e,n,a)},useId:function(){return W="useId",m(),Kt(),E2()},useFormState:function(e,n){return W="useFormState",m(),Kt(),Br(e,n)},useActionState:function(e,n){return W="useActionState",m(),Kt(),Br(e,n)},useOptimistic:function(e){return W="useOptimistic",m(),Kt(),s2(e)},useMemoCache:function(e){return m(),Oc(e)},useHostTransitionStatus:wc,useCacheRefresh:function(){return W="useCacheRefresh",Kt(),M2()},useEffectEvent:function(e){return W="useEffectEvent",m(),Kt(),h2(e)}},oo={readContext:function(e){return x(),We(e)},use:function(e){return m(),iu(e)},useCallback:function(e,n){return W="useCallback",m(),P(),Ih(e,n)},useContext:function(e){return W="useContext",m(),P(),We(e)},useEffect:function(e,n){W="useEffect",m(),P(),zl(2048,ml,e,n);},useImperativeHandle:function(e,n,a){return W="useImperativeHandle",m(),P(),Fh(e,n,a)},useInsertionEffect:function(e,n){return W="useInsertionEffect",m(),P(),zl(4,yl,e,n)},useLayoutEffect:function(e,n){return W="useLayoutEffect",m(),P(),zl(4,oa,e,n)},useMemo:function(e,n){W="useMemo",m(),P();var a=q.H;q.H=oo;try{return Ph(e,n)}finally{q.H=a;}},useReducer:function(e,n,a){W="useReducer",m(),P();var u=q.H;q.H=oo;try{return Yr(e,n,a)}finally{q.H=u;}},useRef:function(){return W="useRef",m(),P(),be().memoizedState},useState:function(){W="useState",m(),P();var e=q.H;q.H=oo;try{return Yr(Pa)}finally{q.H=e;}},useDebugValue:function(){W="useDebugValue",m(),P();},useDeferredValue:function(e,n){return W="useDeferredValue",m(),P(),k3(e,n)},useTransition:function(){return W="useTransition",m(),P(),N3()},useSyncExternalStore:function(e,n,a){return W="useSyncExternalStore",m(),P(),Qh(e,n,a)},useId:function(){return W="useId",m(),P(),be().memoizedState},useFormState:function(e){return W="useFormState",m(),P(),Vh(e)},useActionState:function(e){return W="useActionState",m(),P(),Vh(e)},useOptimistic:function(e,n){return W="useOptimistic",m(),P(),b3(e,n)},useMemoCache:function(e){return m(),Oc(e)},useHostTransitionStatus:wc,useCacheRefresh:function(){return W="useCacheRefresh",P(),be().memoizedState},useEffectEvent:function(e){return W="useEffectEvent",m(),P(),Kh(e)}},n1={readContext:function(e){return x(),We(e)},use:function(e){return m(),iu(e)},useCallback:function(e,n){return W="useCallback",m(),P(),Ih(e,n)},useContext:function(e){return W="useContext",m(),P(),We(e)},useEffect:function(e,n){W="useEffect",m(),P(),zl(2048,ml,e,n);},useImperativeHandle:function(e,n,a){return W="useImperativeHandle",m(),P(),Fh(e,n,a)},useInsertionEffect:function(e,n){return W="useInsertionEffect",m(),P(),zl(4,yl,e,n)},useLayoutEffect:function(e,n){return W="useLayoutEffect",m(),P(),zl(4,oa,e,n)},useMemo:function(e,n){W="useMemo",m(),P();var a=q.H;q.H=oo;try{return Ph(e,n)}finally{q.H=a;}},useReducer:function(e,n,a){W="useReducer",m(),P();var u=q.H;q.H=oo;try{return Ff(e,n,a)}finally{q.H=u;}},useRef:function(){return W="useRef",m(),P(),be().memoizedState},useState:function(){W="useState",m(),P();var e=q.H;q.H=oo;try{return Ff(Pa)}finally{q.H=e;}},useDebugValue:function(){W="useDebugValue",m(),P();},useDeferredValue:function(e,n){return W="useDeferredValue",m(),P(),C3(e,n)},useTransition:function(){return W="useTransition",m(),P(),$3()},useSyncExternalStore:function(e,n,a){return W="useSyncExternalStore",m(),P(),Qh(e,n,a)},useId:function(){return W="useId",m(),P(),be().memoizedState},useFormState:function(e){return W="useFormState",m(),P(),Zh(e)},useActionState:function(e){return W="useActionState",m(),P(),Zh(e)},useOptimistic:function(e,n){return W="useOptimistic",m(),P(),S3(e,n)},useMemoCache:function(e){return m(),Oc(e)},useHostTransitionStatus:wc,useCacheRefresh:function(){return W="useCacheRefresh",P(),be().memoizedState},useEffectEvent:function(e){return W="useEffectEvent",m(),P(),Kh(e)}};var AM={},zM=new Set,DM=new Set,kM=new Set,CM=new Set,OM=new Set,RM=new Set,wM=new Set,UM=new Set,NM=new Set,$M=new Set;Object.freeze(AM);var Sx={enqueueSetState:function(e,n,a){e=e._reactInternals;var u=Il(e),r=nu(u);r.payload=n,a!=null&&(T2(a),r.callback=a),n=lu(e,r,u),n!==null&&(xo(u,"this.setState()",e),Pe(n,e,u),Vf(n,e,u));},enqueueReplaceState:function(e,n,a){e=e._reactInternals;var u=Il(e),r=nu(u);r.tag=xM,r.payload=n,a!=null&&(T2(a),r.callback=a),n=lu(e,r,u),n!==null&&(xo(u,"this.replaceState()",e),Pe(n,e,u),Vf(n,e,u));},enqueueForceUpdate:function(e,n){e=e._reactInternals;var a=Il(e),u=nu(a);u.tag=bM,n!=null&&(T2(n),u.callback=n),n=lu(e,u,a),n!==null&&(xo(a,"this.forceUpdate()",e),Pe(n,e,a),Vf(n,e,a));}},Ms=null,Ex=null,Mx=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),yn=false,HM={},LM={},YM={},BM={},_s=false,WM={},l1={},_x={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},jM=false,qM=null;qM=new Set;var vi=false,mn=false,Tx=false,XM=typeof WeakSet=="function"?WeakSet:Set,Un=null,Ts=null,As=null,pn=null,Cl=false,io=null,_n=false,Vd=8192,vR={getCacheForType:function(e){var n=We(fn),a=n.data.get(e);return a===void 0&&(a=e(),n.data.set(e,a)),a},cacheSignal:function(){return We(fn).controller.signal},getOwner:function(){return ea}};if(typeof Symbol=="function"&&Symbol.for){var Zd=Symbol.for;Zd("selector.component"),Zd("selector.has_pseudo_class"),Zd("selector.role"),Zd("selector.test_id"),Zd("selector.text");}var SR=[],ER=typeof WeakMap=="function"?WeakMap:Map,Nn=0,Tn=2,ia=4,Si=0,Jd=1,Jc=2,a1=3,Tu=4,o1=6,GM=5,se=Nn,Ae=null,Vt=null,Gt=0,Ol=0,i1=1,Kc=2,Kd=3,QM=4,Ax=5,Fd=6,u1=7,zx=8,Fc=9,ve=Ol,ua=null,Au=false,zs=false,Dx=false,jo=0,Ze=Si,zu=0,Du=0,kx=0,Rl=0,Ic=0,Id=null,pl=null,c1=false,r1=0,VM=0,ZM=300,s1=1/0,JM=500,Pd=null,nn=null,ku=null,f1=0,Cx=1,Ox=2,KM=3,Cu=0,FM=1,IM=2,PM=3,t8=4,d1=5,gn=0,Ou=null,Ds=null,uo=0,Rx=0,wx=-0,Ux=null,e8=null,n8=null,co=f1,l8=null,MR=50,t0=0,Nx=null,$x=false,h1=false,_R=50,Pc=0,e0=null,ks=false,y1=null,a8=false,o8=new Set,TR={},m1=null,Cs=null,Hx=false,Lx=false,p1=false,Yx=false,Ru=0,Bx={};((function(){for(var e=0;e<Fg.length;e++){var n=Fg[e],a=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),Ia(a,"on"+n);}Ia(N6,"onAnimationEnd"),Ia($6,"onAnimationIteration"),Ia(H6,"onAnimationStart"),Ia("dblclick","onDoubleClick"),Ia("focusin","onFocus"),Ia("focusout","onBlur"),Ia(eR,"onTransitionRun"),Ia(nR,"onTransitionStart"),Ia(lR,"onTransitionCancel"),Ia(L6,"onTransitionEnd");}))(),Gl("onMouseEnter",["mouseout","mouseover"]),Gl("onMouseLeave",["mouseout","mouseover"]),Gl("onPointerEnter",["pointerout","pointerover"]),Gl("onPointerLeave",["pointerout","pointerover"]),el("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),el("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),el("onBeforeInput",["compositionend","keypress","textInput","paste"]),el("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),el("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var n0="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Wx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(n0)),g1="_reactListening"+Math.random().toString(36).slice(2),i8=false,u8=false,x1=false,c8=false,b1=false,v1=false,r8=false,S1={},AR=/\r\n?/g,zR=/\u0000|\uFFFD/g,tr="http://www.w3.org/1999/xlink",jx="http://www.w3.org/XML/1998/namespace",DR="javascript:throw new Error('React form unexpectedly submitted.')",kR="suppressHydrationWarning",er="&",E1="/&",l0="$",a0="/$",wu="$?",nr="$~",Os="$!",CR="html",OR="body",RR="head",qx="F!",s8="F",f8="loading",wR="style",Ei=0,Rs=1,M1=2,Xx=null,Gx=null,d8={dialog:true,webview:true},Qx=null,o0=void 0,h8=typeof setTimeout=="function"?setTimeout:void 0,UR=typeof clearTimeout=="function"?clearTimeout:void 0,lr=-1,y8=typeof Promise=="function"?Promise:void 0,NR=typeof queueMicrotask=="function"?queueMicrotask:typeof y8<"u"?function(e){return y8.resolve(null).then(e).catch(xC)}:h8,Vx=null,ar=0,i0=1,m8=2,p8=3,wa=4,Ua=new Map,g8=new Set,Mi=pe.d;pe.d={f:function(){var e=Mi.f(),n=Gr();return e||n},r:function(e){var n=$t(e);n!==null&&n.tag===5&&n.type==="form"?U3(n):Mi.r(e);},D:function(e){Mi.D(e),z5("dns-prefetch",e,null);},C:function(e,n){Mi.C(e,n),z5("preconnect",e,n);},L:function(e,n,a){Mi.L(e,n,a);var u=ws;if(u&&e&&n){var r='link[rel="preload"][as="'+Sa(n)+'"]';n==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+Sa(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+Sa(a.imageSizes)+'"]')):r+='[href="'+Sa(e)+'"]';var s=r;switch(n){case "style":s=Zr(e);break;case "script":s=Jr(e);}Ua.has(s)||(e=Ft({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),Ua.set(s,e),u.querySelector(r)!==null||n==="style"&&u.querySelector(dd(s))||n==="script"&&u.querySelector(hd(s))||(n=u.createElement("link"),Xn(n,"link",e),_t(n),u.head.appendChild(n)));}},m:function(e,n){Mi.m(e,n);var a=ws;if(a&&e){var u=n&&typeof n.as=="string"?n.as:"script",r='link[rel="modulepreload"][as="'+Sa(u)+'"][href="'+Sa(e)+'"]',s=r;switch(u){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":s=Jr(e);}if(!Ua.has(s)&&(e=Ft({rel:"modulepreload",href:e},n),Ua.set(s,e),a.querySelector(r)===null)){switch(u){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(a.querySelector(hd(s)))return}u=a.createElement("link"),Xn(u,"link",e),_t(u),a.head.appendChild(u);}}},X:function(e,n){Mi.X(e,n);var a=ws;if(a&&e){var u=de(a).hoistableScripts,r=Jr(e),s=u.get(r);s||(s=a.querySelector(hd(r)),s||(e=Ft({src:e,async:true},n),(n=Ua.get(r))&&mg(e,n),s=a.createElement("script"),_t(s),Xn(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},u.set(r,s));}},S:function(e,n,a){Mi.S(e,n,a);var u=ws;if(u&&e){var r=de(u).hoistableStyles,s=Zr(e);n=n||"default";var d=r.get(s);if(!d){var y={loading:ar,preload:null};if(d=u.querySelector(dd(s)))y.loading=i0|wa;else {e=Ft({rel:"stylesheet",href:e,"data-precedence":n},a),(a=Ua.get(s))&&yg(e,a);var g=d=u.createElement("link");_t(g),Xn(g,"link",e),g._p=new Promise(function(b,R){g.onload=b,g.onerror=R;}),g.addEventListener("load",function(){y.loading|=i0;}),g.addEventListener("error",function(){y.loading|=m8;}),y.loading|=wa,xy(d,n,u);}d={type:"stylesheet",instance:d,count:1,state:y},r.set(s,d);}}},M:function(e,n){Mi.M(e,n);var a=ws;if(a&&e){var u=de(a).hoistableScripts,r=Jr(e),s=u.get(r);s||(s=a.querySelector(hd(r)),s||(e=Ft({src:e,async:true,type:"module"},n),(n=Ua.get(r))&&mg(e,n),s=a.createElement("script"),_t(s),Xn(s,"link",e),a.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},u.set(r,s));}}};var ws=typeof document>"u"?null:document,_1=null,$R=6e4,HR=800,LR=500,Zx=0,Jx=null,T1=null,or=PC,u0={$$typeof:Ro,Provider:null,Consumer:null,_currentValue:or,_currentValue2:or,_threadCount:0},x8="%c%s%c",b8="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",v8="",A1=" ",YR=Function.prototype.bind,S8=false,E8=null,M8=null,_8=null,T8=null,A8=null,z8=null,D8=null,k8=null,C8=null,O8=null;E8=function(e,n,a,u){n=t(e,n),n!==null&&(a=l(n.memoizedState,a,0,u),n.memoizedState=a,n.baseState=a,e.memoizedProps=Ft({},e.memoizedProps),a=nl(e,2),a!==null&&Pe(a,e,2));},M8=function(e,n,a){n=t(e,n),n!==null&&(a=c(n.memoizedState,a,0),n.memoizedState=a,n.baseState=a,e.memoizedProps=Ft({},e.memoizedProps),a=nl(e,2),a!==null&&Pe(a,e,2));},_8=function(e,n,a,u){n=t(e,n),n!==null&&(a=o(n.memoizedState,a,u),n.memoizedState=a,n.baseState=a,e.memoizedProps=Ft({},e.memoizedProps),a=nl(e,2),a!==null&&Pe(a,e,2));},T8=function(e,n,a){e.pendingProps=l(e.memoizedProps,n,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=nl(e,2),n!==null&&Pe(n,e,2);},A8=function(e,n){e.pendingProps=c(e.memoizedProps,n,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=nl(e,2),n!==null&&Pe(n,e,2);},z8=function(e,n,a){e.pendingProps=o(e.memoizedProps,n,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=nl(e,2),n!==null&&Pe(n,e,2);},D8=function(e){var n=nl(e,2);n!==null&&Pe(n,e,2);},k8=function(e){var n=Or(),a=nl(e,n);a!==null&&Pe(a,e,n);},C8=function(e){h=e;},O8=function(e){f=e;};var z1=true,D1=null,Kx=false,Uu=null,Nu=null,$u=null,c0=new Map,r0=new Map,Hu=[],BR="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),k1=null;if(My.prototype.render=Sg.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):I(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var u=n.current,r=Il(u);pg(u,r,a,n,null,null);},My.prototype.unmount=Sg.prototype.unmount=function(){var e=arguments;if(typeof e[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var n=e.containerInfo;(se&(Tn|ia))!==Nn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),pg(e.current,2,null,e,null,null),Gr(),n[hu]=null;}},My.prototype.unstable_scheduleHydration=function(e){if(e){var n=N();e={blockedOn:null,target:e,priority:n};for(var a=0;a<Hu.length&&n!==0&&n<Hu[a].priority;a++);Hu.splice(a,0,e),a===0&&W5(e);}},(function(){var e=Eg.version;if(e!=="19.2.5")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
|
|
237
|
-
- react: `+(e+`
|
|
238
|
-
- react-dom: 19.2.5
|
|
239
|
-
Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),pe.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error("Unable to find node on an unmounted component."):(e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e));return e=L(n),e=e!==null?gt(e):null,e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.5"};return e.overrideHookState=E8,e.overrideHookStateDeletePath=M8,e.overrideHookStateRenamePath=_8,e.overrideProps=T8,e.overridePropsDeletePath=A8,e.overridePropsRenamePath=z8,e.scheduleUpdate=D8,e.scheduleRetry=k8,e.setErrorHandler=C8,e.setSuspenseHandler=O8,e.scheduleRefresh=$,e.scheduleRoot=_,e.setRefreshHandler=X,e.getCurrentFiber=XC,Cr(e)})()&&Ho&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var R8=window.location.protocol;/^(https?|file):$/.test(R8)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(R8==="file:"?`
|
|
240
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold");}hp.createRoot=function(e,n){if(!I(e))throw Error("Target container is not a DOM element.");G5(e);var a=false,u="",r=j3,s=q3,d=X3;return n!=null&&(n.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===Oo&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
241
|
-
|
|
242
|
-
let root = createRoot(domContainer);
|
|
243
|
-
root.render(<App />);`),n.unstable_strictMode===true&&(a=true),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=U5(e,1,false,null,null,a,u,null,r,s,d,X5),e[hu]=n.current,ng(e),new Sg(n)},hp.hydrateRoot=function(e,n,a){if(!I(e))throw Error("Target container is not a DOM element.");G5(e),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=false,r="",s=j3,d=q3,y=X3,g=null;return a!=null&&(a.unstable_strictMode===true&&(u=true),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(s=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(g=a.formState)),n=U5(e,1,true,n,a??null,u,r,g,s,d,y,X5),n.context=N5(null),a=n.current,u=Il(a),u=Sc(u),r=nu(u),r.callback=null,lu(a,r,u),xo(u,"hydrateRoot()",null),a=u,n.current.lanes=a,Ji(n,a),ko(n),e[hu]=n.current,ng(e),new My(n)},hp.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var PD=gl((e$,VS)=>{function ID(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ID);}catch(t){console.error(t);}}}process.env.NODE_ENV==="production"?(ID(),VS.exports=KD()):VS.exports=FD();});var nk=Nt(Na());var Q8={name:"Mechanics",elements:[{id:1,type:"wedge",x1:100,y1:400,x2:500,y2:100,label:"M",value:"",color:"#0f172a",strokeWidth:2},{id:2,type:"block",x1:220,y1:260,x2:300,y2:300,label:"m",value:"",color:"#0f172a",strokeWidth:2,rotation:-37},{id:3,type:"vector",x1:260,y1:280,x2:260,y2:400,label:"mg",value:"",color:"#0f172a",strokeWidth:2},{id:4,type:"vector",x1:260,y1:280,x2:212,y2:216,label:"N",value:"",color:"#0f172a",strokeWidth:2},{id:5,type:"vector",x1:260,y1:280,x2:180,y2:340,label:"f",value:"",color:"#0f172a",strokeWidth:2},{id:6,type:"arc",x1:100,y1:400,x2:260,y2:280,label:"\u03B8",value:"",color:"#0f172a",strokeWidth:2},{id:7,type:"dashed",x1:260,y1:280,x2:308,y2:344,label:"",value:"",color:"#0f172a",strokeWidth:2},{id:8,type:"dashed",x1:260,y1:280,x2:340,y2:220,label:"",value:"",color:"#0f172a",strokeWidth:2},{id:9,type:"dimension",x1:100,y1:440,x2:500,y2:440,label:"L",value:"",color:"#0f172a",strokeWidth:2},{id:10,type:"axes",x1:60,y1:100,x2:60,y2:100,label:"",value:"",color:"#0f172a",strokeWidth:2}],toolCategories:[{name:"Sketch and forces",tools:[{id:"select",name:"Select"},{id:"string",name:"String / Line"},{id:"spring",name:"Spring"},{id:"vector",name:"Force Vector"},{id:"dashed",name:"Dashed Line"},{id:"dimension",name:"Dimension"},{id:"surface",name:"Rigid Surface"}]},{name:"Rigid bodies",tools:[{id:"wedge",name:"Wedge / Incline"},{id:"axes",name:"Axes / Frame"},{id:"block",name:"Mass / Block"},{id:"cart",name:"Cart / Vehicle"},{id:"particle",name:"Point Mass"},{id:"disk",name:"Disk / Sphere"},{id:"rod",name:"Rod / Beam"},{id:"pulley",name:"Pulley"}]},{name:"Points and labels",tools:[{id:"pivot",name:"Pivot / Hinge"},{id:"com",name:"Center of Mass"},{id:"arc",name:"Angle / Arc"},{id:"text",name:"Label"}]}]};var V8={name:"Circuit",elements:[{id:1,type:"resistor",x1:200,y1:300,x2:400,y2:200,label:"R1",value:"60\u03A9"},{id:2,type:"resistor",x1:200,y1:300,x2:400,y2:400,label:"R3",value:"300\u03A9"},{id:3,type:"resistor",x1:400,y1:200,x2:600,y2:300,label:"R2",value:"100\u03A9"},{id:4,type:"resistor",x1:400,y1:400,x2:600,y2:300,label:"R4",value:"500\u03A9"},{id:5,type:"battery",x1:400,y1:400,x2:400,y2:200,label:"50V",value:""},{id:6,type:"wire",x1:200,y1:300,x2:200,y2:100,label:"",value:""},{id:7,type:"wire",x1:200,y1:100,x2:340,y2:100,label:"",value:""},{id:8,type:"meter_v",x1:340,y1:100,x2:460,y2:100,label:"",value:""},{id:9,type:"wire",x1:460,y1:100,x2:600,y2:100,label:"",value:""},{id:10,type:"wire",x1:600,y1:100,x2:600,y2:300,label:"",value:""},{id:11,type:"text",x1:180,y1:300,x2:180,y2:300,label:"S",value:"",fontFamily:"sans-serif",fontWeight:"bold",fontSize:18},{id:12,type:"text",x1:400,y1:180,x2:400,y2:180,label:"P",value:"",fontFamily:"sans-serif",fontWeight:"bold",fontSize:18},{id:13,type:"text",x1:400,y1:420,x2:400,y2:420,label:"Q",value:"",fontFamily:"sans-serif",fontWeight:"bold",fontSize:18},{id:14,type:"text",x1:620,y1:300,x2:620,y2:300,label:"T",value:"",fontFamily:"sans-serif",fontWeight:"bold",fontSize:18}],toolCategories:[{name:"Circuit",tools:[{id:"select",name:"Select / Move"},{id:"wire",name:"Wire"},{id:"resistor",name:"Resistor"},{id:"capacitor",name:"Capacitor"},{id:"inductor",name:"Inductor"},{id:"diode",name:"Diode"},{id:"battery",name:"Battery"},{id:"meter_v",name:"Voltmeter"},{id:"meter_a",name:"Ammeter"},{id:"ground",name:"Ground"},{id:"text",name:"Text Label"}]}]};var Z8={name:"Thermodynamics",elements:[{id:101,type:"text",x1:50,y1:40,x2:50,y2:40,label:"1. First Law (Piston/Cylinder)",fontSize:20,color:"#1e293b"},{id:1,type:"piston_cylinder",x1:80,y1:100,x2:240,y2:260,compression:.6,showHeat:true,color:"#0ea5e9",strokeWidth:2,label:"Gas Expansion"},{id:102,type:"text",x1:380,y1:40,x2:380,y2:40,label:"2. Heat Engine & 2nd Law",fontSize:20,color:"#1e293b"},{id:2,type:"heat_engine",x1:440,y1:80,x2:540,y2:260,engineType:"engine",efficiency:.4,color:"#10b981",strokeWidth:2,label:"Carnot Engine"},{id:103,type:"text",x1:700,y1:40,x2:700,y2:40,label:"3. P-V Diagrams",fontSize:20,color:"#1e293b"},{id:3,type:"pv_axes",x1:720,y1:260,x2:920,y2:80,color:"#1e293b",strokeWidth:2,label:"P vs V",xLabel:"V",yLabel:"P"},{id:4,type:"carnot_cycle",x1:760,y1:120,x2:880,y2:220,color:"#ec4899",strokeWidth:2},{id:104,type:"text",x1:50,y1:340,x2:50,y2:340,label:"4. Kinetic Theory & Speeds",fontSize:20,color:"#1e293b"},{id:5,type:"maxwell_boltzmann",x1:80,y1:520,x2:320,y2:380,t1:300,t2:600,color:"#8b5cf6",strokeWidth:2,label:"f(v) vs v"},{id:6,type:"diatomic_gas",x1:400,y1:440,x2:500,y2:440,color:"#f59e0b",strokeWidth:2,label:"Diatomic (5 DOF)",showRotations:true},{id:105,type:"text",x1:700,y1:340,x2:700,y2:340,label:"5. Thermal Conduction",fontSize:20,color:"#1e293b"},{id:7,type:"conduction_rod",x1:700,y1:420,x2:900,y2:460,color:"#3b82f6",strokeWidth:2,label:"L, k, A"}],toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select"},{id:"point",name:"Node / Label"},{id:"line",name:"Line / Axis"},{id:"text",name:"Text Box"}]},{name:"Systems",tools:[{id:"piston_cylinder",name:"Piston & Gas"},{id:"heat_engine",name:"Heat Engine"},{id:"conduction_rod",name:"Thermal Rod"}]},{name:"PV Diagrams",tools:[{id:"pv_axes",name:"P-V Axes"},{id:"thermo_process",name:"Thermodynamic Path"},{id:"carnot_cycle",name:"Carnot Cycle"}]},{name:"KTG",tools:[{id:"maxwell_boltzmann",name:"Maxwell Dist."},{id:"diatomic_gas",name:"Diatomic DOF"},{id:"random_walk",name:"Random Walk"}]}]};var J8={name:"Optical",elements:[{id:1,type:"line",x1:50,y1:300,x2:750,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:2,type:"lens_convex",x1:400,y1:150,x2:400,y2:450,color:"#38bdf8",strokeWidth:2},{id:3,type:"point",x1:250,y1:300,x2:250,y2:300,label:"2F\u2081",color:"#64748b"},{id:4,type:"point",x1:325,y1:300,x2:325,y2:300,label:"F\u2081",color:"#64748b"},{id:5,type:"point",x1:475,y1:300,x2:475,y2:300,label:"F\u2082",color:"#64748b"},{id:6,type:"point",x1:550,y1:300,x2:550,y2:300,label:"2F\u2082",color:"#64748b"},{id:7,type:"vector",x1:250,y1:300,x2:250,y2:200,label:"O",color:"#10b981",strokeWidth:3},{id:8,type:"ray",x1:250,y1:200,x2:400,y2:200,color:"#ef4444",strokeWidth:2},{id:9,type:"ray",x1:400,y1:200,x2:625,y2:500,color:"#ef4444",strokeWidth:2},{id:10,type:"ray",x1:250,y1:200,x2:625,y2:450,color:"#ef4444",strokeWidth:2},{id:11,type:"vector",x1:550,y1:300,x2:550,y2:400,label:"I",color:"#f59e0b",strokeWidth:3,lineStyle:"dashed"},{id:12,type:"nucleus",x1:120,y1:500,x2:120,y2:500,label:"Atom",color:"#3b82f6",strokeWidth:2},{id:13,type:"photon",x1:160,y1:500,x2:280,y2:460,label:"\u03B3",color:"#8b5cf6",strokeWidth:2},{id:14,type:"slit_double",x1:600,y1:460,x2:600,y2:580,color:"#0f172a",strokeWidth:4},{id:15,type:"photon",x1:510,y1:520,x2:590,y2:520,label:"\u03BB",color:"#eab308",strokeWidth:2}],toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point/Node"},{id:"line",name:"Solid Line"},{id:"vector",name:"Vector/Object"},{id:"text",name:"Text Label"}]},{name:"Optics",tools:[{id:"ray",name:"Light Ray"},{id:"lens_convex",name:"Convex Lens"},{id:"lens_concave",name:"Concave Lens"},{id:"mirror_plane",name:"Plane Mirror"},{id:"mirror_concave",name:"Concave Mirror"},{id:"mirror_convex",name:"Convex Mirror"},{id:"prism",name:"Glass Prism"},{id:"glass_slab",name:"Glass Slab"}]},{name:"Modern Physics",tools:[{id:"photon",name:"Photon (Wavy)"},{id:"slit_double",name:"Double Slit"},{id:"slit_single",name:"Single Slit"},{id:"energy_level",name:"Energy Level"},{id:"nucleus",name:"Atom/Nucleus"}]}]};var K8={name:"Magnetism",elements:[{id:1,type:"pole_piece",x1:100,y1:80,x2:200,y2:300,label:"N",color:"#0f172a",strokeWidth:2},{id:2,type:"pole_piece",x1:500,y1:80,x2:600,y2:300,label:"S",color:"#0f172a",strokeWidth:2},{id:3,type:"b_field_line",x1:200,y1:120,x2:500,y2:120,label:"",color:"#10b981",strokeWidth:2},{id:4,type:"b_field_line",x1:200,y1:190,x2:500,y2:190,label:"B",color:"#10b981",strokeWidth:2,fontSize:18},{id:5,type:"b_field_line",x1:200,y1:260,x2:500,y2:260,label:"",color:"#10b981",strokeWidth:2},{id:6,type:"b_field_curve",x1:280,y1:80,x2:420,y2:80,curveHeight:50,label:"",color:"#10b981",strokeWidth:2},{id:7,type:"b_field_curve",x1:250,y1:80,x2:450,y2:80,curveHeight:110,label:"",color:"#10b981",strokeWidth:2},{id:8,type:"axes_3d",x1:200,y1:540,x2:300,y2:540,label:"",color:"#64748b",strokeWidth:2,fontSize:16},{id:9,type:"line",x1:200,y1:540,x2:200,y2:400,label:"",color:"#0ea5e9",strokeWidth:3},{id:10,type:"line",x1:200,y1:400,x2:320,y2:400,label:"i",color:"#0ea5e9",strokeWidth:3,fontSize:16},{id:11,type:"line",x1:320,y1:400,x2:320,y2:540,label:"",color:"#0ea5e9",strokeWidth:3},{id:12,type:"line",x1:320,y1:540,x2:200,y2:540,label:"",color:"#0ea5e9",strokeWidth:3},{id:13,type:"vector",x1:200,y1:540,x2:320,y2:620,label:"B",color:"#10b981",strokeWidth:2.5,fontSize:18}],toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point/Node"},{id:"line",name:"Solid Line"},{id:"vector",name:"Vector/Force"},{id:"text",name:"Text Label"}]},{name:"Magnetism",tools:[{id:"axes_3d",name:"3D Axes (x,y,z)"},{id:"angle",name:"Angle/Arc"},{id:"b_field_line",name:"B-Line (Straight)"},{id:"b_field_curve",name:"B-Line (Curved)"},{id:"bezier",name:"Bezier Curve"},{id:"pole_piece",name:"Pole Piece (N/S)"},{id:"b_region_in",name:"B-Field (IN)"},{id:"b_region_out",name:"B-Field (OUT)"},{id:"current_wire",name:"Wire (with I)"}]},{name:"Magnets & circuits",tools:[{id:"bar_magnet",name:"Bar Magnet"},{id:"coil",name:"Coil/Inductor"},{id:"charge_plus",name:"+ Charge"},{id:"charge_minus",name:"- Charge"},{id:"resistor",name:"Resistor"},{id:"capacitor",name:"Capacitor"},{id:"ac_source",name:"AC Source"},{id:"meter",name:"Galvano/Meter"},{id:"ground",name:"Ground"}]},{name:"Drawing",tools:[{id:"circle",name:"Circle/Loop"},{id:"axes",name:"2D Axes"}]}]};var s0=[{name:"Ch 34: Lens Combination (JEE Classic)",elements:[{id:1,type:"line",x1:50,y1:300,x2:850,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:2,type:"lens_convex",x1:300,y1:150,x2:300,y2:450,color:"#38bdf8",strokeWidth:2,label:"f\u2081 = +30cm"},{id:3,type:"lens_concave",x1:500,y1:150,x2:500,y2:450,color:"#38bdf8",strokeWidth:2,label:"f\u2082 = -10cm"},{id:4,type:"ray",x1:50,y1:200,x2:300,y2:200,color:"#ef4444",strokeWidth:2},{id:5,type:"ray",x1:50,y1:400,x2:300,y2:400,color:"#ef4444",strokeWidth:2},{id:6,type:"ray",x1:300,y1:200,x2:500,y2:266,color:"#ef4444",strokeWidth:2},{id:7,type:"ray",x1:300,y1:400,x2:500,y2:334,color:"#ef4444",strokeWidth:2},{id:8,type:"ray",x1:500,y1:266,x2:800,y2:266,color:"#ef4444",strokeWidth:2},{id:9,type:"ray",x1:500,y1:334,x2:800,y2:334,color:"#ef4444",strokeWidth:2},{id:10,type:"line",x1:500,y1:266,x2:600,y2:300,lineStyle:"dashed",color:"#ef4444",strokeWidth:2},{id:11,type:"line",x1:500,y1:334,x2:600,y2:300,lineStyle:"dashed",color:"#ef4444",strokeWidth:2},{id:12,type:"point",x1:600,y1:300,x2:600,y2:300,label:"Virtual Object",color:"#64748b"}]},{name:"Ch 34: Concave Mirror (Real Image)",elements:[{id:1,type:"line",x1:50,y1:300,x2:700,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:2,type:"mirror_concave",x1:600,y1:150,x2:600,y2:450,curveHeight:40,color:"#0f172a",strokeWidth:2},{id:3,type:"point",x1:400,y1:300,x2:400,y2:300,label:"C",color:"#64748b"},{id:4,type:"point",x1:500,y1:300,x2:500,y2:300,label:"F",color:"#64748b"},{id:5,type:"vector",x1:300,y1:300,x2:300,y2:200,label:"O",color:"#10b981",strokeWidth:3},{id:6,type:"ray",x1:300,y1:200,x2:600,y2:200,color:"#ef4444",strokeWidth:2},{id:7,type:"ray",x1:600,y1:200,x2:400,y2:400,color:"#ef4444",strokeWidth:2},{id:8,type:"ray",x1:300,y1:200,x2:400,y2:300,color:"#3b82f6",strokeWidth:2},{id:9,type:"ray",x1:400,y1:300,x2:600,y2:500,color:"#3b82f6",strokeWidth:2},{id:10,type:"ray",x1:600,y1:500,x2:450,y2:350,color:"#3b82f6",strokeWidth:2},{id:11,type:"vector",x1:450,y1:300,x2:450,y2:350,label:"I",color:"#f59e0b",strokeWidth:3}]},{name:"Ch 34: Apparent Depth (Refraction)",elements:[{id:1,type:"glass_slab",x1:50,y1:300,x2:850,y2:600,color:"#38bdf8",label:"Water (\u03BC = 4/3)",strokeWidth:2},{id:2,type:"point",x1:450,y1:500,x2:450,y2:500,label:"Real Object",color:"#0f172a"},{id:3,type:"ray",x1:450,y1:500,x2:450,y2:300,color:"#ef4444",strokeWidth:2},{id:4,type:"ray",x1:450,y1:300,x2:450,y2:100,color:"#ef4444",strokeWidth:2},{id:5,type:"ray",x1:450,y1:500,x2:550,y2:300,color:"#ef4444",strokeWidth:2},{id:6,type:"ray",x1:550,y1:300,x2:700,y2:150,color:"#ef4444",strokeWidth:2},{id:7,type:"line",x1:550,y1:300,x2:450,y2:400,lineStyle:"dashed",color:"#ef4444",strokeWidth:2},{id:8,type:"point",x1:450,y1:400,x2:450,y2:400,label:"Virtual Image",color:"#f59e0b"},{id:9,type:"line",x1:550,y1:200,x2:550,y2:400,lineStyle:"dashed",color:"#94a3b8",strokeWidth:1}]},{name:"Ch 35: Young's Double Slit (YDSE)",elements:[{id:1,type:"slit_double",x1:200,y1:200,x2:200,y2:400,color:"#0f172a",strokeWidth:4},{id:2,type:"line",x1:700,y1:100,x2:700,y2:500,color:"#0f172a",strokeWidth:4,label:"Screen"},{id:3,type:"line",x1:200,y1:300,x2:700,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:4,type:"point",x1:200,y1:250,x2:200,y2:250,label:"S\u2081",color:"#0f172a"},{id:5,type:"point",x1:200,y1:350,x2:200,y2:350,label:"S\u2082",color:"#0f172a"},{id:6,type:"point",x1:700,y1:150,x2:700,y2:150,label:"P (Maxima/Minima)",color:"#0f172a"},{id:7,type:"photon",x1:200,y1:250,x2:700,y2:150,color:"#eab308",strokeWidth:2},{id:8,type:"photon",x1:200,y1:350,x2:700,y2:150,color:"#eab308",strokeWidth:2},{id:9,type:"line",x1:200,y1:250,x2:240,y2:340,lineStyle:"dashed",color:"#ef4444",strokeWidth:2},{id:10,type:"text",x1:250,y1:370,x2:250,y2:370,label:"\u0394x = d sin \u03B8",color:"#ef4444",fontSize:18},{id:11,type:"text",x1:450,y1:280,x2:450,y2:280,label:"D",color:"#64748b",fontSize:20},{id:12,type:"line",x1:720,y1:300,x2:720,y2:150,lineStyle:"solid",color:"#64748b",strokeWidth:2},{id:13,type:"text",x1:740,y1:225,x2:740,y2:225,label:"y",color:"#64748b",fontSize:18}]},{name:"Ch 36: Single Slit Diffraction",elements:[{id:1,type:"slit_single",x1:300,y1:200,x2:300,y2:400,color:"#0f172a",strokeWidth:5,label:"Width a"},{id:2,type:"line",x1:700,y1:100,x2:700,y2:500,color:"#0f172a",strokeWidth:4},{id:3,type:"line",x1:100,y1:300,x2:700,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:4,type:"photon",x1:100,y1:220,x2:300,y2:220,color:"#8b5cf6",strokeWidth:2},{id:5,type:"photon",x1:100,y1:380,x2:300,y2:380,color:"#8b5cf6",strokeWidth:2},{id:6,type:"ray",x1:300,y1:220,x2:700,y2:300,color:"#ef4444",strokeWidth:2},{id:7,type:"ray",x1:300,y1:380,x2:700,y2:300,color:"#ef4444",strokeWidth:2},{id:8,type:"ray",x1:300,y1:220,x2:700,y2:150,color:"#3b82f6",strokeWidth:2},{id:9,type:"ray",x1:300,y1:380,x2:700,y2:150,color:"#3b82f6",strokeWidth:2},{id:10,type:"point",x1:700,y1:300,x2:700,y2:300,label:"Central Max",color:"#ef4444"},{id:11,type:"point",x1:700,y1:150,x2:700,y2:150,label:"1st Min (a sin \u03B8 = \u03BB)",color:"#3b82f6"}]}];var F8={name:"Light",elements:s0[0].elements,toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point/Node"},{id:"line",name:"Solid Line"},{id:"vector",name:"Vector/Object"},{id:"text",name:"Text Label"}]},{name:"Optics",tools:[{id:"ray",name:"Light Ray"},{id:"lens_convex",name:"Convex Lens"},{id:"lens_concave",name:"Concave Lens"},{id:"mirror_plane",name:"Plane Mirror"},{id:"mirror_concave",name:"Concave Mirror"},{id:"mirror_convex",name:"Convex Mirror"},{id:"prism",name:"Glass Prism"},{id:"glass_slab",name:"Glass Slab"}]},{name:"Modern Physics",tools:[{id:"photon",name:"Photon (Wavy)"},{id:"slit_double",name:"Double Slit"},{id:"slit_single",name:"Single Slit"},{id:"energy_level",name:"Energy Level"},{id:"nucleus",name:"Atom/Nucleus"}]}]};var I8={name:"Waves",elements:[{id:1,type:"line",x1:100,y1:300,x2:800,y2:300,color:"#64748b",strokeWidth:2},{id:2,type:"slit_double",x1:200,y1:200,x2:200,y2:400,color:"#0f172a",strokeWidth:4},{id:3,type:"photon",x1:200,y1:250,x2:700,y2:150,color:"#eab308",strokeWidth:2}],toolCategories:[{name:"Waves",tools:[{id:"select",name:"Select"},{id:"line",name:"Axis"},{id:"slit_double",name:"Double Slit"},{id:"photon",name:"Wave Ray"},{id:"text",name:"Text"}]}]};var P8={name:"Oscillations & Waves",elements:[{id:101,type:"text",x1:50,y1:40,x2:50,y2:40,label:"1. SHM Kinematics & Freeze-Frames",fontSize:20,color:"#1e293b"},{id:1,type:"strobe_shm",x1:120,y1:80,x2:120,y2:280,amplitude:60,loops:1,color:"#f59e0b",strokeWidth:2,label:"Motion"},{id:2,type:"shm_graph",x1:260,y1:180,x2:460,y2:180,amplitude:60,loops:1,graphType:"all",color:"#1e293b",strokeWidth:2,label:"x(t), v(t), a(t)"},{id:102,type:"text",x1:540,y1:40,x2:540,y2:40,label:"2. Oscillators & Projections",fontSize:20,color:"#1e293b"},{id:3,type:"pendulum",x1:600,y1:80,x2:660,y2:220,label:"m",color:"#0ea5e9",strokeWidth:2,size:15,showForces:true},{id:4,type:"phasor",x1:800,y1:150,x2:860,y2:90,label:"\u03C9t",color:"#8b5cf6",strokeWidth:2,showProjection:true},{id:103,type:"text",x1:50,y1:340,x2:50,y2:340,label:"3. Energy & Damped Systems",fontSize:20,color:"#1e293b"},{id:5,type:"energy_graph",x1:80,y1:460,x2:280,y2:460,amplitude:80,domain:"time",color:"#1e293b",strokeWidth:2,label:"U(t) & K(t)"},{id:6,type:"vane_liquid",x1:400,y1:380,x2:480,y2:380,color:"#64748b",strokeWidth:2,label:"Damping (b)"},{id:7,type:"spring",x1:440,y1:260,x2:440,y2:380,color:"#3b82f6",strokeWidth:2,coils:6},{id:104,type:"text",x1:440,y1:240,x2:440,y2:240,label:"Rigid Support",fontSize:14,color:"#64748b"},{id:8,type:"torsion_pendulum",x1:640,y1:320,x2:640,y2:480,color:"#ec4899",strokeWidth:2,label:"Torsion Pendulum"}],toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select"},{id:"point",name:"Point/Node"},{id:"line",name:"Line / Axis"},{id:"vector",name:"Vector"},{id:"text",name:"Text Label"}]},{name:"Oscillations",tools:[{id:"spring",name:"Spring"},{id:"mass_box",name:"Mass Block"},{id:"pendulum",name:"Pendulum"},{id:"torsion_pendulum",name:"Torsion Pendulum"},{id:"vane_liquid",name:"Damping Vane"},{id:"phasor",name:"Phasor"},{id:"damped_wave",name:"Damped SHM"}]},{name:"Graphs & Waves",tools:[{id:"sine_wave",name:"Sine Wave"},{id:"standing_wave",name:"Standing Wave"},{id:"wave_pulse",name:"Wave Pulse"},{id:"shm_graph",name:"SHM Kinematics"},{id:"energy_graph",name:"Energy (U/K)"},{id:"strobe_shm",name:"Strobe Motion"},{id:"wall",name:"Rigid Boundary"}]},{name:"Sound & Gases",tools:[{id:"speaker",name:"Speaker"},{id:"tuning_fork",name:"Tuning Fork"},{id:"wavefronts",name:"Wavefronts"},{id:"mach_cone",name:"Mach Cone"},{id:"beats_graph",name:"Beats Envelope"}]}]};var t_={name:"Rotation",elements:[{id:101,type:"text",x1:60,y1:40,x2:60,y2:40,label:"1. Center of Mass & 2D Collision",fontSize:20,color:"#1e293b"},{id:1,type:"point_mass",x1:80,y1:140,x2:80,y2:140,size:25,color:"#ef4444",label:"m\u2081"},{id:2,type:"vector",x1:80,y1:140,x2:180,y2:140,color:"#ef4444",label:"u\u2081",strokeWidth:2},{id:3,type:"point_mass",x1:240,y1:100,x2:240,y2:100,size:15,color:"#3b82f6",label:"m\u2082"},{id:4,type:"dashed_path",x1:180,y1:140,x2:320,y2:80,color:"#ef4444",strokeWidth:1.5},{id:5,type:"dashed_path",x1:240,y1:100,x2:340,y2:180,color:"#3b82f6",strokeWidth:1.5},{id:6,type:"com_indicator",x1:160,y1:120,x2:160,y2:120,color:"#10b981",size:15,label:"COM"},{id:7,type:"system_boundary",x1:40,y1:60,x2:360,y2:220,color:"#94a3b8",strokeWidth:1.5},{id:102,type:"text",x1:560,y1:40,x2:560,y2:40,label:"2. Rigid Body Rotation & Torque",fontSize:20,color:"#1e293b"},{id:8,type:"pivot",x1:480,y1:140,x2:480,y2:140,color:"#64748b",size:25},{id:9,type:"uniform_rod",x1:480,y1:140,x2:740,y2:180,color:"#f59e0b",strokeWidth:12,label:"L, M"},{id:10,type:"vector",x1:740,y1:180,x2:740,y2:260,color:"#ef4444",label:"mg",strokeWidth:2},{id:11,type:"curve_arrow",x1:480,y1:140,x2:540,y2:200,color:"#8b5cf6",strokeWidth:2,label:"\u03B1"},{id:103,type:"text",x1:60,y1:300,x2:60,y2:300,label:"3. Rolling on Inclined Plane",fontSize:20,color:"#1e293b"},{id:12,type:"inclined_wedge",x1:60,y1:360,x2:360,y2:520,color:"#64748b",strokeWidth:2,label:"\u03B8"},{id:13,type:"rolling_body",x1:160,y1:390,x2:200,y2:390,color:"#3b82f6",strokeWidth:2,label:"M, R",showVelocity:true,showOmega:true},{id:14,type:"vector",x1:160,y1:410,x2:110,y2:385,color:"#ef4444",label:"f_s",strokeWidth:2},{id:104,type:"text",x1:560,y1:300,x2:560,y2:300,label:"4. Systems & Angular Momentum",fontSize:20,color:"#1e293b"},{id:15,type:"rocket",x1:500,y1:500,x2:500,y2:380,color:"#3b82f6",strokeWidth:2,label:"v(t)"},{id:16,type:"vector",x1:500,y1:500,x2:500,y2:560,color:"#f97316",strokeWidth:2,label:"u_rel dm/dt"},{id:17,type:"pulley",x1:720,y1:360,x2:760,y2:360,color:"#64748b",strokeWidth:2},{id:18,type:"block_mass",x1:660,y1:460,x2:700,y2:500,color:"#0ea5e9",label:"m\u2081"},{id:19,type:"block_mass",x1:740,y1:400,x2:780,y2:440,color:"#0ea5e9",label:"m\u2082"},{id:20,type:"line",x1:680,y1:460,x2:680,y2:360,color:"#1e293b",strokeWidth:1.5},{id:21,type:"line",x1:760,y1:400,x2:760,y2:360,color:"#1e293b",strokeWidth:1.5}],toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select"},{id:"line",name:"Line / Axis"},{id:"vector",name:"Vector"},{id:"text",name:"Text Label"}]},{name:"Mass & Momentum",tools:[{id:"point_mass",name:"Point Mass"},{id:"block_mass",name:"Block/Mass"},{id:"com_indicator",name:"Center of Mass"},{id:"system_boundary",name:"System Bound"},{id:"dashed_path",name:"Trajectory"},{id:"rocket",name:"Rocket (Varying)"}]},{name:"Rigid Bodies",tools:[{id:"uniform_rod",name:"Uniform Rod"},{id:"solid_disk",name:"Solid Disk/Sphere"},{id:"hoop_ring",name:"Hoop/Ring"},{id:"rolling_body",name:"Rolling Object"}]},{name:"Mechanics",tools:[{id:"pivot",name:"Pivot / Hinge"},{id:"inclined_wedge",name:"Inclined Plane"},{id:"pulley",name:"Pulley System"},{id:"spring",name:"Spring"},{id:"curve_arrow",name:"Angular Vector (\u03C9/\u03C4)"}]}]};var s7=[{id:1,type:"capacitor",x1:260,y1:200,x2:460,y2:200,label:"C = 10\u03BCF",color:"#0f172a",strokeWidth:3,fontSize:18},{id:2,type:"line",x1:260,y1:200,x2:260,y2:400,color:"#0f172a",strokeWidth:2},{id:3,type:"line",x1:460,y1:200,x2:460,y2:400,color:"#0f172a",strokeWidth:2},{id:4,type:"capacitor",x1:260,y1:400,x2:460,y2:400,label:"V = 12V",color:"#0f172a",strokeWidth:3,fontSize:18},{id:5,type:"ground",x1:460,y1:400,x2:460,y2:460,label:"",color:"#0f172a",strokeWidth:2},{id:6,type:"charge_plus",x1:340,y1:180,x2:340,y2:180,label:"+Q",color:"#ef4444",strokeWidth:2,fontSize:16},{id:7,type:"charge_minus",x1:380,y1:180,x2:380,y2:180,label:"-Q",color:"#3b82f6",strokeWidth:2,fontSize:16},{id:8,type:"vector",x1:345,y1:190,x2:375,y2:190,label:"",color:"#ef4444",strokeWidth:1.5,lineStyle:"dashed"},{id:9,type:"vector",x1:345,y1:210,x2:375,y2:210,label:"",color:"#ef4444",strokeWidth:1.5,lineStyle:"dashed"},{id:10,type:"charge_plus",x1:600,y1:300,x2:600,y2:300,label:"+q",color:"#ef4444",strokeWidth:2,fontSize:18},{id:11,type:"charge_minus",x1:800,y1:300,x2:800,y2:300,label:"-q",color:"#3b82f6",strokeWidth:2,fontSize:18},{id:12,type:"vector",x1:620,y1:300,x2:780,y2:300,label:"E",color:"#94a3b8",strokeWidth:2,fontSize:18},{id:13,type:"circle",x1:600,y1:300,x2:660,y2:300,label:"",color:"#ef4444",strokeWidth:1.5,lineStyle:"dashed"}],e_={name:"Graph",elements:s7,toolCategories:[{name:"Basic",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point/Node"},{id:"line",name:"Solid Line"},{id:"dashed_line",name:"Dashed Line"},{id:"vector",name:"Vector/Arrow"},{id:"angle",name:"Angle/Vector"},{id:"axes",name:"X-Y Axes"},{id:"text",name:"Text Label"}]},{name:"Physics",tools:[{id:"charge_plus",name:"+ Charge"},{id:"charge_minus",name:"- Charge"},{id:"capacitor",name:"Capacitor"},{id:"ground",name:"Ground"}]},{name:"Shapes",tools:[{id:"rectangle",name:"Rectangle"},{id:"circle",name:"Circle"},{id:"ellipse",name:"Ellipse"}]},{name:"Curves",tools:[{id:"parabola_v",name:"Parabola (V)"},{id:"parabola_h",name:"Parabola (H)"},{id:"hyperbola",name:"Hyperbola"},{id:"modulus",name:"Modulus |x|"},{id:"step_function",name:"Step [x]"},{id:"shaded_area",name:"Area Graph"},{id:"exponential",name:"Exponential"},{id:"logarithmic",name:"Logarithmic"},{id:"sine_wave",name:"Sine Wave"}]},{name:"Mechanical",tools:[{id:"spring",name:"Spring"}]}]};var n_={name:"Electrostatics",elements:[{id:1,type:"charge_pos",x1:160,y1:160,x2:160,y2:160,label:"+q",color:"#ef4444",strokeWidth:2,fontSize:18},{id:2,type:"gaussian_sphere",x1:160,y1:160,x2:260,y2:160,color:"#10b981",strokeWidth:2,label:"Gaussian Sphere"},{id:3,type:"vector",x1:160,y1:160,x2:280,y2:160,color:"#ef4444",strokeWidth:2,label:"E"},{id:4,type:"vector",x1:160,y1:160,x2:160,y2:40,color:"#ef4444",strokeWidth:2},{id:5,type:"vector",x1:160,y1:160,x2:40,y2:160,color:"#ef4444",strokeWidth:2},{id:6,type:"vector",x1:160,y1:160,x2:160,y2:280,color:"#ef4444",strokeWidth:2},{id:7,type:"text",x1:160,y1:320,x2:160,y2:320,label:"Point Charge Field",color:"#334155",fontSize:18},{id:8,type:"charged_plate_pos",x1:500,y1:60,x2:500,y2:360,color:"#ef4444",strokeWidth:2,label:"+\u03BB (Line Charge)"},{id:9,type:"gaussian_cylinder",x1:500,y1:120,x2:500,y2:300,color:"#10b981",strokeWidth:2,curveHeight:60,label:"Gaussian Cylinder"},{id:10,type:"vector",x1:500,y1:210,x2:620,y2:210,color:"#ef4444",strokeWidth:2,label:"E"},{id:11,type:"vector",x1:500,y1:210,x2:380,y2:210,color:"#ef4444",strokeWidth:2},{id:12,type:"text",x1:500,y1:400,x2:500,y2:400,label:"Cylindrical Symmetry",color:"#334155",fontSize:18},{id:13,type:"charged_plate_pos",x1:760,y1:100,x2:960,y2:100,color:"#ef4444",strokeWidth:2},{id:14,type:"charged_plate_neg",x1:760,y1:300,x2:960,y2:300,color:"#3b82f6",strokeWidth:2},{id:15,type:"vector",x1:800,y1:100,x2:800,y2:300,color:"#ef4444",strokeWidth:2},{id:16,type:"vector",x1:860,y1:100,x2:860,y2:300,color:"#ef4444",strokeWidth:2,label:"Uniform E-Field"},{id:17,type:"vector",x1:920,y1:100,x2:920,y2:300,color:"#ef4444",strokeWidth:2},{id:18,type:"text",x1:860,y1:340,x2:860,y2:340,label:"Parallel Plates",color:"#334155",fontSize:18},{id:19,type:"dipole",x1:100,y1:500,x2:260,y2:500,color:"#64748b",strokeWidth:2,label:"Electric Dipole (p)"},{id:20,type:"vector",x1:100,y1:500,x2:260,y2:500,color:"#f59e0b",strokeWidth:2,label:"p"}],toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point"},{id:"line",name:"Line"},{id:"vector",name:"Vector"},{id:"text",name:"Text Label"}]},{name:"Electrostatics",tools:[{id:"charge_pos",name:"+ Charge"},{id:"charge_neg",name:"- Charge"},{id:"dipole",name:"Dipole"},{id:"charged_plate_pos",name:"+ Plate"},{id:"charged_plate_neg",name:"- Plate"},{id:"gaussian_sphere",name:"Gauss Sphere"},{id:"gaussian_cylinder",name:"Gauss Cyl"}]},{name:"Optics",tools:[{id:"ray",name:"Light Ray"},{id:"lens_convex",name:"Convex Lens"},{id:"lens_concave",name:"Concave Lens"},{id:"mirror_plane",name:"Plane Mirror"}]},{name:"Modern Phys",tools:[{id:"photon",name:"Photon"},{id:"slit_double",name:"Double Slit"},{id:"energy_level",name:"Energy Lvl"}]}]};var l_={name:"Chemistry",elements:[{id:1,type:"benzene",x1:150,y1:210,x2:150,y2:210,label:"",value:""},{id:2,type:"text",x1:240,y1:210,x2:240,y2:210,label:"+",value:""},{id:3,type:"atom",x1:285,y1:210,x2:285,y2:210,label:"Cl",value:""},{id:4,type:"single_bond",x1:300,y1:210,x2:330,y2:210,label:"",value:""},{id:5,type:"atom",x1:345,y1:210,x2:345,y2:210,label:"Cl",value:""},{id:6,type:"reaction_arrow",x1:400,y1:210,x2:520,y2:210,label:"FeCl3",value:"Dark"},{id:7,type:"benzene",x1:600,y1:210,x2:600,y2:210,label:"",value:""},{id:8,type:"single_bond",x1:600,y1:180,x2:600,y2:120,label:"",value:""},{id:9,type:"atom",x1:600,y1:105,x2:600,y2:105,label:"Cl",value:""},{id:10,type:"text",x1:690,y1:210,x2:690,y2:210,label:"+",value:""},{id:11,type:"atom",x1:750,y1:210,x2:750,y2:210,label:"HCl",value:""}],toolCategories:[{name:"Chemistry",tools:[{id:"select",name:"Select/Move"},{id:"single_bond",name:"Single Bond"},{id:"double_bond",name:"Double Bond"},{id:"triple_bond",name:"Triple Bond"},{id:"wedge_bond",name:"Wedge (Up)"},{id:"dash_bond",name:"Dash (Down)"}]},{name:"Arrows",tools:[{id:"curved_arrow",name:"Mechanism"},{id:"reaction_arrow",name:"Reaction"},{id:"equilibrium_arrow",name:"Equilibrium"},{id:"resonance_arrow",name:"Resonance"}]},{name:"Rings",tools:[{id:"benzene",name:"Benzene"},{id:"cyclohexane",name:"Cyclohexane"},{id:"cyclopentane",name:"Cyclopentane"},{id:"cyclobutane",name:"Cyclobutane"},{id:"cyclopropane",name:"Cyclopropane"}]},{name:"Symbols",tools:[{id:"atom",name:"Atom/Group"},{id:"charge_plus",name:"Pos. Charge"},{id:"charge_minus",name:"Neg. Charge"},{id:"radical",name:"Radical"},{id:"lone_pair",name:"Lone Pair"},{id:"text",name:"Plain Text"}]}]};var a_={name:"Mechanical",elements:[{id:1,type:"wedge",x1:100,y1:400,x2:500,y2:100,label:"M"},{id:2,type:"block",x1:220,y1:260,x2:300,y2:300,label:"m"},{id:3,type:"arc",x1:100,y1:400,x2:260,y2:280,label:"\u03B8"}],toolCategories:[{name:"Mechanical",tools:[{id:"select",name:"Select"},{id:"wedge",name:"Wedge"},{id:"block",name:"Block"},{id:"vector",name:"Vector"},{id:"arc",name:"Arc"},{id:"dashed",name:"Dashed"},{id:"dimension",name:"Dimension"},{id:"axes",name:"Axes"}]}]};var qo={mechanics:Q8,circuit:V8,thermo:Z8,optical:J8,magnetism:K8,light:F8,waves:I8,waveOscillation:P8,rotation:t_,graph:e_,electrostatics:n_,chemistry:l_,mechanical:a_};var Jn=Nt(Na());var Sl=Nt(Na());var g_=Nt(Na());var ir=(t,l=20)=>Math.round(t/l)*l,rt=(t,l,o,i)=>Math.hypot(o-t,i-l),At=(t,l,o,i)=>Math.atan2(i-l,o-t)*180/Math.PI,$n=(t,l,o,i)=>{let c=Math.min(t,o),f=Math.min(l,i),h=Math.max(t,o),m=Math.max(l,i);return {minX:c,minY:f,maxX:h,maxY:m,width:Math.max(1,h-c),height:Math.max(1,m-f)}},R1=(t,l)=>{let o=t.getScreenCTM();return o?{x:(l.clientX-o.e)/o.a,y:(l.clientY-o.f)/o.d}:{x:0,y:0}};var o_=new Map,H=(t,l)=>{o_.set(t,l);},ob=t=>o_.get(t);var xl=Nt(Zt()),Xo=t=>t.color||"#0f172a",r_=t=>t.strokeWidth||2,N1=t=>t.fontSize||16;H("point",t=>(0, xl.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, xl.jsx)("circle",{cx:"0",cy:"0",r:3,fill:Xo(t)}),t.label&&(0, xl.jsx)("text",{x:"8",y:"-8",fontSize:N1(t),fill:Xo(t),children:String(t.label)})]}));H("text",t=>(0, xl.jsx)("text",{x:t.x1,y:t.y1,dominantBaseline:"central",textAnchor:"middle",fill:Xo(t),fontSize:N1(t),fontFamily:t.fontFamily||"serif",fontWeight:t.fontWeight||"normal",children:String(t.label||t.value||"")}));var $s=(t,l=false)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=At(t.x1,t.y1,t.x2,t.y2),c=t.lineStyle==="dashed"||t.type==="dashed"||t.type==="dashed_line"?"6 6":t.lineStyle==="dotted"?"2 4":void 0;return (0, xl.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, xl.jsx)("line",{x1:0,y1:0,x2:o,y2:0,stroke:Xo(t),strokeWidth:r_(t),strokeDasharray:c,strokeLinecap:"round"}),l&&(0, xl.jsx)("polygon",{points:`${o},0 ${o-12},-6 ${o-12},6`,fill:Xo(t)}),t.label&&(0, xl.jsx)("text",{x:o/2,y:-10,fontSize:N1(t),fill:Xo(t),textAnchor:"middle",children:String(t.label)})]})};H("line",t=>$s(t));H("dashed",t=>$s({...t,lineStyle:"dashed"}));H("dashed_line",t=>$s({...t,lineStyle:"dashed"}));H("vector",t=>$s(t,true));H("ray",t=>$s(t,true));H("wire",t=>$s(t));H("table_edge",t=>{let l=Math.min(t.x1,t.x2),o=Math.max(t.x1,t.x2),i=Math.min(t.y1,t.y2),c=Math.max(t.y1,t.y2),f=Math.max(1,o-l),h=Math.max(1,c-i),m=[],x=Math.max(2,Math.floor(f/12)),E=Math.max(2,Math.floor(h/12));for(let T=0;T<=x;T++){let M=l+T/x*f;m.push((0, xl.jsx)("line",{x1:M,y1:i,x2:M-8,y2:i+10,stroke:Xo(t),strokeWidth:1},`h-${T}`));}for(let T=0;T<=E;T++){let M=i+T/E*h;m.push((0, xl.jsx)("line",{x1:o,y1:M,x2:o-10,y2:M+8,stroke:Xo(t),strokeWidth:1},`v-${T}`));}return (0, xl.jsxs)("g",{children:[(0, xl.jsx)("polyline",{points:`${l},${i} ${o},${i} ${o},${c}`,fill:"none",stroke:Xo(t),strokeWidth:r_(t)}),m,t.label&&(0, xl.jsx)("text",{x:l+f/2,y:i-10,fill:Xo(t),textAnchor:"middle",fontSize:N1(t),children:String(t.label)})]})});var at=Nt(Zt()),yt=t=>t.color||"#0f172a",le=t=>t.strokeWidth||2,$a=t=>t.fillOpacity??.2;H("slab",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=t.curveHeight??20;return (0, at.jsxs)("g",{children:[(0, at.jsx)("path",{d:`M ${l.minX} ${l.minY} L ${l.maxX} ${l.minY} L ${l.maxX} ${l.maxY} L ${l.minX} ${l.maxY} Z`,fill:yt(t),fillOpacity:$a(t),stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("path",{d:`M ${l.minX} ${l.minY} L ${l.minX+o} ${l.minY-o} L ${l.maxX+o} ${l.minY-o} L ${l.maxX} ${l.minY} Z`,fill:yt(t),fillOpacity:Math.max(0,$a(t)-.1),stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("path",{d:`M ${l.maxX} ${l.minY} L ${l.maxX+o} ${l.minY-o} L ${l.maxX+o} ${l.maxY-o} L ${l.maxX} ${l.maxY} Z`,fill:yt(t),fillOpacity:Math.min(1,$a(t)+.1),stroke:yt(t),strokeWidth:le(t)})]})});H("sphere",t=>{let l=Math.max(4,rt(t.x1,t.y1,t.x2,t.y2));return (0, at.jsx)("circle",{cx:t.x1,cy:t.y1,r:l,fill:yt(t),fillOpacity:$a(t),stroke:yt(t),strokeWidth:le(t)})});H("shell",t=>{let l=Math.max(10,rt(t.x1,t.y1,t.x2,t.y2)),o=t.curveHeight??10,i=Math.max(1,l-o);return (0, at.jsx)("path",{d:`M ${t.x1-l} ${t.y1} A ${l} ${l} 0 1 0 ${t.x1+l} ${t.y1} A ${l} ${l} 0 1 0 ${t.x1-l} ${t.y1} Z M ${t.x1-i} ${t.y1} A ${i} ${i} 0 1 1 ${t.x1+i} ${t.y1} A ${i} ${i} 0 1 1 ${t.x1-i} ${t.y1} Z`,fill:yt(t),fillOpacity:$a(t),fillRule:"evenodd",stroke:yt(t),strokeWidth:le(t)})});H("cylinder",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.curveHeight??20;return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, at.jsx)("path",{d:`M 0 ${-i} L ${l} ${-i} A 10 ${i} 0 0 1 ${l} ${i} L 0 ${i} Z`,fill:yt(t),fillOpacity:$a(t)}),(0, at.jsx)("path",{d:`M 0 ${-i} L ${l} ${-i} M 0 ${i} L ${l} ${i}`,fill:"none",stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("ellipse",{cx:l,cy:0,rx:10,ry:i,fill:yt(t),fillOpacity:$a(t),stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("ellipse",{cx:0,cy:0,rx:10,ry:i,fill:"none",stroke:yt(t),strokeWidth:le(t),strokeDasharray:"2 4"})]})});H("ladder",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.curveHeight??10,c=[];for(let f=15;f<l-10;f+=15)c.push((0, at.jsx)("line",{x1:f,y1:-i,x2:f,y2:i,stroke:yt(t),strokeWidth:Math.max(1,le(t)-1)},f));return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, at.jsx)("line",{x1:0,y1:-i,x2:l,y2:-i,stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("line",{x1:0,y1:i,x2:l,y2:i,stroke:yt(t),strokeWidth:le(t)}),c]})});H("spring",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=Math.max(0,Math.floor(l/12)),c="M 0 0";for(let f=0;f<i;f++)c+=` L ${f*12+3} 8 L ${f*12+9} -8`;return c+=` L ${l} 0`,(0, at.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:(0, at.jsx)("path",{d:c,fill:"none",stroke:yt(t),strokeWidth:le(t),strokeLinejoin:"round"})})});H("rod",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2);return (0, at.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:(0, at.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:yt(t),strokeWidth:Math.max(4,le(t)),strokeLinecap:"round"})})});H("arc_arrow",t=>{let l=Math.max(8,rt(t.x1,t.y1,t.x2,t.y2));return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, at.jsx)("path",{d:`M ${l} 0 A ${l} ${l} 0 0 0 ${-l} 0`,fill:"none",stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("polygon",{points:`${-l},2 ${-l-6},-10 ${-l+6},-10`,fill:yt(t)})]})});H("lens_convex",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=l.minX+l.width/2;return (0, at.jsx)("ellipse",{cx:o,cy:l.minY+l.height/2,rx:Math.max(6,l.width/2),ry:l.height/2,fill:yt(t),fillOpacity:Math.max(.15,$a(t)),stroke:yt(t),strokeWidth:le(t)})});H("lens_concave",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=l.minX+l.width/2,i=Math.max(6,l.width/2),c=l.height/2;return (0, at.jsx)("path",{d:`M ${o-i} ${l.minY} Q ${o-i*.2} ${l.minY+c} ${o-i} ${l.maxY} M ${o+i} ${l.minY} Q ${o+i*.2} ${l.minY+c} ${o+i} ${l.maxY}`,fill:"none",stroke:yt(t),strokeWidth:le(t)})});H("mirror_concave",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=t.curveHeight??40;return (0, at.jsx)("path",{d:`M ${l.minX} ${l.minY} Q ${l.maxX+o} ${l.minY+l.height/2} ${l.minX} ${l.maxY}`,fill:"none",stroke:yt(t),strokeWidth:le(t)})});H("mirror_convex",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=t.curveHeight??40,i=l.minY+l.height/2;return (0, at.jsx)("path",{d:`M ${l.minX} ${l.minY} Q ${l.minX-o} ${i} ${l.minX} ${l.maxY}`,fill:"none",stroke:yt(t),strokeWidth:le(t)})});H("prism",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=-l*.866,c=t.fontSize||16;return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, at.jsx)("polygon",{points:`0,0 ${l},0 ${l/2},${i}`,fill:yt(t),fillOpacity:Math.max(.15,$a(t)),stroke:yt(t),strokeWidth:le(t),strokeLinejoin:"round"}),t.label&&(0, at.jsx)("text",{x:l/2,y:i-10,fontSize:c,fill:yt(t),textAnchor:"middle",children:String(t.label)})]})});H("slit_single",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=16,c=Math.max(4,le(t)),f=t.fontSize||16;return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, at.jsx)("line",{x1:0,y1:0,x2:l/2-i/2,y2:0,stroke:yt(t),strokeWidth:c,strokeLinecap:"square"}),(0, at.jsx)("line",{x1:l/2+i/2,y1:0,x2:l,y2:0,stroke:yt(t),strokeWidth:c,strokeLinecap:"square"}),t.label&&(0, at.jsx)("text",{x:l/2,y:-14,fontSize:f,fill:yt(t),textAnchor:"middle",children:String(t.label)})]})});H("slit_double",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=l.minX+l.width/2;return (0, at.jsxs)("g",{children:[(0, at.jsx)("line",{x1:o-6,y1:l.minY,x2:o-6,y2:l.maxY,stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("line",{x1:o+6,y1:l.minY,x2:o+6,y2:l.maxY,stroke:yt(t),strokeWidth:le(t)})]})});H("photon",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=6,c=Math.max(3,Math.floor(l/24)),f=l/(c*2),h="M 0 0 ";for(let m=0;m<c*2;m++){let x=(m+1)*f,E=m%2===0?-i:i;h+=`L ${x} ${E} `;}return h+=`L ${l} 0`,(0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, at.jsx)("path",{d:h,fill:"none",stroke:yt(t),strokeWidth:le(t)}),t.label&&(0, at.jsx)("text",{x:l/2,y:-12,textAnchor:"middle",fill:yt(t),children:String(t.label)})]})});H("glass_slab",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2);return (0, at.jsx)("rect",{x:l.minX,y:l.minY,width:l.width,height:l.height,fill:yt(t),fillOpacity:Math.max(.1,$a(t)),stroke:yt(t),strokeWidth:le(t)})});H("pipe",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=t.curveHeight??l.height*.35;return (0, at.jsx)("path",{d:`M ${l.minX} ${l.minY} C ${l.minX+l.width*.3} ${l.minY}, ${l.minX+l.width*.3} ${l.minY+o}, ${l.minX+l.width*.5} ${l.minY+o} C ${l.minX+l.width*.7} ${l.minY+o}, ${l.minX+l.width*.7} ${l.minY}, ${l.maxX} ${l.minY} L ${l.maxX} ${l.maxY} C ${l.minX+l.width*.7} ${l.maxY}, ${l.minX+l.width*.7} ${l.maxY-o}, ${l.minX+l.width*.5} ${l.maxY-o} C ${l.minX+l.width*.3} ${l.maxY-o}, ${l.minX+l.width*.3} ${l.maxY}, ${l.minX} ${l.maxY} Z`,fill:yt(t),fillOpacity:$a(t),stroke:yt(t),strokeWidth:le(t)})});H("liquid",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2);return (0, at.jsxs)("g",{children:[(0, at.jsx)("path",{d:`M ${l.minX} ${l.minY} Q ${l.minX+l.width/2} ${l.minY+10} ${l.maxX} ${l.minY} L ${l.maxX} ${l.maxY} L ${l.minX} ${l.maxY} Z`,fill:yt(t),fillOpacity:Math.max(.2,$a(t))}),(0, at.jsx)("path",{d:`M ${l.minX} ${l.minY} Q ${l.minX+l.width/2} ${l.minY+10} ${l.maxX} ${l.minY}`,fill:"none",stroke:yt(t),strokeWidth:2})]})});H("orbit",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2);return (0, at.jsx)("ellipse",{cx:l.minX+l.width/2,cy:l.minY+l.height/2,rx:l.width/2,ry:l.height/2,fill:"none",stroke:yt(t),strokeWidth:le(t),strokeDasharray:"3 3"})});H("pole_piece",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=String(t.label||"N"),c=o.toUpperCase().includes("N")?"#ef4444":"#3b82f6",f=Math.min(l.width,l.height)*.5+10;return (0, at.jsxs)("g",{children:[(0, at.jsx)("rect",{x:l.minX,y:l.minY,width:l.width,height:l.height,fill:c,fillOpacity:.2,stroke:yt(t),strokeWidth:le(t),rx:"4"}),(0, at.jsx)("text",{x:l.minX+l.width/2,y:l.minY+l.height/2,textAnchor:"middle",dominantBaseline:"central",fill:yt(t),fontWeight:"bold",fontSize:f,children:o})]})});H("b_field_line",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.fontSize||18,c=l/2;return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, at.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:yt(t),strokeWidth:le(t),strokeLinecap:"round"}),(0, at.jsx)("polygon",{points:`${c+6},0 ${c-6},-5 ${c-6},5`,fill:yt(t)}),t.label?(0, at.jsx)("text",{x:c,y:-10,textAnchor:"middle",fill:yt(t),fontSize:i,children:String(t.label)}):null]})});H("b_field_curve",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.curveHeight!==void 0?t.curveHeight:l*.4,c=t.fontSize||18,f=-i;return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, at.jsx)("path",{d:`M 0 0 Q ${l/2} ${-i*2} ${l} 0`,fill:"none",stroke:yt(t),strokeWidth:le(t),strokeLinecap:"round"}),(0, at.jsx)("polygon",{points:`${l/2+6},${f} ${l/2-6},${f-5} ${l/2-6},${f+5}`,fill:yt(t)}),t.label?(0, at.jsx)("text",{x:l/2,y:f-15,textAnchor:"middle",fill:yt(t),fontSize:c,children:String(t.label)}):null]})});H("axes_3d",t=>(0, at.jsxs)("g",{children:[(0, at.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1+100,y2:t.y1,stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1,y2:t.y1-100,stroke:yt(t),strokeWidth:le(t)}),(0, at.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1+70,y2:t.y1+50,stroke:yt(t),strokeWidth:le(t)})]}));H("wedge",t=>{let l=t.x2-t.x1,o=t.y2-t.y1;return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, at.jsx)("polygon",{points:`0,0 ${l},0 ${l},${o}`,fill:"#f1f5f9",stroke:yt(t),strokeWidth:le(t),strokeLinejoin:"round"}),t.label?(0, at.jsx)("text",{x:l*.6,y:o*.3,dominantBaseline:"central",textAnchor:"middle",fill:yt(t),fontSize:20,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null]})});H("dimension",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=Math.max(1,le(t)-.5);return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, at.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:yt(t),strokeWidth:i,strokeDasharray:"4 4"}),(0, at.jsx)("polygon",{points:"0,0 10,-5 10,5",fill:yt(t)}),(0, at.jsx)("polygon",{points:`${l},0 ${l-10},-5 ${l-10},5`,fill:yt(t)}),t.label?(0, at.jsx)("text",{x:l/2,y:-10,textAnchor:"middle",fill:yt(t),fontSize:18,fontFamily:"serif",fontStyle:"italic",fontWeight:"bold",children:String(t.label)}):null]})});H("arc",t=>{let l=t.x2-t.x1,o=t.y2-t.y1,i=Math.hypot(l,o),c=Math.atan2(o,l)*180/Math.PI,f=Math.min(i,40),h=o>0?1:0,m=f,x=0,E=f*Math.cos(c*Math.PI/180),T=f*Math.sin(c*Math.PI/180),M=c/2,v=f+15,_=v*Math.cos(M*Math.PI/180),$=v*Math.sin(M*Math.PI/180),X=Math.max(i,50);return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, at.jsx)("line",{x1:0,y1:0,x2:X,y2:0,stroke:yt(t),strokeWidth:1.5,strokeDasharray:"4 4"}),(0, at.jsx)("path",{d:`M ${m} ${x} A ${f} ${f} 0 0 ${h} ${E} ${T}`,fill:"none",stroke:yt(t),strokeWidth:le(t)}),t.label?(0, at.jsx)("text",{x:_,y:$,dominantBaseline:"central",textAnchor:"middle",fill:yt(t),fontSize:16,fontFamily:"serif",fontStyle:"italic",fontWeight:"bold",children:String(t.label)}):null]})});H("nucleus",t=>{let l=t.fontSize||18,o=yt(t),i=le(t);return (0, at.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, at.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:o,strokeWidth:i,transform:"rotate(30)"}),(0, at.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:o,strokeWidth:i,transform:"rotate(-30)"}),(0, at.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:o,strokeWidth:i,transform:"rotate(90)"}),(0, at.jsx)("circle",{cx:0,cy:0,r:6,fill:"#ef4444"}),t.label&&(0, at.jsx)("text",{x:0,y:36,fontSize:l,fill:o,textAnchor:"middle",children:String(t.label)})]})});["cone","curved_wedge","incline","container","hinge"].forEach(t=>H(t,l=>{let o=rt(l.x1,l.y1,l.x2,l.y2),i=At(l.x1,l.y1,l.x2,l.y2);return (0, at.jsx)("g",{transform:`translate(${l.x1}, ${l.y1}) rotate(${i})`,children:(0, at.jsx)("line",{x1:0,y1:0,x2:o,y2:0,stroke:yt(l),strokeWidth:le(l)})})}));["semicircle","quarter_circle","axes"].forEach(t=>H(t,l=>{let o=$n(l.x1,l.y1,l.x2,l.y2);return (0, at.jsx)("rect",{x:o.minX,y:o.minY,width:o.width,height:o.height,fill:"none",stroke:yt(l),strokeWidth:le(l)})}));var Jt=Nt(Zt()),Ue=t=>t.color||"#0f172a",ca=t=>t.strokeWidth||2,Lu=t=>t.fontSize||18,s_=t=>t.lineStyle==="dashed"||t.type==="dashed_line"?"6 6":t.lineStyle==="dotted"?"2 4":void 0;H("b_region_in",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=l.minX,i=l.maxX,c=l.minY,f=l.maxY,h=(o+i)/2,m=40,x=6,E=[];for(let T=o+m/2;T<=i;T+=m)for(let M=c+m/2;M<=f;M+=m)E.push((0, Jt.jsxs)("g",{transform:`translate(${T}, ${M})`,children:[(0, Jt.jsx)("circle",{cx:0,cy:0,r:x,fill:"none",stroke:Ue(t),strokeWidth:ca(t)*.75}),(0, Jt.jsx)("line",{x1:-x*.7,y1:-x*.7,x2:x*.7,y2:x*.7,stroke:Ue(t),strokeWidth:ca(t)*.75}),(0, Jt.jsx)("line",{x1:x*.7,y1:-x*.7,x2:-x*.7,y2:x*.7,stroke:Ue(t),strokeWidth:ca(t)*.75})]},`${T}-${M}`));return (0, Jt.jsxs)("g",{children:[(0, Jt.jsx)("rect",{x:o,y:c,width:l.width,height:l.height,fill:Ue(t),stroke:Ue(t),strokeWidth:1,strokeDasharray:"4 4",opacity:.1}),E,t.label?(0, Jt.jsx)("text",{x:h,y:c-10,fontSize:Lu(t),fill:Ue(t),textAnchor:"middle",fontWeight:"bold",children:String(t.label)}):null]})});H("b_region_out",t=>{let l=$n(t.x1,t.y1,t.x2,t.y2),o=l.minX,i=l.maxX,c=l.minY,f=l.maxY,h=(o+i)/2,m=40,x=6,E=[];for(let T=o+m/2;T<=i;T+=m)for(let M=c+m/2;M<=f;M+=m)E.push((0, Jt.jsxs)("g",{transform:`translate(${T}, ${M})`,children:[(0, Jt.jsx)("circle",{cx:0,cy:0,r:x,fill:"none",stroke:Ue(t),strokeWidth:ca(t)*.75}),(0, Jt.jsx)("circle",{cx:0,cy:0,r:2,fill:Ue(t)})]},`${T}-${M}`));return (0, Jt.jsxs)("g",{children:[(0, Jt.jsx)("rect",{x:o,y:c,width:l.width,height:l.height,fill:Ue(t),stroke:Ue(t),strokeWidth:1,strokeDasharray:"4 4",opacity:.1}),E,t.label?(0, Jt.jsx)("text",{x:h,y:c-10,fontSize:Lu(t),fill:Ue(t),textAnchor:"middle",fontWeight:"bold",children:String(t.label)}):null]})});H("current_wire",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=l/2,c=o>90||o<=-90;return (0, Jt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, Jt.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:Ue(t),strokeWidth:ca(t),strokeDasharray:s_(t),strokeLinecap:"round"}),(0, Jt.jsx)("polygon",{points:`${i+8},0 ${i-6},-7 ${i-6},7`,fill:Ue(t)}),t.label?(0, Jt.jsx)("text",{x:i,y:-15,fontSize:Lu(t),fill:Ue(t),textAnchor:"middle",fontStyle:"italic",transform:c?`rotate(180, ${i}, -15)`:void 0,children:String(t.label)}):null]})});H("bar_magnet",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=Math.max(20,ca(t)*10),c=o>90||o<=-90;return (0, Jt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, Jt.jsx)("rect",{x:0,y:-i/2,width:l/2,height:i,fill:"#ef4444",stroke:Ue(t),strokeWidth:1}),(0, Jt.jsx)("rect",{x:l/2,y:-i/2,width:l/2,height:i,fill:"#3b82f6",stroke:Ue(t),strokeWidth:1}),(0, Jt.jsx)("text",{x:l/4,y:0,fill:"white",fontSize:i*.6,fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",transform:c?`rotate(180, ${l/4}, 0)`:void 0,children:"N"}),(0, Jt.jsx)("text",{x:l*.75,y:0,fill:"white",fontSize:i*.6,fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",transform:c?`rotate(180, ${l*.75}, 0)`:void 0,children:"S"}),t.label?(0, Jt.jsx)("text",{x:l/2,y:-i/2-10,fill:Ue(t),fontSize:Lu(t),textAnchor:"middle",transform:c?`rotate(180, ${l/2}, ${-i/2-10})`:void 0,children:String(t.label)}):null]})});H("coil",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=Math.max(Math.floor(l/15),1),c="M 0 0 ";for(let h=1;h<=i;h++)c+=`C ${h*(l/i)-l/(i*2)} -15, ${h*(l/i)} 20, ${h*(l/i)} 0 `;let f=o>90||o<=-90;return (0, Jt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, Jt.jsx)("path",{d:c,fill:"none",stroke:Ue(t),strokeWidth:ca(t),strokeLinejoin:"round"}),t.label?(0, Jt.jsx)("text",{x:l/2,y:-20,fontSize:Lu(t),fill:Ue(t),textAnchor:"middle",transform:f?`rotate(180, ${l/2}, -20)`:void 0,children:String(t.label)}):null]})});H("meter",t=>{let l=Math.max(16,ca(t)*5),o=String(t.label||"G");return (0, Jt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, Jt.jsx)("circle",{cx:0,cy:0,r:l,fill:"white",stroke:Ue(t),strokeWidth:ca(t)}),(0, Jt.jsx)("text",{x:0,y:0,fontSize:Lu(t),fill:Ue(t),fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",children:o})]})});H("ac_source",t=>{let l=Math.max(16,ca(t)*5);return (0, Jt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, Jt.jsx)("circle",{cx:0,cy:0,r:l,fill:"white",stroke:Ue(t),strokeWidth:ca(t)}),(0, Jt.jsx)("path",{d:`M ${-l*.6} 0 Q ${-l*.3} ${-l*.6} 0 0 T ${l*.6} 0`,fill:"none",stroke:Ue(t),strokeWidth:ca(t)*.8}),t.label?(0, Jt.jsx)("text",{x:0,y:l+18,fontSize:Lu(t),fill:Ue(t),textAnchor:"middle",children:String(t.label)}):null]})});H("bezier",t=>{let{x1:l,y1:o,x2:i,y2:c}=t,h=(t.cps?.length?t.cps:[{x:(l+i)/2,y:Math.min(o,c)-50}])[0],m=`M ${l} ${o} Q ${h.x} ${h.y} ${i} ${c}`,x=.25*l+.5*h.x+.25*i,E=.25*o+.5*h.y+.25*c,T=Math.atan2(c-o,i-l),M=!!t.showArrow;return (0, Jt.jsxs)("g",{children:[(0, Jt.jsx)("path",{d:m,fill:"none",stroke:"transparent",strokeWidth:24,strokeLinecap:"round",strokeLinejoin:"round"}),(0, Jt.jsx)("path",{d:m,fill:"none",stroke:Ue(t),strokeWidth:ca(t),strokeDasharray:s_(t),strokeLinecap:"round",strokeLinejoin:"round"}),M?(0, Jt.jsx)("g",{transform:`translate(${x}, ${E}) rotate(${T*180/Math.PI})`,children:(0, Jt.jsx)("polygon",{points:"6,0 -6,-5 -6,5",fill:Ue(t)})}):null,t.label?(0, Jt.jsx)("text",{x,y:E-14,fontSize:Lu(t),fill:Ue(t),textAnchor:"middle",children:String(t.label)}):null]})});var ft=Nt(Zt()),wl=t=>t.color||"#0f172a",Ul=t=>t.strokeWidth||2,f_=t=>t.fontSize||16,Nl=t=>{if(t.lineStyle==="dashed"||t.type==="dashed_line"||t.type==="dashed")return "6 6";if(t.lineStyle==="dotted")return "2 4"},bl=t=>t?.isGhost?.5:1;H("axes",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(o+i)/2,m=(c+f)/2,x=Math.max(1,i-o),E=Math.max(1,f-c),T=wl(t),M=Ul(t),v=Nl(t);if(i-o<=1&&f-c<=1){let _=t.x1,$=t.y1,X=40,I=f_(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("line",{x1:_,y1:$,x2:_+X,y2:$,stroke:T,strokeWidth:M}),(0, ft.jsx)("polygon",{points:`${_+X},${$} ${_+X-8},${$-5} ${_+X-8},${$+5}`,fill:T}),(0, ft.jsx)("text",{x:_+X+10,y:$,dominantBaseline:"central",textAnchor:"middle",fill:T,fontSize:I,fontFamily:"serif",fontStyle:"italic",children:"x"}),(0, ft.jsx)("line",{x1:_,y1:$,x2:_,y2:$-X,stroke:T,strokeWidth:M}),(0, ft.jsx)("polygon",{points:`${_},${$-X} ${_-5},${$-X+8} ${_+5},${$-X+8}`,fill:T}),(0, ft.jsx)("text",{x:_,y:$-X-12,dominantBaseline:"central",textAnchor:"middle",fill:T,fontSize:I,fontFamily:"serif",fontStyle:"italic",children:"y"}),(0, ft.jsx)("circle",{cx:_,cy:$,r:2,fill:T})]})}return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:x,height:E,fill:"transparent"}),(0, ft.jsxs)("g",{pointerEvents:"none",children:[(0, ft.jsx)("line",{x1:h,y1:c,x2:h,y2:f,stroke:T,strokeWidth:M,strokeDasharray:v,opacity:.8}),(0, ft.jsx)("line",{x1:o,y1:m,x2:i,y2:m,stroke:T,strokeWidth:M,strokeDasharray:v,opacity:.8}),(0, ft.jsx)("polygon",{points:`${i},${m} ${i-10},${m-5} ${i-10},${m+5}`,fill:T,opacity:.8}),(0, ft.jsx)("polygon",{points:`${h},${c} ${h-5},${c+10} ${h+5},${c+10}`,fill:T,opacity:.8})]})]})});H("circle",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=wl(t),c=Ul(t),f=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("circle",{cx:t.x1,cy:t.y1,r:o,fill:"none",stroke:i,strokeWidth:c,strokeDasharray:f,pointerEvents:"none"}),(0, ft.jsx)("circle",{cx:t.x1,cy:t.y1,r:o,fill:"transparent",stroke:"transparent",strokeWidth:20})]})});H("ellipse",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(o+i)/2,m=(c+f)/2,x=Math.max(1,i-o),E=Math.max(1,f-c),T=wl(t),M=Ul(t),v=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:x,height:E,fill:"transparent"}),(0, ft.jsx)("ellipse",{cx:h,cy:m,rx:x/2,ry:E/2,fill:"none",stroke:T,strokeWidth:M,strokeDasharray:v,pointerEvents:"none"})]})});H("rectangle",(t,l)=>{let o=$n(t.x1,t.y1,t.x2,t.y2),i=wl(t),c=Ul(t),f=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o.minX,y:o.minY,width:o.width,height:o.height,fill:"transparent"}),(0, ft.jsx)("rect",{x:o.minX,y:o.minY,width:o.width,height:o.height,fill:"none",stroke:i,strokeWidth:c,strokeDasharray:f,strokeLinejoin:"round",pointerEvents:"none"})]})});H("angle",(t,l)=>{let{x1:o,y1:i,x2:c,y2:f}=t,h=c-o,m=f-i,x=Math.hypot(h,m),E=Math.min(o,c),T=Math.max(o,c),M=Math.min(i,f),v=Math.max(i,f),_=Math.max(1,T-E),$=Math.max(1,v-M),X=wl(t),I=Ul(t),C=Nl(t),z=f_(t),U=Math.atan2(m,h),L=Math.min(x*.4,40),et=(h>=0?1:-1)===1?0:Math.PI,nt=U-et;nt=Math.atan2(Math.sin(nt),Math.cos(nt));let vt=et+nt/2,Z=nt>0?1:0,re=o+L*Math.cos(et),Et=i+L*Math.sin(et),st=o+L*Math.cos(U),Mt=i+L*Math.sin(U),Q=U*180/Math.PI;return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:E,y:M,width:_,height:$,fill:"transparent"}),(0, ft.jsxs)("g",{pointerEvents:"none",children:[(0, ft.jsx)("line",{x1:o,y1:i,x2:o+h,y2:i,stroke:X,strokeWidth:I,strokeDasharray:"4 4",opacity:.6}),(0, ft.jsx)("line",{x1:o,y1:i,x2:c,y2:f,stroke:X,strokeWidth:I,strokeLinecap:"round",strokeDasharray:C}),(0, ft.jsx)("g",{transform:`translate(${c}, ${f}) rotate(${Q})`,children:(0, ft.jsx)("polygon",{points:"0,0 -12,-6 -12,6",fill:X})}),x>20&&(0, ft.jsx)("path",{d:`M ${re} ${Et} A ${L} ${L} 0 0 ${Z} ${st} ${Mt}`,fill:"none",stroke:X,strokeWidth:I}),t.label&&(0, ft.jsx)("text",{x:o+(L+16)*Math.cos(vt),y:i+(L+16)*Math.sin(vt),fontSize:z,fill:X,fontFamily:"serif",fontStyle:"italic",dominantBaseline:"central",textAnchor:"middle",children:String(t.label)})]})]})});H("parabola_v",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(o+i)/2,m=Math.max(1,i-o),x=Math.max(1,f-c),E=2*t.y1-t.y2,T=wl(t),M=Ul(t),v=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:m,height:x,fill:"transparent"}),(0, ft.jsx)("path",{d:`M ${o} ${t.y2} Q ${h} ${E} ${i} ${t.y2}`,fill:"none",stroke:T,strokeWidth:M,strokeDasharray:v,pointerEvents:"none"})]})});H("parabola_h",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(c+f)/2,m=Math.max(1,i-o),x=Math.max(1,f-c),E=2*t.x1-t.x2,T=wl(t),M=Ul(t),v=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:m,height:x,fill:"transparent"}),(0, ft.jsx)("path",{d:`M ${t.x2} ${c} Q ${E} ${h} ${t.x2} ${f}`,fill:"none",stroke:T,strokeWidth:M,strokeDasharray:v,pointerEvents:"none"})]})});H("hyperbola",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(o+i)/2,m=(c+f)/2,x=Math.max(1,i-o),E=Math.max(1,f-c),T=wl(t),M=Ul(t),v=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:x,height:E,fill:"transparent"}),(0, ft.jsxs)("g",{pointerEvents:"none",children:[(0, ft.jsx)("path",{d:`M ${o} ${c} Q ${h} ${m} ${o} ${f}`,fill:"none",stroke:T,strokeWidth:M,strokeDasharray:v}),(0, ft.jsx)("path",{d:`M ${i} ${c} Q ${h} ${m} ${i} ${f}`,fill:"none",stroke:T,strokeWidth:M,strokeDasharray:v})]})]})});H("modulus",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(o+i)/2,m=Math.max(1,i-o),x=Math.max(1,f-c),E=wl(t),T=Ul(t),M=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:m,height:x,fill:"transparent"}),(0, ft.jsx)("polyline",{points:`${o},${c} ${h},${f} ${i},${c}`,fill:"none",stroke:E,strokeWidth:T,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:M,pointerEvents:"none"})]})});H("exponential",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(o+i)/2,m=Math.max(1,i-o),x=Math.max(1,f-c),E=wl(t),T=Ul(t),M=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:m,height:x,fill:"transparent"}),(0, ft.jsx)("path",{d:`M ${o} ${f} Q ${h+m*.2} ${f} ${i} ${c}`,fill:"none",stroke:E,strokeWidth:T,strokeDasharray:M,pointerEvents:"none"})]})});H("logarithmic",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(c+f)/2,m=Math.max(1,i-o),x=Math.max(1,f-c),E=wl(t),T=Ul(t),M=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:m,height:x,fill:"transparent"}),(0, ft.jsx)("path",{d:`M ${o} ${f} Q ${o} ${h-x*.2} ${i} ${c}`,fill:"none",stroke:E,strokeWidth:T,strokeDasharray:M,pointerEvents:"none"})]})});H("sine_wave",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),m=(c+f)/2,x=Math.max(1,i-o),E=Math.max(1,f-c),T=x/4,M=wl(t),v=Ul(t),_=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:x,height:E,fill:"transparent"}),(0, ft.jsx)("path",{d:`M ${o} ${m} Q ${o+T/2} ${c}, ${o+T} ${m} T ${o+2*T} ${m} T ${o+3*T} ${m} T ${i} ${m}`,fill:"none",stroke:M,strokeWidth:v,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:_,pointerEvents:"none"})]})});H("step_function",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=Math.max(1,i-o),m=Math.max(1,f-c),x=wl(t),E=Ul(t),T=Nl(t),M=4,v=h/M,_=m/M,$=[];for(let X=0;X<M;X++){let I=o+X*v,C=f-X*_,z=I+v;$.push((0, ft.jsxs)("g",{children:[(0, ft.jsx)("line",{x1:I,y1:C,x2:z,y2:C,stroke:x,strokeWidth:E,strokeDasharray:T}),(0, ft.jsx)("circle",{cx:I,cy:C,r:E*1.5,fill:x}),(0, ft.jsx)("circle",{cx:z,cy:C,r:E*1.5,fill:"white",stroke:x,strokeWidth:E*.75})]},X));}return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:h,height:m,fill:"transparent"}),(0, ft.jsx)("g",{pointerEvents:"none",children:$})]})});H("shaded_area",(t,l)=>{let o=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),c=Math.min(t.y1,t.y2),f=Math.max(t.y1,t.y2),h=(o+i)/2,m=Math.max(1,i-o),x=Math.max(1,f-c),E=wl(t),T=Ul(t),M=Nl(t);return (0, ft.jsxs)("g",{opacity:bl(l),children:[(0, ft.jsx)("rect",{x:o,y:c,width:m,height:x,fill:"transparent"}),(0, ft.jsxs)("g",{pointerEvents:"none",children:[(0, ft.jsx)("path",{d:`M ${o} ${f} L ${o} ${c+x*.3} Q ${h} ${c} ${i} ${c+x*.3} L ${i} ${f} Z`,fill:E,opacity:.2}),(0, ft.jsx)("path",{d:`M ${o} ${c+x*.3} Q ${h} ${c} ${i} ${c+x*.3}`,fill:"none",stroke:E,strokeWidth:T,strokeDasharray:M})]})]})});var V=Nt(Zt()),Hn=t=>t.color||"#0f172a",Vn=t=>t.strokeWidth||2,Ln=t=>t.fontSize||18;H("mass_box",t=>{let l=t.size||30,o=Hn(t),i=Vn(t),c=Ln(t);return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, V.jsx)("rect",{x:-l/2,y:-l/2,width:l,height:l,fill:o,fillOpacity:.2,stroke:o,strokeWidth:i,rx:4}),t.label?(0, V.jsx)("text",{x:0,y:0,dominantBaseline:"central",textAnchor:"middle",fontSize:c,fill:o,fontWeight:"bold",children:String(t.label)}):null]})});H("tuning_fork",t=>{let l=Hn(t),o=Vn(t),i=Ln(t),c=Math.max(3,o);return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, V.jsx)("path",{d:"M -10 -20 L -10 0 Q -10 10 0 10 Q 10 10 10 0 L 10 -20",fill:"none",stroke:l,strokeWidth:c,strokeLinecap:"round"}),(0, V.jsx)("line",{x1:"0",y1:"10",x2:"0",y2:"30",stroke:l,strokeWidth:Math.max(4,o),strokeLinecap:"round"}),t.label?(0, V.jsx)("text",{x:0,y:45,fontSize:i,fill:l,textAnchor:"middle",children:String(t.label)}):null]})});H("speaker",t=>{let l=Hn(t),o=Ln(t);return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, V.jsx)("polygon",{points:"-10,-15 5,-25 5,25 -10,15",fill:l}),(0, V.jsx)("rect",{x:"-20",y:"-15",width:"10",height:"30",fill:l}),(0, V.jsx)("path",{d:"M 12 -10 Q 18 0 12 10 M 18 -20 Q 28 0 18 20",fill:"none",stroke:l,strokeWidth:2,strokeLinecap:"round"}),t.label?(0, V.jsx)("text",{x:0,y:40,fontSize:o,fill:l,textAnchor:"middle",children:String(t.label)}):null]})});H("wavefronts",t=>{let l=t.rings||5,o=t.velocityRatio??0,i=Hn(t),c=Vn(t),f=Ln(t),h=[];for(let m=1;m<=l;m++){let x=m*20,E=o*x;h.push((0, V.jsx)("circle",{cx:E,cy:0,r:x,fill:"none",stroke:i,strokeWidth:c,opacity:1-m/l*.5},m));}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, V.jsx)("circle",{cx:0,cy:0,r:4,fill:i}),h,t.label?(0, V.jsx)("text",{x:0,y:l*20+20,fontSize:f,fill:i,textAnchor:"middle",children:String(t.label)}):null]})});H("pendulum",t=>{let l=t.size||15,o=Hn(t),i=Vn(t),c=Ln(t),f=Math.atan2(t.x2-t.x1,t.y2-t.y1),h=f*(180/Math.PI),m=Math.hypot(t.x2-t.x1,t.y2-t.y1),x=Math.min(40,m*.5),E=Math.sin(f)*x,T=Math.cos(f)*x,M=f>0?0:1,v=t.showForces;return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, V.jsx)("line",{x1:-20,y1:0,x2:20,y2:0,stroke:o,strokeWidth:2}),(0, V.jsx)("line",{x1:-15,y1:0,x2:-10,y2:-5,stroke:o}),(0, V.jsx)("line",{x1:0,y1:0,x2:5,y2:-5,stroke:o}),(0, V.jsx)("line",{x1:15,y1:0,x2:20,y2:-5,stroke:o}),(0, V.jsx)("line",{x1:0,y1:0,x2:0,y2:m+20,stroke:o,strokeWidth:1,strokeDasharray:"4 4",opacity:.5}),Math.abs(f)>.05?(0, V.jsx)("path",{d:`M 0 ${x} A ${x} ${x} 0 0 ${M} ${E} ${T}`,fill:"none",stroke:o,strokeWidth:1.5}):null,(0, V.jsxs)("g",{transform:`rotate(${-h})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:0,y2:m,stroke:o,strokeWidth:i}),(0, V.jsx)("circle",{cx:0,cy:m,r:l,fill:o,stroke:"#fff",strokeWidth:2}),v?(0, V.jsxs)("g",{transform:`translate(0, ${m})`,children:[(0, V.jsxs)("g",{transform:`rotate(${h})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:0,y2:40,stroke:"#ef4444",strokeWidth:2}),(0, V.jsx)("polygon",{points:"0,45 -4,37 4,37",fill:"#ef4444"}),(0, V.jsx)("text",{x:10,y:40,fontSize:12,fill:"#ef4444",children:"F_g"})]}),(0, V.jsx)("line",{x1:0,y1:0,x2:0,y2:-40,stroke:"#3b82f6",strokeWidth:2}),(0, V.jsx)("polygon",{points:"0,-45 -4,-37 4,-37",fill:"#3b82f6"}),(0, V.jsx)("text",{x:10,y:-35,fontSize:12,fill:"#3b82f6",children:"T"}),(0, V.jsx)("line",{x1:0,y1:0,x2:-35*Math.sin(f),y2:0,stroke:"#10b981",strokeWidth:2}),(0, V.jsx)("polygon",{points:`${ -40*Math.sin(f)},0 ${ -32*Math.sin(f)},-4 ${ -32*Math.sin(f)},4`,fill:"#10b981"}),(0, V.jsx)("text",{x:-45*Math.sin(f),y:-10,fontSize:12,fill:"#10b981",children:"F_g sin(\u03B8)"})]}):null,t.label?(0, V.jsx)("text",{x:0,y:m+l+15,fontSize:c,fill:o,textAnchor:"middle",children:String(t.label)}):null]})]})});H("phasor",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.x2-t.x1,c=t.y2-t.y1,f=Hn(t),h=Vn(t),m=Ln(t),x=t.showProjection;return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("circle",{cx:0,cy:0,r:l,fill:"none",stroke:f,strokeWidth:1,strokeDasharray:"4 4",opacity:.5}),(0, V.jsx)("line",{x1:-l-10,y1:0,x2:l+10,y2:0,stroke:f,strokeWidth:1,opacity:.3}),(0, V.jsx)("line",{x1:0,y1:-l-10,x2:0,y2:l+10,stroke:f,strokeWidth:1,opacity:.3}),(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:f,strokeWidth:h}),(0, V.jsx)("polygon",{points:`${l},0 ${l-12},-6 ${l-12},6`,fill:f}),x?(0, V.jsxs)("g",{transform:`rotate(${-o})`,children:[(0, V.jsx)("line",{x1:i,y1:c,x2:i,y2:0,stroke:"#ef4444",strokeWidth:1,strokeDasharray:"4 4"}),(0, V.jsx)("line",{x1:i,y1:c,x2:0,y2:c,stroke:"#3b82f6",strokeWidth:1,strokeDasharray:"4 4"}),(0, V.jsx)("line",{x1:0,y1:0,x2:i,y2:0,stroke:"#ef4444",strokeWidth:2}),(0, V.jsx)("polygon",{points:`${i},0 ${i>0?i-8:i+8},-4 ${i>0?i-8:i+8},4`,fill:"#ef4444"}),(0, V.jsx)("line",{x1:0,y1:0,x2:0,y2:c,stroke:"#3b82f6",strokeWidth:2}),(0, V.jsx)("polygon",{points:`0,${c} -4,${c>0?c-8:c+8} 4,${c>0?c-8:c+8}`,fill:"#3b82f6"})]}):null,(0, V.jsx)("path",{d:`M ${l*.3} 0 A ${l*.3} ${l*.3} 0 0 0 ${l*.3*Math.cos(-o*Math.PI/180)} ${l*.3*Math.sin(-o*Math.PI/180)}`,fill:"none",stroke:f,strokeWidth:1.5,transform:`rotate(${-o})`}),t.label?(0, V.jsx)("text",{x:l/2,y:-15,fontSize:m,fill:f,textAnchor:"middle",children:String(t.label)}):null]})});H("sine_wave",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.amplitude||40,c=t.loops||2,f=l/(c/2),h=Hn(t),m=Vn(t),x=Ln(t),E="M 0 0",T=Math.max(1,l/100);for(let M=0;M<=l;M+=T)E+=` L ${M} ${-i*Math.sin(M/f*2*Math.PI)}`;return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:h,strokeWidth:1,strokeDasharray:"4 4",opacity:.5}),(0, V.jsx)("path",{d:E,fill:"none",stroke:h,strokeWidth:m,strokeLinejoin:"round"}),t.label?(0, V.jsx)("text",{x:l/2,y:-i-15,fontSize:x,fill:h,textAnchor:"middle",children:String(t.label)}):null]})});H("standing_wave",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.amplitude||40,c=t.loops||3,f=l/(c/2),h=Hn(t),m=Vn(t),x=Ln(t),E="M 0 0",T="M 0 0",M=Math.max(1,l/100);for(let v=0;v<=l;v+=M){let _=i*Math.sin(v/f*2*Math.PI);E+=` L ${v} ${-_}`,T+=` L ${v} ${_}`;}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:h,strokeWidth:1,opacity:.5}),(0, V.jsx)("path",{d:E,fill:h,fillOpacity:.1,stroke:h,strokeWidth:m,strokeLinejoin:"round"}),(0, V.jsx)("path",{d:T,fill:"none",stroke:h,strokeWidth:m,strokeDasharray:"4 4",strokeLinejoin:"round"}),t.label?(0, V.jsx)("text",{x:l/2,y:-i-15,fontSize:x,fill:h,textAnchor:"middle",children:String(t.label)}):null]})});H("shm_graph",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.amplitude||40,c=t.loops||1,f=l/c,h=t.graphType||"x",m=Hn(t),x=Vn(t),E=Ln(t),T=`M 0 ${-i}`,M="M 0 0",v=`M 0 ${i}`,_=Math.max(1,l/100);for(let $=0;$<=l;$+=_){let X=$/f*2*Math.PI;T+=` L ${$} ${-i*Math.cos(X)}`,M+=` L ${$} ${-i*.8*-Math.sin(X)}`,v+=` L ${$} ${-i*.6*-Math.cos(X)}`;}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:m,strokeWidth:1,opacity:.5}),(0, V.jsx)("line",{x1:0,y1:-i*1.2,x2:0,y2:i*1.2,stroke:m,strokeWidth:1,opacity:.5}),(h==="x"||h==="all")&&(0, V.jsx)("path",{d:T,fill:"none",stroke:"#3b82f6",strokeWidth:x,strokeLinejoin:"round"}),(h==="v"||h==="all")&&(0, V.jsx)("path",{d:M,fill:"none",stroke:"#ef4444",strokeWidth:x,strokeLinejoin:"round"}),(h==="a"||h==="all")&&(0, V.jsx)("path",{d:v,fill:"none",stroke:"#10b981",strokeWidth:x,strokeLinejoin:"round"}),t.label?(0, V.jsx)("text",{x:l/2,y:-i-15,fontSize:E,fill:m,textAnchor:"middle",children:String(t.label)}):null]})});H("energy_graph",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.amplitude||50,c=t.loops||1,f=l/c,h=t.domain||"time",m=Hn(t),x=Vn(t),E=Ln(t),T="M 0 0",M=`M 0 ${-i}`,v=Math.max(1,l/100);if(h==="time"){T=`M 0 ${-i}`,M="M 0 0";for(let _=0;_<=l;_+=v){let $=_/f*2*Math.PI;T+=` L ${_} ${-i*Math.pow(Math.cos($),2)}`,M+=` L ${_} ${-i*Math.pow(Math.sin($),2)}`;}}else for(let _=0;_<=l;_+=v){let $=2*(_/l)-1,X=i*$*$;T+=` L ${_} ${-X}`,M+=` L ${_} ${-(i-X)}`;}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:m,strokeWidth:1,opacity:.5}),(0, V.jsx)("line",{x1:0,y1:-i,x2:l,y2:-i,stroke:m,strokeWidth:1,strokeDasharray:"4 4",opacity:.5}),(0, V.jsx)("path",{d:T,fill:"none",stroke:"#10b981",strokeWidth:x,strokeLinejoin:"round"}),(0, V.jsx)("path",{d:M,fill:"none",stroke:"#ef4444",strokeWidth:x,strokeLinejoin:"round"}),t.label?(0, V.jsx)("text",{x:l/2,y:-i-15,fontSize:E,fill:m,textAnchor:"middle",children:String(t.label)}):null]})});H("strobe_shm",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.amplitude||40,c=t.loops||1,f=Hn(t),h=Vn(t),m=Ln(t),x=10,E=[],T=[],M=[];for(let v=0;v<=x;v++){let _=v/x,$=i*Math.cos(_*2*Math.PI*c),X=_*l;E.push(`${$},${X}`),T.push((0, V.jsx)("circle",{cx:$,cy:X,r:h*2,fill:f},`c${v}`)),M.push((0, V.jsx)("line",{x1:-i-20,y1:X,x2:i+20,y2:X,stroke:f,strokeWidth:1,strokeDasharray:"4 4",opacity:.3},`l${v}`));}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[M,(0, V.jsx)("polyline",{points:E.join(" "),fill:"none",stroke:f,strokeWidth:1,opacity:.4}),(0, V.jsx)("line",{x1:0,y1:0,x2:0,y2:l,stroke:f,strokeWidth:1,opacity:.5}),T,t.label?(0, V.jsx)("text",{x:0,y:-15,fontSize:m,fill:f,textAnchor:"middle",children:String(t.label)}):null]})});H("torsion_pendulum",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=Hn(t),c=Vn(t),f=Ln(t);return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:i,strokeWidth:c}),(0, V.jsx)("ellipse",{cx:l,cy:0,rx:40,ry:15,fill:i,fillOpacity:.2,stroke:i,strokeWidth:c}),(0, V.jsx)("line",{x1:l,y1:0,x2:l+40,y2:0,stroke:i,strokeWidth:c,strokeDasharray:"2 2"}),(0, V.jsx)("line",{x1:l,y1:0,x2:l+30,y2:20,stroke:"#ef4444",strokeWidth:c}),(0, V.jsx)("path",{d:`M ${l+20} 0 A 20 7.5 0 0 1 ${l+15} 10`,fill:"none",stroke:"#ef4444",strokeWidth:1.5}),t.label?(0, V.jsx)("text",{x:l/2,y:-15,fontSize:f,fill:i,textAnchor:"middle",children:String(t.label)}):null]})});H("vane_liquid",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=Hn(t),c=Vn(t),f=Ln(t),h=Math.max(40,l*.4),m=Math.max(40,l*.5);return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:i,strokeWidth:c}),(0, V.jsx)("line",{x1:l,y1:-h*.3,x2:l,y2:h*.3,stroke:i,strokeWidth:c*1.5,strokeLinecap:"round"}),(0, V.jsx)("path",{d:`M ${l-m} ${-h/2} L ${l+10} ${-h/2} L ${l+10} ${h/2} L ${l-m} ${h/2}`,fill:"none",stroke:i,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),(0, V.jsx)("rect",{x:l-m+2,y:-h/2+2,width:m+8,height:h-4,fill:"#38bdf8",fillOpacity:.3}),t.label?(0, V.jsx)("text",{x:l/2,y:-h/2-15,fontSize:f,fill:i,textAnchor:"middle",children:String(t.label)}):null]})});H("wave_pulse",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.amplitude||50,c=Hn(t),f=Vn(t),h=Ln(t),m=l/2,x=l/6,E="M 0 0",T=Math.max(1,l/50);for(let M=0;M<=l;M+=T){let v=i*Math.exp(-Math.pow(M-m,2)/(2*x*x));E+=` L ${M} ${-v}`;}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:c,strokeWidth:f,strokeLinecap:"round"}),(0, V.jsx)("path",{d:E,fill:c,fillOpacity:.1,stroke:c,strokeWidth:f,strokeLinejoin:"round"}),t.label?(0, V.jsx)("text",{x:m,y:-i-15,fontSize:h,fill:c,textAnchor:"middle",children:String(t.label)}):null]})});H("damped_wave",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.amplitude||50,c=t.damping||.015,f=t.frequency||10,h=Hn(t),m=Vn(t),x=Ln(t),E=`M 0 ${-i}`,T=`M 0 ${-i}`,M=`M 0 ${i}`,v=Math.max(1,l/200);for(let _=0;_<=l;_+=v){let $=i*Math.exp(-c*_),X=$*Math.cos(_/l*f*2*Math.PI);E+=` L ${_} ${-X}`,T+=` L ${_} ${-$}`,M+=` L ${_} ${$}`;}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:h,strokeWidth:1,opacity:.3}),(0, V.jsx)("path",{d:T,fill:"none",stroke:h,strokeWidth:1,strokeDasharray:"4 4",opacity:.5}),(0, V.jsx)("path",{d:M,fill:"none",stroke:h,strokeWidth:1,strokeDasharray:"4 4",opacity:.5}),(0, V.jsx)("path",{d:E,fill:"none",stroke:h,strokeWidth:m,strokeLinejoin:"round"}),t.label?(0, V.jsx)("text",{x:l/2,y:-i-15,fontSize:x,fill:h,textAnchor:"middle",children:String(t.label)}):null]})});H("beats_graph",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.amplitude||30,c=t.frequency||20,f=t.beatFreq||2,h=Hn(t),m=Vn(t),x=Ln(t),E="M 0 0",T="M 0 0",M="M 0 0",v=Math.max(1,l/200);for(let _=0;_<=l;_+=v){let $=i*Math.cos(_/l*f*Math.PI),X=$*Math.sin(_/l*c*2*Math.PI);E+=` L ${_} ${-X}`,T+=` L ${_} ${-Math.abs($)}`,M+=` L ${_} ${Math.abs($)}`;}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:h,strokeWidth:1,opacity:.3}),(0, V.jsx)("path",{d:T,fill:"none",stroke:h,strokeWidth:1,strokeDasharray:"2 4",opacity:.5}),(0, V.jsx)("path",{d:M,fill:"none",stroke:h,strokeWidth:1,strokeDasharray:"2 4",opacity:.5}),(0, V.jsx)("path",{d:E,fill:"none",stroke:h,strokeWidth:m,strokeLinejoin:"round"}),t.label?(0, V.jsx)("text",{x:l/2,y:-i-20,fontSize:x,fill:h,textAnchor:"middle",children:String(t.label)}):null]})});H("mach_cone",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=t.machNumber||2,c=Math.asin(1/Math.max(1.01,i)),f=l,h=f*Math.tan(c),m=Hn(t),x=Vn(t),E=Ln(t);return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:f,y2:0,stroke:m,strokeWidth:1,strokeDasharray:"4 4"}),(0, V.jsx)("line",{x1:f,y1:0,x2:0,y2:-h,stroke:m,strokeWidth:x}),(0, V.jsx)("line",{x1:f,y1:0,x2:0,y2:h,stroke:m,strokeWidth:x}),(0, V.jsx)("circle",{cx:f,cy:0,r:4,fill:m}),[.2,.5,.8].map(T=>(0, V.jsx)("circle",{cx:f*T,cy:0,r:(1-T)*h,fill:"none",stroke:m,strokeWidth:1,opacity:.6},T)),t.label?(0, V.jsx)("text",{x:f/2,y:h+20,fontSize:E,fill:m,textAnchor:"middle",children:String(t.label)}):null]})});H("wall",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=Hn(t),c=Vn(t),f=Ln(t),h=[],m=Math.max(2,Math.floor(l/10));for(let x=0;x<=m;x++){let E=x/m*l;h.push((0, V.jsx)("line",{x1:E,y1:0,x2:E-8,y2:-12,stroke:i,strokeWidth:1},x));}return (0, V.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, V.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:i,strokeWidth:c}),h,t.label?(0, V.jsx)("text",{x:l/2,y:20,fontSize:f,fill:i,textAnchor:"middle",children:String(t.label)}):null]})});var ee=Nt(Zt()),Je=t=>t.color||"#0f172a",Ha=t=>t.strokeWidth||2,ub=t=>t.fontSize||18;H("string",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2);return (0, ee.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:(0, ee.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:Je(t),strokeWidth:Ha(t),strokeLinecap:"round"})})});H("surface",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=Math.max(0,Math.floor(l/12)),c=[];for(let f=0;f<=i;f++)c.push((0, ee.jsx)("line",{x1:f*12,y1:0,x2:f*12-8,y2:12,stroke:Je(t),strokeWidth:1.5},f));return (0, ee.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, ee.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:Je(t),strokeWidth:Ha(t)+.5,strokeLinecap:"round"}),c]})});var d_=t=>t.rotation||0;H("block",t=>{let l=Math.abs(t.x2-t.x1),o=Math.abs(t.y2-t.y1),i=(t.x1+t.x2)/2,c=(t.y1+t.y2)/2,f=d_(t);return (0, ee.jsxs)("g",{transform:`translate(${i}, ${c}) rotate(${f})`,children:[(0, ee.jsx)("rect",{x:-l/2,y:-o/2,width:l,height:o,fill:"#f1f5f9",stroke:Je(t),strokeWidth:Ha(t)}),t.label?(0, ee.jsx)("text",{x:0,y:t.value?-6:0,dominantBaseline:"central",textAnchor:"middle",fill:Je(t),fontSize:18,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, ee.jsx)("text",{x:0,y:t.label?10:0,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]})});H("cart",t=>{let l=Math.abs(t.x2-t.x1),o=Math.abs(t.y2-t.y1),i=(t.x1+t.x2)/2,c=(t.y1+t.y2)/2,f=d_(t),h=Math.min(l*.15,o*.25,12);return (0, ee.jsxs)("g",{transform:`translate(${i}, ${c}) rotate(${f})`,children:[(0, ee.jsx)("rect",{x:-l/2,y:-o/2,width:l,height:o-h,fill:"#f1f5f9",stroke:Je(t),strokeWidth:Ha(t)}),(0, ee.jsx)("circle",{cx:-l/2+h*1.5,cy:o/2-h,r:h,fill:"#cbd5e1",stroke:Je(t),strokeWidth:Ha(t)}),(0, ee.jsx)("circle",{cx:l/2-h*1.5,cy:o/2-h,r:h,fill:"#cbd5e1",stroke:Je(t),strokeWidth:Ha(t)}),t.label?(0, ee.jsx)("text",{x:0,y:t.value?-8:-2,dominantBaseline:"central",textAnchor:"middle",fill:Je(t),fontSize:18,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, ee.jsx)("text",{x:0,y:t.label?8:-2,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]})});H("particle",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=Math.max(5,l);return (0, ee.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ee.jsx)("circle",{cx:0,cy:0,r:o,fill:Je(t)}),t.label?(0, ee.jsx)("text",{x:0,y:-o-12,dominantBaseline:"central",textAnchor:"middle",fill:Je(t),fontSize:ub(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, ee.jsx)("text",{x:0,y:o+12,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]})});H("disk",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=Math.max(10,l);return (0, ee.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ee.jsx)("circle",{cx:0,cy:0,r:o,fill:"#e2e8f0",stroke:Je(t),strokeWidth:Ha(t)}),(0, ee.jsx)("line",{x1:0,y1:0,x2:o,y2:0,stroke:Je(t),strokeWidth:Ha(t)}),(0, ee.jsx)("circle",{cx:0,cy:0,r:3,fill:Je(t)}),t.label?(0, ee.jsx)("text",{x:0,y:-o-12,dominantBaseline:"central",textAnchor:"middle",fill:Je(t),fontSize:ub(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, ee.jsx)("text",{x:0,y:o+12,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]})});H("com",t=>(0, ee.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ee.jsx)("circle",{cx:0,cy:0,r:10,fill:"none",stroke:Je(t),strokeWidth:Ha(t)}),(0, ee.jsx)("path",{d:"M 0 -10 A 10 10 0 0 1 10 0 L 0 0 Z",fill:Je(t)}),(0, ee.jsx)("path",{d:"M 0 10 A 10 10 0 0 1 -10 0 L 0 0 Z",fill:Je(t)})]}));H("pivot",t=>(0, ee.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ee.jsx)("polygon",{points:"0,0 -12,20 12,20",fill:"#f8fafc",stroke:Je(t),strokeWidth:Ha(t),strokeLinejoin:"round"}),(0, ee.jsx)("line",{x1:-20,y1:20,x2:20,y2:20,stroke:Je(t),strokeWidth:Ha(t),strokeLinecap:"round"}),(0, ee.jsx)("circle",{cx:0,cy:0,r:3,fill:Je(t)})]}));H("pulley",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=Math.max(10,l);return (0, ee.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ee.jsx)("circle",{cx:0,cy:0,r:o,fill:"#f8fafc",stroke:Je(t),strokeWidth:Ha(t)}),(0, ee.jsx)("circle",{cx:0,cy:0,r:4,fill:Je(t)}),t.label?(0, ee.jsx)("text",{x:0,y:-o-12,dominantBaseline:"central",textAnchor:"middle",fill:Je(t),fontSize:ub(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null]})});var ut=Nt(Zt()),zt=t=>t.color||"#0f172a",xn=t=>t.strokeWidth||2,vl=t=>t.fontSize||18;function h7(t,l,o=20){let i=Math.max(3,l??Math.floor(t/20)),c=t/i,f=`M 0 0 L ${c*.2} 0 `;for(let h=0;h<i;h++){let m=h*c;h===i-1?f+=`L ${m+c*.25} ${-o/2} L ${m+c*.75} ${o/2} L ${t} 0 `:f+=`L ${m+c*.25} ${-o/2} L ${m+c*.75} ${o/2} L ${m+c} 0 `;}return f}H("point_mass",t=>{let l=t.size??15;return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ut.jsx)("circle",{cx:0,cy:0,r:l,fill:zt(t),fillOpacity:.8,stroke:zt(t),strokeWidth:2}),(0, ut.jsx)("circle",{cx:0,cy:0,r:l*.3,fill:"#fff",fillOpacity:.5}),t.label?(0, ut.jsx)("text",{x:0,y:l+15,fontSize:vl(t),fill:zt(t),textAnchor:"middle",fontWeight:"bold",children:String(t.label)}):null]})});H("com_indicator",t=>{let l=t.size??15;return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ut.jsx)("circle",{cx:0,cy:0,r:l,fill:"none",stroke:zt(t),strokeWidth:xn(t)}),(0, ut.jsx)("line",{x1:-l*1.3,y1:0,x2:l*1.3,y2:0,stroke:zt(t),strokeWidth:xn(t)}),(0, ut.jsx)("line",{x1:0,y1:-l*1.3,x2:0,y2:l*1.3,stroke:zt(t),strokeWidth:xn(t)}),(0, ut.jsx)("path",{d:`M 0 0 L ${l} 0 A ${l} ${l} 0 0 0 0 ${-l} Z`,fill:zt(t),fillOpacity:.5}),(0, ut.jsx)("path",{d:`M 0 0 L ${-l} 0 A ${l} ${l} 0 0 0 0 ${l} Z`,fill:zt(t),fillOpacity:.5}),t.label?(0, ut.jsx)("text",{x:0,y:l+15,fontSize:vl(t),fill:zt(t),textAnchor:"middle",fontWeight:"bold",children:String(t.label)}):null]})});H("pivot",t=>{let l=t.size??20;return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ut.jsx)("polygon",{points:`0,0 ${-l},${l*1.5} ${l},${l*1.5}`,fill:"none",stroke:zt(t),strokeWidth:xn(t)}),(0, ut.jsx)("line",{x1:-l*1.5,y1:l*1.5,x2:l*1.5,y2:l*1.5,stroke:zt(t),strokeWidth:xn(t)+1,strokeLinecap:"round"}),(0, ut.jsx)("circle",{cx:0,cy:0,r:xn(t)*1.5,fill:zt(t)}),Array.from({length:5},(o,i)=>(0, ut.jsx)("line",{x1:-l+i*l*.5,y1:l*1.5,x2:-l+i*l*.5-5,y2:l*1.5+8,stroke:zt(t),strokeWidth:1},i)),t.label?(0, ut.jsx)("text",{x:0,y:l*1.5+20,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("block_mass",t=>{let l=Math.min(t.x1,t.x2),o=Math.min(t.y1,t.y2),i=Math.max(1,Math.abs(t.x2-t.x1)),c=Math.max(1,Math.abs(t.y2-t.y1));return (0, ut.jsxs)("g",{transform:`translate(${l}, ${o})`,children:[(0, ut.jsx)("rect",{x:0,y:0,width:i,height:c,fill:zt(t),fillOpacity:.2,stroke:zt(t),strokeWidth:xn(t),rx:2}),t.label?(0, ut.jsx)("text",{x:i/2,y:c/2,dominantBaseline:"central",textAnchor:"middle",fontSize:vl(t),fill:zt(t),fontWeight:"bold",children:String(t.label)}):null]})});H("system_boundary",t=>{let l=Math.min(t.x1,t.x2),o=Math.min(t.y1,t.y2),i=Math.max(1,Math.abs(t.x2-t.x1)),c=Math.max(1,Math.abs(t.y2-t.y1));return (0, ut.jsxs)("g",{transform:`translate(${l}, ${o})`,children:[(0, ut.jsx)("rect",{x:0,y:0,width:i,height:c,fill:"none",stroke:zt(t),strokeWidth:xn(t),strokeDasharray:"8 6",rx:15}),t.label?(0, ut.jsx)("text",{x:i/2,y:-10,fontSize:vl(t),fill:zt(t),textAnchor:"middle",fontStyle:"italic",children:String(t.label)}):null]})});H("rocket",t=>{let l=t.x2-t.x1,o=t.y2-t.y1,i=Math.hypot(l,o),c=At(t.x1,t.y1,t.x2,t.y2),f=Math.min(t.x1,t.x2),h=Math.max(t.x1,t.x2);Math.min(t.y1,t.y2);Math.max(t.y1,t.y2);let E=Math.max(1,h-f);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${c})`,children:[(0, ut.jsx)("path",{d:`M 0 ${-E/4} L ${i*.7} ${-E/4} L ${i} 0 L ${i*.7} ${E/4} L 0 ${E/4} Z`,fill:"none",stroke:zt(t),strokeWidth:xn(t)}),(0, ut.jsx)("polygon",{points:`0,${-E/4} ${i*.2},${-E/4} 0,${-E/2}`,fill:zt(t),fillOpacity:.8}),(0, ut.jsx)("polygon",{points:`0,${E/4} ${i*.2},${E/4} 0,${E/2}`,fill:zt(t),fillOpacity:.8}),(0, ut.jsx)("path",{d:`M 0 ${-E/6} Q ${-i*.3} 0 0 ${E/6}`,fill:"#f97316",fillOpacity:.8}),(0, ut.jsx)("path",{d:`M 0 ${-E/8} Q ${-i*.5} 0 0 ${E/8}`,fill:"#ef4444",fillOpacity:.6}),t.label?(0, ut.jsx)("text",{x:i/2,y:-E/2-10,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("dashed_path",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, ut.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:zt(t),strokeWidth:xn(t),strokeLinecap:"round",strokeDasharray:"8 6"}),t.label?(0, ut.jsx)("text",{x:l/2,y:-10,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("uniform_rod",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=xn(t);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, ut.jsx)("rect",{x:0,y:-i/2,width:l,height:i,fill:zt(t),rx:i/4}),(0, ut.jsx)("circle",{cx:l/2,cy:0,r:Math.max(2,i/4),fill:"#fff"}),t.label?(0, ut.jsx)("text",{x:l/2,y:-i/2-10,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("solid_disk",t=>{let l=t.x2-t.x1,o=t.y2-t.y1,i=Math.hypot(l,o);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ut.jsx)("circle",{cx:0,cy:0,r:i,fill:zt(t),fillOpacity:.4,stroke:zt(t),strokeWidth:xn(t)}),t.label?(0, ut.jsx)("text",{x:0,y:i+20,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("hoop_ring",t=>{let l=t.x2-t.x1,o=t.y2-t.y1,i=Math.hypot(l,o);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ut.jsx)("circle",{cx:0,cy:0,r:i,fill:"none",stroke:zt(t),strokeWidth:Math.max(4,xn(t)*2)}),t.label?(0, ut.jsx)("text",{x:0,y:i+20,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("rolling_body",t=>{let l=t.x2-t.x1,o=t.y2-t.y1,i=Math.hypot(l,o);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ut.jsx)("circle",{cx:0,cy:0,r:i,fill:zt(t),fillOpacity:.1,stroke:zt(t),strokeWidth:xn(t)}),(0, ut.jsx)("line",{x1:-i,y1:0,x2:i,y2:0,stroke:zt(t),strokeWidth:1,strokeDasharray:"4 4"}),(0, ut.jsx)("line",{x1:0,y1:-i,x2:0,y2:i,stroke:zt(t),strokeWidth:1,strokeDasharray:"4 4"}),(0, ut.jsx)("circle",{cx:0,cy:0,r:3,fill:zt(t)}),t.showVelocity?(0, ut.jsxs)("g",{children:[(0, ut.jsx)("line",{x1:0,y1:0,x2:i*1.5,y2:0,stroke:"#ef4444",strokeWidth:2}),(0, ut.jsx)("polygon",{points:`${i*1.5},0 ${i*1.5-8},-4 ${i*1.5-8},4`,fill:"#ef4444"}),(0, ut.jsx)("text",{x:i*1.5+10,y:5,fill:"#ef4444",fontSize:14,fontStyle:"italic",children:"v"})]}):null,t.showOmega?(0, ut.jsxs)("g",{transform:`translate(0, ${-i*1.2})`,children:[(0, ut.jsx)("path",{d:`M ${-i*.4} 0 A ${i*.4} ${i*.4} 0 0 1 ${i*.4} 0`,fill:"none",stroke:"#10b981",strokeWidth:2}),(0, ut.jsx)("polygon",{points:`${i*.4},0 ${i*.4-4},-6 ${i*.4+4},-6`,fill:"#10b981"}),(0, ut.jsx)("text",{x:0,y:-10,fill:"#10b981",fontSize:14,fontStyle:"italic",textAnchor:"middle",children:"\u03C9"})]}):null,t.label?(0, ut.jsx)("text",{x:0,y:i+20,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("inclined_wedge",t=>{let{x1:l,y1:o,x2:i,y2:c}=t,f=i-l,h=c-o,m=Math.atan2(h,f)*(180/Math.PI);return (0, ut.jsxs)("g",{children:[(0, ut.jsx)("polygon",{points:`${l},${o} ${l},${c} ${i},${c}`,fill:zt(t),fillOpacity:.1,stroke:zt(t),strokeWidth:xn(t),strokeLinejoin:"round"}),t.label?(0, ut.jsx)("text",{x:(l+i)/2,y:c-10,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null,Math.abs(i-l)>20&&Math.abs(c-o)>20?(0, ut.jsx)("path",{d:`M ${i>l?i-20:i+20} ${c} A 20 20 0 0 ${i>l?0:1} ${i>l?i-20*Math.cos(m*Math.PI/180):i+20*Math.cos(m*Math.PI/180)} ${c-20*Math.sin(Math.abs(m)*Math.PI/180)}`,fill:"none",stroke:zt(t),strokeWidth:1}):null]})});H("pulley",t=>{let l=t.x2-t.x1,o=t.y2-t.y1,i=Math.hypot(l,o);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, ut.jsx)("path",{d:`M 0 0 L 0 ${-i*1.5}`,fill:"none",stroke:zt(t),strokeWidth:xn(t)}),(0, ut.jsx)("line",{x1:-i*.8,y1:-i*1.5,x2:i*.8,y2:-i*1.5,stroke:zt(t),strokeWidth:xn(t)}),Array.from({length:5},(c,f)=>(0, ut.jsx)("line",{x1:-i*.8+f*i*.4,y1:-i*1.5,x2:-i*.8+f*i*.4+5,y2:-i*1.5-5,stroke:zt(t),strokeWidth:1},f)),(0, ut.jsx)("circle",{cx:0,cy:0,r:i,fill:"#fff",stroke:zt(t),strokeWidth:xn(t)}),(0, ut.jsx)("circle",{cx:0,cy:0,r:i*.8,fill:"none",stroke:zt(t),strokeWidth:1,opacity:.3}),(0, ut.jsx)("circle",{cx:0,cy:0,r:3,fill:zt(t)}),t.label?(0, ut.jsx)("text",{x:0,y:-i*1.5-15,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("curve_arrow",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, ut.jsx)("path",{d:`M 0 0 Q ${l/2} ${-l*.5} ${l} 0`,fill:"none",stroke:zt(t),strokeWidth:xn(t),strokeLinecap:"round"}),(0, ut.jsx)("polygon",{points:`${l},0 ${l-8},-6 ${l-4},-1`,fill:zt(t),transform:`rotate(20 ${l} 0)`}),t.label?(0, ut.jsx)("text",{x:l/2,y:-l*.3,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});H("spring",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2);return (0, ut.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, ut.jsx)("path",{d:h7(l,t.coils),fill:"none",stroke:zt(t),strokeWidth:xn(t),strokeLinecap:"round",strokeLinejoin:"round"}),t.label?(0, ut.jsx)("text",{x:l/2,y:-20,fontSize:vl(t),fill:zt(t),textAnchor:"middle",children:String(t.label)}):null]})});var ze=Nt(Zt()),ra=(t,l)=>l?.isSelected?"#2563eb":t.color||"#111827",Go=(t,l)=>l?.isSelected?2.5:t.strokeWidth||2;H("wire",(t,l)=>(0, ze.jsxs)("g",{opacity:l?.isGhost?.5:1,children:[(0, ze.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"transparent",strokeWidth:20,strokeLinecap:"round"}),(0, ze.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:ra(t,l),strokeWidth:Go(t,l),strokeLinecap:"round",pointerEvents:"none"})]}));var Hs=(t,l,o)=>{let i=rt(t.x1,t.y1,t.x2,t.y2),c=At(t.x1,t.y1,t.x2,t.y2),f=t.x2-t.x1,h=t.y2-t.y1,m=(t.x1+t.x2)/2,x=(t.y1+t.y2)/2,E=-h/(i||1),T=f/(i||1);T>0&&(E=-E,T=-T);let M=20;return (0, ze.jsxs)("g",{opacity:o?.isGhost?.5:1,children:[(0, ze.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"transparent",strokeWidth:20}),(0, ze.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${c})`,children:(0, ze.jsx)("g",{children:l})}),t.label&&(0, ze.jsx)("text",{x:m+E*M,y:x+T*M,dominantBaseline:"central",textAnchor:"middle",fill:ra(t,o),fontSize:"16",fontFamily:"serif",fontWeight:"bold",children:String(t.label)}),t.value&&(0, ze.jsx)("text",{x:m-E*M,y:x-T*M,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:"14",fontFamily:"sans-serif",children:String(t.value)})]})};H("resistor",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=o/2-15;return Hs(t,(0, ze.jsx)("path",{d:`M 0 0 L ${i} 0 l 2.5 -8 l 5 16 l 5 -16 l 5 16 l 5 -16 l 5 16 l 2.5 -8 L ${o} 0`,fill:"none",stroke:ra(t,l),strokeWidth:Go(t,l),strokeLinejoin:"bevel"}),l)});H("capacitor",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=o/2;return Hs(t,(0, ze.jsx)("path",{d:`M 0 0 L ${i-4} 0 M ${i-4} -12 L ${i-4} 12 M ${i+4} -12 L ${i+4} 12 M ${i+4} 0 L ${o} 0`,fill:"none",stroke:ra(t,l),strokeWidth:Go(t,l)}),l)});H("inductor",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=o/2-15;return Hs(t,(0, ze.jsx)("path",{d:`M 0 0 L ${i} 0 A 5 5 0 0 0 ${i+10} 0 A 5 5 0 0 0 ${i+20} 0 A 5 5 0 0 0 ${i+30} 0 L ${o} 0`,fill:"none",stroke:ra(t,l),strokeWidth:Go(t,l)}),l)});H("diode",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=o/2;return Hs(t,(0, ze.jsx)("path",{d:`M 0 0 L ${i-8} 0 M ${i-8} -8 L ${i-8} 8 L ${i+8} 0 Z M ${i+8} -8 L ${i+8} 8 M ${i+8} 0 L ${o} 0`,fill:"none",stroke:ra(t,l),strokeWidth:Go(t,l)}),l)});H("battery",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=o/2;return Hs(t,(0, ze.jsxs)(ze.Fragment,{children:[(0, ze.jsx)("path",{d:`M 0 0 L ${i-4} 0 M ${i-4} -16 L ${i-4} 16 M ${i+4} -8 L ${i+4} 8 M ${i+4} 0 L ${o} 0`,fill:"none",stroke:ra(t,l),strokeWidth:Go(t,l)}),(0, ze.jsx)("line",{x1:i+4,y1:-8,x2:i+4,y2:8,stroke:ra(t,l),strokeWidth:Go(t,l)+2}),(0, ze.jsx)("text",{x:i-12,y:-12,fontSize:"12",fill:ra(t,l),textAnchor:"middle",children:"+"})]}),l)});["meter_v","meter_a"].forEach(t=>H(t,(l,o)=>{let i=rt(l.x1,l.y1,l.x2,l.y2),c=i/2,f=t==="meter_v"?"V":"A";return Hs(l,(0, ze.jsxs)(ze.Fragment,{children:[(0, ze.jsx)("path",{d:`M 0 0 L ${c-14} 0 M ${c+14} 0 L ${i} 0`,fill:"none",stroke:ra(l,o),strokeWidth:Go(l,o)}),(0, ze.jsx)("circle",{cx:c,cy:0,r:14,fill:"#f8f9fa",stroke:ra(l,o),strokeWidth:Go(l,o)}),(0, ze.jsx)("text",{x:c,y:0,textAnchor:"middle",dominantBaseline:"central",fill:ra(l,o),fontSize:"14",fontWeight:"bold",children:f})]}),o)}));H("ground",(t,l)=>(0, ze.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:l?.isGhost?.5:1,children:(0, ze.jsx)("path",{d:"M 0 0 L 0 15 M -12 15 L 12 15 M -8 20 L 8 20 M -4 25 L 4 25",fill:"none",stroke:ra(t,l),strokeWidth:Go(t,l)})}));var h_=t=>{let l={};return t.forEach(o=>{if(o.type!=="wire")return;let i=`${o.x1},${o.y1}`,c=`${o.x2},${o.y2}`;l[i]=(l[i]||0)+1,l[c]=(l[c]||0)+1;}),Object.entries(l).filter(([,o])=>o>2).map(([o])=>o.split(",").map(Number))};var F=Nt(Zt()),ro=t=>t.color||"#0f172a",Ti=t=>t.strokeWidth||2,Ai=t=>t.fontSize||18,$1=t=>{let l=Math.sin(t)*1e4;return l-Math.floor(l)},y7=t=>{if(t.lineStyle==="dashed")return "6 6";if(t.lineStyle==="dotted")return "2 4"};H("pv_axes",t=>{let l=Math.min(t.x1,t.x2),o=Math.min(t.y1,t.y2),i=Math.max(1,Math.abs(t.x2-t.x1)),c=Math.max(1,Math.abs(t.y2-t.y1)),f=String(t.yLabel??"P"),h=String(t.xLabel??"V"),m=ro(t),x=Ti(t),E=Ai(t);return (0, F.jsxs)("g",{transform:`translate(${l}, ${o})`,children:[(0, F.jsx)("line",{x1:0,y1:0,x2:0,y2:c,stroke:m,strokeWidth:x}),(0, F.jsx)("polygon",{points:"0,0 -5,10 5,10",fill:m}),(0, F.jsx)("text",{x:-15,y:10,fontSize:E,fill:m,fontWeight:"bold",children:f}),(0, F.jsx)("line",{x1:0,y1:c,x2:i,y2:c,stroke:m,strokeWidth:x}),(0, F.jsx)("polygon",{points:`${i},${c} ${i-10},${c-5} ${i-10},${c+5}`,fill:m}),(0, F.jsx)("text",{x:i-10,y:c+20,fontSize:E,fill:m,fontWeight:"bold",children:h}),(0, F.jsx)("text",{x:-10,y:c+15,fontSize:12,fill:m,children:"0"}),t.label?(0, F.jsx)("text",{x:i/2,y:-10,fontSize:E,fill:m,textAnchor:"middle",children:String(t.label)}):null]})});H("piston_cylinder",t=>{let l=Math.min(t.x1,t.x2),o=Math.min(t.y1,t.y2),i=Math.max(1,Math.abs(t.x2-t.x1)),c=Math.max(1,Math.abs(t.y2-t.y1)),f=t.compression??.5,h=c*f,m=ro(t),x=Ti(t),E=[],T=40;for(let M=0;M<T;M++){let v=$1(Number(t.id)+M)*(i-10)+5,_=h+10+$1(Number(t.id)+M*100)*(c-h-15);E.push((0, F.jsx)("circle",{cx:v,cy:_,r:"2",fill:"#94a3b8"},M));}return (0, F.jsxs)("g",{transform:`translate(${l}, ${o})`,children:[(0, F.jsx)("polyline",{points:`0,0 0,${c} ${i},${c} ${i},0`,fill:"#f8fafc",stroke:m,strokeWidth:x,strokeLinecap:"square",strokeLinejoin:"miter"}),E,(0, F.jsxs)("g",{transform:`translate(0, ${h})`,children:[(0, F.jsx)("rect",{x:"2",y:"0",width:i-4,height:"12",fill:"#64748b",rx:"2"}),(0, F.jsx)("line",{x1:i/2,y1:"0",x2:i/2,y2:"-40",stroke:"#64748b",strokeWidth:"4"}),(0, F.jsx)("line",{x1:i/2-15,y1:"-40",x2:i/2+15,y2:"-40",stroke:"#64748b",strokeWidth:"6",strokeLinecap:"round"}),(0, F.jsx)("line",{x1:i/2,y1:"-50",x2:i/2,y2:"-42",stroke:"#ef4444",strokeWidth:"2"}),(0, F.jsx)("polygon",{points:`${i/2},-42 ${i/2-4},-46 ${i/2+4},-46`,fill:"#ef4444"})]}),t.showHeat?(0, F.jsxs)("g",{transform:`translate(${i/2}, ${c+15})`,children:[(0, F.jsx)("path",{d:"M-10,0 Q-15,-10 -5,-20 Q0,-10 10,-15 Q5,-5 10,0 Z",fill:"#ef4444",opacity:"0.8"}),(0, F.jsx)("path",{d:"M-5,0 Q-8,-6 0,-12 Q2,-5 5,0 Z",fill:"#f59e0b"}),(0, F.jsx)("text",{x:"25",y:"-5",fontSize:"14",fill:"#ef4444",fontWeight:"bold",children:"Q"})]}):null,t.label?(0, F.jsx)("text",{x:i/2,y:c+(t.showHeat?35:20),textAnchor:"middle",fill:m,fontSize:Ai(t),children:String(t.label)}):null]})});H("heat_engine",t=>{let l=Math.min(t.x1,t.x2),o=Math.min(t.y1,t.y2),i=Math.max(1,Math.abs(t.x2-t.x1)),c=Math.max(1,Math.abs(t.y2-t.y1)),f=t.engineType!=="refrigerator",h=Math.min(i*.3,c*.2),m=ro(t),x=Ti(t),E=Ai(t);return (0, F.jsxs)("g",{transform:`translate(${l}, ${o})`,children:[(0, F.jsx)("rect",{x:0,y:0,width:i,height:c*.2,fill:"#ef4444",rx:"4"}),(0, F.jsx)("text",{x:i/2,y:c*.1,fontSize:E,fill:"#fff",textAnchor:"middle",dominantBaseline:"central",children:"T_H"}),(0, F.jsx)("rect",{x:0,y:c*.8,width:i,height:c*.2,fill:"#3b82f6",rx:"4"}),(0, F.jsx)("text",{x:i/2,y:c*.9,fontSize:E,fill:"#fff",textAnchor:"middle",dominantBaseline:"central",children:"T_C"}),(0, F.jsx)("circle",{cx:i/2,cy:c/2,r:h,fill:"#fff",stroke:m,strokeWidth:x}),(0, F.jsx)("text",{x:i/2,y:c/2,fontSize:E*1.2,fill:m,textAnchor:"middle",dominantBaseline:"central",fontWeight:"bold",children:f?"E":"R"}),(0, F.jsxs)("g",{strokeWidth:2,stroke:m,children:[(0, F.jsx)("line",{x1:i/2,y1:c*.2,x2:i/2,y2:c*.5-h-5}),(0, F.jsx)("polygon",{points:f?`${i/2},${c*.5-h-2} ${i/2-5},${c*.5-h-10} ${i/2+5},${c*.5-h-10}`:`${i/2},${c*.2+2} ${i/2-5},${c*.2+10} ${i/2+5},${c*.2+10}`,fill:m}),(0, F.jsx)("text",{x:i/2+10,y:c*.35,fontSize:14,fill:m,dominantBaseline:"central",children:"Q_H"}),(0, F.jsx)("line",{x1:i/2,y1:c*.5+h+5,x2:i/2,y2:c*.8}),(0, F.jsx)("polygon",{points:f?`${i/2},${c*.8-2} ${i/2-5},${c*.8-10} ${i/2+5},${c*.8-10}`:`${i/2},${c*.5+h+2} ${i/2-5},${c*.5+h+10} ${i/2+5},${c*.5+h+10}`,fill:m}),(0, F.jsx)("text",{x:i/2+10,y:c*.65,fontSize:14,fill:m,dominantBaseline:"central",children:"Q_C"}),(0, F.jsx)("line",{x1:f?i/2+h+5:i,y1:c/2,x2:f?i:i/2+h+5,y2:c/2}),(0, F.jsx)("polygon",{points:f?`${i},${c/2} ${i-8},${c/2-5} ${i-8},${c/2+5}`:`${i/2+h+5},${c/2} ${i/2+h+13},${c/2-5} ${i/2+h+13},${c/2+5}`,fill:m}),(0, F.jsx)("text",{x:i*.8,y:c/2-15,fontSize:14,fill:m,textAnchor:"middle",children:"W"})]}),t.label?(0, F.jsx)("text",{x:i/2,y:c+20,fontSize:E,fill:m,textAnchor:"middle",children:String(t.label)}):null]})});H("conduction_rod",t=>{let l=rt(t.x1,t.y1,t.x2,t.y2),o=At(t.x1,t.y1,t.x2,t.y2),i=`grad-rod-${t.id}`,c=ro(t),f=Ti(t),h=Ai(t);return (0, F.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${o})`,children:[(0, F.jsx)("defs",{children:(0, F.jsxs)("linearGradient",{id:i,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0, F.jsx)("stop",{offset:"0%",stopColor:"#ef4444"}),(0, F.jsx)("stop",{offset:"100%",stopColor:"#3b82f6"})]})}),(0, F.jsx)("rect",{x:0,y:-20,width:l,height:40,fill:`url(#${i})`,stroke:c,strokeWidth:f,rx:"4"}),(0, F.jsxs)("g",{stroke:"#fff",strokeWidth:"2",opacity:.6,children:[(0, F.jsx)("line",{x1:l*.2,y1:0,x2:l*.4,y2:0}),(0, F.jsx)("polygon",{points:`${l*.4},0 ${l*.4-6},-4 ${l*.4-6},4`,fill:"#fff"}),(0, F.jsx)("line",{x1:l*.6,y1:0,x2:l*.8,y2:0}),(0, F.jsx)("polygon",{points:`${l*.8},0 ${l*.8-6},-4 ${l*.8-6},4`,fill:"#fff"})]}),(0, F.jsx)("text",{x:0,y:-30,fontSize:h,fill:"#ef4444",textAnchor:"middle",fontWeight:"bold",children:"T_H"}),(0, F.jsx)("text",{x:l,y:-30,fontSize:h,fill:"#3b82f6",textAnchor:"middle",fontWeight:"bold",children:"T_C"}),t.label?(0, F.jsx)("text",{x:l/2,y:35,fontSize:h,fill:c,textAnchor:"middle",children:String(t.label)}):null]})});H("thermo_process",t=>{let l=t.processType||"isotherm",o=t.x2-t.x1,i=t.y2-t.y1,c="";l==="isobaric"?c=`M 0 0 L ${o} 0`:l==="isochoric"?c=`M 0 0 L 0 ${i}`:l==="adiabatic"?c=`M 0 0 Q ${o*.1} ${i*.9} ${o} ${i}`:c=`M 0 0 Q ${o*.2} ${i*.8} ${o} ${i}`;let f=o/2,h=i/2;if(l==="isotherm"||l==="adiabatic"){let v=o*(l==="adiabatic"?.1:.2),_=i*(l==="adiabatic"?.9:.8);f=.25*0+.5*v+.25*o,h=.25*0+.5*_+.25*i;}let m=Math.atan2(i,o)*180/Math.PI,x=y7(t),E=ro(t),T=Ti(t),M=Ai(t);return (0, F.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, F.jsx)("path",{d:c,fill:"none",stroke:E,strokeWidth:T,strokeDasharray:x}),(0, F.jsx)("g",{transform:`translate(${f}, ${h}) rotate(${m})`,children:(0, F.jsx)("polygon",{points:"0,0 -8,-5 -8,5",fill:E})}),t.label?(0, F.jsx)("text",{x:f+15,y:h-10,fontSize:M,fill:E,children:String(t.label)}):null]})});H("carnot_cycle",t=>{let l=Math.min(t.x1,t.x2),o=Math.min(t.y1,t.y2),i=Math.max(1,Math.abs(t.x2-t.x1)),c=Math.max(1,Math.abs(t.y2-t.y1)),f={x:i*.1,y:c*.1},h={x:i*.6,y:c*.3},m={x:i*.9,y:c*.9},x={x:i*.4,y:c*.7},E=`M ${f.x} ${f.y} Q ${i*.3} ${c*.15} ${h.x} ${h.y}`,T=`Q ${i*.7} ${c*.6} ${m.x} ${m.y}`,M=`Q ${i*.6} ${c*.85} ${x.x} ${x.y}`,v=`Q ${i*.2} ${c*.4} ${f.x} ${f.y}`,_=ro(t),$=Ti(t),X=Ai(t);return (0, F.jsxs)("g",{transform:`translate(${l}, ${o})`,children:[(0, F.jsx)("path",{d:`${E} ${T} ${M} ${v} Z`,fill:_,fillOpacity:.1}),(0, F.jsx)("path",{d:E,fill:"none",stroke:"#ef4444",strokeWidth:$}),(0, F.jsx)("path",{d:`M ${h.x} ${h.y} ${T}`,fill:"none",stroke:"#64748b",strokeWidth:$,strokeDasharray:"4 4"}),(0, F.jsx)("path",{d:`M ${m.x} ${m.y} ${M}`,fill:"none",stroke:"#3b82f6",strokeWidth:$}),(0, F.jsx)("path",{d:`M ${x.x} ${x.y} ${v}`,fill:"none",stroke:"#64748b",strokeWidth:$,strokeDasharray:"4 4"}),(0, F.jsx)("circle",{cx:f.x,cy:f.y,r:"3",fill:"#1e293b"}),(0, F.jsx)("circle",{cx:h.x,cy:h.y,r:"3",fill:"#1e293b"}),(0, F.jsx)("circle",{cx:m.x,cy:m.y,r:"3",fill:"#1e293b"}),(0, F.jsx)("circle",{cx:x.x,cy:x.y,r:"3",fill:"#1e293b"}),(0, F.jsx)("text",{x:i*.4,y:c*.15,fontSize:"14",fill:"#ef4444",fontWeight:"bold",children:"T_H"}),(0, F.jsx)("text",{x:i*.6,y:c*.95,fontSize:"14",fill:"#3b82f6",fontWeight:"bold",children:"T_C"}),(0, F.jsx)("text",{x:i/2,y:c/2+5,fontSize:16,fill:_,textAnchor:"middle",fontWeight:"bold",children:"W"}),t.label?(0, F.jsx)("text",{x:i/2,y:-15,fontSize:X,fill:_,textAnchor:"middle",children:String(t.label)}):null]})});H("maxwell_boltzmann",t=>{let l=Math.min(t.x1,t.x2),o=Math.min(t.y1,t.y2),i=Math.max(1,Math.abs(t.x2-t.x1)),c=Math.max(1,Math.abs(t.y2-t.y1)),f=t.t1||300,h=t.t2||600,m=Ti(t),x=Ai(t),E=ro(t),T=(M,v,_,$)=>{let X=`M 0 ${c}`,I=1/M,C=Math.sqrt(2/I),z=C*3.5;for(let U=0;U<=i;U+=2){let B=U/i*z,L=B*B*Math.exp(-I*B*B),gt=C*C*Math.exp(-1),et=c-L/gt*v;X+=` L ${U} ${et}`;}return (0, F.jsx)("path",{d:X,fill:"none",stroke:_,strokeWidth:m,strokeDasharray:$,strokeLinejoin:"round"})};return (0, F.jsxs)("g",{transform:`translate(${l}, ${o})`,children:[(0, F.jsx)("line",{x1:0,y1:0,x2:0,y2:c,stroke:"#1e293b",strokeWidth:"2"}),(0, F.jsx)("line",{x1:0,y1:c,x2:i,y2:c,stroke:"#1e293b",strokeWidth:"2"}),(0, F.jsx)("text",{x:-25,y:c/2,fontSize:14,fill:"#1e293b",transform:`rotate(-90, -25, ${c/2})`,textAnchor:"middle",children:"N(v)"}),(0, F.jsx)("text",{x:i/2,y:c+20,fontSize:14,fill:"#1e293b",textAnchor:"middle",children:"Speed (v)"}),T(f,c*.8,"#ef4444"),T(h,c*.5,"#3b82f6","4 4"),(0, F.jsx)("rect",{x:i-70,y:10,width:10,height:10,fill:"#ef4444"}),(0, F.jsxs)("text",{x:i-55,y:20,fontSize:12,fill:"#1e293b",children:["T\u2081 = ",f,"K"]}),(0, F.jsx)("rect",{x:i-70,y:30,width:10,height:10,fill:"#3b82f6"}),(0, F.jsxs)("text",{x:i-55,y:40,fontSize:12,fill:"#1e293b",children:["T\u2082 = ",h,"K"]}),t.label?(0, F.jsx)("text",{x:i/2,y:-15,fontSize:x,fill:E,textAnchor:"middle",children:String(t.label)}):null]})});H("diatomic_gas",t=>{let l=ro(t);Ti(t);let i=Ai(t),c=t.showRotations!==false;return (0, F.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, F.jsx)("circle",{cx:-15,cy:0,r:8,fill:l,stroke:"#fff",strokeWidth:2}),(0, F.jsx)("circle",{cx:15,cy:0,r:8,fill:l,stroke:"#fff",strokeWidth:2}),(0, F.jsx)("line",{x1:-10,y1:0,x2:10,y2:0,stroke:l,strokeWidth:4}),c?(0, F.jsxs)("g",{stroke:"#94a3b8",strokeWidth:1.5,fill:"none",children:[(0, F.jsx)("path",{d:"M -10 -15 A 15 15 0 0 1 10 -15",strokeDasharray:"2 2"}),(0, F.jsx)("polygon",{points:"10,-15 6,-18 6,-12",fill:"#94a3b8"}),(0, F.jsx)("path",{d:"M -25 0 A 25 10 0 0 1 0 10 A 25 10 0 0 1 25 0",strokeDasharray:"2 2"})]}):null,t.label?(0, F.jsx)("text",{x:0,y:25,fontSize:i,fill:l,textAnchor:"middle",children:String(t.label)}):null]})});H("random_walk",t=>{let l=t.steps||5,o=Math.hypot(t.x2-t.x1,t.y2-t.y1),i="M 0 0",c=0,f=0,h=[(0, F.jsx)("circle",{cx:"0",cy:"0",r:"4",fill:"#22c55e"},"start")];for(let m=1;m<=l;m++){let x=$1(Number(t.id)+m*7)*Math.PI*2,E=o/l*(.5+$1(Number(t.id)+m*13));c+=Math.cos(x)*E,f+=Math.sin(x)*E,i+=` L ${c} ${f}`,h.push((0, F.jsx)("circle",{cx:c,cy:f,r:m===l?4:2,fill:m===l?"#ef4444":ro(t)},m));}return (0, F.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, F.jsx)("path",{d:i,fill:"none",stroke:ro(t),strokeWidth:Ti(t),strokeLinejoin:"round"}),h,t.label?(0, F.jsx)("text",{x:o/2,y:o/2,fontSize:Ai(t),fill:ro(t),textAnchor:"middle",children:String(t.label)}):null]})});var pt=Nt(Zt()),ol=(t,l)=>l?"#0d9488":t.color||"#111827",La=(t,l)=>{let o=t.strokeWidth||2;return l?Math.max(3,o):o},cb=t=>t.fontSize||16,f0=(t,l,o)=>Array.from({length:t}).map((i,c)=>{let f=(c*360/t+o)*(Math.PI/180);return `${l*Math.cos(f)},${l*Math.sin(f)}`}).join(" ");H("atom",(t,l)=>(0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, pt.jsx)("rect",{x:"-20",y:"-15",width:"40",height:"30",fill:"white",rx:"6"}),(0, pt.jsx)("text",{x:"0",y:"0",dominantBaseline:"central",textAnchor:"middle",fill:ol(t,l.isSelected),fontSize:Math.max(18,cb(t)),fontFamily:"sans-serif",fontWeight:"bold",children:String(t.label||"C")})]}));H("charge_plus",(t,l)=>{let o=ol(t,l.isSelected),i=La(t,l.isSelected),c=t.strokeWidth||2,f=Math.max(12,c*4);return (0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, pt.jsx)("circle",{cx:"0",cy:"0",r:f,fill:"white",stroke:o,strokeWidth:i}),(0, pt.jsx)("line",{x1:-f/2,y1:"0",x2:f/2,y2:"0",stroke:o,strokeWidth:i}),(0, pt.jsx)("line",{x1:"0",y1:-f/2,x2:"0",y2:f/2,stroke:o,strokeWidth:i}),t.label&&(0, pt.jsx)("text",{x:"0",y:f+18,fontSize:cb(t),fill:o,fontFamily:"sans-serif",fontWeight:"bold",textAnchor:"middle",children:String(t.label)})]})});H("charge_minus",(t,l)=>{let o=ol(t,l.isSelected),i=La(t,l.isSelected),c=t.strokeWidth||2,f=Math.max(12,c*4);return (0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, pt.jsx)("circle",{cx:"0",cy:"0",r:f,fill:"white",stroke:o,strokeWidth:i}),(0, pt.jsx)("line",{x1:-f/2,y1:"0",x2:f/2,y2:"0",stroke:o,strokeWidth:i}),t.label&&(0, pt.jsx)("text",{x:"0",y:f+18,fontSize:cb(t),fill:o,fontFamily:"sans-serif",fontWeight:"bold",textAnchor:"middle",children:String(t.label)})]})});H("radical",(t,l)=>(0, pt.jsx)("circle",{cx:t.x1,cy:t.y1,r:"3.5",fill:ol(t,l.isSelected)}));H("lone_pair",(t,l)=>(0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, pt.jsx)("circle",{cx:"-4",cy:"0",r:"2.5",fill:ol(t,l.isSelected)}),(0, pt.jsx)("circle",{cx:"4",cy:"0",r:"2.5",fill:ol(t,l.isSelected)})]}));H("benzene",(t,l)=>{let i=ol(t,l.isSelected),c=La(t,l.isSelected);return (0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, pt.jsx)("polygon",{points:f0(6,30,-30),fill:"white",stroke:i,strokeWidth:c,strokeLinejoin:"round"}),(0, pt.jsx)("circle",{cx:"0",cy:"0",r:20,fill:"none",stroke:i,strokeWidth:c})]})});H("cyclohexane",(t,l)=>(0, pt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, pt.jsx)("polygon",{points:f0(6,30,-30),fill:"white",stroke:ol(t,l.isSelected),strokeWidth:La(t,l.isSelected),strokeLinejoin:"round"})}));H("cyclopentane",(t,l)=>(0, pt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, pt.jsx)("polygon",{points:f0(5,30,-90),fill:"white",stroke:ol(t,l.isSelected),strokeWidth:La(t,l.isSelected),strokeLinejoin:"round"})}));H("cyclobutane",(t,l)=>(0, pt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, pt.jsx)("polygon",{points:f0(4,30,-45),fill:"white",stroke:ol(t,l.isSelected),strokeWidth:La(t,l.isSelected),strokeLinejoin:"round"})}));H("cyclopropane",(t,l)=>(0, pt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, pt.jsx)("polygon",{points:f0(3,30,-90),fill:"white",stroke:ol(t,l.isSelected),strokeWidth:La(t,l.isSelected),strokeLinejoin:"round"})}));var d0=(t,l,o)=>{let i=rt(t.x1,t.y1,t.x2,t.y2),c=At(t.x1,t.y1,t.x2,t.y2),f=ol(t,o),h=La(t,o);return (0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${c})`,children:[l==="single"&&(0, pt.jsx)("line",{x1:"0",y1:"0",x2:i,y2:"0",stroke:f,strokeWidth:h,strokeLinecap:"round"}),l==="double"&&(0, pt.jsxs)(pt.Fragment,{children:[(0, pt.jsx)("line",{x1:"0",y1:"-3.5",x2:i,y2:"-3.5",stroke:f,strokeWidth:h,strokeLinecap:"round"}),(0, pt.jsx)("line",{x1:"0",y1:"3.5",x2:i,y2:"3.5",stroke:f,strokeWidth:h,strokeLinecap:"round"})]}),l==="triple"&&(0, pt.jsxs)(pt.Fragment,{children:[(0, pt.jsx)("line",{x1:"0",y1:"-6",x2:i,y2:"-6",stroke:f,strokeWidth:h,strokeLinecap:"round"}),(0, pt.jsx)("line",{x1:"0",y1:"0",x2:i,y2:"0",stroke:f,strokeWidth:h,strokeLinecap:"round"}),(0, pt.jsx)("line",{x1:"0",y1:"6",x2:i,y2:"6",stroke:f,strokeWidth:h,strokeLinecap:"round"})]}),l==="wedge"&&(0, pt.jsx)("polygon",{points:`0,0 ${i},-5 ${i},5`,fill:f}),l==="dash"&&(0, pt.jsx)("line",{x1:"0",y1:"0",x2:i,y2:"0",stroke:f,strokeWidth:h+1,strokeDasharray:"5 5",strokeLinecap:"square"})]})};H("single_bond",(t,l)=>d0(t,"single",l.isSelected));H("double_bond",(t,l)=>d0(t,"double",l.isSelected));H("triple_bond",(t,l)=>d0(t,"triple",l.isSelected));H("wedge_bond",(t,l)=>d0(t,"wedge",l.isSelected));H("dash_bond",(t,l)=>d0(t,"dash",l.isSelected));var y_=t=>({x:(t.x1+t.x2)/2,y:(t.y1+t.y2)/2});H("reaction_arrow",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=At(t.x1,t.y1,t.x2,t.y2),c=ol(t,l.isSelected),f=La(t,l.isSelected),h=y_(t);return (0, pt.jsxs)("g",{children:[(0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, pt.jsx)("line",{x1:"0",y1:"0",x2:o,y2:"0",stroke:c,strokeWidth:f}),(0, pt.jsx)("polygon",{points:`${o},0 ${o-12},-6 ${o-12},6`,fill:c})]}),t.label&&(0, pt.jsx)("text",{x:h.x,y:h.y-18,textAnchor:"middle",fill:"#0f766e",fontSize:"14",fontFamily:"sans-serif",fontWeight:"bold",children:String(t.label)}),t.value&&(0, pt.jsx)("text",{x:h.x,y:h.y+18,textAnchor:"middle",fill:"#4b5563",fontSize:"13",fontFamily:"sans-serif",children:String(t.value)})]})});H("equilibrium_arrow",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=At(t.x1,t.y1,t.x2,t.y2),c=ol(t,l.isSelected),f=La(t,l.isSelected),h=y_(t);return (0, pt.jsxs)("g",{children:[(0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, pt.jsx)("line",{x1:"0",y1:"-4",x2:o,y2:"-4",stroke:c,strokeWidth:f}),(0, pt.jsx)("polygon",{points:`${o},-4 ${o-10},-10 ${o-10},-4`,fill:c}),(0, pt.jsx)("line",{x1:"0",y1:"4",x2:o,y2:"4",stroke:c,strokeWidth:f}),(0, pt.jsx)("polygon",{points:"0,4 10,4 10,10",fill:c})]}),t.label&&(0, pt.jsx)("text",{x:h.x,y:h.y-18,textAnchor:"middle",fill:"#0f766e",fontSize:"14",fontFamily:"sans-serif",fontWeight:"bold",children:String(t.label)}),t.value&&(0, pt.jsx)("text",{x:h.x,y:h.y+18,textAnchor:"middle",fill:"#4b5563",fontSize:"13",fontFamily:"sans-serif",children:String(t.value)})]})});H("resonance_arrow",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=At(t.x1,t.y1,t.x2,t.y2),c=ol(t,l.isSelected),f=La(t,l.isSelected);return (0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, pt.jsx)("line",{x1:"0",y1:"0",x2:o,y2:"0",stroke:c,strokeWidth:f}),(0, pt.jsx)("polygon",{points:"0,0 12,-6 12,6",fill:c}),(0, pt.jsx)("polygon",{points:`${o},0 ${o-12},-6 ${o-12},6`,fill:c})]})});H("curved_arrow",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=At(t.x1,t.y1,t.x2,t.y2),c=o/3,f=Math.atan2(c,o/2)*(180/Math.PI),h=ol(t,l.isSelected),m=La(t,l.isSelected);return (0, pt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, pt.jsx)("path",{d:`M 0 0 Q ${o/2} ${-c} ${o} 0`,fill:"none",stroke:h,strokeWidth:m}),(0, pt.jsx)("g",{transform:`translate(${o}, 0) rotate(${f})`,children:(0, pt.jsx)("polygon",{points:"0,0 -12,-6 -12,6",fill:h})})]})});var Ct=Nt(Zt()),ur=(t,l)=>l?"#2563eb":t.color||"#0f172a",Yu=(t,l)=>l?2.5:t.strokeWidth||2,m_=(t,l,o)=>{let i=rt(t.x1,t.y1,t.x2,t.y2),c=At(t.x1,t.y1,t.x2,t.y2),f=t.x2-t.x1,h=t.y2-t.y1,m=(t.x1+t.x2)/2,x=(t.y1+t.y2)/2,E=-h/(i||1),T=f/(i||1);T>0&&(E=-E,T=-T);let M=18,v=ur(t,o);return (0, Ct.jsxs)("g",{children:[(0, Ct.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${c})`,children:l}),t.label&&(0, Ct.jsx)("text",{x:m+E*M,y:x+T*M,dominantBaseline:"central",textAnchor:"middle",fill:v,fontSize:14,fontFamily:"sans-serif",children:String(t.label)})]})};H("charge_pos",(t,l)=>{let o=l.isSelected?"#2563eb":"#ef4444";return (0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:l?.isGhost?.5:1,children:[(0, Ct.jsx)("circle",{cx:"0",cy:"0",r:"10",fill:"#fecaca",stroke:o,strokeWidth:Yu(t,l.isSelected)}),(0, Ct.jsx)("line",{x1:"0",y1:"-4",x2:"0",y2:"4",stroke:o,strokeWidth:2}),(0, Ct.jsx)("line",{x1:"-4",y1:"0",x2:"4",y2:"0",stroke:o,strokeWidth:2}),t.label&&(0, Ct.jsx)("text",{x:0,y:-16,textAnchor:"middle",fill:o,fontSize:t.fontSize||14,children:String(t.label)})]})});H("charge_neg",(t,l)=>{let o=l.isSelected?"#2563eb":"#3b82f6";return (0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:l?.isGhost?.5:1,children:[(0, Ct.jsx)("circle",{cx:"0",cy:"0",r:"10",fill:"#bfdbfe",stroke:o,strokeWidth:Yu(t,l.isSelected)}),(0, Ct.jsx)("line",{x1:"-4",y1:"0",x2:"4",y2:"0",stroke:o,strokeWidth:2}),t.label&&(0, Ct.jsx)("text",{x:0,y:-16,textAnchor:"middle",fill:o,fontSize:t.fontSize||14,children:String(t.label)})]})});H("dipole",(t,l)=>{let o=Yu(t,l.isSelected);return (0, Ct.jsxs)("g",{opacity:l?.isGhost?.5:1,children:[(0, Ct.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"#64748b",strokeWidth:o,strokeDasharray:"4 4"}),(0, Ct.jsx)("circle",{cx:t.x1,cy:t.y1,r:"8",fill:"#fecaca",stroke:l.isSelected?"#2563eb":"#ef4444",strokeWidth:o}),(0, Ct.jsx)("circle",{cx:t.x2,cy:t.y2,r:"8",fill:"#bfdbfe",stroke:l.isSelected?"#2563eb":"#3b82f6",strokeWidth:o}),t.label&&(0, Ct.jsx)("text",{x:(t.x1+t.x2)/2,y:t.y1-16,textAnchor:"middle",fill:"#475569",fontSize:14,children:String(t.label)})]})});var p_=(t,l)=>{let o=Math.max(2,Math.floor(t/25)),i=[];for(let c=0;c<=o;c++){let f=c/o*t;i.push((0, Ct.jsx)("g",{transform:`translate(${f}, 0)`,children:l?(0, Ct.jsx)(Ct.Fragment,{children:(0, Ct.jsx)("path",{d:"M-4 0 h8 M0 -4 v8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})}):(0, Ct.jsx)("path",{d:"M-4 0 h8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})},c));}return i};H("charged_plate_pos",(t,l)=>{let o=l.isSelected?"#2563eb":"#ef4444",i=rt(t.x1,t.y1,t.x2,t.y2),c=At(t.x1,t.y1,t.x2,t.y2),f=Math.max(12,t.strokeWidth*4||8);return (0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${c})`,opacity:l?.isGhost?.5:1,children:[(0, Ct.jsx)("line",{x1:0,y1:0,x2:i,y2:0,stroke:o,strokeWidth:f,strokeLinecap:"round"}),p_(i,true)]})});H("charged_plate_neg",(t,l)=>{let o=l.isSelected?"#2563eb":"#3b82f6",i=rt(t.x1,t.y1,t.x2,t.y2),c=At(t.x1,t.y1,t.x2,t.y2),f=Math.max(12,t.strokeWidth*4||8);return (0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${c})`,opacity:l?.isGhost?.5:1,children:[(0, Ct.jsx)("line",{x1:0,y1:0,x2:i,y2:0,stroke:o,strokeWidth:f,strokeLinecap:"round"}),p_(i,false)]})});H("gaussian_sphere",(t,l)=>{let o=Math.max(10,rt(t.x1,t.y1,t.x2,t.y2)),i=l.isSelected?"#2563eb":"#10b981";return (0, Ct.jsxs)("g",{opacity:l?.isGhost?.5:1,children:[(0, Ct.jsx)("circle",{cx:t.x1,cy:t.y1,r:o,fill:"#d1fae5",fillOpacity:.35,stroke:i,strokeWidth:Yu(t,l.isSelected),strokeDasharray:"5 5"}),t.label&&(0, Ct.jsx)("text",{x:t.x1,y:t.y1-o-12,textAnchor:"middle",fill:i,fontSize:13,children:String(t.label)})]})});H("gaussian_cylinder",(t,l)=>{let o=rt(t.x1,t.y1,t.x2,t.y2),i=At(t.x1,t.y1,t.x2,t.y2),c=t.curveHeight??40,f=15,h=l.isSelected?"#2563eb":"#10b981",m=Yu(t,l.isSelected),x="6 6";return (0, Ct.jsxs)("g",{opacity:l?.isGhost?.5:1,children:[(0, Ct.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"transparent",strokeWidth:Math.max(24,c*2),strokeLinecap:"round"}),(0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, Ct.jsx)("line",{x1:0,y1:-c,x2:o,y2:-c,stroke:h,strokeWidth:m,strokeDasharray:x}),(0, Ct.jsx)("line",{x1:0,y1:c,x2:o,y2:c,stroke:h,strokeWidth:m,strokeDasharray:x}),(0, Ct.jsx)("ellipse",{cx:0,cy:0,rx:f,ry:c,fill:h,fillOpacity:.05,stroke:h,strokeWidth:m,strokeDasharray:x}),(0, Ct.jsx)("ellipse",{cx:o,cy:0,rx:f,ry:c,fill:h,fillOpacity:.05,stroke:h,strokeWidth:m,strokeDasharray:x}),t.label&&(0, Ct.jsx)("text",{x:o/2,y:-c-10,textAnchor:"middle",fill:h,fontSize:t.fontSize||14,children:String(t.label)})]})]})});H("mirror_plane",(t,l)=>m_(t,(0, Ct.jsxs)(Ct.Fragment,{children:[(0, Ct.jsx)("line",{x1:0,y1:-24,x2:0,y2:24,stroke:ur(t,l.isSelected),strokeWidth:Yu(t,l.isSelected)}),(0, Ct.jsx)("line",{x1:0,y1:-18,x2:-8,y2:-12,stroke:ur(t,l.isSelected),strokeWidth:1.5}),(0, Ct.jsx)("line",{x1:0,y1:-6,x2:-8,y2:0,stroke:ur(t,l.isSelected),strokeWidth:1.5}),(0, Ct.jsx)("line",{x1:0,y1:6,x2:-8,y2:12,stroke:ur(t,l.isSelected),strokeWidth:1.5}),(0, Ct.jsx)("line",{x1:0,y1:18,x2:-8,y2:24,stroke:ur(t,l.isSelected),strokeWidth:1.5})]}),l.isSelected));H("energy_level",(t,l)=>{let o=Math.max(24,rt(t.x1,t.y1,t.x2,t.y2)),i=ur(t,l.isSelected),c=t.energy!=null?String(t.energy):"";return m_(t,(0, Ct.jsxs)(Ct.Fragment,{children:[(0, Ct.jsx)("line",{x1:0,y1:-8,x2:o,y2:-8,stroke:i,strokeWidth:Yu(t,l.isSelected)}),(0, Ct.jsx)("line",{x1:0,y1:8,x2:o,y2:8,stroke:i,strokeWidth:Yu(t,l.isSelected)}),c&&(0, Ct.jsx)("text",{x:o/2,y:22,textAnchor:"middle",fontSize:10,fill:"#4b5563",children:c})]}),l.isSelected)});var Zn=Nt(Zt()),p7=({x:t,y:l,type:o})=>(0, Zn.jsxs)("g",{children:[(0, Zn.jsx)("rect",{x:t-20,y:l-12,width:40,height:24,fill:"#fee2e2",stroke:"#ef4444"}),(0, Zn.jsx)("text",{x:t,y:l,textAnchor:"middle",dominantBaseline:"central",fontSize:10,fill:"#991b1b",children:o})]}),H1=({elements:t,selectedId:l,drawing:o,viewMode:i=false,showGrid:c=true,gridSize:f=20,className:h,svgRef:m,onBackgroundMouseDown:x,onBackgroundMouseMove:E,onBackgroundMouseUp:T,onBackgroundMouseLeave:M,onElementMouseDown:v})=>{let _=(0, g_.useMemo)(()=>h_(t),[t]);return (0, Zn.jsxs)("svg",{ref:m,className:h,onMouseDown:x,onMouseMove:E,onMouseUp:T,onMouseLeave:M,children:[!i&&c&&(0, Zn.jsxs)(Zn.Fragment,{children:[(0, Zn.jsx)("defs",{children:(0, Zn.jsx)("pattern",{id:"svg-engine-grid",width:f,height:f,patternUnits:"userSpaceOnUse",children:(0, Zn.jsx)("path",{d:`M ${f} 0 L 0 0 0 ${f}`,fill:"none",stroke:"#e2e8f0",strokeWidth:"1"})})}),(0, Zn.jsx)("rect",{width:"100%",height:"100%",fill:"url(#svg-engine-grid)",pointerEvents:"none"})]}),t.map($=>{let X=ob(String($.type)),I=X?X($,{isSelected:l===$.id,viewMode:i}):(0, Zn.jsx)(p7,{x:$.x1,y:$.y1,type:String($.type)});return (0, Zn.jsx)("g",{onMouseDown:C=>v?.(C,$),cursor:i?"default":"move",children:I},String($.id))}),_.map(([$,X],I)=>(0, Zn.jsx)("circle",{cx:$,cy:X,r:4,fill:"#111827",pointerEvents:"none"},`junction-${I}`)),o&&(()=>{let $=ob(String(o.type));return $?(0, Zn.jsx)("g",{opacity:.5,children:$(o,{isGhost:true,viewMode:i})}):null})()]})};var An=Nt(Na());var g7=t=>{let l="#0f172a";["spring","sine_wave","wavefronts","shm_graph"].includes(t)&&(l="#3b82f6"),["standing_wave","wave_pulse","torsion_pendulum"].includes(t)&&(l="#ec4899"),["pendulum","phasor"].includes(t)&&(l="#8b5cf6"),["wall","vane_liquid"].includes(t)&&(l="#64748b"),t==="mass_box"&&(l="#ef4444");let o={color:l,strokeWidth:2,fontSize:18};switch(t){case "standing_wave":case "sine_wave":return {...o,amplitude:40,loops:2};case "damped_wave":return {...o,amplitude:50,damping:.015,frequency:10};case "shm_graph":return {...o,amplitude:40,loops:1,graphType:"all"};case "energy_graph":return {...o,amplitude:50,loops:1,domain:"time"};case "strobe_shm":return {...o,amplitude:40,loops:1};case "beats_graph":return {...o,amplitude:30,frequency:15,beatFreq:2};case "wavefronts":return {...o,velocityRatio:.5,rings:5};case "mach_cone":return {...o,machNumber:2};case "mass_box":return {...o,size:30};case "pendulum":return {...o,size:15,showForces:false};case "phasor":return {...o,showProjection:false};case "spring":return {...o,coils:8};case "text":return {...o,label:"Equation/Label"};default:return o}},x_=(t,l)=>{if(l==="waveOscillation")return g7(t);switch(t){case "charge_pos":return {color:"#ef4444",strokeWidth:2,fontSize:18};case "charge_neg":return {color:"#3b82f6",strokeWidth:2,fontSize:18};case "charge_plus":return {color:"#ef4444",strokeWidth:2,fontSize:16};case "charge_minus":return {color:"#3b82f6",strokeWidth:2,fontSize:16};case "dipole":return {color:"#64748b",strokeWidth:2};case "charged_plate_pos":return {color:"#ef4444",strokeWidth:2};case "charged_plate_neg":return {color:"#3b82f6",strokeWidth:2};case "gaussian_sphere":return {color:"#10b981",strokeWidth:2};case "gaussian_cylinder":return {color:"#10b981",strokeWidth:2,curveHeight:40};case "vector":case "ray":case "photon":return l==="graph"?{color:"#0f172a",strokeWidth:2}:l==="mechanics"||l==="mechanical"?{color:"#0f172a",strokeWidth:2}:l==="rotation"?{color:"#ef4444",strokeWidth:2}:l==="optical"&&(t==="ray"||t==="photon")?{color:"#ef4444",strokeWidth:2}:l==="optical"?{color:"#0f172a",strokeWidth:2}:{color:"#ef4444",strokeWidth:2};case "lens_convex":case "lens_concave":case "prism":case "glass_slab":return {color:"#38bdf8",strokeWidth:2};case "mirror_plane":case "mirror_concave":case "mirror_convex":return {color:"#0f172a",strokeWidth:2};case "slit_double":case "slit_single":return {color:"#0f172a",strokeWidth:4};case "nucleus":return l==="optical"?{color:"#3b82f6",strokeWidth:2,fontSize:18}:{color:"#0f172a",strokeWidth:2,fontSize:18};case "energy_level":return {color:"#0f172a",strokeWidth:2,label:"n=1",energy:"-13.6 eV"};case "dashed_line":return {color:"#0f172a",strokeWidth:2,lineStyle:"dashed"};case "point":return l==="graph"?{color:"#0f172a",strokeWidth:2,fontSize:16,label:"P"}:l==="light"||l==="optical"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"P"}:l==="thermo"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"P"}:{};case "text":return l==="graph"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"Label"}:l==="light"||l==="optical"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"Text"}:l==="mechanics"||l==="mechanical"?{color:"#0f172a",strokeWidth:2,fontSize:20,label:"Label"}:l==="rotation"?{color:"#1e293b",strokeWidth:2,fontSize:20,label:"Label"}:l==="thermo"?{color:"#1e293b",strokeWidth:2,fontSize:18,label:"Equation/Label"}:{};case "b_field_line":case "b_field_curve":return l==="magnetism"?{color:"#10b981",strokeWidth:2}:{};case "pole_piece":return l==="magnetism"?{color:"#0f172a",strokeWidth:2,label:"N"}:{};case "b_region_in":case "b_region_out":return l==="magnetism"?{color:"#94a3b8",strokeWidth:2}:{};case "current_wire":return l==="magnetism"?{color:"#ef4444",strokeWidth:2,label:"I"}:{};case "bar_magnet":return l==="magnetism"?{color:"#0f172a",strokeWidth:2,label:""}:{};case "coil":return l==="magnetism"?{color:"#0f172a",strokeWidth:2}:{};case "bezier":return l==="magnetism"?{color:"#0f172a",strokeWidth:2}:{};case "meter":return l==="magnetism"?{color:"#0f172a",strokeWidth:2,fontSize:24,label:"G"}:{};case "ac_source":return l==="magnetism"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"V_rms"}:{};case "spring":return l==="rotation"?{color:"#0f172a",strokeWidth:2,coils:6,lineStyle:"solid"}:l==="mechanics"||l==="mechanical"?{color:"#0f172a",strokeWidth:2}:{};case "pivot":return l==="rotation"?{color:"#64748b",strokeWidth:2,size:20,fontSize:18}:l==="mechanics"||l==="mechanical"?{color:"#0f172a",strokeWidth:2}:{};case "pulley":return l==="rotation"?{color:"#64748b",strokeWidth:2,fontSize:18}:l==="mechanics"||l==="mechanical"?{color:"#0f172a",strokeWidth:2}:{};case "point_mass":return {color:"#ef4444",strokeWidth:2,size:15,fontSize:18};case "block_mass":return {color:"#3b82f6",strokeWidth:2,fontSize:18};case "com_indicator":return {color:"#10b981",strokeWidth:2,size:15,fontSize:18};case "system_boundary":case "dashed_path":return {color:"#94a3b8",strokeWidth:l==="rotation"?1.5:2,fontSize:18};case "rocket":return {color:"#ef4444",strokeWidth:2,fontSize:18};case "uniform_rod":return {color:"#f59e0b",strokeWidth:10,fontSize:18};case "solid_disk":case "hoop_ring":return {color:"#3b82f6",strokeWidth:2,fontSize:18};case "rolling_body":return {color:"#3b82f6",strokeWidth:2,fontSize:18,showVelocity:true,showOmega:true};case "inclined_wedge":return {color:"#64748b",strokeWidth:2,fontSize:18};case "curve_arrow":return {color:"#10b981",strokeWidth:2,fontSize:18};case "line":return l==="rotation"?{color:"#1e293b",strokeWidth:1.5}:l==="thermo"?{color:"#1e293b",strokeWidth:2,lineStyle:"solid"}:{};case "piston_cylinder":return l!=="thermo"?{}:{color:"#1e293b",strokeWidth:2,fontSize:18,compression:.5,showHeat:false,lineStyle:"solid"};case "heat_engine":return l!=="thermo"?{}:{color:"#10b981",strokeWidth:2,fontSize:18,engineType:"engine",efficiency:.4,lineStyle:"solid"};case "conduction_rod":return l!=="thermo"?{}:{color:"#3b82f6",strokeWidth:2,fontSize:18,lineStyle:"solid"};case "pv_axes":return l!=="thermo"?{}:{color:"#1e293b",strokeWidth:2,fontSize:18,xLabel:"V",yLabel:"P",lineStyle:"solid"};case "thermo_process":return l!=="thermo"?{}:{color:"#ec4899",strokeWidth:2,fontSize:18,processType:"isotherm",lineStyle:"solid"};case "carnot_cycle":return l!=="thermo"?{}:{color:"#ec4899",strokeWidth:2,fontSize:18,lineStyle:"solid"};case "maxwell_boltzmann":return l!=="thermo"?{}:{color:"#1e293b",strokeWidth:2,fontSize:18,t1:300,t2:600,lineStyle:"solid"};case "diatomic_gas":return {color:"#f59e0b",strokeWidth:2,fontSize:18,showRotations:true};case "random_walk":return l!=="thermo"?{}:{color:"#8b5cf6",strokeWidth:2,fontSize:18,steps:5,lineStyle:"solid"};case "string":case "surface":case "dashed":case "dimension":case "rod":case "arc":case "wedge":case "axes":case "disk":case "particle":case "com":return l==="mechanics"||l==="mechanical"?{color:"#0f172a",strokeWidth:2}:{};case "block":case "cart":return l==="mechanics"||l==="mechanical"?{color:"#0f172a",strokeWidth:2,rotation:0}:{};default:return {}}},b_=(t,l)=>{let[o,i]=(0, An.useState)(t),[c,f]=(0, An.useState)("select"),[h,m]=(0, An.useState)(null),[x,E]=(0, An.useState)(null),[T,M]=(0, An.useState)(false),[v,_]=(0, An.useState)(false),[$,X]=(0, An.useState)(""),[I,C]=(0, An.useState)(false),[z,U]=(0, An.useState)(null),B=(0, An.useRef)(null),L=(0, An.useRef)({x:0,y:0}),gt=(0, An.useRef)(null);(0, An.useEffect)(()=>{i(t);},[t]),(0, An.useEffect)(()=>{let Et=st=>{(st.key==="Delete"||st.key==="Backspace")&&x&&(i(Mt=>Mt.filter(Q=>Q.id!==x)),E(null),C(false)),st.key==="Escape"&&(m(null),f("select"));};return window.addEventListener("keydown",Et),()=>window.removeEventListener("keydown",Et)},[x]);let et=(0, An.useMemo)(()=>o.find(Et=>Et.id===x)||null,[o,x]);return {elements:o,setElements:i,tool:c,setTool:f,drawing:h,selectedId:x,setSelectedId:E,isViewMode:T,setIsViewMode:M,showJsonModal:v,setShowJsonModal:_,jsonText:$,setJsonText:X,showProperties:I,setShowProperties:C,selectedElement:et,svgRef:B,onElementMouseDown:(Et,st)=>{if(c!=="select"||(Et.stopPropagation(),!B.current))return;let Mt=R1(B.current,Et);E(st.id),U(st.id),L.current=Mt,gt.current={x1:st.x1,y1:st.y1,x2:st.x2,y2:st.y2};},handleMouseDown:Et=>{if(!B.current)return;if(c==="select"){E(null);return}let st=R1(B.current,Et),Mt=ir(st.x),Q=ir(st.y),mt=(l==="mechanics"||l==="mechanical")&&["pivot","com","axes"].includes(c),ht=l==="rotation"&&["point_mass","com_indicator","pivot"].includes(c),he=l==="waveOscillation"&&["tuning_fork","speaker","wavefronts","mass_box"].includes(c);if(mt||ht||he||["point","text","diatomic_gas","benzene","cyclohexane","cyclopentane","cyclobutane","cyclopropane","atom","charge_plus","charge_minus","charge_pos","charge_neg","radical","lone_pair","nucleus","meter","ac_source"].includes(c)){let Dt=x_(c,l),Pt=c==="text"?"Text":c==="atom"?"C":c==="charge_pos"?"+q":c==="charge_neg"?"-q":c==="charge_plus"?"+q":c==="charge_minus"?"-q":c==="meter"?"G":c==="ac_source"?"V_rms":"",Yt={id:Date.now(),type:c,x1:Mt,y1:Q,x2:Mt,y2:Q,...Dt,label:typeof Dt.label=="string"?Dt.label:Pt};i(Xl=>[...Xl,Yt]),E(Yt.id),f("select");return}let kn=x_(c,l),K=(l==="mechanics"||l==="mechanical")&&(c==="block"||c==="cart")?{rotation:kn.rotation??0}:{};m({...kn,...K,id:Date.now(),type:c,x1:Mt,y1:Q,x2:Mt,y2:Q,label:typeof kn.label=="string"?kn.label:""});},handleMouseMove:Et=>{if(!B.current)return;let st=R1(B.current,Et);if(z&>.current){let Mt=ir(st.x-L.current.x),Q=ir(st.y-L.current.y);i(mt=>mt.map(ht=>ht.id===z?{...ht,x1:gt.current.x1+Mt,y1:gt.current.y1+Q,x2:gt.current.x2+Mt,y2:gt.current.y2+Q}:ht));return}h&&m({...h,x2:ir(st.x),y2:ir(st.y)});},handleMouseUp:()=>{if(z){U(null);return}if(!h)return;if(h.x1===h.x2&&h.y1===h.y2){m(null),f("select");return}let Et=h.type==="bezier"?{...h,cps:[{x:(h.x1+h.x2)/2,y:Math.min(h.y1,h.y2)-60}]}:h;i(st=>[...st,Et]),E(h.id),m(null),f("select");}}};var p=Nt(Zt()),rb={select:(0, p.jsx)("path",{d:"M 8 4 L 16 12 L 11 13 L 9 18 L 6 17 L 8 12 L 4 11 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5"}),point:(0, p.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"}),line:(0, p.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"4",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),string:(0, p.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),vector:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"4",y1:"20",x2:"18",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, p.jsx)("polygon",{points:"14,4 20,4 20,10",fill:"none",stroke:"currentColor",strokeWidth:"2.5"})]}),ray:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})]}),wire:(0, p.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2.8",strokeLinecap:"round"}),text:(0, p.jsx)("text",{x:"12",y:"18",fontSize:"18",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",fontFamily:"serif",children:"T"}),block:(0, p.jsx)("rect",{x:"5",y:"6",width:"14",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",rx:"1"}),wedge:(0, p.jsx)("polygon",{points:"2,20 22,20 22,6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),pulley:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"10",r:"6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"10",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"6",y1:"10",x2:"6",y2:"20",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"18",y1:"10",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"1.5"})]}),point_mass:(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"currentColor",stroke:"currentColor",strokeWidth:"2"}),block_mass:(0, p.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",rx:"1"}),com_indicator:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 12 12 L 17 7 A 7 7 0 0 1 17 17 Z M 12 12 L 7 17 A 7 7 0 0 1 7 7 Z",fill:"currentColor",opacity:"0.3"})]}),system_boundary:(0, p.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"3 2",rx:"4"}),rocket:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M12 2 L16 8 L16 16 L20 20 L4 20 L8 16 L8 8 Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("path",{d:"M8 20 Q12 24 16 20",fill:"currentColor"})]}),dashed_path:(0, p.jsx)("path",{d:"M 4 20 Q 8 8 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"4 3"}),uniform_rod:(0, p.jsx)("rect",{x:"3",y:"10",width:"18",height:"4",fill:"currentColor",rx:"2",opacity:"0.8"}),solid_disk:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"currentColor",opacity:"0.5",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),hoop_ring:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),rolling_body:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("polygon",{points:"18,10 22,12 18,14",fill:"currentColor"}),(0, p.jsx)("path",{d:"M 16 6 A 8 8 0 0 1 20 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("polygon",{points:"19,11 22,9 18,8",fill:"currentColor"})]}),inclined_wedge:(0, p.jsx)("polygon",{points:"4,20 20,20 4,8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),curve_arrow:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 6 18 A 9 9 0 0 1 18 6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"16,5 20,4 19,8",fill:"currentColor"})]}),ladder:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"7",y1:"4",x2:"4",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"17",y1:"4",x2:"14",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"6",y1:"8",x2:"16",y2:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0, p.jsx)("line",{x1:"5",y1:"12",x2:"15",y2:"12",stroke:"currentColor",strokeWidth:"1.6"}),(0, p.jsx)("line",{x1:"4.5",y1:"16",x2:"14.5",y2:"16",stroke:"currentColor",strokeWidth:"1.6"})]}),spring:(0, p.jsx)("path",{d:"M 2 12 L 5 12 L 7 6 L 11 18 L 15 6 L 19 18 L 21 12 L 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel"}),arc:(0, p.jsx)("path",{d:"M 22 12 A 10 10 0 0 0 12 2 L 12 12 Z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),arc_arrow:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 4 16 A 8 8 0 0 1 18 8",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round"}),(0, p.jsx)("polygon",{points:"17,5 21,9 15,10",fill:"currentColor"})]}),dashed:(0, p.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"4,4"}),surface:(0, p.jsx)("path",{d:"M 4 10 L 20 10 M 6 10 L 2 16 M 12 10 L 8 16 M 18 10 L 14 16 M 24 10 L 20 16",fill:"none",stroke:"currentColor",strokeWidth:"2"}),dimension:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, p.jsx)("polygon",{points:"4,12 8,9 8,15",fill:"currentColor"}),(0, p.jsx)("polygon",{points:"20,12 16,9 16,15",fill:"currentColor"})]}),axes:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"6",y1:"18",x2:"6",y2:"6",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"6,4 3,9 9,9",fill:"currentColor"}),(0, p.jsx)("line",{x1:"6",y1:"18",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"20,18 15,15 15,21",fill:"currentColor"})]}),cart:(0, p.jsx)("path",{d:"M 4 8 L 20 8 L 20 14 L 4 14 Z M 8 18 A 2 2 0 1 0 8 14 A 2 2 0 1 0 8 18 M 16 18 A 2 2 0 1 0 16 14 A 2 2 0 1 0 16 18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),disk:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"12",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor"})]}),com:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 12 4 A 8 8 0 0 1 20 12 L 12 12 Z M 12 20 A 8 8 0 0 1 4 12 L 12 12 Z",fill:"currentColor"})]}),particle:(0, p.jsx)("circle",{cx:"12",cy:"12",r:"5",fill:"currentColor"}),pivot:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("polygon",{points:"12,6 6,18 18,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"12",cy:"6",r:"2",fill:"currentColor"})]}),dashed_line:(0, p.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"4",stroke:"currentColor",strokeWidth:"2.5",strokeDasharray:"4 4",strokeLinecap:"round"}),angle:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"4",y1:"20",x2:"16",y2:"4",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 14 20 A 10 10 0 0 0 10 12",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),rectangle:(0, p.jsx)("rect",{x:"4",y:"6",width:"16",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),circle:(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),ellipse:(0, p.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"5",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),parabola_v:(0, p.jsx)("path",{d:"M 4 4 Q 12 24 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),parabola_h:(0, p.jsx)("path",{d:"M 20 4 Q 0 12 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),hyperbola:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 6 2 Q 12 12 6 22",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 18 2 Q 12 12 18 22",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),sine_wave:(0, p.jsx)("path",{d:"M 2 12 Q 7 2 12 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),mass_box:(0, p.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),pendulum:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"12",y1:"2",x2:"18",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"18",cy:"18",r:"4",fill:"currentColor"}),(0, p.jsx)("line",{x1:"6",y1:"2",x2:"18",y2:"2",stroke:"currentColor",strokeWidth:"2"})]}),phasor:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"12",x2:"18",y2:"6",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"15,5 19,5 19,9",fill:"currentColor"})]}),damped_wave:(0, p.jsx)("path",{d:"M 2 12 Q 5 2 8 12 T 14 12 T 18 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),vane_liquid:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 4 4 L 4 20 L 20 20 L 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("rect",{x:"4",y:"10",width:"16",height:"10",fill:"currentColor",opacity:"0.35"}),(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"8",y1:"16",x2:"16",y2:"16",stroke:"currentColor",strokeWidth:"2"})]}),torsion_pendulum:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("ellipse",{cx:"12",cy:"16",rx:"8",ry:"3",fill:"currentColor"}),(0, p.jsx)("line",{x1:"12",y1:"16",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"1"})]}),standing_wave:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 2 12 Q 7 2 12 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("path",{d:"M 2 12 Q 7 22 12 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"2 2"})]}),wave_pulse:(0, p.jsx)("path",{d:"M 2 16 L 8 16 Q 12 4 16 16 L 22 16",fill:"none",stroke:"currentColor",strokeWidth:"2"}),shm_graph:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"1",opacity:"0.5"}),(0, p.jsx)("path",{d:"M 2 12 Q 7 2 12 12 T 22 12",fill:"none",stroke:"#3b82f6",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 2 12 Q 7 22 12 12 T 22 12",fill:"none",stroke:"#ef4444",strokeWidth:"2",strokeDasharray:"2 2"})]}),energy_graph:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 4 6 Q 12 24 20 6",fill:"none",stroke:"#ef4444",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 4 20 Q 12 2 20 20",fill:"none",stroke:"#10b981",strokeWidth:"2"})]}),strobe_shm:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"4",r:"2",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"18",cy:"12",r:"2",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"12",cy:"20",r:"2",fill:"currentColor"}),(0, p.jsx)("line",{x1:"6",y1:"4",x2:"18",y2:"4",stroke:"currentColor",strokeWidth:"0.5"}),(0, p.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"0.5"}),(0, p.jsx)("line",{x1:"6",y1:"20",x2:"18",y2:"20",stroke:"currentColor",strokeWidth:"0.5"})]}),wall:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"4",x2:"16",y2:"0",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"12",y1:"10",x2:"16",y2:"6",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"12",y1:"16",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"12",y1:"22",x2:"16",y2:"18",stroke:"currentColor",strokeWidth:"1.5"})]}),tuning_fork:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 8 4 L 8 14 Q 12 20 16 14 L 16 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"24",stroke:"currentColor",strokeWidth:"2"})]}),speaker:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("polygon",{points:"8,8 14,4 14,20 8,16",fill:"currentColor"}),(0, p.jsx)("rect",{x:"4",y:"8",width:"4",height:"8",fill:"currentColor"}),(0, p.jsx)("path",{d:"M 18 8 Q 20 12 18 16 M 21 5 Q 24 12 21 19",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),wavefronts:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"10",cy:"12",r:"4",fill:"none",stroke:"currentColor"}),(0, p.jsx)("circle",{cx:"11",cy:"12",r:"8",fill:"none",stroke:"currentColor"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"none",stroke:"currentColor"})]}),mach_cone:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"18",cy:"12",r:"2",fill:"currentColor"}),(0, p.jsx)("line",{x1:"2",y1:"4",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"2",y1:"20",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),beats_graph:(0, p.jsx)("path",{d:"M 2 12 Q 4 6 6 12 Q 8 18 10 12 Q 12 8 14 12 Q 16 16 18 12 Q 20 10 22 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),step_function:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M2 18 L8 18 M8 12 L14 12 M14 6 L20 6",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"2",cy:"18",r:"2",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"8",cy:"18",r:"2",fill:"none",stroke:"currentColor"}),(0, p.jsx)("circle",{cx:"8",cy:"12",r:"2",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"14",cy:"12",r:"2",fill:"none",stroke:"currentColor"}),(0, p.jsx)("circle",{cx:"14",cy:"6",r:"2",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"20",cy:"6",r:"2",fill:"none",stroke:"currentColor"})]}),shaded_area:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M4 20 L4 10 Q12 2 20 10 L20 20 Z",fill:"currentColor",opacity:"0.3"}),(0, p.jsx)("path",{d:"M4 10 Q12 2 20 10",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),modulus:(0, p.jsx)("polyline",{points:"4,4 12,20 20,4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),exponential:(0, p.jsx)("path",{d:"M4 20 Q14 20 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),logarithmic:(0, p.jsx)("path",{d:"M4 20 Q4 10 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),axes_3d:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"8",y1:"16",x2:"8",y2:"2",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"8",y1:"16",x2:"22",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"8",y1:"16",x2:"2",y2:"22",stroke:"currentColor",strokeWidth:"2"})]}),rod:(0, p.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round"}),hinge:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"3.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),slit_double:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"8",stroke:"currentColor",strokeWidth:"3"}),(0, p.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"13",stroke:"currentColor",strokeWidth:"3"}),(0, p.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"3"})]}),slit_single:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"9",stroke:"currentColor",strokeWidth:"3"}),(0, p.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"3"})]}),photon:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 2 12 Q 5 6 8 12 T 14 12 T 20 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"18,8 22,12 18,16",fill:"currentColor"})]}),nucleus:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"4",fill:"none",stroke:"currentColor",transform:"rotate(45 12 12)"}),(0, p.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"4",fill:"none",stroke:"currentColor",transform:"rotate(-45 12 12)"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"#ef4444"})]}),orbit:(0, p.jsx)("ellipse",{cx:"12",cy:"12",rx:"8",ry:"4.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),resistor:(0, p.jsx)("path",{d:"M 2 12 L 6 12 L 8 6 L 12 18 L 16 6 L 18 12 L 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),capacitor:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"3",y1:"12",x2:"9",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"9",y1:"6",x2:"9",y2:"18",stroke:"currentColor",strokeWidth:"2.2"}),(0, p.jsx)("line",{x1:"15",y1:"6",x2:"15",y2:"18",stroke:"currentColor",strokeWidth:"2.2"}),(0, p.jsx)("line",{x1:"15",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),inductor:(0, p.jsx)("path",{d:"M 3 12 C 5 8, 7 8, 9 12 C 11 8, 13 8, 15 12 C 17 8, 19 8, 21 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),diode:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"3",y1:"12",x2:"8",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"8,7 8,17 14,12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"15.5",y1:"7",x2:"15.5",y2:"17",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"15.5",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),battery:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 2 12 L 10 12 M 10 4 L 10 20 M 14 8 L 14 16 M 14 12 L 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"14",y1:"8",x2:"14",y2:"16",stroke:"currentColor",strokeWidth:"4"})]}),ground:(0, p.jsx)("path",{d:"M 12 4 L 12 12 M 6 12 L 18 12 M 8 16 L 16 16 M 10 20 L 14 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),meter_v:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"7",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("text",{x:"12",y:"15",fontSize:"8",textAnchor:"middle",fill:"currentColor",children:"V"})]}),meter_a:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"7",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("text",{x:"12",y:"15",fontSize:"8",textAnchor:"middle",fill:"currentColor",children:"A"})]}),piston_cylinder:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 4 4 L 4 20 L 20 20 L 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("rect",{x:"5",y:"10",width:"14",height:"4",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"9",cy:"16",r:"1",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"15",cy:"17",r:"1",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"12",cy:"14",r:"1",fill:"currentColor"})]}),heat_engine:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("rect",{x:"6",y:"2",width:"12",height:"4",fill:"#ef4444"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("rect",{x:"6",y:"18",width:"12",height:"4",fill:"#3b82f6"}),(0, p.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"8",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"16",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),conduction_rod:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("defs",{children:(0, p.jsxs)("linearGradient",{id:"thermo-conduction-icon-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0, p.jsx)("stop",{offset:"0%",stopColor:"#ef4444"}),(0, p.jsx)("stop",{offset:"100%",stopColor:"#3b82f6"})]})}),(0, p.jsx)("rect",{x:"2",y:"8",width:"20",height:"8",fill:"url(#thermo-conduction-icon-grad)",stroke:"currentColor",strokeWidth:"1"})]}),pv_axes:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"4",y1:"4",x2:"4",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"4,2 2,6 6,6",fill:"currentColor"}),(0, p.jsx)("polygon",{points:"22,20 18,18 18,22",fill:"currentColor"})]}),thermo_process:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 4 4 Q 8 16 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"12,12 8,10 10,14",fill:"currentColor"})]}),carnot_cycle:(0, p.jsx)("path",{d:"M 6 6 Q 12 8 16 12 Q 14 16 10 18 Q 6 14 6 6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),maxwell_boltzmann:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 2 20 Q 8 4 12 12 T 22 20",fill:"none",stroke:"#ef4444",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 2 20 Q 6 10 10 16 T 22 20",fill:"none",stroke:"#3b82f6",strokeWidth:"2",strokeDasharray:"2 2"})]}),diatomic_gas:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"6",cy:"12",r:"4",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"18",cy:"12",r:"4",fill:"currentColor"}),(0, p.jsx)("line",{x1:"10",y1:"12",x2:"14",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 8 6 A 6 6 0 0 1 16 6",fill:"none",stroke:"currentColor",strokeWidth:"1"})]}),random_walk:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("polyline",{points:"2,18 8,12 14,16 20,6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"2",cy:"18",r:"1.5",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"20",cy:"6",r:"1.5",fill:"currentColor"})]}),lens_convex:(0, p.jsx)("path",{d:"M 12 2 Q 18 12 12 22 Q 6 12 12 2 Z",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),lens_concave:(0, p.jsx)("path",{d:"M 8 2 L 16 2 Q 12 12 16 22 L 8 22 Q 12 12 8 2 Z",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),mirror_concave:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 16 2 Q 8 12 16 22",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"11",y1:"6",x2:"6",y2:"8",stroke:"currentColor"}),(0, p.jsx)("line",{x1:"8",y1:"12",x2:"3",y2:"12",stroke:"currentColor"}),(0, p.jsx)("line",{x1:"11",y1:"18",x2:"6",y2:"16",stroke:"currentColor"})]}),mirror_convex:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 8 4 Q 16 12 8 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"13",y1:"6",x2:"18",y2:"8",stroke:"currentColor"}),(0, p.jsx)("line",{x1:"16",y1:"12",x2:"21",y2:"12",stroke:"currentColor"}),(0, p.jsx)("line",{x1:"13",y1:"18",x2:"18",y2:"16",stroke:"currentColor"})]}),prism:(0, p.jsx)("polygon",{points:"12,4 2,20 22,20",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),glass_slab:(0, p.jsx)("rect",{x:"4",y:"6",width:"16",height:"12",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),pole_piece:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("rect",{x:"4",y:"2",width:"16",height:"20",fill:"#93c5fd",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("text",{x:"12",y:"16",fontSize:"12",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",children:"N"})]}),b_field_line:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})]}),b_field_curve:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 4 20 Q 12 2 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polygon",{points:"10,8 14,11 10,14",fill:"currentColor",transform:"rotate(30 12 11)"})]}),bezier:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("path",{d:"M 4 20 Q 4 4 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"4",cy:"4",r:"2",fill:"currentColor"}),(0, p.jsx)("line",{x1:"4",y1:"20",x2:"4",y2:"4",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"2 2"}),(0, p.jsx)("line",{x1:"20",y1:"4",x2:"4",y2:"4",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"2 2"})]}),current_wire:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, p.jsx)("polygon",{points:"15,8 20,12 15,16",fill:"currentColor"})]}),b_region_in:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"2 2"}),(0, p.jsx)("path",{d:"M 8 8 L 16 16 M 16 8 L 8 16",stroke:"currentColor",strokeWidth:"2"})]}),b_region_out:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"2 2"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor"})]}),bar_magnet:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("rect",{x:"2",y:"8",width:"20",height:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("text",{x:"7",y:"15",fontSize:"7",fill:"currentColor",fontWeight:"bold",children:"N"}),(0, p.jsx)("text",{x:"17",y:"15",fontSize:"7",fill:"currentColor",fontWeight:"bold",children:"S"})]}),coil:(0, p.jsx)("path",{d:"M2 12 C 5 -2, 10 26, 12 12 C 14 -2, 19 26, 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),meter:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("text",{x:"12",y:"16",fontSize:"10",fontWeight:"bold",textAnchor:"middle",fill:"currentColor",children:"G"})]}),ac_source:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M 7 12 Q 9.5 8 12 12 T 17 12",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),single_bond:(0, p.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),double_bond:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"3",y1:"15",x2:"17",y2:"3",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, p.jsx)("line",{x1:"7",y1:"21",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})]}),triple_bond:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"12",x2:"16",y2:"0",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"5",y1:"16",x2:"19",y2:"4",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"8",y1:"20",x2:"22",y2:"8",stroke:"currentColor",strokeWidth:"2"})]}),wedge_bond:(0, p.jsx)("polygon",{points:"4,18 20,4 22,8",fill:"currentColor"}),dash_bond:(0, p.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeDasharray:"3 3"}),benzene:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("polygon",{points:"12,2 20.6,7 20.6,17 12,22 3.4,17 3.4,7",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("circle",{cx:"12",cy:"12",r:"5",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),cyclohexane:(0, p.jsx)("polygon",{points:"12,2 20.6,7 20.6,17 12,22 3.4,17 3.4,7",fill:"none",stroke:"currentColor",strokeWidth:"2"}),cyclopentane:(0, p.jsx)("polygon",{points:"12,2 22,9.5 18,21 6,21 2,9.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),cyclobutane:(0, p.jsx)("rect",{x:"5",y:"5",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2"}),cyclopropane:(0, p.jsx)("polygon",{points:"12,4 22,18 2,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),reaction_arrow:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polyline",{points:"14,6 22,12 14,18",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),equilibrium_arrow:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"2",y1:"9",x2:"20",y2:"9",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("polyline",{points:"14,4 20,9",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"4",y1:"15",x2:"22",y2:"15",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("polyline",{points:"10,20 4,15",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),curved_arrow:(0, p.jsx)("path",{d:"M 4 18 Q 12 4 20 18 L 16 16 M 20 18 L 22 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),resonance_arrow:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polyline",{points:"8,6 2,12 8,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("polyline",{points:"16,6 22,12 16,18",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),atom:(0, p.jsx)("text",{x:"12",y:"18",fontSize:"18",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",fontFamily:"sans-serif",children:"C"}),charge_plus:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),charge_minus:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, p.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),radical:(0, p.jsx)("circle",{cx:"12",cy:"12",r:"2.5",fill:"currentColor"}),lone_pair:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"8",cy:"12",r:"2",fill:"currentColor"}),(0, p.jsx)("circle",{cx:"16",cy:"12",r:"2",fill:"currentColor"})]}),charge_pos:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#fecaca",stroke:"#ef4444",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M12 8v8M8 12h8",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}),charge_neg:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#bfdbfe",stroke:"#3b82f6",strokeWidth:"2"}),(0, p.jsx)("path",{d:"M8 12h8",stroke:"#3b82f6",strokeWidth:"2",strokeLinecap:"round"})]}),dipole:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("circle",{cx:"5",cy:"12",r:"4",fill:"#fecaca",stroke:"#ef4444"}),(0, p.jsx)("circle",{cx:"19",cy:"12",r:"4",fill:"#bfdbfe",stroke:"#3b82f6"}),(0, p.jsx)("line",{x1:"9",y1:"12",x2:"15",y2:"12",stroke:"currentColor",strokeDasharray:"2 2"})]}),charged_plate_pos:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"#ef4444",strokeWidth:"6"}),(0, p.jsx)("path",{d:"M9 6h6M12 3v6 M9 12h6M12 9v6 M9 18h6M12 15v6",stroke:"#fff",strokeWidth:"1"})]}),charged_plate_neg:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"#3b82f6",strokeWidth:"6"}),(0, p.jsx)("path",{d:"M9 6h6 M9 12h6 M9 18h6",stroke:"#fff",strokeWidth:"1"})]}),gaussian_sphere:(0, p.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"#d1fae5",fillOpacity:"0.4",stroke:"#10b981",strokeWidth:"2",strokeDasharray:"3 3"}),gaussian_cylinder:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("ellipse",{cx:"12",cy:"4",rx:"7",ry:"2",fill:"none",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, p.jsx)("ellipse",{cx:"12",cy:"20",rx:"7",ry:"2",fill:"none",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, p.jsx)("path",{d:"M5 4v16M19 4v16",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"})]}),mirror_plane:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"12",y1:"6",x2:"6",y2:"10",stroke:"currentColor"}),(0, p.jsx)("line",{x1:"12",y1:"12",x2:"6",y2:"16",stroke:"currentColor"}),(0, p.jsx)("line",{x1:"12",y1:"18",x2:"6",y2:"22",stroke:"currentColor"})]}),energy_level:(0, p.jsxs)(p.Fragment,{children:[(0, p.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("line",{x1:"4",y1:"16",x2:"20",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, p.jsx)("text",{x:"12",y:"13",fontSize:"6",fill:"currentColor",textAnchor:"middle",children:"n"})]})};var zi=Nt(Zt()),v_=({categories:t,tool:l,onSelect:o})=>{let i=c=>["chemistry","arrows","rings","symbols"].includes(c.toLowerCase());return (0, zi.jsx)("aside",{className:"w-[108px] border-r border-slate-200 bg-gradient-to-b from-slate-50 to-white flex flex-col items-center py-3 gap-4 overflow-y-auto shrink-0",children:t.map(c=>(0, zi.jsxs)("section",{className:"flex flex-col items-center w-full px-2",children:[(0, zi.jsx)("div",{className:"text-[10px] font-semibold uppercase tracking-[0.20em] text-slate-400 mb-2 w-full text-center border-b border-slate-200 pb-1.5",children:c.name}),(0, zi.jsx)("div",{className:"flex flex-col gap-1.5 w-full items-center",children:c.tools.map(f=>{let m=i(c.name)?"bg-teal-50 text-teal-700 border-teal-200 shadow-sm ring-1 ring-teal-100":"bg-blue-50 text-blue-700 border-blue-200 shadow-sm ring-1 ring-blue-100";return (0, zi.jsxs)("button",{type:"button",onClick:()=>o(f.id),title:f.name,className:`p-2 rounded-xl border flex flex-col items-center gap-1 transition-all w-full ${l===f.id?m:"text-slate-600 border-transparent hover:bg-slate-100 hover:border-slate-200"}`,children:[(0, zi.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:rb[f.id]??rb.line}),(0, zi.jsx)("span",{className:"text-[11px] font-medium tracking-tight leading-tight text-center",children:f.name})]},f.id)})})]},c.name))})};var j=Nt(Zt()),x7=t=>["gaussian_cylinder","lens_convex","lens_concave","mirror_concave","mirror_convex","b_field_curve"].includes(t),b7=t=>["text","point","charge_pos","charge_neg","point_mass","com_indicator","diatomic_gas","mass_box"].includes(t),v7=t=>["point_mass","com_indicator","pivot"].includes(t),S7=t=>["pendulum","mass_box"].includes(t),E7=t=>["sine_wave","standing_wave","wave_pulse","damped_wave","beats_graph","shm_graph","energy_graph","strobe_shm"].includes(t),M7=t=>["sine_wave","standing_wave","shm_graph","energy_graph","strobe_shm"].includes(t),_7=t=>t==="rolling_body",T7=t=>t==="spring",A7=t=>["block","cart"].includes(t),S_=({element:t,onChange:l,onDelete:o,onClose:i})=>t?(0, j.jsxs)("div",{id:"svg-engine-properties-panel",role:"region","aria-label":"Element properties",className:"absolute right-6 top-6 w-80 bg-white/95 backdrop-blur rounded-xl shadow-2xl border border-slate-200 flex flex-col p-5 z-30 max-h-[80vh] overflow-y-auto",children:[(0, j.jsxs)("div",{className:"flex justify-between items-center border-b border-slate-100 pb-3 mb-4 sticky top-0 bg-white z-10",children:[(0, j.jsx)("h3",{className:"text-[11px] font-semibold text-blue-700 uppercase tracking-[0.18em]",children:"Properties"}),(0, j.jsx)("button",{type:"button",onClick:i,className:"text-slate-400 hover:text-slate-800",children:"\u2715"})]}),(0, j.jsxs)("div",{className:"space-y-4",children:[(0, j.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.label||""),onChange:c=>l("label",c.target.value),placeholder:"Label"}),(0, j.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.value||""),onChange:c=>l("value",c.target.value),placeholder:"Value"}),(0, j.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, j.jsx)("input",{type:"color",value:String(t.color||"#0f172a"),onChange:c=>l("color",c.target.value),className:"h-10 w-full rounded-lg border border-slate-200"}),(0, j.jsx)("input",{type:"number",className:"px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.strokeWidth||2),onChange:c=>l("strokeWidth",Number(c.target.value))})]}),A7(String(t.type))&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Rotation (degrees)"}),(0, j.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.rotation??0),onChange:c=>l("rotation",Number(c.target.value))})]}),x7(String(t.type))&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:t.type==="gaussian_cylinder"?"Cylinder half-height (curveHeight)":"Curve height"}),(0, j.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.curveHeight??(t.type==="b_field_curve"?50:t.type==="gaussian_cylinder"||t.type==="mirror_concave"||t.type==="mirror_convex"?40:20)),onChange:c=>l("curveHeight",Number(c.target.value))})]}),String(t.type)==="bezier"&&(0, j.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, j.jsx)("input",{type:"checkbox",checked:!!t.showArrow,onChange:c=>l("showArrow",c.target.checked)}),(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show arrow on curve"})]}),String(t.type)==="energy_level"&&(0, j.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.energy??""),onChange:c=>l("energy",c.target.value),placeholder:"Energy (e.g. -13.6 eV)"}),b7(String(t.type))&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Font size"}),(0, j.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.fontSize??16),onChange:c=>l("fontSize",Number(c.target.value))})]}),v7(String(t.type))&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Size (radius / pivot scale)"}),(0, j.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.size??15),onChange:c=>l("size",Number(c.target.value))})]}),S7(String(t.type))&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:t.type==="mass_box"?"Block size":"Bob radius"}),(0, j.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.size??(t.type==="mass_box"?30:15)),onChange:c=>l("size",Number(c.target.value))})]}),_7(String(t.type))&&(0, j.jsxs)("div",{className:"flex flex-col gap-2 text-sm text-slate-700",children:[(0, j.jsxs)("label",{className:"flex items-center gap-2",children:[(0, j.jsx)("input",{type:"checkbox",checked:!!t.showVelocity,onChange:c=>l("showVelocity",c.target.checked)}),(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show velocity (v)"})]}),(0, j.jsxs)("label",{className:"flex items-center gap-2",children:[(0, j.jsx)("input",{type:"checkbox",checked:!!t.showOmega,onChange:c=>l("showOmega",c.target.checked)}),(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show angular velocity (\u03C9)"})]})]}),T7(String(t.type))&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Coils"}),(0, j.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.coils??6),onChange:c=>l("coils",Number(c.target.value))})]}),String(t.type)==="piston_cylinder"&&(0, j.jsxs)(j.Fragment,{children:[(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Compression (0.1\u20130.9)"}),(0, j.jsx)("input",{type:"range",min:.1,max:.9,step:.05,className:"w-full",value:Number(t.compression??.5),onChange:c=>l("compression",Number(c.target.value))})]}),(0, j.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, j.jsx)("input",{type:"checkbox",checked:!!t.showHeat,onChange:c=>l("showHeat",c.target.checked)}),(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show heat source (Q)"})]})]}),String(t.type)==="heat_engine"&&(0, j.jsxs)(j.Fragment,{children:[(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Machine type"}),(0, j.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.engineType??"engine"),onChange:c=>l("engineType",c.target.value),children:[(0, j.jsx)("option",{value:"engine",children:"Heat engine"}),(0, j.jsx)("option",{value:"refrigerator",children:"Refrigerator / pump"})]})]}),(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Efficiency (display)"}),(0, j.jsx)("input",{type:"number",min:0,max:1,step:.05,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.efficiency??.4),onChange:c=>l("efficiency",Number(c.target.value))})]})]}),String(t.type)==="thermo_process"&&(0, j.jsxs)(j.Fragment,{children:[(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Process type"}),(0, j.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.processType??"isotherm"),onChange:c=>l("processType",c.target.value),children:[(0, j.jsx)("option",{value:"isotherm",children:"Isothermal"}),(0, j.jsx)("option",{value:"adiabatic",children:"Adiabatic"}),(0, j.jsx)("option",{value:"isobaric",children:"Isobaric"}),(0, j.jsx)("option",{value:"isochoric",children:"Isochoric"})]})]}),(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Line style"}),(0, j.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.lineStyle??"solid"),onChange:c=>l("lineStyle",c.target.value),children:[(0, j.jsx)("option",{value:"solid",children:"Solid"}),(0, j.jsx)("option",{value:"dashed",children:"Dashed"}),(0, j.jsx)("option",{value:"dotted",children:"Dotted"})]})]})]}),String(t.type)==="pv_axes"&&(0, j.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"X label (V)"}),(0, j.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.xLabel??"V"),onChange:c=>l("xLabel",c.target.value)})]}),(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Y label (P)"}),(0, j.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.yLabel??"P"),onChange:c=>l("yLabel",c.target.value)})]})]}),String(t.type)==="maxwell_boltzmann"&&(0, j.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"T\u2081 (K)"}),(0, j.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.t1??300),onChange:c=>l("t1",Number(c.target.value))})]}),(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"T\u2082 (K)"}),(0, j.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.t2??600),onChange:c=>l("t2",Number(c.target.value))})]})]}),String(t.type)==="diatomic_gas"&&(0, j.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, j.jsx)("input",{type:"checkbox",checked:t.showRotations!==false,onChange:c=>l("showRotations",c.target.checked)}),(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show rotation DOF"})]}),String(t.type)==="random_walk"&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Steps"}),(0, j.jsx)("input",{type:"number",min:2,max:30,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.steps??5),onChange:c=>l("steps",Number(c.target.value))})]}),E7(String(t.type))&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Amplitude"}),(0, j.jsx)("input",{type:"number",min:1,max:200,step:1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.amplitude??40),onChange:c=>l("amplitude",Number(c.target.value))})]}),M7(String(t.type))&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Loops / waves (n)"}),(0, j.jsx)("input",{type:"number",min:.5,max:20,step:.5,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.loops??2),onChange:c=>l("loops",Number(c.target.value))})]}),String(t.type)==="shm_graph"&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Graph function"}),(0, j.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.graphType??"x"),onChange:c=>l("graphType",c.target.value),children:[(0, j.jsx)("option",{value:"x",children:"Position x(t)"}),(0, j.jsx)("option",{value:"v",children:"Velocity v(t)"}),(0, j.jsx)("option",{value:"a",children:"Acceleration a(t)"}),(0, j.jsx)("option",{value:"all",children:"Compare all three"})]})]}),String(t.type)==="energy_graph"&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Domain"}),(0, j.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.domain??"time"),onChange:c=>l("domain",c.target.value),children:[(0, j.jsx)("option",{value:"time",children:"Versus time (t)"}),(0, j.jsx)("option",{value:"position",children:"Versus position (x)"})]})]}),String(t.type)==="pendulum"&&(0, j.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, j.jsx)("input",{type:"checkbox",checked:!!t.showForces,onChange:c=>l("showForces",c.target.checked)}),(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show force vectors"})]}),String(t.type)==="phasor"&&(0, j.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, j.jsx)("input",{type:"checkbox",checked:!!t.showProjection,onChange:c=>l("showProjection",c.target.checked)}),(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show axis projections"})]}),String(t.type)==="damped_wave"&&(0, j.jsxs)(j.Fragment,{children:[(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Damping (b/2m)"}),(0, j.jsx)("input",{type:"number",min:0,max:.1,step:.005,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.damping??.015),onChange:c=>l("damping",Number(c.target.value))})]}),(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Angular frequency (\u03C9)"}),(0, j.jsx)("input",{type:"number",min:1,max:50,step:1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.frequency??10),onChange:c=>l("frequency",Number(c.target.value))})]})]}),String(t.type)==="beats_graph"&&(0, j.jsxs)(j.Fragment,{children:[(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Carrier frequency (avg f)"}),(0, j.jsx)("input",{type:"number",min:5,max:50,step:1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.frequency??15),onChange:c=>l("frequency",Number(c.target.value))})]}),(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Beat frequency (\u0394f)"}),(0, j.jsx)("input",{type:"number",min:.1,max:10,step:.1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.beatFreq??2),onChange:c=>l("beatFreq",Number(c.target.value))})]})]}),String(t.type)==="wavefronts"&&(0, j.jsxs)(j.Fragment,{children:[(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Velocity ratio (v_s / v)"}),(0, j.jsx)("input",{type:"number",min:0,max:.9,step:.1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.velocityRatio??.5),onChange:c=>l("velocityRatio",Number(c.target.value))})]}),(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Rings"}),(0, j.jsx)("input",{type:"number",min:1,max:20,step:1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.rings??5),onChange:c=>l("rings",Number(c.target.value))})]})]}),String(t.type)==="mach_cone"&&(0, j.jsxs)("label",{className:"block space-y-1",children:[(0, j.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Mach number (M)"}),(0, j.jsx)("input",{type:"number",min:1.05,max:5,step:.1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.machNumber??2),onChange:c=>l("machNumber",Number(c.target.value))})]}),(0, j.jsx)("button",{type:"button",onClick:o,className:"w-full py-2 bg-red-50 text-red-600 hover:bg-red-100 rounded-lg text-sm font-semibold transition",children:"Delete Element"})]})]}):null;var Ya=Nt(Zt()),E_=({open:t,jsonText:l,setJsonText:o,onClose:i,onLoad:c})=>t?(0, Ya.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:(0, Ya.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-2xl flex flex-col max-h-full",children:[(0, Ya.jsxs)("div",{className:"px-6 py-4 border-b flex justify-between items-center",children:[(0, Ya.jsx)("h2",{className:"text-lg font-bold text-gray-800",children:"Diagram Data (JSON)"}),(0, Ya.jsx)("button",{onClick:i,className:"text-gray-500 hover:text-gray-800 font-bold",children:"\u2715"})]}),(0, Ya.jsx)("div",{className:"p-6 flex-1 overflow-hidden flex flex-col gap-4",children:(0, Ya.jsx)("textarea",{value:l,onChange:f=>o(f.target.value),className:"w-full flex-1 min-h-[300px] p-4 font-mono text-sm border border-gray-300 rounded-md",spellCheck:"false"})}),(0, Ya.jsxs)("div",{className:"px-6 py-4 border-t bg-gray-50 flex justify-end gap-3",children:[(0, Ya.jsx)("button",{onClick:i,className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-md transition",children:"Cancel"}),(0, Ya.jsx)("button",{onClick:c,className:"px-4 py-2 text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 rounded-md transition shadow-sm",children:"Load Diagram"})]})]})}):null;var De=Nt(Zt());var z7=qo.mechanics,sb=(0, Sl.forwardRef)(function({initialElements:l,toolCategories:o,preset:i,enablePresetSwitch:c=true,onPresetChange:f,onChange:h,viewMode:m,embedded:x=false,documentTitle:E,hideDocumentTitle:T=false,onExport:M},v){let[_,$]=(0, Sl.useState)(i??"mechanics"),X=i!==void 0&&typeof f=="function";(0, Sl.useEffect)(()=>{X&&i&&$(i);},[i,X]);let I=X?i??_:_,C=qo[I]??z7,[z,U]=(0, Sl.useState)(0);(0, Sl.useEffect)(()=>{U(0);},[I]);let B=(0, Sl.useMemo)(()=>l??(I==="light"?s0[z].elements:C.elements),[l,I,z,C.elements]),L=b_(B,I),gt=I==="light"&&l==null;(0, Sl.useEffect)(()=>{h?.(L.elements);},[L.elements,h]),(0, Sl.useEffect)(()=>{typeof m=="boolean"&&L.setIsViewMode(m);},[m,L]),(0, Sl.useEffect)(()=>{L.selectedId||L.setShowProperties(false);},[L.selectedId,L.setShowProperties]);let et=o??C.toolCategories;(0, Sl.useImperativeHandle)(v,()=>({getData:()=>L.elements,setData:Mt=>L.setElements(Mt),clear:()=>L.setElements([])}),[L.elements,L.setElements]);let nt=E??`${C.name} Editor`,vt=()=>{let Mt=JSON.stringify(L.elements,null,2);M?.({elements:L.elements,json:Mt}),typeof navigator<"u"&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(Mt);},Z=(Mt,Q)=>{L.setElements(mt=>mt.map(ht=>ht.id===L.selectedId?{...ht,[Mt]:Q}:ht));},re=()=>{L.selectedId&&(L.setElements(Mt=>Mt.filter(Q=>Q.id!==L.selectedId)),L.setSelectedId(null),L.setShowProperties(false));},Et=x?"flex flex-col h-full min-h-0 w-full bg-white text-gray-900 font-sans":"flex flex-col h-screen w-full bg-white text-gray-900 font-sans",st="text-xs md:text-sm px-2.5 md:px-3.5 py-2 rounded-lg font-medium transition border border-transparent";return (0, De.jsxs)("div",{className:Et,children:[(0, De.jsxs)("header",{className:"border-b border-slate-200 bg-white/95 backdrop-blur flex items-center justify-between px-3 md:px-6 py-2 shadow-sm z-20 shrink-0 gap-2 min-w-0",children:[(0, De.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 min-w-0",children:[c&&(0, De.jsxs)("div",{className:"relative shrink-0",children:[(0, De.jsx)("select",{value:I,onChange:Mt=>{let Q=Mt.target.value;X||$(Q),f?.(Q);},className:"appearance-none text-xs md:text-sm pl-3 pr-8 py-2 rounded-full border border-slate-200 bg-slate-50 text-slate-700 shadow-sm hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-blue-200",title:"Switch preset",children:Object.keys(qo).map(Mt=>(0, De.jsx)("option",{value:Mt,children:qo[Mt].name},Mt))}),(0, De.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-slate-500 text-xs",children:"\u25BC"})]}),gt&&(0, De.jsxs)("div",{className:"relative shrink-0 max-w-[min(100%,280px)]",children:[(0, De.jsx)("select",{value:z,onChange:Mt=>{let Q=Number(Mt.target.value);U(Q),L.setSelectedId(null),L.setShowProperties(false);},className:"w-full appearance-none text-xs md:text-sm pl-3 pr-8 py-2 rounded-full border border-slate-200 bg-sky-50 text-slate-800 shadow-sm hover:bg-sky-100 focus:outline-none focus:ring-2 focus:ring-sky-200 truncate",title:"Load JEE/NEET topic scene","aria-label":"Light syllabus topic",children:s0.map((Mt,Q)=>(0, De.jsx)("option",{value:Q,children:Mt.name},Mt.name))}),(0, De.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-slate-500 text-xs",children:"\u25BC"})]}),!T&&(0, De.jsx)("h1",{className:"text-lg md:text-2xl font-semibold tracking-tight text-slate-800 truncate min-w-0",children:nt})]}),(0, De.jsxs)("div",{className:`flex gap-1.5 md:gap-3 items-center flex-wrap justify-end ${T?"ml-auto w-full":"ml-auto"}`,children:[(0, De.jsx)("button",{type:"button",onClick:vt,className:`${st} text-slate-700 hover:bg-emerald-50 hover:text-emerald-700`,children:"Copy JSON"}),(0, De.jsx)("button",{type:"button",onClick:()=>{L.setJsonText(JSON.stringify(L.elements,null,2)),L.setShowJsonModal(true);},className:`${st} text-slate-700 hover:bg-blue-50 hover:text-blue-700`,children:"Export/Import"}),L.selectedId!=null&&!L.isViewMode&&(0, De.jsxs)("button",{type:"button",onClick:()=>L.setShowProperties(Mt=>!Mt),className:`${st} inline-flex items-center gap-1.5 ${L.showProperties?"bg-violet-100 text-violet-800 border-violet-200":"text-slate-700 hover:bg-violet-50 hover:text-violet-800"}`,title:L.showProperties?"Hide properties":"Edit properties","aria-expanded":L.showProperties,"aria-controls":"svg-engine-properties-panel",children:[(0, De.jsx)("svg",{className:"w-4 h-4 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":true,children:(0, De.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})}),(0, De.jsx)("span",{className:"hidden sm:inline",children:"Properties"})]}),(0, De.jsx)("button",{type:"button",onClick:()=>{L.setIsViewMode(!L.isViewMode),L.setSelectedId(null),L.setTool("select");},className:`${st} ${L.isViewMode?"bg-blue-100 text-blue-800 border-blue-200":"text-slate-700 hover:bg-blue-50 hover:text-blue-700"}`,children:L.isViewMode?"Exit Preview":"Preview Mode"})]})]}),(0, De.jsxs)("div",{className:"flex flex-1 overflow-hidden min-h-0",children:[!L.isViewMode&&(0, De.jsx)(v_,{categories:et,tool:L.tool,onSelect:Mt=>{L.setTool(Mt),L.setSelectedId(null);}}),(0, De.jsxs)("div",{className:"flex-1 relative overflow-hidden bg-slate-50 min-h-0",children:[(0, De.jsx)(H1,{svgRef:L.svgRef,className:"w-full h-full",elements:L.elements,drawing:L.drawing,selectedId:L.selectedId,viewMode:L.isViewMode,onBackgroundMouseDown:L.isViewMode?void 0:L.handleMouseDown,onBackgroundMouseMove:L.isViewMode?void 0:L.handleMouseMove,onBackgroundMouseUp:L.isViewMode?void 0:L.handleMouseUp,onBackgroundMouseLeave:L.isViewMode?void 0:L.handleMouseUp,onElementMouseDown:L.onElementMouseDown}),L.showProperties&&L.selectedId&&!L.isViewMode&&(0, De.jsx)(S_,{element:L.selectedElement,onChange:Z,onDelete:re,onClose:()=>L.setShowProperties(false)})]})]}),(0, De.jsx)(E_,{open:L.showJsonModal,jsonText:L.jsonText,setJsonText:L.setJsonText,onClose:()=>L.setShowJsonModal(false),onLoad:()=>{try{L.setElements(JSON.parse(L.jsonText)),L.setShowJsonModal(!1);}catch{alert("Invalid JSON format");}}})]})});var $l=Nt(Zt()),D7=t=>{switch(t){case "top-left":return {top:16,left:16};case "top-right":return {top:16,right:16};case "bottom-left":return {bottom:16,left:16};case "bottom-right":return {bottom:16,right:16};case "center":return {top:"50%",left:"50%",transform:"translate(-50%, -50%)"};default:return {top:16,right:16}}},M_=(0, Jn.forwardRef)(function({mode:l="floating",title:o="Diagram editor",startMinimized:i=false,position:c="top-right",width:f="min(960px, 92vw)",height:h="min(640px, 78vh)",onChange:m,onExport:x,onShellMinimize:E,onShellMaximize:T,onShellClose:M,documentTitle:v,..._},$){let X=(0, Jn.useRef)(null),[I,C]=(0, Jn.useState)(i),[z,U]=(0, Jn.useState)(false),[B,L]=(0, Jn.useState)(false),[gt,et]=(0, Jn.useState)({x:0,y:0}),nt=(0, Jn.useRef)(null),vt=(0, Jn.useRef)(null);(0, Jn.useImperativeHandle)($,()=>({getData:()=>X.current?.getData()??[],setData:Q=>X.current?.setData(Q),clear:()=>X.current?.clear(),minimize:()=>{C(true),U(false);},maximize:()=>{C(false),U(true);},restore:()=>{C(false),U(false);},close:()=>L(true),open:()=>L(false)}),[]);let Z=(0, Jn.useCallback)(Q=>{x?.(Q);},[x]),re=Q=>{l!=="floating"||z||(Q.preventDefault(),nt.current={startX:Q.clientX,startY:Q.clientY,ox:gt.x,oy:gt.y},Q.currentTarget.setPointerCapture(Q.pointerId));},Et=Q=>{if(!nt.current||l!=="floating"||z)return;let mt=Q.clientX-nt.current.startX,ht=Q.clientY-nt.current.startY;et({x:nt.current.ox+mt,y:nt.current.oy+ht});},st=Q=>{nt.current=null;try{Q.currentTarget.releasePointerCapture(Q.pointerId);}catch{}},Mt=(0, Jn.useMemo)(()=>{if(l!=="floating")return {};let Q=c==="center"?`translate(calc(-50% + ${gt.x}px), calc(-50% + ${gt.y}px))`:`translate(${gt.x}px, ${gt.y}px)`,mt={position:"fixed",zIndex:9999,display:B?"none":"flex",flexDirection:"column",background:"#fff",borderRadius:"12px",boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)",border:"1px solid #e2e8f0",overflow:"hidden",transform:Q};if(z)return {...mt,inset:16,width:"auto",height:"auto",maxWidth:"none",maxHeight:"none",transform:`translate(${gt.x}px, ${gt.y}px)`};let ht=I?"auto":void 0;return {...mt,...D7(c),width:f,height:I?ht:h,maxHeight:I?"none":"90vh",maxWidth:"96vw"}},[l,B,z,I,c,f,h,gt]);return l==="inline"?(0, $l.jsx)("div",{className:"flex flex-col bg-white rounded-lg border border-gray-200 overflow-hidden",style:{width:f,height:h},children:(0, $l.jsx)(sb,{ref:X,..._,embedded:true,documentTitle:v??o,onChange:m,onExport:Z})}):(0, $l.jsxs)("div",{ref:vt,style:Mt,className:"font-sans text-gray-900",children:[(0, $l.jsxs)("div",{className:"h-11 shrink-0 flex items-center justify-between px-3 border-b border-gray-100 bg-slate-50 cursor-grab active:cursor-grabbing select-none",onPointerDown:re,onPointerMove:Et,onPointerUp:st,onPointerCancel:st,children:[(0, $l.jsx)("span",{className:"text-sm font-semibold text-slate-800 truncate pr-2",children:o}),(0, $l.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0, $l.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-slate-200 text-slate-600",title:I?"Expand":"Minimize",onClick:Q=>{Q.stopPropagation(),C(mt=>!mt),I||U(false),E?.();},children:I?"\u25A2":"\u2212"}),(0, $l.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-slate-200 text-slate-600",title:z?"Restore":"Maximize",onClick:Q=>{Q.stopPropagation(),U(mt=>!mt),z||C(false),T?.();},children:"\u25A1"}),(0, $l.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-red-100 text-red-600",title:"Close",onClick:Q=>{Q.stopPropagation(),L(true),M?.();},children:"\xD7"})]})]}),(0, $l.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",style:I?{maxHeight:0,opacity:0,overflow:"hidden",pointerEvents:"none"}:void 0,"aria-hidden":I,children:(0, $l.jsx)(sb,{ref:X,..._,embedded:true,hideDocumentTitle:true,documentTitle:v,onChange:m,onExport:Z})}),I&&(0, $l.jsx)("div",{className:"px-3 py-2 text-xs text-slate-500 border-t border-gray-100 bg-white",children:"Editor minimized \u2014 click \u25A2 on the bar to expand."})]})});var tk=Nt(PD());function yp(t,l){let o=(0, tk.createRoot)(t);return o.render(l),o}function mp(t){t.unmount();}var lk=Nt(Zt());function aU(t){if(!(t==null||t===""))try{let l=JSON.parse(t);return Array.isArray(l)?l:void 0}catch{return}}function ek(t,l){return t===null||t===""?l:t==="true"||t===""}var kf=class extends HTMLElement{constructor(){super(...arguments);this.editorRef=(0, nk.createRef)();this._elements=null;this._preset=null;this._mode=null;this._viewMode=null;this.committedInitial=null;this.pendingReseed=true;}connectedCallback(){this.render();}disconnectedCallback(){this.root&&(mp(this.root),this.root=void 0);}attributeChangedCallback(o){(o==="data"||o==="preset")&&(this._elements=null,this.pendingReseed=true),this.isConnected&&this.render();}get elements(){return this.editorRef.current?.getData()??this.committedInitial??[]}set elements(o){this._elements=o.slice(),this.pendingReseed=true,this.render();}get preset(){let o=this._preset??this.getAttribute("preset");return o&&qo[o]?o:void 0}set preset(o){this._preset=o??null,this.pendingReseed=true,this.render();}get mode(){let o=this._mode??this.getAttribute("mode");return o==="inline"||o==="floating"?o:"floating"}set mode(o){this._mode=o,this.render();}get viewMode(){return this._viewMode??ek(this.getAttribute("view-mode"),false)}set viewMode(o){this._viewMode=o,this.render();}getData(){return this.editorRef.current?.getData()??this.committedInitial??[]}setData(o){this._elements=o.slice(),this.committedInitial=o.slice(),this.pendingReseed=false,this.editorRef.current?this.editorRef.current.setData(o):this.render();}toJSON(){return JSON.stringify(this.getData(),null,2)}clear(){this._elements=[],this.committedInitial=[],this.pendingReseed=false,this.editorRef.current?this.editorRef.current.clear():this.render();}minimize(){this.editorRef.current?.minimize();}maximize(){this.editorRef.current?.maximize();}restore(){this.editorRef.current?.restore();}close(){this.editorRef.current?.close();}readParsedInitial(){let o=aU(this.getAttribute("data")),i=this._preset??this.getAttribute("preset"),c=i&&qo[i]?qo[i]:qo.mechanics;return this._elements?this._elements.slice():o?o.slice():c.elements.slice()}render(){(this.pendingReseed||this.committedInitial===null)&&(this.committedInitial=this.readParsedInitial(),this.pendingReseed=false);let o=this.mode,i=this.viewMode,c=this.getAttribute("title")??"Diagram editor",f=ek(this.getAttribute("start-minimized"),false),h=this.getAttribute("position")??"top-right",m=this.getAttribute("width"),x=this.getAttribute("height"),E=m===""?void 0:m??void 0,T=x===""?void 0:x??void 0,M=this.preset,v=this.committedInitial,_=(0, lk.jsx)(M_,{ref:this.editorRef,mode:o,title:c,startMinimized:f,position:h,width:E,height:T,preset:M,initialElements:v,viewMode:i,onChange:$=>{this.dispatchEvent(new CustomEvent("change",{detail:{elements:$},bubbles:true,composed:true}));},onExport:$=>{this.dispatchEvent(new CustomEvent("export",{detail:{elements:$.elements,json:$.json},bubbles:true,composed:true}));},onShellMinimize:()=>{this.dispatchEvent(new CustomEvent("minimize",{bubbles:true,composed:true}));},onShellMaximize:()=>{this.dispatchEvent(new CustomEvent("maximize",{bubbles:true,composed:true}));},onShellClose:()=>{this.dispatchEvent(new CustomEvent("close",{bubbles:true,composed:true}));}});this.root?this.root.render(_):this.root=yp(this,_);}};kf.observedAttributes=["mode","preset","data","view-mode","title","start-minimized","position","width","height"];var ok=Nt(Na());var ZS=Nt(Zt());function ak(t){if(!(t==null||t===""))try{let l=JSON.parse(t);return Array.isArray(l)?l:void 0}catch{return}}function oU(t,l){return t===null||t===""?l:t==="true"||t===""}var Cf=class extends HTMLElement{constructor(){super(...arguments);this.svgRef=(0, ok.createRef)();this._elements=null;this._showGrid=null;}connectedCallback(){this.render();}disconnectedCallback(){this.root&&(mp(this.root),this.root=void 0);}attributeChangedCallback(){this.isConnected&&this.render();}get elements(){return this._elements??ak(this.getAttribute("data"))??[]}set elements(o){this._elements=o.slice(),this.render();}get showGrid(){return this._showGrid??oU(this.getAttribute("show-grid"),false)}set showGrid(o){this._showGrid=o,this.render();}setData(o){this._elements=o.slice(),this.render();}toSvg(){return this.svgRef.current?.outerHTML??""}render(){let o=ak(this.getAttribute("data")),i=this._elements??o??[],c=this.getAttribute("width")??"100%",f=this.getAttribute("height")??"100%",h=this.showGrid,m=(0, ZS.jsx)("div",{style:{width:c,height:f},className:"bg-white overflow-hidden",children:(0, ZS.jsx)(H1,{elements:i,viewMode:true,showGrid:h,className:"w-full h-full block",svgRef:this.svgRef})});this.root?this.root.render(m):this.root=yp(this,m);}};Cf.observedAttributes=["data","width","height","show-grid"];function ik(){typeof window>"u"||typeof customElements>"u"||(customElements.get("codefrydev-svg-engine")||customElements.define("codefrydev-svg-engine",kf),customElements.get("codefrydev-svg-engine-prev")||customElements.define("codefrydev-svg-engine-prev",Cf));}ik();/*! Bundled license information:
|
|
1
|
+
var CodefrydevSvgEngine=(function(exports){'use strict';var yy=Object.create;var xu=Object.defineProperty;var hy=Object.getOwnPropertyDescriptor;var my=Object.getOwnPropertyNames;var xy=Object.getPrototypeOf,py=Object.prototype.hasOwnProperty;var Ke=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var gy=(t,e,n,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of my(e))!py.call(t,a)&&a!==n&&xu(t,a,{get:()=>e[a],enumerable:!(l=hy(e,a))||l.enumerable});return t};var j=(t,e,n)=>(n=t!=null?yy(xy(t)):{},gy(xu(n,"default",{value:t,enumerable:true}),t));var Wu=Ke(J=>{var zr=Symbol.for("react.transitional.element"),by=Symbol.for("react.portal"),vy=Symbol.for("react.fragment"),ky=Symbol.for("react.strict_mode"),Sy=Symbol.for("react.profiler"),My=Symbol.for("react.consumer"),_y=Symbol.for("react.context"),Ey=Symbol.for("react.forward_ref"),zy=Symbol.for("react.suspense"),Wy=Symbol.for("react.memo"),ku=Symbol.for("react.lazy"),Cy=Symbol.for("react.activity"),pu=Symbol.iterator;function $y(t){return t===null||typeof t!="object"?null:(t=pu&&t[pu]||t["@@iterator"],typeof t=="function"?t:null)}var Su={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mu=Object.assign,_u={};function Ol(t,e,n){this.props=t,this.context=e,this.refs=_u,this.updater=n||Su;}Ol.prototype.isReactComponent={};Ol.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState");};Ol.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate");};function Eu(){}Eu.prototype=Ol.prototype;function Wr(t,e,n){this.props=t,this.context=e,this.refs=_u,this.updater=n||Su;}var Cr=Wr.prototype=new Eu;Cr.constructor=Wr;Mu(Cr,Ol.prototype);Cr.isPureReactComponent=true;var gu=Array.isArray;function Er(){}var gt={H:null,A:null,T:null,S:null},zu=Object.prototype.hasOwnProperty;function $r(t,e,n){var l=n.ref;return {$$typeof:zr,type:t,key:e,ref:l!==void 0?l:null,props:n}}function Ay(t,e){return $r(t.type,e,t.props)}function Ar(t){return typeof t=="object"&&t!==null&&t.$$typeof===zr}function Dy(t){var e={"=":"=0",":":"=2"};return "$"+t.replace(/[=:]/g,function(n){return e[n]})}var bu=/\/+/g;function _r(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Dy(""+t.key):e.toString(36)}function Ty(t){switch(t.status){case "fulfilled":return t.value;case "rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Er,Er):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e);},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e);})),t.status){case "fulfilled":return t.value;case "rejected":throw t.reason}}throw t}function Nl(t,e,n,l,a){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var o=false;if(t===null)o=true;else switch(i){case "bigint":case "string":case "number":o=true;break;case "object":switch(t.$$typeof){case zr:case by:o=true;break;case ku:return o=t._init,Nl(o(t._payload),e,n,l,a)}}if(o)return a=a(t),o=l===""?"."+_r(t,0):l,gu(a)?(n="",o!=null&&(n=o.replace(bu,"$&/")+"/"),Nl(a,e,n,"",function(u){return u})):a!=null&&(Ar(a)&&(a=Ay(a,n+(a.key==null||t&&t.key===a.key?"":(""+a.key).replace(bu,"$&/")+"/")+o)),e.push(a)),1;o=0;var r=l===""?".":l+":";if(gu(t))for(var s=0;s<t.length;s++)l=t[s],i=r+_r(l,s),o+=Nl(l,e,n,i,a);else if(s=$y(t),typeof s=="function")for(t=s.call(t),s=0;!(l=t.next()).done;)l=l.value,i=r+_r(l,s++),o+=Nl(l,e,n,i,a);else if(i==="object"){if(typeof t.then=="function")return Nl(Ty(t),e,n,l,a);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return o}function Ri(t,e,n){if(t==null)return t;var l=[],a=0;return Nl(t,l,"","",function(i){return e.call(n,i,a++)}),l}function wy(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n);},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n);}),t._status===-1&&(t._status=0,t._result=e);}if(t._status===1)return t._result.default;throw t._result}var vu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t);},Ny={map:Ri,forEach:function(t,e,n){Ri(t,function(){e.apply(this,arguments);},n);},count:function(t){var e=0;return Ri(t,function(){e++;}),e},toArray:function(t){return Ri(t,function(e){return e})||[]},only:function(t){if(!Ar(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};J.Activity=Cy;J.Children=Ny;J.Component=Ol;J.Fragment=vy;J.Profiler=Sy;J.PureComponent=Wr;J.StrictMode=ky;J.Suspense=zy;J.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=gt;J.__COMPILER_RUNTIME={__proto__:null,c:function(t){return gt.H.useMemoCache(t)}};J.cache=function(t){return function(){return t.apply(null,arguments)}};J.cacheSignal=function(){return null};J.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var l=Mu({},t.props),a=t.key;if(e!=null)for(i in e.key!==void 0&&(a=""+e.key),e)!zu.call(e,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&e.ref===void 0||(l[i]=e[i]);var i=arguments.length-2;if(i===1)l.children=n;else if(1<i){for(var o=Array(i),r=0;r<i;r++)o[r]=arguments[r+2];l.children=o;}return $r(t.type,a,l)};J.createContext=function(t){return t={$$typeof:_y,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:My,_context:t},t};J.createElement=function(t,e,n){var l,a={},i=null;if(e!=null)for(l in e.key!==void 0&&(i=""+e.key),e)zu.call(e,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(a[l]=e[l]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var r=Array(o),s=0;s<o;s++)r[s]=arguments[s+2];a.children=r;}if(t&&t.defaultProps)for(l in o=t.defaultProps,o)a[l]===void 0&&(a[l]=o[l]);return $r(t,i,a)};J.createRef=function(){return {current:null}};J.forwardRef=function(t){return {$$typeof:Ey,render:t}};J.isValidElement=Ar;J.lazy=function(t){return {$$typeof:ku,_payload:{_status:-1,_result:t},_init:wy}};J.memo=function(t,e){return {$$typeof:Wy,type:t,compare:e===void 0?null:e}};J.startTransition=function(t){var e=gt.T,n={};gt.T=n;try{var l=t(),a=gt.S;a!==null&&a(n,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(Er,vu);}catch(i){vu(i);}finally{e!==null&&n.types!==null&&(e.types=n.types),gt.T=e;}};J.unstable_useCacheRefresh=function(){return gt.H.useCacheRefresh()};J.use=function(t){return gt.H.use(t)};J.useActionState=function(t,e,n){return gt.H.useActionState(t,e,n)};J.useCallback=function(t,e){return gt.H.useCallback(t,e)};J.useContext=function(t){return gt.H.useContext(t)};J.useDebugValue=function(){};J.useDeferredValue=function(t,e){return gt.H.useDeferredValue(t,e)};J.useEffect=function(t,e){return gt.H.useEffect(t,e)};J.useEffectEvent=function(t){return gt.H.useEffectEvent(t)};J.useId=function(){return gt.H.useId()};J.useImperativeHandle=function(t,e,n){return gt.H.useImperativeHandle(t,e,n)};J.useInsertionEffect=function(t,e){return gt.H.useInsertionEffect(t,e)};J.useLayoutEffect=function(t,e){return gt.H.useLayoutEffect(t,e)};J.useMemo=function(t,e){return gt.H.useMemo(t,e)};J.useOptimistic=function(t,e){return gt.H.useOptimistic(t,e)};J.useReducer=function(t,e,n){return gt.H.useReducer(t,e,n)};J.useRef=function(t){return gt.H.useRef(t)};J.useState=function(t){return gt.H.useState(t)};J.useSyncExternalStore=function(t,e,n){return gt.H.useSyncExternalStore(t,e,n)};J.useTransition=function(){return gt.H.useTransition()};J.version="19.2.5";});var sn=Ke((mp,Cu)=>{Cu.exports=Wu();});var Fu=Ke(Yi=>{var ch=Symbol.for("react.transitional.element"),uh=Symbol.for("react.fragment");function Ku(t,e,n){var l=null;if(n!==void 0&&(l=""+n),e.key!==void 0&&(l=""+e.key),"key"in e){n={};for(var a in e)a!=="key"&&(n[a]=e[a]);}else n=e;return e=n.ref,{$$typeof:ch,type:t,key:l,ref:e!==void 0?e:null,props:n}}Yi.Fragment=uh;Yi.jsx=Ku;Yi.jsxs=Ku;});var F=Ke((Up,Pu)=>{Pu.exports=Fu();});var w0=Ke(Mt=>{function Yr(t,e){var n=t.length;t.push(e);t:for(;0<n;){var l=n-1>>>1,a=t[l];if(0<qi(a,e))t[l]=e,t[n]=a,n=l;else break t}}function tn(t){return t.length===0?null:t[0]}function Gi(t){if(t.length===0)return null;var e=t[0],n=t.pop();if(n!==e){t[0]=n;t:for(var l=0,a=t.length,i=a>>>1;l<i;){var o=2*(l+1)-1,r=t[o],s=o+1,u=t[s];if(0>qi(r,n))s<a&&0>qi(u,r)?(t[l]=u,t[s]=n,l=s):(t[l]=r,t[o]=n,l=o);else if(s<a&&0>qi(u,n))t[l]=u,t[s]=n,l=s;else break t}}return e}function qi(t,e){var n=t.sortIndex-e.sortIndex;return n!==0?n:t.id-e.id}Mt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(_0=performance,Mt.unstable_now=function(){return _0.now()}):(Hr=Date,E0=Hr.now(),Mt.unstable_now=function(){return Hr.now()-E0});var _0,Hr,E0,yn=[],Hn=[],Hh=1,Ne=null,It=3,Ur=false,Ha=false,La=false,Br=false,C0=typeof setTimeout=="function"?setTimeout:null,$0=typeof clearTimeout=="function"?clearTimeout:null,z0=typeof setImmediate<"u"?setImmediate:null;function Qi(t){for(var e=tn(Hn);e!==null;){if(e.callback===null)Gi(Hn);else if(e.startTime<=t)Gi(Hn),e.sortIndex=e.expirationTime,Yr(yn,e);else break;e=tn(Hn);}}function Xr(t){if(La=false,Qi(t),!Ha)if(tn(yn)!==null)Ha=true,Ul||(Ul=true,Yl());else {var e=tn(Hn);e!==null&&qr(Xr,e.startTime-t);}}var Ul=false,Ra=-1,A0=5,D0=-1;function T0(){return Br?true:!(Mt.unstable_now()-D0<A0)}function Lr(){if(Br=false,Ul){var t=Mt.unstable_now();D0=t;var e=true;try{t:{Ha=!1,La&&(La=!1,$0(Ra),Ra=-1),Ur=!0;var n=It;try{e:{for(Qi(t),Ne=tn(yn);Ne!==null&&!(Ne.expirationTime>t&&T0());){var l=Ne.callback;if(typeof l=="function"){Ne.callback=null,It=Ne.priorityLevel;var a=l(Ne.expirationTime<=t);if(t=Mt.unstable_now(),typeof a=="function"){Ne.callback=a,Qi(t),e=!0;break e}Ne===tn(yn)&&Gi(yn),Qi(t);}else Gi(yn);Ne=tn(yn);}if(Ne!==null)e=!0;else {var i=tn(Hn);i!==null&&qr(Xr,i.startTime-t),e=!1;}}break t}finally{Ne=null,It=n,Ur=!1;}e=void 0;}}finally{e?Yl():Ul=false;}}}var Yl;typeof z0=="function"?Yl=function(){z0(Lr);}:typeof MessageChannel<"u"?(Rr=new MessageChannel,W0=Rr.port2,Rr.port1.onmessage=Lr,Yl=function(){W0.postMessage(null);}):Yl=function(){C0(Lr,0);};var Rr,W0;function qr(t,e){Ra=C0(function(){t(Mt.unstable_now());},e);}Mt.unstable_IdlePriority=5;Mt.unstable_ImmediatePriority=1;Mt.unstable_LowPriority=4;Mt.unstable_NormalPriority=3;Mt.unstable_Profiling=null;Mt.unstable_UserBlockingPriority=2;Mt.unstable_cancelCallback=function(t){t.callback=null;};Mt.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A0=0<t?Math.floor(1e3/t):5;};Mt.unstable_getCurrentPriorityLevel=function(){return It};Mt.unstable_next=function(t){switch(It){case 1:case 2:case 3:var e=3;break;default:e=It;}var n=It;It=e;try{return t()}finally{It=n;}};Mt.unstable_requestPaint=function(){Br=true;};Mt.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3;}var n=It;It=t;try{return e()}finally{It=n;}};Mt.unstable_scheduleCallback=function(t,e,n){var l=Mt.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?l+n:l):n=l,t){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3;}return a=n+a,t={id:Hh++,callback:e,priorityLevel:t,startTime:n,expirationTime:a,sortIndex:-1},n>l?(t.sortIndex=n,Yr(Hn,t),tn(yn)===null&&t===tn(Hn)&&(La?($0(Ra),Ra=-1):La=true,qr(Xr,n-l))):(t.sortIndex=a,Yr(yn,t),Ha||Ur||(Ha=true,Ul||(Ul=true,Yl()))),t};Mt.unstable_shouldYield=T0;Mt.unstable_wrapCallback=function(t){var e=It;return function(){var n=It;It=e;try{return t.apply(this,arguments)}finally{It=n;}}};});var O0=Ke((nb,N0)=>{N0.exports=w0();});var L0=Ke(ie=>{var Lh=sn();function H0(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);}return "Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ln(){}var ae={d:{f:Ln,r:function(){throw Error(H0(522))},D:Ln,C:Ln,L:Ln,m:Ln,X:Ln,S:Ln,M:Ln},p:0,findDOMNode:null},Rh=Symbol.for("react.portal");function Yh(t,e,n){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return {$$typeof:Rh,key:l==null?null:""+l,children:t,containerInfo:e,implementation:n}}var Ya=Lh.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ji(t,e){if(t==="font")return "";if(typeof e=="string")return e==="use-credentials"?e:""}ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ae;ie.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(H0(299));return Yh(t,e,null,n)};ie.flushSync=function(t){var e=Ya.T,n=ae.p;try{if(Ya.T=null,ae.p=2,t)return t()}finally{Ya.T=e,ae.p=n,ae.d.f();}};ie.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,ae.d.C(t,e));};ie.prefetchDNS=function(t){typeof t=="string"&&ae.d.D(t);};ie.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,l=ji(n,e.crossOrigin),a=typeof e.integrity=="string"?e.integrity:void 0,i=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?ae.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:l,integrity:a,fetchPriority:i}):n==="script"&&ae.d.X(t,{crossOrigin:l,integrity:a,fetchPriority:i,nonce:typeof e.nonce=="string"?e.nonce:void 0});}};ie.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=ji(e.as,e.crossOrigin);ae.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0});}}else e==null&&ae.d.M(t);};ie.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,l=ji(n,e.crossOrigin);ae.d.L(t,n,{crossOrigin:l,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0});}};ie.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=ji(e.as,e.crossOrigin);ae.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0});}else ae.d.m(t);};ie.requestFormReset=function(t){ae.d.r(t);};ie.unstable_batchedUpdates=function(t,e){return t(e)};ie.useFormState=function(t,e,n){return Ya.H.useFormState(t,e,n)};ie.useFormStatus=function(){return Ya.H.useHostTransitionStatus()};ie.version="19.2.5";});var U0=Ke((ab,Y0)=>{function R0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R0);}catch(t){console.error(t);}}R0(),Y0.exports=L0();});var I2=Ke(gr=>{var Rt=O0(),y1=sn(),Uh=U0();function W(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);}return "Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h1(t){return !(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Ei(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else {t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function m1(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function x1(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function B0(t){if(Ei(t)!==t)throw Error(W(188))}function Bh(t){var e=t.alternate;if(!e){if(e=Ei(t),e===null)throw Error(W(188));return e!==t?null:t}for(var n=t,l=e;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return B0(a),t;if(i===l)return B0(a),e;i=i.sibling;}throw Error(W(188))}if(n.return!==l.return)n=a,l=i;else {for(var o=false,r=a.child;r;){if(r===n){o=true,n=a,l=i;break}if(r===l){o=true,l=a,n=i;break}r=r.sibling;}if(!o){for(r=i.child;r;){if(r===n){o=true,n=i,l=a;break}if(r===l){o=true,l=i,n=a;break}r=r.sibling;}if(!o)throw Error(W(189))}}if(n.alternate!==l)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?t:e}function p1(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=p1(t),e!==null)return e;t=t.sibling;}return null}var St=Object.assign,Xh=Symbol.for("react.element"),Vi=Symbol.for("react.transitional.element"),Va=Symbol.for("react.portal"),jl=Symbol.for("react.fragment"),g1=Symbol.for("react.strict_mode"),Ms=Symbol.for("react.profiler"),b1=Symbol.for("react.consumer"),kn=Symbol.for("react.context"),gc=Symbol.for("react.forward_ref"),_s=Symbol.for("react.suspense"),Es=Symbol.for("react.suspense_list"),bc=Symbol.for("react.memo"),Rn=Symbol.for("react.lazy"),zs=Symbol.for("react.activity"),qh=Symbol.for("react.memo_cache_sentinel"),X0=Symbol.iterator;function Ua(t){return t===null||typeof t!="object"?null:(t=X0&&t[X0]||t["@@iterator"],typeof t=="function"?t:null)}var Qh=Symbol.for("react.client.reference");function Ws(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Qh?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case jl:return "Fragment";case Ms:return "Profiler";case g1:return "StrictMode";case _s:return "Suspense";case Es:return "SuspenseList";case zs:return "Activity"}if(typeof t=="object")switch(t.$$typeof){case Va:return "Portal";case kn:return t.displayName||"Context";case b1:return (t._context.displayName||"Context")+".Consumer";case gc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case bc:return e=t.displayName||null,e!==null?e:Ws(t.type)||"Memo";case Rn:e=t._payload,t=t._init;try{return Ws(t(e))}catch{}}return null}var Za=Array.isArray,G=y1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it=Uh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bl={pending:false,data:null,method:null,action:null},Cs=[],Vl=-1;function on(t){return {current:t}}function qt(t){0>Vl||(t.current=Cs[Vl],Cs[Vl]=null,Vl--);}function xt(t,e){Vl++,Cs[Vl]=t.current,t.current=e;}var an=on(null),fi=on(null),Jn=on(null),Wo=on(null);function Co(t,e){switch(xt(Jn,e),xt(fi,t),xt(an,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Kf(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Kf(e),t=Y2(e,t);else switch(t){case "svg":t=1;break;case "math":t=2;break;default:t=0;}}qt(an),xt(an,t);}function fa(){qt(an),qt(fi),qt(Jn);}function $s(t){t.memoizedState!==null&&xt(Wo,t);var e=an.current,n=Y2(e,t.type);e!==n&&(xt(fi,t),xt(an,n));}function $o(t){fi.current===t&&(qt(an),qt(fi)),Wo.current===t&&(qt(Wo),Si._currentValue=bl);}var Qr,q0;function ml(t){if(Qr===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Qr=e&&e[1]||"",q0=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":"";}return `
|
|
3
|
+
`+Qr+t+q0}var Gr=false;function jr(t,e){if(!t||Gr)return "";Gr=true;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var y=function(){throw Error()};if(Object.defineProperty(y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(y,[]);}catch(m){var d=m;}Reflect.construct(t,[],y);}else {try{y.call();}catch(m){d=m;}t.call(y.prototype);}}else {try{throw Error()}catch(m){d=m;}(y=t())&&typeof y.catch=="function"&&y.catch(function(){});}}catch(m){if(m&&d&&typeof m.stack=="string")return [m.stack,d.stack]}return [null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=l.DetermineComponentFrameRoot(),o=i[0],r=i[1];if(o&&r){var s=o.split(`
|
|
4
|
+
`),u=r.split(`
|
|
5
|
+
`);for(a=l=0;l<s.length&&!s[l].includes("DetermineComponentFrameRoot");)l++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(l===s.length||a===u.length)for(l=s.length-1,a=u.length-1;1<=l&&0<=a&&s[l]!==u[a];)a--;for(;1<=l&&0<=a;l--,a--)if(s[l]!==u[a]){if(l!==1||a!==1)do if(l--,a--,0>a||s[l]!==u[a]){var f=`
|
|
6
|
+
`+s[l].replace(" at new "," at ");return t.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",t.displayName)),f}while(1<=l&&0<=a);break}}}finally{Gr=false,Error.prepareStackTrace=n;}return (n=t?t.displayName||t.name:"")?ml(n):""}function Gh(t,e){switch(t.tag){case 26:case 27:case 5:return ml(t.type);case 16:return ml("Lazy");case 13:return t.child!==e&&e!==null?ml("Suspense Fallback"):ml("Suspense");case 19:return ml("SuspenseList");case 0:case 15:return jr(t.type,false);case 11:return jr(t.type.render,false);case 1:return jr(t.type,true);case 31:return ml("Activity");default:return ""}}function Q0(t){try{var e="",n=null;do e+=Gh(t,n),n=t,t=t.return;while(t);return e}catch(l){return `
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var As=Object.prototype.hasOwnProperty,vc=Rt.unstable_scheduleCallback,Vr=Rt.unstable_cancelCallback,jh=Rt.unstable_shouldYield,Vh=Rt.unstable_requestPaint,ze=Rt.unstable_now,Zh=Rt.unstable_getCurrentPriorityLevel,v1=Rt.unstable_ImmediatePriority,k1=Rt.unstable_UserBlockingPriority,Ao=Rt.unstable_NormalPriority,Jh=Rt.unstable_LowPriority,S1=Rt.unstable_IdlePriority,Kh=Rt.log,Fh=Rt.unstable_setDisableYieldValue,zi=null,We=null;function Qn(t){if(typeof Kh=="function"&&Fh(t),We&&typeof We.setStrictMode=="function")try{We.setStrictMode(zi,t);}catch{}}var Ce=Math.clz32?Math.clz32:tm,Ph=Math.log,Ih=Math.LN2;function tm(t){return t>>>=0,t===0?32:31-(Ph(t)/Ih|0)|0}var Zi=256,Ji=262144,Ki=4194304;function xl(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function nr(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var a=0,i=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var r=l&134217727;return r!==0?(l=r&~i,l!==0?a=xl(l):(o&=r,o!==0?a=xl(o):n||(n=r&~t,n!==0&&(a=xl(n))))):(r=l&~i,r!==0?a=xl(r):o!==0?a=xl(o):n||(n=l&~t,n!==0&&(a=xl(n)))),a===0?0:e!==0&&e!==a&&(e&i)===0&&(i=a&-a,n=e&-e,i>=n||i===32&&(n&4194048)!==0)?e:a}function Wi(t,e){return (t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function em(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return -1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return -1;default:return -1}}function M1(){var t=Ki;return Ki<<=1,(Ki&62914560)===0&&(Ki=4194304),t}function Zr(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ci(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0);}function nm(t,e,n,l,a,i){var o=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var r=t.entanglements,s=t.expirationTimes,u=t.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Ce(n),y=1<<f;r[f]=0,s[f]=-1;var d=u[f];if(d!==null)for(u[f]=null,f=0;f<d.length;f++){var m=d[f];m!==null&&(m.lane&=-536870913);}n&=~y;}l!==0&&_1(t,l,0),i!==0&&a===0&&t.tag!==0&&(t.suspendedLanes|=i&~(o&~e));}function _1(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ce(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930;}function E1(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-Ce(n),a=1<<l;a&e|t[l]&e&&(t[l]|=e),n&=~a;}}function z1(t,e){var n=e&-e;return n=(n&42)!==0?1:kc(n),(n&(t.suspendedLanes|e))!==0?0:n}function kc(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0;}return t}function Sc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function W1(){var t=it.p;return t!==0?t:(t=window.event,t===void 0?32:K2(t.type))}function G0(t,e){var n=it.p;try{return it.p=t,e()}finally{it.p=n;}}var sl=Math.random().toString(36).slice(2),Zt="__reactFiber$"+sl,pe="__reactProps$"+sl,Sa="__reactContainer$"+sl,Ds="__reactEvents$"+sl,lm="__reactListeners$"+sl,am="__reactHandles$"+sl,j0="__reactResources$"+sl,$i="__reactMarker$"+sl;function Mc(t){delete t[Zt],delete t[pe],delete t[Ds],delete t[lm],delete t[am];}function Zl(t){var e=t[Zt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Sa]||n[Zt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=e1(t);t!==null;){if(n=t[Zt])return n;t=e1(t);}return e}t=n,n=t.parentNode;}return null}function Ma(t){if(t=t[Zt]||t[Sa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ja(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(W(33))}function aa(t){var e=t[j0];return e||(e=t[j0]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Xt(t){t[$i]=true;}var C1=new Set,$1={};function $l(t,e){da(t,e),da(t+"Capture",e);}function da(t,e){for($1[t]=e,t=0;t<e.length;t++)C1.add(e[t]);}var im=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),V0={},Z0={};function om(t){return As.call(Z0,t)?true:As.call(V0,t)?false:im.test(t)?Z0[t]=true:(V0[t]=true,false)}function fo(t,e,n){if(om(e))if(n===null)t.removeAttribute(e);else {switch(typeof n){case "undefined":case "function":case "symbol":t.removeAttribute(e);return;case "boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n);}}function Fi(t,e,n){if(n===null)t.removeAttribute(e);else {switch(typeof n){case "undefined":case "function":case "symbol":case "boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n);}}function hn(t,e,n,l){if(l===null)t.removeAttribute(n);else {switch(typeof l){case "undefined":case "function":case "symbol":case "boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l);}}function He(t){switch(typeof t){case "bigint":case "boolean":case "number":case "string":case "undefined":return t;case "object":return t;default:return ""}}function A1(t){var e=t.type;return (t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function rm(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,i=l.set;return Object.defineProperty(t,e,{configurable:true,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o);}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o;},stopTracking:function(){t._valueTracker=null,delete t[e];}}}}function Ts(t){if(!t._valueTracker){var e=A1(t)?"checked":"value";t._valueTracker=rm(t,e,""+t[e]);}}function D1(t){if(!t)return false;var e=t._valueTracker;if(!e)return true;var n=e.getValue(),l="";return t&&(l=A1(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),true):false}function Do(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var sm=/[\n"\\]/g;function Ye(t){return t.replace(sm,function(e){return "\\"+e.charCodeAt(0).toString(16)+" "})}function ws(t,e,n,l,a,i,o,r){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+He(e)):t.value!==""+He(e)&&(t.value=""+He(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?Ns(t,o,He(e)):n!=null?Ns(t,o,He(n)):l!=null&&t.removeAttribute("value"),a==null&&i!=null&&(t.defaultChecked=!!i),a!=null&&(t.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+He(r):t.removeAttribute("name");}function T1(t,e,n,l,a,i,o,r){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){Ts(t);return}n=n!=null?""+He(n):"",e=e!=null?""+He(e):n,r||e===t.value||(t.value=e),t.defaultValue=e;}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=r?t.checked:!!l,t.defaultChecked=!!l,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Ts(t);}function Ns(t,e,n){e==="number"&&Do(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n);}function ia(t,e,n,l){if(t=t.options,e){e={};for(var a=0;a<n.length;a++)e["$"+n[a]]=true;for(n=0;n<t.length;n++)a=e.hasOwnProperty("$"+t[n].value),t[n].selected!==a&&(t[n].selected=a),a&&l&&(t[n].defaultSelected=true);}else {for(n=""+He(n),e=null,a=0;a<t.length;a++){if(t[a].value===n){t[a].selected=true,l&&(t[a].defaultSelected=true);return}e!==null||t[a].disabled||(e=t[a]);}e!==null&&(e.selected=true);}}function w1(t,e,n){if(e!=null&&(e=""+He(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+He(n):"";}function N1(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(W(92));if(Za(l)){if(1<l.length)throw Error(W(93));l=l[0];}n=l;}n==null&&(n=""),e=n;}n=He(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Ts(t);}function ya(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e;}var cm=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function J0(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||cm.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px";}function O1(t,e,n){if(e!=null&&typeof e!="object")throw Error(W(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var a in e)l=e[a],e.hasOwnProperty(a)&&n[a]!==l&&J0(t,a,l);}else for(var i in e)e.hasOwnProperty(i)&&J0(t,i,e[i]);}function _c(t){if(t.indexOf("-")===-1)return false;switch(t){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return false;default:return true}}var um=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),fm=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function yo(t){return fm.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Sn(){}var Os=null;function Ec(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Jl=null,oa=null;function K0(t){var e=Ma(t);if(e&&(t=e.stateNode)){var n=t[pe]||null;t:switch(t=e.stateNode,e.type){case "input":if(ws(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ye(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var a=l[pe]||null;if(!a)throw Error(W(90));ws(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name);}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&D1(l);}break t;case "textarea":w1(t,n.value,n.defaultValue);break t;case "select":e=n.value,e!=null&&ia(t,!!n.multiple,e,false);}}}var Jr=false;function H1(t,e,n){if(Jr)return t(e,n);Jr=true;try{var l=t(e);return l}finally{if(Jr=false,(Jl!==null||oa!==null)&&(hr(),Jl&&(e=Jl,t=oa,oa=Jl=null,K0(e),t)))for(e=0;e<t.length;e++)K0(t[e]);}}function di(t,e){var n=t.stateNode;if(n===null)return null;var l=n[pe]||null;if(l===null)return null;n=l[e];t:switch(e){case "onClick":case "onClickCapture":case "onDoubleClick":case "onDoubleClickCapture":case "onMouseDown":case "onMouseDownCapture":case "onMouseMove":case "onMouseMoveCapture":case "onMouseUp":case "onMouseUpCapture":case "onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=false;}if(t)return null;if(n&&typeof n!="function")throw Error(W(231,e,typeof n));return n}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hs=false;if(Wn)try{Bl={},Object.defineProperty(Bl,"passive",{get:function(){Hs=!0;}}),window.addEventListener("test",Bl,Bl),window.removeEventListener("test",Bl,Bl);}catch{Hs=false;}var Bl,Gn=null,zc=null,ho=null;function L1(){if(ho)return ho;var t,e=zc,n=e.length,l,a="value"in Gn?Gn.value:Gn.textContent,i=a.length;for(t=0;t<n&&e[t]===a[t];t++);var o=n-t;for(l=1;l<=o&&e[n-l]===a[i-l];l++);return ho=a.slice(t,1<l?1-l:void 0)}function mo(t){var e=t.keyCode;return "charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Pi(){return true}function F0(){return false}function ge(t){function e(n,l,a,i,o){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(n=t[r],this[r]=n?n(i):i[r]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===false)?Pi:F0,this.isPropagationStopped=F0,this}return St(e.prototype,{preventDefault:function(){this.defaultPrevented=true;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=false),this.isDefaultPrevented=Pi);},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=true),this.isPropagationStopped=Pi);},persist:function(){},isPersistent:Pi}),e}var Al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=ge(Al),Ai=St({},Al,{view:0,detail:0}),dm=ge(Ai),Kr,Fr,Ba,ar=St({},Ai,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return "movementX"in t?t.movementX:(t!==Ba&&(Ba&&t.type==="mousemove"?(Kr=t.screenX-Ba.screenX,Fr=t.screenY-Ba.screenY):Fr=Kr=0,Ba=t),Kr)},movementY:function(t){return "movementY"in t?t.movementY:Fr}}),P0=ge(ar),ym=St({},ar,{dataTransfer:0}),hm=ge(ym),mm=St({},Ai,{relatedTarget:0}),Pr=ge(mm),xm=St({},Al,{animationName:0,elapsedTime:0,pseudoElement:0}),pm=ge(xm),gm=St({},Al,{clipboardData:function(t){return "clipboardData"in t?t.clipboardData:window.clipboardData}}),bm=ge(gm),vm=St({},Al,{data:0}),I0=ge(vm),km={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Mm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _m(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Mm[t])?!!e[t]:false}function Wc(){return _m}var Em=St({},Ai,{key:function(t){if(t.key){var e=km[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=mo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Sm[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wc,charCode:function(t){return t.type==="keypress"?mo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?mo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),zm=ge(Em),Wm=St({},ar,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tf=ge(Wm),Cm=St({},Ai,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wc}),$m=ge(Cm),Am=St({},Al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dm=ge(Am),Tm=St({},ar,{deltaX:function(t){return "deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return "deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),wm=ge(Tm),Nm=St({},Al,{newState:0,oldState:0}),Om=ge(Nm),Hm=[9,13,27,32],Cc=Wn&&"CompositionEvent"in window,Pa=null;Wn&&"documentMode"in document&&(Pa=document.documentMode);var Lm=Wn&&"TextEvent"in window&&!Pa,R1=Wn&&(!Cc||Pa&&8<Pa&&11>=Pa),ef=" ",nf=false;function Y1(t,e){switch(t){case "keyup":return Hm.indexOf(e.keyCode)!==-1;case "keydown":return e.keyCode!==229;case "keypress":case "mousedown":case "focusout":return true;default:return false}}function U1(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Kl=false;function Rm(t,e){switch(t){case "compositionend":return U1(e);case "keypress":return e.which!==32?null:(nf=true,ef);case "textInput":return t=e.data,t===ef&&nf?null:t;default:return null}}function Ym(t,e){if(Kl)return t==="compositionend"||!Cc&&Y1(t,e)?(t=L1(),ho=zc=Gn=null,Kl=false,t):null;switch(t){case "paste":return null;case "keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case "compositionend":return R1&&e.locale!=="ko"?null:e.data;default:return null}}var Um={color:true,date:true,datetime:true,"datetime-local":true,email:true,month:true,number:true,password:true,range:true,search:true,tel:true,text:true,time:true,url:true,week:true};function lf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Um[t.type]:e==="textarea"}function B1(t,e,n,l){Jl?oa?oa.push(l):oa=[l]:Jl=l,e=Jo(e,"onChange"),0<e.length&&(n=new lr("onChange","change",null,n,l),t.push({event:n,listeners:e}));}var Ia=null,yi=null;function Bm(t){H2(t,0);}function ir(t){var e=Ja(t);if(D1(e))return t}function af(t,e){if(t==="change")return e}var X1=false;Wn&&(Wn?(to="oninput"in document,to||(Ir=document.createElement("div"),Ir.setAttribute("oninput","return;"),to=typeof Ir.oninput=="function"),Ii=to):Ii=false,X1=Ii&&(!document.documentMode||9<document.documentMode));var Ii,to,Ir;function of(){Ia&&(Ia.detachEvent("onpropertychange",q1),yi=Ia=null);}function q1(t){if(t.propertyName==="value"&&ir(yi)){var e=[];B1(e,yi,t,Ec(t)),H1(Bm,e);}}function Xm(t,e,n){t==="focusin"?(of(),Ia=e,yi=n,Ia.attachEvent("onpropertychange",q1)):t==="focusout"&&of();}function qm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ir(yi)}function Qm(t,e){if(t==="click")return ir(e)}function Gm(t,e){if(t==="input"||t==="change")return ir(e)}function jm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ae=typeof Object.is=="function"?Object.is:jm;function hi(t,e){if(Ae(t,e))return true;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return false;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return false;for(l=0;l<n.length;l++){var a=n[l];if(!As.call(e,a)||!Ae(t[a],e[a]))return false}return true}function rf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function sf(t,e){var n=rf(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return {node:n,offset:e-t};t=l;}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode;}n=void 0;}n=rf(n);}}function Q1(t,e){return t&&e?t===e?true:t&&t.nodeType===3?false:e&&e.nodeType===3?Q1(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):false:false}function G1(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Do(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string";}catch{n=false;}if(n)t=e.contentWindow;else break;e=Do(t.document);}return e}function $c(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Vm=Wn&&"documentMode"in document&&11>=document.documentMode,Fl=null,Ls=null,ti=null,Rs=false;function cf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rs||Fl==null||Fl!==Do(l)||(l=Fl,"selectionStart"in l&&$c(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ti&&hi(ti,l)||(ti=l,l=Jo(Ls,"onSelect"),0<l.length&&(e=new lr("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Fl)));}function hl(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Pl={animationend:hl("Animation","AnimationEnd"),animationiteration:hl("Animation","AnimationIteration"),animationstart:hl("Animation","AnimationStart"),transitionrun:hl("Transition","TransitionRun"),transitionstart:hl("Transition","TransitionStart"),transitioncancel:hl("Transition","TransitionCancel"),transitionend:hl("Transition","TransitionEnd")},ts={},j1={};Wn&&(j1=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function Dl(t){if(ts[t])return ts[t];if(!Pl[t])return t;var e=Pl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in j1)return ts[t]=e[n];return t}var V1=Dl("animationend"),Z1=Dl("animationiteration"),J1=Dl("animationstart"),Zm=Dl("transitionrun"),Jm=Dl("transitionstart"),Km=Dl("transitioncancel"),K1=Dl("transitionend"),F1=new Map,Ys="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ys.push("scrollEnd");function Je(t,e){F1.set(t,e),$l(e,[t]);}var To=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:true,cancelable:true,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t);},Oe=[],Il=0,Ac=0;function or(){for(var t=Il,e=Ac=Il=0;e<t;){var n=Oe[e];Oe[e++]=null;var l=Oe[e];Oe[e++]=null;var a=Oe[e];Oe[e++]=null;var i=Oe[e];if(Oe[e++]=null,l!==null&&a!==null){var o=l.pending;o===null?a.next=a:(a.next=o.next,o.next=a),l.pending=a;}i!==0&&P1(n,a,i);}}function rr(t,e,n,l){Oe[Il++]=t,Oe[Il++]=e,Oe[Il++]=n,Oe[Il++]=l,Ac|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l);}function Dc(t,e,n,l){return rr(t,e,n,l),wo(t)}function Tl(t,e){return rr(t,null,null,e),wo(t)}function P1(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var a=false,i=t.return;i!==null;)i.childLanes|=n,l=i.alternate,l!==null&&(l.childLanes|=n),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(a=true)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,a&&e!==null&&(a=31-Ce(n),t=i.hiddenUpdates,l=t[a],l===null?t[a]=[e]:l.push(e),e.lane=n|536870912),i):null}function wo(t){if(50<ci)throw ci=0,oc=null,Error(W(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var ta={};function Fm(t,e,n,l){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null;}function _e(t,e,n,l){return new Fm(t,e,n,l)}function Tc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function _n(t,e){var n=t.alternate;return n===null?(n=_e(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function I1(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function xo(t,e,n,l,a,i){var o=0;if(l=t,typeof t=="function")Tc(t)&&(o=1);else if(typeof t=="string")o=tp(t,n,an.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case zs:return t=_e(31,n,e,a),t.elementType=zs,t.lanes=i,t;case jl:return vl(n.children,a,i,e);case g1:o=8,a|=24;break;case Ms:return t=_e(12,n,e,a|2),t.elementType=Ms,t.lanes=i,t;case _s:return t=_e(13,n,e,a),t.elementType=_s,t.lanes=i,t;case Es:return t=_e(19,n,e,a),t.elementType=Es,t.lanes=i,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case kn:o=10;break t;case b1:o=9;break t;case gc:o=11;break t;case bc:o=14;break t;case Rn:o=16,l=null;break t}o=29,n=Error(W(130,t===null?"null":typeof t,"")),l=null;}return e=_e(o,n,e,a),e.elementType=t,e.type=l,e.lanes=i,e}function vl(t,e,n,l){return t=_e(7,t,l,e),t.lanes=n,t}function es(t,e,n){return t=_e(6,t,null,e),t.lanes=n,t}function td(t){var e=_e(18,null,null,0);return e.stateNode=t,e}function ns(t,e,n){return e=_e(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var uf=new WeakMap;function Ue(t,e){if(typeof t=="object"&&t!==null){var n=uf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Q0(e)},uf.set(t,e),e)}return {value:t,source:e,stack:Q0(e)}}var ea=[],na=0,No=null,mi=0,Le=[],Re=0,al=null,en=1,nn="";function bn(t,e){ea[na++]=mi,ea[na++]=No,No=t,mi=e;}function ed(t,e,n){Le[Re++]=en,Le[Re++]=nn,Le[Re++]=al,al=t;var l=en;t=nn;var a=32-Ce(l)-1;l&=~(1<<a),n+=1;var i=32-Ce(e)+a;if(30<i){var o=a-a%5;i=(l&(1<<o)-1).toString(32),l>>=o,a-=o,en=1<<32-Ce(e)+a|n<<a|l,nn=i+t;}else en=1<<i|n<<a|l,nn=t;}function wc(t){t.return!==null&&(bn(t,1),ed(t,1,0));}function Nc(t){for(;t===No;)No=ea[--na],ea[na]=null,mi=ea[--na],ea[na]=null;for(;t===al;)al=Le[--Re],Le[Re]=null,nn=Le[--Re],Le[Re]=null,en=Le[--Re],Le[Re]=null;}function nd(t,e){Le[Re++]=en,Le[Re++]=nn,Le[Re++]=al,en=e.id,nn=e.overflow,al=t;}var Jt=null,kt=null,lt=false,Kn=null,Be=false,Us=Error(W(519));function il(t){var e=Error(W(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw xi(Ue(e,t)),Us}function ff(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Zt]=t,e[pe]=l,n){case "dialog":tt("cancel",e),tt("close",e);break;case "iframe":case "object":case "embed":tt("load",e);break;case "video":case "audio":for(n=0;n<vi.length;n++)tt(vi[n],e);break;case "source":tt("error",e);break;case "img":case "image":case "link":tt("error",e),tt("load",e);break;case "details":tt("toggle",e);break;case "input":tt("invalid",e),T1(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,true);break;case "select":tt("invalid",e);break;case "textarea":tt("invalid",e),N1(e,l.value,l.defaultValue,l.children);}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===true||R2(e.textContent,n)?(l.popover!=null&&(tt("beforetoggle",e),tt("toggle",e)),l.onScroll!=null&&tt("scroll",e),l.onScrollEnd!=null&&tt("scrollend",e),l.onClick!=null&&(e.onclick=Sn),e=true):e=false,e||il(t,true);}function df(t){for(Jt=t.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:Be=false;return;case 27:case 3:Be=true;return;default:Jt=Jt.return;}}function Xl(t){if(t!==Jt)return false;if(!lt)return df(t),lt=true,false;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||fc(t.type,t.memoizedProps)),n=!n),n&&kt&&il(t),df(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(W(317));kt=t1(t);}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(W(317));kt=t1(t);}else e===27?(e=kt,cl(t.type)?(t=mc,mc=null,kt=t):kt=e):kt=Jt?qe(t.stateNode.nextSibling):null;return true}function _l(){kt=Jt=null,lt=false;}function ls(){var t=Kn;return t!==null&&(me===null?me=t:me.push.apply(me,t),Kn=null),t}function xi(t){Kn===null?Kn=[t]:Kn.push(t);}var Bs=on(null),wl=null,Mn=null;function Un(t,e,n){xt(Bs,e._currentValue),e._currentValue=n;}function En(t){t._currentValue=Bs.current,qt(Bs);}function Xs(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return;}}function qs(t,e,n,l){var a=t.child;for(a!==null&&(a.return=t);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;t:for(;i!==null;){var r=i;i=a;for(var s=0;s<e.length;s++)if(r.context===e[s]){i.lanes|=n,r=i.alternate,r!==null&&(r.lanes|=n),Xs(i.return,n,t),l||(o=null);break t}i=r.next;}}else if(a.tag===18){if(o=a.return,o===null)throw Error(W(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),Xs(o,n,t),o=null;}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return;}a=o;}}function _a(t,e,n,l){t=null;for(var a=e,i=false;a!==null;){if(!i){if((a.flags&524288)!==0)i=true;else if((a.flags&262144)!==0)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(W(387));if(o=o.memoizedProps,o!==null){var r=a.type;Ae(a.pendingProps.value,o.value)||(t!==null?t.push(r):t=[r]);}}else if(a===Wo.current){if(o=a.alternate,o===null)throw Error(W(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(t!==null?t.push(Si):t=[Si]);}a=a.return;}t!==null&&qs(e,t,n,l),e.flags|=262144;}function Oo(t){for(t=t.firstContext;t!==null;){if(!Ae(t.context._currentValue,t.memoizedValue))return true;t=t.next;}return false}function El(t){wl=t,Mn=null,t=t.dependencies,t!==null&&(t.firstContext=null);}function Kt(t){return ld(wl,t)}function eo(t,e){return wl===null&&El(t),ld(t,e)}function ld(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Mn===null){if(t===null)throw Error(W(308));Mn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288;}else Mn=Mn.next=e;return n}var Pm=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:false,addEventListener:function(n,l){t.push(l);}};this.abort=function(){e.aborted=true,t.forEach(function(n){return n()});};},Im=Rt.unstable_scheduleCallback,tx=Rt.unstable_NormalPriority,Nt={$$typeof:kn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Oc(){return {controller:new Pm,data:new Map,refCount:0}}function Di(t){t.refCount--,t.refCount===0&&Im(tx,function(){t.controller.abort();});}var ei=null,Qs=0,ha=0,ra=null;function ex(t,e){if(ei===null){var n=ei=[];Qs=0,ha=ou(),ra={status:"pending",value:void 0,then:function(l){n.push(l);}};}return Qs++,e.then(yf,yf),e}function yf(){if(--Qs===0&&ei!==null){ra!==null&&(ra.status="fulfilled");var t=ei;ei=null,ha=0,ra=null;for(var e=0;e<t.length;e++)(0, t[e])();}}function nx(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a);}};return t.then(function(){l.status="fulfilled",l.value=e;for(var a=0;a<n.length;a++)(0, n[a])(e);},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0, n[a])(void 0);}),l}var hf=G.S;G.S=function(t,e){p2=ze(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&ex(t,e),hf!==null&&hf(t,e);};var kl=on(null);function Hc(){var t=kl.current;return t!==null?t:mt.pooledCache}function po(t,e){e===null?xt(kl,kl.current):xt(kl,e.pool);}function ad(){var t=Hc();return t===null?null:{parent:Nt._currentValue,pool:t}}var Ea=Error(W(460)),Lc=Error(W(474)),sr=Error(W(542)),Ho={then:function(){}};function mf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function id(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Sn,Sn),e=n),e.status){case "fulfilled":return e.value;case "rejected":throw t=e.reason,pf(t),t;default:if(typeof e.status=="string")e.then(Sn,Sn);else {if(t=mt,t!==null&&100<t.shellSuspendCounter)throw Error(W(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var a=e;a.status="fulfilled",a.value=l;}},function(l){if(e.status==="pending"){var a=e;a.status="rejected",a.reason=l;}});}switch(e.status){case "fulfilled":return e.value;case "rejected":throw t=e.reason,pf(t),t}throw Sl=e,Ea}}function pl(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sl=n,Ea):n}}var Sl=null;function xf(){if(Sl===null)throw Error(W(459));var t=Sl;return Sl=null,t}function pf(t){if(t===Ea||t===sr)throw Error(W(483))}var sa=null,pi=0;function no(t){var e=pi;return pi+=1,sa===null&&(sa=[]),id(sa,t,e)}function Xa(t,e){e=e.props.ref,t.ref=e!==void 0?e:null;}function lo(t,e){throw e.$$typeof===Xh?Error(W(525)):(t=Object.prototype.toString.call(e),Error(W(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function od(t){function e(x,h){if(t){var p=x.deletions;p===null?(x.deletions=[h],x.flags|=16):p.push(h);}}function n(x,h){if(!t)return null;for(;h!==null;)e(x,h),h=h.sibling;return null}function l(x){for(var h=new Map;x!==null;)x.key!==null?h.set(x.key,x):h.set(x.index,x),x=x.sibling;return h}function a(x,h){return x=_n(x,h),x.index=0,x.sibling=null,x}function i(x,h,p){return x.index=p,t?(p=x.alternate,p!==null?(p=p.index,p<h?(x.flags|=67108866,h):p):(x.flags|=67108866,h)):(x.flags|=1048576,h)}function o(x){return t&&x.alternate===null&&(x.flags|=67108866),x}function r(x,h,p,M){return h===null||h.tag!==6?(h=es(p,x.mode,M),h.return=x,h):(h=a(h,p),h.return=x,h)}function s(x,h,p,M){var k=p.type;return k===jl?f(x,h,p.props.children,M,p.key):h!==null&&(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&pl(k)===h.type)?(h=a(h,p.props),Xa(h,p),h.return=x,h):(h=xo(p.type,p.key,p.props,null,x.mode,M),Xa(h,p),h.return=x,h)}function u(x,h,p,M){return h===null||h.tag!==4||h.stateNode.containerInfo!==p.containerInfo||h.stateNode.implementation!==p.implementation?(h=ns(p,x.mode,M),h.return=x,h):(h=a(h,p.children||[]),h.return=x,h)}function f(x,h,p,M,k){return h===null||h.tag!==7?(h=vl(p,x.mode,M,k),h.return=x,h):(h=a(h,p),h.return=x,h)}function y(x,h,p){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=es(""+h,x.mode,p),h.return=x,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Vi:return p=xo(h.type,h.key,h.props,null,x.mode,p),Xa(p,h),p.return=x,p;case Va:return h=ns(h,x.mode,p),h.return=x,h;case Rn:return h=pl(h),y(x,h,p)}if(Za(h)||Ua(h))return h=vl(h,x.mode,p,null),h.return=x,h;if(typeof h.then=="function")return y(x,no(h),p);if(h.$$typeof===kn)return y(x,eo(x,h),p);lo(x,h);}return null}function d(x,h,p,M){var k=h!==null?h.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return k!==null?null:r(x,h,""+p,M);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Vi:return p.key===k?s(x,h,p,M):null;case Va:return p.key===k?u(x,h,p,M):null;case Rn:return p=pl(p),d(x,h,p,M)}if(Za(p)||Ua(p))return k!==null?null:f(x,h,p,M,null);if(typeof p.then=="function")return d(x,h,no(p),M);if(p.$$typeof===kn)return d(x,h,eo(x,p),M);lo(x,p);}return null}function m(x,h,p,M,k){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return x=x.get(p)||null,r(h,x,""+M,k);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Vi:return x=x.get(M.key===null?p:M.key)||null,s(h,x,M,k);case Va:return x=x.get(M.key===null?p:M.key)||null,u(h,x,M,k);case Rn:return M=pl(M),m(x,h,p,M,k)}if(Za(M)||Ua(M))return x=x.get(p)||null,f(h,x,M,k,null);if(typeof M.then=="function")return m(x,h,p,no(M),k);if(M.$$typeof===kn)return m(x,h,p,eo(h,M),k);lo(h,M);}return null}function _(x,h,p,M){for(var k=null,Y=null,N=h,L=h=0,Z=null;N!==null&&L<p.length;L++){N.index>L?(Z=N,N=null):Z=N.sibling;var P=d(x,N,p[L],M);if(P===null){N===null&&(N=Z);break}t&&N&&P.alternate===null&&e(x,N),h=i(P,h,L),Y===null?k=P:Y.sibling=P,Y=P,N=Z;}if(L===p.length)return n(x,N),lt&&bn(x,L),k;if(N===null){for(;L<p.length;L++)N=y(x,p[L],M),N!==null&&(h=i(N,h,L),Y===null?k=N:Y.sibling=N,Y=N);return lt&&bn(x,L),k}for(N=l(N);L<p.length;L++)Z=m(N,x,L,p[L],M),Z!==null&&(t&&Z.alternate!==null&&N.delete(Z.key===null?L:Z.key),h=i(Z,h,L),Y===null?k=Z:Y.sibling=Z,Y=Z);return t&&N.forEach(function(te){return e(x,te)}),lt&&bn(x,L),k}function E(x,h,p,M){if(p==null)throw Error(W(151));for(var k=null,Y=null,N=h,L=h=0,Z=null,P=p.next();N!==null&&!P.done;L++,P=p.next()){N.index>L?(Z=N,N=null):Z=N.sibling;var te=d(x,N,P.value,M);if(te===null){N===null&&(N=Z);break}t&&N&&te.alternate===null&&e(x,N),h=i(te,h,L),Y===null?k=te:Y.sibling=te,Y=te,N=Z;}if(P.done)return n(x,N),lt&&bn(x,L),k;if(N===null){for(;!P.done;L++,P=p.next())P=y(x,P.value,M),P!==null&&(h=i(P,h,L),Y===null?k=P:Y.sibling=P,Y=P);return lt&&bn(x,L),k}for(N=l(N);!P.done;L++,P=p.next())P=m(N,x,L,P.value,M),P!==null&&(t&&P.alternate!==null&&N.delete(P.key===null?L:P.key),h=i(P,h,L),Y===null?k=P:Y.sibling=P,Y=P);return t&&N.forEach(function(Ge){return e(x,Ge)}),lt&&bn(x,L),k}function T(x,h,p,M){if(typeof p=="object"&&p!==null&&p.type===jl&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Vi:t:{for(var k=p.key;h!==null;){if(h.key===k){if(k=p.type,k===jl){if(h.tag===7){n(x,h.sibling),M=a(h,p.props.children),M.return=x,x=M;break t}}else if(h.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Rn&&pl(k)===h.type){n(x,h.sibling),M=a(h,p.props),Xa(M,p),M.return=x,x=M;break t}n(x,h);break}else e(x,h);h=h.sibling;}p.type===jl?(M=vl(p.props.children,x.mode,M,p.key),M.return=x,x=M):(M=xo(p.type,p.key,p.props,null,x.mode,M),Xa(M,p),M.return=x,x=M);}return o(x);case Va:t:{for(k=p.key;h!==null;){if(h.key===k)if(h.tag===4&&h.stateNode.containerInfo===p.containerInfo&&h.stateNode.implementation===p.implementation){n(x,h.sibling),M=a(h,p.children||[]),M.return=x,x=M;break t}else {n(x,h);break}else e(x,h);h=h.sibling;}M=ns(p,x.mode,M),M.return=x,x=M;}return o(x);case Rn:return p=pl(p),T(x,h,p,M)}if(Za(p))return _(x,h,p,M);if(Ua(p)){if(k=Ua(p),typeof k!="function")throw Error(W(150));return p=k.call(p),E(x,h,p,M)}if(typeof p.then=="function")return T(x,h,no(p),M);if(p.$$typeof===kn)return T(x,h,eo(x,p),M);lo(x,p);}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,h!==null&&h.tag===6?(n(x,h.sibling),M=a(h,p),M.return=x,x=M):(n(x,h),M=es(p,x.mode,M),M.return=x,x=M),o(x)):n(x,h)}return function(x,h,p,M){try{pi=0;var k=T(x,h,p,M);return sa=null,k}catch(N){if(N===Ea||N===sr)throw N;var Y=_e(29,N,null,x.mode);return Y.lanes=M,Y.return=x,Y}}}var zl=od(true),rd=od(false),Yn=false;function Rc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function Gs(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null});}function Fn(t){return {lane:t,tag:0,payload:null,callback:null,next:null}}function Pn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(at&2)!==0){var a=l.pending;return a===null?e.next=e:(e.next=a.next,a.next=e),l.pending=e,e=wo(t),P1(t,null,n),e}return rr(t,l,e,n),wo(t)}function ni(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,E1(t,n);}}function as(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,n=n.next;}while(n!==null);i===null?a=i=e:i=i.next=e;}else a=i=e;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e;}var js=false;function li(){if(js){var t=ra;if(t!==null)throw t}}function ai(t,e,n,l){js=false;var a=t.updateQueue;Yn=false;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var s=r,u=s.next;s.next=null,o===null?i=u:o.next=u,o=s;var f=t.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==o&&(r===null?f.firstBaseUpdate=u:r.next=u,f.lastBaseUpdate=s));}if(i!==null){var y=a.baseState;o=0,f=u=s=null,r=i;do{var d=r.lane&-536870913,m=d!==r.lane;if(m?(nt&d)===d:(l&d)===d){d!==0&&d===ha&&(js=true),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});t:{var _=t,E=r;d=e;var T=n;switch(E.tag){case 1:if(_=E.payload,typeof _=="function"){y=_.call(T,y,d);break t}y=_;break t;case 3:_.flags=_.flags&-65537|128;case 0:if(_=E.payload,d=typeof _=="function"?_.call(T,y,d):_,d==null)break t;y=St({},y,d);break t;case 2:Yn=true;}}d=r.callback,d!==null&&(t.flags|=64,m&&(t.flags|=8192),m=a.callbacks,m===null?a.callbacks=[d]:m.push(d));}else m={lane:d,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(u=f=m,s=y):f=f.next=m,o|=d;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;m=r,r=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null;}}while(true);f===null&&(s=y),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),rl|=o,t.lanes=o,t.memoizedState=y;}}function sd(t,e){if(typeof t!="function")throw Error(W(191,t));t.call(e);}function cd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)sd(n[t],e);}var ma=on(null),Lo=on(0);function gf(t,e){t=Dn,xt(Lo,t),xt(ma,e),Dn=t|e.baseLanes;}function Vs(){xt(Lo,Dn),xt(ma,ma.current);}function Yc(){Dn=Lo.current,qt(ma),qt(Lo);}var De=on(null),Xe=null;function Bn(t){var e=t.alternate;xt($t,$t.current&1),xt(De,t),Xe===null&&(e===null||ma.current!==null||e.memoizedState!==null)&&(Xe=t);}function Zs(t){xt($t,$t.current),xt(De,t),Xe===null&&(Xe=t);}function ud(t){t.tag===22?(xt($t,$t.current),xt(De,t),Xe===null&&(Xe=t)):Xn();}function Xn(){xt($t,$t.current),xt(De,De.current);}function Me(t){qt(De),Xe===t&&(Xe=null),qt($t);}var $t=on(0);function Ro(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||yc(n)||hc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return;}e.sibling.return=e.return,e=e.sibling;}return null}var Cn=0,K=null,yt=null,Tt=null,Yo=false,ca=false,Wl=false,Uo=0,gi=0,ua=null,lx=0;function Et(){throw Error(W(321))}function Uc(t,e){if(e===null)return false;for(var n=0;n<e.length&&n<t.length;n++)if(!Ae(t[n],e[n]))return false;return true}function Bc(t,e,n,l,a,i){return Cn=i,K=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,G.H=t===null||t.memoizedState===null?Bd:Pc,Wl=false,i=n(l,a),Wl=false,ca&&(i=dd(e,n,l,a)),fd(t),i}function fd(t){G.H=bi;var e=yt!==null&&yt.next!==null;if(Cn=0,Tt=yt=K=null,Yo=false,gi=0,ua=null,e)throw Error(W(300));t===null||Ot||(t=t.dependencies,t!==null&&Oo(t)&&(Ot=true));}function dd(t,e,n,l){K=t;var a=0;do{if(ca&&(ua=null),gi=0,ca=false,25<=a)throw Error(W(301));if(a+=1,Tt=yt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0);}G.H=Xd,i=e(n,l);}while(ca);return i}function ax(){var t=G.H,e=t.useState()[0];return e=typeof e.then=="function"?Ti(e):e,t=t.useState()[0],(yt!==null?yt.memoizedState:null)!==t&&(K.flags|=1024),e}function Xc(){var t=Uo!==0;return Uo=0,t}function qc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n;}function Qc(t){if(Yo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next;}Yo=false;}Cn=0,Tt=yt=K=null,ca=false,gi=Uo=0,ua=null;}function oe(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?K.memoizedState=Tt=t:Tt=Tt.next=t,Tt}function At(){if(yt===null){var t=K.alternate;t=t!==null?t.memoizedState:null;}else t=yt.next;var e=Tt===null?K.memoizedState:Tt.next;if(e!==null)Tt=e,yt=t;else {if(t===null)throw K.alternate===null?Error(W(467)):Error(W(310));yt=t,t={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Tt===null?K.memoizedState=Tt=t:Tt=Tt.next=t;}return Tt}function cr(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function Ti(t){var e=gi;return gi+=1,ua===null&&(ua=[]),t=id(ua,t,e),e=K,(Tt===null?e.memoizedState:Tt.next)===null&&(e=e.alternate,G.H=e===null||e.memoizedState===null?Bd:Pc),t}function ur(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ti(t);if(t.$$typeof===kn)return Kt(t)}throw Error(W(438,String(t)))}function Gc(t){var e=null,n=K.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=K.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(a){return a.slice()}),index:0})));}if(e==null&&(e={data:[],index:0}),n===null&&(n=cr(),K.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=qh;return e.index++,n}function $n(t,e){return typeof e=="function"?e(t):e}function go(t){var e=At();return jc(e,yt,t)}function jc(t,e,n){var l=t.queue;if(l===null)throw Error(W(311));l.lastRenderedReducer=n;var a=t.baseQueue,i=l.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o;}e.baseQueue=a=i,l.pending=null;}if(i=t.baseState,a===null)t.memoizedState=i;else {e=a.next;var r=o=null,s=null,u=e,f=false;do{var y=u.lane&-536870913;if(y!==u.lane?(nt&y)===y:(Cn&y)===y){var d=u.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),y===ha&&(f=true);else if((Cn&d)===d){u=u.next,d===ha&&(f=true);continue}else y={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(r=s=y,o=i):s=s.next=y,K.lanes|=d,rl|=d;y=u.action,Wl&&n(i,y),i=u.hasEagerState?u.eagerState:n(i,y);}else d={lane:y,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(r=s=d,o=i):s=s.next=d,K.lanes|=y,rl|=y;u=u.next;}while(u!==null&&u!==e);if(s===null?o=i:s.next=r,!Ae(i,t.memoizedState)&&(Ot=true,f&&(n=ra,n!==null)))throw n;t.memoizedState=i,t.baseState=o,t.baseQueue=s,l.lastRenderedState=i;}return a===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function is(t){var e=At(),n=e.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=t;var l=n.dispatch,a=n.pending,i=e.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=t(i,o.action),o=o.next;while(o!==a);Ae(i,e.memoizedState)||(Ot=true),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),n.lastRenderedState=i;}return [i,l]}function yd(t,e,n){var l=K,a=At(),i=lt;if(i){if(n===void 0)throw Error(W(407));n=n();}else n=e();var o=!Ae((yt||a).memoizedState,n);if(o&&(a.memoizedState=n,Ot=true),a=a.queue,Vc(xd.bind(null,l,a,t),[t]),a.getSnapshot!==e||o||Tt!==null&&Tt.memoizedState.tag&1){if(l.flags|=2048,xa(9,{destroy:void 0},md.bind(null,l,a,n,e),null),mt===null)throw Error(W(349));i||(Cn&127)!==0||hd(l,e,n);}return n}function hd(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=K.updateQueue,e===null?(e=cr(),K.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t));}function md(t,e,n,l){e.value=n,e.getSnapshot=l,pd(e)&&gd(t);}function xd(t,e,n){return n(function(){pd(e)&&gd(t);})}function pd(t){var e=t.getSnapshot;t=t.value;try{var n=e();return !Ae(t,n)}catch{return true}}function gd(t){var e=Tl(t,2);e!==null&&xe(e,t,2);}function Js(t){var e=oe();if(typeof t=="function"){var n=t;if(t=n(),Wl){Qn(true);try{n();}finally{Qn(false);}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:t},e}function bd(t,e,n,l){return t.baseState=n,jc(t,yt,typeof l=="function"?l:$n)}function ix(t,e,n,l,a){if(dr(t))throw Error(W(485));if(t=e.action,t!==null){var i={payload:a,action:t,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o);}};G.T!==null?n(true):i.isTransition=false,l(i),n=e.pending,n===null?(i.next=e.pending=i,vd(e,i)):(i.next=n.next,e.pending=n.next=i);}}function vd(t,e){var n=e.action,l=e.payload,a=t.state;if(e.isTransition){var i=G.T,o={};G.T=o;try{var r=n(a,l),s=G.S;s!==null&&s(o,r),bf(t,e,r);}catch(u){Ks(t,e,u);}finally{i!==null&&o.types!==null&&(i.types=o.types),G.T=i;}}else try{i=n(a,l),bf(t,e,i);}catch(u){Ks(t,e,u);}}function bf(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){vf(t,e,l);},function(l){return Ks(t,e,l)}):vf(t,e,n);}function vf(t,e,n){e.status="fulfilled",e.value=n,kd(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,vd(t,n)));}function Ks(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,kd(e),e=e.next;while(e!==l)}t.action=null;}function kd(t){t=t.listeners;for(var e=0;e<t.length;e++)(0, t[e])();}function Sd(t,e){return e}function kf(t,e){if(lt){var n=mt.formState;if(n!==null){t:{var l=K;if(lt){if(kt){e:{for(var a=kt,i=Be;a.nodeType!==8;){if(!i){a=null;break e}if(a=qe(a.nextSibling),a===null){a=null;break e}}i=a.data,a=i==="F!"||i==="F"?a:null;}if(a){kt=qe(a.nextSibling),l=a.data==="F!";break t}}il(l);}l=false;}l&&(e=n[0]);}}return n=oe(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sd,lastRenderedState:e},n.queue=l,n=Rd.bind(null,K,l),l.dispatch=n,l=Js(false),i=Fc.bind(null,K,false,l.queue),l=oe(),a={state:e,dispatch:null,action:t,pending:null},l.queue=a,n=ix.bind(null,K,a,i,n),a.dispatch=n,l.memoizedState=t,[e,n,false]}function Sf(t){var e=At();return Md(e,yt,t)}function Md(t,e,n){if(e=jc(t,e,Sd)[0],t=go($n)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Ti(e);}catch(o){throw o===Ea?sr:o}else l=e;e=At();var a=e.queue,i=a.dispatch;return n!==e.memoizedState&&(K.flags|=2048,xa(9,{destroy:void 0},ox.bind(null,a,n),null)),[l,i,t]}function ox(t,e){t.action=e;}function Mf(t){var e=At(),n=yt;if(n!==null)return Md(e,n,t);At(),e=e.memoizedState,n=At();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,false]}function xa(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=K.updateQueue,e===null&&(e=cr(),K.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function _d(){return At().memoizedState}function bo(t,e,n,l){var a=oe();K.flags|=t,a.memoizedState=xa(1|e,{destroy:void 0},n,l===void 0?null:l);}function fr(t,e,n,l){var a=At();l=l===void 0?null:l;var i=a.memoizedState.inst;yt!==null&&l!==null&&Uc(l,yt.memoizedState.deps)?a.memoizedState=xa(e,i,n,l):(K.flags|=t,a.memoizedState=xa(1|e,i,n,l));}function _f(t,e){bo(8390656,8,t,e);}function Vc(t,e){fr(2048,8,t,e);}function rx(t){K.flags|=4;var e=K.updateQueue;if(e===null)e=cr(),K.updateQueue=e,e.events=[t];else {var n=e.events;n===null?e.events=[t]:n.push(t);}}function Ed(t){var e=At().memoizedState;return rx({ref:e,nextImpl:t}),function(){if((at&2)!==0)throw Error(W(440));return e.impl.apply(void 0,arguments)}}function zd(t,e){return fr(4,2,t,e)}function Wd(t,e){return fr(4,4,t,e)}function Cd(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null);}}if(e!=null)return t=t(),e.current=t,function(){e.current=null;}}function $d(t,e,n){n=n!=null?n.concat([t]):null,fr(4,4,Cd.bind(null,e,t),n);}function Zc(){}function Ad(t,e){var n=At();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&Uc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function Dd(t,e){var n=At();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&Uc(e,l[1]))return l[0];if(l=t(),Wl){Qn(true);try{t();}finally{Qn(false);}}return n.memoizedState=[l,e],l}function Jc(t,e,n){return n===void 0||(Cn&1073741824)!==0&&(nt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=b2(),K.lanes|=t,rl|=t,n)}function Td(t,e,n,l){return Ae(n,e)?n:ma.current!==null?(t=Jc(t,n,l),Ae(t,e)||(Ot=true),t):(Cn&42)===0||(Cn&1073741824)!==0&&(nt&261930)===0?(Ot=true,t.memoizedState=n):(t=b2(),K.lanes|=t,rl|=t,e)}function wd(t,e,n,l,a){var i=it.p;it.p=i!==0&&8>i?i:8;var o=G.T,r={};G.T=r,Fc(t,false,e,n);try{var s=a(),u=G.S;if(u!==null&&u(r,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=nx(s,l);ii(t,e,f,$e(t));}else ii(t,e,l,$e(t));}catch(y){ii(t,e,{then:function(){},status:"rejected",reason:y},$e());}finally{it.p=i,o!==null&&r.types!==null&&(o.types=r.types),G.T=o;}}function sx(){}function Fs(t,e,n,l){if(t.tag!==5)throw Error(W(476));var a=Nd(t).queue;wd(t,a,e,bl,n===null?sx:function(){return Od(t),n(l)});}function Nd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:bl,baseState:bl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:bl},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:$n,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Od(t){var e=Nd(t);e.next===null&&(e=t.alternate.memoizedState),ii(t,e.next.queue,{},$e());}function Kc(){return Kt(Si)}function Hd(){return At().memoizedState}function Ld(){return At().memoizedState}function cx(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=$e();t=Fn(n);var l=Pn(e,t,n);l!==null&&(xe(l,e,n),ni(l,e,n)),e={cache:Oc()},t.payload=e;return}e=e.return;}}function ux(t,e,n){var l=$e();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:false,eagerState:null,next:null},dr(t)?Yd(e,n):(n=Dc(t,e,n,l),n!==null&&(xe(n,t,l),Ud(n,e,l)));}function Rd(t,e,n){var l=$e();ii(t,e,n,l);}function ii(t,e,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:false,eagerState:null,next:null};if(dr(t))Yd(e,a);else {var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,r=i(o,n);if(a.hasEagerState=!0,a.eagerState=r,Ae(r,o))return rr(t,e,a,0),mt===null&&or(),!1}catch{}if(n=Dc(t,e,a,l),n!==null)return xe(n,t,l),Ud(n,e,l),true}return false}function Fc(t,e,n,l){if(l={lane:2,revertLane:ou(),gesture:null,action:l,hasEagerState:false,eagerState:null,next:null},dr(t)){if(e)throw Error(W(479))}else e=Dc(t,n,l,2),e!==null&&xe(e,t,2);}function dr(t){var e=t.alternate;return t===K||e!==null&&e===K}function Yd(t,e){ca=Yo=true;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e;}function Ud(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,E1(t,n);}}var bi={readContext:Kt,use:ur,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et};bi.useEffectEvent=Et;var Bd={readContext:Kt,use:ur,useCallback:function(t,e){return oe().memoizedState=[t,e===void 0?null:e],t},useContext:Kt,useEffect:_f,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,bo(4194308,4,Cd.bind(null,e,t),n);},useLayoutEffect:function(t,e){return bo(4194308,4,t,e)},useInsertionEffect:function(t,e){bo(4,2,t,e);},useMemo:function(t,e){var n=oe();e=e===void 0?null:e;var l=t();if(Wl){Qn(true);try{t();}finally{Qn(false);}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=oe();if(n!==void 0){var a=n(e);if(Wl){Qn(true);try{n(e);}finally{Qn(false);}}}else a=e;return l.memoizedState=l.baseState=a,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:a},l.queue=t,t=t.dispatch=ux.bind(null,K,t),[l.memoizedState,t]},useRef:function(t){var e=oe();return t={current:t},e.memoizedState=t},useState:function(t){t=Js(t);var e=t.queue,n=Rd.bind(null,K,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Zc,useDeferredValue:function(t,e){var n=oe();return Jc(n,t,e)},useTransition:function(){var t=Js(false);return t=wd.bind(null,K,t.queue,true,false),oe().memoizedState=t,[false,t]},useSyncExternalStore:function(t,e,n){var l=K,a=oe();if(lt){if(n===void 0)throw Error(W(407));n=n();}else {if(n=e(),mt===null)throw Error(W(349));(nt&127)!==0||hd(l,e,n);}a.memoizedState=n;var i={value:n,getSnapshot:e};return a.queue=i,_f(xd.bind(null,l,i,t),[t]),l.flags|=2048,xa(9,{destroy:void 0},md.bind(null,l,i,n,e),null),n},useId:function(){var t=oe(),e=mt.identifierPrefix;if(lt){var n=nn,l=en;n=(l&~(1<<32-Ce(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Uo++,0<n&&(e+="H"+n.toString(32)),e+="_";}else n=lx++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Kc,useFormState:kf,useActionState:kf,useOptimistic:function(t){var e=oe();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Fc.bind(null,K,true,n),n.dispatch=e,[t,e]},useMemoCache:Gc,useCacheRefresh:function(){return oe().memoizedState=cx.bind(null,K)},useEffectEvent:function(t){var e=oe(),n={impl:t};return e.memoizedState=n,function(){if((at&2)!==0)throw Error(W(440));return n.impl.apply(void 0,arguments)}}},Pc={readContext:Kt,use:ur,useCallback:Ad,useContext:Kt,useEffect:Vc,useImperativeHandle:$d,useInsertionEffect:zd,useLayoutEffect:Wd,useMemo:Dd,useReducer:go,useRef:_d,useState:function(){return go($n)},useDebugValue:Zc,useDeferredValue:function(t,e){var n=At();return Td(n,yt.memoizedState,t,e)},useTransition:function(){var t=go($n)[0],e=At().memoizedState;return [typeof t=="boolean"?t:Ti(t),e]},useSyncExternalStore:yd,useId:Hd,useHostTransitionStatus:Kc,useFormState:Sf,useActionState:Sf,useOptimistic:function(t,e){var n=At();return bd(n,yt,t,e)},useMemoCache:Gc,useCacheRefresh:Ld};Pc.useEffectEvent=Ed;var Xd={readContext:Kt,use:ur,useCallback:Ad,useContext:Kt,useEffect:Vc,useImperativeHandle:$d,useInsertionEffect:zd,useLayoutEffect:Wd,useMemo:Dd,useReducer:is,useRef:_d,useState:function(){return is($n)},useDebugValue:Zc,useDeferredValue:function(t,e){var n=At();return yt===null?Jc(n,t,e):Td(n,yt.memoizedState,t,e)},useTransition:function(){var t=is($n)[0],e=At().memoizedState;return [typeof t=="boolean"?t:Ti(t),e]},useSyncExternalStore:yd,useId:Hd,useHostTransitionStatus:Kc,useFormState:Mf,useActionState:Mf,useOptimistic:function(t,e){var n=At();return yt!==null?bd(n,yt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Gc,useCacheRefresh:Ld};Xd.useEffectEvent=Ed;function os(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:St({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n);}var Ps={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=$e(),a=Fn(l);a.payload=e,n!=null&&(a.callback=n),e=Pn(t,a,l),e!==null&&(xe(e,t,l),ni(e,t,l));},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=$e(),a=Fn(l);a.tag=1,a.payload=e,n!=null&&(a.callback=n),e=Pn(t,a,l),e!==null&&(xe(e,t,l),ni(e,t,l));},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=$e(),l=Fn(n);l.tag=2,e!=null&&(l.callback=e),e=Pn(t,l,n),e!==null&&(xe(e,t,n),ni(e,t,n));}};function Ef(t,e,n,l,a,i,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,i,o):e.prototype&&e.prototype.isPureReactComponent?!hi(n,l)||!hi(a,i):true}function zf(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Ps.enqueueReplaceState(e,e.state,null);}function Cl(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l]);}if(t=t.defaultProps){n===e&&(n=St({},n));for(var a in t)n[a]===void 0&&(n[a]=t[a]);}return n}function qd(t){To(t);}function Qd(t){console.error(t);}function Gd(t){To(t);}function Bo(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack});}catch(l){setTimeout(function(){throw l});}}function Wf(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null});}catch(a){setTimeout(function(){throw a});}}function Is(t,e,n){return n=Fn(n),n.tag=3,n.payload={element:null},n.callback=function(){Bo(t,e);},n}function jd(t){return t=Fn(t),t.tag=3,t}function Vd(t,e,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=l.value;t.payload=function(){return a(i)},t.callback=function(){Wf(e,n,l);};}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Wf(e,n,l),typeof a!="function"&&(In===null?In=new Set([this]):In.add(this));var r=l.stack;this.componentDidCatch(l.value,{componentStack:r!==null?r:""});});}function fx(t,e,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&_a(e,n,a,true),n=De.current,n!==null){switch(n.tag){case 31:case 13:return Xe===null?jo():n.alternate===null&&zt===0&&(zt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===Ho?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),ps(t,l,a)),false;case 22:return n.flags|=65536,l===Ho?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),ps(t,l,a)),false}throw Error(W(435,n.tag))}return ps(t,l,a),jo(),false}if(lt)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=a,l!==Us&&(t=Error(W(422),{cause:l}),xi(Ue(t,n)))):(l!==Us&&(e=Error(W(423),{cause:l}),xi(Ue(e,n))),t=t.current.alternate,t.flags|=65536,a&=-a,t.lanes|=a,l=Ue(l,n),a=Is(t.stateNode,l,a),as(t,a),zt!==4&&(zt=2)),false;var i=Error(W(520),{cause:l});if(i=Ue(i,n),si===null?si=[i]:si.push(i),zt!==4&&(zt=2),e===null)return true;l=Ue(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=a&-a,n.lanes|=t,t=Is(n.stateNode,l,t),as(n,t),false;case 1:if(e=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(In===null||!In.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=jd(a),Vd(a,t,n,l),as(n,a),false}n=n.return;}while(n!==null);return false}var Ic=Error(W(461)),Ot=false;function Vt(t,e,n,l){e.child=t===null?rd(e,null,n,l):zl(e,t.child,n,l);}function Cf(t,e,n,l,a){n=n.render;var i=e.ref;if("ref"in l){var o={};for(var r in l)r!=="ref"&&(o[r]=l[r]);}else o=l;return El(e),l=Bc(t,e,n,o,i,a),r=Xc(),t!==null&&!Ot?(qc(t,e,a),An(t,e,a)):(lt&&r&&wc(e),e.flags|=1,Vt(t,e,l,a),e.child)}function $f(t,e,n,l,a){if(t===null){var i=n.type;return typeof i=="function"&&!Tc(i)&&i.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=i,Zd(t,e,i,l,a)):(t=xo(n.type,null,l,e,e.mode,a),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!tu(t,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:hi,n(o,l)&&t.ref===e.ref)return An(t,e,a)}return e.flags|=1,t=_n(i,l),t.ref=e.ref,t.return=e,e.child=t}function Zd(t,e,n,l,a){if(t!==null){var i=t.memoizedProps;if(hi(i,l)&&t.ref===e.ref)if(Ot=false,e.pendingProps=l=i,tu(t,a))(t.flags&131072)!==0&&(Ot=true);else return e.lanes=t.lanes,An(t,e,a)}return tc(t,e,n,l,a)}function Jd(t,e,n,l){var a=l.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|n:n,t!==null){for(l=e.child=t.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~i;}else l=0,e.child=null;return Af(t,e,i,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&po(e,i!==null?i.cachePool:null),i!==null?gf(e,i):Vs(),ud(e);else return l=e.lanes=536870912,Af(t,e,i!==null?i.baseLanes|n:n,n,l)}else i!==null?(po(e,i.cachePool),gf(e,i),Xn(),e.memoizedState=null):(t!==null&&po(e,null),Vs(),Xn());return Vt(t,e,a,n),e.child}function Ka(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Af(t,e,n,l,a){var i=Hc();return i=i===null?null:{parent:Nt._currentValue,pool:i},e.memoizedState={baseLanes:n,cachePool:i},t!==null&&po(e,null),Vs(),ud(e),t!==null&&_a(t,e,l,true),e.childLanes=a,null}function vo(t,e){return e=Xo({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Df(t,e,n){return zl(e,t.child,null,n),t=vo(e,e.pendingProps),t.flags|=2,Me(e),e.memoizedState=null,t}function dx(t,e,n){var l=e.pendingProps,a=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(lt){if(l.mode==="hidden")return t=vo(e,l),e.lanes=536870912,Ka(null,t);if(Zs(e),(t=kt)?(t=B2(t,Be),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:al!==null?{id:en,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=td(t),n.return=e,e.child=n,Jt=e,kt=null)):t=null,t===null)throw il(e);return e.lanes=536870912,null}return vo(e,l)}var i=t.memoizedState;if(i!==null){var o=i.dehydrated;if(Zs(e),a)if(e.flags&256)e.flags&=-257,e=Df(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(W(558));else if(Ot||_a(t,e,n,false),a=(n&t.childLanes)!==0,Ot||a){if(l=mt,l!==null&&(o=z1(l,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,Tl(t,o),xe(l,t,o),Ic;jo(),e=Df(t,e,n);}else t=i.treeContext,kt=qe(o.nextSibling),Jt=e,lt=true,Kn=null,Be=false,t!==null&&nd(e,t),e=vo(e,l),e.flags|=4096;return e}return t=_n(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ko(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else {if(typeof n!="function"&&typeof n!="object")throw Error(W(284));(t===null||t.ref!==n)&&(e.flags|=4194816);}}function tc(t,e,n,l,a){return El(e),n=Bc(t,e,n,l,void 0,a),l=Xc(),t!==null&&!Ot?(qc(t,e,a),An(t,e,a)):(lt&&l&&wc(e),e.flags|=1,Vt(t,e,n,a),e.child)}function Tf(t,e,n,l,a,i){return El(e),e.updateQueue=null,n=dd(e,l,n,a),fd(t),l=Xc(),t!==null&&!Ot?(qc(t,e,i),An(t,e,i)):(lt&&l&&wc(e),e.flags|=1,Vt(t,e,n,i),e.child)}function wf(t,e,n,l,a){if(El(e),e.stateNode===null){var i=ta,o=n.contextType;typeof o=="object"&&o!==null&&(i=Kt(o)),i=new n(l,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Ps,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=l,i.state=e.memoizedState,i.refs={},Rc(e),o=n.contextType,i.context=typeof o=="object"&&o!==null?Kt(o):ta,i.state=e.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(os(e,n,o,l),i.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&Ps.enqueueReplaceState(i,i.state,null),ai(e,l,i,a),li(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=true;}else if(t===null){i=e.stateNode;var r=e.memoizedProps,s=Cl(n,r);i.props=s;var u=i.context,f=n.contextType;o=ta,typeof f=="object"&&f!==null&&(o=Kt(f));var y=n.getDerivedStateFromProps;f=typeof y=="function"||typeof i.getSnapshotBeforeUpdate=="function",r=e.pendingProps!==r,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(r||u!==o)&&zf(e,i,l,o),Yn=false;var d=e.memoizedState;i.state=d,ai(e,l,i,a),li(),u=e.memoizedState,r||d!==u||Yn?(typeof y=="function"&&(os(e,n,y,l),u=e.memoizedState),(s=Yn||Ef(e,n,s,l,d,u,o))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=u),i.props=l,i.state=u,i.context=o,l=s):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),l=false);}else {i=e.stateNode,Gs(t,e),o=e.memoizedProps,f=Cl(n,o),i.props=f,y=e.pendingProps,d=i.context,u=n.contextType,s=ta,typeof u=="object"&&u!==null&&(s=Kt(u)),r=n.getDerivedStateFromProps,(u=typeof r=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==y||d!==s)&&zf(e,i,l,s),Yn=false,d=e.memoizedState,i.state=d,ai(e,l,i,a),li();var m=e.memoizedState;o!==y||d!==m||Yn||t!==null&&t.dependencies!==null&&Oo(t.dependencies)?(typeof r=="function"&&(os(e,n,r,l),m=e.memoizedState),(f=Yn||Ef(e,n,f,l,d,m,s)||t!==null&&t.dependencies!==null&&Oo(t.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(l,m,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(l,m,s)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=m),i.props=l,i.state=m,i.context=s,l=f):(typeof i.componentDidUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),l=false);}return i=l,ko(t,e),l=(e.flags&128)!==0,i||l?(i=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&l?(e.child=zl(e,t.child,null,a),e.child=zl(e,null,n,a)):Vt(t,e,n,a),e.memoizedState=i.state,t=e.child):t=An(t,e,a),t}function Nf(t,e,n,l){return _l(),e.flags|=256,Vt(t,e,n,l),e.child}var rs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ss(t){return {baseLanes:t,cachePool:ad()}}function cs(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ee),t}function Kd(t,e,n){var l=e.pendingProps,a=false,i=(e.flags&128)!==0,o;if((o=i)||(o=t!==null&&t.memoizedState===null?false:($t.current&2)!==0),o&&(a=true,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(lt){if(a?Bn(e):Xn(),(t=kt)?(t=B2(t,Be),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:al!==null?{id:en,overflow:nn}:null,retryLane:536870912,hydrationErrors:null},n=td(t),n.return=e,e.child=n,Jt=e,kt=null)):t=null,t===null)throw il(e);return hc(t)?e.lanes=32:e.lanes=536870912,null}var r=l.children;return l=l.fallback,a?(Xn(),a=e.mode,r=Xo({mode:"hidden",children:r},a),l=vl(l,a,n,null),r.return=e,l.return=e,r.sibling=l,e.child=r,l=e.child,l.memoizedState=ss(n),l.childLanes=cs(t,o,n),e.memoizedState=rs,Ka(null,l)):(Bn(e),ec(e,r))}var s=t.memoizedState;if(s!==null&&(r=s.dehydrated,r!==null)){if(i)e.flags&256?(Bn(e),e.flags&=-257,e=us(t,e,n)):e.memoizedState!==null?(Xn(),e.child=t.child,e.flags|=128,e=null):(Xn(),r=l.fallback,a=e.mode,l=Xo({mode:"visible",children:l.children},a),r=vl(r,a,n,null),r.flags|=2,l.return=e,r.return=e,l.sibling=r,e.child=l,zl(e,t.child,null,n),l=e.child,l.memoizedState=ss(n),l.childLanes=cs(t,o,n),e.memoizedState=rs,e=Ka(null,l));else if(Bn(e),hc(r)){if(o=r.nextSibling&&r.nextSibling.dataset,o)var u=o.dgst;o=u,l=Error(W(419)),l.stack="",l.digest=o,xi({value:l,source:null,stack:null}),e=us(t,e,n);}else if(Ot||_a(t,e,n,false),o=(n&t.childLanes)!==0,Ot||o){if(o=mt,o!==null&&(l=z1(o,n),l!==0&&l!==s.retryLane))throw s.retryLane=l,Tl(t,l),xe(o,t,l),Ic;yc(r)||jo(),e=us(t,e,n);}else yc(r)?(e.flags|=192,e.child=t.child,e=null):(t=s.treeContext,kt=qe(r.nextSibling),Jt=e,lt=true,Kn=null,Be=false,t!==null&&nd(e,t),e=ec(e,l.children),e.flags|=4096);return e}return a?(Xn(),r=l.fallback,a=e.mode,s=t.child,u=s.sibling,l=_n(s,{mode:"hidden",children:l.children}),l.subtreeFlags=s.subtreeFlags&65011712,u!==null?r=_n(u,r):(r=vl(r,a,n,null),r.flags|=2),r.return=e,l.return=e,l.sibling=r,e.child=l,Ka(null,l),l=e.child,r=t.child.memoizedState,r===null?r=ss(n):(a=r.cachePool,a!==null?(s=Nt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=ad(),r={baseLanes:r.baseLanes|n,cachePool:a}),l.memoizedState=r,l.childLanes=cs(t,o,n),e.memoizedState=rs,Ka(t.child,l)):(Bn(e),n=t.child,t=n.sibling,n=_n(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=n,e.memoizedState=null,n)}function ec(t,e){return e=Xo({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Xo(t,e){return t=_e(22,t,null,e),t.lanes=0,t}function us(t,e,n){return zl(e,t.child,null,n),t=ec(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Of(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Xs(t.return,e,n);}function fs(t,e,n,l,a,i){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:i}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=n,o.tailMode=a,o.treeForkCount=i);}function Fd(t,e,n){var l=e.pendingProps,a=l.revealOrder,i=l.tail;l=l.children;var o=$t.current,r=(o&2)!==0;if(r?(o=o&1|2,e.flags|=128):o&=1,xt($t,o),Vt(t,e,l,n),l=lt?mi:0,!r&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Of(t,n,e);else if(t.tag===19)Of(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return;}t.sibling.return=t.return,t=t.sibling;}switch(a){case "forwards":for(n=e.child,a=null;n!==null;)t=n.alternate,t!==null&&Ro(t)===null&&(a=n),n=n.sibling;n=a,n===null?(a=e.child,e.child=null):(a=n.sibling,n.sibling=null),fs(e,false,a,n,i,l);break;case "backwards":case "unstable_legacy-backwards":for(n=null,a=e.child,e.child=null;a!==null;){if(t=a.alternate,t!==null&&Ro(t)===null){e.child=a;break}t=a.sibling,a.sibling=n,n=a,a=t;}fs(e,true,n,null,i,l);break;case "together":fs(e,false,null,null,void 0,l);break;default:e.memoizedState=null;}return e.child}function An(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),rl|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(_a(t,e,n,false),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(W(153));if(e.child!==null){for(t=e.child,n=_n(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=_n(t,t.pendingProps),n.return=e;n.sibling=null;}return e.child}function tu(t,e){return (t.lanes&e)!==0?true:(t=t.dependencies,!!(t!==null&&Oo(t)))}function yx(t,e,n){switch(e.tag){case 3:Co(e,e.stateNode.containerInfo),Un(e,Nt,t.memoizedState.cache),_l();break;case 27:case 5:$s(e);break;case 4:Co(e,e.stateNode.containerInfo);break;case 10:Un(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Zs(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Bn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Kd(t,e,n):(Bn(e),t=An(t,e,n),t!==null?t.sibling:null);Bn(e);break;case 19:var a=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(_a(t,e,n,false),l=(n&e.childLanes)!==0),a){if(l)return Fd(t,e,n);e.flags|=128;}if(a=e.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),xt($t,$t.current),l)break;return null;case 22:return e.lanes=0,Jd(t,e,n,e.pendingProps);case 24:Un(e,Nt,t.memoizedState.cache);}return An(t,e,n)}function Pd(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ot=true;else {if(!tu(t,n)&&(e.flags&128)===0)return Ot=false,yx(t,e,n);Ot=(t.flags&131072)!==0;}else Ot=false,lt&&(e.flags&1048576)!==0&&ed(e,mi,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=pl(e.elementType),e.type=t,typeof t=="function")Tc(t)?(l=Cl(t,l),e.tag=1,e=wf(null,e,t,l,n)):(e.tag=0,e=tc(null,e,t,l,n));else {if(t!=null){var a=t.$$typeof;if(a===gc){e.tag=11,e=Cf(null,e,t,l,n);break t}else if(a===bc){e.tag=14,e=$f(null,e,t,l,n);break t}}throw e=Ws(t)||t,Error(W(306,e,""))}}return e;case 0:return tc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,a=Cl(l,e.pendingProps),wf(t,e,l,a,n);case 3:t:{if(Co(e,e.stateNode.containerInfo),t===null)throw Error(W(387));l=e.pendingProps;var i=e.memoizedState;a=i.element,Gs(t,e),ai(e,l,null,n);var o=e.memoizedState;if(l=o.cache,Un(e,Nt,l),l!==i.cache&&qs(e,[Nt],n,true),li(),l=o.element,i.isDehydrated)if(i={element:l,isDehydrated:false,cache:o.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=Nf(t,e,l,n);break t}else if(l!==a){a=Ue(Error(W(424)),e),xi(a),e=Nf(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,kt=qe(t.firstChild),Jt=e,lt=true,Kn=null,Be=true,n=rd(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else {if(_l(),l===a){e=An(t,e,n);break t}Vt(t,e,l,n);}e=e.child;}return e;case 26:return ko(t,e),t===null?(n=l1(e.type,null,e.pendingProps,null))?e.memoizedState=n:lt||(n=e.type,t=e.pendingProps,l=Ko(Jn.current).createElement(n),l[Zt]=e,l[pe]=t,Ft(l,n,t),Xt(l),e.stateNode=l):e.memoizedState=l1(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return $s(e),t===null&<&&(l=e.stateNode=X2(e.type,e.pendingProps,Jn.current),Jt=e,Be=true,a=kt,cl(e.type)?(mc=a,kt=qe(l.firstChild)):kt=a),Vt(t,e,e.pendingProps.children,n),ko(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&<&&((a=l=kt)&&(l=Bx(l,e.type,e.pendingProps,Be),l!==null?(e.stateNode=l,Jt=e,kt=qe(l.firstChild),Be=false,a=true):a=false),a||il(e)),$s(e),a=e.type,i=e.pendingProps,o=t!==null?t.memoizedProps:null,l=i.children,fc(a,i)?l=null:o!==null&&fc(a,o)&&(e.flags|=32),e.memoizedState!==null&&(a=Bc(t,e,ax,null,null,n),Si._currentValue=a),ko(t,e),Vt(t,e,l,n),e.child;case 6:return t===null&<&&((t=n=kt)&&(n=Xx(n,e.pendingProps,Be),n!==null?(e.stateNode=n,Jt=e,kt=null,t=true):t=false),t||il(e)),null;case 13:return Kd(t,e,n);case 4:return Co(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=zl(e,null,l,n):Vt(t,e,l,n),e.child;case 11:return Cf(t,e,e.type,e.pendingProps,n);case 7:return Vt(t,e,e.pendingProps,n),e.child;case 8:return Vt(t,e,e.pendingProps.children,n),e.child;case 12:return Vt(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Un(e,e.type,l.value),Vt(t,e,l.children,n),e.child;case 9:return a=e.type._context,l=e.pendingProps.children,El(e),a=Kt(a),l=l(a),e.flags|=1,Vt(t,e,l,n),e.child;case 14:return $f(t,e,e.type,e.pendingProps,n);case 15:return Zd(t,e,e.type,e.pendingProps,n);case 19:return Fd(t,e,n);case 31:return dx(t,e,n);case 22:return Jd(t,e,n,e.pendingProps);case 24:return El(e),l=Kt(Nt),t===null?(a=Hc(),a===null&&(a=mt,i=Oc(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),e.memoizedState={parent:l,cache:a},Rc(e),Un(e,Nt,a)):((t.lanes&n)!==0&&(Gs(t,e),ai(e,null,null,n),li()),a=t.memoizedState,i=e.memoizedState,a.parent!==l?(a={parent:l,cache:l},e.memoizedState=a,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=a),Un(e,Nt,l)):(l=i.cache,Un(e,Nt,l),l!==a.cache&&qs(e,[Nt],n,true))),Vt(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(W(156,e.tag))}function mn(t){t.flags|=4;}function ds(t,e,n,l,a){if((e=(t.mode&32)!==0)&&(e=false),e){if(t.flags|=16777216,(a&335544128)===a)if(t.stateNode.complete)t.flags|=8192;else if(S2())t.flags|=8192;else throw Sl=Ho,Lc}else t.flags&=-16777217;}function Hf(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!G2(e))if(S2())t.flags|=8192;else throw Sl=Ho,Lc}function ao(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?M1():536870912,t.lanes|=e,pa|=e);}function qa(t,e){if(!lt)switch(t.tailMode){case "hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case "collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null;}}function vt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&65011712,l|=a.flags&65011712,a.return=t,a=a.sibling;else for(a=t.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=t,a=a.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function hx(t,e,n){var l=e.pendingProps;switch(Nc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(e),null;case 1:return vt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),En(Nt),fa(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Xl(e)?mn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ls())),vt(e),null;case 26:var a=e.type,i=e.memoizedState;return t===null?(mn(e),i!==null?(vt(e),Hf(e,i)):(vt(e),ds(e,a,null,l,n))):i?i!==t.memoizedState?(mn(e),vt(e),Hf(e,i)):(vt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&mn(e),vt(e),ds(e,a,t,l,n)),null;case 27:if($o(e),n=Jn.current,a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else {if(!l){if(e.stateNode===null)throw Error(W(166));return vt(e),null}t=an.current,Xl(e)?ff(e):(t=X2(a,l,n),e.stateNode=t,mn(e));}return vt(e),null;case 5:if($o(e),a=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else {if(!l){if(e.stateNode===null)throw Error(W(166));return vt(e),null}if(i=an.current,Xl(e))ff(e);else {var o=Ko(Jn.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case "svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case "math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case "script":i=o.createElement("div"),i.innerHTML="<script></script>",i=i.removeChild(i.firstChild);break;case "select":i=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?i.multiple=true:l.size&&(i.size=l.size);break;default:i=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a);}}i[Zt]=e,i[pe]=l;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return;}o.sibling.return=o.return,o=o.sibling;}e.stateNode=i;t:switch(Ft(i,a,l),a){case "button":case "input":case "select":case "textarea":l=!!l.autoFocus;break t;case "img":l=true;break t;default:l=false;}l&&mn(e);}}return vt(e),ds(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&mn(e);else {if(typeof l!="string"&&e.stateNode===null)throw Error(W(166));if(t=Jn.current,Xl(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,a=Jt,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps;}t[Zt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===true||R2(t.nodeValue,n)),t||il(e,true);}else t=Ko(t).createTextNode(l),t[Zt]=e,e.stateNode=t;}return vt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Xl(e),n!==null){if(t===null){if(!l)throw Error(W(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(W(557));t[Zt]=e;}else _l(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;vt(e),t=false;}else n=ls(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=true;if(!t)return e.flags&256?(Me(e),e):(Me(e),null);if((e.flags&128)!==0)throw Error(W(558))}return vt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(a=Xl(e),l!==null&&l.dehydrated!==null){if(t===null){if(!a)throw Error(W(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(W(317));a[Zt]=e;}else _l(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;vt(e),a=false;}else a=ls(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),a=true;if(!a)return e.flags&256?(Me(e),e):(Me(e),null)}return Me(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),i=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(i=l.memoizedState.cachePool.pool),i!==a&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),ao(e,e.updateQueue),vt(e),null);case 4:return fa(),t===null&&ru(e.stateNode.containerInfo),vt(e),null;case 10:return En(e.type),vt(e),null;case 19:if(qt($t),l=e.memoizedState,l===null)return vt(e),null;if(a=(e.flags&128)!==0,i=l.rendering,i===null)if(a)qa(l,false);else {if(zt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=Ro(t),i!==null){for(e.flags|=128,qa(l,false),t=i.updateQueue,e.updateQueue=t,ao(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)I1(n,t),n=n.sibling;return xt($t,$t.current&1|2),lt&&bn(e,l.treeForkCount),e.child}t=t.sibling;}l.tail!==null&&ze()>Qo&&(e.flags|=128,a=true,qa(l,false),e.lanes=4194304);}else {if(!a)if(t=Ro(i),t!==null){if(e.flags|=128,a=true,t=t.updateQueue,e.updateQueue=t,ao(e,t),qa(l,true),l.tail===null&&l.tailMode==="hidden"&&!i.alternate&&!lt)return vt(e),null}else 2*ze()-l.renderingStartTime>Qo&&n!==536870912&&(e.flags|=128,a=true,qa(l,false),e.lanes=4194304);l.isBackwards?(i.sibling=e.child,e.child=i):(t=l.last,t!==null?t.sibling=i:e.child=i,l.last=i);}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ze(),t.sibling=null,n=$t.current,xt($t,a?n&1|2:n&1),lt&&bn(e,l.treeForkCount),t):(vt(e),null);case 22:case 23:return Me(e),Yc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(vt(e),e.subtreeFlags&6&&(e.flags|=8192)):vt(e),n=e.updateQueue,n!==null&&ao(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&qt(kl),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),En(Nt),vt(e),null;case 25:return null;case 30:return null}throw Error(W(156,e.tag))}function mx(t,e){switch(Nc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return En(Nt),fa(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $o(e),null;case 31:if(e.memoizedState!==null){if(Me(e),e.alternate===null)throw Error(W(340));_l();}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Me(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(W(340));_l();}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return qt($t),null;case 4:return fa(),null;case 10:return En(e.type),null;case 22:case 23:return Me(e),Yc(),t!==null&&qt(kl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return En(Nt),null;case 25:return null;default:return null}}function Id(t,e){switch(Nc(e),e.tag){case 3:En(Nt),fa();break;case 26:case 27:case 5:$o(e);break;case 4:fa();break;case 31:e.memoizedState!==null&&Me(e);break;case 13:Me(e);break;case 19:qt($t);break;case 10:En(e.type);break;case 22:case 23:Me(e),Yc(),t!==null&&qt(kl);break;case 24:En(Nt);}}function wi(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&t)===t){l=void 0;var i=n.create,o=n.inst;l=i(),o.destroy=l;}n=n.next;}while(n!==a)}}catch(r){ct(e,e.return,r);}}function ol(t,e,n){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var i=a.next;l=i;do{if((l.tag&t)===t){var o=l.inst,r=o.destroy;if(r!==void 0){o.destroy=void 0,a=e;var s=n,u=r;try{u();}catch(f){ct(a,s,f);}}}l=l.next;}while(l!==i)}}catch(f){ct(e,e.return,f);}}function t2(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{cd(e,n);}catch(l){ct(t,t.return,l);}}}function e2(t,e,n){n.props=Cl(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount();}catch(l){ct(t,e,l);}}function oi(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode;}typeof n=="function"?t.refCleanup=n(l):n.current=l;}}catch(a){ct(t,e,a);}}function ln(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l();}catch(a){ct(t,e,a);}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null);}else if(typeof n=="function")try{n(null);}catch(a){ct(t,e,a);}else n.current=null;}function n2(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case "button":case "input":case "select":case "textarea":n.autoFocus&&l.focus();break t;case "img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet);}}catch(a){ct(t,t.return,a);}}function ys(t,e,n){try{var l=t.stateNode;Ox(l,t.type,n,e),l[pe]=e;}catch(a){ct(t,t.return,a);}}function l2(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&cl(t.type)||t.tag===4}function hs(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||l2(t.return))return null;t=t.return;}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&cl(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child;}if(!(t.flags&2))return t.stateNode}}function nc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Sn));else if(l!==4&&(l===27&&cl(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(nc(t,e,n),t=t.sibling;t!==null;)nc(t,e,n),t=t.sibling;}function qo(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&cl(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(qo(t,e,n),t=t.sibling;t!==null;)qo(t,e,n),t=t.sibling;}function a2(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Ft(e,l,n),e[Zt]=t,e[pe]=n;}catch(i){ct(t,t.return,i);}}var vn=false,wt=false,ms=false,Lf=typeof WeakSet=="function"?WeakSet:Set,Bt=null;function xx(t,e){if(t=t.containerInfo,cc=tr,t=G1(t),$c(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{n.nodeType,i.nodeType;}catch{n=null;break t}var o=0,r=-1,s=-1,u=0,f=0,y=t,d=null;e:for(;;){for(var m;y!==n||a!==0&&y.nodeType!==3||(r=o+a),y!==i||l!==0&&y.nodeType!==3||(s=o+l),y.nodeType===3&&(o+=y.nodeValue.length),(m=y.firstChild)!==null;)d=y,y=m;for(;;){if(y===t)break e;if(d===n&&++u===a&&(r=o),d===i&&++f===l&&(s=o),(m=y.nextSibling)!==null)break;y=d,d=y.parentNode;}y=m;}n=r===-1||s===-1?null:{start:r,end:s};}else n=null;}n=n||{start:0,end:0};}else n=null;for(uc={focusedElem:t,selectionRange:n},tr=false,Bt=e;Bt!==null;)if(e=Bt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Bt=t;else for(;Bt!==null;){switch(e=Bt,i=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)a=t[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&i!==null){t=void 0,n=e,a=i.memoizedProps,i=i.memoizedState,l=n.stateNode;try{var _=Cl(n.type,a);t=l.getSnapshotBeforeUpdate(_,i),l.__reactInternalSnapshotBeforeUpdate=t;}catch(E){ct(n,n.return,E);}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)dc(t);else if(n===1)switch(t.nodeName){case "HEAD":case "HTML":case "BODY":dc(t);break;default:t.textContent="";}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(W(163))}if(t=e.sibling,t!==null){t.return=e.return,Bt=t;break}Bt=e.return;}}function i2(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:pn(t,n),l&4&&wi(5,n);break;case 1:if(pn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount();}catch(o){ct(n,n.return,o);}else {var a=Cl(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(a,e,t.__reactInternalSnapshotBeforeUpdate);}catch(o){ct(n,n.return,o);}}l&64&&t2(n),l&512&&oi(n,n.return);break;case 3:if(pn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode;}try{cd(t,e);}catch(o){ct(n,n.return,o);}}break;case 27:e===null&&l&4&&a2(n);case 26:case 5:pn(t,n),e===null&&l&4&&n2(n),l&512&&oi(n,n.return);break;case 12:pn(t,n);break;case 31:pn(t,n),l&4&&s2(t,n);break;case 13:pn(t,n),l&4&&c2(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Ex.bind(null,n),qx(t,n))));break;case 22:if(l=n.memoizedState!==null||vn,!l){e=e!==null&&e.memoizedState!==null||wt,a=vn;var i=wt;vn=l,(wt=e)&&!i?gn(t,n,(n.subtreeFlags&8772)!==0):pn(t,n),vn=a,wt=i;}break;case 30:break;default:pn(t,n);}}function o2(t){var e=t.alternate;e!==null&&(t.alternate=null,o2(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Mc(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null;}var _t=null,he=false;function xn(t,e,n){for(n=n.child;n!==null;)r2(t,e,n),n=n.sibling;}function r2(t,e,n){if(We&&typeof We.onCommitFiberUnmount=="function")try{We.onCommitFiberUnmount(zi,n);}catch{}switch(n.tag){case 26:wt||ln(n,e),xn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:wt||ln(n,e);var l=_t,a=he;cl(n.type)&&(_t=n.stateNode,he=false),xn(t,e,n),ui(n.stateNode),_t=l,he=a;break;case 5:wt||ln(n,e);case 6:if(l=_t,a=he,_t=null,xn(t,e,n),_t=l,he=a,_t!==null)if(he)try{(_t.nodeType===9?_t.body:_t.nodeName==="HTML"?_t.ownerDocument.body:_t).removeChild(n.stateNode);}catch(i){ct(n,e,i);}else try{_t.removeChild(n.stateNode);}catch(i){ct(n,e,i);}break;case 18:_t!==null&&(he?(t=_t,Pf(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ka(t)):Pf(_t,n.stateNode));break;case 4:l=_t,a=he,_t=n.stateNode.containerInfo,he=true,xn(t,e,n),_t=l,he=a;break;case 0:case 11:case 14:case 15:ol(2,n,e),wt||ol(4,n,e),xn(t,e,n);break;case 1:wt||(ln(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&e2(n,e,l)),xn(t,e,n);break;case 21:xn(t,e,n);break;case 22:wt=(l=wt)||n.memoizedState!==null,xn(t,e,n),wt=l;break;default:xn(t,e,n);}}function s2(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ka(t);}catch(n){ct(e,e.return,n);}}}function c2(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ka(t);}catch(n){ct(e,e.return,n);}}function px(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Lf),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Lf),e;default:throw Error(W(435,t.tag))}}function io(t,e){var n=px(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var a=zx.bind(null,t,l);l.then(a,a);}});}function de(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l],i=t,o=e,r=o;t:for(;r!==null;){switch(r.tag){case 27:if(cl(r.type)){_t=r.stateNode,he=false;break t}break;case 5:_t=r.stateNode,he=false;break t;case 3:case 4:_t=r.stateNode.containerInfo,he=true;break t}r=r.return;}if(_t===null)throw Error(W(160));r2(i,o,a),_t=null,he=false,i=a.alternate,i!==null&&(i.return=null),a.return=null;}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)u2(e,t),e=e.sibling;}var Ze=null;function u2(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:de(e,t),ye(t),l&4&&(ol(3,t,t.return),wi(3,t),ol(5,t,t.return));break;case 1:de(e,t),ye(t),l&512&&(wt||n===null||ln(n,n.return)),l&64&&vn&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var a=Ze;if(de(e,t),ye(t),l&512&&(wt||n===null||ln(n,n.return)),l&4){var i=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,a=a.ownerDocument||a;e:switch(l){case "title":i=a.getElementsByTagName("title")[0],(!i||i[$i]||i[Zt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(l),a.head.insertBefore(i,a.querySelector("head > title"))),Ft(i,l,n),i[Zt]=t,Xt(i),l=i;break t;case "link":var o=i1("link","href",a).get(l+(n.href||""));if(o){for(var r=0;r<o.length;r++)if(i=o[r],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(r,1);break e}}i=a.createElement(l),Ft(i,l,n),a.head.appendChild(i);break;case "meta":if(o=i1("meta","content",a).get(l+(n.content||""))){for(r=0;r<o.length;r++)if(i=o[r],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(r,1);break e}}i=a.createElement(l),Ft(i,l,n),a.head.appendChild(i);break;default:throw Error(W(468,l))}i[Zt]=t,Xt(i),l=i;}t.stateNode=l;}else o1(a,t.type,t.stateNode);else t.stateNode=a1(a,l,t.memoizedProps);else i!==l?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,l===null?o1(a,t.type,t.stateNode):a1(a,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ys(t,t.memoizedProps,n.memoizedProps);}break;case 27:de(e,t),ye(t),l&512&&(wt||n===null||ln(n,n.return)),n!==null&&l&4&&ys(t,t.memoizedProps,n.memoizedProps);break;case 5:if(de(e,t),ye(t),l&512&&(wt||n===null||ln(n,n.return)),t.flags&32){a=t.stateNode;try{ya(a,"");}catch(_){ct(t,t.return,_);}}l&4&&t.stateNode!=null&&(a=t.memoizedProps,ys(t,a,n!==null?n.memoizedProps:a)),l&1024&&(ms=true);break;case 6:if(de(e,t),ye(t),l&4){if(t.stateNode===null)throw Error(W(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l;}catch(_){ct(t,t.return,_);}}break;case 3:if(_o=null,a=Ze,Ze=Fo(e.containerInfo),de(e,t),Ze=a,ye(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{ka(e.containerInfo);}catch(_){ct(t,t.return,_);}ms&&(ms=false,f2(t));break;case 4:l=Ze,Ze=Fo(t.stateNode.containerInfo),de(e,t),ye(t),Ze=l;break;case 12:de(e,t),ye(t);break;case 31:de(e,t),ye(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,io(t,l)));break;case 13:de(e,t),ye(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(yr=ze()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,io(t,l)));break;case 22:a=t.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=vn,f=wt;if(vn=u||a,wt=f||s,de(e,t),wt=f,vn=u,ye(t),l&8192)t:for(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,a&&(n===null||s||vn||wt||gl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){s=n=e;try{if(i=s.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else {r=s.stateNode;var y=s.memoizedProps.style,d=y!=null&&y.hasOwnProperty("display")?y.display:null;r.style.display=d==null||typeof d=="boolean"?"":(""+d).trim();}}catch(_){ct(s,s.return,_);}}}else if(e.tag===6){if(n===null){s=e;try{s.stateNode.nodeValue=a?"":s.memoizedProps;}catch(_){ct(s,s.return,_);}}}else if(e.tag===18){if(n===null){s=e;try{var m=s.stateNode;a?If(m,!0):If(s.stateNode,!1);}catch(_){ct(s,s.return,_);}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return;}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling;}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,io(t,n))));break;case 19:de(e,t),ye(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,io(t,l)));break;case 30:break;case 21:break;default:de(e,t),ye(t);}}function ye(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(l2(l)){n=l;break}l=l.return;}if(n==null)throw Error(W(160));switch(n.tag){case 27:var a=n.stateNode,i=hs(t);qo(t,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(ya(o,""),n.flags&=-33);var r=hs(t);qo(t,r,o);break;case 3:case 4:var s=n.stateNode.containerInfo,u=hs(t);nc(t,u,s);break;default:throw Error(W(161))}}catch(f){ct(t,t.return,f);}t.flags&=-3;}e&4096&&(t.flags&=-4097);}function f2(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;f2(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling;}}function pn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)i2(t,e.alternate,e),e=e.sibling;}function gl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ol(4,e,e.return),gl(e);break;case 1:ln(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&e2(e,e.return,n),gl(e);break;case 27:ui(e.stateNode);case 26:case 5:ln(e,e.return),gl(e);break;case 22:e.memoizedState===null&&gl(e);break;case 30:gl(e);break;default:gl(e);}t=t.sibling;}}function gn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,a=t,i=e,o=i.flags;switch(i.tag){case 0:case 11:case 15:gn(a,i,n),wi(4,i);break;case 1:if(gn(a,i,n),l=i,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount();}catch(u){ct(l,l.return,u);}if(l=i,a=l.updateQueue,a!==null){var r=l.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)sd(s[a],r);}catch(u){ct(l,l.return,u);}}n&&o&64&&t2(i),oi(i,i.return);break;case 27:a2(i);case 26:case 5:gn(a,i,n),n&&l===null&&o&4&&n2(i),oi(i,i.return);break;case 12:gn(a,i,n);break;case 31:gn(a,i,n),n&&o&4&&s2(a,i);break;case 13:gn(a,i,n),n&&o&4&&c2(a,i);break;case 22:i.memoizedState===null&&gn(a,i,n),oi(i,i.return);break;case 30:break;default:gn(a,i,n);}e=e.sibling;}}function eu(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Di(n));}function nu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Di(t));}function Ve(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)d2(t,e,n,l),e=e.sibling;}function d2(t,e,n,l){var a=e.flags;switch(e.tag){case 0:case 11:case 15:Ve(t,e,n,l),a&2048&&wi(9,e);break;case 1:Ve(t,e,n,l);break;case 3:Ve(t,e,n,l),a&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Di(t)));break;case 12:if(a&2048){Ve(t,e,n,l),t=e.stateNode;try{var i=e.memoizedProps,o=i.id,r=i.onPostCommit;typeof r=="function"&&r(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0);}catch(s){ct(e,e.return,s);}}else Ve(t,e,n,l);break;case 31:Ve(t,e,n,l);break;case 13:Ve(t,e,n,l);break;case 23:break;case 22:i=e.stateNode,o=e.alternate,e.memoizedState!==null?i._visibility&2?Ve(t,e,n,l):ri(t,e):i._visibility&2?Ve(t,e,n,l):(i._visibility|=2,Ql(t,e,n,l,(e.subtreeFlags&10256)!==0||false)),a&2048&&eu(o,e);break;case 24:Ve(t,e,n,l),a&2048&&nu(e.alternate,e);break;default:Ve(t,e,n,l);}}function Ql(t,e,n,l,a){for(a=a&&((e.subtreeFlags&10256)!==0||false),e=e.child;e!==null;){var i=t,o=e,r=n,s=l,u=o.flags;switch(o.tag){case 0:case 11:case 15:Ql(i,o,r,s,a),wi(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Ql(i,o,r,s,a):ri(i,o):(f._visibility|=2,Ql(i,o,r,s,a)),a&&u&2048&&eu(o.alternate,o);break;case 24:Ql(i,o,r,s,a),a&&u&2048&&nu(o.alternate,o);break;default:Ql(i,o,r,s,a);}e=e.sibling;}}function ri(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,a=l.flags;switch(l.tag){case 22:ri(n,l),a&2048&&eu(l.alternate,l);break;case 24:ri(n,l),a&2048&&nu(l.alternate,l);break;default:ri(n,l);}e=e.sibling;}}var Fa=8192;function ql(t,e,n){if(t.subtreeFlags&Fa)for(t=t.child;t!==null;)y2(t,e,n),t=t.sibling;}function y2(t,e,n){switch(t.tag){case 26:ql(t,e,n),t.flags&Fa&&t.memoizedState!==null&&ep(n,Ze,t.memoizedState,t.memoizedProps);break;case 5:ql(t,e,n);break;case 3:case 4:var l=Ze;Ze=Fo(t.stateNode.containerInfo),ql(t,e,n),Ze=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Fa,Fa=16777216,ql(t,e,n),Fa=l):ql(t,e,n));break;default:ql(t,e,n);}}function h2(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Qa(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Bt=l,x2(l,t);}h2(t);}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)m2(t),t=t.sibling;}function m2(t){switch(t.tag){case 0:case 11:case 15:Qa(t),t.flags&2048&&ol(9,t,t.return);break;case 3:Qa(t);break;case 12:Qa(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,So(t)):Qa(t);break;default:Qa(t);}}function So(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Bt=l,x2(l,t);}h2(t);}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ol(8,e,e.return),So(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,So(e));break;default:So(e);}t=t.sibling;}}function x2(t,e){for(;Bt!==null;){var n=Bt;switch(n.tag){case 0:case 11:case 15:ol(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++;}break;case 24:Di(n.memoizedState.cache);}if(l=n.child,l!==null)l.return=n,Bt=l;else t:for(n=t;Bt!==null;){l=Bt;var a=l.sibling,i=l.return;if(o2(l),l===n){Bt=null;break t}if(a!==null){a.return=i,Bt=a;break t}Bt=i;}}}var gx={getCacheForType:function(t){var e=Kt(Nt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Kt(Nt).controller.signal}},bx=typeof WeakMap=="function"?WeakMap:Map,at=0,mt=null,et=null,nt=0,st=0,Se=null,jn=false,za=false,lu=false,Dn=0,zt=0,rl=0,Ml=0,au=0,Ee=0,pa=0,si=null,me=null,lc=false,yr=0,p2=0,Qo=1/0,Go=null,In=null,Lt=0,tl=null,ga=null,zn=0,ac=0,ic=null,g2=null,ci=0,oc=null;function $e(){return (at&2)!==0&&nt!==0?nt&-nt:G.T!==null?ou():W1()}function b2(){if(Ee===0)if((nt&536870912)===0||lt){var t=Ji;Ji<<=1,(Ji&3932160)===0&&(Ji=262144),Ee=t;}else Ee=536870912;return t=De.current,t!==null&&(t.flags|=32),Ee}function xe(t,e,n){(t===mt&&(st===2||st===9)||t.cancelPendingCommit!==null)&&(ba(t,0),Vn(t,nt,Ee,false)),Ci(t,n),((at&2)===0||t!==mt)&&(t===mt&&((at&2)===0&&(Ml|=n),zt===4&&Vn(t,nt,Ee,false)),rn(t));}function v2(t,e,n){if((at&6)!==0)throw Error(W(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Wi(t,e),a=l?Sx(t,e):xs(t,e,true),i=l;do{if(a===0){za&&!l&&Vn(t,e,0,false);break}else {if(n=t.current.alternate,i&&!vx(n)){a=xs(t,e,false),i=false;continue}if(a===2){if(i=e,t.errorRecoveryDisabledLanes&i)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var r=t;a=si;var s=r.current.memoizedState.isDehydrated;if(s&&(ba(r,o).flags|=256),o=xs(r,o,false),o!==2){if(lu&&!s){r.errorRecoveryDisabledLanes|=i,Ml|=i,a=4;break t}i=me,me=a,i!==null&&(me===null?me=i:me.push.apply(me,i));}a=o;}if(i=false,a!==2)continue}}if(a===1){ba(t,0),Vn(t,e,0,true);break}t:{switch(l=t,i=a,i){case 0:case 1:throw Error(W(345));case 4:if((e&4194048)!==e)break;case 6:Vn(l,e,Ee,!jn);break t;case 2:me=null;break;case 3:case 5:break;default:throw Error(W(329))}if((e&62914560)===e&&(a=yr+300-ze(),10<a)){if(Vn(l,e,Ee,!jn),nr(l,0,true)!==0)break t;zn=e,l.timeoutHandle=U2(Rf.bind(null,l,n,me,Go,lc,e,Ee,Ml,pa,jn,i,"Throttled",-0,0),a);break t}Rf(l,n,me,Go,lc,e,Ee,Ml,pa,jn,i,null,-0,0);}}break}while(true);rn(t);}function Rf(t,e,n,l,a,i,o,r,s,u,f,y,d,m){if(t.timeoutHandle=-1,y=e.subtreeFlags,y&8192||(y&16785408)===16785408){y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:Sn},y2(e,i,y);var _=(i&62914560)===i?yr-ze():(i&4194048)===i?p2-ze():0;if(_=np(y,_),_!==null){zn=i,t.cancelPendingCommit=_(Uf.bind(null,t,e,i,n,l,a,o,r,s,f,y,null,d,m)),Vn(t,i,o,!u);return}}Uf(t,e,i,n,l,a,o,r,s);}function vx(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],i=a.getSnapshot;a=a.value;try{if(!Ae(i(),a))return !1}catch{return false}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else {if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return true;e=e.return;}e.sibling.return=e.return,e=e.sibling;}}return true}function Vn(t,e,n,l){e&=~au,e&=~Ml,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var a=e;0<a;){var i=31-Ce(a),o=1<<i;l[i]=-1,a&=~o;}n!==0&&_1(t,n,e);}function hr(){return (at&6)===0?(Ni(0),false):true}function iu(){if(et!==null){if(st===0)var t=et.return;else t=et,Mn=wl=null,Qc(t),sa=null,pi=0,t=et;for(;t!==null;)Id(t.alternate,t),t=t.return;et=null;}}function ba(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Rx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),zn=0,iu(),mt=t,et=n=_n(t.current,null),nt=e,st=0,Se=null,jn=false,za=Wi(t,e),lu=false,pa=Ee=au=Ml=rl=zt=0,me=si=null,lc=false,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-Ce(l),i=1<<a;e|=t[a],l&=~i;}return Dn=e,or(),n}function k2(t,e){K=null,G.H=bi,e===Ea||e===sr?(e=xf(),st=3):e===Lc?(e=xf(),st=4):st=e===Ic?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,et===null&&(zt=1,Bo(t,Ue(e,t.current)));}function S2(){var t=De.current;return t===null?true:(nt&4194048)===nt?Xe===null:(nt&62914560)===nt||(nt&536870912)!==0?t===Xe:false}function M2(){var t=G.H;return G.H=bi,t===null?bi:t}function _2(){var t=G.A;return G.A=gx,t}function jo(){zt=4,jn||(nt&4194048)!==nt&&De.current!==null||(za=true),(rl&134217727)===0&&(Ml&134217727)===0||mt===null||Vn(mt,nt,Ee,false);}function xs(t,e,n){var l=at;at|=2;var a=M2(),i=_2();(mt!==t||nt!==e)&&(Go=null,ba(t,e)),e=false;var o=zt;t:do try{if(st!==0&&et!==null){var r=et,s=Se;switch(st){case 8:iu(),o=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(e=!0);var u=st;if(st=0,Se=null,la(t,r,s,u),n&&za){o=0;break t}break;default:u=st,st=0,Se=null,la(t,r,s,u);}}kx(),o=zt;break}catch(f){k2(t,f);}while(true);return e&&t.shellSuspendCounter++,Mn=wl=null,at=l,G.H=a,G.A=i,et===null&&(mt=null,nt=0,or()),o}function kx(){for(;et!==null;)E2(et);}function Sx(t,e){var n=at;at|=2;var l=M2(),a=_2();mt!==t||nt!==e?(Go=null,Qo=ze()+500,ba(t,e)):za=Wi(t,e);t:do try{if(st!==0&&et!==null){e=et;var i=Se;e:switch(st){case 1:st=0,Se=null,la(t,e,i,1);break;case 2:case 9:if(mf(i)){st=0,Se=null,Yf(e);break}e=function(){st!==2&&st!==9||mt!==t||(st=7),rn(t);},i.then(e,e);break t;case 3:st=7;break t;case 4:st=5;break t;case 7:mf(i)?(st=0,Se=null,Yf(e)):(st=0,Se=null,la(t,e,i,7));break;case 5:var o=null;switch(et.tag){case 26:o=et.memoizedState;case 5:case 27:var r=et;if(o?G2(o):r.stateNode.complete){st=0,Se=null;var s=r.sibling;if(s!==null)et=s;else {var u=r.return;u!==null?(et=u,mr(u)):et=null;}break e}}st=0,Se=null,la(t,e,i,5);break;case 6:st=0,Se=null,la(t,e,i,6);break;case 8:iu(),zt=6;break t;default:throw Error(W(462))}}Mx();break}catch(f){k2(t,f);}while(true);return Mn=wl=null,G.H=l,G.A=a,at=n,et!==null?0:(mt=null,nt=0,or(),zt)}function Mx(){for(;et!==null&&!jh();)E2(et);}function E2(t){var e=Pd(t.alternate,t,Dn);t.memoizedProps=t.pendingProps,e===null?mr(t):et=e;}function Yf(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Tf(n,e,e.pendingProps,e.type,void 0,nt);break;case 11:e=Tf(n,e,e.pendingProps,e.type.render,e.ref,nt);break;case 5:Qc(e);default:Id(n,e),e=et=I1(e,Dn),e=Pd(n,e,Dn);}t.memoizedProps=t.pendingProps,e===null?mr(t):et=e;}function la(t,e,n,l){Mn=wl=null,Qc(e),sa=null,pi=0;var a=e.return;try{if(fx(t,a,e,n,nt)){zt=1,Bo(t,Ue(n,t.current)),et=null;return}}catch(i){if(a!==null)throw et=a,i;zt=1,Bo(t,Ue(n,t.current)),et=null;return}e.flags&32768?(lt||l===1?t=true:za||(nt&536870912)!==0?t=false:(jn=t=true,(l===2||l===9||l===3||l===6)&&(l=De.current,l!==null&&l.tag===13&&(l.flags|=16384))),z2(e,t)):mr(e);}function mr(t){var e=t;do{if((e.flags&32768)!==0){z2(e,jn);return}t=e.return;var n=hx(e.alternate,e,Dn);if(n!==null){et=n;return}if(e=e.sibling,e!==null){et=e;return}et=e=t;}while(e!==null);zt===0&&(zt=5);}function z2(t,e){do{var n=mx(t.alternate,t);if(n!==null){n.flags&=32767,et=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){et=t;return}et=t=n;}while(t!==null);zt=6,et=null;}function Uf(t,e,n,l,a,i,o,r,s){t.cancelPendingCommit=null;do xr();while(Lt!==0);if((at&6)!==0)throw Error(W(327));if(e!==null){if(e===t.current)throw Error(W(177));if(i=e.lanes|e.childLanes,i|=Ac,nm(t,n,i,o,r,s),t===mt&&(et=mt=null,nt=0),ga=e,tl=t,zn=n,ac=i,ic=a,g2=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Wx(Ao,function(){return D2(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=G.T,G.T=null,a=it.p,it.p=2,o=at,at|=4;try{xx(t,e,n);}finally{at=o,it.p=a,G.T=l;}}Lt=1,W2(),C2(),$2();}}function W2(){if(Lt===1){Lt=0;var t=tl,e=ga,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=G.T,G.T=null;var l=it.p;it.p=2;var a=at;at|=4;try{u2(e,t);var i=uc,o=G1(t.containerInfo),r=i.focusedElem,s=i.selectionRange;if(o!==r&&r&&r.ownerDocument&&Q1(r.ownerDocument.documentElement,r)){if(s!==null&&$c(r)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in r)r.selectionStart=u,r.selectionEnd=Math.min(f,r.value.length);else {var y=r.ownerDocument||document,d=y&&y.defaultView||window;if(d.getSelection){var m=d.getSelection(),_=r.textContent.length,E=Math.min(s.start,_),T=s.end===void 0?E:Math.min(s.end,_);!m.extend&&E>T&&(o=T,T=E,E=o);var x=sf(r,E),h=sf(r,T);if(x&&h&&(m.rangeCount!==1||m.anchorNode!==x.node||m.anchorOffset!==x.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var p=y.createRange();p.setStart(x.node,x.offset),m.removeAllRanges(),E>T?(m.addRange(p),m.extend(h.node,h.offset)):(p.setEnd(h.node,h.offset),m.addRange(p));}}}}for(y=[],m=r;m=m.parentNode;)m.nodeType===1&&y.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<y.length;r++){var M=y[r];M.element.scrollLeft=M.left,M.element.scrollTop=M.top;}}tr=!!cc,uc=cc=null;}finally{at=a,it.p=l,G.T=n;}}t.current=e,Lt=2;}}function C2(){if(Lt===2){Lt=0;var t=tl,e=ga,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=G.T,G.T=null;var l=it.p;it.p=2;var a=at;at|=4;try{i2(t,e.alternate,e);}finally{at=a,it.p=l,G.T=n;}}Lt=3;}}function $2(){if(Lt===4||Lt===3){Lt=0,Vh();var t=tl,e=ga,n=zn,l=g2;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Lt=5:(Lt=0,ga=tl=null,A2(t,t.pendingLanes));var a=t.pendingLanes;if(a===0&&(In=null),Sc(n),e=e.stateNode,We&&typeof We.onCommitFiberRoot=="function")try{We.onCommitFiberRoot(zi,e,void 0,(e.current.flags&128)===128);}catch{}if(l!==null){e=G.T,a=it.p,it.p=2,G.T=null;try{for(var i=t.onRecoverableError,o=0;o<l.length;o++){var r=l[o];i(r.value,{componentStack:r.stack});}}finally{G.T=e,it.p=a;}}(zn&3)!==0&&xr(),rn(t),a=t.pendingLanes,(n&261930)!==0&&(a&42)!==0?t===oc?ci++:(ci=0,oc=t):ci=0,Ni(0);}}function A2(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Di(e)));}function xr(){return W2(),C2(),$2(),D2()}function D2(){if(Lt!==5)return false;var t=tl,e=ac;ac=0;var n=Sc(zn),l=G.T,a=it.p;try{it.p=32>n?32:n,G.T=null,n=ic,ic=null;var i=tl,o=zn;if(Lt=0,ga=tl=null,zn=0,(at&6)!==0)throw Error(W(331));var r=at;if(at|=4,m2(i.current),d2(i,i.current,o,n),at=r,Ni(0,!1),We&&typeof We.onPostCommitFiberRoot=="function")try{We.onPostCommitFiberRoot(zi,i);}catch{}return !0}finally{it.p=a,G.T=l,A2(t,e);}}function Bf(t,e,n){e=Ue(n,e),e=Is(t.stateNode,e,2),t=Pn(t,e,2),t!==null&&(Ci(t,2),rn(t));}function ct(t,e,n){if(t.tag===3)Bf(t,t,n);else for(;e!==null;){if(e.tag===3){Bf(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(In===null||!In.has(l))){t=Ue(n,t),n=jd(2),l=Pn(e,n,2),l!==null&&(Vd(n,l,e,t),Ci(l,2),rn(l));break}}e=e.return;}}function ps(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new bx;var a=new Set;l.set(e,a);}else a=l.get(e),a===void 0&&(a=new Set,l.set(e,a));a.has(n)||(lu=true,a.add(n),t=_x.bind(null,t,e,n),e.then(t,t));}function _x(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,mt===t&&(nt&n)===n&&(zt===4||zt===3&&(nt&62914560)===nt&&300>ze()-yr?(at&2)===0&&ba(t,0):au|=n,pa===nt&&(pa=0)),rn(t);}function T2(t,e){e===0&&(e=M1()),t=Tl(t,e),t!==null&&(Ci(t,e),rn(t));}function Ex(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),T2(t,n);}function zx(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,a=t.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(W(314))}l!==null&&l.delete(e),T2(t,n);}function Wx(t,e){return vc(t,e)}var Vo=null,Gl=null,rc=false,Zo=false,gs=false,Zn=0;function rn(t){t!==Gl&&t.next===null&&(Gl===null?Vo=Gl=t:Gl=Gl.next=t),Zo=true,rc||(rc=true,$x());}function Ni(t,e){if(!gs&&Zo){gs=true;do for(var n=false,l=Vo;l!==null;){if(t!==0){var a=l.pendingLanes;if(a===0)var i=0;else {var o=l.suspendedLanes,r=l.pingedLanes;i=(1<<31-Ce(42|t)+1)-1,i&=a&~(o&~r),i=i&201326741?i&201326741|1:i?i|2:0;}i!==0&&(n=true,Xf(l,i));}else i=nt,i=nr(l,l===mt?i:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(i&3)===0||Wi(l,i)||(n=true,Xf(l,i));l=l.next;}while(n);gs=false;}}function Cx(){w2();}function w2(){Zo=rc=false;var t=0;Zn!==0&&Lx()&&(t=Zn);for(var e=ze(),n=null,l=Vo;l!==null;){var a=l.next,i=N2(l,e);i===0?(l.next=null,n===null?Vo=a:n.next=a,a===null&&(Gl=n)):(n=l,(t!==0||(i&3)!==0)&&(Zo=true)),l=a;}Lt!==0&&Lt!==5||Ni(t),Zn!==0&&(Zn=0);}function N2(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,a=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var o=31-Ce(i),r=1<<o,s=a[o];s===-1?((r&n)===0||(r&l)!==0)&&(a[o]=em(r,e)):s<=e&&(t.expiredLanes|=r),i&=~r;}if(e=mt,n=nt,n=nr(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(st===2||st===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Vr(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Wi(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Vr(l),Sc(n)){case 2:case 8:n=k1;break;case 32:n=Ao;break;case 268435456:n=S1;break;default:n=Ao;}return l=O2.bind(null,t),n=vc(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Vr(l),t.callbackPriority=2,t.callbackNode=null,2}function O2(t,e){if(Lt!==0&&Lt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(xr()&&t.callbackNode!==n)return null;var l=nt;return l=nr(t,t===mt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(v2(t,l,e),N2(t,ze()),t.callbackNode!=null&&t.callbackNode===n?O2.bind(null,t):null)}function Xf(t,e){if(xr())return null;v2(t,e,true);}function $x(){Yx(function(){(at&6)!==0?vc(v1,Cx):w2();});}function ou(){if(Zn===0){var t=ha;t===0&&(t=Zi,Zi<<=1,(Zi&261888)===0&&(Zi=256)),Zn=t;}return Zn}function qf(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:yo(""+t)}function Qf(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Ax(t,e,n,l,a){if(e==="submit"&&n&&n.stateNode===a){var i=qf((a[pe]||null).action),o=l.submitter;o&&(e=(e=o[pe]||null)?qf(e.formAction):o.getAttribute("formAction"),e!==null&&(i=e,o=null));var r=new lr("action","action",null,l,a);t.push({event:r,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Zn!==0){var s=o?Qf(a,o):new FormData(a);Fs(n,{pending:true,data:s,method:a.method,action:i},null,s);}}else typeof i=="function"&&(r.preventDefault(),s=o?Qf(a,o):new FormData(a),Fs(n,{pending:true,data:s,method:a.method,action:i},i,s));},currentTarget:a}]});}}for(oo=0;oo<Ys.length;oo++)ro=Ys[oo],Gf=ro.toLowerCase(),jf=ro[0].toUpperCase()+ro.slice(1),Je(Gf,"on"+jf);var ro,Gf,jf,oo;Je(V1,"onAnimationEnd");Je(Z1,"onAnimationIteration");Je(J1,"onAnimationStart");Je("dblclick","onDoubleClick");Je("focusin","onFocus");Je("focusout","onBlur");Je(Zm,"onTransitionRun");Je(Jm,"onTransitionStart");Je(Km,"onTransitionCancel");Je(K1,"onTransitionEnd");da("onMouseEnter",["mouseout","mouseover"]);da("onMouseLeave",["mouseout","mouseover"]);da("onPointerEnter",["pointerout","pointerover"]);da("onPointerLeave",["pointerout","pointerover"]);$l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$l("onBeforeInput",["compositionend","keypress","textInput","paste"]);$l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vi));function H2(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],a=l.event;l=l.listeners;t:{var i=void 0;if(e)for(var o=l.length-1;0<=o;o--){var r=l[o],s=r.instance,u=r.currentTarget;if(r=r.listener,s!==i&&a.isPropagationStopped())break t;i=r,a.currentTarget=u;try{i(a);}catch(f){To(f);}a.currentTarget=null,i=s;}else for(o=0;o<l.length;o++){if(r=l[o],s=r.instance,u=r.currentTarget,r=r.listener,s!==i&&a.isPropagationStopped())break t;i=r,a.currentTarget=u;try{i(a);}catch(f){To(f);}a.currentTarget=null,i=s;}}}}function tt(t,e){var n=e[Ds];n===void 0&&(n=e[Ds]=new Set);var l=t+"__bubble";n.has(l)||(L2(e,t,2,false),n.add(l));}function bs(t,e,n){var l=0;e&&(l|=4),L2(n,t,l,e);}var so="_reactListening"+Math.random().toString(36).slice(2);function ru(t){if(!t[so]){t[so]=true,C1.forEach(function(n){n!=="selectionchange"&&(Dx.has(n)||bs(n,false,t),bs(n,true,t));});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[so]||(e[so]=true,bs("selectionchange",false,e));}}function L2(t,e,n,l){switch(K2(e)){case 2:var a=ip;break;case 8:a=op;break;default:a=fu;}n=a.bind(null,e,n,t),a=void 0,!Hs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(a=true),l?a!==void 0?t.addEventListener(e,n,{capture:true,passive:a}):t.addEventListener(e,n,true):a!==void 0?t.addEventListener(e,n,{passive:a}):t.addEventListener(e,n,false);}function vs(t,e,n,l,a){var i=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var o=l.tag;if(o===3||o===4){var r=l.stateNode.containerInfo;if(r===a)break;if(o===4)for(o=l.return;o!==null;){var s=o.tag;if((s===3||s===4)&&o.stateNode.containerInfo===a)return;o=o.return;}for(;r!==null;){if(o=Zl(r),o===null)return;if(s=o.tag,s===5||s===6||s===26||s===27){l=i=o;continue t}r=r.parentNode;}}l=l.return;}H1(function(){var u=i,f=Ec(n),y=[];t:{var d=F1.get(t);if(d!==void 0){var m=lr,_=t;switch(t){case "keypress":if(mo(n)===0)break t;case "keydown":case "keyup":m=zm;break;case "focusin":_="focus",m=Pr;break;case "focusout":_="blur",m=Pr;break;case "beforeblur":case "afterblur":m=Pr;break;case "click":if(n.button===2)break t;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":m=P0;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":m=hm;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":m=$m;break;case V1:case Z1:case J1:m=pm;break;case K1:m=Dm;break;case "scroll":case "scrollend":m=dm;break;case "wheel":m=wm;break;case "copy":case "cut":case "paste":m=bm;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":m=tf;break;case "toggle":case "beforetoggle":m=Om;}var E=(e&4)!==0,T=!E&&(t==="scroll"||t==="scrollend"),x=E?d!==null?d+"Capture":null:d;E=[];for(var h=u,p;h!==null;){var M=h;if(p=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||p===null||x===null||(M=di(h,x),M!=null&&E.push(ki(h,M,p))),T)break;h=h.return;}0<E.length&&(d=new m(d,_,null,n,f),y.push({event:d,listeners:E}));}}if((e&7)===0){t:{if(d=t==="mouseover"||t==="pointerover",m=t==="mouseout"||t==="pointerout",d&&n!==Os&&(_=n.relatedTarget||n.fromElement)&&(Zl(_)||_[Sa]))break t;if((m||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,m?(_=n.relatedTarget||n.toElement,m=u,_=_?Zl(_):null,_!==null&&(T=Ei(_),E=_.tag,_!==T||E!==5&&E!==27&&E!==6)&&(_=null)):(m=null,_=u),m!==_)){if(E=P0,M="onMouseLeave",x="onMouseEnter",h="mouse",(t==="pointerout"||t==="pointerover")&&(E=tf,M="onPointerLeave",x="onPointerEnter",h="pointer"),T=m==null?d:Ja(m),p=_==null?d:Ja(_),d=new E(M,h+"leave",m,n,f),d.target=T,d.relatedTarget=p,M=null,Zl(f)===u&&(E=new E(x,h+"enter",_,n,f),E.target=p,E.relatedTarget=T,M=E),T=M,m&&_)e:{for(E=Tx,x=m,h=_,p=0,M=x;M;M=E(M))p++;M=0;for(var k=h;k;k=E(k))M++;for(;0<p-M;)x=E(x),p--;for(;0<M-p;)h=E(h),M--;for(;p--;){if(x===h||h!==null&&x===h.alternate){E=x;break e}x=E(x),h=E(h);}E=null;}else E=null;m!==null&&Vf(y,d,m,E,!1),_!==null&&T!==null&&Vf(y,T,_,E,!0);}}t:{if(d=u?Ja(u):window,m=d.nodeName&&d.nodeName.toLowerCase(),m==="select"||m==="input"&&d.type==="file")var Y=af;else if(lf(d))if(X1)Y=Gm;else {Y=qm;var N=Xm;}else m=d.nodeName,!m||m.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&_c(u.elementType)&&(Y=af):Y=Qm;if(Y&&(Y=Y(t,u))){B1(y,Y,n,f);break t}N&&N(t,d,u),t==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&Ns(d,"number",d.value);}switch(N=u?Ja(u):window,t){case "focusin":(lf(N)||N.contentEditable==="true")&&(Fl=N,Ls=u,ti=null);break;case "focusout":ti=Ls=Fl=null;break;case "mousedown":Rs=!0;break;case "contextmenu":case "mouseup":case "dragend":Rs=!1,cf(y,n,f);break;case "selectionchange":if(Vm)break;case "keydown":case "keyup":cf(y,n,f);}var L;if(Cc)t:{switch(t){case "compositionstart":var Z="onCompositionStart";break t;case "compositionend":Z="onCompositionEnd";break t;case "compositionupdate":Z="onCompositionUpdate";break t}Z=void 0;}else Kl?Y1(t,n)&&(Z="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(Z="onCompositionStart");Z&&(R1&&n.locale!=="ko"&&(Kl||Z!=="onCompositionStart"?Z==="onCompositionEnd"&&Kl&&(L=L1()):(Gn=f,zc="value"in Gn?Gn.value:Gn.textContent,Kl=!0)),N=Jo(u,Z),0<N.length&&(Z=new I0(Z,t,null,n,f),y.push({event:Z,listeners:N}),L?Z.data=L:(L=U1(n),L!==null&&(Z.data=L)))),(L=Lm?Rm(t,n):Ym(t,n))&&(Z=Jo(u,"onBeforeInput"),0<Z.length&&(N=new I0("onBeforeInput","beforeinput",null,n,f),y.push({event:N,listeners:Z}),N.data=L)),Ax(y,t,u,n,f);}H2(y,e);});}function ki(t,e,n){return {instance:t,listener:e,currentTarget:n}}function Jo(t,e){for(var n=e+"Capture",l=[];t!==null;){var a=t,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=di(t,n),a!=null&&l.unshift(ki(t,a,i)),a=di(t,e),a!=null&&l.push(ki(t,a,i))),t.tag===3)return l;t=t.return;}return []}function Tx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Vf(t,e,n,l,a){for(var i=e._reactName,o=[];n!==null&&n!==l;){var r=n,s=r.alternate,u=r.stateNode;if(r=r.tag,s!==null&&s===l)break;r!==5&&r!==26&&r!==27||u===null||(s=u,a?(u=di(n,i),u!=null&&o.unshift(ki(n,u,s))):a||(u=di(n,i),u!=null&&o.push(ki(n,u,s)))),n=n.return;}o.length!==0&&t.push({event:e,listeners:o});}var wx=/\r\n?/g,Nx=/\u0000|\uFFFD/g;function Zf(t){return (typeof t=="string"?t:""+t).replace(wx,`
|
|
9
|
+
`).replace(Nx,"")}function R2(t,e){return e=Zf(e),Zf(t)===e}function dt(t,e,n,l,a,i){switch(n){case "children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||ya(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&ya(t,""+l);break;case "className":Fi(t,"class",l);break;case "tabIndex":Fi(t,"tabindex",l);break;case "dir":case "role":case "viewBox":case "width":case "height":Fi(t,n,l);break;case "style":O1(t,l,i);break;case "data":if(e!=="object"){Fi(t,"data",l);break}case "src":case "href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=yo(""+l),t.setAttribute(n,l);break;case "action":case "formAction":if(typeof l=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(e!=="input"&&dt(t,e,"name",a.name,a,null),dt(t,e,"formEncType",a.formEncType,a,null),dt(t,e,"formMethod",a.formMethod,a,null),dt(t,e,"formTarget",a.formTarget,a,null)):(dt(t,e,"encType",a.encType,a,null),dt(t,e,"method",a.method,a,null),dt(t,e,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=yo(""+l),t.setAttribute(n,l);break;case "onClick":l!=null&&(t.onclick=Sn);break;case "onScroll":l!=null&&tt("scroll",t);break;case "onScrollEnd":l!=null&&tt("scrollend",t);break;case "dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(W(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(W(60));t.innerHTML=n;}}break;case "multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case "muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":break;case "autoFocus":break;case "xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=yo(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case "contentEditable":case "spellCheck":case "draggable":case "value":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.removeAttribute(n);break;case "inert":case "allowFullScreen":case "async":case "autoPlay":case "controls":case "default":case "defer":case "disabled":case "disablePictureInPicture":case "disableRemotePlayback":case "formNoValidate":case "hidden":case "loop":case "noModule":case "noValidate":case "open":case "playsInline":case "readOnly":case "required":case "reversed":case "scoped":case "seamless":case "itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case "capture":case "download":l===true?t.setAttribute(n,""):l!==false&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case "cols":case "rows":case "size":case "span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case "rowSpan":case "start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case "popover":tt("beforetoggle",t),tt("toggle",t),fo(t,"popover",l);break;case "xlinkActuate":hn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case "xlinkArcrole":hn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case "xlinkRole":hn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case "xlinkShow":hn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case "xlinkTitle":hn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case "xlinkType":hn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case "xmlBase":hn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case "xmlLang":hn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case "xmlSpace":hn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case "is":fo(t,"is",l);break;case "innerText":case "textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=um.get(n)||n,fo(t,n,l));}}function sc(t,e,n,l,a,i){switch(n){case "style":O1(t,l,i);break;case "dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(W(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(W(60));t.innerHTML=n;}}break;case "children":typeof l=="string"?ya(t,l):(typeof l=="number"||typeof l=="bigint")&&ya(t,""+l);break;case "onScroll":l!=null&&tt("scroll",t);break;case "onScrollEnd":l!=null&&tt("scrollend",t);break;case "onClick":l!=null&&(t.onclick=Sn);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(!$1.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),e=n.slice(2,a?n.length-7:void 0),i=t[pe]||null,i=i!=null?i[n]:null,typeof i=="function"&&t.removeEventListener(e,i,a),typeof l=="function")){typeof i!="function"&&i!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,a);break t}n in t?t[n]=l:l===true?t.setAttribute(n,""):fo(t,n,l);}}}function Ft(t,e,n){switch(e){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":tt("error",t),tt("load",t);var l=false,a=false,i;for(i in n)if(n.hasOwnProperty(i)){var o=n[i];if(o!=null)switch(i){case "src":l=true;break;case "srcSet":a=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(W(137,e));default:dt(t,e,i,o,n,null);}}a&&dt(t,e,"srcSet",n.srcSet,n,null),l&&dt(t,e,"src",n.src,n,null);return;case "input":tt("invalid",t);var r=i=o=a=null,s=null,u=null;for(l in n)if(n.hasOwnProperty(l)){var f=n[l];if(f!=null)switch(l){case "name":a=f;break;case "type":o=f;break;case "checked":s=f;break;case "defaultChecked":u=f;break;case "value":i=f;break;case "defaultValue":r=f;break;case "children":case "dangerouslySetInnerHTML":if(f!=null)throw Error(W(137,e));break;default:dt(t,e,l,f,n,null);}}T1(t,i,r,s,u,o,a,false);return;case "select":tt("invalid",t),l=o=i=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case "value":i=r;break;case "defaultValue":o=r;break;case "multiple":l=r;default:dt(t,e,a,r,n,null);}e=i,n=o,t.multiple=!!l,e!=null?ia(t,!!l,e,false):n!=null&&ia(t,!!l,n,true);return;case "textarea":tt("invalid",t),i=a=l=null;for(o in n)if(n.hasOwnProperty(o)&&(r=n[o],r!=null))switch(o){case "value":l=r;break;case "defaultValue":a=r;break;case "children":i=r;break;case "dangerouslySetInnerHTML":if(r!=null)throw Error(W(91));break;default:dt(t,e,o,r,n,null);}N1(t,l,a,i);return;case "option":for(s in n)n.hasOwnProperty(s)&&(l=n[s],l!=null)&&(s==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":dt(t,e,s,l,n,null));return;case "dialog":tt("beforetoggle",t),tt("toggle",t),tt("cancel",t),tt("close",t);break;case "iframe":case "object":tt("load",t);break;case "video":case "audio":for(l=0;l<vi.length;l++)tt(vi[l],t);break;case "image":tt("error",t),tt("load",t);break;case "details":tt("toggle",t);break;case "embed":case "source":case "link":tt("error",t),tt("load",t);case "area":case "base":case "br":case "col":case "hr":case "keygen":case "meta":case "param":case "track":case "wbr":case "menuitem":for(u in n)if(n.hasOwnProperty(u)&&(l=n[u],l!=null))switch(u){case "children":case "dangerouslySetInnerHTML":throw Error(W(137,e));default:dt(t,e,u,l,n,null);}return;default:if(_c(e)){for(f in n)n.hasOwnProperty(f)&&(l=n[f],l!==void 0&&sc(t,e,f,l,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(l=n[r],l!=null&&dt(t,e,r,l,n,null));}function Ox(t,e,n,l){switch(e){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var a=null,i=null,o=null,r=null,s=null,u=null,f=null;for(m in n){var y=n[m];if(n.hasOwnProperty(m)&&y!=null)switch(m){case "checked":break;case "value":break;case "defaultValue":s=y;default:l.hasOwnProperty(m)||dt(t,e,m,null,l,y);}}for(var d in l){var m=l[d];if(y=n[d],l.hasOwnProperty(d)&&(m!=null||y!=null))switch(d){case "type":i=m;break;case "name":a=m;break;case "checked":u=m;break;case "defaultChecked":f=m;break;case "value":o=m;break;case "defaultValue":r=m;break;case "children":case "dangerouslySetInnerHTML":if(m!=null)throw Error(W(137,e));break;default:m!==y&&dt(t,e,d,m,l,y);}}ws(t,o,r,s,u,f,i,a);return;case "select":m=o=r=d=null;for(i in n)if(s=n[i],n.hasOwnProperty(i)&&s!=null)switch(i){case "value":break;case "multiple":m=s;default:l.hasOwnProperty(i)||dt(t,e,i,null,l,s);}for(a in l)if(i=l[a],s=n[a],l.hasOwnProperty(a)&&(i!=null||s!=null))switch(a){case "value":d=i;break;case "defaultValue":r=i;break;case "multiple":o=i;default:i!==s&&dt(t,e,a,i,l,s);}e=r,n=o,l=m,d!=null?ia(t,!!n,d,false):!!l!=!!n&&(e!=null?ia(t,!!n,e,true):ia(t,!!n,n?[]:"",false));return;case "textarea":m=d=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!l.hasOwnProperty(r))switch(r){case "value":break;case "children":break;default:dt(t,e,r,null,l,a);}for(o in l)if(a=l[o],i=n[o],l.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case "value":d=a;break;case "defaultValue":m=a;break;case "children":break;case "dangerouslySetInnerHTML":if(a!=null)throw Error(W(91));break;default:a!==i&&dt(t,e,o,a,l,i);}w1(t,d,m);return;case "option":for(var _ in n)d=n[_],n.hasOwnProperty(_)&&d!=null&&!l.hasOwnProperty(_)&&(_==="selected"?t.selected=false:dt(t,e,_,null,l,d));for(s in l)d=l[s],m=n[s],l.hasOwnProperty(s)&&d!==m&&(d!=null||m!=null)&&(s==="selected"?t.selected=d&&typeof d!="function"&&typeof d!="symbol":dt(t,e,s,d,l,m));return;case "img":case "link":case "area":case "base":case "br":case "col":case "embed":case "hr":case "keygen":case "meta":case "param":case "source":case "track":case "wbr":case "menuitem":for(var E in n)d=n[E],n.hasOwnProperty(E)&&d!=null&&!l.hasOwnProperty(E)&&dt(t,e,E,null,l,d);for(u in l)if(d=l[u],m=n[u],l.hasOwnProperty(u)&&d!==m&&(d!=null||m!=null))switch(u){case "children":case "dangerouslySetInnerHTML":if(d!=null)throw Error(W(137,e));break;default:dt(t,e,u,d,l,m);}return;default:if(_c(e)){for(var T in n)d=n[T],n.hasOwnProperty(T)&&d!==void 0&&!l.hasOwnProperty(T)&&sc(t,e,T,void 0,l,d);for(f in l)d=l[f],m=n[f],!l.hasOwnProperty(f)||d===m||d===void 0&&m===void 0||sc(t,e,f,d,l,m);return}}for(var x in n)d=n[x],n.hasOwnProperty(x)&&d!=null&&!l.hasOwnProperty(x)&&dt(t,e,x,null,l,d);for(y in l)d=l[y],m=n[y],!l.hasOwnProperty(y)||d===m||d==null&&m==null||dt(t,e,y,d,l,m);}function Jf(t){switch(t){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return true;default:return false}}function Hx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],i=a.transferSize,o=a.initiatorType,r=a.duration;if(i&&r&&Jf(o)){for(o=0,r=a.responseEnd,l+=1;l<n.length;l++){var s=n[l],u=s.startTime;if(u>r)break;var f=s.transferSize,y=s.initiatorType;f&&Jf(y)&&(s=s.responseEnd,o+=f*(s<r?1:(r-u)/(s-u)));}if(--l,e+=8*(i+o)/(a.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var cc=null,uc=null;function Ko(t){return t.nodeType===9?t:t.ownerDocument}function Kf(t){switch(t){case "http://www.w3.org/2000/svg":return 1;case "http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Y2(t,e){if(t===0)switch(e){case "svg":return 1;case "math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function fc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var ks=null;function Lx(){var t=window.event;return t&&t.type==="popstate"?t===ks?false:(ks=t,true):(ks=null,false)}var U2=typeof setTimeout=="function"?setTimeout:void 0,Rx=typeof clearTimeout=="function"?clearTimeout:void 0,Ff=typeof Promise=="function"?Promise:void 0,Yx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ff<"u"?function(t){return Ff.resolve(null).then(t).catch(Ux)}:U2;function Ux(t){setTimeout(function(){throw t});}function cl(t){return t==="head"}function Pf(t,e){var n=e,l=0;do{var a=n.nextSibling;if(t.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(a),ka(e);return}l--;}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ui(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ui(n);for(var i=n.firstChild;i;){var o=i.nextSibling,r=i.nodeName;i[$i]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o;}}else n==="body"&&ui(t.ownerDocument.body);n=a;}while(n);ka(e);}function If(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--;}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l;}while(n)}function dc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case "HTML":case "HEAD":case "BODY":dc(n),Mc(n);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n);}}function Bx(t,e,n,l){for(;t.nodeType===1;){var a=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[$i])switch(e){case "meta":if(!t.hasAttribute("itemprop"))break;return t;case "link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==a.rel||t.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||t.getAttribute("title")!==(a.title==null?null:a.title))break;return t;case "style":if(t.hasAttribute("data-precedence"))break;return t;case "script":if(i=t.getAttribute("src"),(i!==(a.src==null?null:a.src)||t.getAttribute("type")!==(a.type==null?null:a.type)||t.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=qe(t.nextSibling),t===null)break}return null}function Xx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=qe(t.nextSibling),t===null))return null;return t}function B2(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=qe(t.nextSibling),t===null))return null;return t}function yc(t){return t.data==="$?"||t.data==="$~"}function hc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function qx(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else {var l=function(){e(),n.removeEventListener("DOMContentLoaded",l);};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l;}}function qe(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var mc=null;function t1(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return qe(t.nextSibling);e--;}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++;}t=t.nextSibling;}return null}function e1(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--;}else n!=="/$"&&n!=="/&"||e++;}t=t.previousSibling;}return null}function X2(t,e,n){switch(e=Ko(n),t){case "html":if(t=e.documentElement,!t)throw Error(W(452));return t;case "head":if(t=e.head,!t)throw Error(W(453));return t;case "body":if(t=e.body,!t)throw Error(W(454));return t;default:throw Error(W(451))}}function ui(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Mc(t);}var Qe=new Map,n1=new Set;function Fo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Tn=it.d;it.d={f:Qx,r:Gx,D:jx,C:Vx,L:Zx,m:Jx,X:Fx,S:Kx,M:Px};function Qx(){var t=Tn.f(),e=hr();return t||e}function Gx(t){var e=Ma(t);e!==null&&e.tag===5&&e.type==="form"?Od(e):Tn.r(t);}var Wa=typeof document>"u"?null:document;function q2(t,e,n){var l=Wa;if(l&&typeof e=="string"&&e){var a=Ye(e);a='link[rel="'+t+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),n1.has(a)||(n1.add(a),t={rel:t,crossOrigin:n,href:e},l.querySelector(a)===null&&(e=l.createElement("link"),Ft(e,"link",t),Xt(e),l.head.appendChild(e)));}}function jx(t){Tn.D(t),q2("dns-prefetch",t,null);}function Vx(t,e){Tn.C(t,e),q2("preconnect",t,e);}function Zx(t,e,n){Tn.L(t,e,n);var l=Wa;if(l&&t&&e){var a='link[rel="preload"][as="'+Ye(e)+'"]';e==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Ye(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Ye(n.imageSizes)+'"]')):a+='[href="'+Ye(t)+'"]';var i=a;switch(e){case "style":i=va(t);break;case "script":i=Ca(t);}Qe.has(i)||(t=St({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Qe.set(i,t),l.querySelector(a)!==null||e==="style"&&l.querySelector(Oi(i))||e==="script"&&l.querySelector(Hi(i))||(e=l.createElement("link"),Ft(e,"link",t),Xt(e),l.head.appendChild(e)));}}function Jx(t,e){Tn.m(t,e);var n=Wa;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",a='link[rel="modulepreload"][as="'+Ye(l)+'"][href="'+Ye(t)+'"]',i=a;switch(l){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":i=Ca(t);}if(!Qe.has(i)&&(t=St({rel:"modulepreload",href:t},e),Qe.set(i,t),n.querySelector(a)===null)){switch(l){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(n.querySelector(Hi(i)))return}l=n.createElement("link"),Ft(l,"link",t),Xt(l),n.head.appendChild(l);}}}function Kx(t,e,n){Tn.S(t,e,n);var l=Wa;if(l&&t){var a=aa(l).hoistableStyles,i=va(t);e=e||"default";var o=a.get(i);if(!o){var r={loading:0,preload:null};if(o=l.querySelector(Oi(i)))r.loading=5;else {t=St({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Qe.get(i))&&su(t,n);var s=o=l.createElement("link");Xt(s),Ft(s,"link",t),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f;}),s.addEventListener("load",function(){r.loading|=1;}),s.addEventListener("error",function(){r.loading|=2;}),r.loading|=4,Mo(o,e,l);}o={type:"stylesheet",instance:o,count:1,state:r},a.set(i,o);}}}function Fx(t,e){Tn.X(t,e);var n=Wa;if(n&&t){var l=aa(n).hoistableScripts,a=Ca(t),i=l.get(a);i||(i=n.querySelector(Hi(a)),i||(t=St({src:t,async:true},e),(e=Qe.get(a))&&cu(t,e),i=n.createElement("script"),Xt(i),Ft(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i));}}function Px(t,e){Tn.M(t,e);var n=Wa;if(n&&t){var l=aa(n).hoistableScripts,a=Ca(t),i=l.get(a);i||(i=n.querySelector(Hi(a)),i||(t=St({src:t,async:true,type:"module"},e),(e=Qe.get(a))&&cu(t,e),i=n.createElement("script"),Xt(i),Ft(i,"link",t),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},l.set(a,i));}}function l1(t,e,n,l){var a=(a=Jn.current)?Fo(a):null;if(!a)throw Error(W(446));switch(t){case "meta":case "title":return null;case "style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=va(n.href),n=aa(a).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case "link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=va(n.href);var i=aa(a).hoistableStyles,o=i.get(t);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,o),(i=a.querySelector(Oi(t)))&&!i._p&&(o.instance=i,o.state.loading=5),Qe.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Qe.set(t,n),i||Ix(a,t,n,o.state))),e&&l===null)throw Error(W(528,""));return o}if(e&&l!==null)throw Error(W(529,""));return null;case "script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Ca(n),n=aa(a).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(W(444,t))}}function va(t){return 'href="'+Ye(t)+'"'}function Oi(t){return 'link[rel="stylesheet"]['+t+"]"}function Q2(t){return St({},t,{"data-precedence":t.precedence,precedence:null})}function Ix(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),Ft(e,"link",n),Xt(e),t.head.appendChild(e));}function Ca(t){return '[src="'+Ye(t)+'"]'}function Hi(t){return "script[async]"+t}function a1(t,e,n){if(e.count++,e.instance===null)switch(e.type){case "style":var l=t.querySelector('style[data-href~="'+Ye(n.href)+'"]');if(l)return e.instance=l,Xt(l),l;var a=St({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Xt(l),Ft(l,"style",a),Mo(l,n.precedence,t),e.instance=l;case "stylesheet":a=va(n.href);var i=t.querySelector(Oi(a));if(i)return e.state.loading|=4,e.instance=i,Xt(i),i;l=Q2(n),(a=Qe.get(a))&&su(l,a),i=(t.ownerDocument||t).createElement("link"),Xt(i);var o=i;return o._p=new Promise(function(r,s){o.onload=r,o.onerror=s;}),Ft(i,"link",l),e.state.loading|=4,Mo(i,n.precedence,t),e.instance=i;case "script":return i=Ca(n.src),(a=t.querySelector(Hi(i)))?(e.instance=a,Xt(a),a):(l=n,(a=Qe.get(i))&&(l=St({},n),cu(l,a)),t=t.ownerDocument||t,a=t.createElement("script"),Xt(a),Ft(a,"link",l),t.head.appendChild(a),e.instance=a);case "void":return null;default:throw Error(W(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Mo(l,n.precedence,t));return e.instance}function Mo(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,i=a,o=0;o<l.length;o++){var r=l[o];if(r.dataset.precedence===e)i=r;else if(i!==a)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild));}function su(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title);}function cu(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity);}var _o=null;function i1(t,e,n){if(_o===null){var l=new Map,a=_o=new Map;a.set(n,l);}else a=_o,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),a=0;a<n.length;a++){var i=n[a];if(!(i[$i]||i[Zt]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(e)||"";o=t+o;var r=l.get(o);r?r.push(i):l.set(o,[i]);}}return l}function o1(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null);}function tp(t,e,n){if(n===1||e.itemProp!=null)return false;switch(t){case "meta":case "title":return true;case "style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return true;case "link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):true;case "script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return true}return false}function G2(t){return !(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ep(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==false)&&(n.state.loading&4)===0){if(n.instance===null){var a=va(l.href),i=e.querySelector(Oi(a));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Po.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=i,Xt(i);return}i=e.ownerDocument||e,l=Q2(l),(a=Qe.get(a))&&su(l,a),i=i.createElement("link"),Xt(i);var o=i;o._p=new Promise(function(r,s){o.onload=r,o.onerror=s;}),Ft(i,"link",l),n.instance=i;}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Po.bind(t),e.addEventListener("load",n),e.addEventListener("error",n));}}var Ss=0;function np(t,e){return t.stylesheets&&t.count===0&&Eo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&Eo(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i();}},6e4+e);0<t.imgBytes&&Ss===0&&(Ss=62500*Hx());var a=setTimeout(function(){if(t.waitingForImages=false,t.count===0&&(t.stylesheets&&Eo(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i();}},(t.imgBytes>Ss?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(a);}}:null}function Po(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Eo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t();}}}var Io=null;function Eo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Io=new Map,e.forEach(lp,t),Io=null,Po.call(t));}function lp(t,e){if(!(e.state.loading&4)){var n=Io.get(t);if(n)var l=n.get(null);else {n=new Map,Io.set(t,n);for(var a=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),l=o);}l&&n.set(null,l);}a=e.instance,o=a.getAttribute("data-precedence"),i=n.get(o)||l,i===l&&n.set(null,a),n.set(o,a),this.count++,l=Po.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),i?i.parentNode.insertBefore(a,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(a,t.firstChild)),e.state.loading|=4;}}var Si={$$typeof:kn,Provider:null,Consumer:null,_currentValue:bl,_currentValue2:bl,_threadCount:0};function ap(t,e,n,l,a,i,o,r,s){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Zr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zr(0),this.hiddenUpdates=Zr(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map;}function j2(t,e,n,l,a,i,o,r,s,u,f,y){return t=new ap(t,e,n,o,s,u,f,y,r),e=1,i===true&&(e|=24),i=_e(3,null,null,e),t.current=i,i.stateNode=t,e=Oc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:l,isDehydrated:n,cache:e},Rc(i),t}function V2(t){return t?(t=ta,t):ta}function Z2(t,e,n,l,a,i){a=V2(a),l.context===null?l.context=a:l.pendingContext=a,l=Fn(e),l.payload={element:n},i=i===void 0?null:i,i!==null&&(l.callback=i),n=Pn(t,l,e),n!==null&&(xe(n,t,e),ni(n,t,e));}function r1(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e;}}function uu(t,e){r1(t,e),(t=t.alternate)&&r1(t,e);}function J2(t){if(t.tag===13||t.tag===31){var e=Tl(t,67108864);e!==null&&xe(e,t,67108864),uu(t,67108864);}}function s1(t){if(t.tag===13||t.tag===31){var e=$e();e=kc(e);var n=Tl(t,e);n!==null&&xe(n,t,e),uu(t,e);}}var tr=true;function ip(t,e,n,l){var a=G.T;G.T=null;var i=it.p;try{it.p=2,fu(t,e,n,l);}finally{it.p=i,G.T=a;}}function op(t,e,n,l){var a=G.T;G.T=null;var i=it.p;try{it.p=8,fu(t,e,n,l);}finally{it.p=i,G.T=a;}}function fu(t,e,n,l){if(tr){var a=xc(l);if(a===null)vs(t,e,l,er,n),c1(t,l);else if(sp(a,t,e,n,l))l.stopPropagation();else if(c1(t,l),e&4&&-1<rp.indexOf(t)){for(;a!==null;){var i=Ma(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=xl(i.pendingLanes);if(o!==0){var r=i;for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var s=1<<31-Ce(o);r.entanglements[1]|=s,o&=~s;}rn(i),(at&6)===0&&(Qo=ze()+500,Ni(0));}}break;case 31:case 13:r=Tl(i,2),r!==null&&xe(r,i,2),hr(),uu(i,2);}if(i=xc(l),i===null&&vs(t,e,l,er,n),i===a)break;a=i;}a!==null&&l.stopPropagation();}else vs(t,e,l,null,n);}}function xc(t){return t=Ec(t),du(t)}var er=null;function du(t){if(er=null,t=Zl(t),t!==null){var e=Ei(t);if(e===null)t=null;else {var n=e.tag;if(n===13){if(t=m1(e),t!==null)return t;t=null;}else if(n===31){if(t=x1(e),t!==null)return t;t=null;}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null;}else e!==t&&(t=null);}}return er=t,null}function K2(t){switch(t){case "beforetoggle":case "cancel":case "click":case "close":case "contextmenu":case "copy":case "cut":case "auxclick":case "dblclick":case "dragend":case "dragstart":case "drop":case "focusin":case "focusout":case "input":case "invalid":case "keydown":case "keypress":case "keyup":case "mousedown":case "mouseup":case "paste":case "pause":case "play":case "pointercancel":case "pointerdown":case "pointerup":case "ratechange":case "reset":case "resize":case "seeked":case "submit":case "toggle":case "touchcancel":case "touchend":case "touchstart":case "volumechange":case "change":case "selectionchange":case "textInput":case "compositionstart":case "compositionend":case "compositionupdate":case "beforeblur":case "afterblur":case "beforeinput":case "blur":case "fullscreenchange":case "focus":case "hashchange":case "popstate":case "select":case "selectstart":return 2;case "drag":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "mousemove":case "mouseout":case "mouseover":case "pointermove":case "pointerout":case "pointerover":case "scroll":case "touchmove":case "wheel":case "mouseenter":case "mouseleave":case "pointerenter":case "pointerleave":return 8;case "message":switch(Zh()){case v1:return 2;case k1:return 8;case Ao:case Jh:return 32;case S1:return 268435456;default:return 32}default:return 32}}var pc=false,el=null,nl=null,ll=null,Mi=new Map,_i=new Map,qn=[],rp="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function c1(t,e){switch(t){case "focusin":case "focusout":el=null;break;case "dragenter":case "dragleave":nl=null;break;case "mouseover":case "mouseout":ll=null;break;case "pointerover":case "pointerout":Mi.delete(e.pointerId);break;case "gotpointercapture":case "lostpointercapture":_i.delete(e.pointerId);}}function Ga(t,e,n,l,a,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:i,targetContainers:[a]},e!==null&&(e=Ma(e),e!==null&&J2(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,a!==null&&e.indexOf(a)===-1&&e.push(a),t)}function sp(t,e,n,l,a){switch(e){case "focusin":return el=Ga(el,t,e,n,l,a),true;case "dragenter":return nl=Ga(nl,t,e,n,l,a),true;case "mouseover":return ll=Ga(ll,t,e,n,l,a),true;case "pointerover":var i=a.pointerId;return Mi.set(i,Ga(Mi.get(i)||null,t,e,n,l,a)),true;case "gotpointercapture":return i=a.pointerId,_i.set(i,Ga(_i.get(i)||null,t,e,n,l,a)),true}return false}function F2(t){var e=Zl(t.target);if(e!==null){var n=Ei(e);if(n!==null){if(e=n.tag,e===13){if(e=m1(n),e!==null){t.blockedOn=e,G0(t.priority,function(){s1(n);});return}}else if(e===31){if(e=x1(n),e!==null){t.blockedOn=e,G0(t.priority,function(){s1(n);});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null;}function zo(t){if(t.blockedOn!==null)return false;for(var e=t.targetContainers;0<e.length;){var n=xc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Os=l,n.target.dispatchEvent(l),Os=null;}else return e=Ma(n),e!==null&&J2(e),t.blockedOn=n,false;e.shift();}return true}function u1(t,e,n){zo(t)&&n.delete(e);}function cp(){pc=false,el!==null&&zo(el)&&(el=null),nl!==null&&zo(nl)&&(nl=null),ll!==null&&zo(ll)&&(ll=null),Mi.forEach(u1),_i.forEach(u1);}function co(t,e){t.blockedOn===e&&(t.blockedOn=null,pc||(pc=true,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,cp)));}var uo=null;function f1(t){uo!==t&&(uo=t,Rt.unstable_scheduleCallback(Rt.unstable_NormalPriority,function(){uo===t&&(uo=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],a=t[e+2];if(typeof l!="function"){if(du(l||n)===null)continue;break}var i=Ma(n);i!==null&&(t.splice(e,3),e-=3,Fs(i,{pending:true,data:a,method:n.method,action:l},l,a));}}));}function ka(t){function e(s){return co(s,t)}el!==null&&co(el,t),nl!==null&&co(nl,t),ll!==null&&co(ll,t),Mi.forEach(e),_i.forEach(e);for(var n=0;n<qn.length;n++){var l=qn[n];l.blockedOn===t&&(l.blockedOn=null);}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)F2(n),n.blockedOn===null&&qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],i=n[l+1],o=a[pe]||null;if(typeof i=="function")o||f1(n);else if(o){var r=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[pe]||null)r=o.formAction;else if(du(a)!==null)continue}else r=o.action;typeof r=="function"?n[l+1]=r:(n.splice(l,3),l-=3),f1(n);}}}function P2(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"});}function e(){a!==null&&(a(),a=null),l||setTimeout(n,20);}function n(){if(!l&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"});}}if(typeof navigation=="object"){var l=false,a=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=true,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),a!==null&&(a(),a=null);}}}function yu(t){this._internalRoot=t;}pr.prototype.render=yu.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(W(409));var n=e.current,l=$e();Z2(n,l,t,e,null,null);};pr.prototype.unmount=yu.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Z2(t.current,2,null,t,null,null),hr(),e[Sa]=null;}};function pr(t){this._internalRoot=t;}pr.prototype.unstable_scheduleHydration=function(t){if(t){var e=W1();t={blockedOn:null,target:t,priority:e};for(var n=0;n<qn.length&&e!==0&&e<qn[n].priority;n++);qn.splice(n,0,t),n===0&&F2(t);}};var d1=y1.version;if(d1!=="19.2.5")throw Error(W(527,d1,"19.2.5"));it.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(W(188)):(t=Object.keys(t).join(","),Error(W(268,t)));return t=Bh(e),t=t!==null?p1(t):null,t=t===null?null:t.stateNode,t};var up={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(ja=__REACT_DEVTOOLS_GLOBAL_HOOK__,!ja.isDisabled&&ja.supportsFiber))try{zi=ja.inject(up),We=ja;}catch{}var ja;gr.createRoot=function(t,e){if(!h1(t))throw Error(W(299));var n=false,l="",a=qd,i=Qd,o=Gd;return e!=null&&(e.unstable_strictMode===true&&(n=true),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(a=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=j2(t,1,false,null,null,n,l,null,a,i,o,P2),t[Sa]=e.current,ru(t),new yu(e)};gr.hydrateRoot=function(t,e,n){if(!h1(t))throw Error(W(299));var l=false,a="",i=qd,o=Qd,r=Gd,s=null;return n!=null&&(n.unstable_strictMode===true&&(l=true),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),e=j2(t,1,true,e,n??null,l,a,s,i,o,r,P2),e.context=V2(null),n=e.current,l=$e(),l=kc(l),a=Fn(l),a.callback=null,Pn(n,a,l),n=l,e.current.lanes=n,Ci(e,n),rn(e),t[Sa]=e.current,ru(t),new pr(e)};gr.version="19.2.5";});var ny=Ke((ob,ey)=>{function ty(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ty);}catch(t){console.error(t);}}ty(),ey.exports=I2();});var iy=j(sn());var Oy={name:"Classic incline FBD",elements:[{id:1,type:"wedge",x1:100,y1:400,x2:500,y2:100,label:"M",value:"",color:"#0f172a",strokeWidth:2},{id:2,type:"block",x1:220,y1:260,x2:300,y2:300,label:"m",value:"",color:"#0f172a",strokeWidth:2,rotation:-37},{id:3,type:"vector",x1:260,y1:280,x2:260,y2:400,label:"mg",value:"",color:"#0f172a",strokeWidth:2},{id:4,type:"vector",x1:260,y1:280,x2:212,y2:216,label:"N",value:"",color:"#0f172a",strokeWidth:2},{id:5,type:"vector",x1:260,y1:280,x2:180,y2:340,label:"f",value:"",color:"#0f172a",strokeWidth:2},{id:6,type:"arc",x1:100,y1:400,x2:260,y2:280,label:"\u03B8",value:"",color:"#0f172a",strokeWidth:2},{id:7,type:"dashed",x1:260,y1:280,x2:308,y2:344,label:"",value:"",color:"#0f172a",strokeWidth:2},{id:8,type:"dashed",x1:260,y1:280,x2:340,y2:220,label:"",value:"",color:"#0f172a",strokeWidth:2},{id:9,type:"dimension",x1:100,y1:440,x2:500,y2:440,label:"L",value:"",color:"#0f172a",strokeWidth:2},{id:10,type:"axes",x1:60,y1:100,x2:60,y2:100,label:"",value:"",color:"#0f172a",strokeWidth:2}]},Hy={name:"Rigid bodies & fluids showcase",elements:[{id:1,type:"text",x1:200,y1:40,x2:200,y2:40,label:"3D rigid bodies (moment of inertia)",color:"#64748b",fontSize:18},{id:2,type:"cylinder",x1:60,y1:140,x2:220,y2:180,color:"#38bdf8",strokeWidth:2,fillOpacity:.4,curveHeight:30,label:"M, R"},{id:3,type:"line",x1:20,y1:160,x2:280,y2:160,color:"#94a3b8",strokeWidth:2,lineStyle:"dashed"},{id:4,type:"arc_arrow",x1:260,y1:160,x2:300,y2:160,color:"#0f172a",strokeWidth:2,label:"\u03C9"},{id:5,type:"text",x1:140,y1:240,x2:140,y2:240,label:"I = MR\xB2/2",color:"#0f172a",fontSize:16},{id:6,type:"slab",x1:340,y1:120,x2:500,y2:180,color:"#38bdf8",strokeWidth:2,fillOpacity:.4,curveHeight:30,label:"M"},{id:7,type:"line",x1:420,y1:60,x2:420,y2:260,color:"#94a3b8",strokeWidth:2,lineStyle:"dashed",label:"z"},{id:8,type:"arc_arrow",x1:420,y1:80,x2:460,y2:80,color:"#0f172a",strokeWidth:2},{id:9,type:"text",x1:420,y1:240,x2:420,y2:240,label:"I = M(l\xB2+b\xB2)/12",color:"#0f172a",fontSize:16},{id:10,type:"text",x1:700,y1:40,x2:700,y2:40,label:"Fluids & gravitation",color:"#64748b",fontSize:18},{id:11,type:"pipe",x1:600,y1:80,x2:800,y2:140,color:"#3b82f6",strokeWidth:2,fillOpacity:.2,curveHeight:20},{id:12,type:"vector",x1:620,y1:110,x2:680,y2:110,color:"#0f172a",strokeWidth:2,label:"v\u2081"},{id:13,type:"vector",x1:720,y1:110,x2:780,y2:110,color:"#0f172a",strokeWidth:2,label:"v\u2082"},{id:14,type:"shell",x1:700,y1:240,x2:760,y2:240,color:"#8b5cf6",strokeWidth:2,fillOpacity:.3,curveHeight:15,label:"M"},{id:15,type:"point",x1:700,y1:240,x2:700,y2:240,color:"#0f172a",strokeWidth:2,label:"O"},{id:16,type:"point",x1:820,y1:240,x2:820,y2:240,color:"#0f172a",strokeWidth:2,label:"m"},{id:17,type:"vector",x1:820,y1:240,x2:780,y2:240,color:"#ef4444",strokeWidth:2,label:"F"},{id:18,type:"text",x1:220,y1:320,x2:220,y2:320,label:"Ladders & pulleys",color:"#64748b",fontSize:18},{id:19,type:"table_edge",x1:40,y1:420,x2:240,y2:560,color:"#475569",strokeWidth:2},{id:20,type:"block",x1:100,y1:380,x2:160,y2:420,color:"#38bdf8",strokeWidth:2,fillOpacity:.4,label:"m\u2081"},{id:21,type:"pulley",x1:240,y1:420,x2:260,y2:420,color:"#0f172a",strokeWidth:2,fillOpacity:.2},{id:22,type:"block",x1:240,y1:480,x2:280,y2:540,color:"#38bdf8",strokeWidth:2,fillOpacity:.4,label:"m\u2082"},{id:23,type:"line",x1:160,y1:400,x2:240,y2:400,color:"#0f172a",strokeWidth:2},{id:24,type:"line",x1:260,y1:420,x2:260,y2:480,color:"#0f172a",strokeWidth:2},{id:25,type:"table_edge",x1:400,y1:360,x2:560,y2:560,color:"#475569",strokeWidth:2},{id:26,type:"ladder",x1:460,y1:560,x2:560,y2:420,color:"#f59e0b",strokeWidth:2,curveHeight:12},{id:27,type:"vector",x1:460,y1:560,x2:460,y2:500,color:"#10b981",strokeWidth:2,label:"N\u2081"},{id:28,type:"vector",x1:560,y1:420,x2:500,y2:420,color:"#10b981",strokeWidth:2,label:"N\u2082"},{id:29,type:"vector",x1:510,y1:490,x2:510,y2:540,color:"#ef4444",strokeWidth:2,label:"Mg"}]},Ly={name:"Vertical spring\u2013mass",elements:[{id:1,type:"text",x1:380,y1:40,x2:380,y2:40,label:"Equilibrium along a vertical spring",color:"#64748b",fontSize:18},{id:2,type:"line",x1:260,y1:100,x2:500,y2:100,color:"#475569",strokeWidth:3,label:"Ceiling"},{id:3,type:"spring",x1:380,y1:100,x2:380,y2:220,color:"#2563eb",strokeWidth:2,coils:8},{id:4,type:"block",x1:340,y1:220,x2:420,y2:280,color:"#38bdf8",strokeWidth:2,fillOpacity:.35,label:"m"},{id:5,type:"vector",x1:380,y1:280,x2:380,y2:380,color:"#ef4444",strokeWidth:2.5,label:"mg"},{id:6,type:"vector",x1:380,y1:250,x2:380,y2:150,color:"#10b981",strokeWidth:2.5,label:"F_s"},{id:7,type:"dashed",x1:380,y1:280,x2:460,y2:280,color:"#94a3b8",strokeWidth:1.5,label:"x = 0"},{id:8,type:"text",x1:480,y1:260,x2:480,y2:260,label:"mg = kx\u2080",color:"#0f172a",fontSize:16}]},$u=[Oy,Hy,Ly],Au={name:"Mechanics",elements:$u[0].elements,examples:$u,toolCategories:[{name:"Sketch and forces",tools:[{id:"select",name:"Select"},{id:"string",name:"String / Line"},{id:"spring",name:"Spring"},{id:"vector",name:"Force Vector"},{id:"dashed",name:"Dashed Line"},{id:"dimension",name:"Dimension"},{id:"surface",name:"Rigid Surface"}]},{name:"Rigid bodies",tools:[{id:"wedge",name:"Wedge / Incline"},{id:"axes",name:"Axes / Frame"},{id:"block",name:"Mass / Block"},{id:"cart",name:"Cart / Vehicle"},{id:"particle",name:"Point Mass"},{id:"disk",name:"Disk / Sphere"},{id:"rod",name:"Rod / Beam"},{id:"pulley",name:"Pulley"}]},{name:"Points and labels",tools:[{id:"pivot",name:"Pivot / Hinge"},{id:"com",name:"Center of Mass"},{id:"arc",name:"Angle / Arc"},{id:"text",name:"Label"}]}]};var Ry={name:"Wheatstone bridge",elements:[{id:1,type:"resistor",x1:200,y1:300,x2:400,y2:200,label:"R1",value:"60\u03A9",color:"#b45309",strokeWidth:2.5},{id:2,type:"resistor",x1:200,y1:300,x2:400,y2:400,label:"R3",value:"300\u03A9",color:"#b45309",strokeWidth:2.5},{id:3,type:"resistor",x1:400,y1:200,x2:600,y2:300,label:"R2",value:"100\u03A9",color:"#b45309",strokeWidth:2.5},{id:4,type:"resistor",x1:400,y1:400,x2:600,y2:300,label:"R4",value:"500\u03A9",color:"#b45309",strokeWidth:2.5},{id:5,type:"battery",x1:400,y1:400,x2:400,y2:200,label:"50V",value:"",color:"#1d4ed8",strokeWidth:2.5},{id:6,type:"wire",x1:200,y1:300,x2:200,y2:100,label:"",value:"",color:"#334155",strokeWidth:3},{id:7,type:"wire",x1:200,y1:100,x2:340,y2:100,label:"",value:"",color:"#334155",strokeWidth:3},{id:8,type:"meter_v",x1:340,y1:100,x2:460,y2:100,label:"",value:"",color:"#0369a1",strokeWidth:2.5},{id:9,type:"wire",x1:460,y1:100,x2:600,y2:100,label:"",value:"",color:"#334155",strokeWidth:3},{id:10,type:"wire",x1:600,y1:100,x2:600,y2:300,label:"",value:"",color:"#334155",strokeWidth:3},{id:11,type:"text",x1:180,y1:300,x2:180,y2:300,label:"S",value:"",fontFamily:"sans-serif",fontWeight:"bold",fontSize:18,color:"#0f172a"},{id:12,type:"text",x1:400,y1:180,x2:400,y2:180,label:"P",value:"",fontFamily:"sans-serif",fontWeight:"bold",fontSize:18,color:"#0f172a"},{id:13,type:"text",x1:400,y1:420,x2:400,y2:420,label:"Q",value:"",fontFamily:"sans-serif",fontWeight:"bold",fontSize:18,color:"#0f172a"},{id:14,type:"text",x1:620,y1:300,x2:620,y2:300,label:"T",value:"",fontFamily:"sans-serif",fontWeight:"bold",fontSize:18,color:"#0f172a"}]},Yy={name:"Series RC (charging)",elements:[{id:1,type:"text",x1:320,y1:40,x2:320,y2:40,label:"Single-loop RC after switch closes",color:"#475569",fontSize:16},{id:2,type:"battery",x1:120,y1:360,x2:120,y2:220,label:"\u03B5",value:"12 V",color:"#1d4ed8",strokeWidth:2.5},{id:3,type:"wire",x1:120,y1:220,x2:220,y2:220,color:"#334155",strokeWidth:3},{id:4,type:"resistor",x1:220,y1:220,x2:380,y2:220,label:"R",value:"2.2 k\u03A9",color:"#b45309",strokeWidth:2.5},{id:5,type:"wire",x1:380,y1:220,x2:480,y2:220,color:"#334155",strokeWidth:3},{id:6,type:"capacitor",x1:480,y1:220,x2:620,y2:220,label:"C",value:"47 \u03BCF",color:"#0f172a",strokeWidth:2.5},{id:7,type:"wire",x1:620,y1:220,x2:620,y2:360,color:"#334155",strokeWidth:3},{id:8,type:"wire",x1:620,y1:360,x2:120,y2:360,color:"#334155",strokeWidth:3},{id:9,type:"text",x1:360,y1:120,x2:360,y2:120,label:"\u03C4 = RC",color:"#0f172a",fontSize:18}]},Uy={name:"Parallel resistors",elements:[{id:1,type:"text",x1:300,y1:40,x2:300,y2:40,label:"Same voltage across each branch",color:"#475569",fontSize:16},{id:2,type:"battery",x1:120,y1:380,x2:120,y2:120,label:"V",value:"9 V",color:"#1d4ed8",strokeWidth:2.5},{id:3,type:"wire",x1:120,y1:120,x2:520,y2:120,color:"#334155",strokeWidth:3},{id:4,type:"resistor",x1:260,y1:120,x2:260,y2:300,label:"R\u2081",value:"300 \u03A9",color:"#b45309",strokeWidth:2.5},{id:5,type:"resistor",x1:400,y1:120,x2:400,y2:300,label:"R\u2082",value:"600 \u03A9",color:"#b45309",strokeWidth:2.5},{id:6,type:"wire",x1:260,y1:300,x2:400,y2:300,color:"#334155",strokeWidth:3},{id:7,type:"wire",x1:260,y1:300,x2:220,y2:300,color:"#334155",strokeWidth:3},{id:8,type:"meter_a",x1:220,y1:300,x2:120,y2:300,label:"I",value:"",color:"#b45309",strokeWidth:2.5},{id:9,type:"wire",x1:120,y1:300,x2:120,y2:380,color:"#334155",strokeWidth:3},{id:10,type:"text",x1:280,y1:340,x2:280,y2:340,label:"1/R_eq = 1/R\u2081 + 1/R\u2082",color:"#0f172a",fontSize:15}]},Du=[Ry,Yy,Uy],Tu={name:"Circuit",elements:Du[0].elements,examples:Du,toolCategories:[{name:"Circuit",tools:[{id:"select",name:"Select / Move"},{id:"wire",name:"Wire"},{id:"resistor",name:"Resistor"},{id:"capacitor",name:"Capacitor"},{id:"inductor",name:"Inductor"},{id:"diode",name:"Diode"},{id:"battery",name:"Battery"},{id:"meter_v",name:"Voltmeter"},{id:"meter_a",name:"Ammeter"},{id:"ground",name:"Ground"},{id:"text",name:"Text Label"}]}]};var By={name:"Piston, heat & first law",elements:[{id:1,type:"text",x1:120,y1:40,x2:120,y2:40,label:"Gas in a cylinder (work, heat, \u0394U)",color:"#475569",fontSize:18},{id:2,type:"piston_cylinder",x1:120,y1:120,x2:320,y2:320,compression:.55,showHeat:true,color:"#0ea5e9",strokeWidth:2,label:"Expansion stroke"},{id:3,type:"thermo_process",x1:400,y1:200,x2:560,y2:120,processType:"isobaric",color:"#f59e0b",strokeWidth:2,label:"Isobaric leg"},{id:4,type:"text",x1:400,y1:280,x2:400,y2:280,label:"Q = \u0394U + W",color:"#0f172a",fontSize:18}]},Xy={name:"Heat engine & P\u2013V cycle",elements:[{id:1,type:"text",x1:80,y1:40,x2:80,y2:40,label:"Carnot engine between two reservoirs",color:"#475569",fontSize:18},{id:2,type:"heat_engine",x1:120,y1:100,x2:260,y2:300,engineType:"engine",efficiency:.35,color:"#10b981",strokeWidth:2,label:"\u03B7 < 1"},{id:3,type:"pv_axes",x1:360,y1:300,x2:620,y2:100,color:"#1e293b",strokeWidth:2,label:"State space",xLabel:"V",yLabel:"P"},{id:4,type:"carnot_cycle",x1:400,y1:140,x2:560,y2:240,color:"#ec4899",strokeWidth:2},{id:5,type:"text",x1:640,y1:180,x2:640,y2:180,label:"Isotherms + adiabats",color:"#64748b",fontSize:15}]},qy={name:"Kinetic theory & conduction",elements:[{id:1,type:"text",x1:80,y1:40,x2:80,y2:40,label:"Speed distribution & thermal transport",color:"#475569",fontSize:18},{id:2,type:"maxwell_boltzmann",x1:80,y1:320,x2:340,y2:160,t1:300,t2:600,color:"#8b5cf6",strokeWidth:2,label:"f(v) at T\u2081, T\u2082"},{id:3,type:"diatomic_gas",x1:420,y1:220,x2:520,y2:220,color:"#f59e0b",strokeWidth:2,label:"5 DOF (trans + rot)",showRotations:true},{id:4,type:"conduction_rod",x1:420,y1:320,x2:720,y2:360,color:"#3b82f6",strokeWidth:2,label:"Q\u0307 = kA\u0394T/L"},{id:5,type:"random_walk",x1:600,y1:120,x2:720,y2:80,color:"#64748b",strokeWidth:2,label:"Diffusion"}]},wu=[By,Xy,qy],Nu={name:"Thermodynamics",elements:wu[0].elements,examples:wu,toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select"},{id:"point",name:"Node / Label"},{id:"line",name:"Line / Axis"},{id:"text",name:"Text Box"}]},{name:"Systems",tools:[{id:"piston_cylinder",name:"Piston & Gas"},{id:"heat_engine",name:"Heat Engine"},{id:"conduction_rod",name:"Thermal Rod"}]},{name:"PV Diagrams",tools:[{id:"pv_axes",name:"P-V Axes"},{id:"thermo_process",name:"Thermodynamic Path"},{id:"carnot_cycle",name:"Carnot Cycle"}]},{name:"KTG",tools:[{id:"maxwell_boltzmann",name:"Maxwell Dist."},{id:"diatomic_gas",name:"Diatomic DOF"},{id:"random_walk",name:"Random Walk"}]}]};var Qy={name:"Electromagnet & uniform gap",elements:[{id:1,type:"text",x1:280,y1:36,x2:280,y2:36,label:"Iron pole pieces + straight B in the gap",color:"#475569",fontSize:16},{id:2,type:"pole_piece",x1:100,y1:80,x2:200,y2:300,label:"N",color:"#0f172a",strokeWidth:2},{id:3,type:"pole_piece",x1:500,y1:80,x2:600,y2:300,label:"S",color:"#0f172a",strokeWidth:2},{id:4,type:"b_field_line",x1:200,y1:120,x2:500,y2:120,label:"",color:"#10b981",strokeWidth:2},{id:5,type:"b_field_line",x1:200,y1:190,x2:500,y2:190,label:"B",color:"#10b981",strokeWidth:2,fontSize:18},{id:6,type:"b_field_line",x1:200,y1:260,x2:500,y2:260,label:"",color:"#10b981",strokeWidth:2},{id:7,type:"b_field_curve",x1:280,y1:80,x2:420,y2:80,curveHeight:50,label:"",color:"#10b981",strokeWidth:2},{id:8,type:"b_field_curve",x1:250,y1:80,x2:450,y2:80,curveHeight:110,label:"",color:"#10b981",strokeWidth:2},{id:9,type:"axes_3d",x1:200,y1:540,x2:300,y2:540,label:"",color:"#64748b",strokeWidth:2,fontSize:16},{id:10,type:"line",x1:200,y1:540,x2:200,y2:400,label:"",color:"#0ea5e9",strokeWidth:3},{id:11,type:"line",x1:200,y1:400,x2:320,y2:400,label:"i",color:"#0ea5e9",strokeWidth:3,fontSize:16},{id:12,type:"line",x1:320,y1:400,x2:320,y2:540,label:"",color:"#0ea5e9",strokeWidth:3},{id:13,type:"line",x1:320,y1:540,x2:200,y2:540,label:"",color:"#0ea5e9",strokeWidth:3},{id:14,type:"vector",x1:200,y1:540,x2:320,y2:620,label:"B",color:"#10b981",strokeWidth:2.5,fontSize:18}]},Gy={name:"Bar magnet & field lines",elements:[{id:1,type:"text",x1:260,y1:36,x2:260,y2:36,label:"Dipole field outside the magnet",color:"#475569",fontSize:16},{id:2,type:"bar_magnet",x1:200,y1:260,x2:520,y2:260,label:"Permanent magnet",color:"#0f172a",strokeWidth:2},{id:3,type:"b_field_curve",x1:220,y1:120,x2:480,y2:120,curveHeight:80,color:"#10b981",strokeWidth:2},{id:4,type:"b_field_curve",x1:200,y1:400,x2:500,y2:400,curveHeight:-90,color:"#10b981",strokeWidth:2},{id:5,type:"b_field_line",x1:360,y1:140,x2:360,y2:220,color:"#10b981",strokeWidth:2},{id:6,type:"b_field_line",x1:360,y1:300,x2:360,y2:380,color:"#10b981",strokeWidth:2},{id:7,type:"text",x1:600,y1:240,x2:600,y2:240,label:"N \u2192 S outside",color:"#0f172a",fontSize:15}]},jy={name:"Long straight wire (Amp\xE8re)",elements:[{id:1,type:"text",x1:240,y1:36,x2:240,y2:36,label:"Current into page \u2297 \u2014 circular B around the wire",color:"#475569",fontSize:15},{id:2,type:"current_wire",x1:400,y1:120,x2:400,y2:420,label:"I",color:"#dc2626",strokeWidth:3},{id:3,type:"b_field_curve",x1:520,y1:200,x2:280,y2:200,curveHeight:120,color:"#10b981",strokeWidth:2},{id:4,type:"b_field_curve",x1:540,y1:280,x2:260,y2:280,curveHeight:140,color:"#10b981",strokeWidth:2},{id:5,type:"b_field_curve",x1:500,y1:360,x2:300,y2:360,curveHeight:100,color:"#10b981",strokeWidth:2},{id:6,type:"b_region_in",x1:360,y1:240,x2:440,y2:320,color:"#6366f1",strokeWidth:1.5},{id:7,type:"text",x1:400,y1:460,x2:400,y2:460,label:"\u222E B\xB7dl = \u03BC\u2080I",color:"#0f172a",fontSize:17}]},Ou=[Qy,Gy,jy],Hu={name:"Magnetism",elements:Ou[0].elements,examples:Ou,toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point/Node"},{id:"line",name:"Solid Line"},{id:"vector",name:"Vector/Force"},{id:"text",name:"Text Label"}]},{name:"Magnetism",tools:[{id:"axes_3d",name:"3D Axes (x,y,z)"},{id:"angle",name:"Angle/Arc"},{id:"b_field_line",name:"B-Line (Straight)"},{id:"b_field_curve",name:"B-Line (Curved)"},{id:"bezier",name:"Bezier Curve"},{id:"pole_piece",name:"Pole Piece (N/S)"},{id:"b_region_in",name:"B-Field (IN)"},{id:"b_region_out",name:"B-Field (OUT)"},{id:"current_wire",name:"Wire (with I)"}]},{name:"Magnets & circuits",tools:[{id:"bar_magnet",name:"Bar Magnet"},{id:"coil",name:"Coil/Inductor"},{id:"charge_plus",name:"+ Charge"},{id:"charge_minus",name:"- Charge"},{id:"resistor",name:"Resistor"},{id:"capacitor",name:"Capacitor"},{id:"ac_source",name:"AC Source"},{id:"meter",name:"Galvano/Meter"},{id:"ground",name:"Ground"}]},{name:"Drawing",tools:[{id:"circle",name:"Circle/Loop"},{id:"axes",name:"2D Axes"}]}]};var Lu=[{name:"Lens combination",elements:[{id:1,type:"line",x1:50,y1:300,x2:850,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:2,type:"lens_convex",x1:300,y1:150,x2:300,y2:450,color:"#38bdf8",strokeWidth:2,label:"f\u2081 = +30cm"},{id:3,type:"lens_concave",x1:500,y1:150,x2:500,y2:450,color:"#38bdf8",strokeWidth:2,label:"f\u2082 = -10cm"},{id:4,type:"ray",x1:50,y1:200,x2:300,y2:200,color:"#ef4444",strokeWidth:2},{id:5,type:"ray",x1:50,y1:400,x2:300,y2:400,color:"#ef4444",strokeWidth:2},{id:6,type:"ray",x1:300,y1:200,x2:500,y2:266,color:"#ef4444",strokeWidth:2},{id:7,type:"ray",x1:300,y1:400,x2:500,y2:334,color:"#ef4444",strokeWidth:2},{id:8,type:"ray",x1:500,y1:266,x2:800,y2:266,color:"#ef4444",strokeWidth:2},{id:9,type:"ray",x1:500,y1:334,x2:800,y2:334,color:"#ef4444",strokeWidth:2},{id:10,type:"line",x1:500,y1:266,x2:600,y2:300,lineStyle:"dashed",color:"#ef4444",strokeWidth:2},{id:11,type:"line",x1:500,y1:334,x2:600,y2:300,lineStyle:"dashed",color:"#ef4444",strokeWidth:2},{id:12,type:"point",x1:600,y1:300,x2:600,y2:300,label:"Virtual object",color:"#64748b"}]},{name:"Concave mirror (real image)",elements:[{id:1,type:"line",x1:50,y1:300,x2:700,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:2,type:"mirror_concave",x1:600,y1:150,x2:600,y2:450,curveHeight:40,color:"#0f172a",strokeWidth:2},{id:3,type:"point",x1:400,y1:300,x2:400,y2:300,label:"C",color:"#64748b"},{id:4,type:"point",x1:500,y1:300,x2:500,y2:300,label:"F",color:"#64748b"},{id:5,type:"vector",x1:300,y1:300,x2:300,y2:200,label:"O",color:"#10b981",strokeWidth:3},{id:6,type:"ray",x1:300,y1:200,x2:600,y2:200,color:"#ef4444",strokeWidth:2},{id:7,type:"ray",x1:600,y1:200,x2:400,y2:400,color:"#ef4444",strokeWidth:2},{id:8,type:"ray",x1:300,y1:200,x2:400,y2:300,color:"#3b82f6",strokeWidth:2},{id:9,type:"ray",x1:400,y1:300,x2:600,y2:500,color:"#3b82f6",strokeWidth:2},{id:10,type:"ray",x1:600,y1:500,x2:450,y2:350,color:"#3b82f6",strokeWidth:2},{id:11,type:"vector",x1:450,y1:300,x2:450,y2:350,label:"I",color:"#f59e0b",strokeWidth:3}]},{name:"Apparent depth (refraction)",elements:[{id:1,type:"glass_slab",x1:50,y1:300,x2:850,y2:600,color:"#38bdf8",label:"Water (\u03BC = 4/3)",strokeWidth:2},{id:2,type:"point",x1:450,y1:500,x2:450,y2:500,label:"Real object",color:"#0f172a"},{id:3,type:"ray",x1:450,y1:500,x2:450,y2:300,color:"#ef4444",strokeWidth:2},{id:4,type:"ray",x1:450,y1:300,x2:450,y2:100,color:"#ef4444",strokeWidth:2},{id:5,type:"ray",x1:450,y1:500,x2:550,y2:300,color:"#ef4444",strokeWidth:2},{id:6,type:"ray",x1:550,y1:300,x2:700,y2:150,color:"#ef4444",strokeWidth:2},{id:7,type:"line",x1:550,y1:300,x2:450,y2:400,lineStyle:"dashed",color:"#ef4444",strokeWidth:2},{id:8,type:"point",x1:450,y1:400,x2:450,y2:400,label:"Virtual image",color:"#f59e0b"},{id:9,type:"line",x1:550,y1:200,x2:550,y2:400,lineStyle:"dashed",color:"#94a3b8",strokeWidth:1}]},{name:"Double-slit interference",elements:[{id:1,type:"slit_double",x1:200,y1:200,x2:200,y2:400,color:"#0f172a",strokeWidth:4},{id:2,type:"line",x1:700,y1:100,x2:700,y2:500,color:"#0f172a",strokeWidth:4,label:"Screen"},{id:3,type:"line",x1:200,y1:300,x2:700,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:4,type:"point",x1:200,y1:250,x2:200,y2:250,label:"S\u2081",color:"#0f172a"},{id:5,type:"point",x1:200,y1:350,x2:200,y2:350,label:"S\u2082",color:"#0f172a"},{id:6,type:"point",x1:700,y1:150,x2:700,y2:150,label:"P (max/min)",color:"#0f172a"},{id:7,type:"photon",x1:200,y1:250,x2:700,y2:150,color:"#eab308",strokeWidth:2},{id:8,type:"photon",x1:200,y1:350,x2:700,y2:150,color:"#eab308",strokeWidth:2},{id:9,type:"line",x1:200,y1:250,x2:240,y2:340,lineStyle:"dashed",color:"#ef4444",strokeWidth:2},{id:10,type:"text",x1:250,y1:370,x2:250,y2:370,label:"\u0394x = d sin \u03B8",color:"#ef4444",fontSize:18},{id:11,type:"text",x1:450,y1:280,x2:450,y2:280,label:"D",color:"#64748b",fontSize:20},{id:12,type:"line",x1:720,y1:300,x2:720,y2:150,lineStyle:"solid",color:"#64748b",strokeWidth:2},{id:13,type:"text",x1:740,y1:225,x2:740,y2:225,label:"y",color:"#64748b",fontSize:18}]},{name:"Single-slit diffraction",elements:[{id:1,type:"slit_single",x1:300,y1:200,x2:300,y2:400,color:"#0f172a",strokeWidth:5,label:"Width a"},{id:2,type:"line",x1:700,y1:100,x2:700,y2:500,color:"#0f172a",strokeWidth:4},{id:3,type:"line",x1:100,y1:300,x2:700,y2:300,lineStyle:"dashed",color:"#94a3b8",strokeWidth:2},{id:4,type:"photon",x1:100,y1:220,x2:300,y2:220,color:"#8b5cf6",strokeWidth:2},{id:5,type:"photon",x1:100,y1:380,x2:300,y2:380,color:"#8b5cf6",strokeWidth:2},{id:6,type:"ray",x1:300,y1:220,x2:700,y2:300,color:"#ef4444",strokeWidth:2},{id:7,type:"ray",x1:300,y1:380,x2:700,y2:300,color:"#ef4444",strokeWidth:2},{id:8,type:"ray",x1:300,y1:220,x2:700,y2:150,color:"#3b82f6",strokeWidth:2},{id:9,type:"ray",x1:300,y1:380,x2:700,y2:150,color:"#3b82f6",strokeWidth:2},{id:10,type:"point",x1:700,y1:300,x2:700,y2:300,label:"Central max",color:"#ef4444"},{id:11,type:"point",x1:700,y1:150,x2:700,y2:150,label:"1st min (a sin \u03B8 = \u03BB)",color:"#3b82f6"}]}],Ru={name:"Light & optics",elements:Lu[0].elements,examples:Lu,toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point/Node"},{id:"line",name:"Solid line"},{id:"vector",name:"Vector/Object"},{id:"text",name:"Text label"}]},{name:"Optics",tools:[{id:"ray",name:"Light ray"},{id:"lens_convex",name:"Convex lens"},{id:"lens_concave",name:"Concave lens"},{id:"mirror_plane",name:"Plane mirror"},{id:"mirror_concave",name:"Concave mirror"},{id:"mirror_convex",name:"Convex mirror"},{id:"prism",name:"Glass prism"},{id:"glass_slab",name:"Glass slab"}]},{name:"Modern physics",tools:[{id:"photon",name:"Photon (wavy)"},{id:"slit_double",name:"Double slit"},{id:"slit_single",name:"Single slit"},{id:"energy_level",name:"Energy level"},{id:"nucleus",name:"Atom/Nucleus"}]}]};var Vy={name:"SHM kinematics",elements:[{id:1,type:"text",x1:120,y1:36,x2:120,y2:36,label:"Motion along x vs time graphs (x, v, a)",color:"#475569",fontSize:17},{id:2,type:"strobe_shm",x1:120,y1:100,x2:120,y2:300,amplitude:60,loops:1,color:"#f59e0b",strokeWidth:2,label:"Mass on spring"},{id:3,type:"shm_graph",x1:260,y1:200,x2:460,y2:200,amplitude:60,loops:1,graphType:"all",color:"#1e293b",strokeWidth:2,label:"x(t), v(t), a(t)"},{id:4,type:"text",x1:520,y1:200,x2:520,y2:200,label:"\u03C9\xB2 = k/m",color:"#0f172a",fontSize:16}]},Zy={name:"Pendulum & phasor",elements:[{id:1,type:"text",x1:140,y1:36,x2:140,y2:36,label:"Small oscillations + rotating phasor picture",color:"#475569",fontSize:17},{id:2,type:"pendulum",x1:200,y1:100,x2:260,y2:240,label:"m",color:"#0ea5e9",strokeWidth:2,size:15,showForces:true},{id:3,type:"phasor",x1:420,y1:170,x2:500,y2:90,label:"\u03C9t",color:"#8b5cf6",strokeWidth:2,showProjection:true},{id:4,type:"spring",x1:620,y1:120,x2:620,y2:240,color:"#3b82f6",strokeWidth:2,coils:7},{id:5,type:"mass_box",x1:600,y1:240,x2:640,y2:280,color:"#ef4444",strokeWidth:2,label:"m"},{id:6,type:"text",x1:620,y1:320,x2:620,y2:320,label:"Same \u03C9 for linear & torsional SHM",color:"#64748b",fontSize:14}]},Jy={name:"Damping & energy",elements:[{id:1,type:"text",x1:120,y1:36,x2:120,y2:36,label:"Lossy oscillator: energy swap + torsion mode",color:"#475569",fontSize:17},{id:2,type:"energy_graph",x1:100,y1:280,x2:300,y2:280,amplitude:80,domain:"time",color:"#1e293b",strokeWidth:2,label:"U(t), K(t)"},{id:3,type:"vane_liquid",x1:380,y1:200,x2:460,y2:200,color:"#64748b",strokeWidth:2,label:"Drag \u221D v"},{id:4,type:"spring",x1:420,y1:80,x2:420,y2:200,color:"#3b82f6",strokeWidth:2,coils:6},{id:5,type:"damped_wave",x1:520,y1:240,x2:720,y2:240,amplitude:45,damping:.02,frequency:12,color:"#ec4899",strokeWidth:2,label:"x(t) envelope"},{id:6,type:"torsion_pendulum",x1:320,y1:380,x2:320,y2:520,color:"#ec4899",strokeWidth:2,size:44,rotation:22,label:"Disk + fiber"}]},Yu=[Vy,Zy,Jy],Uu={name:"Oscillations & Waves",elements:Yu[0].elements,examples:Yu,toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select"},{id:"point",name:"Point/Node"},{id:"line",name:"Line / Axis"},{id:"vector",name:"Vector"},{id:"text",name:"Text Label"}]},{name:"Oscillations",tools:[{id:"spring",name:"Spring"},{id:"mass_box",name:"Mass Block"},{id:"pendulum",name:"Pendulum"},{id:"torsion_pendulum",name:"Torsion Pendulum"},{id:"vane_liquid",name:"Damping Vane"},{id:"phasor",name:"Phasor"},{id:"damped_wave",name:"Damped SHM"}]},{name:"Graphs & Waves",tools:[{id:"sine_wave",name:"Sine Wave"},{id:"standing_wave",name:"Standing Wave"},{id:"wave_pulse",name:"Wave Pulse"},{id:"shm_graph",name:"SHM Kinematics"},{id:"energy_graph",name:"Energy (U/K)"},{id:"strobe_shm",name:"Strobe Motion"},{id:"wall",name:"Rigid Boundary"}]},{name:"Sound & Gases",tools:[{id:"speaker",name:"Speaker"},{id:"tuning_fork",name:"Tuning Fork"},{id:"wavefronts",name:"Wavefronts"},{id:"mach_cone",name:"Mach Cone"},{id:"beats_graph",name:"Beats Envelope"}]}]};var Ky={name:"Collision & center of mass",elements:[{id:1,type:"text",x1:120,y1:36,x2:120,y2:36,label:"Two bodies before/after contact \u2014 COM frame",color:"#475569",fontSize:17},{id:2,type:"point_mass",x1:80,y1:140,x2:80,y2:140,size:25,color:"#ef4444",label:"m\u2081"},{id:3,type:"vector",x1:80,y1:140,x2:180,y2:140,color:"#ef4444",label:"u\u2081",strokeWidth:2},{id:4,type:"point_mass",x1:240,y1:100,x2:240,y2:100,size:15,color:"#3b82f6",label:"m\u2082"},{id:5,type:"dashed_path",x1:180,y1:140,x2:320,y2:80,color:"#ef4444",strokeWidth:1.5},{id:6,type:"dashed_path",x1:240,y1:100,x2:340,y2:180,color:"#3b82f6",strokeWidth:1.5},{id:7,type:"com_indicator",x1:160,y1:120,x2:160,y2:120,color:"#10b981",size:15,label:"COM"},{id:8,type:"system_boundary",x1:40,y1:60,x2:360,y2:220,color:"#94a3b8",strokeWidth:1.5}]},Fy={name:"Rigid rod & torque",elements:[{id:1,type:"text",x1:140,y1:36,x2:140,y2:36,label:"Hinged rod: weight, pivot reaction, angular accel",color:"#475569",fontSize:17},{id:2,type:"pivot",x1:120,y1:160,x2:120,y2:160,color:"#64748b",size:25},{id:3,type:"uniform_rod",x1:120,y1:160,x2:420,y2:200,color:"#f59e0b",strokeWidth:12,label:"L, M"},{id:4,type:"vector",x1:420,y1:200,x2:420,y2:300,color:"#ef4444",label:"mg",strokeWidth:2},{id:5,type:"curve_arrow",x1:120,y1:160,x2:200,y2:240,color:"#8b5cf6",strokeWidth:2,label:"\u03B1"},{id:6,type:"text",x1:480,y1:200,x2:480,y2:200,label:"\u03C4 = I\u03B1 about pivot",color:"#0f172a",fontSize:15}]},Py={name:"Rolling, pulleys & rocket",elements:[{id:1,type:"text",x1:100,y1:36,x2:100,y2:36,label:"Rolling on incline \xB7 Atwood \xB7 variable-mass rocket",color:"#475569",fontSize:16},{id:2,type:"inclined_wedge",x1:60,y1:200,x2:360,y2:360,color:"#64748b",strokeWidth:2,label:"\u03B8"},{id:3,type:"rolling_body",x1:160,y1:230,x2:200,y2:230,color:"#3b82f6",strokeWidth:2,label:"M, R",showVelocity:true,showOmega:true},{id:4,type:"vector",x1:160,y1:250,x2:110,y2:225,color:"#ef4444",label:"f_s",strokeWidth:2},{id:5,type:"pulley",x1:420,y1:200,x2:460,y2:200,color:"#64748b",strokeWidth:2},{id:6,type:"block_mass",x1:360,y1:300,x2:400,y2:340,color:"#0ea5e9",label:"m\u2081"},{id:7,type:"block_mass",x1:500,y1:240,x2:540,y2:280,color:"#0ea5e9",label:"m\u2082"},{id:8,type:"line",x1:380,y1:300,x2:380,y2:200,color:"#1e293b",strokeWidth:1.5},{id:9,type:"line",x1:520,y1:260,x2:520,y2:200,color:"#1e293b",strokeWidth:1.5},{id:10,type:"rocket",x1:620,y1:340,x2:620,y2:220,color:"#3b82f6",strokeWidth:2,label:"v(t)"},{id:11,type:"vector",x1:620,y1:340,x2:620,y2:400,color:"#f97316",strokeWidth:2,label:"u_rel dm/dt"}]},Bu=[Ky,Fy,Py],Xu={name:"Rotation",elements:Bu[0].elements,examples:Bu,toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select"},{id:"line",name:"Line / Axis"},{id:"vector",name:"Vector"},{id:"text",name:"Text Label"}]},{name:"Mass & Momentum",tools:[{id:"point_mass",name:"Point Mass"},{id:"block_mass",name:"Block/Mass"},{id:"com_indicator",name:"Center of Mass"},{id:"system_boundary",name:"System Bound"},{id:"dashed_path",name:"Trajectory"},{id:"rocket",name:"Rocket (Varying)"}]},{name:"Rigid Bodies",tools:[{id:"uniform_rod",name:"Uniform Rod"},{id:"solid_disk",name:"Solid Disk/Sphere"},{id:"hoop_ring",name:"Hoop/Ring"},{id:"rolling_body",name:"Rolling Object"}]},{name:"Mechanics",tools:[{id:"pivot",name:"Pivot / Hinge"},{id:"inclined_wedge",name:"Inclined Plane"},{id:"pulley",name:"Pulley System"},{id:"spring",name:"Spring"},{id:"curve_arrow",name:"Angular Vector (\u03C9/\u03C4)"}]}]};var Iy={name:"Charges, capacitor & field",elements:[{id:1,type:"text",x1:320,y1:24,x2:320,y2:24,label:"RC branch + point charges in an external E",color:"#475569",fontSize:16},{id:2,type:"capacitor",x1:260,y1:200,x2:460,y2:200,label:"C = 10\u03BCF",color:"#0f172a",strokeWidth:3,fontSize:18},{id:3,type:"line",x1:260,y1:200,x2:260,y2:400,color:"#0f172a",strokeWidth:2},{id:4,type:"line",x1:460,y1:200,x2:460,y2:400,color:"#0f172a",strokeWidth:2},{id:5,type:"capacitor",x1:260,y1:400,x2:460,y2:400,label:"V = 12V",color:"#0f172a",strokeWidth:3,fontSize:18},{id:6,type:"ground",x1:460,y1:400,x2:460,y2:460,label:"",color:"#0f172a",strokeWidth:2},{id:7,type:"charge_plus",x1:340,y1:180,x2:340,y2:180,label:"+Q",color:"#ef4444",strokeWidth:2,fontSize:16},{id:8,type:"charge_minus",x1:380,y1:180,x2:380,y2:180,label:"-Q",color:"#3b82f6",strokeWidth:2,fontSize:16},{id:9,type:"vector",x1:345,y1:190,x2:375,y2:190,label:"",color:"#ef4444",strokeWidth:1.5,lineStyle:"dashed"},{id:10,type:"vector",x1:345,y1:210,x2:375,y2:210,label:"",color:"#ef4444",strokeWidth:1.5,lineStyle:"dashed"},{id:11,type:"charge_plus",x1:600,y1:300,x2:600,y2:300,label:"+q",color:"#ef4444",strokeWidth:2,fontSize:18},{id:12,type:"charge_minus",x1:800,y1:300,x2:800,y2:300,label:"-q",color:"#3b82f6",strokeWidth:2,fontSize:18},{id:13,type:"vector",x1:620,y1:300,x2:780,y2:300,label:"E",color:"#94a3b8",strokeWidth:2,fontSize:18},{id:14,type:"circle",x1:600,y1:300,x2:660,y2:300,label:"",color:"#ef4444",strokeWidth:1.5,lineStyle:"dashed"}]},th={name:"Coordinate plane: parabola & sine",elements:[{id:1,type:"text",x1:280,y1:24,x2:280,y2:24,label:"Standard graphs in x\u2013y",color:"#475569",fontSize:16},{id:2,type:"axes",x1:120,y1:380,x2:520,y2:80,color:"#0f172a",strokeWidth:2},{id:3,type:"parabola_v",x1:200,y1:200,x2:440,y2:340,color:"#2563eb",strokeWidth:2.5,label:"y \u221D x\xB2"},{id:4,type:"sine_wave",x1:140,y1:260,x2:500,y2:260,color:"#db2777",strokeWidth:2.5,label:"sin x",amplitude:40,loops:2},{id:5,type:"text",x1:560,y1:120,x2:560,y2:120,label:"Use axes bbox for domain",color:"#64748b",fontSize:14}]},eh={name:"Hyperbola & modulus",elements:[{id:1,type:"text",x1:260,y1:24,x2:260,y2:24,label:"Rational-style curves & piecewise linear",color:"#475569",fontSize:16},{id:2,type:"axes",x1:100,y1:400,x2:540,y2:60,color:"#0f172a",strokeWidth:2},{id:3,type:"hyperbola",x1:320,y1:100,x2:480,y2:360,color:"#7c3aed",strokeWidth:2.5,label:"xy = const"},{id:4,type:"modulus",x1:160,y1:320,x2:280,y2:180,color:"#ea580c",strokeWidth:2.5,label:"|x - a|"},{id:5,type:"text",x1:560,y1:280,x2:560,y2:280,label:"Asymptotes & kinks",color:"#64748b",fontSize:14}]},qu=[Iy,th,eh],Qu={name:"Graph",elements:qu[0].elements,examples:qu,toolCategories:[{name:"Basic",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point/Node"},{id:"line",name:"Solid Line"},{id:"dashed_line",name:"Dashed Line"},{id:"vector",name:"Vector/Arrow"},{id:"angle",name:"Angle/Vector"},{id:"axes",name:"X-Y Axes"},{id:"text",name:"Text Label"}]},{name:"Physics",tools:[{id:"charge_plus",name:"+ Charge"},{id:"charge_minus",name:"- Charge"},{id:"capacitor",name:"Capacitor"},{id:"ground",name:"Ground"}]},{name:"Shapes",tools:[{id:"rectangle",name:"Rectangle"},{id:"circle",name:"Circle"},{id:"ellipse",name:"Ellipse"}]},{name:"Curves",tools:[{id:"parabola_v",name:"Parabola (V)"},{id:"parabola_h",name:"Parabola (H)"},{id:"hyperbola",name:"Hyperbola"},{id:"modulus",name:"Modulus |x|"},{id:"step_function",name:"Step [x]"},{id:"shaded_area",name:"Area Graph"},{id:"exponential",name:"Exponential"},{id:"logarithmic",name:"Logarithmic"},{id:"sine_wave",name:"Sine Wave"}]},{name:"Mechanical",tools:[{id:"spring",name:"Spring"}]}]};var nh={name:"Point charge & Gaussian sphere",elements:[{id:1,type:"text",x1:160,y1:36,x2:160,y2:36,label:"Spherical symmetry: E \u221D 1/r\xB2 outside",color:"#475569",fontSize:16},{id:2,type:"charge_pos",x1:160,y1:180,x2:160,y2:180,label:"+q",color:"#ef4444",strokeWidth:2,fontSize:18},{id:3,type:"gaussian_sphere",x1:160,y1:180,x2:280,y2:180,color:"#10b981",strokeWidth:2,label:"Gaussian surface"},{id:4,type:"vector",x1:160,y1:180,x2:300,y2:180,color:"#ef4444",strokeWidth:2,label:"E"},{id:5,type:"vector",x1:160,y1:180,x2:160,y2:60,color:"#ef4444",strokeWidth:2},{id:6,type:"vector",x1:160,y1:180,x2:40,y2:180,color:"#ef4444",strokeWidth:2},{id:7,type:"vector",x1:160,y1:180,x2:160,y2:300,color:"#ef4444",strokeWidth:2},{id:8,type:"text",x1:160,y1:340,x2:160,y2:340,label:"\u222E E\xB7dA = Q/\u03B5\u2080",color:"#0f172a",fontSize:17}]},lh={name:"Line charge & Gaussian cylinder",elements:[{id:1,type:"text",x1:500,y1:36,x2:500,y2:36,label:"Infinite line \u03BB \u2014 use a coaxial cylinder",color:"#475569",fontSize:15},{id:2,type:"charged_plate_pos",x1:480,y1:80,x2:480,y2:360,color:"#ef4444",strokeWidth:2,label:"+\u03BB"},{id:3,type:"gaussian_cylinder",x1:480,y1:140,x2:480,y2:300,color:"#10b981",strokeWidth:2,curveHeight:60,label:"Coaxial S"},{id:4,type:"vector",x1:480,y1:210,x2:600,y2:210,color:"#ef4444",strokeWidth:2,label:"E"},{id:5,type:"vector",x1:480,y1:210,x2:360,y2:210,color:"#ef4444",strokeWidth:2},{id:6,type:"text",x1:480,y1:400,x2:480,y2:400,label:"E = \u03BB / (2\u03C0\u03B5\u2080r)",color:"#0f172a",fontSize:16}]},ah={name:"Parallel plates & dipole",elements:[{id:1,type:"text",x1:720,y1:36,x2:720,y2:36,label:"Uniform field + torque on p in E",color:"#475569",fontSize:15},{id:2,type:"charged_plate_pos",x1:600,y1:100,x2:820,y2:100,color:"#ef4444",strokeWidth:2},{id:3,type:"charged_plate_neg",x1:600,y1:300,x2:820,y2:300,color:"#3b82f6",strokeWidth:2},{id:4,type:"vector",x1:640,y1:100,x2:640,y2:300,color:"#ef4444",strokeWidth:2},{id:5,type:"vector",x1:700,y1:100,x2:700,y2:300,color:"#ef4444",strokeWidth:2},{id:6,type:"vector",x1:780,y1:100,x2:780,y2:300,color:"#ef4444",strokeWidth:2,label:"E"},{id:7,type:"text",x1:720,y1:340,x2:720,y2:340,label:"\u0394V = E d (parallel)",color:"#0f172a",fontSize:15},{id:8,type:"dipole",x1:120,y1:480,x2:280,y2:480,color:"#64748b",strokeWidth:2,label:"p"},{id:9,type:"vector",x1:120,y1:480,x2:280,y2:480,color:"#f59e0b",strokeWidth:2,label:"p"},{id:10,type:"text",x1:320,y1:480,x2:320,y2:480,label:"\u03C4 = p \xD7 E",color:"#0f172a",fontSize:16}]},Gu=[nh,lh,ah],ju={name:"Electrostatics",elements:Gu[0].elements,examples:Gu,toolCategories:[{name:"Basics",tools:[{id:"select",name:"Select/Move"},{id:"point",name:"Point"},{id:"line",name:"Line"},{id:"vector",name:"Vector"},{id:"text",name:"Text Label"}]},{name:"Electrostatics",tools:[{id:"charge_pos",name:"+ Charge"},{id:"charge_neg",name:"- Charge"},{id:"dipole",name:"Dipole"},{id:"charged_plate_pos",name:"+ Plate"},{id:"charged_plate_neg",name:"- Plate"},{id:"gaussian_sphere",name:"Gauss Sphere"},{id:"gaussian_cylinder",name:"Gauss Cyl"}]},{name:"Optics",tools:[{id:"ray",name:"Light Ray"},{id:"lens_convex",name:"Convex Lens"},{id:"lens_concave",name:"Concave Lens"},{id:"mirror_plane",name:"Plane Mirror"}]},{name:"Modern Phys",tools:[{id:"photon",name:"Photon"},{id:"slit_double",name:"Double Slit"},{id:"energy_level",name:"Energy Lvl"}]}]};var ih={name:"Aromatic halogenation",elements:[{id:1,type:"text",x1:420,y1:40,x2:420,y2:40,label:"Lewis acid catalyzed chlorination (schematic)",color:"#64748b",fontSize:15},{id:2,type:"benzene",x1:150,y1:210,x2:150,y2:210,label:"",value:""},{id:3,type:"text",x1:240,y1:210,x2:240,y2:210,label:"+",value:""},{id:4,type:"atom",x1:285,y1:210,x2:285,y2:210,label:"Cl",value:""},{id:5,type:"single_bond",x1:300,y1:210,x2:330,y2:210,label:"",value:""},{id:6,type:"atom",x1:345,y1:210,x2:345,y2:210,label:"Cl",value:""},{id:7,type:"reaction_arrow",x1:400,y1:210,x2:520,y2:210,label:"FeCl\u2083",value:"cat."},{id:8,type:"benzene",x1:600,y1:210,x2:600,y2:210,label:"",value:""},{id:9,type:"single_bond",x1:600,y1:180,x2:600,y2:120,label:"",value:""},{id:10,type:"atom",x1:600,y1:105,x2:600,y2:105,label:"Cl",value:""},{id:11,type:"text",x1:690,y1:210,x2:690,y2:210,label:"+",value:""},{id:12,type:"atom",x1:750,y1:210,x2:750,y2:210,label:"HCl",value:""}]},oh={name:"Ring conformers",elements:[{id:1,type:"text",x1:400,y1:50,x2:400,y2:50,label:"Six-membered ring: two low-energy chairs",color:"#64748b",fontSize:15},{id:2,type:"cyclohexane",x1:220,y1:240,x2:220,y2:240,label:"",value:""},{id:3,type:"equilibrium_arrow",x1:300,y1:240,x2:420,y2:240,label:"",value:""},{id:4,type:"cyclohexane",x1:520,y1:240,x2:520,y2:240,label:"",value:""},{id:5,type:"text",x1:400,y1:360,x2:400,y2:360,label:"Flip interconverts axial / equatorial substituents",color:"#334155",fontSize:14},{id:6,type:"wedge_bond",x1:220,y1:200,x2:200,y2:170,label:"",value:""},{id:7,type:"atom",x1:188,y1:158,x2:188,y2:158,label:"R",value:""}]},rh={name:"Benzene resonance",elements:[{id:1,type:"text",x1:400,y1:50,x2:400,y2:50,label:"\u03C0 system: two major Kekul\xE9 contributors",color:"#64748b",fontSize:15},{id:2,type:"benzene",x1:200,y1:220,x2:200,y2:220,label:"",value:""},{id:3,type:"resonance_arrow",x1:280,y1:220,x2:360,y2:220,label:"",value:""},{id:4,type:"benzene",x1:440,y1:220,x2:440,y2:220,label:"",value:""},{id:5,type:"double_bond",x1:440,y1:200,x2:470,y2:180,label:"",value:""},{id:6,type:"text",x1:400,y1:340,x2:400,y2:340,label:"Real molecule = hybrid (D\u2086h symmetry)",color:"#334155",fontSize:14}]},Vu=[ih,oh,rh],Zu={name:"Chemistry",elements:Vu[0].elements,examples:Vu,toolCategories:[{name:"Chemistry",tools:[{id:"select",name:"Select/Move"},{id:"single_bond",name:"Single Bond"},{id:"double_bond",name:"Double Bond"},{id:"triple_bond",name:"Triple Bond"},{id:"wedge_bond",name:"Wedge (Up)"},{id:"dash_bond",name:"Dash (Down)"}]},{name:"Arrows",tools:[{id:"curved_arrow",name:"Mechanism"},{id:"reaction_arrow",name:"Reaction"},{id:"equilibrium_arrow",name:"Equilibrium"},{id:"resonance_arrow",name:"Resonance"}]},{name:"Rings",tools:[{id:"benzene",name:"Benzene"},{id:"cyclohexane",name:"Cyclohexane"},{id:"cyclopentane",name:"Cyclopentane"},{id:"cyclobutane",name:"Cyclobutane"},{id:"cyclopropane",name:"Cyclopropane"}]},{name:"Symbols",tools:[{id:"atom",name:"Atom/Group"},{id:"charge_plus",name:"Pos. Charge"},{id:"charge_minus",name:"Neg. Charge"},{id:"radical",name:"Radical"},{id:"lone_pair",name:"Lone Pair"},{id:"text",name:"Plain Text"}]}]};var Fe={mechanics:Au,circuit:Tu,thermo:Nu,magnetism:Hu,light:Ru,waveOscillation:Uu,rotation:Xu,graph:Qu,electrostatics:ju,chemistry:Zu};var jt=j(sn());var le=j(sn());var f0=j(sn());var fl=(t,e=20)=>Math.round(t/e)*e,O=(t,e,n,l)=>Math.hypot(n-t,l-e),R=(t,e,n,l)=>Math.atan2(l-e,n-t)*180/Math.PI,Wt=(t,e,n,l)=>{let a=Math.min(t,n),i=Math.min(e,l),o=Math.max(t,n),r=Math.max(e,l);return {minX:a,minY:i,maxX:o,maxY:r,width:Math.max(1,o-a),height:Math.max(1,r-i)}};function Da(t,e,n,l){let a=O(t,e,n,l);if(a>=1)return a;let i=Wt(t,e,n,l);return Math.max(12,i.width,i.height)}var Ta=(t,e)=>{let n=t.getScreenCTM();return n?{x:(e.clientX-n.e)/n.a,y:(e.clientY-n.f)/n.d}:{x:0,y:0}};function Hl(t,e,n,l,a,i=18){let o=O(t,e,n,l),r=Math.atan2(l-e,n-t),s=o/2,u=-a*2,f=t+s*Math.cos(r)-u*Math.sin(r),y=e+s*Math.sin(r)+u*Math.cos(r),d=[t,n,f],m=[e,l,y],_=Math.min(...d),E=Math.min(...m),T=Math.max(...d),x=Math.max(...m);return sh(_,E,T,x,i)}function sh(t,e,n,l,a){return {x:t-a,y:e-a,width:n-t+2*a,height:l-e+2*a}}var Ju=new Map,v=(t,e)=>{Ju.set(t,e);},Dr=t=>Ju.get(t);var bt=j(F()),e0="#2563eb",Iu="#ef4444",t0="#10b981",fh="#3b82f6";function cn(t,e,n,l){return (0, bt.jsx)("rect",{x:t,y:e,width:n,height:l,fill:"none",stroke:e0,strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"})}function dh(t,e=15,n=20){let l=Wt(t.x1,t.y1,t.x2,t.y2);return cn(l.minX-e,l.minY-n,l.width+2*e,l.height+2*n)}function yh(t,e=24){return (0, bt.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"transparent",strokeWidth:e,strokeLinecap:"round"})}function un(t,e){return !e.isSelected||e.viewMode||e.isGhost||!e.onHandlePointerDown?null:(0, bt.jsxs)(bt.Fragment,{children:[(0, bt.jsx)("circle",{cx:t.x1,cy:t.y1,r:5,fill:Iu,cursor:"grab",onMouseDown:n=>e.onHandlePointerDown(n,"start")}),(0, bt.jsx)("circle",{cx:t.x2,cy:t.y2,r:5,fill:Iu,cursor:"grab",onMouseDown:n=>e.onHandlePointerDown(n,"end")})]})}function D({el:t,ctx:e,padX:n=15,padY:l=20,hitWidth:a=24}){return (0, bt.jsxs)(bt.Fragment,{children:[yh(t,a),e.isSelected&&!e.viewMode&&!e.isGhost?dh(t,n,l):null,un(t,e)]})}function ut({dPath:t,strokeWidth:e=24,strokeLinecap:n="round",strokeLinejoin:l}){return (0, bt.jsx)("path",{d:t,fill:"none",stroke:"transparent",strokeWidth:e,strokeLinecap:n,strokeLinejoin:l})}function I({ctx:t,hitHalfSize:e,selectionHalfSize:n,children:l}){let a=n??e+10;return (0, bt.jsxs)(bt.Fragment,{children:[t.isSelected&&!t.viewMode&&!t.isGhost?(0, bt.jsx)("rect",{x:-a,y:-a,width:2*a,height:2*a,fill:"none",stroke:e0,strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"}):null,(0, bt.jsx)("rect",{x:-e,y:-e,width:2*e,height:2*e,fill:"transparent"}),l]})}function ot(t,e,n,l,a,i=10){return !a.isSelected||a.viewMode||a.isGhost?null:cn(t-i,e-i,n+2*i,l+2*i)}function dl({minX:t,minY:e,width:n,height:l,ctx:a,inset:i=10,includeHitFill:o=true}){return (0, bt.jsxs)(bt.Fragment,{children:[o?(0, bt.jsx)("rect",{x:t,y:e,width:n,height:l,fill:"transparent"}):null,ot(t,e,n,l,a,i)]})}function n0({x1:t,y1:e,x2:n,y2:l,cp0:a,ctx:i,pts:o,pad:r=10}){if(!(i.isSelected&&!i.viewMode&&!i.isGhost&&i.onHandlePointerDown))return null;let u=Math.min(...o.map(m=>m.x)),f=Math.max(...o.map(m=>m.x)),y=Math.min(...o.map(m=>m.y)),d=Math.max(...o.map(m=>m.y));return (0, bt.jsxs)(bt.Fragment,{children:[cn(u-r,y-r,f-u+2*r,d-y+2*r),(0, bt.jsx)("polyline",{points:o.map(m=>`${m.x},${m.y}`).join(" "),fill:"none",stroke:"#94a3b8",strokeDasharray:"4 4",strokeWidth:1,pointerEvents:"none"}),(0, bt.jsx)("circle",{cx:t,cy:e,r:6,fill:t0,cursor:"grab",onMouseDown:m=>i.onHandlePointerDown(m,"start")}),(0, bt.jsx)("circle",{cx:n,cy:l,r:6,fill:t0,cursor:"grab",onMouseDown:m=>i.onHandlePointerDown(m,"end")}),(0, bt.jsx)("circle",{cx:a.x,cy:a.y,r:6,fill:fh,cursor:"grab",onMouseDown:m=>i.onHandlePointerDown(m,"cp",0)})]})}var Ct=j(F()),Pe=t=>t.color||"#0f172a",l0=t=>t.strokeWidth||2,Ui=t=>t.fontSize||16;v("point",(t,e)=>(0, Ct.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, Ct.jsxs)(I,{ctx:e,hitHalfSize:28,selectionHalfSize:32,children:[(0, Ct.jsx)("circle",{cx:"0",cy:"0",r:3,fill:Pe(t)}),t.label?(0, Ct.jsx)("text",{x:"8",y:"-8",fontSize:Ui(t),fill:Pe(t),children:String(t.label)}):null]})}));v("text",(t,e)=>(0, Ct.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, Ct.jsx)(I,{ctx:e,hitHalfSize:Math.max(40,(t.label||t.value||"").length*4),selectionHalfSize:void 0,children:(0, Ct.jsx)("text",{x:0,y:0,dominantBaseline:"central",textAnchor:"middle",fill:Pe(t),fontSize:Ui(t),fontFamily:t.fontFamily||"serif",fontWeight:t.fontWeight||"normal",children:String(t.label||t.value||"")})})}));var Ll=(t,e,n=false)=>{let l=O(t.x1,t.y1,t.x2,t.y2),a=R(t.x1,t.y1,t.x2,t.y2),i=t.lineStyle==="dashed"||t.type==="dashed"||t.type==="dashed_line"?"6 6":t.lineStyle==="dotted"?"2 4":void 0;return (0, Ct.jsxs)("g",{children:[(0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${a})`,children:[(0, Ct.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:Pe(t),strokeWidth:l0(t),strokeDasharray:i,strokeLinecap:"round"}),n?(0, Ct.jsx)("polygon",{points:`${l},0 ${l-12},-6 ${l-12},6`,fill:Pe(t)}):null,t.label?(0, Ct.jsx)("text",{x:l/2,y:-10,fontSize:Ui(t),fill:Pe(t),textAnchor:"middle",children:String(t.label)}):null]}),(0, Ct.jsx)(D,{el:t,ctx:e})]})};v("line",(t,e)=>Ll(t,e));v("dashed",(t,e)=>Ll({...t,lineStyle:"dashed"},e));v("dashed_line",(t,e)=>Ll({...t,lineStyle:"dashed"},e));v("vector",(t,e)=>Ll(t,e,true));v("ray",(t,e)=>Ll(t,e,true));v("wire",(t,e)=>Ll(t,e));v("table_edge",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=Math.max(1,l-n),r=Math.max(1,i-a),s=[],u=Math.max(2,Math.floor(o/12)),f=Math.max(2,Math.floor(r/12));for(let y=0;y<=u;y++){let d=n+y/u*o;s.push((0, Ct.jsx)("line",{x1:d,y1:a,x2:d-8,y2:a+10,stroke:Pe(t),strokeWidth:1},`h-${y}`));}for(let y=0;y<=f;y++){let d=a+y/f*r;s.push((0, Ct.jsx)("line",{x1:l,y1:d,x2:l-10,y2:d+8,stroke:Pe(t),strokeWidth:1},`v-${y}`));}return (0, Ct.jsxs)("g",{children:[(0, Ct.jsx)("polyline",{points:`${n},${a} ${l},${a} ${l},${i}`,fill:"none",stroke:Pe(t),strokeWidth:l0(t)}),s,t.label?(0, Ct.jsx)("text",{x:n+o/2,y:a-10,fill:Pe(t),textAnchor:"middle",fontSize:Ui(t),children:String(t.label)}):null,(0, Ct.jsx)(dl,{minX:n,minY:a,width:o,height:r,ctx:e,inset:12}),un(t,e)]})});var b=j(F()),$=t=>t.color||"#0f172a",q=t=>t.strokeWidth||2,be=t=>t.fillOpacity??.2,Tr=t=>t.fontSize||18,a0=t=>t.rotation||0;v("slab",t=>{let e=Wt(t.x1,t.y1,t.x2,t.y2),n=t.curveHeight??20;return (0, b.jsxs)("g",{children:[(0, b.jsx)("path",{d:`M ${e.minX} ${e.minY} L ${e.maxX} ${e.minY} L ${e.maxX} ${e.maxY} L ${e.minX} ${e.maxY} Z`,fill:$(t),fillOpacity:be(t),stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("path",{d:`M ${e.minX} ${e.minY} L ${e.minX+n} ${e.minY-n} L ${e.maxX+n} ${e.minY-n} L ${e.maxX} ${e.minY} Z`,fill:$(t),fillOpacity:Math.max(0,be(t)-.1),stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("path",{d:`M ${e.maxX} ${e.minY} L ${e.maxX+n} ${e.minY-n} L ${e.maxX+n} ${e.maxY-n} L ${e.maxX} ${e.maxY} Z`,fill:$(t),fillOpacity:Math.min(1,be(t)+.1),stroke:$(t),strokeWidth:q(t)})]})});v("sphere",t=>{let e=Math.max(4,O(t.x1,t.y1,t.x2,t.y2));return (0, b.jsx)("circle",{cx:t.x1,cy:t.y1,r:e,fill:$(t),fillOpacity:be(t),stroke:$(t),strokeWidth:q(t)})});v("shell",t=>{let e=Math.max(10,O(t.x1,t.y1,t.x2,t.y2)),n=t.curveHeight??10,l=Math.max(1,e-n);return (0, b.jsx)("path",{d:`M ${t.x1-e} ${t.y1} A ${e} ${e} 0 1 0 ${t.x1+e} ${t.y1} A ${e} ${e} 0 1 0 ${t.x1-e} ${t.y1} Z M ${t.x1-l} ${t.y1} A ${l} ${l} 0 1 1 ${t.x1+l} ${t.y1} A ${l} ${l} 0 1 1 ${t.x1-l} ${t.y1} Z`,fill:$(t),fillOpacity:be(t),fillRule:"evenodd",stroke:$(t),strokeWidth:q(t)})});v("cylinder",t=>{let e=O(t.x1,t.y1,t.x2,t.y2),n=R(t.x1,t.y1,t.x2,t.y2),l=t.curveHeight??20;return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${n})`,children:[(0, b.jsx)("path",{d:`M 0 ${-l} L ${e} ${-l} A 10 ${l} 0 0 1 ${e} ${l} L 0 ${l} Z`,fill:$(t),fillOpacity:be(t)}),(0, b.jsx)("path",{d:`M 0 ${-l} L ${e} ${-l} M 0 ${l} L ${e} ${l}`,fill:"none",stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("ellipse",{cx:e,cy:0,rx:10,ry:l,fill:$(t),fillOpacity:be(t),stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("ellipse",{cx:0,cy:0,rx:10,ry:l,fill:"none",stroke:$(t),strokeWidth:q(t),strokeDasharray:"2 4"})]})});v("ladder",t=>{let e=O(t.x1,t.y1,t.x2,t.y2),n=R(t.x1,t.y1,t.x2,t.y2),l=t.curveHeight??10,a=[];for(let i=15;i<e-10;i+=15)a.push((0, b.jsx)("line",{x1:i,y1:-l,x2:i,y2:l,stroke:$(t),strokeWidth:Math.max(1,q(t)-1)},i));return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${n})`,children:[(0, b.jsx)("line",{x1:0,y1:-l,x2:e,y2:-l,stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("line",{x1:0,y1:l,x2:e,y2:l,stroke:$(t),strokeWidth:q(t)}),a]})});v("spring",t=>{let e=O(t.x1,t.y1,t.x2,t.y2),n=R(t.x1,t.y1,t.x2,t.y2),l=Math.max(0,Math.floor(e/12)),a="M 0 0";for(let i=0;i<l;i++)a+=` L ${i*12+3} 8 L ${i*12+9} -8`;return a+=` L ${e} 0`,(0, b.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${n})`,children:(0, b.jsx)("path",{d:a,fill:"none",stroke:$(t),strokeWidth:q(t),strokeLinejoin:"round"})})});v("rod",t=>{let e=O(t.x1,t.y1,t.x2,t.y2),n=R(t.x1,t.y1,t.x2,t.y2);return (0, b.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${n})`,children:(0, b.jsx)("line",{x1:0,y1:0,x2:e,y2:0,stroke:$(t),strokeWidth:Math.max(4,q(t)),strokeLinecap:"round"})})});v("arc_arrow",t=>{let e=Math.max(8,O(t.x1,t.y1,t.x2,t.y2));return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, b.jsx)("path",{d:`M ${e} 0 A ${e} ${e} 0 0 0 ${-e} 0`,fill:"none",stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("polygon",{points:`${-e},2 ${-e-6},-10 ${-e+6},-10`,fill:$(t)})]})});v("lens_convex",(t,e)=>{let n=Da(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.curveHeight!==void 0?Number(t.curveHeight):n*.15,i=t.fontSize||16,o=`M 0 0 Q ${n/2} ${-a*2} ${n} 0 Q ${n/2} ${a*2} 0 0 Z`,r=Math.ceil(2*a)+Math.ceil(i+14);return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, b.jsx)("path",{d:o,fill:$(t),fillOpacity:Math.max(.15,be(t)),stroke:$(t),strokeWidth:q(t)}),t.label?(0, b.jsx)("text",{x:n/2,y:-a-10,fontSize:i,fill:$(t),textAnchor:"middle",children:String(t.label)}):null,(0, b.jsx)(ut,{dPath:o,strokeWidth:28,strokeLinejoin:"round"})]}),(0, b.jsx)(D,{el:t,ctx:e,padX:15+r,padY:20+r})]})});v("lens_concave",(t,e)=>{let n=Da(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.curveHeight!==void 0?Number(t.curveHeight):Math.max(10,n*.04),i=Math.max(15,n*.05),o=t.fontSize||16,r=`M 0 ${-i} L 0 ${i} Q ${n/2} ${i-a*2} ${n} ${i} L ${n} ${-i} Q ${n/2} ${-i+a*2} 0 ${-i} Z`,s=Math.ceil(i+2*a)+Math.ceil(o+14);return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, b.jsx)("path",{d:r,fill:$(t),fillOpacity:Math.max(.15,be(t)),stroke:$(t),strokeWidth:q(t)}),t.label?(0, b.jsx)("text",{x:n/2,y:-i-10,fontSize:o,fill:$(t),textAnchor:"middle",children:String(t.label)}):null,(0, b.jsx)(ut,{dPath:r,strokeWidth:28,strokeLinejoin:"round"})]}),(0, b.jsx)(D,{el:t,ctx:e,padX:15+s,padY:20+s})]})});v("mirror_concave",(t,e)=>{let n=Da(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.curveHeight!==void 0?Number(t.curveHeight):n*.2,i=t.fontSize||16,o=`M 0 0 Q ${n/2} ${a*2} ${n} 0`,r=Math.ceil(2*a)+24;return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, b.jsx)("path",{d:o,fill:"none",stroke:$(t),strokeWidth:q(t)}),t.label?(0, b.jsx)("text",{x:n/2,y:-15,fontSize:i,fill:$(t),textAnchor:"middle",children:String(t.label)}):null,(0, b.jsx)(ut,{dPath:o,strokeWidth:28,strokeLinecap:"round"})]}),(0, b.jsx)(D,{el:t,ctx:e,padX:15+r,padY:20+r})]})});v("mirror_convex",(t,e)=>{let n=Da(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.curveHeight!==void 0?Number(t.curveHeight):n*.2,i=t.fontSize||16,o=`M 0 0 Q ${n/2} ${-a*2} ${n} 0`,r=Math.ceil(2*a)+24;return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, b.jsx)("path",{d:o,fill:"none",stroke:$(t),strokeWidth:q(t)}),t.label?(0, b.jsx)("text",{x:n/2,y:-15,fontSize:i,fill:$(t),textAnchor:"middle",children:String(t.label)}):null,(0, b.jsx)(ut,{dPath:o,strokeWidth:28,strokeLinecap:"round"})]}),(0, b.jsx)(D,{el:t,ctx:e,padX:15+r,padY:20+r})]})});v("prism",t=>{let e=O(t.x1,t.y1,t.x2,t.y2),n=R(t.x1,t.y1,t.x2,t.y2),l=-e*.866,a=t.fontSize||16;return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${n})`,children:[(0, b.jsx)("polygon",{points:`0,0 ${e},0 ${e/2},${l}`,fill:$(t),fillOpacity:Math.max(.15,be(t)),stroke:$(t),strokeWidth:q(t),strokeLinejoin:"round"}),t.label&&(0, b.jsx)("text",{x:e/2,y:l-10,fontSize:a,fill:$(t),textAnchor:"middle",children:String(t.label)})]})});v("slit_single",t=>{let e=O(t.x1,t.y1,t.x2,t.y2),n=R(t.x1,t.y1,t.x2,t.y2),l=16,a=Math.max(4,q(t)),i=t.fontSize||16;return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${n})`,children:[(0, b.jsx)("line",{x1:0,y1:0,x2:e/2-l/2,y2:0,stroke:$(t),strokeWidth:a,strokeLinecap:"square"}),(0, b.jsx)("line",{x1:e/2+l/2,y1:0,x2:e,y2:0,stroke:$(t),strokeWidth:a,strokeLinecap:"square"}),t.label&&(0, b.jsx)("text",{x:e/2,y:-14,fontSize:i,fill:$(t),textAnchor:"middle",children:String(t.label)})]})});v("slit_double",t=>{let e=Wt(t.x1,t.y1,t.x2,t.y2),n=e.minX+e.width/2;return (0, b.jsxs)("g",{children:[(0, b.jsx)("line",{x1:n-6,y1:e.minY,x2:n-6,y2:e.maxY,stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("line",{x1:n+6,y1:e.minY,x2:n+6,y2:e.maxY,stroke:$(t),strokeWidth:q(t)})]})});v("photon",t=>{let e=O(t.x1,t.y1,t.x2,t.y2),n=R(t.x1,t.y1,t.x2,t.y2),l=6,a=Math.max(3,Math.floor(e/24)),i=e/(a*2),o="M 0 0 ";for(let r=0;r<a*2;r++){let s=(r+1)*i,u=r%2===0?-l:l;o+=`L ${s} ${u} `;}return o+=`L ${e} 0`,(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${n})`,children:[(0, b.jsx)("path",{d:o,fill:"none",stroke:$(t),strokeWidth:q(t)}),t.label&&(0, b.jsx)("text",{x:e/2,y:-12,textAnchor:"middle",fill:$(t),children:String(t.label)})]})});v("glass_slab",t=>{let e=Wt(t.x1,t.y1,t.x2,t.y2);return (0, b.jsx)("rect",{x:e.minX,y:e.minY,width:e.width,height:e.height,fill:$(t),fillOpacity:Math.max(.1,be(t)),stroke:$(t),strokeWidth:q(t)})});v("pipe",t=>{let e=Wt(t.x1,t.y1,t.x2,t.y2),n=t.curveHeight??e.height*.35;return (0, b.jsx)("path",{d:`M ${e.minX} ${e.minY} C ${e.minX+e.width*.3} ${e.minY}, ${e.minX+e.width*.3} ${e.minY+n}, ${e.minX+e.width*.5} ${e.minY+n} C ${e.minX+e.width*.7} ${e.minY+n}, ${e.minX+e.width*.7} ${e.minY}, ${e.maxX} ${e.minY} L ${e.maxX} ${e.maxY} C ${e.minX+e.width*.7} ${e.maxY}, ${e.minX+e.width*.7} ${e.maxY-n}, ${e.minX+e.width*.5} ${e.maxY-n} C ${e.minX+e.width*.3} ${e.maxY-n}, ${e.minX+e.width*.3} ${e.maxY}, ${e.minX} ${e.maxY} Z`,fill:$(t),fillOpacity:be(t),stroke:$(t),strokeWidth:q(t)})});v("liquid",t=>{let e=Wt(t.x1,t.y1,t.x2,t.y2);return (0, b.jsxs)("g",{children:[(0, b.jsx)("path",{d:`M ${e.minX} ${e.minY} Q ${e.minX+e.width/2} ${e.minY+10} ${e.maxX} ${e.minY} L ${e.maxX} ${e.maxY} L ${e.minX} ${e.maxY} Z`,fill:$(t),fillOpacity:Math.max(.2,be(t))}),(0, b.jsx)("path",{d:`M ${e.minX} ${e.minY} Q ${e.minX+e.width/2} ${e.minY+10} ${e.maxX} ${e.minY}`,fill:"none",stroke:$(t),strokeWidth:2})]})});v("orbit",t=>{let e=Wt(t.x1,t.y1,t.x2,t.y2);return (0, b.jsx)("ellipse",{cx:e.minX+e.width/2,cy:e.minY+e.height/2,rx:e.width/2,ry:e.height/2,fill:"none",stroke:$(t),strokeWidth:q(t),strokeDasharray:"3 3"})});v("pole_piece",(t,e)=>{let n=Wt(t.x1,t.y1,t.x2,t.y2),l=String(t.label||"N"),i=l.toUpperCase().includes("N")?"#ef4444":"#3b82f6",o=Math.min(n.width,n.height)*.5+10;return (0, b.jsxs)("g",{children:[(0, b.jsx)("rect",{x:n.minX,y:n.minY,width:n.width,height:n.height,fill:i,fillOpacity:.2,stroke:$(t),strokeWidth:q(t),rx:"4"}),(0, b.jsx)("text",{x:n.minX+n.width/2,y:n.minY+n.height/2,textAnchor:"middle",dominantBaseline:"central",fill:$(t),fontWeight:"bold",fontSize:o,children:l}),ot(n.minX,n.minY,n.width,n.height,e)]})});v("b_field_line",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.fontSize||18,i=n/2;return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, b.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:$(t),strokeWidth:q(t),strokeLinecap:"round"}),(0, b.jsx)("polygon",{points:`${i+6},0 ${i-6},-5 ${i-6},5`,fill:$(t)}),t.label?(0, b.jsx)("text",{x:i,y:-10,textAnchor:"middle",fill:$(t),fontSize:a,children:String(t.label)}):null]}),(0, b.jsx)(D,{el:t,ctx:e})]})});v("b_field_curve",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.curveHeight!==void 0?t.curveHeight:n*.4,i=t.fontSize||18,o=-a,r=Hl(t.x1,t.y1,t.x2,t.y2,a),s=`M 0 0 Q ${n/2} ${-a*2} ${n} 0`;return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, b.jsx)("path",{d:s,fill:"none",stroke:$(t),strokeWidth:q(t),strokeLinecap:"round"}),(0, b.jsx)("polygon",{points:`${n/2+6},${o} ${n/2-6},${o-5} ${n/2-6},${o+5}`,fill:$(t)}),t.label?(0, b.jsx)("text",{x:n/2,y:o-15,textAnchor:"middle",fill:$(t),fontSize:i,children:String(t.label)}):null,(0, b.jsx)(ut,{dPath:s,strokeWidth:24,strokeLinecap:"round"})]}),e.isSelected&&!e.viewMode&&!e.isGhost?cn(r.x,r.y,r.width,r.height):null,un(t,e)]})});v("axes_3d",t=>(0, b.jsxs)("g",{children:[(0, b.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1+100,y2:t.y1,stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1,y2:t.y1-100,stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1+70,y2:t.y1+50,stroke:$(t),strokeWidth:q(t)})]}));v("string",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2);return (0, b.jsxs)("g",{children:[(0, b.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:(0, b.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:$(t),strokeWidth:q(t),strokeLinecap:"round"})}),(0, b.jsx)(D,{el:t,ctx:e})]})});v("surface",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Math.max(0,Math.floor(n/12)),i=[];for(let o=0;o<=a;o++)i.push((0, b.jsx)("line",{x1:o*12,y1:0,x2:o*12-8,y2:12,stroke:$(t),strokeWidth:1.5},o));return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, b.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:$(t),strokeWidth:q(t)+.5,strokeLinecap:"round"}),i]}),(0, b.jsx)(D,{el:t,ctx:e})]})});v("block",(t,e)=>{let n=Math.abs(t.x2-t.x1),l=Math.abs(t.y2-t.y1),a=(t.x1+t.x2)/2,i=(t.y1+t.y2)/2,o=a0(t),r=Wt(t.x1,t.y1,t.x2,t.y2);return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${a}, ${i}) rotate(${o})`,children:[(0, b.jsx)("rect",{x:-n/2,y:-l/2,width:n,height:l,fill:"#f1f5f9",stroke:$(t),strokeWidth:q(t)}),t.label?(0, b.jsx)("text",{x:0,y:t.value?-6:0,dominantBaseline:"central",textAnchor:"middle",fill:$(t),fontSize:18,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, b.jsx)("text",{x:0,y:t.label?10:0,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]}),ot(r.minX,r.minY,r.width,r.height,e),(0, b.jsx)(D,{el:t,ctx:e})]})});v("cart",(t,e)=>{let n=Math.abs(t.x2-t.x1),l=Math.abs(t.y2-t.y1),a=(t.x1+t.x2)/2,i=(t.y1+t.y2)/2,o=a0(t),r=Math.min(n*.15,l*.25,12),s=Wt(t.x1,t.y1,t.x2,t.y2);return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${a}, ${i}) rotate(${o})`,children:[(0, b.jsx)("rect",{x:-n/2,y:-l/2,width:n,height:l-r,fill:"#f1f5f9",stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("circle",{cx:-n/2+r*1.5,cy:l/2-r,r,fill:"#cbd5e1",stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("circle",{cx:n/2-r*1.5,cy:l/2-r,r,fill:"#cbd5e1",stroke:$(t),strokeWidth:q(t)}),t.label?(0, b.jsx)("text",{x:0,y:t.value?-8:-2,dominantBaseline:"central",textAnchor:"middle",fill:$(t),fontSize:18,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, b.jsx)("text",{x:0,y:t.label?8:-2,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]}),ot(s.minX,s.minY,s.width,s.height,e),(0, b.jsx)(D,{el:t,ctx:e})]})});v("particle",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=Math.max(5,n);return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, b.jsx)("circle",{cx:0,cy:0,r:l,fill:$(t)}),t.label?(0, b.jsx)("text",{x:0,y:-l-12,dominantBaseline:"central",textAnchor:"middle",fill:$(t),fontSize:Tr(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, b.jsx)("text",{x:0,y:l+12,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]}),(0, b.jsx)(D,{el:t,ctx:e})]})});v("disk",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=Math.max(10,n);return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, b.jsx)("circle",{cx:0,cy:0,r:l,fill:"#e2e8f0",stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("circle",{cx:0,cy:0,r:3,fill:$(t)}),t.label?(0, b.jsx)("text",{x:0,y:-l-12,dominantBaseline:"central",textAnchor:"middle",fill:$(t),fontSize:Tr(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, b.jsx)("text",{x:0,y:l+12,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]}),(0, b.jsx)(D,{el:t,ctx:e})]})});v("com",(t,e)=>(0, b.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, b.jsxs)(I,{ctx:e,hitHalfSize:22,selectionHalfSize:28,children:[(0, b.jsx)("circle",{cx:0,cy:0,r:10,fill:"none",stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("path",{d:"M 0 -10 A 10 10 0 0 1 10 0 L 0 0 Z",fill:$(t)}),(0, b.jsx)("path",{d:"M 0 10 A 10 10 0 0 1 -10 0 L 0 0 Z",fill:$(t)})]})}));v("pivot",(t,e)=>(0, b.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, b.jsxs)(I,{ctx:e,hitHalfSize:24,selectionHalfSize:32,children:[(0, b.jsx)("polygon",{points:"0,0 -12,20 12,20",fill:"#f8fafc",stroke:$(t),strokeWidth:q(t),strokeLinejoin:"round"}),(0, b.jsx)("line",{x1:-20,y1:20,x2:20,y2:20,stroke:$(t),strokeWidth:q(t),strokeLinecap:"round"}),(0, b.jsx)("circle",{cx:0,cy:0,r:3,fill:$(t)})]})}));v("pulley",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=Math.max(10,n);return (0, b.jsxs)("g",{children:[(0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, b.jsx)("circle",{cx:0,cy:0,r:l,fill:"#f8fafc",stroke:$(t),strokeWidth:q(t)}),(0, b.jsx)("circle",{cx:0,cy:0,r:4,fill:$(t)}),t.label?(0, b.jsx)("text",{x:0,y:-l-12,dominantBaseline:"central",textAnchor:"middle",fill:$(t),fontSize:Tr(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null]}),(0, b.jsx)(D,{el:t,ctx:e})]})});v("wedge",t=>{let e=t.x2-t.x1,n=t.y2-t.y1;return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, b.jsx)("polygon",{points:`0,0 ${e},0 ${e},${n}`,fill:"#f1f5f9",stroke:$(t),strokeWidth:q(t),strokeLinejoin:"round"}),t.label?(0, b.jsx)("text",{x:e*.6,y:n*.3,dominantBaseline:"central",textAnchor:"middle",fill:$(t),fontSize:20,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null]})});v("dimension",t=>{let e=O(t.x1,t.y1,t.x2,t.y2),n=R(t.x1,t.y1,t.x2,t.y2),l=Math.max(1,q(t)-.5);return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${n})`,children:[(0, b.jsx)("line",{x1:0,y1:0,x2:e,y2:0,stroke:$(t),strokeWidth:l,strokeDasharray:"4 4"}),(0, b.jsx)("polygon",{points:"0,0 10,-5 10,5",fill:$(t)}),(0, b.jsx)("polygon",{points:`${e},0 ${e-10},-5 ${e-10},5`,fill:$(t)}),t.label?(0, b.jsx)("text",{x:e/2,y:-10,textAnchor:"middle",fill:$(t),fontSize:18,fontFamily:"serif",fontStyle:"italic",fontWeight:"bold",children:String(t.label)}):null]})});v("arc",t=>{let e=t.x2-t.x1,n=t.y2-t.y1,l=Math.hypot(e,n),a=Math.atan2(n,e)*180/Math.PI,i=Math.min(l,40),o=n>0?1:0,r=i,s=0,u=i*Math.cos(a*Math.PI/180),f=i*Math.sin(a*Math.PI/180),y=a/2,d=i+15,m=d*Math.cos(y*Math.PI/180),_=d*Math.sin(y*Math.PI/180),E=Math.max(l,50);return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, b.jsx)("line",{x1:0,y1:0,x2:E,y2:0,stroke:$(t),strokeWidth:1.5,strokeDasharray:"4 4"}),(0, b.jsx)("path",{d:`M ${r} ${s} A ${i} ${i} 0 0 ${o} ${u} ${f}`,fill:"none",stroke:$(t),strokeWidth:q(t)}),t.label?(0, b.jsx)("text",{x:m,y:_,dominantBaseline:"central",textAnchor:"middle",fill:$(t),fontSize:16,fontFamily:"serif",fontStyle:"italic",fontWeight:"bold",children:String(t.label)}):null]})});v("nucleus",t=>{let e=t.fontSize||18,n=$(t),l=q(t);return (0, b.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, b.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:n,strokeWidth:l,transform:"rotate(30)"}),(0, b.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:n,strokeWidth:l,transform:"rotate(-30)"}),(0, b.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:n,strokeWidth:l,transform:"rotate(90)"}),(0, b.jsx)("circle",{cx:0,cy:0,r:6,fill:"#ef4444"}),t.label&&(0, b.jsx)("text",{x:0,y:36,fontSize:e,fill:n,textAnchor:"middle",children:String(t.label)})]})});["cone","curved_wedge","incline","container","hinge"].forEach(t=>v(t,e=>{let n=O(e.x1,e.y1,e.x2,e.y2),l=R(e.x1,e.y1,e.x2,e.y2);return (0, b.jsx)("g",{transform:`translate(${e.x1}, ${e.y1}) rotate(${l})`,children:(0, b.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:$(e),strokeWidth:q(e)})})}));["semicircle","quarter_circle","axes"].forEach(t=>v(t,e=>{let n=Wt(e.x1,e.y1,e.x2,e.y2);return (0, b.jsx)("rect",{x:n.minX,y:n.minY,width:n.width,height:n.height,fill:"none",stroke:$(e),strokeWidth:q(e)})}));var X=j(F()),ht=t=>t.color||"#0f172a",ve=t=>t.strokeWidth||2,wn=t=>t.fontSize||18,i0=t=>t.lineStyle==="dashed"||t.type==="dashed_line"?"6 6":t.lineStyle==="dotted"?"2 4":void 0;v("b_region_in",(t,e)=>{let n=Wt(t.x1,t.y1,t.x2,t.y2),l=n.minX,a=n.maxX,i=n.minY,o=n.maxY,r=(l+a)/2,s=40,u=6,f=[];for(let y=l+s/2;y<=a;y+=s)for(let d=i+s/2;d<=o;d+=s)f.push((0, X.jsxs)("g",{transform:`translate(${y}, ${d})`,children:[(0, X.jsx)("circle",{cx:0,cy:0,r:u,fill:"none",stroke:ht(t),strokeWidth:ve(t)*.75}),(0, X.jsx)("line",{x1:-u*.7,y1:-u*.7,x2:u*.7,y2:u*.7,stroke:ht(t),strokeWidth:ve(t)*.75}),(0, X.jsx)("line",{x1:u*.7,y1:-u*.7,x2:-u*.7,y2:u*.7,stroke:ht(t),strokeWidth:ve(t)*.75})]},`${y}-${d}`));return (0, X.jsxs)("g",{children:[(0, X.jsx)("rect",{x:l,y:i,width:n.width,height:n.height,fill:ht(t),stroke:ht(t),strokeWidth:1,strokeDasharray:"4 4",opacity:.1}),f,t.label?(0, X.jsx)("text",{x:r,y:i-10,fontSize:wn(t),fill:ht(t),textAnchor:"middle",fontWeight:"bold",children:String(t.label)}):null,ot(l,i,n.width,n.height,e)]})});v("b_region_out",(t,e)=>{let n=Wt(t.x1,t.y1,t.x2,t.y2),l=n.minX,a=n.maxX,i=n.minY,o=n.maxY,r=(l+a)/2,s=40,u=6,f=[];for(let y=l+s/2;y<=a;y+=s)for(let d=i+s/2;d<=o;d+=s)f.push((0, X.jsxs)("g",{transform:`translate(${y}, ${d})`,children:[(0, X.jsx)("circle",{cx:0,cy:0,r:u,fill:"none",stroke:ht(t),strokeWidth:ve(t)*.75}),(0, X.jsx)("circle",{cx:0,cy:0,r:2,fill:ht(t)})]},`${y}-${d}`));return (0, X.jsxs)("g",{children:[(0, X.jsx)("rect",{x:l,y:i,width:n.width,height:n.height,fill:ht(t),stroke:ht(t),strokeWidth:1,strokeDasharray:"4 4",opacity:.1}),f,t.label?(0, X.jsx)("text",{x:r,y:i-10,fontSize:wn(t),fill:ht(t),textAnchor:"middle",fontWeight:"bold",children:String(t.label)}):null,ot(l,i,n.width,n.height,e)]})});v("current_wire",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=n/2,i=l>90||l<=-90;return (0, X.jsxs)("g",{children:[(0, X.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, X.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:ht(t),strokeWidth:ve(t),strokeDasharray:i0(t),strokeLinecap:"round"}),(0, X.jsx)("polygon",{points:`${a+8},0 ${a-6},-7 ${a-6},7`,fill:ht(t)}),t.label?(0, X.jsx)("text",{x:a,y:-15,fontSize:wn(t),fill:ht(t),textAnchor:"middle",fontStyle:"italic",transform:i?`rotate(180, ${a}, -15)`:void 0,children:String(t.label)}):null]}),(0, X.jsx)(D,{el:t,ctx:e})]})});v("bar_magnet",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Math.max(20,ve(t)*10),i=l>90||l<=-90;return (0, X.jsxs)("g",{children:[(0, X.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, X.jsx)("rect",{x:0,y:-a/2,width:n/2,height:a,fill:"#ef4444",stroke:ht(t),strokeWidth:1}),(0, X.jsx)("rect",{x:n/2,y:-a/2,width:n/2,height:a,fill:"#3b82f6",stroke:ht(t),strokeWidth:1}),(0, X.jsx)("text",{x:n/4,y:0,fill:"white",fontSize:a*.6,fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",transform:i?`rotate(180, ${n/4}, 0)`:void 0,children:"N"}),(0, X.jsx)("text",{x:n*.75,y:0,fill:"white",fontSize:a*.6,fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",transform:i?`rotate(180, ${n*.75}, 0)`:void 0,children:"S"}),t.label?(0, X.jsx)("text",{x:n/2,y:-a/2-10,fill:ht(t),fontSize:wn(t),textAnchor:"middle",transform:i?`rotate(180, ${n/2}, ${-a/2-10})`:void 0,children:String(t.label)}):null]}),(0, X.jsx)(D,{el:t,ctx:e})]})});v("coil",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Math.max(Math.floor(n/15),1),i="M 0 0 ";for(let r=1;r<=a;r++)i+=`C ${r*(n/a)-n/(a*2)} -15, ${r*(n/a)} 20, ${r*(n/a)} 0 `;let o=l>90||l<=-90;return (0, X.jsxs)("g",{children:[(0, X.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, X.jsx)("path",{d:i,fill:"none",stroke:ht(t),strokeWidth:ve(t),strokeLinejoin:"round"}),t.label?(0, X.jsx)("text",{x:n/2,y:-20,fontSize:wn(t),fill:ht(t),textAnchor:"middle",transform:o?`rotate(180, ${n/2}, -20)`:void 0,children:String(t.label)}):null,(0, X.jsx)(ut,{dPath:i,strokeWidth:24,strokeLinejoin:"round"})]}),(0, X.jsx)(D,{el:t,ctx:e})]})});v("meter",(t,e)=>{let n=Math.max(16,ve(t)*5),l=String(t.label||"G");return (0, X.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, X.jsxs)(I,{ctx:e,hitHalfSize:20,selectionHalfSize:30,children:[(0, X.jsx)("circle",{cx:0,cy:0,r:n,fill:"white",stroke:ht(t),strokeWidth:ve(t)}),(0, X.jsx)("text",{x:0,y:0,fontSize:wn(t),fill:ht(t),fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",children:l})]})})});v("ac_source",(t,e)=>{let n=Math.max(16,ve(t)*5);return (0, X.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, X.jsxs)(I,{ctx:e,hitHalfSize:22,selectionHalfSize:30,children:[(0, X.jsx)("circle",{cx:0,cy:0,r:n,fill:"white",stroke:ht(t),strokeWidth:ve(t)}),(0, X.jsx)("path",{d:`M ${-n*.6} 0 Q ${-n*.3} ${-n*.6} 0 0 T ${n*.6} 0`,fill:"none",stroke:ht(t),strokeWidth:ve(t)*.8}),t.label?(0, X.jsx)("text",{x:0,y:n+18,fontSize:wn(t),fill:ht(t),textAnchor:"middle",children:String(t.label)}):null]})})});v("bezier",(t,e)=>{let{x1:n,y1:l,x2:a,y2:i}=t,r=(t.cps?.length?t.cps:[{x:(n+a)/2,y:Math.min(l,i)-50}])[0],s=`M ${n} ${l} Q ${r.x} ${r.y} ${a} ${i}`,u=[{x:n,y:l},r,{x:a,y:i}],f=.25*n+.5*r.x+.25*a,y=.25*l+.5*r.y+.25*i,d=Math.atan2(i-l,a-n),m=!!t.showArrow;return (0, X.jsxs)("g",{children:[(0, X.jsx)("path",{d:s,fill:"none",stroke:"transparent",strokeWidth:24,strokeLinecap:"round",strokeLinejoin:"round"}),(0, X.jsx)("path",{d:s,fill:"none",stroke:ht(t),strokeWidth:ve(t),strokeDasharray:i0(t),strokeLinecap:"round",strokeLinejoin:"round"}),m?(0, X.jsx)("g",{transform:`translate(${f}, ${y}) rotate(${d*180/Math.PI})`,children:(0, X.jsx)("polygon",{points:"6,0 -6,-5 -6,5",fill:ht(t)})}):null,t.label?(0, X.jsx)("text",{x:f,y:y-14,fontSize:wn(t),fill:ht(t),textAnchor:"middle",children:String(t.label)}):null,(0, X.jsx)(n0,{x1:n,y1:l,x2:a,y2:i,cp0:r,ctx:e,pts:u})]})});var w=j(F()),se=t=>t.color||"#0f172a",ce=t=>t.strokeWidth||2,o0=t=>t.fontSize||16,ue=t=>{if(t.lineStyle==="dashed"||t.type==="dashed_line"||t.type==="dashed")return "6 6";if(t.lineStyle==="dotted")return "2 4"},ee=t=>t?.isGhost?.5:1;v("axes",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(n+l)/2,r=(a+i)/2,s=Math.max(1,l-n),u=Math.max(1,i-a),f=se(t),y=ce(t),d=ue(t);if(l-n<=1&&i-a<=1){let m=t.x1,_=t.y1,E=40,T=o0(t);return (0, w.jsx)("g",{opacity:ee(e),transform:`translate(${m}, ${_})`,children:(0, w.jsxs)(I,{ctx:e,hitHalfSize:52,selectionHalfSize:58,children:[(0, w.jsx)("line",{x1:0,y1:0,x2:E,y2:0,stroke:f,strokeWidth:y}),(0, w.jsx)("polygon",{points:`${E},0 ${E-8},-5 ${E-8},5`,fill:f}),(0, w.jsx)("text",{x:E+10,y:0,dominantBaseline:"central",textAnchor:"middle",fill:f,fontSize:T,fontFamily:"serif",fontStyle:"italic",children:"x"}),(0, w.jsx)("line",{x1:0,y1:0,x2:0,y2:-E,stroke:f,strokeWidth:y}),(0, w.jsx)("polygon",{points:`0,${-E} -5,${-E+8} 5,${-E+8}`,fill:f}),(0, w.jsx)("text",{x:0,y:-E-12,dominantBaseline:"central",textAnchor:"middle",fill:f,fontSize:T,fontFamily:"serif",fontStyle:"italic",children:"y"}),(0, w.jsx)("circle",{cx:0,cy:0,r:2,fill:f})]})})}return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:s,height:u,fill:"transparent"}),ot(n,a,s,u,e),(0, w.jsxs)("g",{pointerEvents:"none",children:[(0, w.jsx)("line",{x1:o,y1:a,x2:o,y2:i,stroke:f,strokeWidth:y,strokeDasharray:d,opacity:.8}),(0, w.jsx)("line",{x1:n,y1:r,x2:l,y2:r,stroke:f,strokeWidth:y,strokeDasharray:d,opacity:.8}),(0, w.jsx)("polygon",{points:`${l},${r} ${l-10},${r-5} ${l-10},${r+5}`,fill:f,opacity:.8}),(0, w.jsx)("polygon",{points:`${o},${a} ${o-5},${a+10} ${o+5},${a+10}`,fill:f,opacity:.8})]}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("circle",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=se(t),a=ce(t),i=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("circle",{cx:t.x1,cy:t.y1,r:n,fill:"none",stroke:l,strokeWidth:a,strokeDasharray:i,pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("ellipse",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(n+l)/2,r=(a+i)/2,s=Math.max(1,l-n),u=Math.max(1,i-a),f=se(t),y=ce(t),d=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:s,height:u,fill:"transparent"}),ot(n,a,s,u,e),(0, w.jsx)("ellipse",{cx:o,cy:r,rx:s/2,ry:u/2,fill:"none",stroke:f,strokeWidth:y,strokeDasharray:d,pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("rectangle",(t,e)=>{let n=Wt(t.x1,t.y1,t.x2,t.y2),l=se(t),a=ce(t),i=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n.minX,y:n.minY,width:n.width,height:n.height,fill:"transparent"}),ot(n.minX,n.minY,n.width,n.height,e),(0, w.jsx)("rect",{x:n.minX,y:n.minY,width:n.width,height:n.height,fill:"none",stroke:l,strokeWidth:a,strokeDasharray:i,strokeLinejoin:"round",pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("angle",(t,e)=>{let{x1:n,y1:l,x2:a,y2:i}=t,o=a-n,r=i-l,s=Math.hypot(o,r),u=Math.min(n,a),f=Math.max(n,a),y=Math.min(l,i),d=Math.max(l,i),m=Math.max(1,f-u),_=Math.max(1,d-y),E=se(t),T=ce(t),x=ue(t),h=o0(t),p=Math.atan2(r,o),k=Math.min(s*.4,40),N=(o>=0?1:-1)===1?0:Math.PI,L=p-N;L=Math.atan2(Math.sin(L),Math.cos(L));let Z=N+L/2,P=L>0?1:0,te=n+k*Math.cos(N),Ge=l+k*Math.sin(N),Q=n+k*Math.cos(p),U=l+k*Math.sin(p),V=p*180/Math.PI;return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:u,y,width:m,height:_,fill:"transparent"}),ot(u,y,m,_,e),(0, w.jsxs)("g",{pointerEvents:"none",children:[(0, w.jsx)("line",{x1:n,y1:l,x2:n+o,y2:l,stroke:E,strokeWidth:T,strokeDasharray:"4 4",opacity:.6}),(0, w.jsx)("line",{x1:n,y1:l,x2:a,y2:i,stroke:E,strokeWidth:T,strokeLinecap:"round",strokeDasharray:x}),(0, w.jsx)("g",{transform:`translate(${a}, ${i}) rotate(${V})`,children:(0, w.jsx)("polygon",{points:"0,0 -12,-6 -12,6",fill:E})}),s>20&&(0, w.jsx)("path",{d:`M ${te} ${Ge} A ${k} ${k} 0 0 ${P} ${Q} ${U}`,fill:"none",stroke:E,strokeWidth:T}),t.label&&(0, w.jsx)("text",{x:n+(k+16)*Math.cos(Z),y:l+(k+16)*Math.sin(Z),fontSize:h,fill:E,fontFamily:"serif",fontStyle:"italic",dominantBaseline:"central",textAnchor:"middle",children:String(t.label)})]}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("parabola_v",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(n+l)/2,r=Math.max(1,l-n),s=Math.max(1,i-a),u=2*t.y1-t.y2,f=se(t),y=ce(t),d=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:r,height:s,fill:"transparent"}),ot(n,a,r,s,e),(0, w.jsx)("path",{d:`M ${n} ${t.y2} Q ${o} ${u} ${l} ${t.y2}`,fill:"none",stroke:f,strokeWidth:y,strokeDasharray:d,pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("parabola_h",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(a+i)/2,r=Math.max(1,l-n),s=Math.max(1,i-a),u=2*t.x1-t.x2,f=se(t),y=ce(t),d=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:r,height:s,fill:"transparent"}),ot(n,a,r,s,e),(0, w.jsx)("path",{d:`M ${t.x2} ${a} Q ${u} ${o} ${t.x2} ${i}`,fill:"none",stroke:f,strokeWidth:y,strokeDasharray:d,pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("hyperbola",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(n+l)/2,r=(a+i)/2,s=Math.max(1,l-n),u=Math.max(1,i-a),f=se(t),y=ce(t),d=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:s,height:u,fill:"transparent"}),ot(n,a,s,u,e),(0, w.jsxs)("g",{pointerEvents:"none",children:[(0, w.jsx)("path",{d:`M ${n} ${a} Q ${o} ${r} ${n} ${i}`,fill:"none",stroke:f,strokeWidth:y,strokeDasharray:d}),(0, w.jsx)("path",{d:`M ${l} ${a} Q ${o} ${r} ${l} ${i}`,fill:"none",stroke:f,strokeWidth:y,strokeDasharray:d})]}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("modulus",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(n+l)/2,r=Math.max(1,l-n),s=Math.max(1,i-a),u=se(t),f=ce(t),y=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:r,height:s,fill:"transparent"}),ot(n,a,r,s,e),(0, w.jsx)("polyline",{points:`${n},${a} ${o},${i} ${l},${a}`,fill:"none",stroke:u,strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:y,pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("exponential",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(n+l)/2,r=Math.max(1,l-n),s=Math.max(1,i-a),u=se(t),f=ce(t),y=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:r,height:s,fill:"transparent"}),ot(n,a,r,s,e),(0, w.jsx)("path",{d:`M ${n} ${i} Q ${o+r*.2} ${i} ${l} ${a}`,fill:"none",stroke:u,strokeWidth:f,strokeDasharray:y,pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("logarithmic",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(a+i)/2,r=Math.max(1,l-n),s=Math.max(1,i-a),u=se(t),f=ce(t),y=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:r,height:s,fill:"transparent"}),ot(n,a,r,s,e),(0, w.jsx)("path",{d:`M ${n} ${i} Q ${n} ${o-s*.2} ${l} ${a}`,fill:"none",stroke:u,strokeWidth:f,strokeDasharray:y,pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("sine_wave",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(a+i)/2,r=Math.max(1,l-n),s=Math.max(1,i-a),u=r/4,f=se(t),y=ce(t),d=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:r,height:s,fill:"transparent"}),ot(n,a,r,s,e),(0, w.jsx)("path",{d:`M ${n} ${o} Q ${n+u/2} ${a}, ${n+u} ${o} T ${n+2*u} ${o} T ${n+3*u} ${o} T ${l} ${o}`,fill:"none",stroke:f,strokeWidth:y,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:d,pointerEvents:"none"}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("step_function",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=Math.max(1,l-n),r=Math.max(1,i-a),s=se(t),u=ce(t),f=ue(t),y=4,d=o/y,m=r/y,_=[];for(let E=0;E<y;E++){let T=n+E*d,x=i-E*m,h=T+d;_.push((0, w.jsxs)("g",{children:[(0, w.jsx)("line",{x1:T,y1:x,x2:h,y2:x,stroke:s,strokeWidth:u,strokeDasharray:f}),(0, w.jsx)("circle",{cx:T,cy:x,r:u*1.5,fill:s}),(0, w.jsx)("circle",{cx:h,cy:x,r:u*1.5,fill:"white",stroke:s,strokeWidth:u*.75})]},E));}return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:o,height:r,fill:"transparent"}),ot(n,a,o,r,e),(0, w.jsx)("g",{pointerEvents:"none",children:_}),(0, w.jsx)(D,{el:t,ctx:e})]})});v("shaded_area",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.max(t.x1,t.x2),a=Math.min(t.y1,t.y2),i=Math.max(t.y1,t.y2),o=(n+l)/2,r=Math.max(1,l-n),s=Math.max(1,i-a),u=se(t),f=ce(t),y=ue(t);return (0, w.jsxs)("g",{opacity:ee(e),children:[(0, w.jsx)("rect",{x:n,y:a,width:r,height:s,fill:"transparent"}),ot(n,a,r,s,e),(0, w.jsxs)("g",{pointerEvents:"none",children:[(0, w.jsx)("path",{d:`M ${n} ${i} L ${n} ${a+s*.3} Q ${o} ${a} ${l} ${a+s*.3} L ${l} ${i} Z`,fill:u,opacity:.2}),(0, w.jsx)("path",{d:`M ${n} ${a+s*.3} Q ${o} ${a} ${l} ${a+s*.3}`,fill:"none",stroke:u,strokeWidth:f,strokeDasharray:y})]}),(0, w.jsx)(D,{el:t,ctx:e})]})});var g=j(F()),Yt=t=>t.color||"#0f172a",Qt=t=>t.strokeWidth||2,Ut=t=>t.fontSize||18;v("mass_box",(t,e)=>{let n=t.size||30,l=Yt(t),a=Qt(t),i=Ut(t),o=Math.max(36,n/2+24);return (0, g.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, g.jsxs)(I,{ctx:e,hitHalfSize:o,selectionHalfSize:o+8,children:[(0, g.jsx)("rect",{x:-n/2,y:-n/2,width:n,height:n,fill:l,fillOpacity:.2,stroke:l,strokeWidth:a,rx:4,pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:0,y:0,dominantBaseline:"central",textAnchor:"middle",fontSize:i,fill:l,fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null]})})});v("tuning_fork",(t,e)=>{let n=Yt(t),l=Qt(t),a=Ut(t),i=Math.max(3,l);return (0, g.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, g.jsxs)(I,{ctx:e,hitHalfSize:38,selectionHalfSize:46,children:[(0, g.jsx)("path",{d:"M -10 -20 L -10 0 Q -10 10 0 10 Q 10 10 10 0 L 10 -20",fill:"none",stroke:n,strokeWidth:i,strokeLinecap:"round",pointerEvents:"none"}),(0, g.jsx)("line",{x1:"0",y1:"10",x2:"0",y2:"30",stroke:n,strokeWidth:Math.max(4,l),strokeLinecap:"round",pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:0,y:45,fontSize:a,fill:n,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});v("speaker",(t,e)=>{let n=Yt(t),l=Ut(t);return (0, g.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, g.jsxs)(I,{ctx:e,hitHalfSize:36,selectionHalfSize:44,children:[(0, g.jsx)("polygon",{points:"-10,-15 5,-25 5,25 -10,15",fill:n,pointerEvents:"none"}),(0, g.jsx)("rect",{x:"-20",y:"-15",width:"10",height:"30",fill:n,pointerEvents:"none"}),(0, g.jsx)("path",{d:"M 12 -10 Q 18 0 12 10 M 18 -20 Q 28 0 18 20",fill:"none",stroke:n,strokeWidth:2,strokeLinecap:"round",pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:0,y:40,fontSize:l,fill:n,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});v("wavefronts",(t,e)=>{let n=t.rings||5,l=t.velocityRatio??0,a=Yt(t),i=Qt(t),o=Ut(t),r=[];for(let u=1;u<=n;u++){let f=u*20,y=l*f;r.push((0, g.jsx)("circle",{cx:y,cy:0,r:f,fill:"none",stroke:a,strokeWidth:i,opacity:1-u/n*.5,pointerEvents:"none"},u));}let s=n*20+Math.abs(l)*n*20+30;return (0, g.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, g.jsxs)(I,{ctx:e,hitHalfSize:s,selectionHalfSize:s+10,children:[(0, g.jsx)("circle",{cx:0,cy:0,r:4,fill:a,pointerEvents:"none"}),r,t.label?(0, g.jsx)("text",{x:0,y:n*20+20,fontSize:o,fill:a,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});v("pendulum",(t,e)=>{let n=t.size||15,l=Yt(t),a=Qt(t),i=Ut(t),o=Math.atan2(t.x2-t.x1,t.y2-t.y1),r=o*(180/Math.PI),s=Math.hypot(t.x2-t.x1,t.y2-t.y1),u=Math.min(40,s*.5),f=Math.sin(o)*u,y=Math.cos(o)*u,d=o>0?0:1,m=t.showForces;return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, g.jsx)("line",{x1:-20,y1:0,x2:20,y2:0,stroke:l,strokeWidth:2}),(0, g.jsx)("line",{x1:-15,y1:0,x2:-10,y2:-5,stroke:l}),(0, g.jsx)("line",{x1:0,y1:0,x2:5,y2:-5,stroke:l}),(0, g.jsx)("line",{x1:15,y1:0,x2:20,y2:-5,stroke:l}),(0, g.jsx)("line",{x1:0,y1:0,x2:0,y2:s+20,stroke:l,strokeWidth:1,strokeDasharray:"4 4",opacity:.5}),Math.abs(o)>.05?(0, g.jsx)("path",{d:`M 0 ${u} A ${u} ${u} 0 0 ${d} ${f} ${y}`,fill:"none",stroke:l,strokeWidth:1.5}):null,(0, g.jsxs)("g",{transform:`rotate(${-r})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:0,y2:s,stroke:l,strokeWidth:a}),(0, g.jsx)("circle",{cx:0,cy:s,r:n,fill:l,stroke:"#fff",strokeWidth:2}),m?(0, g.jsxs)("g",{transform:`translate(0, ${s})`,children:[(0, g.jsxs)("g",{transform:`rotate(${r})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:0,y2:40,stroke:"#ef4444",strokeWidth:2}),(0, g.jsx)("polygon",{points:"0,45 -4,37 4,37",fill:"#ef4444"}),(0, g.jsx)("text",{x:10,y:40,fontSize:12,fill:"#ef4444",children:"F_g"})]}),(0, g.jsx)("line",{x1:0,y1:0,x2:0,y2:-40,stroke:"#3b82f6",strokeWidth:2}),(0, g.jsx)("polygon",{points:"0,-45 -4,-37 4,-37",fill:"#3b82f6"}),(0, g.jsx)("text",{x:10,y:-35,fontSize:12,fill:"#3b82f6",children:"T"}),(0, g.jsx)("line",{x1:0,y1:0,x2:-35*Math.sin(o),y2:0,stroke:"#10b981",strokeWidth:2}),(0, g.jsx)("polygon",{points:`${ -40*Math.sin(o)},0 ${ -32*Math.sin(o)},-4 ${ -32*Math.sin(o)},4`,fill:"#10b981"}),(0, g.jsx)("text",{x:-45*Math.sin(o),y:-10,fontSize:12,fill:"#10b981",children:"F_g sin(\u03B8)"})]}):null,t.label?(0, g.jsx)("text",{x:0,y:s+n+15,fontSize:i,fill:l,textAnchor:"middle",children:String(t.label)}):null]})]}),(0, g.jsx)(D,{el:t,ctx:e,padX:Math.max(80,s+n+30),padY:Math.max(80,s+n+30)})]})});v("phasor",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.x2-t.x1,i=t.y2-t.y1,o=Yt(t),r=Qt(t),s=Ut(t),u=t.showProjection;return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("circle",{cx:0,cy:0,r:n,fill:"none",stroke:o,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, g.jsx)("line",{x1:-n-10,y1:0,x2:n+10,y2:0,stroke:o,strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, g.jsx)("line",{x1:0,y1:-n-10,x2:0,y2:n+10,stroke:o,strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:o,strokeWidth:r,pointerEvents:"none"}),(0, g.jsx)("polygon",{points:`${n},0 ${n-12},-6 ${n-12},6`,fill:o,pointerEvents:"none"}),u?(0, g.jsxs)("g",{transform:`rotate(${-l})`,children:[(0, g.jsx)("line",{x1:a,y1:i,x2:a,y2:0,stroke:"#ef4444",strokeWidth:1,strokeDasharray:"4 4"}),(0, g.jsx)("line",{x1:a,y1:i,x2:0,y2:i,stroke:"#3b82f6",strokeWidth:1,strokeDasharray:"4 4"}),(0, g.jsx)("line",{x1:0,y1:0,x2:a,y2:0,stroke:"#ef4444",strokeWidth:2}),(0, g.jsx)("polygon",{points:`${a},0 ${a>0?a-8:a+8},-4 ${a>0?a-8:a+8},4`,fill:"#ef4444"}),(0, g.jsx)("line",{x1:0,y1:0,x2:0,y2:i,stroke:"#3b82f6",strokeWidth:2}),(0, g.jsx)("polygon",{points:`0,${i} -4,${i>0?i-8:i+8} 4,${i>0?i-8:i+8}`,fill:"#3b82f6"})]}):null,(0, g.jsx)("path",{d:`M ${n*.3} 0 A ${n*.3} ${n*.3} 0 0 0 ${n*.3*Math.cos(-l*Math.PI/180)} ${n*.3*Math.sin(-l*Math.PI/180)}`,fill:"none",stroke:o,strokeWidth:1.5,transform:`rotate(${-l})`}),t.label?(0, g.jsx)("text",{x:n/2,y:-15,fontSize:s,fill:o,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padX:n+28,padY:n+28})]})});v("sine_wave",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.amplitude||40,i=t.loops||2,o=n/(i/2),r=Yt(t),s=Qt(t),u=Ut(t),f="M 0 0",y=Math.max(1,n/100);for(let d=0;d<=n;d+=y)f+=` L ${d} ${-a*Math.sin(d/o*2*Math.PI)}`;return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:r,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, g.jsx)(ut,{dPath:f,strokeWidth:22,strokeLinejoin:"round"}),(0, g.jsx)("path",{d:f,fill:"none",stroke:r,strokeWidth:s,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:n/2,y:-a-15,fontSize:u,fill:r,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:a+28})]})});v("standing_wave",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.amplitude||40,i=t.loops||3,o=n/(i/2),r=Yt(t),s=Qt(t),u=Ut(t),f="M 0 0",y="M 0 0",d=Math.max(1,n/100);for(let m=0;m<=n;m+=d){let _=a*Math.sin(m/o*2*Math.PI);f+=` L ${m} ${-_}`,y+=` L ${m} ${_}`;}return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:r,strokeWidth:1,opacity:.5,pointerEvents:"none"}),(0, g.jsx)(ut,{dPath:f,strokeWidth:22,strokeLinejoin:"round"}),(0, g.jsx)(ut,{dPath:y,strokeWidth:22,strokeLinejoin:"round"}),(0, g.jsx)("path",{d:f,fill:r,fillOpacity:.1,stroke:r,strokeWidth:s,strokeLinejoin:"round",pointerEvents:"none"}),(0, g.jsx)("path",{d:y,fill:"none",stroke:r,strokeWidth:s,strokeDasharray:"4 4",strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:n/2,y:-a-15,fontSize:u,fill:r,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:a+28})]})});v("shm_graph",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.amplitude||40,i=t.loops||1,o=n/i,r=t.graphType||"x",s=Yt(t),u=Qt(t),f=Ut(t),y=`M 0 ${-a}`,d="M 0 0",m=`M 0 ${a}`,_=Math.max(1,n/100);for(let E=0;E<=n;E+=_){let T=E/o*2*Math.PI;y+=` L ${E} ${-a*Math.cos(T)}`,d+=` L ${E} ${-a*.8*-Math.sin(T)}`,m+=` L ${E} ${-a*.6*-Math.cos(T)}`;}return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:s,strokeWidth:1,opacity:.5,pointerEvents:"none"}),(0, g.jsx)("line",{x1:0,y1:-a*1.2,x2:0,y2:a*1.2,stroke:s,strokeWidth:1,opacity:.5,pointerEvents:"none"}),r==="x"||r==="all"?(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)(ut,{dPath:y,strokeWidth:20,strokeLinejoin:"round"}),(0, g.jsx)("path",{d:y,fill:"none",stroke:"#3b82f6",strokeWidth:u,strokeLinejoin:"round",pointerEvents:"none"})]}):null,r==="v"||r==="all"?(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)(ut,{dPath:d,strokeWidth:20,strokeLinejoin:"round"}),(0, g.jsx)("path",{d,fill:"none",stroke:"#ef4444",strokeWidth:u,strokeLinejoin:"round",pointerEvents:"none"})]}):null,r==="a"||r==="all"?(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)(ut,{dPath:m,strokeWidth:20,strokeLinejoin:"round"}),(0, g.jsx)("path",{d:m,fill:"none",stroke:"#10b981",strokeWidth:u,strokeLinejoin:"round",pointerEvents:"none"})]}):null,t.label?(0, g.jsx)("text",{x:n/2,y:-a-15,fontSize:f,fill:s,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:a*1.2+28})]})});v("energy_graph",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.amplitude||50,i=t.loops||1,o=n/i,r=t.domain||"time",s=Yt(t),u=Qt(t),f=Ut(t),y="M 0 0",d=`M 0 ${-a}`,m=Math.max(1,n/100);if(r==="time"){y=`M 0 ${-a}`,d="M 0 0";for(let _=0;_<=n;_+=m){let E=_/o*2*Math.PI;y+=` L ${_} ${-a*Math.pow(Math.cos(E),2)}`,d+=` L ${_} ${-a*Math.pow(Math.sin(E),2)}`;}}else for(let _=0;_<=n;_+=m){let E=2*(_/n)-1,T=a*E*E;y+=` L ${_} ${-T}`,d+=` L ${_} ${-(a-T)}`;}return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:s,strokeWidth:1,opacity:.5,pointerEvents:"none"}),(0, g.jsx)("line",{x1:0,y1:-a,x2:n,y2:-a,stroke:s,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, g.jsx)(ut,{dPath:y,strokeWidth:20,strokeLinejoin:"round"}),(0, g.jsx)(ut,{dPath:d,strokeWidth:20,strokeLinejoin:"round"}),(0, g.jsx)("path",{d:y,fill:"none",stroke:"#10b981",strokeWidth:u,strokeLinejoin:"round",pointerEvents:"none"}),(0, g.jsx)("path",{d,fill:"none",stroke:"#ef4444",strokeWidth:u,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:n/2,y:-a-15,fontSize:f,fill:s,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:a+28})]})});v("strobe_shm",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.amplitude||40,i=t.loops||1,o=Yt(t),r=Qt(t),s=Ut(t),u=10,f=[],y=[],d=[];for(let m=0;m<=u;m++){let _=m/u,E=a*Math.cos(_*2*Math.PI*i),T=_*n;f.push(`${E},${T}`),y.push((0, g.jsx)("circle",{cx:E,cy:T,r:r*2,fill:o,pointerEvents:"none"},`c${m}`)),d.push((0, g.jsx)("line",{x1:-a-20,y1:T,x2:a+20,y2:T,stroke:o,strokeWidth:1,strokeDasharray:"4 4",opacity:.3},`l${m}`));}return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[d,(0, g.jsx)("polyline",{points:f.join(" "),fill:"none",stroke:o,strokeWidth:1,opacity:.4,pointerEvents:"none"}),(0, g.jsx)("line",{x1:0,y1:0,x2:0,y2:n,stroke:o,strokeWidth:1,opacity:.5,pointerEvents:"none"}),y,t.label?(0, g.jsx)("text",{x:0,y:-15,fontSize:s,fill:o,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padX:a+35,padY:n+35})]})});v("torsion_pendulum",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Yt(t),i=Qt(t),o=Ut(t),r=Math.max(18,Math.min(58,t.size||26+n*.2)),s=Math.max(5,Math.min(11,r*.14)),u=Math.max(-45,Math.min(45,t.rotation??16)),f=u*Math.PI/180,y=Math.min(14,r*.35),d=y*Math.sin(f),m=-y*Math.cos(f),_=4,E=Math.max(_+8,n-s),T=[],x=Math.min(2.8,s*.35),h=24;for(let M=0;M<=h;M++){let k=M/h,Y=_+k*(E-_),N=x*Math.sin(k*Math.PI*5);T.push(M===0?`M ${Y} ${N}`:` L ${Y} ${N}`);}let p=Math.max(r+s+28,n*.35+40);return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("rect",{x:-28,y:-14,width:56,height:10,rx:2,fill:"#e2e8f0",stroke:a,strokeWidth:1.25,pointerEvents:"none"}),(0, g.jsx)("rect",{x:-8,y:-4,width:16,height:8,rx:1,fill:"#94a3b8",stroke:a,strokeWidth:1,pointerEvents:"none"}),(0, g.jsx)("line",{x1:-22,y1:-9,x2:22,y2:-9,stroke:"#64748b",strokeWidth:1,pointerEvents:"none"}),(0, g.jsx)("path",{d:T.join(""),fill:"none",stroke:a,strokeWidth:1,strokeLinecap:"round",opacity:.35,pointerEvents:"none"}),(0, g.jsx)("line",{x1:_,y1:0,x2:E,y2:0,stroke:"#64748b",strokeWidth:Math.max(1,i*.45),strokeLinecap:"round",pointerEvents:"none"}),(0, g.jsx)("rect",{x:n-s,y:-r,width:2*s,height:2*r,rx:s-.5,fill:"#f8fafc",stroke:a,strokeWidth:i,pointerEvents:"none"}),(0, g.jsx)("line",{x1:n-s+1,y1:0,x2:n+s-1,y2:0,stroke:"#cbd5e1",strokeWidth:1,pointerEvents:"none"}),(0, g.jsx)("circle",{cx:n,cy:0,r:Math.min(5,s-1),fill:"#94a3b8",stroke:a,strokeWidth:1,pointerEvents:"none"}),(0, g.jsx)("line",{x1:n,y1:0,x2:n,y2:-(r-6),stroke:"#94a3b8",strokeWidth:1.25,strokeDasharray:"3 3",opacity:.65,pointerEvents:"none"}),(0, g.jsx)("g",{transform:`translate(${n},0) rotate(${u})`,children:(0, g.jsx)("line",{x1:0,y1:0,x2:0,y2:-(r-5),stroke:"#dc2626",strokeWidth:Math.max(1.5,i*.75),strokeLinecap:"round",pointerEvents:"none"})}),Math.abs(u)>=2?(0, g.jsx)("g",{transform:`translate(${n},0)`,children:(0, g.jsx)("path",{d:`M 0 ${-y} A ${y} ${y} 0 0 ${u>=0?1:0} ${d} ${m}`,fill:"none",stroke:"#dc2626",strokeWidth:1.25,pointerEvents:"none"})}):null,t.label?(0, g.jsx)("text",{x:n,y:r+22,fontSize:o,fill:a,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padX:p,padY:p})]})});v("vane_liquid",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Yt(t),i=Qt(t),o=Ut(t),r=Math.max(40,n*.4),s=Math.max(40,n*.5);return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:a,strokeWidth:i,pointerEvents:"none"}),(0, g.jsx)("line",{x1:n,y1:-r*.3,x2:n,y2:r*.3,stroke:a,strokeWidth:i*1.5,strokeLinecap:"round",pointerEvents:"none"}),(0, g.jsx)("path",{d:`M ${n-s} ${-r/2} L ${n+10} ${-r/2} L ${n+10} ${r/2} L ${n-s} ${r/2}`,fill:"none",stroke:a,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"none"}),(0, g.jsx)("rect",{x:n-s+2,y:-r/2+2,width:s+8,height:r-4,fill:"#38bdf8",fillOpacity:.3,pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:n/2,y:-r/2-15,fontSize:o,fill:a,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padX:s+40,padY:r+40})]})});v("wave_pulse",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.amplitude||50,i=Yt(t),o=Qt(t),r=Ut(t),s=n/2,u=n/6,f="M 0 0",y=Math.max(1,n/50);for(let d=0;d<=n;d+=y){let m=a*Math.exp(-Math.pow(d-s,2)/(2*u*u));f+=` L ${d} ${-m}`;}return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:i,strokeWidth:o,strokeLinecap:"round",pointerEvents:"none"}),(0, g.jsx)(ut,{dPath:f,strokeWidth:22,strokeLinejoin:"round"}),(0, g.jsx)("path",{d:f,fill:i,fillOpacity:.1,stroke:i,strokeWidth:o,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:s,y:-a-15,fontSize:r,fill:i,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:a+28})]})});v("damped_wave",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.amplitude||50,i=t.damping||.015,o=t.frequency||10,r=Yt(t),s=Qt(t),u=Ut(t),f=`M 0 ${-a}`,y=`M 0 ${-a}`,d=`M 0 ${a}`,m=Math.max(1,n/200);for(let _=0;_<=n;_+=m){let E=a*Math.exp(-i*_),T=E*Math.cos(_/n*o*2*Math.PI);f+=` L ${_} ${-T}`,y+=` L ${_} ${-E}`,d+=` L ${_} ${E}`;}return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:r,strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, g.jsx)("path",{d:y,fill:"none",stroke:r,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, g.jsx)("path",{d,fill:"none",stroke:r,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, g.jsx)(ut,{dPath:f,strokeWidth:22,strokeLinejoin:"round"}),(0, g.jsx)("path",{d:f,fill:"none",stroke:r,strokeWidth:s,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:n/2,y:-a-15,fontSize:u,fill:r,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:a+28})]})});v("beats_graph",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.amplitude||30,i=t.frequency||20,o=t.beatFreq||2,r=Yt(t),s=Qt(t),u=Ut(t),f="M 0 0",y="M 0 0",d="M 0 0",m=Math.max(1,n/200);for(let _=0;_<=n;_+=m){let E=a*Math.cos(_/n*o*Math.PI),T=E*Math.sin(_/n*i*2*Math.PI);f+=` L ${_} ${-T}`,y+=` L ${_} ${-Math.abs(E)}`,d+=` L ${_} ${Math.abs(E)}`;}return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:r,strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, g.jsx)("path",{d:y,fill:"none",stroke:r,strokeWidth:1,strokeDasharray:"2 4",opacity:.5,pointerEvents:"none"}),(0, g.jsx)("path",{d,fill:"none",stroke:r,strokeWidth:1,strokeDasharray:"2 4",opacity:.5,pointerEvents:"none"}),(0, g.jsx)(ut,{dPath:f,strokeWidth:22,strokeLinejoin:"round"}),(0, g.jsx)("path",{d:f,fill:"none",stroke:r,strokeWidth:s,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, g.jsx)("text",{x:n/2,y:-a-20,fontSize:u,fill:r,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:a+28})]})});v("mach_cone",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.machNumber||2,i=Math.asin(1/Math.max(1.01,a)),o=n,r=o*Math.tan(i),s=Yt(t),u=Qt(t),f=Ut(t);return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:o,y2:0,stroke:s,strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"}),(0, g.jsx)("line",{x1:o,y1:0,x2:0,y2:-r,stroke:s,strokeWidth:u,pointerEvents:"none"}),(0, g.jsx)("line",{x1:o,y1:0,x2:0,y2:r,stroke:s,strokeWidth:u,pointerEvents:"none"}),(0, g.jsx)("circle",{cx:o,cy:0,r:4,fill:s,pointerEvents:"none"}),[.2,.5,.8].map(y=>(0, g.jsx)("circle",{cx:o*y,cy:0,r:(1-y)*r,fill:"none",stroke:s,strokeWidth:1,opacity:.6,pointerEvents:"none"},y)),t.label?(0, g.jsx)("text",{x:o/2,y:r+20,fontSize:f,fill:s,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:r+35})]})});v("wall",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Yt(t),i=Qt(t),o=Ut(t),r=[],s=Math.max(2,Math.floor(n/10));for(let u=0;u<=s;u++){let f=u/s*n;r.push((0, g.jsx)("line",{x1:f,y1:0,x2:f-8,y2:-12,stroke:a,strokeWidth:1,pointerEvents:"none"},u));}return (0, g.jsxs)("g",{children:[(0, g.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, g.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:a,strokeWidth:i,pointerEvents:"none"}),r,t.label?(0, g.jsx)("text",{x:n/2,y:20,fontSize:o,fill:a,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, g.jsx)(D,{el:t,ctx:e,padY:35})]})});var C=j(F()),B=t=>t.color||"#0f172a",Dt=t=>t.strokeWidth||2,ne=t=>t.fontSize||18;function hh(t,e,n=20){let l=Math.max(3,e??Math.floor(t/20)),a=t/l,i=`M 0 0 L ${a*.2} 0 `;for(let o=0;o<l;o++){let r=o*a;o===l-1?i+=`L ${r+a*.25} ${-n/2} L ${r+a*.75} ${n/2} L ${t} 0 `:i+=`L ${r+a*.25} ${-n/2} L ${r+a*.75} ${n/2} L ${r+a} 0 `;}return i}v("point_mass",(t,e)=>{let n=t.size??15,l=Math.max(36,n+22);return (0, C.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, C.jsxs)(I,{ctx:e,hitHalfSize:l/2,selectionHalfSize:l/2+8,children:[(0, C.jsx)("circle",{cx:0,cy:0,r:n,fill:B(t),fillOpacity:.8,stroke:B(t),strokeWidth:2}),(0, C.jsx)("circle",{cx:0,cy:0,r:n*.3,fill:"#fff",fillOpacity:.5}),t.label?(0, C.jsx)("text",{x:0,y:n+15,fontSize:ne(t),fill:B(t),textAnchor:"middle",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null]})})});v("com_indicator",(t,e)=>{let n=t.size??15,l=Math.max(40,n*2+12);return (0, C.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, C.jsxs)(I,{ctx:e,hitHalfSize:l/2,selectionHalfSize:l/2+10,children:[(0, C.jsx)("circle",{cx:0,cy:0,r:n,fill:"none",stroke:B(t),strokeWidth:Dt(t)}),(0, C.jsx)("line",{x1:-n*1.3,y1:0,x2:n*1.3,y2:0,stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),(0, C.jsx)("line",{x1:0,y1:-n*1.3,x2:0,y2:n*1.3,stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),(0, C.jsx)("path",{d:`M 0 0 L ${n} 0 A ${n} ${n} 0 0 0 0 ${-n} Z`,fill:B(t),fillOpacity:.5,pointerEvents:"none"}),(0, C.jsx)("path",{d:`M 0 0 L ${-n} 0 A ${n} ${n} 0 0 0 0 ${n} Z`,fill:B(t),fillOpacity:.5,pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:0,y:n+15,fontSize:ne(t),fill:B(t),textAnchor:"middle",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null]})})});v("pivot",(t,e)=>{let n=t.size??20,l=Math.max(44,n*2+24);return (0, C.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, C.jsxs)(I,{ctx:e,hitHalfSize:l/2,selectionHalfSize:l/2+10,children:[(0, C.jsx)("polygon",{points:`0,0 ${-n},${n*1.5} ${n},${n*1.5}`,fill:"none",stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),(0, C.jsx)("line",{x1:-n*1.5,y1:n*1.5,x2:n*1.5,y2:n*1.5,stroke:B(t),strokeWidth:Dt(t)+1,strokeLinecap:"round",pointerEvents:"none"}),(0, C.jsx)("circle",{cx:0,cy:0,r:Dt(t)*1.5,fill:B(t),pointerEvents:"none"}),Array.from({length:5},(a,i)=>(0, C.jsx)("line",{x1:-n+i*n*.5,y1:n*1.5,x2:-n+i*n*.5-5,y2:n*1.5+8,stroke:B(t),strokeWidth:1,pointerEvents:"none"},i)),t.label?(0, C.jsx)("text",{x:0,y:n*1.5+20,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});v("block_mass",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),a=Math.max(1,Math.abs(t.x2-t.x1)),i=Math.max(1,Math.abs(t.y2-t.y1));return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${n}, ${l})`,children:[(0, C.jsx)("rect",{x:0,y:0,width:a,height:i,fill:B(t),fillOpacity:.2,stroke:B(t),strokeWidth:Dt(t),rx:2}),t.label?(0, C.jsx)("text",{x:a/2,y:i/2,dominantBaseline:"central",textAnchor:"middle",fontSize:ne(t),fill:B(t),fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null]}),ot(n,l,a,i,e),(0, C.jsx)(D,{el:t,ctx:e})]})});v("system_boundary",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),a=Math.max(1,Math.abs(t.x2-t.x1)),i=Math.max(1,Math.abs(t.y2-t.y1));return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${n}, ${l})`,children:[(0, C.jsx)("rect",{x:0,y:0,width:a,height:i,fill:"none",stroke:B(t),strokeWidth:Dt(t),strokeDasharray:"8 6",rx:15}),t.label?(0, C.jsx)("text",{x:a/2,y:-10,fontSize:ne(t),fill:B(t),textAnchor:"middle",fontStyle:"italic",pointerEvents:"none",children:String(t.label)}):null]}),ot(n,l,a,i,e),(0, C.jsx)(D,{el:t,ctx:e})]})});v("rocket",(t,e)=>{let n=t.x2-t.x1,l=t.y2-t.y1,a=Math.hypot(n,l),i=R(t.x1,t.y1,t.x2,t.y2),o=Math.min(t.x1,t.x2),r=Math.max(t.x1,t.x2),s=Math.max(1,r-o);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, C.jsx)("path",{d:`M 0 ${-s/4} L ${a*.7} ${-s/4} L ${a} 0 L ${a*.7} ${s/4} L 0 ${s/4} Z`,fill:"none",stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),(0, C.jsx)("polygon",{points:`0,${-s/4} ${a*.2},${-s/4} 0,${-s/2}`,fill:B(t),fillOpacity:.8,pointerEvents:"none"}),(0, C.jsx)("polygon",{points:`0,${s/4} ${a*.2},${s/4} 0,${s/2}`,fill:B(t),fillOpacity:.8,pointerEvents:"none"}),(0, C.jsx)("path",{d:`M 0 ${-s/6} Q ${-a*.3} 0 0 ${s/6}`,fill:"#f97316",fillOpacity:.8,pointerEvents:"none"}),(0, C.jsx)("path",{d:`M 0 ${-s/8} Q ${-a*.5} 0 0 ${s/8}`,fill:"#ef4444",fillOpacity:.6,pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:a/2,y:-s/2-10,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, C.jsx)(D,{el:t,ctx:e})]})});v("dashed_path",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, C.jsx)("line",{x1:0,y1:0,x2:n,y2:0,stroke:B(t),strokeWidth:Dt(t),strokeLinecap:"round",strokeDasharray:"8 6",pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:n/2,y:-10,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, C.jsx)(D,{el:t,ctx:e})]})});v("uniform_rod",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Dt(t);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, C.jsx)("rect",{x:0,y:-a/2,width:n,height:a,fill:B(t),rx:a/4,pointerEvents:"none"}),(0, C.jsx)("circle",{cx:n/2,cy:0,r:Math.max(2,a/4),fill:"#fff",pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:n/2,y:-a/2-10,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, C.jsx)(D,{el:t,ctx:e})]})});v("solid_disk",(t,e)=>{let n=t.x2-t.x1,l=t.y2-t.y1,a=Math.hypot(n,l);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, C.jsx)("circle",{cx:0,cy:0,r:a,fill:B(t),fillOpacity:.4,stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:0,y:a+20,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, C.jsx)(D,{el:t,ctx:e})]})});v("hoop_ring",(t,e)=>{let n=t.x2-t.x1,l=t.y2-t.y1,a=Math.hypot(n,l);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, C.jsx)("circle",{cx:0,cy:0,r:a,fill:"none",stroke:B(t),strokeWidth:Math.max(4,Dt(t)*2),pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:0,y:a+20,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, C.jsx)(D,{el:t,ctx:e})]})});v("rolling_body",(t,e)=>{let n=t.x2-t.x1,l=t.y2-t.y1,a=Math.hypot(n,l);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, C.jsx)("circle",{cx:0,cy:0,r:a,fill:B(t),fillOpacity:.1,stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),(0, C.jsx)("line",{x1:-a,y1:0,x2:a,y2:0,stroke:B(t),strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"}),(0, C.jsx)("line",{x1:0,y1:-a,x2:0,y2:a,stroke:B(t),strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"}),(0, C.jsx)("circle",{cx:0,cy:0,r:3,fill:B(t),pointerEvents:"none"}),t.showVelocity?(0, C.jsxs)("g",{pointerEvents:"none",children:[(0, C.jsx)("line",{x1:0,y1:0,x2:a*1.5,y2:0,stroke:"#ef4444",strokeWidth:2}),(0, C.jsx)("polygon",{points:`${a*1.5},0 ${a*1.5-8},-4 ${a*1.5-8},4`,fill:"#ef4444"}),(0, C.jsx)("text",{x:a*1.5+10,y:5,fill:"#ef4444",fontSize:14,fontStyle:"italic",children:"v"})]}):null,t.showOmega?(0, C.jsxs)("g",{transform:`translate(0, ${-a*1.2})`,pointerEvents:"none",children:[(0, C.jsx)("path",{d:`M ${-a*.4} 0 A ${a*.4} ${a*.4} 0 0 1 ${a*.4} 0`,fill:"none",stroke:"#10b981",strokeWidth:2}),(0, C.jsx)("polygon",{points:`${a*.4},0 ${a*.4-4},-6 ${a*.4+4},-6`,fill:"#10b981"}),(0, C.jsx)("text",{x:0,y:-10,fill:"#10b981",fontSize:14,fontStyle:"italic",textAnchor:"middle",children:"\u03C9"})]}):null,t.label?(0, C.jsx)("text",{x:0,y:a+20,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, C.jsx)(D,{el:t,ctx:e})]})});v("inclined_wedge",(t,e)=>{let{x1:n,y1:l,x2:a,y2:i}=t,o=a-n,r=i-l,s=Math.atan2(r,o)*(180/Math.PI),u=Wt(n,l,a,i),f=Math.min(n,a),y=Math.min(l,i),d=u.width,m=u.height;return (0, C.jsxs)("g",{children:[(0, C.jsx)("polygon",{points:`${n},${l} ${n},${i} ${a},${i}`,fill:B(t),fillOpacity:.1,stroke:B(t),strokeWidth:Dt(t),strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:(n+a)/2,y:i-10,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null,Math.abs(a-n)>20&&Math.abs(i-l)>20?(0, C.jsx)("path",{d:`M ${a>n?a-20:a+20} ${i} A 20 20 0 0 ${a>n?0:1} ${a>n?a-20*Math.cos(s*Math.PI/180):a+20*Math.cos(s*Math.PI/180)} ${i-20*Math.sin(Math.abs(s)*Math.PI/180)}`,fill:"none",stroke:B(t),strokeWidth:1,pointerEvents:"none"}):null,(0, C.jsx)(dl,{minX:f,minY:y,width:d,height:m,ctx:e}),(0, C.jsx)(D,{el:t,ctx:e})]})});v("pulley",(t,e)=>{let n=t.x2-t.x1,l=t.y2-t.y1,a=Math.hypot(n,l);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, C.jsx)("path",{d:`M 0 0 L 0 ${-a*1.5}`,fill:"none",stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),(0, C.jsx)("line",{x1:-a*.8,y1:-a*1.5,x2:a*.8,y2:-a*1.5,stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),Array.from({length:5},(i,o)=>(0, C.jsx)("line",{x1:-a*.8+o*a*.4,y1:-a*1.5,x2:-a*.8+o*a*.4+5,y2:-a*1.5-5,stroke:B(t),strokeWidth:1,pointerEvents:"none"},o)),(0, C.jsx)("circle",{cx:0,cy:0,r:a,fill:"#fff",stroke:B(t),strokeWidth:Dt(t),pointerEvents:"none"}),(0, C.jsx)("circle",{cx:0,cy:0,r:a*.8,fill:"none",stroke:B(t),strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, C.jsx)("circle",{cx:0,cy:0,r:3,fill:B(t),pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:0,y:-a*1.5-15,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, C.jsx)(D,{el:t,ctx:e})]})});v("curve_arrow",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=`M 0 0 Q ${n/2} ${-n*.5} ${n} 0`,i=Hl(t.x1,t.y1,t.x2,t.y2,n/4);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, C.jsx)("path",{d:a,fill:"none",stroke:B(t),strokeWidth:Dt(t),strokeLinecap:"round",pointerEvents:"none"}),(0, C.jsx)(ut,{dPath:a,strokeWidth:24,strokeLinecap:"round"}),(0, C.jsx)("polygon",{points:`${n},0 ${n-8},-6 ${n-4},-1`,fill:B(t),transform:`rotate(20 ${n} 0)`,pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:n/2,y:-n*.3,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),e.isSelected&&!e.viewMode&&!e.isGhost?cn(i.x,i.y,i.width,i.height):null,un(t,e)]})});v("spring",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=hh(n,t.coils);return (0, C.jsxs)("g",{children:[(0, C.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, C.jsx)(ut,{dPath:a,strokeWidth:26,strokeLinecap:"round",strokeLinejoin:"round"}),(0, C.jsx)("path",{d:a,fill:"none",stroke:B(t),strokeWidth:Dt(t),strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, C.jsx)("text",{x:n/2,y:-20,fontSize:ne(t),fill:B(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, C.jsx)(D,{el:t,ctx:e})]})});var rt=j(F()),ke=(t,e)=>e?.isSelected?"#2563eb":t.color||"#111827",Ie=(t,e)=>e?.isSelected?2.5:t.strokeWidth||2;v("wire",(t,e)=>(0, rt.jsxs)("g",{opacity:e?.isGhost?.5:1,children:[(0, rt.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:ke(t,e),strokeWidth:Ie(t,e),strokeLinecap:"round",pointerEvents:"none"}),(0, rt.jsx)(D,{el:t,ctx:e,hitWidth:20})]}));var Rl=(t,e,n)=>{let l=O(t.x1,t.y1,t.x2,t.y2),a=R(t.x1,t.y1,t.x2,t.y2),i=t.x2-t.x1,o=t.y2-t.y1,r=(t.x1+t.x2)/2,s=(t.y1+t.y2)/2,u=-o/(l||1),f=i/(l||1);f>0&&(u=-u,f=-f);let y=20;return (0, rt.jsxs)("g",{opacity:n?.isGhost?.5:1,children:[(0, rt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${a})`,children:(0, rt.jsx)("g",{children:e})}),t.label?(0, rt.jsx)("text",{x:r+u*y,y:s+f*y,dominantBaseline:"central",textAnchor:"middle",fill:ke(t,n),fontSize:"16",fontFamily:"serif",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null,t.value?(0, rt.jsx)("text",{x:r-u*y,y:s-f*y,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:"14",fontFamily:"sans-serif",pointerEvents:"none",children:String(t.value)}):null,(0, rt.jsx)(D,{el:t,ctx:n,hitWidth:20})]})};v("resistor",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=n/2-15;return Rl(t,(0, rt.jsx)("path",{d:`M 0 0 L ${l} 0 l 2.5 -8 l 5 16 l 5 -16 l 5 16 l 5 -16 l 5 16 l 2.5 -8 L ${n} 0`,fill:"none",stroke:ke(t,e),strokeWidth:Ie(t,e),strokeLinejoin:"bevel"}),e)});v("capacitor",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=n/2;return Rl(t,(0, rt.jsx)("path",{d:`M 0 0 L ${l-4} 0 M ${l-4} -12 L ${l-4} 12 M ${l+4} -12 L ${l+4} 12 M ${l+4} 0 L ${n} 0`,fill:"none",stroke:ke(t,e),strokeWidth:Ie(t,e)}),e)});v("inductor",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=n/2-15;return Rl(t,(0, rt.jsx)("path",{d:`M 0 0 L ${l} 0 A 5 5 0 0 0 ${l+10} 0 A 5 5 0 0 0 ${l+20} 0 A 5 5 0 0 0 ${l+30} 0 L ${n} 0`,fill:"none",stroke:ke(t,e),strokeWidth:Ie(t,e)}),e)});v("diode",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=n/2;return Rl(t,(0, rt.jsx)("path",{d:`M 0 0 L ${l-8} 0 M ${l-8} -8 L ${l-8} 8 L ${l+8} 0 Z M ${l+8} -8 L ${l+8} 8 M ${l+8} 0 L ${n} 0`,fill:"none",stroke:ke(t,e),strokeWidth:Ie(t,e)}),e)});v("battery",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=n/2;return Rl(t,(0, rt.jsxs)(rt.Fragment,{children:[(0, rt.jsx)("path",{d:`M 0 0 L ${l-4} 0 M ${l-4} -16 L ${l-4} 16 M ${l+4} -8 L ${l+4} 8 M ${l+4} 0 L ${n} 0`,fill:"none",stroke:ke(t,e),strokeWidth:Ie(t,e)}),(0, rt.jsx)("line",{x1:l+4,y1:-8,x2:l+4,y2:8,stroke:ke(t,e),strokeWidth:Ie(t,e)+2}),(0, rt.jsx)("text",{x:l-12,y:-12,fontSize:"12",fill:ke(t,e),textAnchor:"middle",children:"+"})]}),e)});["meter_v","meter_a"].forEach(t=>v(t,(e,n)=>{let l=O(e.x1,e.y1,e.x2,e.y2),a=l/2,i=t==="meter_v"?"V":"A";return Rl(e,(0, rt.jsxs)(rt.Fragment,{children:[(0, rt.jsx)("path",{d:`M 0 0 L ${a-14} 0 M ${a+14} 0 L ${l} 0`,fill:"none",stroke:ke(e,n),strokeWidth:Ie(e,n)}),(0, rt.jsx)("circle",{cx:a,cy:0,r:14,fill:"#f8f9fa",stroke:ke(e,n),strokeWidth:Ie(e,n)}),(0, rt.jsx)("text",{x:a,y:0,textAnchor:"middle",dominantBaseline:"central",fill:ke(e,n),fontSize:"14",fontWeight:"bold",children:i})]}),n)}));v("ground",(t,e)=>(0, rt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:e?.isGhost?.5:1,children:(0, rt.jsx)(I,{ctx:e,hitHalfSize:28,selectionHalfSize:34,children:(0, rt.jsx)("path",{d:"M 0 0 L 0 15 M -12 15 L 12 15 M -8 20 L 8 20 M -4 25 L 4 25",fill:"none",stroke:ke(t,e),strokeWidth:Ie(t,e)})})}));var r0=t=>{let e={};return t.forEach(n=>{if(n.type!=="wire")return;let l=`${n.x1},${n.y1}`,a=`${n.x2},${n.y2}`;e[l]=(e[l]||0)+1,e[a]=(e[a]||0)+1;}),Object.entries(e).filter(([,n])=>n>2).map(([n])=>n.split(",").map(Number))};var z=j(F()),je=t=>t.color||"#0f172a",Nn=t=>t.strokeWidth||2,fn=t=>t.fontSize||18,Bi=t=>{let e=Math.sin(t)*1e4;return e-Math.floor(e)},mh=t=>{if(t.lineStyle==="dashed")return "6 6";if(t.lineStyle==="dotted")return "2 4"};v("pv_axes",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),a=Math.max(1,Math.abs(t.x2-t.x1)),i=Math.max(1,Math.abs(t.y2-t.y1)),o=String(t.yLabel??"P"),r=String(t.xLabel??"V"),s=je(t),u=Nn(t),f=fn(t);return (0, z.jsxs)("g",{children:[(0, z.jsxs)("g",{transform:`translate(${n}, ${l})`,children:[(0, z.jsx)("line",{x1:0,y1:0,x2:0,y2:i,stroke:s,strokeWidth:u}),(0, z.jsx)("polygon",{points:"0,0 -5,10 5,10",fill:s}),(0, z.jsx)("text",{x:-15,y:10,fontSize:f,fill:s,fontWeight:"bold",children:o}),(0, z.jsx)("line",{x1:0,y1:i,x2:a,y2:i,stroke:s,strokeWidth:u}),(0, z.jsx)("polygon",{points:`${a},${i} ${a-10},${i-5} ${a-10},${i+5}`,fill:s}),(0, z.jsx)("text",{x:a-10,y:i+20,fontSize:f,fill:s,fontWeight:"bold",children:r}),(0, z.jsx)("text",{x:-10,y:i+15,fontSize:12,fill:s,children:"0"}),t.label?(0, z.jsx)("text",{x:a/2,y:-10,fontSize:f,fill:s,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, z.jsx)(dl,{minX:n,minY:l,width:a,height:i,ctx:e}),(0, z.jsx)(D,{el:t,ctx:e})]})});v("piston_cylinder",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),a=Math.max(1,Math.abs(t.x2-t.x1)),i=Math.max(1,Math.abs(t.y2-t.y1)),o=t.compression??.5,r=i*o,s=je(t),u=Nn(t),f=[],y=40;for(let d=0;d<y;d++){let m=Bi(Number(t.id)+d)*(a-10)+5,_=r+10+Bi(Number(t.id)+d*100)*(i-r-15);f.push((0, z.jsx)("circle",{cx:m,cy:_,r:"2",fill:"#94a3b8"},d));}return (0, z.jsxs)("g",{children:[(0, z.jsxs)("g",{transform:`translate(${n}, ${l})`,children:[(0, z.jsx)("polyline",{points:`0,0 0,${i} ${a},${i} ${a},0`,fill:"#f8fafc",stroke:s,strokeWidth:u,strokeLinecap:"square",strokeLinejoin:"miter",pointerEvents:"none"}),f,(0, z.jsxs)("g",{transform:`translate(0, ${r})`,children:[(0, z.jsx)("rect",{x:"2",y:"0",width:a-4,height:"12",fill:"#64748b",rx:"2"}),(0, z.jsx)("line",{x1:a/2,y1:"0",x2:a/2,y2:"-40",stroke:"#64748b",strokeWidth:"4"}),(0, z.jsx)("line",{x1:a/2-15,y1:"-40",x2:a/2+15,y2:"-40",stroke:"#64748b",strokeWidth:"6",strokeLinecap:"round"}),(0, z.jsx)("line",{x1:a/2,y1:"-50",x2:a/2,y2:"-42",stroke:"#ef4444",strokeWidth:"2"}),(0, z.jsx)("polygon",{points:`${a/2},-42 ${a/2-4},-46 ${a/2+4},-46`,fill:"#ef4444"})]}),t.showHeat?(0, z.jsxs)("g",{transform:`translate(${a/2}, ${i+15})`,children:[(0, z.jsx)("path",{d:"M-10,0 Q-15,-10 -5,-20 Q0,-10 10,-15 Q5,-5 10,0 Z",fill:"#ef4444",opacity:"0.8"}),(0, z.jsx)("path",{d:"M-5,0 Q-8,-6 0,-12 Q2,-5 5,0 Z",fill:"#f59e0b"}),(0, z.jsx)("text",{x:"25",y:"-5",fontSize:"14",fill:"#ef4444",fontWeight:"bold",children:"Q"})]}):null,t.label?(0, z.jsx)("text",{x:a/2,y:i+(t.showHeat?35:20),textAnchor:"middle",fill:s,fontSize:fn(t),pointerEvents:"none",children:String(t.label)}):null]}),ot(n,l,a,i,e),(0, z.jsx)(D,{el:t,ctx:e})]})});v("heat_engine",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),a=Math.max(1,Math.abs(t.x2-t.x1)),i=Math.max(1,Math.abs(t.y2-t.y1)),o=t.engineType!=="refrigerator",r=Math.min(a*.3,i*.2),s=je(t),u=Nn(t),f=fn(t);return (0, z.jsxs)("g",{children:[(0, z.jsxs)("g",{transform:`translate(${n}, ${l})`,children:[(0, z.jsx)("rect",{x:0,y:0,width:a,height:i*.2,fill:"#ef4444",rx:"4",pointerEvents:"none"}),(0, z.jsx)("text",{x:a/2,y:i*.1,fontSize:f,fill:"#fff",textAnchor:"middle",dominantBaseline:"central",children:"T_H"}),(0, z.jsx)("rect",{x:0,y:i*.8,width:a,height:i*.2,fill:"#3b82f6",rx:"4"}),(0, z.jsx)("text",{x:a/2,y:i*.9,fontSize:f,fill:"#fff",textAnchor:"middle",dominantBaseline:"central",children:"T_C"}),(0, z.jsx)("circle",{cx:a/2,cy:i/2,r,fill:"#fff",stroke:s,strokeWidth:u}),(0, z.jsx)("text",{x:a/2,y:i/2,fontSize:f*1.2,fill:s,textAnchor:"middle",dominantBaseline:"central",fontWeight:"bold",children:o?"E":"R"}),(0, z.jsxs)("g",{strokeWidth:2,stroke:s,children:[(0, z.jsx)("line",{x1:a/2,y1:i*.2,x2:a/2,y2:i*.5-r-5}),(0, z.jsx)("polygon",{points:o?`${a/2},${i*.5-r-2} ${a/2-5},${i*.5-r-10} ${a/2+5},${i*.5-r-10}`:`${a/2},${i*.2+2} ${a/2-5},${i*.2+10} ${a/2+5},${i*.2+10}`,fill:s}),(0, z.jsx)("text",{x:a/2+10,y:i*.35,fontSize:14,fill:s,dominantBaseline:"central",children:"Q_H"}),(0, z.jsx)("line",{x1:a/2,y1:i*.5+r+5,x2:a/2,y2:i*.8}),(0, z.jsx)("polygon",{points:o?`${a/2},${i*.8-2} ${a/2-5},${i*.8-10} ${a/2+5},${i*.8-10}`:`${a/2},${i*.5+r+2} ${a/2-5},${i*.5+r+10} ${a/2+5},${i*.5+r+10}`,fill:s}),(0, z.jsx)("text",{x:a/2+10,y:i*.65,fontSize:14,fill:s,dominantBaseline:"central",children:"Q_C"}),(0, z.jsx)("line",{x1:o?a/2+r+5:a,y1:i/2,x2:o?a:a/2+r+5,y2:i/2}),(0, z.jsx)("polygon",{points:o?`${a},${i/2} ${a-8},${i/2-5} ${a-8},${i/2+5}`:`${a/2+r+5},${i/2} ${a/2+r+13},${i/2-5} ${a/2+r+13},${i/2+5}`,fill:s}),(0, z.jsx)("text",{x:a*.8,y:i/2-15,fontSize:14,fill:s,textAnchor:"middle",children:"W"})]}),t.label?(0, z.jsx)("text",{x:a/2,y:i+20,fontSize:f,fill:s,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),ot(n,l,a,i,e),(0, z.jsx)(D,{el:t,ctx:e})]})});v("conduction_rod",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=`grad-rod-${t.id}`,i=je(t),o=Nn(t),r=fn(t);return (0, z.jsxs)("g",{children:[(0, z.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, z.jsx)("defs",{children:(0, z.jsxs)("linearGradient",{id:a,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0, z.jsx)("stop",{offset:"0%",stopColor:"#ef4444"}),(0, z.jsx)("stop",{offset:"100%",stopColor:"#3b82f6"})]})}),(0, z.jsx)("rect",{x:0,y:-20,width:n,height:40,fill:`url(#${a})`,stroke:i,strokeWidth:o,rx:"4",pointerEvents:"none"}),(0, z.jsxs)("g",{stroke:"#fff",strokeWidth:"2",opacity:.6,children:[(0, z.jsx)("line",{x1:n*.2,y1:0,x2:n*.4,y2:0}),(0, z.jsx)("polygon",{points:`${n*.4},0 ${n*.4-6},-4 ${n*.4-6},4`,fill:"#fff"}),(0, z.jsx)("line",{x1:n*.6,y1:0,x2:n*.8,y2:0}),(0, z.jsx)("polygon",{points:`${n*.8},0 ${n*.8-6},-4 ${n*.8-6},4`,fill:"#fff"})]}),(0, z.jsx)("text",{x:0,y:-30,fontSize:r,fill:"#ef4444",textAnchor:"middle",fontWeight:"bold",children:"T_H"}),(0, z.jsx)("text",{x:n,y:-30,fontSize:r,fill:"#3b82f6",textAnchor:"middle",fontWeight:"bold",children:"T_C"}),t.label?(0, z.jsx)("text",{x:n/2,y:35,fontSize:r,fill:i,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, z.jsx)(D,{el:t,ctx:e,padY:48})]})});v("thermo_process",(t,e)=>{let n=t.processType||"isotherm",l=t.x2-t.x1,a=t.y2-t.y1,i=n==="isobaric"?`M 0 0 L ${l} 0`:n==="isochoric"?`M 0 0 L 0 ${a}`:n==="adiabatic"?`M 0 0 Q ${l*.1} ${a*.9} ${l} ${a}`:`M 0 0 Q ${l*.2} ${a*.8} ${l} ${a}`,o=l/2,r=a/2;if(n==="isotherm"||n==="adiabatic"){let m=l*(n==="adiabatic"?.1:.2),_=a*(n==="adiabatic"?.9:.8);o=.25*0+.5*m+.25*l,r=.25*0+.5*_+.25*a;}let s=Math.atan2(a,l)*180/Math.PI,u=mh(t),f=je(t),y=Nn(t),d=fn(t);return (0, z.jsxs)("g",{children:[(0, z.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, z.jsx)(ut,{dPath:i,strokeWidth:22,strokeLinejoin:"round",strokeLinecap:"round"}),(0, z.jsx)("path",{d:i,fill:"none",stroke:f,strokeWidth:y,strokeDasharray:u,pointerEvents:"none"}),(0, z.jsx)("g",{transform:`translate(${o}, ${r}) rotate(${s})`,children:(0, z.jsx)("polygon",{points:"0,0 -8,-5 -8,5",fill:f,pointerEvents:"none"})}),t.label?(0, z.jsx)("text",{x:o+15,y:r-10,fontSize:d,fill:f,pointerEvents:"none",children:String(t.label)}):null]}),(0, z.jsx)(D,{el:t,ctx:e})]})});v("carnot_cycle",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),a=Math.max(1,Math.abs(t.x2-t.x1)),i=Math.max(1,Math.abs(t.y2-t.y1)),o={x:a*.1,y:i*.1},r={x:a*.6,y:i*.3},s={x:a*.9,y:i*.9},u={x:a*.4,y:i*.7},f=`M ${o.x} ${o.y} Q ${a*.3} ${i*.15} ${r.x} ${r.y}`,y=`Q ${a*.7} ${i*.6} ${s.x} ${s.y}`,d=`Q ${a*.6} ${i*.85} ${u.x} ${u.y}`,m=`Q ${a*.2} ${i*.4} ${o.x} ${o.y}`,_=je(t),E=Nn(t),T=fn(t);return (0, z.jsxs)("g",{children:[(0, z.jsxs)("g",{transform:`translate(${n}, ${l})`,children:[(0, z.jsx)("path",{d:`${f} ${y} ${d} ${m} Z`,fill:_,fillOpacity:.1,pointerEvents:"none"}),(0, z.jsx)("path",{d:f,fill:"none",stroke:"#ef4444",strokeWidth:E,pointerEvents:"none"}),(0, z.jsx)("path",{d:`M ${r.x} ${r.y} ${y}`,fill:"none",stroke:"#64748b",strokeWidth:E,strokeDasharray:"4 4",pointerEvents:"none"}),(0, z.jsx)("path",{d:`M ${s.x} ${s.y} ${d}`,fill:"none",stroke:"#3b82f6",strokeWidth:E,pointerEvents:"none"}),(0, z.jsx)("path",{d:`M ${u.x} ${u.y} ${m}`,fill:"none",stroke:"#64748b",strokeWidth:E,strokeDasharray:"4 4",pointerEvents:"none"}),(0, z.jsx)("circle",{cx:o.x,cy:o.y,r:"3",fill:"#1e293b",pointerEvents:"none"}),(0, z.jsx)("circle",{cx:r.x,cy:r.y,r:"3",fill:"#1e293b",pointerEvents:"none"}),(0, z.jsx)("circle",{cx:s.x,cy:s.y,r:"3",fill:"#1e293b",pointerEvents:"none"}),(0, z.jsx)("circle",{cx:u.x,cy:u.y,r:"3",fill:"#1e293b",pointerEvents:"none"}),(0, z.jsx)("text",{x:a*.4,y:i*.15,fontSize:"14",fill:"#ef4444",fontWeight:"bold",children:"T_H"}),(0, z.jsx)("text",{x:a*.6,y:i*.95,fontSize:"14",fill:"#3b82f6",fontWeight:"bold",children:"T_C"}),(0, z.jsx)("text",{x:a/2,y:i/2+5,fontSize:16,fill:_,textAnchor:"middle",fontWeight:"bold",children:"W"}),t.label?(0, z.jsx)("text",{x:a/2,y:-15,fontSize:T,fill:_,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),ot(n,l,a,i,e),(0, z.jsx)(D,{el:t,ctx:e})]})});v("maxwell_boltzmann",(t,e)=>{let n=Math.min(t.x1,t.x2),l=Math.min(t.y1,t.y2),a=Math.max(1,Math.abs(t.x2-t.x1)),i=Math.max(1,Math.abs(t.y2-t.y1)),o=t.t1||300,r=t.t2||600,s=Nn(t),u=fn(t),f=je(t),y=(d,m,_,E)=>{let T=`M 0 ${i}`,x=1/d,h=Math.sqrt(2/x),p=h*3.5;for(let M=0;M<=a;M+=2){let k=M/a*p,Y=k*k*Math.exp(-x*k*k),N=h*h*Math.exp(-1),L=i-Y/N*m;T+=` L ${M} ${L}`;}return (0, z.jsx)("path",{d:T,fill:"none",stroke:_,strokeWidth:s,strokeDasharray:E,strokeLinejoin:"round",pointerEvents:"none"})};return (0, z.jsxs)("g",{children:[(0, z.jsxs)("g",{transform:`translate(${n}, ${l})`,children:[(0, z.jsx)("line",{x1:0,y1:0,x2:0,y2:i,stroke:"#1e293b",strokeWidth:"2"}),(0, z.jsx)("line",{x1:0,y1:i,x2:a,y2:i,stroke:"#1e293b",strokeWidth:"2"}),(0, z.jsx)("text",{x:-25,y:i/2,fontSize:14,fill:"#1e293b",transform:`rotate(-90, -25, ${i/2})`,textAnchor:"middle",children:"N(v)"}),(0, z.jsx)("text",{x:a/2,y:i+20,fontSize:14,fill:"#1e293b",textAnchor:"middle",children:"Speed (v)"}),y(o,i*.8,"#ef4444"),y(r,i*.5,"#3b82f6","4 4"),(0, z.jsx)("rect",{x:a-70,y:10,width:10,height:10,fill:"#ef4444"}),(0, z.jsxs)("text",{x:a-55,y:20,fontSize:12,fill:"#1e293b",children:["T\u2081 = ",o,"K"]}),(0, z.jsx)("rect",{x:a-70,y:30,width:10,height:10,fill:"#3b82f6"}),(0, z.jsxs)("text",{x:a-55,y:40,fontSize:12,fill:"#1e293b",children:["T\u2082 = ",r,"K"]}),t.label?(0, z.jsx)("text",{x:a/2,y:-15,fontSize:u,fill:f,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, z.jsx)(dl,{minX:n,minY:l,width:a,height:i,ctx:e}),(0, z.jsx)(D,{el:t,ctx:e})]})});v("diatomic_gas",(t,e)=>{let n=je(t),l=fn(t),a=t.showRotations!==false;return (0, z.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, z.jsxs)(I,{ctx:e,hitHalfSize:38,selectionHalfSize:46,children:[(0, z.jsx)("circle",{cx:-15,cy:0,r:8,fill:n,stroke:"#fff",strokeWidth:2,pointerEvents:"none"}),(0, z.jsx)("circle",{cx:15,cy:0,r:8,fill:n,stroke:"#fff",strokeWidth:2,pointerEvents:"none"}),(0, z.jsx)("line",{x1:-10,y1:0,x2:10,y2:0,stroke:n,strokeWidth:4,pointerEvents:"none"}),a?(0, z.jsxs)("g",{stroke:"#94a3b8",strokeWidth:1.5,fill:"none",pointerEvents:"none",children:[(0, z.jsx)("path",{d:"M -10 -15 A 15 15 0 0 1 10 -15",strokeDasharray:"2 2"}),(0, z.jsx)("polygon",{points:"10,-15 6,-18 6,-12",fill:"#94a3b8"}),(0, z.jsx)("path",{d:"M -25 0 A 25 10 0 0 1 0 10 A 25 10 0 0 1 25 0",strokeDasharray:"2 2"})]}):null,t.label?(0, z.jsx)("text",{x:0,y:25,fontSize:l,fill:n,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});v("random_walk",(t,e)=>{let n=t.steps||5,l=Math.hypot(t.x2-t.x1,t.y2-t.y1),a="M 0 0",i=0,o=0,r=[(0, z.jsx)("circle",{cx:"0",cy:"0",r:"4",fill:"#22c55e",pointerEvents:"none"},"start")];for(let s=1;s<=n;s++){let u=Bi(Number(t.id)+s*7)*Math.PI*2,f=l/n*(.5+Bi(Number(t.id)+s*13));i+=Math.cos(u)*f,o+=Math.sin(u)*f,a+=` L ${i} ${o}`,r.push((0, z.jsx)("circle",{cx:i,cy:o,r:s===n?4:2,fill:s===n?"#ef4444":je(t),pointerEvents:"none"},s));}return (0, z.jsxs)("g",{children:[(0, z.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, z.jsx)(ut,{dPath:a,strokeWidth:20,strokeLinejoin:"round"}),(0, z.jsx)("path",{d:a,fill:"none",stroke:je(t),strokeWidth:Nn(t),strokeLinejoin:"round",pointerEvents:"none"}),r,t.label?(0, z.jsx)("text",{x:l/2,y:l/2,fontSize:fn(t),fill:je(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, z.jsx)(D,{el:t,ctx:e,padX:Math.max(40,l),padY:Math.max(40,l)})]})});var A=j(F()),Pt=(t,e)=>e?"#0d9488":t.color||"#111827",Te=(t,e)=>{let n=t.strokeWidth||2;return e?Math.max(3,n):n},wr=t=>t.fontSize||16,wa=(t,e,n)=>Array.from({length:t}).map((l,a)=>{let i=(a*360/t+n)*(Math.PI/180);return `${e*Math.cos(i)},${e*Math.sin(i)}`}).join(" ");v("atom",(t,e)=>(0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsxs)(I,{ctx:e,hitHalfSize:22,selectionHalfSize:30,children:[(0, A.jsx)("rect",{x:"-20",y:"-15",width:"40",height:"30",fill:"white",rx:"6"}),(0, A.jsx)("text",{x:"0",y:"0",dominantBaseline:"central",textAnchor:"middle",fill:Pt(t,e.isSelected),fontSize:Math.max(18,wr(t)),fontFamily:"sans-serif",fontWeight:"bold",children:String(t.label||"C")})]})}));v("charge_plus",(t,e)=>{let n=Pt(t,e.isSelected),l=Te(t,e.isSelected),a=t.strokeWidth||2,i=Math.max(12,a*4),o=Math.max(28,i+(t.label?26:8));return (0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsxs)(I,{ctx:e,hitHalfSize:o,selectionHalfSize:o+10,children:[(0, A.jsx)("circle",{cx:"0",cy:"0",r:i,fill:"white",stroke:n,strokeWidth:l}),(0, A.jsx)("line",{x1:-i/2,y1:"0",x2:i/2,y2:"0",stroke:n,strokeWidth:l}),(0, A.jsx)("line",{x1:"0",y1:-i/2,x2:"0",y2:i/2,stroke:n,strokeWidth:l}),t.label?(0, A.jsx)("text",{x:"0",y:i+18,fontSize:wr(t),fill:n,fontFamily:"sans-serif",fontWeight:"bold",textAnchor:"middle",children:String(t.label)}):null]})})});v("charge_minus",(t,e)=>{let n=Pt(t,e.isSelected),l=Te(t,e.isSelected),a=t.strokeWidth||2,i=Math.max(12,a*4),o=Math.max(28,i+(t.label?26:8));return (0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsxs)(I,{ctx:e,hitHalfSize:o,selectionHalfSize:o+10,children:[(0, A.jsx)("circle",{cx:"0",cy:"0",r:i,fill:"white",stroke:n,strokeWidth:l}),(0, A.jsx)("line",{x1:-i/2,y1:"0",x2:i/2,y2:"0",stroke:n,strokeWidth:l}),t.label?(0, A.jsx)("text",{x:"0",y:i+18,fontSize:wr(t),fill:n,fontFamily:"sans-serif",fontWeight:"bold",textAnchor:"middle",children:String(t.label)}):null]})})});v("radical",(t,e)=>(0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsx)(I,{ctx:e,hitHalfSize:14,selectionHalfSize:22,children:(0, A.jsx)("circle",{cx:"0",cy:"0",r:"3.5",fill:Pt(t,e.isSelected)})})}));v("lone_pair",(t,e)=>(0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsxs)(I,{ctx:e,hitHalfSize:16,selectionHalfSize:24,children:[(0, A.jsx)("circle",{cx:"-4",cy:"0",r:"2.5",fill:Pt(t,e.isSelected)}),(0, A.jsx)("circle",{cx:"4",cy:"0",r:"2.5",fill:Pt(t,e.isSelected)})]})}));v("benzene",(t,e)=>{let l=Pt(t,e.isSelected),a=Te(t,e.isSelected);return (0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsxs)(I,{ctx:e,hitHalfSize:36,selectionHalfSize:44,children:[(0, A.jsx)("polygon",{points:wa(6,30,-30),fill:"white",stroke:l,strokeWidth:a,strokeLinejoin:"round"}),(0, A.jsx)("circle",{cx:"0",cy:"0",r:20,fill:"none",stroke:l,strokeWidth:a})]})})});v("cyclohexane",(t,e)=>(0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsx)(I,{ctx:e,hitHalfSize:36,selectionHalfSize:44,children:(0, A.jsx)("polygon",{points:wa(6,30,-30),fill:"white",stroke:Pt(t,e.isSelected),strokeWidth:Te(t,e.isSelected),strokeLinejoin:"round"})})}));v("cyclopentane",(t,e)=>(0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsx)(I,{ctx:e,hitHalfSize:36,selectionHalfSize:44,children:(0, A.jsx)("polygon",{points:wa(5,30,-90),fill:"white",stroke:Pt(t,e.isSelected),strokeWidth:Te(t,e.isSelected),strokeLinejoin:"round"})})}));v("cyclobutane",(t,e)=>(0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsx)(I,{ctx:e,hitHalfSize:36,selectionHalfSize:44,children:(0, A.jsx)("polygon",{points:wa(4,30,-45),fill:"white",stroke:Pt(t,e.isSelected),strokeWidth:Te(t,e.isSelected),strokeLinejoin:"round"})})}));v("cyclopropane",(t,e)=>(0, A.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, A.jsx)(I,{ctx:e,hitHalfSize:36,selectionHalfSize:44,children:(0, A.jsx)("polygon",{points:wa(3,30,-90),fill:"white",stroke:Pt(t,e.isSelected),strokeWidth:Te(t,e.isSelected),strokeLinejoin:"round"})})}));var Na=(t,e,n)=>{let l=O(t.x1,t.y1,t.x2,t.y2),a=R(t.x1,t.y1,t.x2,t.y2),i=Pt(t,n),o=Te(t,n);return (0, A.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${a})`,children:[e==="single"&&(0, A.jsx)("line",{x1:"0",y1:"0",x2:l,y2:"0",stroke:i,strokeWidth:o,strokeLinecap:"round"}),e==="double"&&(0, A.jsxs)(A.Fragment,{children:[(0, A.jsx)("line",{x1:"0",y1:"-3.5",x2:l,y2:"-3.5",stroke:i,strokeWidth:o,strokeLinecap:"round"}),(0, A.jsx)("line",{x1:"0",y1:"3.5",x2:l,y2:"3.5",stroke:i,strokeWidth:o,strokeLinecap:"round"})]}),e==="triple"&&(0, A.jsxs)(A.Fragment,{children:[(0, A.jsx)("line",{x1:"0",y1:"-6",x2:l,y2:"-6",stroke:i,strokeWidth:o,strokeLinecap:"round"}),(0, A.jsx)("line",{x1:"0",y1:"0",x2:l,y2:"0",stroke:i,strokeWidth:o,strokeLinecap:"round"}),(0, A.jsx)("line",{x1:"0",y1:"6",x2:l,y2:"6",stroke:i,strokeWidth:o,strokeLinecap:"round"})]}),e==="wedge"&&(0, A.jsx)("polygon",{points:`0,0 ${l},-5 ${l},5`,fill:i}),e==="dash"&&(0, A.jsx)("line",{x1:"0",y1:"0",x2:l,y2:"0",stroke:i,strokeWidth:o+1,strokeDasharray:"5 5",strokeLinecap:"square"})]})};v("single_bond",(t,e)=>(0, A.jsxs)("g",{children:[Na(t,"single",e.isSelected),(0, A.jsx)(D,{el:t,ctx:e})]}));v("double_bond",(t,e)=>(0, A.jsxs)("g",{children:[Na(t,"double",e.isSelected),(0, A.jsx)(D,{el:t,ctx:e})]}));v("triple_bond",(t,e)=>(0, A.jsxs)("g",{children:[Na(t,"triple",e.isSelected),(0, A.jsx)(D,{el:t,ctx:e})]}));v("wedge_bond",(t,e)=>(0, A.jsxs)("g",{children:[Na(t,"wedge",e.isSelected),(0, A.jsx)(D,{el:t,ctx:e})]}));v("dash_bond",(t,e)=>(0, A.jsxs)("g",{children:[Na(t,"dash",e.isSelected),(0, A.jsx)(D,{el:t,ctx:e})]}));var s0=t=>({x:(t.x1+t.x2)/2,y:(t.y1+t.y2)/2});v("reaction_arrow",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Pt(t,e.isSelected),i=Te(t,e.isSelected),o=s0(t);return (0, A.jsxs)("g",{children:[(0, A.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, A.jsx)("line",{x1:"0",y1:"0",x2:n,y2:"0",stroke:a,strokeWidth:i}),(0, A.jsx)("polygon",{points:`${n},0 ${n-12},-6 ${n-12},6`,fill:a})]}),(0, A.jsx)(D,{el:t,ctx:e}),t.label?(0, A.jsx)("text",{x:o.x,y:o.y-18,textAnchor:"middle",fill:"#0f766e",fontSize:"14",fontFamily:"sans-serif",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null,t.value?(0, A.jsx)("text",{x:o.x,y:o.y+18,textAnchor:"middle",fill:"#4b5563",fontSize:"13",fontFamily:"sans-serif",pointerEvents:"none",children:String(t.value)}):null]})});v("equilibrium_arrow",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Pt(t,e.isSelected),i=Te(t,e.isSelected),o=s0(t);return (0, A.jsxs)("g",{children:[(0, A.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, A.jsx)("line",{x1:"0",y1:"-4",x2:n,y2:"-4",stroke:a,strokeWidth:i}),(0, A.jsx)("polygon",{points:`${n},-4 ${n-10},-10 ${n-10},-4`,fill:a}),(0, A.jsx)("line",{x1:"0",y1:"4",x2:n,y2:"4",stroke:a,strokeWidth:i}),(0, A.jsx)("polygon",{points:"0,4 10,4 10,10",fill:a})]}),(0, A.jsx)(D,{el:t,ctx:e}),t.label?(0, A.jsx)("text",{x:o.x,y:o.y-18,textAnchor:"middle",fill:"#0f766e",fontSize:"14",fontFamily:"sans-serif",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null,t.value?(0, A.jsx)("text",{x:o.x,y:o.y+18,textAnchor:"middle",fill:"#4b5563",fontSize:"13",fontFamily:"sans-serif",pointerEvents:"none",children:String(t.value)}):null]})});v("resonance_arrow",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=Pt(t,e.isSelected),i=Te(t,e.isSelected);return (0, A.jsxs)("g",{children:[(0, A.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, A.jsx)("line",{x1:"0",y1:"0",x2:n,y2:"0",stroke:a,strokeWidth:i}),(0, A.jsx)("polygon",{points:"0,0 12,-6 12,6",fill:a}),(0, A.jsx)("polygon",{points:`${n},0 ${n-12},-6 ${n-12},6`,fill:a})]}),(0, A.jsx)(D,{el:t,ctx:e})]})});v("curved_arrow",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=n/3,i=Math.atan2(a,n/2)*(180/Math.PI),o=Pt(t,e.isSelected),r=Te(t,e.isSelected),s=`M 0 0 Q ${n/2} ${-a} ${n} 0`,u=Hl(t.x1,t.y1,t.x2,t.y2,a/2);return (0, A.jsxs)("g",{children:[(0, A.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, A.jsx)("path",{d:s,fill:"none",stroke:o,strokeWidth:r}),(0, A.jsx)(ut,{dPath:s,strokeWidth:24,strokeLinecap:"round"}),(0, A.jsx)("g",{transform:`translate(${n}, 0) rotate(${i})`,children:(0, A.jsx)("polygon",{points:"0,0 -12,-6 -12,6",fill:o})})]}),e.isSelected&&!e.viewMode&&!e.isGhost?cn(u.x,u.y,u.width,u.height):null,un(t,e)]})});var H=j(F()),yl=(t,e)=>e?"#2563eb":t.color||"#0f172a",On=(t,e)=>e?2.5:t.strokeWidth||2,c0=(t,e,n)=>{let l=O(t.x1,t.y1,t.x2,t.y2),a=R(t.x1,t.y1,t.x2,t.y2),i=t.x2-t.x1,o=t.y2-t.y1,r=(t.x1+t.x2)/2,s=(t.y1+t.y2)/2,u=-o/(l||1),f=i/(l||1);f>0&&(u=-u,f=-f);let y=18,d=yl(t,n);return (0, H.jsxs)("g",{children:[(0, H.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${a})`,children:e}),t.label&&(0, H.jsx)("text",{x:r+u*y,y:s+f*y,dominantBaseline:"central",textAnchor:"middle",fill:d,fontSize:14,fontFamily:"sans-serif",children:String(t.label)})]})};v("charge_pos",(t,e)=>{let n=e.isSelected?"#2563eb":"#ef4444";return (0, H.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:e?.isGhost?.5:1,children:(0, H.jsxs)(I,{ctx:e,hitHalfSize:22,selectionHalfSize:28,children:[(0, H.jsx)("circle",{cx:"0",cy:"0",r:"10",fill:"#fecaca",stroke:n,strokeWidth:On(t,e.isSelected)}),(0, H.jsx)("line",{x1:"0",y1:"-4",x2:"0",y2:"4",stroke:n,strokeWidth:2}),(0, H.jsx)("line",{x1:"-4",y1:"0",x2:"4",y2:"0",stroke:n,strokeWidth:2}),t.label?(0, H.jsx)("text",{x:0,y:-16,textAnchor:"middle",fill:n,fontSize:t.fontSize||14,children:String(t.label)}):null]})})});v("charge_neg",(t,e)=>{let n=e.isSelected?"#2563eb":"#3b82f6";return (0, H.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:e?.isGhost?.5:1,children:(0, H.jsxs)(I,{ctx:e,hitHalfSize:22,selectionHalfSize:28,children:[(0, H.jsx)("circle",{cx:"0",cy:"0",r:"10",fill:"#bfdbfe",stroke:n,strokeWidth:On(t,e.isSelected)}),(0, H.jsx)("line",{x1:"-4",y1:"0",x2:"4",y2:"0",stroke:n,strokeWidth:2}),t.label?(0, H.jsx)("text",{x:0,y:-16,textAnchor:"middle",fill:n,fontSize:t.fontSize||14,children:String(t.label)}):null]})})});v("dipole",(t,e)=>{let n=On(t,e.isSelected);return (0, H.jsxs)("g",{opacity:e?.isGhost?.5:1,children:[(0, H.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"#64748b",strokeWidth:n,strokeDasharray:"4 4"}),(0, H.jsx)("circle",{cx:t.x1,cy:t.y1,r:"8",fill:"#fecaca",stroke:e.isSelected?"#2563eb":"#ef4444",strokeWidth:n}),(0, H.jsx)("circle",{cx:t.x2,cy:t.y2,r:"8",fill:"#bfdbfe",stroke:e.isSelected?"#2563eb":"#3b82f6",strokeWidth:n}),t.label?(0, H.jsx)("text",{x:(t.x1+t.x2)/2,y:t.y1-16,textAnchor:"middle",fill:"#475569",fontSize:14,children:String(t.label)}):null,(0, H.jsx)(D,{el:t,ctx:e})]})});var u0=(t,e)=>{let n=Math.max(2,Math.floor(t/25)),l=[];for(let a=0;a<=n;a++){let i=a/n*t;l.push((0, H.jsx)("g",{transform:`translate(${i}, 0)`,children:e?(0, H.jsx)(H.Fragment,{children:(0, H.jsx)("path",{d:"M-4 0 h8 M0 -4 v8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})}):(0, H.jsx)("path",{d:"M-4 0 h8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})},a));}return l};v("charged_plate_pos",(t,e)=>{let n=e.isSelected?"#2563eb":"#ef4444",l=O(t.x1,t.y1,t.x2,t.y2),a=R(t.x1,t.y1,t.x2,t.y2),i=Math.max(12,t.strokeWidth*4||8);return (0, H.jsxs)("g",{opacity:e?.isGhost?.5:1,children:[(0, H.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${a})`,children:[(0, H.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:n,strokeWidth:i,strokeLinecap:"round"}),u0(l,true)]}),(0, H.jsx)(D,{el:t,ctx:e})]})});v("charged_plate_neg",(t,e)=>{let n=e.isSelected?"#2563eb":"#3b82f6",l=O(t.x1,t.y1,t.x2,t.y2),a=R(t.x1,t.y1,t.x2,t.y2),i=Math.max(12,t.strokeWidth*4||8);return (0, H.jsxs)("g",{opacity:e?.isGhost?.5:1,children:[(0, H.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${a})`,children:[(0, H.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:n,strokeWidth:i,strokeLinecap:"round"}),u0(l,false)]}),(0, H.jsx)(D,{el:t,ctx:e})]})});v("gaussian_sphere",(t,e)=>{let n=Math.max(10,O(t.x1,t.y1,t.x2,t.y2)),l=e.isSelected?"#2563eb":"#10b981";return (0, H.jsxs)("g",{opacity:e?.isGhost?.5:1,children:[(0, H.jsx)("circle",{cx:t.x1,cy:t.y1,r:n,fill:"#d1fae5",fillOpacity:.35,stroke:l,strokeWidth:On(t,e.isSelected),strokeDasharray:"5 5"}),t.label?(0, H.jsx)("text",{x:t.x1,y:t.y1-n-12,textAnchor:"middle",fill:l,fontSize:13,children:String(t.label)}):null,(0, H.jsx)(D,{el:t,ctx:e})]})});v("gaussian_cylinder",(t,e)=>{let n=O(t.x1,t.y1,t.x2,t.y2),l=R(t.x1,t.y1,t.x2,t.y2),a=t.curveHeight??40,i=15,o=e.isSelected?"#2563eb":"#10b981",r=On(t,e.isSelected),s="6 6";return (0, H.jsxs)("g",{opacity:e?.isGhost?.5:1,children:[(0, H.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, H.jsx)("line",{x1:0,y1:-a,x2:n,y2:-a,stroke:o,strokeWidth:r,strokeDasharray:s}),(0, H.jsx)("line",{x1:0,y1:a,x2:n,y2:a,stroke:o,strokeWidth:r,strokeDasharray:s}),(0, H.jsx)("ellipse",{cx:0,cy:0,rx:i,ry:a,fill:o,fillOpacity:.05,stroke:o,strokeWidth:r,strokeDasharray:s}),(0, H.jsx)("ellipse",{cx:n,cy:0,rx:i,ry:a,fill:o,fillOpacity:.05,stroke:o,strokeWidth:r,strokeDasharray:s}),t.label?(0, H.jsx)("text",{x:n/2,y:-a-10,textAnchor:"middle",fill:o,fontSize:t.fontSize||14,children:String(t.label)}):null]}),(0, H.jsx)(D,{el:t,ctx:e})]})});v("mirror_plane",(t,e)=>(0, H.jsxs)("g",{children:[c0(t,(0, H.jsxs)(H.Fragment,{children:[(0, H.jsx)("line",{x1:0,y1:-24,x2:0,y2:24,stroke:yl(t,e.isSelected),strokeWidth:On(t,e.isSelected)}),(0, H.jsx)("line",{x1:0,y1:-18,x2:-8,y2:-12,stroke:yl(t,e.isSelected),strokeWidth:1.5}),(0, H.jsx)("line",{x1:0,y1:-6,x2:-8,y2:0,stroke:yl(t,e.isSelected),strokeWidth:1.5}),(0, H.jsx)("line",{x1:0,y1:6,x2:-8,y2:12,stroke:yl(t,e.isSelected),strokeWidth:1.5}),(0, H.jsx)("line",{x1:0,y1:18,x2:-8,y2:24,stroke:yl(t,e.isSelected),strokeWidth:1.5})]}),e.isSelected),(0, H.jsx)(D,{el:t,ctx:e})]}));v("energy_level",(t,e)=>{let n=Math.max(24,O(t.x1,t.y1,t.x2,t.y2)),l=yl(t,e.isSelected),a=t.energy!=null?String(t.energy):"";return (0, H.jsxs)("g",{children:[c0(t,(0, H.jsxs)(H.Fragment,{children:[(0, H.jsx)("line",{x1:0,y1:-8,x2:n,y2:-8,stroke:l,strokeWidth:On(t,e.isSelected)}),(0, H.jsx)("line",{x1:0,y1:8,x2:n,y2:8,stroke:l,strokeWidth:On(t,e.isSelected)}),a?(0, H.jsx)("text",{x:n/2,y:22,textAnchor:"middle",fontSize:10,fill:"#4b5563",children:a}):null]}),e.isSelected),(0, H.jsx)(D,{el:t,ctx:e})]})});var Gt=j(F()),ph=({x:t,y:e,type:n})=>(0, Gt.jsxs)("g",{children:[(0, Gt.jsx)("rect",{x:t-20,y:e-12,width:40,height:24,fill:"#fee2e2",stroke:"#ef4444"}),(0, Gt.jsx)("text",{x:t,y:e,textAnchor:"middle",dominantBaseline:"central",fontSize:10,fill:"#991b1b",children:n})]}),Xi=({elements:t,selectedId:e,drawing:n,viewMode:l=false,showGrid:a=true,gridSize:i=20,className:o,svgRef:r,onBackgroundMouseDown:s,onBackgroundMouseMove:u,onBackgroundMouseUp:f,onBackgroundMouseLeave:y,onElementMouseDown:d,onHandlePointerDown:m})=>{let _=(0, f0.useMemo)(()=>r0(t),[t]);return (0, Gt.jsxs)("svg",{ref:r,className:o,onMouseDown:s,onMouseMove:u,onMouseUp:f,onMouseLeave:y,children:[!l&&a&&(0, Gt.jsxs)(Gt.Fragment,{children:[(0, Gt.jsx)("defs",{children:(0, Gt.jsx)("pattern",{id:"svg-engine-grid",width:i,height:i,patternUnits:"userSpaceOnUse",children:(0, Gt.jsx)("path",{d:`M ${i} 0 L 0 0 0 ${i}`,fill:"none",stroke:"#e2e8f0",strokeWidth:"1"})})}),(0, Gt.jsx)("rect",{width:"100%",height:"100%",fill:"url(#svg-engine-grid)",pointerEvents:"none"})]}),t.map(E=>{let T=Dr(String(E.type)),x={isSelected:e===E.id,viewMode:l,onHandlePointerDown:!l&&m?(p,M,k)=>m(p,E,M,k):void 0},h=T?T(E,x):(0, Gt.jsx)(ph,{x:E.x1,y:E.y1,type:String(E.type)});return (0, Gt.jsx)("g",{onMouseDown:p=>d?.(p,E),cursor:l?"default":"move",children:h},String(E.id))}),_.map(([E,T],x)=>(0, Gt.jsx)("circle",{cx:E,cy:T,r:4,fill:"#111827",pointerEvents:"none"},`junction-${x}`)),n&&(()=>{let E=Dr(String(n.type));return E?(0, Gt.jsx)("g",{opacity:.5,children:E(n,{isGhost:true,viewMode:l,onHandlePointerDown:void 0})}):null})()]})};var Ht=j(sn());var d0=10,gh=t=>{let e={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2},n=t.cps;return n?.length?{...e,cps:n.map(l=>({x:l.x,y:l.y}))}:e},bh=(t,e,n,l,a)=>{let i=String(e);if(i.endsWith("-start")){let r=i.slice(0,-6);return t.map(s=>String(s.id)===r?{...s,x1:a.x1+n,y1:a.y1+l}:s)}if(i.endsWith("-end")){let r=i.slice(0,-4);return t.map(s=>String(s.id)===r?{...s,x2:a.x2+n,y2:a.y2+l}:s)}let o=i.match(/^(.*)-cp-(\d+)$/);if(o&&a.cps){let r=o[1],s=Number(o[2]);return t.map(u=>{if(String(u.id)!==r)return u;let f=a.cps.map((y,d)=>d===s?{x:y.x+n,y:y.y+l}:{...y});return {...u,cps:f}})}return t.map(r=>r.id===e||String(r.id)===i?{...r,x1:a.x1+n,y1:a.y1+l,x2:a.x2+n,y2:a.y2+l,...a.cps?{cps:a.cps.map(s=>({x:s.x+n,y:s.y+l}))}:{}}:r)},vh=t=>{let e="#0f172a";["spring","sine_wave","wavefronts","shm_graph"].includes(t)&&(e="#3b82f6"),["standing_wave","wave_pulse","torsion_pendulum"].includes(t)&&(e="#ec4899"),["pendulum","phasor"].includes(t)&&(e="#8b5cf6"),["wall","vane_liquid"].includes(t)&&(e="#64748b"),t==="mass_box"&&(e="#ef4444");let n={color:e,strokeWidth:2,fontSize:18};switch(t){case "standing_wave":case "sine_wave":return {...n,amplitude:40,loops:2};case "damped_wave":return {...n,amplitude:50,damping:.015,frequency:10};case "shm_graph":return {...n,amplitude:40,loops:1,graphType:"all"};case "energy_graph":return {...n,amplitude:50,loops:1,domain:"time"};case "strobe_shm":return {...n,amplitude:40,loops:1};case "beats_graph":return {...n,amplitude:30,frequency:15,beatFreq:2};case "wavefronts":return {...n,velocityRatio:.5,rings:5};case "mach_cone":return {...n,machNumber:2};case "mass_box":return {...n,size:30};case "pendulum":return {...n,size:15,showForces:false};case "phasor":return {...n,showProjection:false};case "spring":return {...n,coils:8};case "text":return {...n,label:"Equation/Label"};default:return n}},y0=(t,e)=>{if(e==="waveOscillation")return vh(t);switch(t){case "charge_pos":return {color:"#ef4444",strokeWidth:2,fontSize:18};case "charge_neg":return {color:"#3b82f6",strokeWidth:2,fontSize:18};case "charge_plus":return {color:"#ef4444",strokeWidth:2,fontSize:16};case "charge_minus":return {color:"#3b82f6",strokeWidth:2,fontSize:16};case "dipole":return {color:"#64748b",strokeWidth:2};case "charged_plate_pos":return {color:"#ef4444",strokeWidth:2};case "charged_plate_neg":return {color:"#3b82f6",strokeWidth:2};case "gaussian_sphere":return {color:"#10b981",strokeWidth:2};case "gaussian_cylinder":return {color:"#10b981",strokeWidth:2,curveHeight:40};case "vector":case "ray":case "photon":return e==="graph"?{color:"#0f172a",strokeWidth:2}:e==="mechanics"?{color:"#0f172a",strokeWidth:2}:e==="rotation"?{color:"#ef4444",strokeWidth:2}:e==="light"&&(t==="ray"||t==="photon")?{color:"#ef4444",strokeWidth:2}:e==="light"?{color:"#0f172a",strokeWidth:2}:{color:"#ef4444",strokeWidth:2};case "lens_convex":case "lens_concave":case "prism":case "glass_slab":return {color:"#38bdf8",strokeWidth:2};case "mirror_plane":case "mirror_concave":case "mirror_convex":return {color:"#0f172a",strokeWidth:2};case "slit_double":case "slit_single":return {color:"#0f172a",strokeWidth:4};case "nucleus":return e==="light"?{color:"#3b82f6",strokeWidth:2,fontSize:18}:{color:"#0f172a",strokeWidth:2,fontSize:18};case "energy_level":return {color:"#0f172a",strokeWidth:2,label:"n=1",energy:"-13.6 eV"};case "dashed_line":return {color:"#0f172a",strokeWidth:2,lineStyle:"dashed"};case "point":return e==="graph"?{color:"#0f172a",strokeWidth:2,fontSize:16,label:"P"}:e==="light"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"P"}:e==="thermo"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"P"}:{};case "text":return e==="graph"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"Label"}:e==="light"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"Text"}:e==="mechanics"?{color:"#0f172a",strokeWidth:2,fontSize:20,label:"Label"}:e==="rotation"?{color:"#1e293b",strokeWidth:2,fontSize:20,label:"Label"}:e==="thermo"?{color:"#1e293b",strokeWidth:2,fontSize:18,label:"Equation/Label"}:{};case "b_field_line":case "b_field_curve":return e==="magnetism"?{color:"#10b981",strokeWidth:2}:{};case "pole_piece":return e==="magnetism"?{color:"#0f172a",strokeWidth:2,label:"N"}:{};case "b_region_in":case "b_region_out":return e==="magnetism"?{color:"#94a3b8",strokeWidth:2}:{};case "current_wire":return e==="magnetism"?{color:"#ef4444",strokeWidth:2,label:"I"}:{};case "bar_magnet":return e==="magnetism"?{color:"#0f172a",strokeWidth:2,label:""}:{};case "coil":return e==="magnetism"?{color:"#0f172a",strokeWidth:2}:{};case "bezier":return e==="magnetism"?{color:"#0f172a",strokeWidth:2}:{};case "meter":return e==="magnetism"?{color:"#0f172a",strokeWidth:2,fontSize:24,label:"G"}:{};case "ac_source":return e==="magnetism"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"V_rms"}:{};case "spring":return e==="rotation"?{color:"#0f172a",strokeWidth:2,coils:6,lineStyle:"solid"}:e==="mechanics"?{color:"#0f172a",strokeWidth:2}:{};case "pivot":return e==="rotation"?{color:"#64748b",strokeWidth:2,size:20,fontSize:18}:e==="mechanics"?{color:"#0f172a",strokeWidth:2}:{};case "pulley":return e==="rotation"?{color:"#64748b",strokeWidth:2,fontSize:18}:e==="mechanics"?{color:"#0f172a",strokeWidth:2}:{};case "point_mass":return {color:"#ef4444",strokeWidth:2,size:15,fontSize:18};case "block_mass":return {color:"#3b82f6",strokeWidth:2,fontSize:18};case "com_indicator":return {color:"#10b981",strokeWidth:2,size:15,fontSize:18};case "system_boundary":case "dashed_path":return {color:"#94a3b8",strokeWidth:e==="rotation"?1.5:2,fontSize:18};case "rocket":return {color:"#ef4444",strokeWidth:2,fontSize:18};case "uniform_rod":return {color:"#f59e0b",strokeWidth:10,fontSize:18};case "solid_disk":case "hoop_ring":return {color:"#3b82f6",strokeWidth:2,fontSize:18};case "rolling_body":return {color:"#3b82f6",strokeWidth:2,fontSize:18,showVelocity:true,showOmega:true};case "inclined_wedge":return {color:"#64748b",strokeWidth:2,fontSize:18};case "curve_arrow":return {color:"#10b981",strokeWidth:2,fontSize:18};case "line":return e==="rotation"?{color:"#1e293b",strokeWidth:1.5}:e==="thermo"?{color:"#1e293b",strokeWidth:2,lineStyle:"solid"}:{};case "piston_cylinder":return e!=="thermo"?{}:{color:"#1e293b",strokeWidth:2,fontSize:18,compression:.5,showHeat:false,lineStyle:"solid"};case "heat_engine":return e!=="thermo"?{}:{color:"#10b981",strokeWidth:2,fontSize:18,engineType:"engine",efficiency:.4,lineStyle:"solid"};case "conduction_rod":return e!=="thermo"?{}:{color:"#3b82f6",strokeWidth:2,fontSize:18,lineStyle:"solid"};case "pv_axes":return e!=="thermo"?{}:{color:"#1e293b",strokeWidth:2,fontSize:18,xLabel:"V",yLabel:"P",lineStyle:"solid"};case "thermo_process":return e!=="thermo"?{}:{color:"#ec4899",strokeWidth:2,fontSize:18,processType:"isotherm",lineStyle:"solid"};case "carnot_cycle":return e!=="thermo"?{}:{color:"#ec4899",strokeWidth:2,fontSize:18,lineStyle:"solid"};case "maxwell_boltzmann":return e!=="thermo"?{}:{color:"#1e293b",strokeWidth:2,fontSize:18,t1:300,t2:600,lineStyle:"solid"};case "diatomic_gas":return {color:"#f59e0b",strokeWidth:2,fontSize:18,showRotations:true};case "random_walk":return e!=="thermo"?{}:{color:"#8b5cf6",strokeWidth:2,fontSize:18,steps:5,lineStyle:"solid"};case "string":case "surface":case "dashed":case "dimension":case "rod":case "arc":case "wedge":case "axes":case "disk":case "particle":case "com":return e==="mechanics"?{color:"#0f172a",strokeWidth:2}:{};case "block":case "cart":return e==="mechanics"?{color:"#0f172a",strokeWidth:2,rotation:0}:{};default:return {}}},h0=(t,e)=>{let[n,l]=(0, Ht.useState)(t),[a,i]=(0, Ht.useState)("select"),[o,r]=(0, Ht.useState)(null),[s,u]=(0, Ht.useState)(null),[f,y]=(0, Ht.useState)(false),[d,m]=(0, Ht.useState)(false),[_,E]=(0, Ht.useState)(""),[T,x]=(0, Ht.useState)(false),[h,p]=(0, Ht.useState)(null),M=(0, Ht.useRef)(null),k=(0, Ht.useRef)({x:0,y:0}),Y=(0, Ht.useRef)(null);(0, Ht.useEffect)(()=>{l(t),u(null),x(false),r(null);},[t]),(0, Ht.useEffect)(()=>{let Q=U=>{let V=U.target;V&&(V.tagName==="INPUT"||V.tagName==="TEXTAREA"||V.isContentEditable)||((U.key==="Delete"||U.key==="Backspace")&&s&&(l(pt=>pt.filter(re=>re.id!==s)),u(null),x(false)),U.key==="Escape"&&(r(null),i("select"),x(false)));};return window.addEventListener("keydown",Q),()=>window.removeEventListener("keydown",Q)},[s]);let N=(0, Ht.useMemo)(()=>n.find(Q=>Q.id===s)||null,[n,s]);return {elements:n,setElements:l,tool:a,setTool:i,drawing:o,selectedId:s,setSelectedId:u,isViewMode:f,setIsViewMode:y,showJsonModal:d,setShowJsonModal:m,jsonText:_,setJsonText:E,showProperties:T,setShowProperties:x,selectedElement:N,svgRef:M,onElementMouseDown:(Q,U)=>{if(a!=="select"||(Q.stopPropagation(),!M.current))return;let V=Ta(M.current,Q);u(U.id),p(U.id),k.current=V,Y.current=gh(U);},onHandlePointerDown:(Q,U,V,pt)=>{if(a!=="select"||(Q.stopPropagation(),!M.current))return;let re=Ta(M.current,Q);if(u(U.id),k.current=re,V==="start"){p(`${U.id}-start`),Y.current={x1:U.x1,y1:U.y1,x2:U.x2,y2:U.y2};return}if(V==="end"){p(`${U.id}-end`),Y.current={x1:U.x1,y1:U.y1,x2:U.x2,y2:U.y2};return}if(V==="cp"&&pt!==void 0){let ul=U.cps,kr=ul?.length&&ul.length>0?ul.map(Sr=>({x:Sr.x,y:Sr.y})):[{x:(U.x1+U.x2)/2,y:Math.min(U.y1,U.y2)-50}];p(`${U.id}-cp-${pt}`),Y.current={x1:U.x1,y1:U.y1,x2:U.x2,y2:U.y2,cps:kr};}},handleMouseDown:Q=>{if(!M.current)return;if(a==="select"){Q.target===M.current&&(u(null),x(false));return}let U=Ta(M.current,Q),V=fl(U.x),pt=fl(U.y),re=e==="mechanics"&&["pivot","com","axes"].includes(a),ul=e==="rotation"&&["point_mass","com_indicator","pivot"].includes(a),kr=e==="waveOscillation"&&["tuning_fork","speaker","wavefronts","mass_box"].includes(a);if(re||ul||kr||["point","text","diatomic_gas","benzene","cyclohexane","cyclopentane","cyclobutane","cyclopropane","atom","charge_plus","charge_minus","charge_pos","charge_neg","radical","lone_pair","nucleus","meter","ac_source"].includes(a)){let Mr=y0(a,e),fy=a==="text"?"Text":a==="atom"?"C":a==="charge_pos"?"+q":a==="charge_neg"?"-q":a==="charge_plus"?"+q":a==="charge_minus"?"-q":a==="meter"?"G":a==="ac_source"?"V_rms":"",mu={id:Date.now(),type:a,x1:V,y1:pt,x2:V,y2:pt,...Mr,label:typeof Mr.label=="string"?Mr.label:fy};l(dy=>[...dy,mu]),u(mu.id),i("select");return}let Li=y0(a,e),uy=e==="mechanics"&&(a==="block"||a==="cart")?{rotation:Li.rotation??0}:{};r({...Li,...uy,id:Date.now(),type:a,x1:V,y1:pt,x2:V,y2:pt,label:typeof Li.label=="string"?Li.label:""});},handleMouseMove:Q=>{if(!M.current)return;let U=Ta(M.current,Q);if(h!=null&&Y.current){let V=fl(U.x-k.current.x),pt=fl(U.y-k.current.y),re=Y.current;l(ul=>bh(ul,h,V,pt,re));return}o&&r({...o,x2:fl(U.x),y2:fl(U.y)});},handleMouseUp:()=>{if(h!=null){p(null),Y.current=null;return}if(!o)return;if(Math.abs(o.x1-o.x2)<=d0&&Math.abs(o.y1-o.y2)<=d0){r(null),i("select");return}let Q=o.type==="bezier"?{...o,cps:[{x:(o.x1+o.x2)/2,y:Math.min(o.y1,o.y2)-60}]}:o;l(U=>[...U,Q]),u(o.id),r(null),i("select");}}};var c=j(F()),Nr={select:(0, c.jsx)("path",{d:"M 8 4 L 16 12 L 11 13 L 9 18 L 6 17 L 8 12 L 4 11 Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5"}),point:(0, c.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"}),line:(0, c.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"4",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),string:(0, c.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),vector:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"4",y1:"20",x2:"18",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, c.jsx)("polygon",{points:"14,4 20,4 20,10",fill:"none",stroke:"currentColor",strokeWidth:"2.5"})]}),ray:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})]}),wire:(0, c.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2.8",strokeLinecap:"round"}),text:(0, c.jsx)("text",{x:"12",y:"18",fontSize:"18",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",fontFamily:"serif",children:"T"}),block:(0, c.jsx)("rect",{x:"5",y:"6",width:"14",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",rx:"1"}),wedge:(0, c.jsx)("polygon",{points:"2,20 22,20 22,6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),pulley:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"10",r:"6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"10",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"6",y1:"10",x2:"6",y2:"20",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"18",y1:"10",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"1.5"})]}),point_mass:(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"currentColor",stroke:"currentColor",strokeWidth:"2"}),block_mass:(0, c.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",rx:"1"}),com_indicator:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 12 12 L 17 7 A 7 7 0 0 1 17 17 Z M 12 12 L 7 17 A 7 7 0 0 1 7 7 Z",fill:"currentColor",opacity:"0.3"})]}),system_boundary:(0, c.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"3 2",rx:"4"}),rocket:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M12 2 L16 8 L16 16 L20 20 L4 20 L8 16 L8 8 Z",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("path",{d:"M8 20 Q12 24 16 20",fill:"currentColor"})]}),dashed_path:(0, c.jsx)("path",{d:"M 4 20 Q 8 8 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"4 3"}),uniform_rod:(0, c.jsx)("rect",{x:"3",y:"10",width:"18",height:"4",fill:"currentColor",rx:"2",opacity:"0.8"}),solid_disk:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"currentColor",opacity:"0.5",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),hoop_ring:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),rolling_body:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("polygon",{points:"18,10 22,12 18,14",fill:"currentColor"}),(0, c.jsx)("path",{d:"M 16 6 A 8 8 0 0 1 20 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("polygon",{points:"19,11 22,9 18,8",fill:"currentColor"})]}),inclined_wedge:(0, c.jsx)("polygon",{points:"4,20 20,20 4,8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),curve_arrow:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 6 18 A 9 9 0 0 1 18 6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"16,5 20,4 19,8",fill:"currentColor"})]}),ladder:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"7",y1:"4",x2:"4",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"17",y1:"4",x2:"14",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"6",y1:"8",x2:"16",y2:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0, c.jsx)("line",{x1:"5",y1:"12",x2:"15",y2:"12",stroke:"currentColor",strokeWidth:"1.6"}),(0, c.jsx)("line",{x1:"4.5",y1:"16",x2:"14.5",y2:"16",stroke:"currentColor",strokeWidth:"1.6"})]}),spring:(0, c.jsx)("path",{d:"M 2 12 L 5 12 L 7 6 L 11 18 L 15 6 L 19 18 L 21 12 L 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"bevel"}),arc:(0, c.jsx)("path",{d:"M 22 12 A 10 10 0 0 0 12 2 L 12 12 Z",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),arc_arrow:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 4 16 A 8 8 0 0 1 18 8",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round"}),(0, c.jsx)("polygon",{points:"17,5 21,9 15,10",fill:"currentColor"})]}),dashed:(0, c.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"4,4"}),surface:(0, c.jsx)("path",{d:"M 4 10 L 20 10 M 6 10 L 2 16 M 12 10 L 8 16 M 18 10 L 14 16 M 24 10 L 20 16",fill:"none",stroke:"currentColor",strokeWidth:"2"}),dimension:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, c.jsx)("polygon",{points:"4,12 8,9 8,15",fill:"currentColor"}),(0, c.jsx)("polygon",{points:"20,12 16,9 16,15",fill:"currentColor"})]}),axes:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"6",y1:"18",x2:"6",y2:"6",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"6,4 3,9 9,9",fill:"currentColor"}),(0, c.jsx)("line",{x1:"6",y1:"18",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"20,18 15,15 15,21",fill:"currentColor"})]}),cart:(0, c.jsx)("path",{d:"M 4 8 L 20 8 L 20 14 L 4 14 Z M 8 18 A 2 2 0 1 0 8 14 A 2 2 0 1 0 8 18 M 16 18 A 2 2 0 1 0 16 14 A 2 2 0 1 0 16 18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),disk:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"12",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor"})]}),com:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 12 4 A 8 8 0 0 1 20 12 L 12 12 Z M 12 20 A 8 8 0 0 1 4 12 L 12 12 Z",fill:"currentColor"})]}),particle:(0, c.jsx)("circle",{cx:"12",cy:"12",r:"5",fill:"currentColor"}),pivot:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("polygon",{points:"12,6 6,18 18,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"12",cy:"6",r:"2",fill:"currentColor"})]}),dashed_line:(0, c.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"4",stroke:"currentColor",strokeWidth:"2.5",strokeDasharray:"4 4",strokeLinecap:"round"}),angle:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"4",y1:"20",x2:"16",y2:"4",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 14 20 A 10 10 0 0 0 10 12",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),rectangle:(0, c.jsx)("rect",{x:"4",y:"6",width:"16",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),circle:(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),ellipse:(0, c.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"5",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),parabola_v:(0, c.jsx)("path",{d:"M 4 4 Q 12 24 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),parabola_h:(0, c.jsx)("path",{d:"M 20 4 Q 0 12 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),hyperbola:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 6 2 Q 12 12 6 22",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 18 2 Q 12 12 18 22",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),sine_wave:(0, c.jsx)("path",{d:"M 2 12 Q 7 2 12 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),mass_box:(0, c.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),pendulum:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"12",y1:"2",x2:"18",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"18",cy:"18",r:"4",fill:"currentColor"}),(0, c.jsx)("line",{x1:"6",y1:"2",x2:"18",y2:"2",stroke:"currentColor",strokeWidth:"2"})]}),phasor:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"12",x2:"18",y2:"6",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"15,5 19,5 19,9",fill:"currentColor"})]}),damped_wave:(0, c.jsx)("path",{d:"M 2 12 Q 5 2 8 12 T 14 12 T 18 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),vane_liquid:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 4 4 L 4 20 L 20 20 L 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("rect",{x:"4",y:"10",width:"16",height:"10",fill:"currentColor",opacity:"0.35"}),(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"8",y1:"16",x2:"16",y2:"16",stroke:"currentColor",strokeWidth:"2"})]}),torsion_pendulum:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("rect",{x:"5",y:"2",width:"14",height:"4",rx:"1",fill:"currentColor",opacity:"0.35"}),(0, c.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"15",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("rect",{x:"8",y:"15",width:"8",height:"6",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"15",x2:"14",y2:"13",stroke:"currentColor",strokeWidth:"1.2"})]}),standing_wave:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 2 12 Q 7 2 12 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("path",{d:"M 2 12 Q 7 22 12 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"2 2"})]}),wave_pulse:(0, c.jsx)("path",{d:"M 2 16 L 8 16 Q 12 4 16 16 L 22 16",fill:"none",stroke:"currentColor",strokeWidth:"2"}),shm_graph:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"1",opacity:"0.5"}),(0, c.jsx)("path",{d:"M 2 12 Q 7 2 12 12 T 22 12",fill:"none",stroke:"#3b82f6",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 2 12 Q 7 22 12 12 T 22 12",fill:"none",stroke:"#ef4444",strokeWidth:"2",strokeDasharray:"2 2"})]}),energy_graph:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 4 6 Q 12 24 20 6",fill:"none",stroke:"#ef4444",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 4 20 Q 12 2 20 20",fill:"none",stroke:"#10b981",strokeWidth:"2"})]}),strobe_shm:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"4",r:"2",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"18",cy:"12",r:"2",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"12",cy:"20",r:"2",fill:"currentColor"}),(0, c.jsx)("line",{x1:"6",y1:"4",x2:"18",y2:"4",stroke:"currentColor",strokeWidth:"0.5"}),(0, c.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"0.5"}),(0, c.jsx)("line",{x1:"6",y1:"20",x2:"18",y2:"20",stroke:"currentColor",strokeWidth:"0.5"})]}),wall:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"4",x2:"16",y2:"0",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"12",y1:"10",x2:"16",y2:"6",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"12",y1:"16",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"12",y1:"22",x2:"16",y2:"18",stroke:"currentColor",strokeWidth:"1.5"})]}),tuning_fork:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 8 4 L 8 14 Q 12 20 16 14 L 16 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"24",stroke:"currentColor",strokeWidth:"2"})]}),speaker:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("polygon",{points:"8,8 14,4 14,20 8,16",fill:"currentColor"}),(0, c.jsx)("rect",{x:"4",y:"8",width:"4",height:"8",fill:"currentColor"}),(0, c.jsx)("path",{d:"M 18 8 Q 20 12 18 16 M 21 5 Q 24 12 21 19",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),wavefronts:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"10",cy:"12",r:"4",fill:"none",stroke:"currentColor"}),(0, c.jsx)("circle",{cx:"11",cy:"12",r:"8",fill:"none",stroke:"currentColor"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"none",stroke:"currentColor"})]}),mach_cone:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"18",cy:"12",r:"2",fill:"currentColor"}),(0, c.jsx)("line",{x1:"2",y1:"4",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"2",y1:"20",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),beats_graph:(0, c.jsx)("path",{d:"M 2 12 Q 4 6 6 12 Q 8 18 10 12 Q 12 8 14 12 Q 16 16 18 12 Q 20 10 22 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),step_function:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M2 18 L8 18 M8 12 L14 12 M14 6 L20 6",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"2",cy:"18",r:"2",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"8",cy:"18",r:"2",fill:"none",stroke:"currentColor"}),(0, c.jsx)("circle",{cx:"8",cy:"12",r:"2",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"14",cy:"12",r:"2",fill:"none",stroke:"currentColor"}),(0, c.jsx)("circle",{cx:"14",cy:"6",r:"2",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"20",cy:"6",r:"2",fill:"none",stroke:"currentColor"})]}),shaded_area:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M4 20 L4 10 Q12 2 20 10 L20 20 Z",fill:"currentColor",opacity:"0.3"}),(0, c.jsx)("path",{d:"M4 10 Q12 2 20 10",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),modulus:(0, c.jsx)("polyline",{points:"4,4 12,20 20,4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),exponential:(0, c.jsx)("path",{d:"M4 20 Q14 20 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),logarithmic:(0, c.jsx)("path",{d:"M4 20 Q4 10 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),axes_3d:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"8",y1:"16",x2:"8",y2:"2",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"8",y1:"16",x2:"22",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"8",y1:"16",x2:"2",y2:"22",stroke:"currentColor",strokeWidth:"2"})]}),rod:(0, c.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round"}),hinge:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"3.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),slit_double:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"8",stroke:"currentColor",strokeWidth:"3"}),(0, c.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"13",stroke:"currentColor",strokeWidth:"3"}),(0, c.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"3"})]}),slit_single:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"9",stroke:"currentColor",strokeWidth:"3"}),(0, c.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"3"})]}),photon:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 2 12 Q 5 6 8 12 T 14 12 T 20 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"18,8 22,12 18,16",fill:"currentColor"})]}),nucleus:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"4",fill:"none",stroke:"currentColor",transform:"rotate(45 12 12)"}),(0, c.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"4",fill:"none",stroke:"currentColor",transform:"rotate(-45 12 12)"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"#ef4444"})]}),orbit:(0, c.jsx)("ellipse",{cx:"12",cy:"12",rx:"8",ry:"4.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),resistor:(0, c.jsx)("path",{d:"M 2 12 L 6 12 L 8 6 L 12 18 L 16 6 L 18 12 L 22 12",fill:"none",stroke:"#b45309",strokeWidth:"2.2",strokeLinejoin:"round"}),capacitor:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"3",y1:"12",x2:"9",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"9",y1:"6",x2:"9",y2:"18",stroke:"currentColor",strokeWidth:"2.2"}),(0, c.jsx)("line",{x1:"15",y1:"6",x2:"15",y2:"18",stroke:"currentColor",strokeWidth:"2.2"}),(0, c.jsx)("line",{x1:"15",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),inductor:(0, c.jsx)("path",{d:"M 3 12 C 5 8, 7 8, 9 12 C 11 8, 13 8, 15 12 C 17 8, 19 8, 21 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),diode:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"3",y1:"12",x2:"8",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"8,7 8,17 14,12",fill:"#fcd34d",fillOpacity:"0.85",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"15.5",y1:"7",x2:"15.5",y2:"17",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"15.5",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),battery:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 2 12 L 7 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0, c.jsx)("rect",{x:"7",y:"4",width:"5",height:"16",rx:"0.5",fill:"#dc2626",stroke:"currentColor",strokeWidth:"1"}),(0, c.jsx)("rect",{x:"12",y:"7",width:"5",height:"10",rx:"0.5",fill:"#2563eb",stroke:"currentColor",strokeWidth:"1"}),(0, c.jsx)("path",{d:"M 17 12 L 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),ground:(0, c.jsx)("path",{d:"M 12 4 L 12 12 M 6 12 L 18 12 M 8 16 L 16 16 M 10 20 L 14 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),meter_v:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#e0f2fe",stroke:"#0369a1",strokeWidth:"2"}),(0, c.jsx)("text",{x:"12",y:"15",fontSize:"9",textAnchor:"middle",fill:"#0369a1",fontWeight:"bold",children:"V"})]}),meter_a:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#fef3c7",stroke:"#b45309",strokeWidth:"2"}),(0, c.jsx)("text",{x:"12",y:"15",fontSize:"9",textAnchor:"middle",fill:"#b45309",fontWeight:"bold",children:"A"})]}),piston_cylinder:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 4 4 L 4 20 L 20 20 L 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("rect",{x:"5",y:"10",width:"14",height:"4",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"9",cy:"16",r:"1",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"15",cy:"17",r:"1",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"12",cy:"14",r:"1",fill:"currentColor"})]}),heat_engine:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("rect",{x:"6",y:"2",width:"12",height:"4",fill:"#ef4444"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("rect",{x:"6",y:"18",width:"12",height:"4",fill:"#3b82f6"}),(0, c.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"8",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"16",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),conduction_rod:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("defs",{children:(0, c.jsxs)("linearGradient",{id:"thermo-conduction-icon-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0, c.jsx)("stop",{offset:"0%",stopColor:"#ef4444"}),(0, c.jsx)("stop",{offset:"100%",stopColor:"#3b82f6"})]})}),(0, c.jsx)("rect",{x:"2",y:"8",width:"20",height:"8",fill:"url(#thermo-conduction-icon-grad)",stroke:"currentColor",strokeWidth:"1"})]}),pv_axes:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"4",y1:"4",x2:"4",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"4,2 2,6 6,6",fill:"currentColor"}),(0, c.jsx)("polygon",{points:"22,20 18,18 18,22",fill:"currentColor"})]}),thermo_process:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 4 4 Q 8 16 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"12,12 8,10 10,14",fill:"currentColor"})]}),carnot_cycle:(0, c.jsx)("path",{d:"M 6 6 Q 12 8 16 12 Q 14 16 10 18 Q 6 14 6 6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),maxwell_boltzmann:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 2 20 Q 8 4 12 12 T 22 20",fill:"none",stroke:"#ef4444",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 2 20 Q 6 10 10 16 T 22 20",fill:"none",stroke:"#3b82f6",strokeWidth:"2",strokeDasharray:"2 2"})]}),diatomic_gas:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"6",cy:"12",r:"4",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"18",cy:"12",r:"4",fill:"currentColor"}),(0, c.jsx)("line",{x1:"10",y1:"12",x2:"14",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 8 6 A 6 6 0 0 1 16 6",fill:"none",stroke:"currentColor",strokeWidth:"1"})]}),random_walk:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("polyline",{points:"2,18 8,12 14,16 20,6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"2",cy:"18",r:"1.5",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"20",cy:"6",r:"1.5",fill:"currentColor"})]}),lens_convex:(0, c.jsx)("path",{d:"M 4 12 Q 12 4 20 12 Q 12 20 4 12 Z",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),lens_concave:(0, c.jsx)("path",{d:"M 4 8 L 4 16 Q 12 14 20 16 L 20 8 Q 12 10 4 8 Z",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),mirror_concave:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 4 12 Q 12 18 20 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"8",y1:"14",x2:"5",y2:"17",stroke:"currentColor"}),(0, c.jsx)("line",{x1:"12",y1:"15",x2:"9",y2:"18",stroke:"currentColor"}),(0, c.jsx)("line",{x1:"16",y1:"14",x2:"13",y2:"17",stroke:"currentColor"})]}),mirror_convex:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 4 12 Q 12 6 20 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"8",y1:"10",x2:"5",y2:"7",stroke:"currentColor"}),(0, c.jsx)("line",{x1:"12",y1:"9",x2:"9",y2:"6",stroke:"currentColor"}),(0, c.jsx)("line",{x1:"16",y1:"10",x2:"13",y2:"7",stroke:"currentColor"})]}),prism:(0, c.jsx)("polygon",{points:"12,4 2,20 22,20",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),glass_slab:(0, c.jsx)("rect",{x:"4",y:"6",width:"16",height:"12",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),pole_piece:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("rect",{x:"4",y:"2",width:"16",height:"20",fill:"#93c5fd",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("text",{x:"12",y:"16",fontSize:"12",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",children:"N"})]}),b_field_line:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})]}),b_field_curve:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 4 20 Q 12 2 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polygon",{points:"10,8 14,11 10,14",fill:"currentColor",transform:"rotate(30 12 11)"})]}),bezier:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("path",{d:"M 4 20 Q 4 4 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"4",cy:"4",r:"2",fill:"currentColor"}),(0, c.jsx)("line",{x1:"4",y1:"20",x2:"4",y2:"4",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"2 2"}),(0, c.jsx)("line",{x1:"20",y1:"4",x2:"4",y2:"4",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"2 2"})]}),current_wire:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, c.jsx)("polygon",{points:"15,8 20,12 15,16",fill:"currentColor"})]}),b_region_in:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"2 2"}),(0, c.jsx)("path",{d:"M 8 8 L 16 16 M 16 8 L 8 16",stroke:"currentColor",strokeWidth:"2"})]}),b_region_out:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"2 2"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor"})]}),bar_magnet:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("rect",{x:"2",y:"8",width:"20",height:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("text",{x:"7",y:"15",fontSize:"7",fill:"currentColor",fontWeight:"bold",children:"N"}),(0, c.jsx)("text",{x:"17",y:"15",fontSize:"7",fill:"currentColor",fontWeight:"bold",children:"S"})]}),coil:(0, c.jsx)("path",{d:"M2 12 C 5 -2, 10 26, 12 12 C 14 -2, 19 26, 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),meter:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("text",{x:"12",y:"16",fontSize:"10",fontWeight:"bold",textAnchor:"middle",fill:"currentColor",children:"G"})]}),ac_source:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M 7 12 Q 9.5 8 12 12 T 17 12",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),single_bond:(0, c.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),double_bond:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"3",y1:"15",x2:"17",y2:"3",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, c.jsx)("line",{x1:"7",y1:"21",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})]}),triple_bond:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"12",x2:"16",y2:"0",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"5",y1:"16",x2:"19",y2:"4",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"8",y1:"20",x2:"22",y2:"8",stroke:"currentColor",strokeWidth:"2"})]}),wedge_bond:(0, c.jsx)("polygon",{points:"4,18 20,4 22,8",fill:"currentColor"}),dash_bond:(0, c.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeDasharray:"3 3"}),benzene:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("polygon",{points:"12,2 20.6,7 20.6,17 12,22 3.4,17 3.4,7",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("circle",{cx:"12",cy:"12",r:"5",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),cyclohexane:(0, c.jsx)("polygon",{points:"12,2 20.6,7 20.6,17 12,22 3.4,17 3.4,7",fill:"none",stroke:"currentColor",strokeWidth:"2"}),cyclopentane:(0, c.jsx)("polygon",{points:"12,2 22,9.5 18,21 6,21 2,9.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),cyclobutane:(0, c.jsx)("rect",{x:"5",y:"5",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2"}),cyclopropane:(0, c.jsx)("polygon",{points:"12,4 22,18 2,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),reaction_arrow:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polyline",{points:"14,6 22,12 14,18",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),equilibrium_arrow:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"2",y1:"9",x2:"20",y2:"9",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("polyline",{points:"14,4 20,9",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"4",y1:"15",x2:"22",y2:"15",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("polyline",{points:"10,20 4,15",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),curved_arrow:(0, c.jsx)("path",{d:"M 4 18 Q 12 4 20 18 L 16 16 M 20 18 L 22 14",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),resonance_arrow:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polyline",{points:"8,6 2,12 8,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("polyline",{points:"16,6 22,12 16,18",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),atom:(0, c.jsx)("text",{x:"12",y:"18",fontSize:"18",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",fontFamily:"sans-serif",children:"C"}),charge_plus:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),charge_minus:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, c.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),radical:(0, c.jsx)("circle",{cx:"12",cy:"12",r:"2.5",fill:"currentColor"}),lone_pair:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"8",cy:"12",r:"2",fill:"currentColor"}),(0, c.jsx)("circle",{cx:"16",cy:"12",r:"2",fill:"currentColor"})]}),charge_pos:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#fecaca",stroke:"#ef4444",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M12 8v8M8 12h8",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}),charge_neg:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#bfdbfe",stroke:"#3b82f6",strokeWidth:"2"}),(0, c.jsx)("path",{d:"M8 12h8",stroke:"#3b82f6",strokeWidth:"2",strokeLinecap:"round"})]}),dipole:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("circle",{cx:"5",cy:"12",r:"4",fill:"#fecaca",stroke:"#ef4444"}),(0, c.jsx)("circle",{cx:"19",cy:"12",r:"4",fill:"#bfdbfe",stroke:"#3b82f6"}),(0, c.jsx)("line",{x1:"9",y1:"12",x2:"15",y2:"12",stroke:"currentColor",strokeDasharray:"2 2"})]}),charged_plate_pos:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"#ef4444",strokeWidth:"6"}),(0, c.jsx)("path",{d:"M9 6h6M12 3v6 M9 12h6M12 9v6 M9 18h6M12 15v6",stroke:"#fff",strokeWidth:"1"})]}),charged_plate_neg:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"#3b82f6",strokeWidth:"6"}),(0, c.jsx)("path",{d:"M9 6h6 M9 12h6 M9 18h6",stroke:"#fff",strokeWidth:"1"})]}),gaussian_sphere:(0, c.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"#d1fae5",fillOpacity:"0.4",stroke:"#10b981",strokeWidth:"2",strokeDasharray:"3 3"}),gaussian_cylinder:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("ellipse",{cx:"12",cy:"4",rx:"7",ry:"2",fill:"none",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, c.jsx)("ellipse",{cx:"12",cy:"20",rx:"7",ry:"2",fill:"none",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, c.jsx)("path",{d:"M5 4v16M19 4v16",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"})]}),mirror_plane:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"12",y1:"6",x2:"6",y2:"10",stroke:"currentColor"}),(0, c.jsx)("line",{x1:"12",y1:"12",x2:"6",y2:"16",stroke:"currentColor"}),(0, c.jsx)("line",{x1:"12",y1:"18",x2:"6",y2:"22",stroke:"currentColor"})]}),energy_level:(0, c.jsxs)(c.Fragment,{children:[(0, c.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("line",{x1:"4",y1:"16",x2:"20",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, c.jsx)("text",{x:"12",y:"13",fontSize:"6",fill:"currentColor",textAnchor:"middle",children:"n"})]})};var m0={teal:{idle:"text-teal-600 border-transparent hover:bg-teal-50 hover:border-teal-200",active:"bg-teal-50 text-teal-700 border-teal-200 shadow-sm ring-1 ring-teal-100"},indigo:{idle:"text-indigo-600 border-transparent hover:bg-indigo-50 hover:border-indigo-200",active:"bg-indigo-50 text-indigo-700 border-indigo-200 shadow-sm ring-1 ring-indigo-100"},violet:{idle:"text-violet-600 border-transparent hover:bg-violet-50 hover:border-violet-200",active:"bg-violet-50 text-violet-700 border-violet-200 shadow-sm ring-1 ring-violet-100"},purple:{idle:"text-purple-600 border-transparent hover:bg-purple-50 hover:border-purple-200",active:"bg-purple-50 text-purple-700 border-purple-200 shadow-sm ring-1 ring-purple-100"},amber:{idle:"text-amber-600 border-transparent hover:bg-amber-50 hover:border-amber-200",active:"bg-amber-50 text-amber-700 border-amber-200 shadow-sm ring-1 ring-amber-100"},orange:{idle:"text-orange-600 border-transparent hover:bg-orange-50 hover:border-orange-200",active:"bg-orange-50 text-orange-700 border-orange-200 shadow-sm ring-1 ring-orange-100"},rose:{idle:"text-rose-600 border-transparent hover:bg-rose-50 hover:border-rose-200",active:"bg-rose-50 text-rose-700 border-rose-200 shadow-sm ring-1 ring-rose-100"},sky:{idle:"text-sky-600 border-transparent hover:bg-sky-50 hover:border-sky-200",active:"bg-sky-50 text-sky-700 border-sky-200 shadow-sm ring-1 ring-sky-100"},cyan:{idle:"text-cyan-600 border-transparent hover:bg-cyan-50 hover:border-cyan-200",active:"bg-cyan-50 text-cyan-700 border-cyan-200 shadow-sm ring-1 ring-cyan-100"},fuchsia:{idle:"text-fuchsia-600 border-transparent hover:bg-fuchsia-50 hover:border-fuchsia-200",active:"bg-fuchsia-50 text-fuchsia-700 border-fuchsia-200 shadow-sm ring-1 ring-fuchsia-100"},emerald:{idle:"text-emerald-600 border-transparent hover:bg-emerald-50 hover:border-emerald-200",active:"bg-emerald-50 text-emerald-700 border-emerald-200 shadow-sm ring-1 ring-emerald-100"},lime:{idle:"text-lime-600 border-transparent hover:bg-lime-50 hover:border-lime-200",active:"bg-lime-50 text-lime-700 border-lime-200 shadow-sm ring-1 ring-lime-100"},green:{idle:"text-green-600 border-transparent hover:bg-green-50 hover:border-green-200",active:"bg-green-50 text-green-700 border-green-200 shadow-sm ring-1 ring-green-100"},blue:{idle:"text-blue-600 border-transparent hover:bg-blue-50 hover:border-blue-200",active:"bg-blue-50 text-blue-700 border-blue-200 shadow-sm ring-1 ring-blue-100"},pink:{idle:"text-pink-600 border-transparent hover:bg-pink-50 hover:border-pink-200",active:"bg-pink-50 text-pink-700 border-pink-200 shadow-sm ring-1 ring-pink-100"},slate:{idle:"text-slate-600 border-transparent hover:bg-slate-100 hover:border-slate-200",active:"bg-slate-100 text-slate-800 border-slate-300 shadow-sm ring-1 ring-slate-200"},red:{idle:"text-red-600 border-transparent hover:bg-red-50 hover:border-red-200",active:"bg-red-50 text-red-700 border-red-200 shadow-sm ring-1 ring-red-100"},yellow:{idle:"text-yellow-600 border-transparent hover:bg-yellow-50 hover:border-yellow-200",active:"bg-yellow-50 text-yellow-800 border-yellow-200 shadow-sm ring-1 ring-yellow-100"},stone:{idle:"text-stone-600 border-transparent hover:bg-stone-50 hover:border-stone-200",active:"bg-stone-50 text-stone-800 border-stone-200 shadow-sm ring-1 ring-stone-100"}},x0=["indigo","violet","purple","amber","orange"],p0=["rose","sky","cyan","fuchsia"],g0=["indigo","sky","violet","emerald","rose","amber","cyan","fuchsia","lime","orange","blue","pink"];function Oa(t){let e=2166136261;for(let n=0;n<t.length;n++)e^=t.charCodeAt(n),e=Math.imul(e,16777619);return Math.abs(e)}var kh={select:"teal",single_bond:"indigo",double_bond:"violet",triple_bond:"purple",wedge_bond:"amber",dash_bond:"orange",curved_arrow:"rose",reaction_arrow:"sky",equilibrium_arrow:"cyan",resonance_arrow:"fuchsia",benzene:"emerald",cyclohexane:"lime",cyclopentane:"green",cyclobutane:"teal",cyclopropane:"cyan",atom:"indigo",charge_plus:"rose",charge_minus:"sky",charge_pos:"rose",charge_neg:"sky",radical:"orange",lone_pair:"violet",text:"slate",point:"blue",line:"indigo",string:"indigo",dashed:"stone",dashed_line:"stone",vector:"sky",ray:"amber",axes:"slate",axes_3d:"slate",angle:"violet",arc:"violet",curve_arrow:"fuchsia",wire:"slate",resistor:"amber",capacitor:"blue",inductor:"violet",diode:"purple",battery:"green",meter_v:"cyan",meter_a:"cyan",meter:"cyan",ground:"stone",ac_source:"orange",spring:"lime",block:"amber",wedge:"amber",cart:"orange",particle:"blue",disk:"violet",rod:"stone",pulley:"slate",pivot:"red",com:"pink",surface:"stone",dimension:"cyan",point_mass:"blue",block_mass:"amber",com_indicator:"pink",system_boundary:"fuchsia",dashed_path:"stone",rocket:"orange",uniform_rod:"lime",solid_disk:"violet",hoop_ring:"purple",rolling_body:"rose",inclined_wedge:"amber",rectangle:"indigo",circle:"blue",ellipse:"violet",parabola_v:"emerald",parabola_h:"emerald",hyperbola:"purple",modulus:"orange",step_function:"stone",shaded_area:"cyan",exponential:"green",logarithmic:"teal",sine_wave:"sky",standing_wave:"cyan",wave_pulse:"blue",shm_graph:"violet",energy_graph:"amber",strobe_shm:"fuchsia",wall:"slate",speaker:"orange",tuning_fork:"amber",wavefronts:"sky",mach_cone:"purple",beats_graph:"pink",mass_box:"amber",pendulum:"indigo",torsion_pendulum:"violet",vane_liquid:"cyan",phasor:"fuchsia",damped_wave:"rose",dipole:"fuchsia",charged_plate_pos:"rose",charged_plate_neg:"sky",gaussian_sphere:"stone",gaussian_cylinder:"slate",lens_convex:"amber",lens_concave:"orange",mirror_plane:"sky",mirror_concave:"cyan",mirror_convex:"teal",prism:"violet",glass_slab:"blue",photon:"yellow",slit_double:"pink",slit_single:"rose",energy_level:"emerald",nucleus:"orange",b_field_line:"blue",b_field_curve:"indigo",bezier:"violet",pole_piece:"amber",b_region_in:"sky",b_region_out:"cyan",current_wire:"orange",bar_magnet:"red",coil:"purple",piston_cylinder:"sky",heat_engine:"orange",conduction_rod:"amber",pv_axes:"indigo",thermo_process:"violet",carnot_cycle:"fuchsia",maxwell_boltzmann:"emerald",diatomic_gas:"lime",random_walk:"stone"},Sh=new Set(["wire","resistor","capacitor","inductor","diode","battery","meter_v","meter_a","meter","ground","ac_source"]);function Mh(t){let e=kh[t];if(e)return e;if(t.endsWith("_bond"))return x0[Oa(t)%x0.length];if(t.endsWith("_arrow"))return p0[Oa(t)%p0.length];let n=t.toLowerCase();if(n.includes("charge")&&(n.includes("pos")||n.includes("plus")||n.includes("_p")||n.endsWith("pos")))return "rose";if(n.includes("charge")&&(n.includes("neg")||n.includes("minus")))return "sky";if(t.startsWith("meter_"))return "violet";if(Sh.has(t)){let l=["slate","amber","blue","violet","green"];return l[Oa(t)%l.length]}if(n.includes("lens")||n.includes("mirror")||n==="ray"||n.includes("photon")){let l=["amber","sky","cyan","violet","yellow"];return l[Oa(t)%l.length]}return g0[Oa(t)%g0.length]}function b0(t,e){let n=Mh(t);return e?m0[n].active:m0[n].idle}var dn=j(F()),v0=({categories:t,tool:e,onSelect:n})=>(0, dn.jsx)("aside",{className:"w-[108px] border-r border-slate-200 bg-gradient-to-b from-slate-50 to-white flex flex-col items-center py-3 gap-4 overflow-y-auto shrink-0",children:t.map(l=>(0, dn.jsxs)("section",{className:"flex flex-col items-center w-full px-2",children:[(0, dn.jsx)("div",{className:"text-[10px] font-semibold uppercase tracking-[0.20em] text-slate-400 mb-2 w-full text-center border-b border-slate-200 pb-1.5",children:l.name}),(0, dn.jsx)("div",{className:"flex flex-col gap-1.5 w-full items-center",children:l.tools.map(a=>{let i=b0(a.id,e===a.id);return (0, dn.jsxs)("button",{type:"button",onClick:()=>n(a.id),title:a.name,className:`p-2 rounded-xl border flex flex-col items-center gap-1 transition-all w-full ${i}`,children:[(0, dn.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:Nr[a.id]??Nr.line}),(0, dn.jsx)("span",{className:"text-[11px] font-medium tracking-tight leading-tight text-center",children:a.name})]},a.id)})})]},l.name))});var S=j(F()),_h=t=>["gaussian_cylinder","lens_convex","lens_concave","mirror_concave","mirror_convex","b_field_curve"].includes(t),Eh=t=>["lens_convex","lens_concave","mirror_concave","mirror_convex"].includes(t),zh=t=>["text","point","charge_pos","charge_neg","point_mass","com_indicator","diatomic_gas","mass_box"].includes(t),Wh=t=>["point_mass","com_indicator","pivot"].includes(t),Ch=t=>["pendulum","mass_box"].includes(t),$h=t=>["sine_wave","standing_wave","wave_pulse","damped_wave","beats_graph","shm_graph","energy_graph","strobe_shm"].includes(t),Ah=t=>["sine_wave","standing_wave","shm_graph","energy_graph","strobe_shm"].includes(t),Dh=t=>t==="rolling_body",Th=t=>t==="spring",wh=t=>["block","cart"].includes(t),k0=({element:t,onChange:e,onDelete:n,onClose:l})=>t?(0, S.jsxs)("div",{id:"svg-engine-properties-panel",role:"region","aria-label":"Element properties",className:"absolute right-6 top-6 w-80 bg-white/95 backdrop-blur rounded-xl shadow-2xl border border-slate-200 flex flex-col p-5 z-30 max-h-[80vh] overflow-y-auto",children:[(0, S.jsxs)("div",{className:"flex justify-between items-center border-b border-slate-100 pb-3 mb-4 sticky top-0 bg-white z-10",children:[(0, S.jsx)("h3",{className:"text-[11px] font-semibold text-blue-700 uppercase tracking-[0.18em]",children:"Properties"}),(0, S.jsx)("button",{type:"button",onClick:l,className:"text-slate-400 hover:text-slate-800",children:"\u2715"})]}),(0, S.jsxs)("div",{className:"space-y-4",children:[(0, S.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.label||""),onChange:a=>e("label",a.target.value),placeholder:"Label"}),(0, S.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.value||""),onChange:a=>e("value",a.target.value),placeholder:"Value"}),(0, S.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, S.jsx)("input",{type:"color",value:String(t.color||"#0f172a"),onChange:a=>e("color",a.target.value),className:"h-10 w-full rounded-lg border border-slate-200"}),(0, S.jsx)("input",{type:"number",className:"px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.strokeWidth||2),onChange:a=>e("strokeWidth",Number(a.target.value))})]}),wh(String(t.type))&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Rotation (degrees)"}),(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.rotation??0),onChange:a=>e("rotation",Number(a.target.value))})]}),_h(String(t.type))&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:t.type==="gaussian_cylinder"?"Cylinder half-height (curveHeight)":"Curve height"}),Eh(String(t.type))?(0, S.jsxs)(S.Fragment,{children:[(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",placeholder:"Auto",value:t.curveHeight===void 0||t.curveHeight===null?"":Number(t.curveHeight),onChange:a=>{let i=a.target.value;if(i==="")e("curveHeight",void 0);else {let o=Number(i);e("curveHeight",Number.isFinite(o)?o:void 0);}}}),(0, S.jsx)("p",{className:"text-[11px] text-slate-500 leading-snug",children:"Empty = auto (scales with chord length: lenses ~15% / 4% sagitta, mirrors ~20%)."})]}):(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.curveHeight??(t.type==="b_field_curve"?50:t.type==="gaussian_cylinder"?40:20)),onChange:a=>e("curveHeight",Number(a.target.value))})]}),String(t.type)==="bezier"&&(0, S.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, S.jsx)("input",{type:"checkbox",checked:!!t.showArrow,onChange:a=>e("showArrow",a.target.checked)}),(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show arrow on curve"})]}),String(t.type)==="energy_level"&&(0, S.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.energy??""),onChange:a=>e("energy",a.target.value),placeholder:"Energy (e.g. -13.6 eV)"}),zh(String(t.type))&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Font size"}),(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.fontSize??16),onChange:a=>e("fontSize",Number(a.target.value))})]}),Wh(String(t.type))&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Size (radius / pivot scale)"}),(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.size??15),onChange:a=>e("size",Number(a.target.value))})]}),Ch(String(t.type))&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:t.type==="mass_box"?"Block size":"Bob radius"}),(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.size??(t.type==="mass_box"?30:15)),onChange:a=>e("size",Number(a.target.value))})]}),Dh(String(t.type))&&(0, S.jsxs)("div",{className:"flex flex-col gap-2 text-sm text-slate-700",children:[(0, S.jsxs)("label",{className:"flex items-center gap-2",children:[(0, S.jsx)("input",{type:"checkbox",checked:!!t.showVelocity,onChange:a=>e("showVelocity",a.target.checked)}),(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show velocity (v)"})]}),(0, S.jsxs)("label",{className:"flex items-center gap-2",children:[(0, S.jsx)("input",{type:"checkbox",checked:!!t.showOmega,onChange:a=>e("showOmega",a.target.checked)}),(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show angular velocity (\u03C9)"})]})]}),Th(String(t.type))&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Coils"}),(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.coils??6),onChange:a=>e("coils",Number(a.target.value))})]}),String(t.type)==="piston_cylinder"&&(0, S.jsxs)(S.Fragment,{children:[(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Compression (0.1\u20130.9)"}),(0, S.jsx)("input",{type:"range",min:.1,max:.9,step:.05,className:"w-full",value:Number(t.compression??.5),onChange:a=>e("compression",Number(a.target.value))})]}),(0, S.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, S.jsx)("input",{type:"checkbox",checked:!!t.showHeat,onChange:a=>e("showHeat",a.target.checked)}),(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show heat source (Q)"})]})]}),String(t.type)==="heat_engine"&&(0, S.jsxs)(S.Fragment,{children:[(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Machine type"}),(0, S.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.engineType??"engine"),onChange:a=>e("engineType",a.target.value),children:[(0, S.jsx)("option",{value:"engine",children:"Heat engine"}),(0, S.jsx)("option",{value:"refrigerator",children:"Refrigerator / pump"})]})]}),(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Efficiency (display)"}),(0, S.jsx)("input",{type:"number",min:0,max:1,step:.05,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.efficiency??.4),onChange:a=>e("efficiency",Number(a.target.value))})]})]}),String(t.type)==="thermo_process"&&(0, S.jsxs)(S.Fragment,{children:[(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Process type"}),(0, S.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.processType??"isotherm"),onChange:a=>e("processType",a.target.value),children:[(0, S.jsx)("option",{value:"isotherm",children:"Isothermal"}),(0, S.jsx)("option",{value:"adiabatic",children:"Adiabatic"}),(0, S.jsx)("option",{value:"isobaric",children:"Isobaric"}),(0, S.jsx)("option",{value:"isochoric",children:"Isochoric"})]})]}),(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Line style"}),(0, S.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.lineStyle??"solid"),onChange:a=>e("lineStyle",a.target.value),children:[(0, S.jsx)("option",{value:"solid",children:"Solid"}),(0, S.jsx)("option",{value:"dashed",children:"Dashed"}),(0, S.jsx)("option",{value:"dotted",children:"Dotted"})]})]})]}),String(t.type)==="pv_axes"&&(0, S.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"X label (V)"}),(0, S.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.xLabel??"V"),onChange:a=>e("xLabel",a.target.value)})]}),(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Y label (P)"}),(0, S.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.yLabel??"P"),onChange:a=>e("yLabel",a.target.value)})]})]}),String(t.type)==="maxwell_boltzmann"&&(0, S.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"T\u2081 (K)"}),(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.t1??300),onChange:a=>e("t1",Number(a.target.value))})]}),(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"T\u2082 (K)"}),(0, S.jsx)("input",{type:"number",className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.t2??600),onChange:a=>e("t2",Number(a.target.value))})]})]}),String(t.type)==="diatomic_gas"&&(0, S.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, S.jsx)("input",{type:"checkbox",checked:t.showRotations!==false,onChange:a=>e("showRotations",a.target.checked)}),(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show rotation DOF"})]}),String(t.type)==="random_walk"&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Steps"}),(0, S.jsx)("input",{type:"number",min:2,max:30,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.steps??5),onChange:a=>e("steps",Number(a.target.value))})]}),$h(String(t.type))&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Amplitude"}),(0, S.jsx)("input",{type:"number",min:1,max:200,step:1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.amplitude??40),onChange:a=>e("amplitude",Number(a.target.value))})]}),Ah(String(t.type))&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Loops / waves (n)"}),(0, S.jsx)("input",{type:"number",min:.5,max:20,step:.5,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.loops??2),onChange:a=>e("loops",Number(a.target.value))})]}),String(t.type)==="shm_graph"&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Graph function"}),(0, S.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.graphType??"x"),onChange:a=>e("graphType",a.target.value),children:[(0, S.jsx)("option",{value:"x",children:"Position x(t)"}),(0, S.jsx)("option",{value:"v",children:"Velocity v(t)"}),(0, S.jsx)("option",{value:"a",children:"Acceleration a(t)"}),(0, S.jsx)("option",{value:"all",children:"Compare all three"})]})]}),String(t.type)==="energy_graph"&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Domain"}),(0, S.jsxs)("select",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm bg-white",value:String(t.domain??"time"),onChange:a=>e("domain",a.target.value),children:[(0, S.jsx)("option",{value:"time",children:"Versus time (t)"}),(0, S.jsx)("option",{value:"position",children:"Versus position (x)"})]})]}),String(t.type)==="pendulum"&&(0, S.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, S.jsx)("input",{type:"checkbox",checked:!!t.showForces,onChange:a=>e("showForces",a.target.checked)}),(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show force vectors"})]}),String(t.type)==="phasor"&&(0, S.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, S.jsx)("input",{type:"checkbox",checked:!!t.showProjection,onChange:a=>e("showProjection",a.target.checked)}),(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show axis projections"})]}),String(t.type)==="damped_wave"&&(0, S.jsxs)(S.Fragment,{children:[(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Damping (b/2m)"}),(0, S.jsx)("input",{type:"number",min:0,max:.1,step:.005,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.damping??.015),onChange:a=>e("damping",Number(a.target.value))})]}),(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Angular frequency (\u03C9)"}),(0, S.jsx)("input",{type:"number",min:1,max:50,step:1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.frequency??10),onChange:a=>e("frequency",Number(a.target.value))})]})]}),String(t.type)==="beats_graph"&&(0, S.jsxs)(S.Fragment,{children:[(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Carrier frequency (avg f)"}),(0, S.jsx)("input",{type:"number",min:5,max:50,step:1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.frequency??15),onChange:a=>e("frequency",Number(a.target.value))})]}),(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Beat frequency (\u0394f)"}),(0, S.jsx)("input",{type:"number",min:.1,max:10,step:.1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.beatFreq??2),onChange:a=>e("beatFreq",Number(a.target.value))})]})]}),String(t.type)==="wavefronts"&&(0, S.jsxs)(S.Fragment,{children:[(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Velocity ratio (v_s / v)"}),(0, S.jsx)("input",{type:"number",min:0,max:.9,step:.1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.velocityRatio??.5),onChange:a=>e("velocityRatio",Number(a.target.value))})]}),(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Rings"}),(0, S.jsx)("input",{type:"number",min:1,max:20,step:1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.rings??5),onChange:a=>e("rings",Number(a.target.value))})]})]}),String(t.type)==="mach_cone"&&(0, S.jsxs)("label",{className:"block space-y-1",children:[(0, S.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Mach number (M)"}),(0, S.jsx)("input",{type:"number",min:1.05,max:5,step:.1,className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.machNumber??2),onChange:a=>e("machNumber",Number(a.target.value))})]}),(0, S.jsx)("button",{type:"button",onClick:n,className:"w-full py-2 bg-red-50 text-red-600 hover:bg-red-100 rounded-lg text-sm font-semibold transition",children:"Delete Element"})]})]}):null;var we=j(F()),S0=({open:t,jsonText:e,setJsonText:n,onClose:l,onLoad:a})=>t?(0, we.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:(0, we.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-2xl flex flex-col max-h-full",children:[(0, we.jsxs)("div",{className:"px-6 py-4 border-b flex justify-between items-center",children:[(0, we.jsx)("h2",{className:"text-lg font-bold text-gray-800",children:"Diagram Data (JSON)"}),(0, we.jsx)("button",{onClick:l,className:"text-gray-500 hover:text-gray-800 font-bold",children:"\u2715"})]}),(0, we.jsx)("div",{className:"p-6 flex-1 overflow-hidden flex flex-col gap-4",children:(0, we.jsx)("textarea",{value:e,onChange:i=>n(i.target.value),className:"w-full flex-1 min-h-[300px] p-4 font-mono text-sm border border-gray-300 rounded-md",spellCheck:"false"})}),(0, we.jsxs)("div",{className:"px-6 py-4 border-t bg-gray-50 flex justify-end gap-3",children:[(0, we.jsx)("button",{onClick:l,className:"px-4 py-2 text-sm font-medium text-gray-700 hover:bg-gray-200 rounded-md transition",children:"Cancel"}),(0, we.jsx)("button",{onClick:a,className:"px-4 py-2 text-sm font-medium bg-blue-600 text-white hover:bg-blue-700 rounded-md transition shadow-sm",children:"Load Diagram"})]})]})}):null;var ft=j(F()),Nh=Fe.mechanics,Or=(0, le.forwardRef)(function({initialElements:e,toolCategories:n,preset:l,enablePresetSwitch:a=true,onPresetChange:i,onChange:o,viewMode:r,embedded:s=false,documentTitle:u,hideDocumentTitle:f=false,onExport:y},d){let[m,_]=(0, le.useState)(l??"mechanics"),[E,T]=(0, le.useState)(0),x=l!==void 0&&typeof i=="function";(0, le.useEffect)(()=>{x&&l&&_(l);},[l,x]);let h=x?l??m:m,p=Fe[h]??Nh;(0, le.useEffect)(()=>{T(0);},[h]);let M=(0, le.useMemo)(()=>e??(p.examples?.[E]?.elements??p.elements).slice(),[e,p,E]),k=h0(M,h);(0, le.useEffect)(()=>{o?.(k.elements);},[k.elements,o]),(0, le.useEffect)(()=>{typeof r=="boolean"&&k.setIsViewMode(r);},[r,k.setIsViewMode]),(0, le.useEffect)(()=>{k.selectedId||k.setShowProperties(false);},[k.selectedId,k.setShowProperties]);let Y=n??p.toolCategories;(0, le.useImperativeHandle)(d,()=>({getData:()=>k.elements,setData:Q=>k.setElements(Q),clear:()=>k.setElements([])}),[k.elements,k.setElements]);let N=u??`${p.name} Editor`,L=()=>{let Q=JSON.stringify(k.elements,null,2);y?.({elements:k.elements,json:Q}),typeof navigator<"u"&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(Q);},Z=(Q,U)=>{k.setElements(V=>V.map(pt=>{if(pt.id!==k.selectedId)return pt;if(U===void 0){let re={...pt};return delete re[Q],re}return {...pt,[Q]:U}}));},P=()=>{k.selectedId&&(k.setElements(Q=>Q.filter(U=>U.id!==k.selectedId)),k.setSelectedId(null),k.setShowProperties(false));},te=s?"flex flex-col h-full min-h-0 w-full bg-white text-gray-900 font-sans":"flex flex-col h-screen w-full bg-white text-gray-900 font-sans",Ge="text-xs md:text-sm px-2.5 md:px-3.5 py-2 rounded-lg font-medium transition border border-transparent";return (0, ft.jsxs)("div",{className:te,children:[(0, ft.jsxs)("header",{className:"border-b border-slate-200 bg-white/95 backdrop-blur flex items-center justify-between px-3 md:px-6 py-2 shadow-sm z-20 shrink-0 gap-2 min-w-0",children:[(0, ft.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 min-w-0",children:[a&&(0, ft.jsxs)("div",{className:"relative shrink-0",children:[(0, ft.jsx)("select",{value:h,onChange:Q=>{let U=Q.target.value;x||_(U),i?.(U);},className:"appearance-none text-xs md:text-sm pl-3 pr-8 py-2 rounded-full border border-slate-200 bg-slate-50 text-slate-700 shadow-sm hover:bg-slate-100 focus:outline-none focus:ring-2 focus:ring-blue-200",title:"Switch preset",children:Object.keys(Fe).map(Q=>(0, ft.jsx)("option",{value:Q,children:Fe[Q].name},Q))}),(0, ft.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-slate-500 text-xs",children:"\u25BC"})]}),e==null&&p.examples&&p.examples.length>0&&(0, ft.jsxs)("div",{className:"relative shrink-0 max-w-[min(280px,46vw)]",children:[(0, ft.jsx)("select",{value:E,onChange:Q=>T(Number(Q.target.value)),className:"appearance-none w-full text-xs md:text-sm pl-3 pr-8 py-2 rounded-full border border-violet-200 bg-violet-50/90 text-violet-900 shadow-sm hover:bg-violet-100 focus:outline-none focus:ring-2 focus:ring-violet-200 truncate",title:"Load example scene",children:p.examples.map((Q,U)=>(0, ft.jsx)("option",{value:U,children:Q.name},Q.name))}),(0, ft.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-violet-600 text-xs",children:"\u25BC"})]}),!f&&(0, ft.jsx)("h1",{className:"text-lg md:text-2xl font-semibold tracking-tight text-slate-800 truncate min-w-0",children:N})]}),(0, ft.jsxs)("div",{className:`flex gap-1.5 md:gap-3 items-center flex-wrap justify-end ${f?"ml-auto w-full":"ml-auto"}`,children:[(0, ft.jsx)("button",{type:"button",onClick:L,className:`${Ge} text-slate-700 hover:bg-emerald-50 hover:text-emerald-700`,children:"Copy JSON"}),(0, ft.jsx)("button",{type:"button",onClick:()=>{k.setJsonText(JSON.stringify(k.elements,null,2)),k.setShowJsonModal(true);},className:`${Ge} text-slate-700 hover:bg-blue-50 hover:text-blue-700`,children:"Export/Import"}),k.selectedId!=null&&!k.isViewMode&&(0, ft.jsxs)("button",{type:"button",onClick:()=>k.setShowProperties(Q=>!Q),className:`${Ge} inline-flex items-center gap-1.5 ${k.showProperties?"bg-violet-100 text-violet-800 border-violet-200":"text-slate-700 hover:bg-violet-50 hover:text-violet-800"}`,title:k.showProperties?"Hide properties":"Edit properties","aria-expanded":k.showProperties,"aria-controls":"svg-engine-properties-panel",children:[(0, ft.jsx)("svg",{className:"w-4 h-4 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":true,children:(0, ft.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"})}),(0, ft.jsx)("span",{className:"hidden sm:inline",children:"Properties"})]}),(0, ft.jsx)("button",{type:"button",onClick:()=>{k.setIsViewMode(!k.isViewMode),k.setSelectedId(null),k.setTool("select");},className:`${Ge} ${k.isViewMode?"bg-blue-100 text-blue-800 border-blue-200":"text-slate-700 hover:bg-blue-50 hover:text-blue-700"}`,children:k.isViewMode?"Exit Preview":"Preview Mode"})]})]}),(0, ft.jsxs)("div",{className:"flex flex-1 overflow-hidden min-h-0",children:[!k.isViewMode&&(0, ft.jsx)(v0,{categories:Y,tool:k.tool,onSelect:Q=>{k.setTool(Q),k.setSelectedId(null);}}),(0, ft.jsxs)("div",{className:"flex-1 relative overflow-hidden bg-slate-50 min-h-0",children:[(0, ft.jsx)(Xi,{svgRef:k.svgRef,className:"w-full h-full",elements:k.elements,drawing:k.drawing,selectedId:k.selectedId,viewMode:k.isViewMode,onBackgroundMouseDown:k.isViewMode?void 0:k.handleMouseDown,onBackgroundMouseMove:k.isViewMode?void 0:k.handleMouseMove,onBackgroundMouseUp:k.isViewMode?void 0:k.handleMouseUp,onBackgroundMouseLeave:k.isViewMode?void 0:k.handleMouseUp,onElementMouseDown:k.onElementMouseDown,onHandlePointerDown:k.isViewMode?void 0:k.onHandlePointerDown}),k.showProperties&&k.selectedId&&!k.isViewMode&&(0, ft.jsx)(k0,{element:k.selectedElement,onChange:Z,onDelete:P,onClose:()=>k.setShowProperties(false)})]})]}),(0, ft.jsx)(S0,{open:k.showJsonModal,jsonText:k.jsonText,setJsonText:k.setJsonText,onClose:()=>k.setShowJsonModal(false),onLoad:()=>{try{k.setElements(JSON.parse(k.jsonText)),k.setShowJsonModal(!1);}catch{alert("Invalid JSON format");}}})]})});var fe=j(F()),Oh=t=>{switch(t){case "top-left":return {top:16,left:16};case "top-right":return {top:16,right:16};case "bottom-left":return {bottom:16,left:16};case "bottom-right":return {bottom:16,right:16};case "center":return {top:"50%",left:"50%",transform:"translate(-50%, -50%)"};default:return {top:16,right:16}}},M0=(0, jt.forwardRef)(function({mode:e="floating",title:n="Diagram editor",startMinimized:l=false,position:a="top-right",width:i="min(960px, 92vw)",height:o="min(640px, 78vh)",onChange:r,onExport:s,onShellMinimize:u,onShellMaximize:f,onShellClose:y,documentTitle:d,...m},_){let E=(0, jt.useRef)(null),[T,x]=(0, jt.useState)(l),[h,p]=(0, jt.useState)(false),[M,k]=(0, jt.useState)(false),[Y,N]=(0, jt.useState)({x:0,y:0}),L=(0, jt.useRef)(null),Z=(0, jt.useRef)(null);(0, jt.useImperativeHandle)(_,()=>({getData:()=>E.current?.getData()??[],setData:V=>E.current?.setData(V),clear:()=>E.current?.clear(),minimize:()=>{x(true),p(false);},maximize:()=>{x(false),p(true);},restore:()=>{x(false),p(false);},close:()=>k(true),open:()=>k(false)}),[]);let P=(0, jt.useCallback)(V=>{s?.(V);},[s]),te=V=>{e!=="floating"||h||(V.preventDefault(),L.current={startX:V.clientX,startY:V.clientY,ox:Y.x,oy:Y.y},V.currentTarget.setPointerCapture(V.pointerId));},Ge=V=>{if(!L.current||e!=="floating"||h)return;let pt=V.clientX-L.current.startX,re=V.clientY-L.current.startY;N({x:L.current.ox+pt,y:L.current.oy+re});},Q=V=>{L.current=null;try{V.currentTarget.releasePointerCapture(V.pointerId);}catch{}},U=(0, jt.useMemo)(()=>{if(e!=="floating")return {};let V=a==="center"?`translate(calc(-50% + ${Y.x}px), calc(-50% + ${Y.y}px))`:`translate(${Y.x}px, ${Y.y}px)`,pt={position:"fixed",zIndex:9999,display:M?"none":"flex",flexDirection:"column",background:"#fff",borderRadius:"12px",boxShadow:"0 25px 50px -12px rgb(0 0 0 / 0.25)",border:"1px solid #e2e8f0",overflow:"hidden",transform:V};if(h)return {...pt,inset:16,width:"auto",height:"auto",maxWidth:"none",maxHeight:"none",transform:`translate(${Y.x}px, ${Y.y}px)`};let re=T?"auto":void 0;return {...pt,...Oh(a),width:i,height:T?re:o,maxHeight:T?"none":"90vh",maxWidth:"96vw"}},[e,M,h,T,a,i,o,Y]);return e==="inline"?(0, fe.jsx)("div",{className:"flex flex-col bg-white rounded-lg border border-gray-200 overflow-hidden",style:{width:i,height:o},children:(0, fe.jsx)(Or,{ref:E,...m,embedded:true,documentTitle:d??n,onChange:r,onExport:P})}):(0, fe.jsxs)("div",{ref:Z,style:U,className:"font-sans text-gray-900",children:[(0, fe.jsxs)("div",{className:"h-11 shrink-0 flex items-center justify-between px-3 border-b border-gray-100 bg-slate-50 cursor-grab active:cursor-grabbing select-none",onPointerDown:te,onPointerMove:Ge,onPointerUp:Q,onPointerCancel:Q,children:[(0, fe.jsx)("span",{className:"text-sm font-semibold text-slate-800 truncate pr-2",children:n}),(0, fe.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0, fe.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-slate-200 text-slate-600",title:T?"Expand":"Minimize",onClick:V=>{V.stopPropagation(),x(pt=>!pt),T||p(false),u?.();},children:T?"\u25A2":"\u2212"}),(0, fe.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-slate-200 text-slate-600",title:h?"Restore":"Maximize",onClick:V=>{V.stopPropagation(),p(pt=>!pt),h||x(false),f?.();},children:"\u25A1"}),(0, fe.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-red-100 text-red-600",title:"Close",onClick:V=>{V.stopPropagation(),k(true),y?.();},children:"\xD7"})]})]}),(0, fe.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",style:T?{maxHeight:0,opacity:0,overflow:"hidden",pointerEvents:"none"}:void 0,"aria-hidden":T,children:(0, fe.jsx)(Or,{ref:E,...m,embedded:true,hideDocumentTitle:true,documentTitle:d,onChange:r,onExport:P})}),T&&(0, fe.jsx)("div",{className:"px-3 py-2 text-xs text-slate-500 border-t border-gray-100 bg-white",children:"Editor minimized \u2014 click \u25A2 on the bar to expand."})]})});var ly=j(ny());function br(t,e){let n=(0, ly.createRoot)(t);return n.render(e),n}function vr(t){t.unmount();}var oy=j(F());function fp(t){if(!(t==null||t===""))try{let e=JSON.parse(t);return Array.isArray(e)?e:void 0}catch{return}}function ay(t,e){return t===null||t===""?e:t==="true"||t===""}var $a=class extends HTMLElement{constructor(){super(...arguments);this.editorRef=(0, iy.createRef)();this._elements=null;this._preset=null;this._mode=null;this._viewMode=null;this.committedInitial=null;this.pendingReseed=true;}connectedCallback(){this.style.display||(this.style.display="block"),this.render();}disconnectedCallback(){this.root&&(vr(this.root),this.root=void 0);}attributeChangedCallback(n){(n==="data"||n==="preset")&&(this._elements=null,this.pendingReseed=true),this.isConnected&&this.render();}get elements(){return this.editorRef.current?.getData()??this.committedInitial??[]}set elements(n){this._elements=n.slice(),this.pendingReseed=true,this.render();}get preset(){let n=this._preset??this.getAttribute("preset");return n&&Fe[n]?n:void 0}set preset(n){this._preset=n??null,this.pendingReseed=true,this.render();}get mode(){let n=this._mode??this.getAttribute("mode");return n==="inline"||n==="floating"?n:"floating"}set mode(n){this._mode=n,this.render();}get viewMode(){return this._viewMode??ay(this.getAttribute("view-mode"),false)}set viewMode(n){this._viewMode=n,this.render();}getData(){return this.editorRef.current?.getData()??this.committedInitial??[]}setData(n){this._elements=n.slice(),this.committedInitial=n.slice(),this.pendingReseed=false,this.editorRef.current?this.editorRef.current.setData(n):this.render();}toJSON(){return JSON.stringify(this.getData(),null,2)}clear(){this._elements=[],this.committedInitial=[],this.pendingReseed=false,this.editorRef.current?this.editorRef.current.clear():this.render();}minimize(){this.editorRef.current?.minimize();}maximize(){this.editorRef.current?.maximize();}restore(){this.editorRef.current?.restore();}close(){this.editorRef.current?.close();}readParsedInitial(){let n=fp(this.getAttribute("data")),l=this._preset??this.getAttribute("preset"),a=l&&Fe[l]?Fe[l]:Fe.mechanics;return this._elements?this._elements.slice():n?n.slice():a.elements.slice()}render(){(this.pendingReseed||this.committedInitial===null)&&(this.committedInitial=this.readParsedInitial(),this.pendingReseed=false);let n=this.mode,l=this.viewMode,a=this.getAttribute("title")??"Diagram editor",i=ay(this.getAttribute("start-minimized"),false),o=this.getAttribute("position")??"top-right",r=this.getAttribute("width"),s=this.getAttribute("height"),u=r===""?void 0:r??void 0,f=s===""?void 0:s??void 0,y=this.preset,d=this.committedInitial,m=(0, oy.jsx)(M0,{ref:this.editorRef,mode:n,title:a,startMinimized:i,position:o,width:u,height:f,preset:y,initialElements:d,viewMode:l,onChange:_=>{this.dispatchEvent(new CustomEvent("change",{detail:{elements:_},bubbles:true,composed:true}));},onExport:_=>{this.dispatchEvent(new CustomEvent("export",{detail:{elements:_.elements,json:_.json},bubbles:true,composed:true}));},onShellMinimize:()=>{this.dispatchEvent(new CustomEvent("minimize",{bubbles:true,composed:true}));},onShellMaximize:()=>{this.dispatchEvent(new CustomEvent("maximize",{bubbles:true,composed:true}));},onShellClose:()=>{this.dispatchEvent(new CustomEvent("close",{bubbles:true,composed:true}));}});this.root?this.root.render(m):this.root=br(this,m);}};$a.observedAttributes=["mode","preset","data","view-mode","title","start-minimized","position","width","height"];var sy=j(sn());var hu=j(F());function ry(t){if(!(t==null||t===""))try{let e=JSON.parse(t);return Array.isArray(e)?e:void 0}catch{return}}function dp(t,e){return t===null||t===""?e:t==="true"||t===""}var Aa=class extends HTMLElement{constructor(){super(...arguments);this.svgRef=(0, sy.createRef)();this._elements=null;this._showGrid=null;}connectedCallback(){this.style.display||(this.style.display="block"),this.render();}disconnectedCallback(){this.root&&(vr(this.root),this.root=void 0);}attributeChangedCallback(){this.isConnected&&this.render();}get elements(){return this._elements??ry(this.getAttribute("data"))??[]}set elements(n){this._elements=n.slice(),this.render();}get showGrid(){return this._showGrid??dp(this.getAttribute("show-grid"),false)}set showGrid(n){this._showGrid=n,this.render();}setData(n){this._elements=n.slice(),this.render();}toSvg(){return this.svgRef.current?.outerHTML??""}render(){let n=ry(this.getAttribute("data")),l=this._elements??n??[],a=this.getAttribute("width")??"100%",i=this.getAttribute("height")??"100%",o=this.showGrid,r=(0, hu.jsx)("div",{style:{width:a,height:i},className:"bg-white overflow-hidden",children:(0, hu.jsx)(Xi,{elements:l,viewMode:true,showGrid:o,className:"w-full h-full block",svgRef:this.svgRef})});this.root?this.root.render(r):this.root=br(this,r);}};Aa.observedAttributes=["data","width","height","show-grid"];function cy(){typeof window>"u"||typeof customElements>"u"||(customElements.get("codefrydev-svg-engine")||customElements.define("codefrydev-svg-engine",$a),customElements.get("codefrydev-svg-engine-prev")||customElements.define("codefrydev-svg-engine-prev",Aa));}cy();/*! Bundled license information:
|
|
244
10
|
|
|
245
11
|
react/cjs/react.production.js:
|
|
246
12
|
(**
|
|
@@ -253,17 +19,6 @@ react/cjs/react.production.js:
|
|
|
253
19
|
* LICENSE file in the root directory of this source tree.
|
|
254
20
|
*)
|
|
255
21
|
|
|
256
|
-
react/cjs/react.development.js:
|
|
257
|
-
(**
|
|
258
|
-
* @license React
|
|
259
|
-
* react.development.js
|
|
260
|
-
*
|
|
261
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
262
|
-
*
|
|
263
|
-
* This source code is licensed under the MIT license found in the
|
|
264
|
-
* LICENSE file in the root directory of this source tree.
|
|
265
|
-
*)
|
|
266
|
-
|
|
267
22
|
react/cjs/react-jsx-runtime.production.js:
|
|
268
23
|
(**
|
|
269
24
|
* @license React
|
|
@@ -275,17 +30,6 @@ react/cjs/react-jsx-runtime.production.js:
|
|
|
275
30
|
* LICENSE file in the root directory of this source tree.
|
|
276
31
|
*)
|
|
277
32
|
|
|
278
|
-
react/cjs/react-jsx-runtime.development.js:
|
|
279
|
-
(**
|
|
280
|
-
* @license React
|
|
281
|
-
* react-jsx-runtime.development.js
|
|
282
|
-
*
|
|
283
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
284
|
-
*
|
|
285
|
-
* This source code is licensed under the MIT license found in the
|
|
286
|
-
* LICENSE file in the root directory of this source tree.
|
|
287
|
-
*)
|
|
288
|
-
|
|
289
33
|
scheduler/cjs/scheduler.production.js:
|
|
290
34
|
(**
|
|
291
35
|
* @license React
|
|
@@ -297,17 +41,6 @@ scheduler/cjs/scheduler.production.js:
|
|
|
297
41
|
* LICENSE file in the root directory of this source tree.
|
|
298
42
|
*)
|
|
299
43
|
|
|
300
|
-
scheduler/cjs/scheduler.development.js:
|
|
301
|
-
(**
|
|
302
|
-
* @license React
|
|
303
|
-
* scheduler.development.js
|
|
304
|
-
*
|
|
305
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
306
|
-
*
|
|
307
|
-
* This source code is licensed under the MIT license found in the
|
|
308
|
-
* LICENSE file in the root directory of this source tree.
|
|
309
|
-
*)
|
|
310
|
-
|
|
311
44
|
react-dom/cjs/react-dom.production.js:
|
|
312
45
|
(**
|
|
313
46
|
* @license React
|
|
@@ -319,17 +52,6 @@ react-dom/cjs/react-dom.production.js:
|
|
|
319
52
|
* LICENSE file in the root directory of this source tree.
|
|
320
53
|
*)
|
|
321
54
|
|
|
322
|
-
react-dom/cjs/react-dom.development.js:
|
|
323
|
-
(**
|
|
324
|
-
* @license React
|
|
325
|
-
* react-dom.development.js
|
|
326
|
-
*
|
|
327
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
328
|
-
*
|
|
329
|
-
* This source code is licensed under the MIT license found in the
|
|
330
|
-
* LICENSE file in the root directory of this source tree.
|
|
331
|
-
*)
|
|
332
|
-
|
|
333
55
|
react-dom/cjs/react-dom-client.production.js:
|
|
334
56
|
(**
|
|
335
57
|
* @license React
|
|
@@ -340,15 +62,4 @@ react-dom/cjs/react-dom-client.production.js:
|
|
|
340
62
|
* This source code is licensed under the MIT license found in the
|
|
341
63
|
* LICENSE file in the root directory of this source tree.
|
|
342
64
|
*)
|
|
343
|
-
|
|
344
|
-
react-dom/cjs/react-dom-client.development.js:
|
|
345
|
-
(**
|
|
346
|
-
* @license React
|
|
347
|
-
* react-dom-client.development.js
|
|
348
|
-
*
|
|
349
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
350
|
-
*
|
|
351
|
-
* This source code is licensed under the MIT license found in the
|
|
352
|
-
* LICENSE file in the root directory of this source tree.
|
|
353
|
-
*)
|
|
354
|
-
*/exports.CodefrydevSvgEngine=kf;exports.CodefrydevSvgEnginePrev=Cf;exports.defineSvgEngineComponents=ik;return exports;})({});
|
|
65
|
+
*/exports.CodefrydevSvgEngine=$a;exports.CodefrydevSvgEnginePrev=Aa;exports.defineSvgEngineComponents=cy;return exports;})({});
|