@codefrydev/svg-engine 0.1.1 → 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.
Files changed (3) hide show
  1. package/README.md +55 -0
  2. package/dist/wc.iife.js +10 -299
  3. package/package.json +4 -2
package/dist/wc.iife.js CHANGED
@@ -1,246 +1,12 @@
1
- var CodefrydevSvgEngine=(function(exports){'use strict';var d7=Object.create;var WM=Object.defineProperty;var h7=Object.getOwnPropertyDescriptor;var y7=Object.getOwnPropertyNames;var m7=Object.getPrototypeOf,p7=Object.prototype.hasOwnProperty;var Sa=(t,a)=>()=>(a||t((a={exports:{}}).exports,a),a.exports);var g7=(t,a,l,i)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of y7(a))!p7.call(t,r)&&r!==l&&WM(t,r,{get:()=>a[r],enumerable:!(i=h7(a,r))||i.enumerable});return t};var $t=(t,a,l)=>(l=t!=null?d7(m7(t)):{},g7(WM(l,"default",{value:t,enumerable:true}),t));var FM=Sa(Xt=>{var ib=Symbol.for("react.transitional.element"),x7=Symbol.for("react.portal"),b7=Symbol.for("react.fragment"),v7=Symbol.for("react.strict_mode"),S7=Symbol.for("react.profiler"),E7=Symbol.for("react.consumer"),M7=Symbol.for("react.context"),_7=Symbol.for("react.forward_ref"),k7=Symbol.for("react.suspense"),z7=Symbol.for("react.memo"),GM=Symbol.for("react.lazy"),T7=Symbol.for("react.activity"),BM=Symbol.iterator;function A7(t){return t===null||typeof t!="object"?null:(t=BM&&t[BM]||t["@@iterator"],typeof t=="function"?t:null)}var QM={isMounted:function(){return false},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VM=Object.assign,ZM={};function Ws(t,a,l){this.props=t,this.context=a,this.refs=ZM,this.updater=l||QM;}Ws.prototype.isReactComponent={};Ws.prototype.setState=function(t,a){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,a,"setState");};Ws.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate");};function JM(){}JM.prototype=Ws.prototype;function ub(t,a,l){this.props=t,this.context=a,this.refs=ZM,this.updater=l||QM;}var rb=ub.prototype=new JM;rb.constructor=ub;VM(rb,Ws.prototype);rb.isPureReactComponent=true;var jM=Array.isArray;function ob(){}var Qe={H:null,A:null,T:null,S:null},KM=Object.prototype.hasOwnProperty;function cb(t,a,l){var i=l.ref;return {$$typeof:ib,type:t,key:a,ref:i!==void 0?i:null,props:l}}function D7(t,a){return cb(t.type,a,t.props)}function sb(t){return typeof t=="object"&&t!==null&&t.$$typeof===ib}function C7(t){var a={"=":"=0",":":"=2"};return "$"+t.replace(/[=:]/g,function(l){return a[l]})}var qM=/\/+/g;function lb(t,a){return typeof t=="object"&&t!==null&&t.key!=null?C7(""+t.key):a.toString(36)}function O7(t){switch(t.status){case "fulfilled":return t.value;case "rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(ob,ob):(t.status="pending",t.then(function(a){t.status==="pending"&&(t.status="fulfilled",t.value=a);},function(a){t.status==="pending"&&(t.status="rejected",t.reason=a);})),t.status){case "fulfilled":return t.value;case "rejected":throw t.reason}}throw t}function Ys(t,a,l,i,r){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var h=false;if(t===null)h=true;else switch(s){case "bigint":case "string":case "number":h=true;break;case "object":switch(t.$$typeof){case ib:case x7:h=true;break;case GM:return h=t._init,Ys(h(t._payload),a,l,i,r)}}if(h)return r=r(t),h=i===""?"."+lb(t,0):i,jM(r)?(l="",h!=null&&(l=h.replace(qM,"$&/")+"/"),Ys(r,a,l,"",function(E){return E})):r!=null&&(sb(r)&&(r=D7(r,l+(r.key==null||t&&t.key===r.key?"":(""+r.key).replace(qM,"$&/")+"/")+h)),a.push(r)),1;h=0;var y=i===""?".":i+":";if(jM(t))for(var p=0;p<t.length;p++)i=t[p],s=y+lb(i,p),h+=Ys(i,a,l,s,r);else if(p=A7(t),typeof p=="function")for(t=p.call(t),p=0;!(i=t.next()).done;)i=i.value,s=y+lb(i,p++),h+=Ys(i,a,l,s,r);else if(s==="object"){if(typeof t.then=="function")return Ys(O7(t),a,l,i,r);throw a=String(t),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return h}function L1(t,a,l){if(t==null)return t;var i=[],r=0;return Ys(t,i,"","",function(s){return a.call(l,s,r++)}),i}function R7(t){if(t._status===-1){var a=t._result;a=a(),a.then(function(l){(t._status===0||t._status===-1)&&(t._status=1,t._result=l);},function(l){(t._status===0||t._status===-1)&&(t._status=2,t._result=l);}),t._status===-1&&(t._status=0,t._result=a);}if(t._status===1)return t._result.default;throw t._result}var XM=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t);},w7={map:L1,forEach:function(t,a,l){L1(t,function(){a.apply(this,arguments);},l);},count:function(t){var a=0;return L1(t,function(){a++;}),a},toArray:function(t){return L1(t,function(a){return a})||[]},only:function(t){if(!sb(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Xt.Activity=T7;Xt.Children=w7;Xt.Component=Ws;Xt.Fragment=b7;Xt.Profiler=S7;Xt.PureComponent=ub;Xt.StrictMode=v7;Xt.Suspense=k7;Xt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Qe;Xt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Qe.H.useMemoCache(t)}};Xt.cache=function(t){return function(){return t.apply(null,arguments)}};Xt.cacheSignal=function(){return null};Xt.cloneElement=function(t,a,l){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var i=VM({},t.props),r=t.key;if(a!=null)for(s in a.key!==void 0&&(r=""+a.key),a)!KM.call(a,s)||s==="key"||s==="__self"||s==="__source"||s==="ref"&&a.ref===void 0||(i[s]=a[s]);var s=arguments.length-2;if(s===1)i.children=l;else if(1<s){for(var h=Array(s),y=0;y<s;y++)h[y]=arguments[y+2];i.children=h;}return cb(t.type,r,i)};Xt.createContext=function(t){return t={$$typeof:M7,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:E7,_context:t},t};Xt.createElement=function(t,a,l){var i,r={},s=null;if(a!=null)for(i in a.key!==void 0&&(s=""+a.key),a)KM.call(a,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(r[i]=a[i]);var h=arguments.length-2;if(h===1)r.children=l;else if(1<h){for(var y=Array(h),p=0;p<h;p++)y[p]=arguments[p+2];r.children=y;}if(t&&t.defaultProps)for(i in h=t.defaultProps,h)r[i]===void 0&&(r[i]=h[i]);return cb(t,s,r)};Xt.createRef=function(){return {current:null}};Xt.forwardRef=function(t){return {$$typeof:_7,render:t}};Xt.isValidElement=sb;Xt.lazy=function(t){return {$$typeof:GM,_payload:{_status:-1,_result:t},_init:R7}};Xt.memo=function(t,a){return {$$typeof:z7,type:t,compare:a===void 0?null:a}};Xt.startTransition=function(t){var a=Qe.T,l={};Qe.T=l;try{var i=t(),r=Qe.S;r!==null&&r(l,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(ob,XM);}catch(s){XM(s);}finally{a!==null&&l.types!==null&&(a.types=l.types),Qe.T=a;}};Xt.unstable_useCacheRefresh=function(){return Qe.H.useCacheRefresh()};Xt.use=function(t){return Qe.H.use(t)};Xt.useActionState=function(t,a,l){return Qe.H.useActionState(t,a,l)};Xt.useCallback=function(t,a){return Qe.H.useCallback(t,a)};Xt.useContext=function(t){return Qe.H.useContext(t)};Xt.useDebugValue=function(){};Xt.useDeferredValue=function(t,a){return Qe.H.useDeferredValue(t,a)};Xt.useEffect=function(t,a){return Qe.H.useEffect(t,a)};Xt.useEffectEvent=function(t){return Qe.H.useEffectEvent(t)};Xt.useId=function(){return Qe.H.useId()};Xt.useImperativeHandle=function(t,a,l){return Qe.H.useImperativeHandle(t,a,l)};Xt.useInsertionEffect=function(t,a){return Qe.H.useInsertionEffect(t,a)};Xt.useLayoutEffect=function(t,a){return Qe.H.useLayoutEffect(t,a)};Xt.useMemo=function(t,a){return Qe.H.useMemo(t,a)};Xt.useOptimistic=function(t,a){return Qe.H.useOptimistic(t,a)};Xt.useReducer=function(t,a,l){return Qe.H.useReducer(t,a,l)};Xt.useRef=function(t){return Qe.H.useRef(t)};Xt.useState=function(t){return Qe.H.useState(t)};Xt.useSyncExternalStore=function(t,a,l){return Qe.H.useSyncExternalStore(t,a,l)};Xt.useTransition=function(){return Qe.H.useTransition()};Xt.version="19.2.5";});var PM=Sa((Bt,Y1)=>{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 a(S){return S===null||typeof S!="object"?null:(S=wc&&S[wc]||S["@@iterator"],typeof S=="function"?S:null)}function l(S,N){S=(S=S.constructor)&&(S.displayName||S.name)||"ReactClass";var ot=S+"."+N;gt[ot]||(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),gt[ot]=true);}function i(S,N,ot){this.props=S,this.context=N,this.refs=Pi,this.updater=ot||Hc;}function r(){}function s(S,N,ot){this.props=S,this.context=N,this.refs=Pi,this.updater=ot||Hc;}function h(){}function y(S){return ""+S}function p(S){try{y(S);var N=!1;}catch{N=true;}if(N){N=console;var ot=N.error,ft=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return ot.call(N,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ft),y(S)}}function E(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===$f?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case ye:return "Fragment";case F:return "Profiler";case Gn:return "StrictMode";case Da:return "Suspense";case ei:return "SuspenseList";case Il: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 ne:return "Portal";case Kt:return S.displayName||"Context";case Ot:return (S._context.displayName||"Context")+".Consumer";case jt:var N=S.render;return S=S.displayName,S||(S=N.displayName||N.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case Ye:return N=S.displayName||null,N!==null?N:E(S.type)||"Memo";case fa:N=S._payload,S=S._init;try{return E(S(N))}catch{}}return null}function _(S){if(S===ye)return "<>";if(typeof S=="object"&&S!==null&&S.$$typeof===fa)return "<...>";try{var N=E(S);return N?"<"+N+">":"<...>"}catch{return "<...>"}}function M(){var S=Gt.A;return S===null?null:S.getOwner()}function b(){return Error("react-stack-top-frame")}function k(S){if(Uc.call(S,"key")){var N=Object.getOwnPropertyDescriptor(S,"key").get;if(N&&N.isReactWarning)return false}return S.key!==void 0}function Y(S,N){function ot(){Eh||(Eh=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));}ot.isReactWarning=true,Object.defineProperty(S,"key",{get:ot,configurable:true});}function $(){var S=E(this.type);return vr[S]||(vr[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 K(S,N,ot,ft,St,Yt){var Wt=ot.ref;return S={$$typeof:bt,type:S,key:N,props:ot,_owner:ft},(Wt!==void 0?Wt:null)!==null?Object.defineProperty(S,"ref",{enumerable:false,get:$}):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:St}),Object.defineProperty(S,"_debugTask",{configurable:false,enumerable:false,writable:true,value:Yt}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function C(S,N){return N=K(S.type,N,S.props,S._owner,S._debugStack,S._debugTask),S._store&&(N._store.validated=S._store.validated),N}function z(S){O(S)?S._store&&(S._store.validated=1):typeof S=="object"&&S!==null&&S.$$typeof===fa&&(S._payload.status==="fulfilled"?O(S._payload.value)&&S._payload.value._store&&(S._payload.value._store.validated=1):S._store&&(S._store.validated=1));}function O(S){return typeof S=="object"&&S!==null&&S.$$typeof===bt}function B(S){var N={"=":"=0",":":"=2"};return "$"+S.replace(/[=:]/g,function(ot){return N[ot]})}function L(S,N){return typeof S=="object"&&S!==null&&S.key!=null?(p(S.key),B(""+S.key)):N.toString(36)}function xt(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 nt(S,N,ot,ft,St){var Yt=typeof S;(Yt==="undefined"||Yt==="boolean")&&(S=null);var Wt=false;if(S===null)Wt=true;else switch(Yt){case "bigint":case "string":case "number":Wt=true;break;case "object":switch(S.$$typeof){case bt:case ne:Wt=true;break;case fa:return Wt=S._init,nt(Wt(S._payload),N,ot,ft,St)}}if(Wt){Wt=S,St=St(Wt);var me=ft===""?"."+L(Wt,0):ft;return Ee(St)?(ot="",me!=null&&(ot=me.replace($c,"$&/")+"/"),nt(St,N,ot,"",function(oa){return oa})):St!=null&&(O(St)&&(St.key!=null&&(Wt&&Wt.key===St.key||p(St.key)),ot=C(St,ot+(St.key==null||Wt&&Wt.key===St.key?"":(""+St.key).replace($c,"$&/")+"/")+me),ft!==""&&Wt!=null&&O(Wt)&&Wt.key==null&&Wt._store&&!Wt._store.validated&&(ot._store.validated=2),St=ot),N.push(St)),1}if(Wt=0,me=ft===""?".":ft+":",Ee(S))for(var zt=0;zt<S.length;zt++)ft=S[zt],Yt=me+L(ft,zt),Wt+=nt(ft,N,ot,Yt,St);else if(zt=a(S),typeof zt=="function")for(zt===S.entries&&(Nc||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Nc=true),S=zt.call(S),zt=0;!(ft=S.next()).done;)ft=ft.value,Yt=me+L(ft,zt++),Wt+=nt(ft,N,ot,Yt,St);else if(Yt==="object"){if(typeof S.then=="function")return nt(xt(S),N,ot,ft,St);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 Wt}function at(S,N,ot){if(S==null)return S;var ft=[],St=0;return nt(S,ft,"","",function(Yt){return N.call(ot,Yt,St++)}),ft}function Mt(S){if(S._status===-1){var N=S._ioInfo;N!=null&&(N.start=N.end=performance.now()),N=S._result;var ot=N();if(ot.then(function(St){if(S._status===0||S._status===-1){S._status=1,S._result=St;var Yt=S._ioInfo;Yt!=null&&(Yt.end=performance.now()),ot.status===void 0&&(ot.status="fulfilled",ot.value=St);}},function(St){if(S._status===0||S._status===-1){S._status=2,S._result=St;var Yt=S._ioInfo;Yt!=null&&(Yt.end=performance.now()),ot.status===void 0&&(ot.status="rejected",ot.reason=St);}}),N=S._ioInfo,N!=null){N.value=ot;var ft=ot.displayName;typeof ft=="string"&&(N.name=ft);}S._status===-1&&(S._status=0,S._result=ot);}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
- Your code should look like:
4
- const MyComponent = lazy(() => import('./MyComponent'))
5
-
6
- Did you accidentally put curly braces around the import?`,N),"default"in N||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
-
8
- Your code should look like:
9
- const MyComponent = lazy(() => import('./MyComponent'))`,N),N.default;throw S._result}function P(){var S=Gt.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 fe(){Gt.asyncTransitions--;}function Lt(S){if(Er===null)try{var N=("require"+Math.random()).slice(0,7);Er=(Y1&&Y1[N]).call(Y1,"timers").setImmediate;}catch{Er=function(ft){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 St=new MessageChannel;St.port1.onmessage=ft,St.port2.postMessage(void 0);};}return Er(S)}function rt(S){return 1<S.length&&typeof AggregateError=="function"?new AggregateError(S):S[0]}function pt(S,N){N!==Mr-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. "),Mr=N;}function Z(S,N,ot){var ft=Gt.actQueue;if(ft!==null)if(ft.length!==0)try{ht(ft),Lt(function(){return Z(S,N,ot)});return}catch(St){Gt.thrownErrors.push(St);}else Gt.actQueue=null;0<Gt.thrownErrors.length?(ft=rt(Gt.thrownErrors),Gt.thrownErrors.length=0,ot(ft)):N(S);}function ht(S){if(!kr){kr=true;var N=0;try{for(;N<S.length;N++){var ot=S[N];do{Gt.didUsePromise=!1;var ft=ot(!1);if(ft!==null){if(Gt.didUsePromise){S[N]=ot,S.splice(0,N);return}ot=ft;}else break}while(!0)}S.length=0;}catch(St){S.splice(0,N+1),Gt.thrownErrors.push(St);}finally{kr=false;}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var bt=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),ye=Symbol.for("react.fragment"),Gn=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),Ot=Symbol.for("react.consumer"),Kt=Symbol.for("react.context"),jt=Symbol.for("react.forward_ref"),Da=Symbol.for("react.suspense"),ei=Symbol.for("react.suspense_list"),Ye=Symbol.for("react.memo"),fa=Symbol.for("react.lazy"),Il=Symbol.for("react.activity"),wc=Symbol.iterator,gt={},Hc={isMounted:function(){return false},enqueueForceUpdate:function(S){l(S,"forceUpdate");},enqueueReplaceState:function(S){l(S,"replaceState");},enqueueSetState:function(S){l(S,"setState");}},br=Object.assign,Pi={};Object.freeze(Pi),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 Hn={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(tu in Hn)Hn.hasOwnProperty(tu)&&t(tu,Hn[tu]);r.prototype=i.prototype,Hn=s.prototype=new r,Hn.constructor=s,br(Hn,i.prototype),Hn.isPureReactComponent=true;var Ee=Array.isArray,$f=Symbol.for("react.client.reference"),Gt={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:false,didScheduleLegacyUpdate:false,didUsePromise:false,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Uc=Object.prototype.hasOwnProperty,He=console.createTask?console.createTask:function(){return null};Hn={react_stack_bottom_frame:function(S){return S()}};var Eh,po,vr={},Sr=Hn.react_stack_bottom_frame.bind(Hn,b)(),M2=He(_(b)),Nc=false,$c=/\/+/g,Ii=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,Er=null,Mr=0,_r=false,kr=false,Lf=typeof queueMicrotask=="function"?function(S){queueMicrotask(function(){return queueMicrotask(S)});}:Lt;Hn=Object.freeze({__proto__:null,c:function(S){return P().useMemoCache(S)}});var tu={map:at,forEach:function(S,N,ot){at(S,function(){N.apply(this,arguments);},ot);},count:function(S){var N=0;return at(S,function(){N++;}),N},toArray:function(S){return at(S,function(N){return N})||[]},only:function(S){if(!O(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};Bt.Activity=Il,Bt.Children=tu,Bt.Component=i,Bt.Fragment=ye,Bt.Profiler=F,Bt.PureComponent=s,Bt.StrictMode=Gn,Bt.Suspense=Da,Bt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Gt,Bt.__COMPILER_RUNTIME=Hn,Bt.act=function(S){var N=Gt.actQueue,ot=Mr;Mr++;var ft=Gt.actQueue=N!==null?N:[],St=false;try{var Yt=S();}catch(zt){Gt.thrownErrors.push(zt);}if(0<Gt.thrownErrors.length)throw pt(N,ot),S=rt(Gt.thrownErrors),Gt.thrownErrors.length=0,S;if(Yt!==null&&typeof Yt=="object"&&typeof Yt.then=="function"){var Wt=Yt;return Lf(function(){St||_r||(_r=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(zt,oa){St=true,Wt.then(function(Za){if(pt(N,ot),ot===0){try{ht(ft),Lt(function(){return Z(Za,zt,oa)});}catch(Yf){Gt.thrownErrors.push(Yf);}if(0<Gt.thrownErrors.length){var eu=rt(Gt.thrownErrors);Gt.thrownErrors.length=0,oa(eu);}}else zt(Za);},function(Za){pt(N,ot),0<Gt.thrownErrors.length&&(Za=rt(Gt.thrownErrors),Gt.thrownErrors.length=0),oa(Za);});}}}var me=Yt;if(pt(N,ot),ot===0&&(ht(ft),ft.length!==0&&Lf(function(){St||_r||(_r=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(() => ...)"));}),Gt.actQueue=null),0<Gt.thrownErrors.length)throw S=rt(Gt.thrownErrors),Gt.thrownErrors.length=0,S;return {then:function(zt,oa){St=true,ot===0?(Gt.actQueue=ft,Lt(function(){return Z(me,zt,oa)})):zt(me);}}},Bt.cache=function(S){return function(){return S.apply(null,arguments)}},Bt.cacheSignal=function(){return null},Bt.captureOwnerStack=function(){var S=Gt.getCurrentStack;return S===null?null:S()},Bt.cloneElement=function(S,N,ot){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var ft=br({},S.props),St=S.key,Yt=S._owner;if(N!=null){var Wt;t:{if(Uc.call(N,"ref")&&(Wt=Object.getOwnPropertyDescriptor(N,"ref").get)&&Wt.isReactWarning){Wt=false;break t}Wt=N.ref!==void 0;}Wt&&(Yt=M()),k(N)&&(p(N.key),St=""+N.key);for(me in N)!Uc.call(N,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&N.ref===void 0||(ft[me]=N[me]);}var me=arguments.length-2;if(me===1)ft.children=ot;else if(1<me){Wt=Array(me);for(var zt=0;zt<me;zt++)Wt[zt]=arguments[zt+2];ft.children=Wt;}for(ft=K(S.type,St,ft,Yt,S._debugStack,S._debugTask),St=2;St<arguments.length;St++)z(arguments[St]);return ft},Bt.createContext=function(S){return S={$$typeof:Kt,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:Ot,_context:S},S._currentRenderer=null,S._currentRenderer2=null,S},Bt.createElement=function(S,N,ot){for(var ft=2;ft<arguments.length;ft++)z(arguments[ft]);ft={};var St=null;if(N!=null)for(zt in po||!("__self"in N)||"key"in N||(po=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")),k(N)&&(p(N.key),St=""+N.key),N)Uc.call(N,zt)&&zt!=="key"&&zt!=="__self"&&zt!=="__source"&&(ft[zt]=N[zt]);var Yt=arguments.length-2;if(Yt===1)ft.children=ot;else if(1<Yt){for(var Wt=Array(Yt),me=0;me<Yt;me++)Wt[me]=arguments[me+2];Object.freeze&&Object.freeze(Wt),ft.children=Wt;}if(S&&S.defaultProps)for(zt in Yt=S.defaultProps,Yt)ft[zt]===void 0&&(ft[zt]=Yt[zt]);St&&Y(ft,typeof S=="function"?S.displayName||S.name||"Unknown":S);var zt=1e4>Gt.recentlyCreatedOwnerStacks++;return K(S,St,ft,M(),zt?Error("react-stack-top-frame"):Sr,zt?He(_(S)):M2)},Bt.createRef=function(){var S={current:null};return Object.seal(S),S},Bt.forwardRef=function(S){S!=null&&S.$$typeof===Ye?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:jt,render:S},ot;return Object.defineProperty(N,"displayName",{enumerable:false,configurable:true,get:function(){return ot},set:function(ft){ot=ft,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ft}),S.displayName=ft);}}),N},Bt.isValidElement=O,Bt.lazy=function(S){S={_status:-1,_result:S};var N={$$typeof:fa,_payload:S,_init:Mt},ot={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=ot,N._debugInfo=[{awaited:ot}],N},Bt.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:Ye,type:S,compare:N===void 0?null:N};var ot;return Object.defineProperty(N,"displayName",{enumerable:false,configurable:true,get:function(){return ot},set:function(ft){ot=ft,S.name||S.displayName||(Object.defineProperty(S,"name",{value:ft}),S.displayName=ft);}}),N},Bt.startTransition=function(S){var N=Gt.T,ot={};ot._updatedFibers=new Set,Gt.T=ot;try{var ft=S(),St=Gt.S;St!==null&&St(ot,ft),typeof ft=="object"&&ft!==null&&typeof ft.then=="function"&&(Gt.asyncTransitions++,ft.then(fe,fe),ft.then(h,Ii));}catch(Yt){Ii(Yt);}finally{N===null&&ot._updatedFibers&&(S=ot._updatedFibers.size,ot._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&&ot.types!==null&&(N.types!==null&&N.types!==ot.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=ot.types),Gt.T=N;}},Bt.unstable_useCacheRefresh=function(){return P().useCacheRefresh()},Bt.use=function(S){return P().use(S)},Bt.useActionState=function(S,N,ot){return P().useActionState(S,N,ot)},Bt.useCallback=function(S,N){return P().useCallback(S,N)},Bt.useContext=function(S){var N=P();return S.$$typeof===Ot&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),N.useContext(S)},Bt.useDebugValue=function(S,N){return P().useDebugValue(S,N)},Bt.useDeferredValue=function(S,N){return P().useDeferredValue(S,N)},Bt.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?"),P().useEffect(S,N)},Bt.useEffectEvent=function(S){return P().useEffectEvent(S)},Bt.useId=function(){return P().useId()},Bt.useImperativeHandle=function(S,N,ot){return P().useImperativeHandle(S,N,ot)},Bt.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?"),P().useInsertionEffect(S,N)},Bt.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?"),P().useLayoutEffect(S,N)},Bt.useMemo=function(S,N){return P().useMemo(S,N)},Bt.useOptimistic=function(S,N){return P().useOptimistic(S,N)},Bt.useReducer=function(S,N,ot){return P().useReducer(S,N,ot)},Bt.useRef=function(S){return P().useRef(S)},Bt.useState=function(S){return P().useState(S)},Bt.useSyncExternalStore=function(S,N,ot){return P().useSyncExternalStore(S,N,ot)},Bt.useTransition=function(){return P().useTransition()},Bt.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var Yl=Sa((yU,fb)=>{process.env.NODE_ENV==="production"?fb.exports=FM():fb.exports=PM();});var S_=Sa(W1=>{var rw=Symbol.for("react.transitional.element"),cw=Symbol.for("react.fragment");function v_(t,a,l){var i=null;if(l!==void 0&&(i=""+l),a.key!==void 0&&(i=""+a.key),"key"in a){l={};for(var r in a)r!=="key"&&(l[r]=a[r]);}else l=a;return a=l.ref,{$$typeof:rw,type:t,key:i,ref:a!==void 0?a:null,props:l}}W1.Fragment=cw;W1.jsx=v_;W1.jsxs=v_;});var E_=Sa(B1=>{process.env.NODE_ENV!=="production"&&(function(){function t(F){if(F==null)return null;if(typeof F=="function")return F.$$typeof===fe?null:F.displayName||F.name||null;if(typeof F=="string")return F;switch(F){case K:return "Fragment";case z:return "Profiler";case C:return "StrictMode";case xt:return "Suspense";case nt:return "SuspenseList";case P:return "Activity"}if(typeof F=="object")switch(typeof F.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),F.$$typeof){case $:return "Portal";case B:return F.displayName||"Context";case O:return (F._context.displayName||"Context")+".Consumer";case L:var Ot=F.render;return F=F.displayName,F||(F=Ot.displayName||Ot.name||"",F=F!==""?"ForwardRef("+F+")":"ForwardRef"),F;case at:return Ot=F.displayName||null,Ot!==null?Ot:t(F.type)||"Memo";case Mt:Ot=F._payload,F=F._init;try{return t(F(Ot))}catch{}}return null}function a(F){return ""+F}function l(F){try{a(F);var Ot=!1;}catch{Ot=true;}if(Ot){Ot=console;var Kt=Ot.error,jt=typeof Symbol=="function"&&Symbol.toStringTag&&F[Symbol.toStringTag]||F.constructor.name||"Object";return Kt.call(Ot,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",jt),a(F)}}function i(F){if(F===K)return "<>";if(typeof F=="object"&&F!==null&&F.$$typeof===Mt)return "<...>";try{var Ot=t(F);return Ot?"<"+Ot+">":"<...>"}catch{return "<...>"}}function r(){var F=Lt.A;return F===null?null:F.getOwner()}function s(){return Error("react-stack-top-frame")}function h(F){if(rt.call(F,"key")){var Ot=Object.getOwnPropertyDescriptor(F,"key").get;if(Ot&&Ot.isReactWarning)return false}return F.key!==void 0}function y(F,Ot){function Kt(){ht||(ht=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)",Ot));}Kt.isReactWarning=true,Object.defineProperty(F,"key",{get:Kt,configurable:true});}function p(){var F=t(this.type);return bt[F]||(bt[F]=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.")),F=this.props.ref,F!==void 0?F:null}function E(F,Ot,Kt,jt,Da,ei){var Ye=Kt.ref;return F={$$typeof:Y,type:F,key:Ot,props:Kt,_owner:jt},(Ye!==void 0?Ye:null)!==null?Object.defineProperty(F,"ref",{enumerable:false,get:p}):Object.defineProperty(F,"ref",{enumerable:false,value:null}),F._store={},Object.defineProperty(F._store,"validated",{configurable:false,enumerable:false,writable:true,value:0}),Object.defineProperty(F,"_debugInfo",{configurable:false,enumerable:false,writable:true,value:null}),Object.defineProperty(F,"_debugStack",{configurable:false,enumerable:false,writable:true,value:Da}),Object.defineProperty(F,"_debugTask",{configurable:false,enumerable:false,writable:true,value:ei}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F}function _(F,Ot,Kt,jt,Da,ei){var Ye=Ot.children;if(Ye!==void 0)if(jt)if(pt(Ye)){for(jt=0;jt<Ye.length;jt++)M(Ye[jt]);Object.freeze&&Object.freeze(Ye);}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(Ye);if(rt.call(Ot,"key")){Ye=t(F);var fa=Object.keys(Ot).filter(function(wc){return wc!=="key"});jt=0<fa.length?"{key: someKey, "+fa.join(": ..., ")+": ...}":"{key: someKey}",Gn[Ye+jt]||(fa=0<fa.length?"{"+fa.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} />`,jt,Ye,fa,Ye),Gn[Ye+jt]=true);}if(Ye=null,Kt!==void 0&&(l(Kt),Ye=""+Kt),h(Ot)&&(l(Ot.key),Ye=""+Ot.key),"key"in Ot){Kt={};for(var Il in Ot)Il!=="key"&&(Kt[Il]=Ot[Il]);}else Kt=Ot;return Ye&&y(Kt,typeof F=="function"?F.displayName||F.name||"Unknown":F),E(F,Ye,Kt,r(),Da,ei)}function M(F){b(F)?F._store&&(F._store.validated=1):typeof F=="object"&&F!==null&&F.$$typeof===Mt&&(F._payload.status==="fulfilled"?b(F._payload.value)&&F._payload.value._store&&(F._payload.value._store.validated=1):F._store&&(F._store.validated=1));}function b(F){return typeof F=="object"&&F!==null&&F.$$typeof===Y}var k=Yl(),Y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),B=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),xt=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),at=Symbol.for("react.memo"),Mt=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),fe=Symbol.for("react.client.reference"),Lt=k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt=Object.prototype.hasOwnProperty,pt=Array.isArray,Z=console.createTask?console.createTask:function(){return null};k={react_stack_bottom_frame:function(F){return F()}};var ht,bt={},ne=k.react_stack_bottom_frame.bind(k,s)(),ye=Z(i(s)),Gn={};B1.Fragment=K,B1.jsx=function(F,Ot,Kt){var jt=1e4>Lt.recentlyCreatedOwnerStacks++;return _(F,Ot,Kt,false,jt?Error("react-stack-top-frame"):ne,jt?Z(i(F)):ye)},B1.jsxs=function(F,Ot,Kt){var jt=1e4>Lt.recentlyCreatedOwnerStacks++;return _(F,Ot,Kt,true,jt?Error("react-stack-top-frame"):ne,jt?Z(i(F)):ye)};})();});var Pt=Sa((WU,hb)=>{process.env.NODE_ENV==="production"?hb.exports=S_():hb.exports=E_();});var ak=Sa(Ie=>{function Sb(t,a){var l=t.length;t.push(a);t:for(;0<l;){var i=l-1>>>1,r=t[i];if(0<G1(r,a))t[i]=a,t[l]=r,l=i;else break t}}function Zo(t){return t.length===0?null:t[0]}function V1(t){if(t.length===0)return null;var a=t[0],l=t.pop();if(l!==a){t[0]=l;t:for(var i=0,r=t.length,s=r>>>1;i<s;){var h=2*(i+1)-1,y=t[h],p=h+1,E=t[p];if(0>G1(y,l))p<r&&0>G1(E,y)?(t[i]=E,t[p]=l,i=p):(t[i]=y,t[h]=l,i=h);else if(p<r&&0>G1(E,l))t[i]=E,t[p]=l,i=p;else break t}}return a}function G1(t,a){var l=t.sortIndex-a.sortIndex;return l!==0?l:t.id-a.id}Ie.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Z_=performance,Ie.unstable_now=function(){return Z_.now()}):(xb=Date,J_=xb.now(),Ie.unstable_now=function(){return xb.now()-J_});var Z_,xb,J_,Ri=[],Gu=[],Uw=1,jl=null,sa=3,Eb=false,S0=false,E0=false,Mb=false,P_=typeof setTimeout=="function"?setTimeout:null,I_=typeof clearTimeout=="function"?clearTimeout:null,K_=typeof setImmediate<"u"?setImmediate:null;function Q1(t){for(var a=Zo(Gu);a!==null;){if(a.callback===null)V1(Gu);else if(a.startTime<=t)V1(Gu),a.sortIndex=a.expirationTime,Sb(Ri,a);else break;a=Zo(Gu);}}function _b(t){if(E0=false,Q1(t),!S0)if(Zo(Ri)!==null)S0=true,Gs||(Gs=true,Xs());else {var a=Zo(Gu);a!==null&&kb(_b,a.startTime-t);}}var Gs=false,M0=-1,tk=5,ek=-1;function nk(){return Mb?true:!(Ie.unstable_now()-ek<tk)}function bb(){if(Mb=false,Gs){var t=Ie.unstable_now();ek=t;var a=true;try{t:{S0=!1,E0&&(E0=!1,I_(M0),M0=-1),Eb=!0;var l=sa;try{e:{for(Q1(t),jl=Zo(Ri);jl!==null&&!(jl.expirationTime>t&&nk());){var i=jl.callback;if(typeof i=="function"){jl.callback=null,sa=jl.priorityLevel;var r=i(jl.expirationTime<=t);if(t=Ie.unstable_now(),typeof r=="function"){jl.callback=r,Q1(t),a=!0;break e}jl===Zo(Ri)&&V1(Ri),Q1(t);}else V1(Ri);jl=Zo(Ri);}if(jl!==null)a=!0;else {var s=Zo(Gu);s!==null&&kb(_b,s.startTime-t),a=!1;}}break t}finally{jl=null,sa=l,Eb=!1;}a=void 0;}}finally{a?Xs():Gs=false;}}}var Xs;typeof K_=="function"?Xs=function(){K_(bb);}:typeof MessageChannel<"u"?(vb=new MessageChannel,F_=vb.port2,vb.port1.onmessage=bb,Xs=function(){F_.postMessage(null);}):Xs=function(){P_(bb,0);};var vb,F_;function kb(t,a){M0=P_(function(){t(Ie.unstable_now());},a);}Ie.unstable_IdlePriority=5;Ie.unstable_ImmediatePriority=1;Ie.unstable_LowPriority=4;Ie.unstable_NormalPriority=3;Ie.unstable_Profiling=null;Ie.unstable_UserBlockingPriority=2;Ie.unstable_cancelCallback=function(t){t.callback=null;};Ie.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"):tk=0<t?Math.floor(1e3/t):5;};Ie.unstable_getCurrentPriorityLevel=function(){return sa};Ie.unstable_next=function(t){switch(sa){case 1:case 2:case 3:var a=3;break;default:a=sa;}var l=sa;sa=a;try{return t()}finally{sa=l;}};Ie.unstable_requestPaint=function(){Mb=true;};Ie.unstable_runWithPriority=function(t,a){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3;}var l=sa;sa=t;try{return a()}finally{sa=l;}};Ie.unstable_scheduleCallback=function(t,a,l){var i=Ie.unstable_now();switch(typeof l=="object"&&l!==null?(l=l.delay,l=typeof l=="number"&&0<l?i+l:i):l=i,t){case 1:var r=-1;break;case 2:r=250;break;case 5:r=1073741823;break;case 4:r=1e4;break;default:r=5e3;}return r=l+r,t={id:Uw++,callback:a,priorityLevel:t,startTime:l,expirationTime:r,sortIndex:-1},l>i?(t.sortIndex=l,Sb(Gu,t),Zo(Ri)===null&&t===Zo(Gu)&&(E0?(I_(M0),M0=-1):E0=true,kb(_b,l-i))):(t.sortIndex=r,Sb(Ri,t),S0||Eb||(S0=true,Gs||(Gs=true,Xs()))),t};Ie.unstable_shouldYield=nk;Ie.unstable_wrapCallback=function(t){var a=sa;return function(){var l=sa;sa=a;try{return t.apply(this,arguments)}finally{sa=l;}}};});var lk=Sa(tn=>{process.env.NODE_ENV!=="production"&&(function(){function t(){if(B=false,at){var Z=tn.unstable_now();fe=Z;var ht=true;try{t:{z=!1,O&&(O=!1,xt(Mt),Mt=-1),C=!0;var bt=K;try{e:{for(s(Z),$=l(b);$!==null&&!($.expirationTime>Z&&y());){var ne=$.callback;if(typeof ne=="function"){$.callback=null,K=$.priorityLevel;var ye=ne($.expirationTime<=Z);if(Z=tn.unstable_now(),typeof ye=="function"){$.callback=ye,s(Z),ht=!0;break e}$===l(b)&&i(b),s(Z);}else i(b);$=l(b);}if($!==null)ht=!0;else {var Gn=l(k);Gn!==null&&p(h,Gn.startTime-Z),ht=!1;}}break t}finally{$=null,K=bt,C=!1;}ht=void 0;}}finally{ht?Lt():at=false;}}}function a(Z,ht){var bt=Z.length;Z.push(ht);t:for(;0<bt;){var ne=bt-1>>>1,ye=Z[ne];if(0<r(ye,ht))Z[ne]=ht,Z[bt]=ye,bt=ne;else break t}}function l(Z){return Z.length===0?null:Z[0]}function i(Z){if(Z.length===0)return null;var ht=Z[0],bt=Z.pop();if(bt!==ht){Z[0]=bt;t:for(var ne=0,ye=Z.length,Gn=ye>>>1;ne<Gn;){var F=2*(ne+1)-1,Ot=Z[F],Kt=F+1,jt=Z[Kt];if(0>r(Ot,bt))Kt<ye&&0>r(jt,Ot)?(Z[ne]=jt,Z[Kt]=bt,ne=Kt):(Z[ne]=Ot,Z[F]=bt,ne=F);else if(Kt<ye&&0>r(jt,bt))Z[ne]=jt,Z[Kt]=bt,ne=Kt;else break t}}return ht}function r(Z,ht){var bt=Z.sortIndex-ht.sortIndex;return bt!==0?bt:Z.id-ht.id}function s(Z){for(var ht=l(k);ht!==null;){if(ht.callback===null)i(k);else if(ht.startTime<=Z)i(k),ht.sortIndex=ht.expirationTime,a(b,ht);else break;ht=l(k);}}function h(Z){if(O=false,s(Z),!z)if(l(b)!==null)z=true,at||(at=true,Lt());else {var ht=l(k);ht!==null&&p(h,ht.startTime-Z);}}function y(){return B?true:!(tn.unstable_now()-fe<P)}function p(Z,ht){Mt=L(function(){Z(tn.unstable_now());},ht);}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),tn.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var E=performance;tn.unstable_now=function(){return E.now()};}else {var _=Date,M=_.now();tn.unstable_now=function(){return _.now()-M};}var b=[],k=[],Y=1,$=null,K=3,C=false,z=false,O=false,B=false,L=typeof setTimeout=="function"?setTimeout:null,xt=typeof clearTimeout=="function"?clearTimeout:null,nt=typeof setImmediate<"u"?setImmediate:null,at=false,Mt=-1,P=5,fe=-1;if(typeof nt=="function")var Lt=function(){nt(t);};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,pt=rt.port2;rt.port1.onmessage=t,Lt=function(){pt.postMessage(null);};}else Lt=function(){L(t,0);};tn.unstable_IdlePriority=5,tn.unstable_ImmediatePriority=1,tn.unstable_LowPriority=4,tn.unstable_NormalPriority=3,tn.unstable_Profiling=null,tn.unstable_UserBlockingPriority=2,tn.unstable_cancelCallback=function(Z){Z.callback=null;},tn.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<Z?Math.floor(1e3/Z):5;},tn.unstable_getCurrentPriorityLevel=function(){return K},tn.unstable_next=function(Z){switch(K){case 1:case 2:case 3:var ht=3;break;default:ht=K;}var bt=K;K=ht;try{return Z()}finally{K=bt;}},tn.unstable_requestPaint=function(){B=true;},tn.unstable_runWithPriority=function(Z,ht){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3;}var bt=K;K=Z;try{return ht()}finally{K=bt;}},tn.unstable_scheduleCallback=function(Z,ht,bt){var ne=tn.unstable_now();switch(typeof bt=="object"&&bt!==null?(bt=bt.delay,bt=typeof bt=="number"&&0<bt?ne+bt:ne):bt=ne,Z){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=bt+ye,Z={id:Y++,callback:ht,priorityLevel:Z,startTime:bt,expirationTime:ye,sortIndex:-1},bt>ne?(Z.sortIndex=bt,a(k,Z),l(b)===null&&Z===l(k)&&(O?(xt(Mt),Mt=-1):O=true,p(h,bt-ne))):(Z.sortIndex=ye,a(b,Z),z||C||(z=true,at||(at=true,Lt()))),Z},tn.unstable_shouldYield=y,tn.unstable_wrapCallback=function(Z){var ht=K;return function(){var bt=K;K=ht;try{return Z.apply(this,arguments)}finally{K=bt;}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var Tb=Sa((a$,zb)=>{process.env.NODE_ENV==="production"?zb.exports=ak():zb.exports=lk();});var ik=Sa(za=>{var Nw=Yl();function ok(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l]);}return "Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Qu(){}var ka={d:{f:Qu,r:function(){throw Error(ok(522))},D:Qu,C:Qu,L:Qu,m:Qu,X:Qu,S:Qu,M:Qu},p:0,findDOMNode:null},$w=Symbol.for("react.portal");function Lw(t,a,l){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return {$$typeof:$w,key:i==null?null:""+i,children:t,containerInfo:a,implementation:l}}var _0=Nw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Z1(t,a){if(t==="font")return "";if(typeof a=="string")return a==="use-credentials"?a:""}za.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ka;za.createPortal=function(t,a){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(ok(299));return Lw(t,a,null,l)};za.flushSync=function(t){var a=_0.T,l=ka.p;try{if(_0.T=null,ka.p=2,t)return t()}finally{_0.T=a,ka.p=l,ka.d.f();}};za.preconnect=function(t,a){typeof t=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,ka.d.C(t,a));};za.prefetchDNS=function(t){typeof t=="string"&&ka.d.D(t);};za.preinit=function(t,a){if(typeof t=="string"&&a&&typeof a.as=="string"){var l=a.as,i=Z1(l,a.crossOrigin),r=typeof a.integrity=="string"?a.integrity:void 0,s=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;l==="style"?ka.d.S(t,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:i,integrity:r,fetchPriority:s}):l==="script"&&ka.d.X(t,{crossOrigin:i,integrity:r,fetchPriority:s,nonce:typeof a.nonce=="string"?a.nonce:void 0});}};za.preinitModule=function(t,a){if(typeof t=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var l=Z1(a.as,a.crossOrigin);ka.d.M(t,{crossOrigin:l,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0});}}else a==null&&ka.d.M(t);};za.preload=function(t,a){if(typeof t=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var l=a.as,i=Z1(l,a.crossOrigin);ka.d.L(t,l,{crossOrigin:i,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0});}};za.preloadModule=function(t,a){if(typeof t=="string")if(a){var l=Z1(a.as,a.crossOrigin);ka.d.m(t,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:l,integrity:typeof a.integrity=="string"?a.integrity:void 0});}else ka.d.m(t);};za.requestFormReset=function(t){ka.d.r(t);};za.unstable_batchedUpdates=function(t,a){return t(a)};za.useFormState=function(t,a,l){return _0.H.useFormState(t,a,l)};za.useFormStatus=function(){return _0.H.useHostTransitionStatus()};za.version="19.2.5";});var uk=Sa(Ta=>{process.env.NODE_ENV!=="production"&&(function(){function t(){}function a(M){return ""+M}function l(M,b,k){var Y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{a(Y);var $=!1;}catch{$=true;}return $&&(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&&Y[Symbol.toStringTag]||Y.constructor.name||"Object"),a(Y)),{$$typeof:E,key:Y==null?null:""+Y,children:M,containerInfo:b,implementation:k}}function i(M,b){if(M==="font")return "";if(typeof b=="string")return b==="use-credentials"?b:""}function r(M){return M===null?"`null`":M===void 0?"`undefined`":M===""?"an empty string":'something with type "'+typeof M+'"'}function s(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=_.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 y=Yl(),p={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"),_=y.__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"),Ta.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=p,Ta.createPortal=function(M,b){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error("Target container is not a DOM element.");return l(M,b,null,k)},Ta.flushSync=function(M){var b=_.T,k=p.p;try{if(_.T=null,p.p=2,M)return M()}finally{_.T=b,p.p=k,p.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.");}},Ta.preconnect=function(M,b){typeof M=="string"&&M?b!=null&&typeof b!="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.",s(b)):b!=null&&typeof b.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.",r(b.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(M)),typeof M=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,p.d.C(M,b));},Ta.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.",r(M));else if(1<arguments.length){var b=arguments[1];typeof b=="object"&&b.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`.",s(b)):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`.",s(b));}typeof M=="string"&&p.d.D(M);},Ta.preinit=function(M,b){if(typeof M=="string"&&M?b==null||typeof b!="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.",s(b)):b.as!=="style"&&b.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".',s(b.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",r(M)),typeof M=="string"&&b&&typeof b.as=="string"){var k=b.as,Y=i(k,b.crossOrigin),$=typeof b.integrity=="string"?b.integrity:void 0,K=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;k==="style"?p.d.S(M,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:Y,integrity:$,fetchPriority:K}):k==="script"&&p.d.X(M,{crossOrigin:Y,integrity:$,fetchPriority:K,nonce:typeof b.nonce=="string"?b.nonce:void 0});}},Ta.preinitModule=function(M,b){var k="";typeof M=="string"&&M||(k+=" The `href` argument encountered was "+r(M)+"."),b!==void 0&&typeof b!="object"?k+=" The `options` argument encountered was "+r(b)+".":b&&"as"in b&&b.as!=="script"&&(k+=" The `as` option encountered was "+s(b.as)+"."),k?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",k):(k=b&&typeof b.as=="string"?b.as:"script",k)==="script"||(k=s(k),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)',k,M)),typeof M=="string"&&(typeof b=="object"&&b!==null?(b.as==null||b.as==="script")&&(k=i(b.as,b.crossOrigin),p.d.M(M,{crossOrigin:k,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0})):b==null&&p.d.M(M));},Ta.preload=function(M,b){var k="";if(typeof M=="string"&&M||(k+=" The `href` argument encountered was "+r(M)+"."),b==null||typeof b!="object"?k+=" The `options` argument encountered was "+r(b)+".":typeof b.as=="string"&&b.as||(k+=" The `as` option encountered was "+r(b.as)+"."),k&&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',k),typeof M=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){k=b.as;var Y=i(k,b.crossOrigin);p.d.L(M,k,{crossOrigin:Y,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0});}},Ta.preloadModule=function(M,b){var k="";typeof M=="string"&&M||(k+=" The `href` argument encountered was "+r(M)+"."),b!==void 0&&typeof b!="object"?k+=" The `options` argument encountered was "+r(b)+".":b&&"as"in b&&typeof b.as!="string"&&(k+=" The `as` option encountered was "+r(b.as)+"."),k&&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',k),typeof M=="string"&&(b?(k=i(b.as,b.crossOrigin),p.d.m(M,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:k,integrity:typeof b.integrity=="string"?b.integrity:void 0})):p.d.m(M));},Ta.requestFormReset=function(M){p.d.r(M);},Ta.unstable_batchedUpdates=function(M,b){return M(b)},Ta.useFormState=function(M,b,k){return h().useFormState(M,b,k)},Ta.useFormStatus=function(){return h().useHostTransitionStatus()},Ta.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var Db=Sa((i$,Ab)=>{function rk(){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(rk);}catch(t){console.error(t);}}}process.env.NODE_ENV==="production"?(rk(),Ab.exports=ik()):Ab.exports=uk();});var vD=Sa(b2=>{var wn=Tb(),Hz=Yl(),Yw=Db();function I(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l]);}return "Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Uz(t){return !(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function sh(t){var a=t,l=t;if(t.alternate)for(;a.return;)a=a.return;else {t=a;do a=t,(a.flags&4098)!==0&&(l=a.return),t=a.return;while(t)}return a.tag===3?l:null}function Nz(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function $z(t){if(t.tag===31){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function ck(t){if(sh(t)!==t)throw Error(I(188))}function Ww(t){var a=t.alternate;if(!a){if(a=sh(t),a===null)throw Error(I(188));return a!==t?null:t}for(var l=t,i=a;;){var r=l.return;if(r===null)break;var s=r.alternate;if(s===null){if(i=r.return,i!==null){l=i;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===l)return ck(r),t;if(s===i)return ck(r),a;s=s.sibling;}throw Error(I(188))}if(l.return!==i.return)l=r,i=s;else {for(var h=false,y=r.child;y;){if(y===l){h=true,l=r,i=s;break}if(y===i){h=true,i=r,l=s;break}y=y.sibling;}if(!h){for(y=s.child;y;){if(y===l){h=true,l=s,i=r;break}if(y===i){h=true,i=s,l=r;break}y=y.sibling;}if(!h)throw Error(I(189))}}if(l.alternate!==i)throw Error(I(190))}if(l.tag!==3)throw Error(I(188));return l.stateNode.current===l?t:a}function Lz(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=Lz(t),a!==null)return a;t=t.sibling;}return null}var Ke=Object.assign,Bw=Symbol.for("react.element"),J1=Symbol.for("react.transitional.element"),R0=Symbol.for("react.portal"),Fs=Symbol.for("react.fragment"),Yz=Symbol.for("react.strict_mode"),cv=Symbol.for("react.profiler"),Wz=Symbol.for("react.consumer"),Wi=Symbol.for("react.context"),lS=Symbol.for("react.forward_ref"),sv=Symbol.for("react.suspense"),fv=Symbol.for("react.suspense_list"),oS=Symbol.for("react.memo"),Vu=Symbol.for("react.lazy"),dv=Symbol.for("react.activity"),jw=Symbol.for("react.memo_cache_sentinel"),sk=Symbol.iterator;function k0(t){return t===null||typeof t!="object"?null:(t=sk&&t[sk]||t["@@iterator"],typeof t=="function"?t:null)}var qw=Symbol.for("react.client.reference");function hv(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===qw?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Fs:return "Fragment";case cv:return "Profiler";case Yz:return "StrictMode";case sv:return "Suspense";case fv:return "SuspenseList";case dv:return "Activity"}if(typeof t=="object")switch(t.$$typeof){case R0:return "Portal";case Wi:return t.displayName||"Context";case Wz:return (t._context.displayName||"Context")+".Consumer";case lS:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case oS:return a=t.displayName||null,a!==null?a:hv(t.type)||"Memo";case Vu:a=t._payload,t=t._init;try{return hv(t(a))}catch{}}return null}var w0=Array.isArray,Nt=Hz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,be=Yw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,xc={pending:false,data:null,method:null,action:null},yv=[],Ps=-1;function Io(t){return {current:t}}function Xn(t){0>Ps||(t.current=yv[Ps],yv[Ps]=null,Ps--);}function qe(t,a){Ps++,yv[Ps]=t.current,t.current=a;}var Po=Io(null),K0=Io(null),lr=Io(null),Am=Io(null);function Dm(t,a){switch(qe(lr,a),qe(K0,t),qe(Po,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?gz(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=gz(a),t=iD(a,t);else switch(t){case "svg":t=1;break;case "math":t=2;break;default:t=0;}}Xn(Po),qe(Po,t);}function gf(){Xn(Po),Xn(K0),Xn(lr);}function mv(t){t.memoizedState!==null&&qe(Am,t);var a=Po.current,l=iD(a,t.type);a!==l&&(qe(K0,t),qe(Po,l));}function Cm(t){K0.current===t&&(Xn(Po),Xn(K0)),Am.current===t&&(Xn(Am),uh._currentValue=xc);}var Cb,fk;function yc(t){if(Cb===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);Cb=a&&a[1]||"",fk=-1<l.stack.indexOf(`
23
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":"";}return `
24
- `+Cb+t+fk}var Ob=false;function Rb(t,a){if(!t||Ob)return "";Ob=true;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(a){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(k){var b=k;}Reflect.construct(t,[],M);}else {try{M.call();}catch(k){b=k;}t.call(M.prototype);}}else {try{throw Error()}catch(k){b=k;}(M=t())&&typeof M.catch=="function"&&M.catch(function(){});}}catch(k){if(k&&b&&typeof k.stack=="string")return [k.stack,b.stack]}return [null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=i.DetermineComponentFrameRoot(),h=s[0],y=s[1];if(h&&y){var p=h.split(`
25
- `),E=y.split(`
26
- `);for(r=i=0;i<p.length&&!p[i].includes("DetermineComponentFrameRoot");)i++;for(;r<E.length&&!E[r].includes("DetermineComponentFrameRoot");)r++;if(i===p.length||r===E.length)for(i=p.length-1,r=E.length-1;1<=i&&0<=r&&p[i]!==E[r];)r--;for(;1<=i&&0<=r;i--,r--)if(p[i]!==E[r]){if(i!==1||r!==1)do if(i--,r--,0>r||p[i]!==E[r]){var _=`
27
- `+p[i].replace(" at new "," at ");return t.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",t.displayName)),_}while(1<=i&&0<=r);break}}}finally{Ob=false,Error.prepareStackTrace=l;}return (l=t?t.displayName||t.name:"")?yc(l):""}function Xw(t,a){switch(t.tag){case 26:case 27:case 5:return yc(t.type);case 16:return yc("Lazy");case 13:return t.child!==a&&a!==null?yc("Suspense Fallback"):yc("Suspense");case 19:return yc("SuspenseList");case 0:case 15:return Rb(t.type,false);case 11:return Rb(t.type.render,false);case 1:return Rb(t.type,true);case 31:return yc("Activity");default:return ""}}function dk(t){try{var a="",l=null;do a+=Xw(t,l),l=t,t=t.return;while(t);return a}catch(i){return `
28
- Error generating stack: `+i.message+`
29
- `+i.stack}}var pv=Object.prototype.hasOwnProperty,iS=wn.unstable_scheduleCallback,wb=wn.unstable_cancelCallback,Gw=wn.unstable_shouldYield,Qw=wn.unstable_requestPaint,xl=wn.unstable_now,Vw=wn.unstable_getCurrentPriorityLevel,Bz=wn.unstable_ImmediatePriority,jz=wn.unstable_UserBlockingPriority,Om=wn.unstable_NormalPriority,Zw=wn.unstable_LowPriority,qz=wn.unstable_IdlePriority,Jw=wn.log,Kw=wn.unstable_setDisableYieldValue,fh=null,bl=null;function Iu(t){if(typeof Jw=="function"&&Kw(t),bl&&typeof bl.setStrictMode=="function")try{bl.setStrictMode(fh,t);}catch{}}var vl=Math.clz32?Math.clz32:Iw,Fw=Math.log,Pw=Math.LN2;function Iw(t){return t>>>=0,t===0?32:31-(Fw(t)/Pw|0)|0}var K1=256,F1=262144,P1=4194304;function mc(t){var a=t&42;if(a!==0)return a;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 a2(t,a,l){var i=t.pendingLanes;if(i===0)return 0;var r=0,s=t.suspendedLanes,h=t.pingedLanes;t=t.warmLanes;var y=i&134217727;return y!==0?(i=y&~s,i!==0?r=mc(i):(h&=y,h!==0?r=mc(h):l||(l=y&~t,l!==0&&(r=mc(l))))):(y=i&~s,y!==0?r=mc(y):h!==0?r=mc(h):l||(l=i&~t,l!==0&&(r=mc(l)))),r===0?0:a!==0&&a!==r&&(a&s)===0&&(s=r&-r,l=a&-a,s>=l||s===32&&(l&4194048)!==0)?a:r}function dh(t,a){return (t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function t9(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Xz(){var t=P1;return P1<<=1,(P1&62914560)===0&&(P1=4194304),t}function Hb(t){for(var a=[],l=0;31>l;l++)a.push(t);return a}function hh(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0);}function e9(t,a,l,i,r,s){var h=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var y=t.entanglements,p=t.expirationTimes,E=t.hiddenUpdates;for(l=h&~l;0<l;){var _=31-vl(l),M=1<<_;y[_]=0,p[_]=-1;var b=E[_];if(b!==null)for(E[_]=null,_=0;_<b.length;_++){var k=b[_];k!==null&&(k.lane&=-536870913);}l&=~M;}i!==0&&Gz(t,i,0),s!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=s&~(h&~a));}function Gz(t,a,l){t.pendingLanes|=a,t.suspendedLanes&=~a;var i=31-vl(a);t.entangledLanes|=a,t.entanglements[i]=t.entanglements[i]|1073741824|l&261930;}function Qz(t,a){var l=t.entangledLanes|=a;for(t=t.entanglements;l;){var i=31-vl(l),r=1<<i;r&a|t[i]&a&&(t[i]|=a),l&=~r;}}function Vz(t,a){var l=a&-a;return l=(l&42)!==0?1:uS(l),(l&(t.suspendedLanes|a))!==0?0:l}function uS(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 rS(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Zz(){var t=be.p;return t!==0?t:(t=window.event,t===void 0?32:gD(t.type))}function hk(t,a){var l=be.p;try{return be.p=t,a()}finally{be.p=l;}}var gr=Math.random().toString(36).slice(2),ea="__reactFiber$"+gr,Qa="__reactProps$"+gr,Af="__reactContainer$"+gr,gv="__reactEvents$"+gr,n9="__reactListeners$"+gr,a9="__reactHandles$"+gr,yk="__reactResources$"+gr,yh="__reactMarker$"+gr;function cS(t){delete t[ea],delete t[Qa],delete t[gv],delete t[n9],delete t[a9];}function Is(t){var a=t[ea];if(a)return a;for(var l=t.parentNode;l;){if(a=l[Af]||l[ea]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(t=Ez(t);t!==null;){if(l=t[ea])return l;t=Ez(t);}return a}t=l,l=t.parentNode;}return null}function Df(t){if(t=t[ea]||t[Af]){var a=t.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return t}return null}function H0(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(I(33))}function sf(t){var a=t[yk];return a||(a=t[yk]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function qn(t){t[yh]=true;}var Jz=new Set,Kz={};function Ac(t,a){xf(t,a),xf(t+"Capture",a);}function xf(t,a){for(Kz[t]=a,t=0;t<a.length;t++)Jz.add(a[t]);}var l9=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]*$"),mk={},pk={};function o9(t){return pv.call(pk,t)?true:pv.call(mk,t)?false:l9.test(t)?pk[t]=true:(mk[t]=true,false)}function hm(t,a,l){if(o9(a))if(l===null)t.removeAttribute(a);else {switch(typeof l){case "undefined":case "function":case "symbol":t.removeAttribute(a);return;case "boolean":var i=a.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+l);}}function I1(t,a,l){if(l===null)t.removeAttribute(a);else {switch(typeof l){case "undefined":case "function":case "symbol":case "boolean":t.removeAttribute(a);return}t.setAttribute(a,""+l);}}function wi(t,a,l,i){if(i===null)t.removeAttribute(l);else {switch(typeof i){case "undefined":case "function":case "symbol":case "boolean":t.removeAttribute(l);return}t.setAttributeNS(a,l,""+i);}}function Xl(t){switch(typeof t){case "bigint":case "boolean":case "number":case "string":case "undefined":return t;case "object":return t;default:return ""}}function Fz(t){var a=t.type;return (t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function i9(t,a,l){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,a);if(!t.hasOwnProperty(a)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,s=i.set;return Object.defineProperty(t,a,{configurable:true,get:function(){return r.call(this)},set:function(h){l=""+h,s.call(this,h);}}),Object.defineProperty(t,a,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(h){l=""+h;},stopTracking:function(){t._valueTracker=null,delete t[a];}}}}function xv(t){if(!t._valueTracker){var a=Fz(t)?"checked":"value";t._valueTracker=i9(t,a,""+t[a]);}}function Pz(t){if(!t)return false;var a=t._valueTracker;if(!a)return true;var l=a.getValue(),i="";return t&&(i=Fz(t)?t.checked?"true":"false":t.value),t=i,t!==l?(a.setValue(t),true):false}function Rm(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 u9=/[\n"\\]/g;function Vl(t){return t.replace(u9,function(a){return "\\"+a.charCodeAt(0).toString(16)+" "})}function bv(t,a,l,i,r,s,h,y){t.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.type=h:t.removeAttribute("type"),a!=null?h==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Xl(a)):t.value!==""+Xl(a)&&(t.value=""+Xl(a)):h!=="submit"&&h!=="reset"||t.removeAttribute("value"),a!=null?vv(t,h,Xl(a)):l!=null?vv(t,h,Xl(l)):i!=null&&t.removeAttribute("value"),r==null&&s!=null&&(t.defaultChecked=!!s),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Xl(y):t.removeAttribute("name");}function Iz(t,a,l,i,r,s,h,y){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.type=s),a!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||a!=null)){xv(t);return}l=l!=null?""+Xl(l):"",a=a!=null?""+Xl(a):l,y||a===t.value||(t.value=a),t.defaultValue=a;}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=y?t.checked:!!i,t.defaultChecked=!!i,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.name=h),xv(t);}function vv(t,a,l){a==="number"&&Rm(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l);}function ff(t,a,l,i){if(t=t.options,a){a={};for(var r=0;r<l.length;r++)a["$"+l[r]]=true;for(l=0;l<t.length;l++)r=a.hasOwnProperty("$"+t[l].value),t[l].selected!==r&&(t[l].selected=r),r&&i&&(t[l].defaultSelected=true);}else {for(l=""+Xl(l),a=null,r=0;r<t.length;r++){if(t[r].value===l){t[r].selected=true,i&&(t[r].defaultSelected=true);return}a!==null||t[r].disabled||(a=t[r]);}a!==null&&(a.selected=true);}}function tT(t,a,l){if(a!=null&&(a=""+Xl(a),a!==t.value&&(t.value=a),l==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=l!=null?""+Xl(l):"";}function eT(t,a,l,i){if(a==null){if(i!=null){if(l!=null)throw Error(I(92));if(w0(i)){if(1<i.length)throw Error(I(93));i=i[0];}l=i;}l==null&&(l=""),a=l;}l=Xl(a),t.defaultValue=l,i=t.textContent,i===l&&i!==""&&i!==null&&(t.value=i),xv(t);}function bf(t,a){if(a){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=a;return}}t.textContent=a;}var r9=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 gk(t,a,l){var i=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?i?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":i?t.setProperty(a,l):typeof l!="number"||l===0||r9.has(a)?a==="float"?t.cssFloat=l:t[a]=(""+l).trim():t[a]=l+"px";}function nT(t,a,l){if(a!=null&&typeof a!="object")throw Error(I(62));if(t=t.style,l!=null){for(var i in l)!l.hasOwnProperty(i)||a!=null&&a.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var r in a)i=a[r],a.hasOwnProperty(r)&&l[r]!==i&&gk(t,r,i);}else for(var s in a)a.hasOwnProperty(s)&&gk(t,s,a[s]);}function sS(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 c9=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"]]),s9=/^[\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 ym(t){return s9.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Bi(){}var Sv=null;function fS(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var tf=null,df=null;function xk(t){var a=Df(t);if(a&&(t=a.stateNode)){var l=t[Qa]||null;t:switch(t=a.stateNode,a.type){case "input":if(bv(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Vl(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var i=l[a];if(i!==t&&i.form===t.form){var r=i[Qa]||null;if(!r)throw Error(I(90));bv(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name);}}for(a=0;a<l.length;a++)i=l[a],i.form===t.form&&Pz(i);}break t;case "textarea":tT(t,l.value,l.defaultValue);break t;case "select":a=l.value,a!=null&&ff(t,!!l.multiple,a,false);}}}var Ub=false;function aT(t,a,l){if(Ub)return t(a,l);Ub=true;try{var i=t(a);return i}finally{if(Ub=false,(tf!==null||df!==null)&&(m2(),tf&&(a=tf,t=df,df=tf=null,xk(a),t)))for(a=0;a<t.length;a++)xk(t[a]);}}function F0(t,a){var l=t.stateNode;if(l===null)return null;var i=l[Qa]||null;if(i===null)return null;l=i[a];t:switch(a){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(l&&typeof l!="function")throw Error(I(231,a,typeof l));return l}var Qi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ev=false;if(Qi)try{Qs={},Object.defineProperty(Qs,"passive",{get:function(){Ev=!0;}}),window.addEventListener("test",Qs,Qs),window.removeEventListener("test",Qs,Qs);}catch{Ev=false;}var Qs,tr=null,dS=null,mm=null;function lT(){if(mm)return mm;var t,a=dS,l=a.length,i,r="value"in tr?tr.value:tr.textContent,s=r.length;for(t=0;t<l&&a[t]===r[t];t++);var h=l-t;for(i=1;i<=h&&a[l-i]===r[s-i];i++);return mm=r.slice(t,1<i?1-i:void 0)}function pm(t){var a=t.keyCode;return "charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function tm(){return true}function bk(){return false}function Va(t){function a(l,i,r,s,h){this._reactName=l,this._targetInst=r,this.type=i,this.nativeEvent=s,this.target=h,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(l=t[y],this[y]=l?l(s):s[y]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===false)?tm:bk,this.isPropagationStopped=bk,this}return Ke(a.prototype,{preventDefault:function(){this.defaultPrevented=true;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=false),this.isDefaultPrevented=tm);},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=true),this.isPropagationStopped=tm);},persist:function(){},isPersistent:tm}),a}var Dc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},l2=Va(Dc),mh=Ke({},Dc,{view:0,detail:0}),f9=Va(mh),Nb,$b,z0,o2=Ke({},mh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hS,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!==z0&&(z0&&t.type==="mousemove"?(Nb=t.screenX-z0.screenX,$b=t.screenY-z0.screenY):$b=Nb=0,z0=t),Nb)},movementY:function(t){return "movementY"in t?t.movementY:$b}}),vk=Va(o2),d9=Ke({},o2,{dataTransfer:0}),h9=Va(d9),y9=Ke({},mh,{relatedTarget:0}),Lb=Va(y9),m9=Ke({},Dc,{animationName:0,elapsedTime:0,pseudoElement:0}),p9=Va(m9),g9=Ke({},Dc,{clipboardData:function(t){return "clipboardData"in t?t.clipboardData:window.clipboardData}}),x9=Va(g9),b9=Ke({},Dc,{data:0}),Sk=Va(b9),v9={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},S9={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"},E9={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M9(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=E9[t])?!!a[t]:false}function hS(){return M9}var _9=Ke({},mh,{key:function(t){if(t.key){var a=v9[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=pm(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?S9[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hS,charCode:function(t){return t.type==="keypress"?pm(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?pm(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),k9=Va(_9),z9=Ke({},o2,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ek=Va(z9),T9=Ke({},mh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hS}),A9=Va(T9),D9=Ke({},Dc,{propertyName:0,elapsedTime:0,pseudoElement:0}),C9=Va(D9),O9=Ke({},o2,{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}),R9=Va(O9),w9=Ke({},Dc,{newState:0,oldState:0}),H9=Va(w9),U9=[9,13,27,32],yS=Qi&&"CompositionEvent"in window,$0=null;Qi&&"documentMode"in document&&($0=document.documentMode);var N9=Qi&&"TextEvent"in window&&!$0,oT=Qi&&(!yS||$0&&8<$0&&11>=$0),Mk=" ",_k=false;function iT(t,a){switch(t){case "keyup":return U9.indexOf(a.keyCode)!==-1;case "keydown":return a.keyCode!==229;case "keypress":case "mousedown":case "focusout":return true;default:return false}}function uT(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ef=false;function $9(t,a){switch(t){case "compositionend":return uT(a);case "keypress":return a.which!==32?null:(_k=true,Mk);case "textInput":return t=a.data,t===Mk&&_k?null:t;default:return null}}function L9(t,a){if(ef)return t==="compositionend"||!yS&&iT(t,a)?(t=lT(),mm=dS=tr=null,ef=false,t):null;switch(t){case "paste":return null;case "keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case "compositionend":return oT&&a.locale!=="ko"?null:a.data;default:return null}}var Y9={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 kk(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!Y9[t.type]:a==="textarea"}function rT(t,a,l,i){tf?df?df.push(i):df=[i]:tf=i,a=Km(a,"onChange"),0<a.length&&(l=new l2("onChange","change",null,l,i),t.push({event:l,listeners:a}));}var L0=null,P0=null;function W9(t){aD(t,0);}function i2(t){var a=H0(t);if(Pz(a))return t}function zk(t,a){if(t==="change")return a}var cT=false;Qi&&(Qi?(nm="oninput"in document,nm||(Yb=document.createElement("div"),Yb.setAttribute("oninput","return;"),nm=typeof Yb.oninput=="function"),em=nm):em=false,cT=em&&(!document.documentMode||9<document.documentMode));var em,nm,Yb;function Tk(){L0&&(L0.detachEvent("onpropertychange",sT),P0=L0=null);}function sT(t){if(t.propertyName==="value"&&i2(P0)){var a=[];rT(a,P0,t,fS(t)),aT(W9,a);}}function B9(t,a,l){t==="focusin"?(Tk(),L0=a,P0=l,L0.attachEvent("onpropertychange",sT)):t==="focusout"&&Tk();}function j9(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return i2(P0)}function q9(t,a){if(t==="click")return i2(a)}function X9(t,a){if(t==="input"||t==="change")return i2(a)}function G9(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var El=typeof Object.is=="function"?Object.is:G9;function I0(t,a){if(El(t,a))return true;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return false;var l=Object.keys(t),i=Object.keys(a);if(l.length!==i.length)return false;for(i=0;i<l.length;i++){var r=l[i];if(!pv.call(a,r)||!El(t[r],a[r]))return false}return true}function Ak(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Dk(t,a){var l=Ak(t);t=0;for(var i;l;){if(l.nodeType===3){if(i=t+l.textContent.length,t<=a&&i>=a)return {node:l,offset:a-t};t=i;}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode;}l=void 0;}l=Ak(l);}}function fT(t,a){return t&&a?t===a?true:t&&t.nodeType===3?false:a&&a.nodeType===3?fT(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):false:false}function dT(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=Rm(t.document);a instanceof t.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string";}catch{l=false;}if(l)t=a.contentWindow;else break;a=Rm(t.document);}return a}function mS(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var Q9=Qi&&"documentMode"in document&&11>=document.documentMode,nf=null,Mv=null,Y0=null,_v=false;function Ck(t,a,l){var i=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;_v||nf==null||nf!==Rm(i)||(i=nf,"selectionStart"in i&&mS(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}),Y0&&I0(Y0,i)||(Y0=i,i=Km(Mv,"onSelect"),0<i.length&&(a=new l2("onSelect","select",null,a,l),t.push({event:a,listeners:i}),a.target=nf)));}function hc(t,a){var l={};return l[t.toLowerCase()]=a.toLowerCase(),l["Webkit"+t]="webkit"+a,l["Moz"+t]="moz"+a,l}var af={animationend:hc("Animation","AnimationEnd"),animationiteration:hc("Animation","AnimationIteration"),animationstart:hc("Animation","AnimationStart"),transitionrun:hc("Transition","TransitionRun"),transitionstart:hc("Transition","TransitionStart"),transitioncancel:hc("Transition","TransitionCancel"),transitionend:hc("Transition","TransitionEnd")},Wb={},hT={};Qi&&(hT=document.createElement("div").style,"AnimationEvent"in window||(delete af.animationend.animation,delete af.animationiteration.animation,delete af.animationstart.animation),"TransitionEvent"in window||delete af.transitionend.transition);function Cc(t){if(Wb[t])return Wb[t];if(!af[t])return t;var a=af[t],l;for(l in a)if(a.hasOwnProperty(l)&&l in hT)return Wb[t]=a[l];return t}var yT=Cc("animationend"),mT=Cc("animationiteration"),pT=Cc("animationstart"),V9=Cc("transitionrun"),Z9=Cc("transitionstart"),J9=Cc("transitioncancel"),gT=Cc("transitionend"),xT=new Map,kv="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(" ");kv.push("scrollEnd");function mo(t,a){xT.set(t,a),Ac(a,[t]);}var wm=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t);},ql=[],lf=0,pS=0;function u2(){for(var t=lf,a=pS=lf=0;a<t;){var l=ql[a];ql[a++]=null;var i=ql[a];ql[a++]=null;var r=ql[a];ql[a++]=null;var s=ql[a];if(ql[a++]=null,i!==null&&r!==null){var h=i.pending;h===null?r.next=r:(r.next=h.next,h.next=r),i.pending=r;}s!==0&&bT(l,r,s);}}function r2(t,a,l,i){ql[lf++]=t,ql[lf++]=a,ql[lf++]=l,ql[lf++]=i,pS|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i);}function gS(t,a,l,i){return r2(t,a,l,i),Hm(t)}function Oc(t,a){return r2(t,null,null,a),Hm(t)}function bT(t,a,l){t.lanes|=l;var i=t.alternate;i!==null&&(i.lanes|=l);for(var r=false,s=t.return;s!==null;)s.childLanes|=l,i=s.alternate,i!==null&&(i.childLanes|=l),s.tag===22&&(t=s.stateNode,t===null||t._visibility&1||(r=true)),t=s,s=s.return;return t.tag===3?(s=t.stateNode,r&&a!==null&&(r=31-vl(l),t=s.hiddenUpdates,i=t[r],i===null?t[r]=[a]:i.push(a),a.lane=l|536870912),s):null}function Hm(t){if(50<Z0)throw Z0=0,Qv=null,Error(I(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var of={};function K9(t,a,l,i){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,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 pl(t,a,l,i){return new K9(t,a,l,i)}function xS(t){return t=t.prototype,!(!t||!t.isReactComponent)}function qi(t,a){var l=t.alternate;return l===null?(l=pl(t.tag,a,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=a,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,a=t.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function vT(t,a){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,a=l.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function gm(t,a,l,i,r,s){var h=0;if(i=t,typeof t=="function")xS(t)&&(h=1);else if(typeof t=="string")h=IH(t,l,Po.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case dv:return t=pl(31,l,a,r),t.elementType=dv,t.lanes=s,t;case Fs:return bc(l.children,r,s,a);case Yz:h=8,r|=24;break;case cv:return t=pl(12,l,a,r|2),t.elementType=cv,t.lanes=s,t;case sv:return t=pl(13,l,a,r),t.elementType=sv,t.lanes=s,t;case fv:return t=pl(19,l,a,r),t.elementType=fv,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Wi:h=10;break t;case Wz:h=9;break t;case lS:h=11;break t;case oS:h=14;break t;case Vu:h=16,i=null;break t}h=29,l=Error(I(130,t===null?"null":typeof t,"")),i=null;}return a=pl(h,l,a,r),a.elementType=t,a.type=i,a.lanes=s,a}function bc(t,a,l,i){return t=pl(7,t,i,a),t.lanes=l,t}function Bb(t,a,l){return t=pl(6,t,null,a),t.lanes=l,t}function ST(t){var a=pl(18,null,null,0);return a.stateNode=t,a}function jb(t,a,l){return a=pl(4,t.children!==null?t.children:[],t.key,a),a.lanes=l,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Ok=new WeakMap;function Zl(t,a){if(typeof t=="object"&&t!==null){var l=Ok.get(t);return l!==void 0?l:(a={value:t,source:a,stack:dk(a)},Ok.set(t,a),a)}return {value:t,source:a,stack:dk(a)}}var uf=[],rf=0,Um=null,th=0,Gl=[],Ql=0,hr=null,Jo=1,Ko="";function Li(t,a){uf[rf++]=th,uf[rf++]=Um,Um=t,th=a;}function ET(t,a,l){Gl[Ql++]=Jo,Gl[Ql++]=Ko,Gl[Ql++]=hr,hr=t;var i=Jo;t=Ko;var r=32-vl(i)-1;i&=~(1<<r),l+=1;var s=32-vl(a)+r;if(30<s){var h=r-r%5;s=(i&(1<<h)-1).toString(32),i>>=h,r-=h,Jo=1<<32-vl(a)+r|l<<r|i,Ko=s+t;}else Jo=1<<s|l<<r|i,Ko=t;}function bS(t){t.return!==null&&(Li(t,1),ET(t,1,0));}function vS(t){for(;t===Um;)Um=uf[--rf],uf[rf]=null,th=uf[--rf],uf[rf]=null;for(;t===hr;)hr=Gl[--Ql],Gl[Ql]=null,Ko=Gl[--Ql],Gl[Ql]=null,Jo=Gl[--Ql],Gl[Ql]=null;}function MT(t,a){Gl[Ql++]=Jo,Gl[Ql++]=Ko,Gl[Ql++]=hr,Jo=a.id,Ko=a.overflow,hr=t;}var na=null,Je=null,he=false,or=null,Jl=false,zv=Error(I(519));function yr(t){var a=Error(I(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw eh(Zl(a,t)),zv}function Rk(t){var a=t.stateNode,l=t.type,i=t.memoizedProps;switch(a[ea]=t,a[Qa]=i,l){case "dialog":re("cancel",a),re("close",a);break;case "iframe":case "object":case "embed":re("load",a);break;case "video":case "audio":for(l=0;l<oh.length;l++)re(oh[l],a);break;case "source":re("error",a);break;case "img":case "image":case "link":re("error",a),re("load",a);break;case "details":re("toggle",a);break;case "input":re("invalid",a),Iz(a,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,true);break;case "select":re("invalid",a);break;case "textarea":re("invalid",a),eT(a,i.value,i.defaultValue,i.children);}l=i.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||i.suppressHydrationWarning===true||oD(a.textContent,l)?(i.popover!=null&&(re("beforetoggle",a),re("toggle",a)),i.onScroll!=null&&re("scroll",a),i.onScrollEnd!=null&&re("scrollend",a),i.onClick!=null&&(a.onclick=Bi),a=true):a=false,a||yr(t,true);}function wk(t){for(na=t.return;na;)switch(na.tag){case 5:case 31:case 13:Jl=false;return;case 27:case 3:Jl=true;return;default:na=na.return;}}function Vs(t){if(t!==na)return false;if(!he)return wk(t),he=true,false;var a=t.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Fv(t.type,t.memoizedProps)),l=!l),l&&Je&&yr(t),wk(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(317));Je=Sz(t);}else if(a===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(317));Je=Sz(t);}else a===27?(a=Je,xr(t.type)?(t=eS,eS=null,Je=t):Je=a):Je=na?Fl(t.stateNode.nextSibling):null;return true}function Mc(){Je=na=null,he=false;}function qb(){var t=or;return t!==null&&(Xa===null?Xa=t:Xa.push.apply(Xa,t),or=null),t}function eh(t){or===null?or=[t]:or.push(t);}var Tv=Io(null),Rc=null,ji=null;function Ju(t,a,l){qe(Tv,a._currentValue),a._currentValue=l;}function Xi(t){t._currentValue=Tv.current,Xn(Tv);}function Av(t,a,l){for(;t!==null;){var i=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,i!==null&&(i.childLanes|=a)):i!==null&&(i.childLanes&a)!==a&&(i.childLanes|=a),t===l)break;t=t.return;}}function Dv(t,a,l,i){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var s=r.dependencies;if(s!==null){var h=r.child;s=s.firstContext;t:for(;s!==null;){var y=s;s=r;for(var p=0;p<a.length;p++)if(y.context===a[p]){s.lanes|=l,y=s.alternate,y!==null&&(y.lanes|=l),Av(s.return,l,t),i||(h=null);break t}s=y.next;}}else if(r.tag===18){if(h=r.return,h===null)throw Error(I(341));h.lanes|=l,s=h.alternate,s!==null&&(s.lanes|=l),Av(h,l,t),h=null;}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===t){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return;}r=h;}}function Cf(t,a,l,i){t=null;for(var r=a,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 h=r.alternate;if(h===null)throw Error(I(387));if(h=h.memoizedProps,h!==null){var y=r.type;El(r.pendingProps.value,h.value)||(t!==null?t.push(y):t=[y]);}}else if(r===Am.current){if(h=r.alternate,h===null)throw Error(I(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(uh):t=[uh]);}r=r.return;}t!==null&&Dv(a,t,l,i),a.flags|=262144;}function Nm(t){for(t=t.firstContext;t!==null;){if(!El(t.context._currentValue,t.memoizedValue))return true;t=t.next;}return false}function _c(t){Rc=t,ji=null,t=t.dependencies,t!==null&&(t.firstContext=null);}function aa(t){return _T(Rc,t)}function am(t,a){return Rc===null&&_c(t),_T(t,a)}function _T(t,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},ji===null){if(t===null)throw Error(I(308));ji=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288;}else ji=ji.next=a;return l}var F9=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:false,addEventListener:function(l,i){t.push(i);}};this.abort=function(){a.aborted=true,t.forEach(function(l){return l()});};},P9=wn.unstable_scheduleCallback,I9=wn.unstable_NormalPriority,zn={$$typeof:Wi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function SS(){return {controller:new F9,data:new Map,refCount:0}}function ph(t){t.refCount--,t.refCount===0&&P9(I9,function(){t.controller.abort();});}var W0=null,Cv=0,vf=0,hf=null;function tH(t,a){if(W0===null){var l=W0=[];Cv=0,vf=QS(),hf={status:"pending",value:void 0,then:function(i){l.push(i);}};}return Cv++,a.then(Hk,Hk),a}function Hk(){if(--Cv===0&&W0!==null){hf!==null&&(hf.status="fulfilled");var t=W0;W0=null,vf=0,hf=null;for(var a=0;a<t.length;a++)(0, t[a])();}}function eH(t,a){var l=[],i={status:"pending",value:null,reason:null,then:function(r){l.push(r);}};return t.then(function(){i.status="fulfilled",i.value=a;for(var r=0;r<l.length;r++)(0, l[r])(a);},function(r){for(i.status="rejected",i.reason=r,r=0;r<l.length;r++)(0, l[r])(void 0);}),i}var Uk=Nt.S;Nt.S=function(t,a){LA=xl(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&tH(t,a),Uk!==null&&Uk(t,a);};var vc=Io(null);function ES(){var t=vc.current;return t!==null?t:Le.pooledCache}function xm(t,a){a===null?qe(vc,vc.current):qe(vc,a.pool);}function kT(){var t=ES();return t===null?null:{parent:zn._currentValue,pool:t}}var Of=Error(I(460)),MS=Error(I(474)),c2=Error(I(542)),$m={then:function(){}};function Nk(t){return t=t.status,t==="fulfilled"||t==="rejected"}function zT(t,a,l){switch(l=t[l],l===void 0?t.push(a):l!==a&&(a.then(Bi,Bi),a=l),a.status){case "fulfilled":return a.value;case "rejected":throw t=a.reason,Lk(t),t;default:if(typeof a.status=="string")a.then(Bi,Bi);else {if(t=Le,t!==null&&100<t.shellSuspendCounter)throw Error(I(482));t=a,t.status="pending",t.then(function(i){if(a.status==="pending"){var r=a;r.status="fulfilled",r.value=i;}},function(i){if(a.status==="pending"){var r=a;r.status="rejected",r.reason=i;}});}switch(a.status){case "fulfilled":return a.value;case "rejected":throw t=a.reason,Lk(t),t}throw Sc=a,Of}}function pc(t){try{var a=t._init;return a(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Sc=l,Of):l}}var Sc=null;function $k(){if(Sc===null)throw Error(I(459));var t=Sc;return Sc=null,t}function Lk(t){if(t===Of||t===c2)throw Error(I(483))}var yf=null,nh=0;function lm(t){var a=nh;return nh+=1,yf===null&&(yf=[]),zT(yf,t,a)}function T0(t,a){a=a.props.ref,t.ref=a!==void 0?a:null;}function om(t,a){throw a.$$typeof===Bw?Error(I(525)):(t=Object.prototype.toString.call(a),Error(I(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function TT(t){function a(C,z){if(t){var O=C.deletions;O===null?(C.deletions=[z],C.flags|=16):O.push(z);}}function l(C,z){if(!t)return null;for(;z!==null;)a(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 r(C,z){return C=qi(C,z),C.index=0,C.sibling=null,C}function s(C,z,O){return C.index=O,t?(O=C.alternate,O!==null?(O=O.index,O<z?(C.flags|=67108866,z):O):(C.flags|=67108866,z)):(C.flags|=1048576,z)}function h(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function y(C,z,O,B){return z===null||z.tag!==6?(z=Bb(O,C.mode,B),z.return=C,z):(z=r(z,O),z.return=C,z)}function p(C,z,O,B){var L=O.type;return L===Fs?_(C,z,O.props.children,B,O.key):z!==null&&(z.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Vu&&pc(L)===z.type)?(z=r(z,O.props),T0(z,O),z.return=C,z):(z=gm(O.type,O.key,O.props,null,C.mode,B),T0(z,O),z.return=C,z)}function E(C,z,O,B){return z===null||z.tag!==4||z.stateNode.containerInfo!==O.containerInfo||z.stateNode.implementation!==O.implementation?(z=jb(O,C.mode,B),z.return=C,z):(z=r(z,O.children||[]),z.return=C,z)}function _(C,z,O,B,L){return z===null||z.tag!==7?(z=bc(O,C.mode,B,L),z.return=C,z):(z=r(z,O),z.return=C,z)}function M(C,z,O){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Bb(""+z,C.mode,O),z.return=C,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case J1:return O=gm(z.type,z.key,z.props,null,C.mode,O),T0(O,z),O.return=C,O;case R0:return z=jb(z,C.mode,O),z.return=C,z;case Vu:return z=pc(z),M(C,z,O)}if(w0(z)||k0(z))return z=bc(z,C.mode,O,null),z.return=C,z;if(typeof z.then=="function")return M(C,lm(z),O);if(z.$$typeof===Wi)return M(C,am(C,z),O);om(C,z);}return null}function b(C,z,O,B){var L=z!==null?z.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return L!==null?null:y(C,z,""+O,B);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case J1:return O.key===L?p(C,z,O,B):null;case R0:return O.key===L?E(C,z,O,B):null;case Vu:return O=pc(O),b(C,z,O,B)}if(w0(O)||k0(O))return L!==null?null:_(C,z,O,B,null);if(typeof O.then=="function")return b(C,z,lm(O),B);if(O.$$typeof===Wi)return b(C,z,am(C,O),B);om(C,O);}return null}function k(C,z,O,B,L){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return C=C.get(O)||null,y(z,C,""+B,L);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case J1:return C=C.get(B.key===null?O:B.key)||null,p(z,C,B,L);case R0:return C=C.get(B.key===null?O:B.key)||null,E(z,C,B,L);case Vu:return B=pc(B),k(C,z,O,B,L)}if(w0(B)||k0(B))return C=C.get(O)||null,_(z,C,B,L,null);if(typeof B.then=="function")return k(C,z,O,lm(B),L);if(B.$$typeof===Wi)return k(C,z,O,am(z,B),L);om(z,B);}return null}function Y(C,z,O,B){for(var L=null,xt=null,nt=z,at=z=0,Mt=null;nt!==null&&at<O.length;at++){nt.index>at?(Mt=nt,nt=null):Mt=nt.sibling;var P=b(C,nt,O[at],B);if(P===null){nt===null&&(nt=Mt);break}t&&nt&&P.alternate===null&&a(C,nt),z=s(P,z,at),xt===null?L=P:xt.sibling=P,xt=P,nt=Mt;}if(at===O.length)return l(C,nt),he&&Li(C,at),L;if(nt===null){for(;at<O.length;at++)nt=M(C,O[at],B),nt!==null&&(z=s(nt,z,at),xt===null?L=nt:xt.sibling=nt,xt=nt);return he&&Li(C,at),L}for(nt=i(nt);at<O.length;at++)Mt=k(nt,C,at,O[at],B),Mt!==null&&(t&&Mt.alternate!==null&&nt.delete(Mt.key===null?at:Mt.key),z=s(Mt,z,at),xt===null?L=Mt:xt.sibling=Mt,xt=Mt);return t&&nt.forEach(function(fe){return a(C,fe)}),he&&Li(C,at),L}function $(C,z,O,B){if(O==null)throw Error(I(151));for(var L=null,xt=null,nt=z,at=z=0,Mt=null,P=O.next();nt!==null&&!P.done;at++,P=O.next()){nt.index>at?(Mt=nt,nt=null):Mt=nt.sibling;var fe=b(C,nt,P.value,B);if(fe===null){nt===null&&(nt=Mt);break}t&&nt&&fe.alternate===null&&a(C,nt),z=s(fe,z,at),xt===null?L=fe:xt.sibling=fe,xt=fe,nt=Mt;}if(P.done)return l(C,nt),he&&Li(C,at),L;if(nt===null){for(;!P.done;at++,P=O.next())P=M(C,P.value,B),P!==null&&(z=s(P,z,at),xt===null?L=P:xt.sibling=P,xt=P);return he&&Li(C,at),L}for(nt=i(nt);!P.done;at++,P=O.next())P=k(nt,C,at,P.value,B),P!==null&&(t&&P.alternate!==null&&nt.delete(P.key===null?at:P.key),z=s(P,z,at),xt===null?L=P:xt.sibling=P,xt=P);return t&&nt.forEach(function(Lt){return a(C,Lt)}),he&&Li(C,at),L}function K(C,z,O,B){if(typeof O=="object"&&O!==null&&O.type===Fs&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case J1:t:{for(var L=O.key;z!==null;){if(z.key===L){if(L=O.type,L===Fs){if(z.tag===7){l(C,z.sibling),B=r(z,O.props.children),B.return=C,C=B;break t}}else if(z.elementType===L||typeof L=="object"&&L!==null&&L.$$typeof===Vu&&pc(L)===z.type){l(C,z.sibling),B=r(z,O.props),T0(B,O),B.return=C,C=B;break t}l(C,z);break}else a(C,z);z=z.sibling;}O.type===Fs?(B=bc(O.props.children,C.mode,B,O.key),B.return=C,C=B):(B=gm(O.type,O.key,O.props,null,C.mode,B),T0(B,O),B.return=C,C=B);}return h(C);case R0:t:{for(L=O.key;z!==null;){if(z.key===L)if(z.tag===4&&z.stateNode.containerInfo===O.containerInfo&&z.stateNode.implementation===O.implementation){l(C,z.sibling),B=r(z,O.children||[]),B.return=C,C=B;break t}else {l(C,z);break}else a(C,z);z=z.sibling;}B=jb(O,C.mode,B),B.return=C,C=B;}return h(C);case Vu:return O=pc(O),K(C,z,O,B)}if(w0(O))return Y(C,z,O,B);if(k0(O)){if(L=k0(O),typeof L!="function")throw Error(I(150));return O=L.call(O),$(C,z,O,B)}if(typeof O.then=="function")return K(C,z,lm(O),B);if(O.$$typeof===Wi)return K(C,z,am(C,O),B);om(C,O);}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,z!==null&&z.tag===6?(l(C,z.sibling),B=r(z,O),B.return=C,C=B):(l(C,z),B=Bb(O,C.mode,B),B.return=C,C=B),h(C)):l(C,z)}return function(C,z,O,B){try{nh=0;var L=K(C,z,O,B);return yf=null,L}catch(nt){if(nt===Of||nt===c2)throw nt;var xt=pl(29,nt,null,C.mode);return xt.lanes=B,xt.return=C,xt}}}var kc=TT(true),AT=TT(false),Zu=false;function _S(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function Ov(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null});}function ir(t){return {lane:t,tag:0,payload:null,callback:null,next:null}}function ur(t,a,l){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(xe&2)!==0){var r=i.pending;return r===null?a.next=a:(a.next=r.next,r.next=a),i.pending=a,a=Hm(t),bT(t,null,l),a}return r2(t,i,a,l),Hm(t)}function B0(t,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var i=a.lanes;i&=t.pendingLanes,l|=i,a.lanes=l,Qz(t,l);}}function Xb(t,a){var l=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,l===i)){var r=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?r=s=h:s=s.next=h,l=l.next;}while(l!==null);s===null?r=s=a:s=s.next=a;}else r=s=a;l={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:i.shared,callbacks:i.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=a:t.next=a,l.lastBaseUpdate=a;}var Rv=false;function j0(){if(Rv){var t=hf;if(t!==null)throw t}}function q0(t,a,l,i){Rv=false;var r=t.updateQueue;Zu=false;var s=r.firstBaseUpdate,h=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var p=y,E=p.next;p.next=null,h===null?s=E:h.next=E,h=p;var _=t.alternate;_!==null&&(_=_.updateQueue,y=_.lastBaseUpdate,y!==h&&(y===null?_.firstBaseUpdate=E:y.next=E,_.lastBaseUpdate=p));}if(s!==null){var M=r.baseState;h=0,_=E=p=null,y=s;do{var b=y.lane&-536870913,k=b!==y.lane;if(k?(se&b)===b:(i&b)===b){b!==0&&b===vf&&(Rv=true),_!==null&&(_=_.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var Y=t,$=y;b=a;var K=l;switch($.tag){case 1:if(Y=$.payload,typeof Y=="function"){M=Y.call(K,M,b);break t}M=Y;break t;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=$.payload,b=typeof Y=="function"?Y.call(K,M,b):Y,b==null)break t;M=Ke({},M,b);break t;case 2:Zu=true;}}b=y.callback,b!==null&&(t.flags|=64,k&&(t.flags|=8192),k=r.callbacks,k===null?r.callbacks=[b]:k.push(b));}else k={lane:b,tag:y.tag,payload:y.payload,callback:y.callback,next:null},_===null?(E=_=k,p=M):_=_.next=k,h|=b;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;k=y,y=k.next,k.next=null,r.lastBaseUpdate=k,r.shared.pending=null;}}while(true);_===null&&(p=M),r.baseState=p,r.firstBaseUpdate=E,r.lastBaseUpdate=_,s===null&&(r.shared.lanes=0),pr|=h,t.lanes=h,t.memoizedState=M;}}function DT(t,a){if(typeof t!="function")throw Error(I(191,t));t.call(a);}function CT(t,a){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)DT(l[t],a);}var Sf=Io(null),Lm=Io(0);function Yk(t,a){t=Ki,qe(Lm,t),qe(Sf,a),Ki=t|a.baseLanes;}function wv(){qe(Lm,Ki),qe(Sf,Sf.current);}function kS(){Ki=Lm.current,Xn(Sf),Xn(Lm);}var Ml=Io(null),Kl=null;function Ku(t){var a=t.alternate;qe(hn,hn.current&1),qe(Ml,t),Kl===null&&(a===null||Sf.current!==null||a.memoizedState!==null)&&(Kl=t);}function Hv(t){qe(hn,hn.current),qe(Ml,t),Kl===null&&(Kl=t);}function OT(t){t.tag===22?(qe(hn,hn.current),qe(Ml,t),Kl===null&&(Kl=t)):Fu();}function Fu(){qe(hn,hn.current),qe(Ml,Ml.current);}function ml(t){Xn(Ml),Kl===t&&(Kl=null),Xn(hn);}var hn=Io(0);function Ym(t){for(var a=t;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Iv(l)||tS(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return;}a.sibling.return=a.return,a=a.sibling;}return null}var Vi=0,Jt=null,we=null,_n=null,Wm=false,mf=false,zc=false,Bm=0,ah=0,pf=null,nH=0;function un(){throw Error(I(321))}function zS(t,a){if(a===null)return false;for(var l=0;l<a.length&&l<t.length;l++)if(!El(t[l],a[l]))return false;return true}function TS(t,a,l,i,r,s){return Vi=s,Jt=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Nt.H=t===null||t.memoizedState===null?rA:LS,zc=false,s=l(i,r),zc=false,mf&&(s=wT(a,l,i,r)),RT(t),s}function RT(t){Nt.H=lh;var a=we!==null&&we.next!==null;if(Vi=0,_n=we=Jt=null,Wm=false,ah=0,pf=null,a)throw Error(I(300));t===null||Tn||(t=t.dependencies,t!==null&&Nm(t)&&(Tn=true));}function wT(t,a,l,i){Jt=t;var r=0;do{if(mf&&(pf=null),ah=0,mf=false,25<=r)throw Error(I(301));if(r+=1,_n=we=null,t.updateQueue!=null){var s=t.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0);}Nt.H=cA,s=a(l,i);}while(mf);return s}function aH(){var t=Nt.H,a=t.useState()[0];return a=typeof a.then=="function"?gh(a):a,t=t.useState()[0],(we!==null?we.memoizedState:null)!==t&&(Jt.flags|=1024),a}function AS(){var t=Bm!==0;return Bm=0,t}function DS(t,a,l){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~l;}function CS(t){if(Wm){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next;}Wm=false;}Vi=0,_n=we=Jt=null,mf=false,ah=Bm=0,pf=null;}function Aa(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _n===null?Jt.memoizedState=_n=t:_n=_n.next=t,_n}function yn(){if(we===null){var t=Jt.alternate;t=t!==null?t.memoizedState:null;}else t=we.next;var a=_n===null?Jt.memoizedState:_n.next;if(a!==null)_n=a,we=t;else {if(t===null)throw Jt.alternate===null?Error(I(467)):Error(I(310));we=t,t={memoizedState:we.memoizedState,baseState:we.baseState,baseQueue:we.baseQueue,queue:we.queue,next:null},_n===null?Jt.memoizedState=_n=t:_n=_n.next=t;}return _n}function s2(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function gh(t){var a=ah;return ah+=1,pf===null&&(pf=[]),t=zT(pf,t,a),a=Jt,(_n===null?a.memoizedState:_n.next)===null&&(a=a.alternate,Nt.H=a===null||a.memoizedState===null?rA:LS),t}function f2(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return gh(t);if(t.$$typeof===Wi)return aa(t)}throw Error(I(438,String(t)))}function OS(t){var a=null,l=Jt.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var i=Jt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(a={data:i.data.map(function(r){return r.slice()}),index:0})));}if(a==null&&(a={data:[],index:0}),l===null&&(l=s2(),Jt.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(t),i=0;i<t;i++)l[i]=jw;return a.index++,l}function Zi(t,a){return typeof a=="function"?a(t):a}function bm(t){var a=yn();return RS(a,we,t)}function RS(t,a,l){var i=t.queue;if(i===null)throw Error(I(311));i.lastRenderedReducer=l;var r=t.baseQueue,s=i.pending;if(s!==null){if(r!==null){var h=r.next;r.next=s.next,s.next=h;}a.baseQueue=r=s,i.pending=null;}if(s=t.baseState,r===null)t.memoizedState=s;else {a=r.next;var y=h=null,p=null,E=a,_=false;do{var M=E.lane&-536870913;if(M!==E.lane?(se&M)===M:(Vi&M)===M){var b=E.revertLane;if(b===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),M===vf&&(_=true);else if((Vi&b)===b){E=E.next,b===vf&&(_=true);continue}else M={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},p===null?(y=p=M,h=s):p=p.next=M,Jt.lanes|=b,pr|=b;M=E.action,zc&&l(s,M),s=E.hasEagerState?E.eagerState:l(s,M);}else b={lane:M,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},p===null?(y=p=b,h=s):p=p.next=b,Jt.lanes|=M,pr|=M;E=E.next;}while(E!==null&&E!==a);if(p===null?h=s:p.next=y,!El(s,t.memoizedState)&&(Tn=true,_&&(l=hf,l!==null)))throw l;t.memoizedState=s,t.baseState=h,t.baseQueue=p,i.lastRenderedState=s;}return r===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function Gb(t){var a=yn(),l=a.queue;if(l===null)throw Error(I(311));l.lastRenderedReducer=t;var i=l.dispatch,r=l.pending,s=a.memoizedState;if(r!==null){l.pending=null;var h=r=r.next;do s=t(s,h.action),h=h.next;while(h!==r);El(s,a.memoizedState)||(Tn=true),a.memoizedState=s,a.baseQueue===null&&(a.baseState=s),l.lastRenderedState=s;}return [s,i]}function HT(t,a,l){var i=Jt,r=yn(),s=he;if(s){if(l===void 0)throw Error(I(407));l=l();}else l=a();var h=!El((we||r).memoizedState,l);if(h&&(r.memoizedState=l,Tn=true),r=r.queue,wS($T.bind(null,i,r,t),[t]),r.getSnapshot!==a||h||_n!==null&&_n.memoizedState.tag&1){if(i.flags|=2048,Ef(9,{destroy:void 0},NT.bind(null,i,r,l,a),null),Le===null)throw Error(I(349));s||(Vi&127)!==0||UT(i,a,l);}return l}function UT(t,a,l){t.flags|=16384,t={getSnapshot:a,value:l},a=Jt.updateQueue,a===null?(a=s2(),Jt.updateQueue=a,a.stores=[t]):(l=a.stores,l===null?a.stores=[t]:l.push(t));}function NT(t,a,l,i){a.value=l,a.getSnapshot=i,LT(a)&&YT(t);}function $T(t,a,l){return l(function(){LT(a)&&YT(t);})}function LT(t){var a=t.getSnapshot;t=t.value;try{var l=a();return !El(t,l)}catch{return true}}function YT(t){var a=Oc(t,2);a!==null&&Ga(a,t,2);}function Uv(t){var a=Aa();if(typeof t=="function"){var l=t;if(t=l(),zc){Iu(true);try{l();}finally{Iu(false);}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:t},a}function WT(t,a,l,i){return t.baseState=l,RS(t,we,typeof i=="function"?i:Zi)}function lH(t,a,l,i,r){if(h2(t))throw Error(I(485));if(t=a.action,t!==null){var s={payload:r,action:t,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(h){s.listeners.push(h);}};Nt.T!==null?l(true):s.isTransition=false,i(s),l=a.pending,l===null?(s.next=a.pending=s,BT(a,s)):(s.next=l.next,a.pending=l.next=s);}}function BT(t,a){var l=a.action,i=a.payload,r=t.state;if(a.isTransition){var s=Nt.T,h={};Nt.T=h;try{var y=l(r,i),p=Nt.S;p!==null&&p(h,y),Wk(t,a,y);}catch(E){Nv(t,a,E);}finally{s!==null&&h.types!==null&&(s.types=h.types),Nt.T=s;}}else try{s=l(r,i),Wk(t,a,s);}catch(E){Nv(t,a,E);}}function Wk(t,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(i){Bk(t,a,i);},function(i){return Nv(t,a,i)}):Bk(t,a,l);}function Bk(t,a,l){a.status="fulfilled",a.value=l,jT(a),t.state=l,a=t.pending,a!==null&&(l=a.next,l===a?t.pending=null:(l=l.next,a.next=l,BT(t,l)));}function Nv(t,a,l){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do a.status="rejected",a.reason=l,jT(a),a=a.next;while(a!==i)}t.action=null;}function jT(t){t=t.listeners;for(var a=0;a<t.length;a++)(0, t[a])();}function qT(t,a){return a}function jk(t,a){if(he){var l=Le.formState;if(l!==null){t:{var i=Jt;if(he){if(Je){e:{for(var r=Je,s=Jl;r.nodeType!==8;){if(!s){r=null;break e}if(r=Fl(r.nextSibling),r===null){r=null;break e}}s=r.data,r=s==="F!"||s==="F"?r:null;}if(r){Je=Fl(r.nextSibling),i=r.data==="F!";break t}}yr(i);}i=false;}i&&(a=l[0]);}}return l=Aa(),l.memoizedState=l.baseState=a,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qT,lastRenderedState:a},l.queue=i,l=oA.bind(null,Jt,i),i.dispatch=l,i=Uv(false),s=$S.bind(null,Jt,false,i.queue),i=Aa(),r={state:a,dispatch:null,action:t,pending:null},i.queue=r,l=lH.bind(null,Jt,r,s,l),r.dispatch=l,i.memoizedState=t,[a,l,false]}function qk(t){var a=yn();return XT(a,we,t)}function XT(t,a,l){if(a=RS(t,a,qT)[0],t=bm(Zi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var i=gh(a);}catch(h){throw h===Of?c2:h}else i=a;a=yn();var r=a.queue,s=r.dispatch;return l!==a.memoizedState&&(Jt.flags|=2048,Ef(9,{destroy:void 0},oH.bind(null,r,l),null)),[i,s,t]}function oH(t,a){t.action=a;}function Xk(t){var a=yn(),l=we;if(l!==null)return XT(a,l,t);yn(),a=a.memoizedState,l=yn();var i=l.queue.dispatch;return l.memoizedState=t,[a,i,false]}function Ef(t,a,l,i){return t={tag:t,create:l,deps:i,inst:a,next:null},a=Jt.updateQueue,a===null&&(a=s2(),Jt.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=t.next=t:(i=l.next,l.next=t,t.next=i,a.lastEffect=t),t}function GT(){return yn().memoizedState}function vm(t,a,l,i){var r=Aa();Jt.flags|=t,r.memoizedState=Ef(1|a,{destroy:void 0},l,i===void 0?null:i);}function d2(t,a,l,i){var r=yn();i=i===void 0?null:i;var s=r.memoizedState.inst;we!==null&&i!==null&&zS(i,we.memoizedState.deps)?r.memoizedState=Ef(a,s,l,i):(Jt.flags|=t,r.memoizedState=Ef(1|a,s,l,i));}function Gk(t,a){vm(8390656,8,t,a);}function wS(t,a){d2(2048,8,t,a);}function iH(t){Jt.flags|=4;var a=Jt.updateQueue;if(a===null)a=s2(),Jt.updateQueue=a,a.events=[t];else {var l=a.events;l===null?a.events=[t]:l.push(t);}}function QT(t){var a=yn().memoizedState;return iH({ref:a,nextImpl:t}),function(){if((xe&2)!==0)throw Error(I(440));return a.impl.apply(void 0,arguments)}}function VT(t,a){return d2(4,2,t,a)}function ZT(t,a){return d2(4,4,t,a)}function JT(t,a){if(typeof a=="function"){t=t();var l=a(t);return function(){typeof l=="function"?l():a(null);}}if(a!=null)return t=t(),a.current=t,function(){a.current=null;}}function KT(t,a,l){l=l!=null?l.concat([t]):null,d2(4,4,JT.bind(null,a,t),l);}function HS(){}function FT(t,a){var l=yn();a=a===void 0?null:a;var i=l.memoizedState;return a!==null&&zS(a,i[1])?i[0]:(l.memoizedState=[t,a],t)}function PT(t,a){var l=yn();a=a===void 0?null:a;var i=l.memoizedState;if(a!==null&&zS(a,i[1]))return i[0];if(i=t(),zc){Iu(true);try{t();}finally{Iu(false);}}return l.memoizedState=[i,a],i}function US(t,a,l){return l===void 0||(Vi&1073741824)!==0&&(se&261930)===0?t.memoizedState=a:(t.memoizedState=l,t=WA(),Jt.lanes|=t,pr|=t,l)}function IT(t,a,l,i){return El(l,a)?l:Sf.current!==null?(t=US(t,l,i),El(t,a)||(Tn=true),t):(Vi&42)===0||(Vi&1073741824)!==0&&(se&261930)===0?(Tn=true,t.memoizedState=l):(t=WA(),Jt.lanes|=t,pr|=t,a)}function tA(t,a,l,i,r){var s=be.p;be.p=s!==0&&8>s?s:8;var h=Nt.T,y={};Nt.T=y,$S(t,false,a,l);try{var p=r(),E=Nt.S;if(E!==null&&E(y,p),p!==null&&typeof p=="object"&&typeof p.then=="function"){var _=eH(p,i);X0(t,a,_,Sl(t));}else X0(t,a,i,Sl(t));}catch(M){X0(t,a,{then:function(){},status:"rejected",reason:M},Sl());}finally{be.p=s,h!==null&&y.types!==null&&(h.types=y.types),Nt.T=h;}}function uH(){}function $v(t,a,l,i){if(t.tag!==5)throw Error(I(476));var r=eA(t).queue;tA(t,r,a,xc,l===null?uH:function(){return nA(t),l(i)});}function eA(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:xc,baseState:xc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:xc},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zi,lastRenderedState:l},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function nA(t){var a=eA(t);a.next===null&&(a=t.alternate.memoizedState),X0(t,a.next.queue,{},Sl());}function NS(){return aa(uh)}function aA(){return yn().memoizedState}function lA(){return yn().memoizedState}function rH(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var l=Sl();t=ir(l);var i=ur(a,t,l);i!==null&&(Ga(i,a,l),B0(i,a,l)),a={cache:SS()},t.payload=a;return}a=a.return;}}function cH(t,a,l){var i=Sl();l={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:false,eagerState:null,next:null},h2(t)?iA(a,l):(l=gS(t,a,l,i),l!==null&&(Ga(l,t,i),uA(l,a,i)));}function oA(t,a,l){var i=Sl();X0(t,a,l,i);}function X0(t,a,l,i){var r={lane:i,revertLane:0,gesture:null,action:l,hasEagerState:false,eagerState:null,next:null};if(h2(t))iA(a,r);else {var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=a.lastRenderedReducer,s!==null))try{var h=a.lastRenderedState,y=s(h,l);if(r.hasEagerState=!0,r.eagerState=y,El(y,h))return r2(t,a,r,0),Le===null&&u2(),!1}catch{}if(l=gS(t,a,r,i),l!==null)return Ga(l,t,i),uA(l,a,i),true}return false}function $S(t,a,l,i){if(i={lane:2,revertLane:QS(),gesture:null,action:i,hasEagerState:false,eagerState:null,next:null},h2(t)){if(a)throw Error(I(479))}else a=gS(t,l,i,2),a!==null&&Ga(a,t,2);}function h2(t){var a=t.alternate;return t===Jt||a!==null&&a===Jt}function iA(t,a){mf=Wm=true;var l=t.pending;l===null?a.next=a:(a.next=l.next,l.next=a),t.pending=a;}function uA(t,a,l){if((l&4194048)!==0){var i=a.lanes;i&=t.pendingLanes,l|=i,a.lanes=l,Qz(t,l);}}var lh={readContext:aa,use:f2,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useLayoutEffect:un,useInsertionEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useSyncExternalStore:un,useId:un,useHostTransitionStatus:un,useFormState:un,useActionState:un,useOptimistic:un,useMemoCache:un,useCacheRefresh:un};lh.useEffectEvent=un;var rA={readContext:aa,use:f2,useCallback:function(t,a){return Aa().memoizedState=[t,a===void 0?null:a],t},useContext:aa,useEffect:Gk,useImperativeHandle:function(t,a,l){l=l!=null?l.concat([t]):null,vm(4194308,4,JT.bind(null,a,t),l);},useLayoutEffect:function(t,a){return vm(4194308,4,t,a)},useInsertionEffect:function(t,a){vm(4,2,t,a);},useMemo:function(t,a){var l=Aa();a=a===void 0?null:a;var i=t();if(zc){Iu(true);try{t();}finally{Iu(false);}}return l.memoizedState=[i,a],i},useReducer:function(t,a,l){var i=Aa();if(l!==void 0){var r=l(a);if(zc){Iu(true);try{l(a);}finally{Iu(false);}}}else r=a;return i.memoizedState=i.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},i.queue=t,t=t.dispatch=cH.bind(null,Jt,t),[i.memoizedState,t]},useRef:function(t){var a=Aa();return t={current:t},a.memoizedState=t},useState:function(t){t=Uv(t);var a=t.queue,l=oA.bind(null,Jt,a);return a.dispatch=l,[t.memoizedState,l]},useDebugValue:HS,useDeferredValue:function(t,a){var l=Aa();return US(l,t,a)},useTransition:function(){var t=Uv(false);return t=tA.bind(null,Jt,t.queue,true,false),Aa().memoizedState=t,[false,t]},useSyncExternalStore:function(t,a,l){var i=Jt,r=Aa();if(he){if(l===void 0)throw Error(I(407));l=l();}else {if(l=a(),Le===null)throw Error(I(349));(se&127)!==0||UT(i,a,l);}r.memoizedState=l;var s={value:l,getSnapshot:a};return r.queue=s,Gk($T.bind(null,i,s,t),[t]),i.flags|=2048,Ef(9,{destroy:void 0},NT.bind(null,i,s,l,a),null),l},useId:function(){var t=Aa(),a=Le.identifierPrefix;if(he){var l=Ko,i=Jo;l=(i&~(1<<32-vl(i)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Bm++,0<l&&(a+="H"+l.toString(32)),a+="_";}else l=nH++,a="_"+a+"r_"+l.toString(32)+"_";return t.memoizedState=a},useHostTransitionStatus:NS,useFormState:jk,useActionState:jk,useOptimistic:function(t){var a=Aa();a.memoizedState=a.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=$S.bind(null,Jt,true,l),l.dispatch=a,[t,a]},useMemoCache:OS,useCacheRefresh:function(){return Aa().memoizedState=rH.bind(null,Jt)},useEffectEvent:function(t){var a=Aa(),l={impl:t};return a.memoizedState=l,function(){if((xe&2)!==0)throw Error(I(440));return l.impl.apply(void 0,arguments)}}},LS={readContext:aa,use:f2,useCallback:FT,useContext:aa,useEffect:wS,useImperativeHandle:KT,useInsertionEffect:VT,useLayoutEffect:ZT,useMemo:PT,useReducer:bm,useRef:GT,useState:function(){return bm(Zi)},useDebugValue:HS,useDeferredValue:function(t,a){var l=yn();return IT(l,we.memoizedState,t,a)},useTransition:function(){var t=bm(Zi)[0],a=yn().memoizedState;return [typeof t=="boolean"?t:gh(t),a]},useSyncExternalStore:HT,useId:aA,useHostTransitionStatus:NS,useFormState:qk,useActionState:qk,useOptimistic:function(t,a){var l=yn();return WT(l,we,t,a)},useMemoCache:OS,useCacheRefresh:lA};LS.useEffectEvent=QT;var cA={readContext:aa,use:f2,useCallback:FT,useContext:aa,useEffect:wS,useImperativeHandle:KT,useInsertionEffect:VT,useLayoutEffect:ZT,useMemo:PT,useReducer:Gb,useRef:GT,useState:function(){return Gb(Zi)},useDebugValue:HS,useDeferredValue:function(t,a){var l=yn();return we===null?US(l,t,a):IT(l,we.memoizedState,t,a)},useTransition:function(){var t=Gb(Zi)[0],a=yn().memoizedState;return [typeof t=="boolean"?t:gh(t),a]},useSyncExternalStore:HT,useId:aA,useHostTransitionStatus:NS,useFormState:Xk,useActionState:Xk,useOptimistic:function(t,a){var l=yn();return we!==null?WT(l,we,t,a):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:OS,useCacheRefresh:lA};cA.useEffectEvent=QT;function Qb(t,a,l,i){a=t.memoizedState,l=l(i,a),l=l==null?a:Ke({},a,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l);}var Lv={enqueueSetState:function(t,a,l){t=t._reactInternals;var i=Sl(),r=ir(i);r.payload=a,l!=null&&(r.callback=l),a=ur(t,r,i),a!==null&&(Ga(a,t,i),B0(a,t,i));},enqueueReplaceState:function(t,a,l){t=t._reactInternals;var i=Sl(),r=ir(i);r.tag=1,r.payload=a,l!=null&&(r.callback=l),a=ur(t,r,i),a!==null&&(Ga(a,t,i),B0(a,t,i));},enqueueForceUpdate:function(t,a){t=t._reactInternals;var l=Sl(),i=ir(l);i.tag=2,a!=null&&(i.callback=a),a=ur(t,i,l),a!==null&&(Ga(a,t,l),B0(a,t,l));}};function Qk(t,a,l,i,r,s,h){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,s,h):a.prototype&&a.prototype.isPureReactComponent?!I0(l,i)||!I0(r,s):true}function Vk(t,a,l,i){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,i),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,i),a.state!==t&&Lv.enqueueReplaceState(a,a.state,null);}function Tc(t,a){var l=a;if("ref"in a){l={};for(var i in a)i!=="ref"&&(l[i]=a[i]);}if(t=t.defaultProps){l===a&&(l=Ke({},l));for(var r in t)l[r]===void 0&&(l[r]=t[r]);}return l}function sA(t){wm(t);}function fA(t){console.error(t);}function dA(t){wm(t);}function jm(t,a){try{var l=t.onUncaughtError;l(a.value,{componentStack:a.stack});}catch(i){setTimeout(function(){throw i});}}function Zk(t,a,l){try{var i=t.onCaughtError;i(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null});}catch(r){setTimeout(function(){throw r});}}function Yv(t,a,l){return l=ir(l),l.tag=3,l.payload={element:null},l.callback=function(){jm(t,a);},l}function hA(t){return t=ir(t),t.tag=3,t}function yA(t,a,l,i){var r=l.type.getDerivedStateFromError;if(typeof r=="function"){var s=i.value;t.payload=function(){return r(s)},t.callback=function(){Zk(a,l,i);};}var h=l.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(t.callback=function(){Zk(a,l,i),typeof r!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""});});}function sH(t,a,l,i,r){if(l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(a=l.alternate,a!==null&&Cf(a,l,r,true),l=Ml.current,l!==null){switch(l.tag){case 31:case 13:return Kl===null?Vm():l.alternate===null&&rn===0&&(rn=3),l.flags&=-257,l.flags|=65536,l.lanes=r,i===$m?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([i]):a.add(i),av(t,i,r)),false;case 22:return l.flags|=65536,i===$m?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([i])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([i]):l.add(i)),av(t,i,r)),false}throw Error(I(435,l.tag))}return av(t,i,r),Vm(),false}if(he)return a=Ml.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=r,i!==zv&&(t=Error(I(422),{cause:i}),eh(Zl(t,l)))):(i!==zv&&(a=Error(I(423),{cause:i}),eh(Zl(a,l))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,i=Zl(i,l),r=Yv(t.stateNode,i,r),Xb(t,r),rn!==4&&(rn=2)),false;var s=Error(I(520),{cause:i});if(s=Zl(s,l),V0===null?V0=[s]:V0.push(s),rn!==4&&(rn=2),a===null)return true;i=Zl(i,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,t=r&-r,l.lanes|=t,t=Yv(l.stateNode,i,t),Xb(l,t),false;case 1:if(a=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(rr===null||!rr.has(s))))return l.flags|=65536,r&=-r,l.lanes|=r,r=hA(r),yA(r,t,l,i),Xb(l,r),false}l=l.return;}while(l!==null);return false}var YS=Error(I(461)),Tn=false;function ta(t,a,l,i){a.child=t===null?AT(a,null,l,i):kc(a,t.child,l,i);}function Jk(t,a,l,i,r){l=l.render;var s=a.ref;if("ref"in i){var h={};for(var y in i)y!=="ref"&&(h[y]=i[y]);}else h=i;return _c(a),i=TS(t,a,l,h,s,r),y=AS(),t!==null&&!Tn?(DS(t,a,r),Ji(t,a,r)):(he&&y&&bS(a),a.flags|=1,ta(t,a,i,r),a.child)}function Kk(t,a,l,i,r){if(t===null){var s=l.type;return typeof s=="function"&&!xS(s)&&s.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=s,mA(t,a,s,i,r)):(t=gm(l.type,null,i,a,a.mode,r),t.ref=a.ref,t.return=a,a.child=t)}if(s=t.child,!WS(t,r)){var h=s.memoizedProps;if(l=l.compare,l=l!==null?l:I0,l(h,i)&&t.ref===a.ref)return Ji(t,a,r)}return a.flags|=1,t=qi(s,i),t.ref=a.ref,t.return=a,a.child=t}function mA(t,a,l,i,r){if(t!==null){var s=t.memoizedProps;if(I0(s,i)&&t.ref===a.ref)if(Tn=false,a.pendingProps=i=s,WS(t,r))(t.flags&131072)!==0&&(Tn=true);else return a.lanes=t.lanes,Ji(t,a,r)}return Wv(t,a,l,i,r)}function pA(t,a,l,i){var r=i.children,s=t!==null?t.memoizedState:null;if(t===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((a.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,t!==null){for(i=a.child=t.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~s;}else i=0,a.child=null;return Fk(t,a,s,l,i)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&xm(a,s!==null?s.cachePool:null),s!==null?Yk(a,s):wv(),OT(a);else return i=a.lanes=536870912,Fk(t,a,s!==null?s.baseLanes|l:l,l,i)}else s!==null?(xm(a,s.cachePool),Yk(a,s),Fu(),a.memoizedState=null):(t!==null&&xm(a,null),wv(),Fu());return ta(t,a,r,l),a.child}function U0(t,a){return t!==null&&t.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Fk(t,a,l,i,r){var s=ES();return s=s===null?null:{parent:zn._currentValue,pool:s},a.memoizedState={baseLanes:l,cachePool:s},t!==null&&xm(a,null),wv(),OT(a),t!==null&&Cf(t,a,i,true),a.childLanes=r,null}function Sm(t,a){return a=qm({mode:a.mode,children:a.children},t.mode),a.ref=t.ref,t.child=a,a.return=t,a}function Pk(t,a,l){return kc(a,t.child,null,l),t=Sm(a,a.pendingProps),t.flags|=2,ml(a),a.memoizedState=null,t}function fH(t,a,l){var i=a.pendingProps,r=(a.flags&128)!==0;if(a.flags&=-129,t===null){if(he){if(i.mode==="hidden")return t=Sm(a,i),a.lanes=536870912,U0(null,t);if(Hv(a),(t=Je)?(t=rD(t,Jl),t=t!==null&&t.data==="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:hr!==null?{id:Jo,overflow:Ko}:null,retryLane:536870912,hydrationErrors:null},l=ST(t),l.return=a,a.child=l,na=a,Je=null)):t=null,t===null)throw yr(a);return a.lanes=536870912,null}return Sm(a,i)}var s=t.memoizedState;if(s!==null){var h=s.dehydrated;if(Hv(a),r)if(a.flags&256)a.flags&=-257,a=Pk(t,a,l);else if(a.memoizedState!==null)a.child=t.child,a.flags|=128,a=null;else throw Error(I(558));else if(Tn||Cf(t,a,l,false),r=(l&t.childLanes)!==0,Tn||r){if(i=Le,i!==null&&(h=Vz(i,l),h!==0&&h!==s.retryLane))throw s.retryLane=h,Oc(t,h),Ga(i,t,h),YS;Vm(),a=Pk(t,a,l);}else t=s.treeContext,Je=Fl(h.nextSibling),na=a,he=true,or=null,Jl=false,t!==null&&MT(a,t),a=Sm(a,i),a.flags|=4096;return a}return t=qi(t.child,{mode:i.mode,children:i.children}),t.ref=a.ref,a.child=t,t.return=a,t}function Em(t,a){var l=a.ref;if(l===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else {if(typeof l!="function"&&typeof l!="object")throw Error(I(284));(t===null||t.ref!==l)&&(a.flags|=4194816);}}function Wv(t,a,l,i,r){return _c(a),l=TS(t,a,l,i,void 0,r),i=AS(),t!==null&&!Tn?(DS(t,a,r),Ji(t,a,r)):(he&&i&&bS(a),a.flags|=1,ta(t,a,l,r),a.child)}function Ik(t,a,l,i,r,s){return _c(a),a.updateQueue=null,l=wT(a,i,l,r),RT(t),i=AS(),t!==null&&!Tn?(DS(t,a,s),Ji(t,a,s)):(he&&i&&bS(a),a.flags|=1,ta(t,a,l,s),a.child)}function tz(t,a,l,i,r){if(_c(a),a.stateNode===null){var s=of,h=l.contextType;typeof h=="object"&&h!==null&&(s=aa(h)),s=new l(i,s),a.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=Lv,a.stateNode=s,s._reactInternals=a,s=a.stateNode,s.props=i,s.state=a.memoizedState,s.refs={},_S(a),h=l.contextType,s.context=typeof h=="object"&&h!==null?aa(h):of,s.state=a.memoizedState,h=l.getDerivedStateFromProps,typeof h=="function"&&(Qb(a,l,h,i),s.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(h=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),h!==s.state&&Lv.enqueueReplaceState(s,s.state,null),q0(a,i,s,r),j0(),s.state=a.memoizedState),typeof s.componentDidMount=="function"&&(a.flags|=4194308),i=true;}else if(t===null){s=a.stateNode;var y=a.memoizedProps,p=Tc(l,y);s.props=p;var E=s.context,_=l.contextType;h=of,typeof _=="object"&&_!==null&&(h=aa(_));var M=l.getDerivedStateFromProps;_=typeof M=="function"||typeof s.getSnapshotBeforeUpdate=="function",y=a.pendingProps!==y,_||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(y||E!==h)&&Vk(a,s,i,h),Zu=false;var b=a.memoizedState;s.state=b,q0(a,i,s,r),j0(),E=a.memoizedState,y||b!==E||Zu?(typeof M=="function"&&(Qb(a,l,M,i),E=a.memoizedState),(p=Zu||Qk(a,l,p,i,b,E,h))?(_||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"&&(a.flags|=4194308)):(typeof s.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=i,a.memoizedState=E),s.props=i,s.state=E,s.context=h,i=p):(typeof s.componentDidMount=="function"&&(a.flags|=4194308),i=false);}else {s=a.stateNode,Ov(t,a),h=a.memoizedProps,_=Tc(l,h),s.props=_,M=a.pendingProps,b=s.context,E=l.contextType,p=of,typeof E=="object"&&E!==null&&(p=aa(E)),y=l.getDerivedStateFromProps,(E=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h!==M||b!==p)&&Vk(a,s,i,p),Zu=false,b=a.memoizedState,s.state=b,q0(a,i,s,r),j0();var k=a.memoizedState;h!==M||b!==k||Zu||t!==null&&t.dependencies!==null&&Nm(t.dependencies)?(typeof y=="function"&&(Qb(a,l,y,i),k=a.memoizedState),(_=Zu||Qk(a,l,_,i,b,k,p)||t!==null&&t.dependencies!==null&&Nm(t.dependencies))?(E||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(i,k,p),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(i,k,p)),typeof s.componentDidUpdate=="function"&&(a.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof s.componentDidUpdate!="function"||h===t.memoizedProps&&b===t.memoizedState||(a.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&b===t.memoizedState||(a.flags|=1024),a.memoizedProps=i,a.memoizedState=k),s.props=i,s.state=k,s.context=p,i=_):(typeof s.componentDidUpdate!="function"||h===t.memoizedProps&&b===t.memoizedState||(a.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||h===t.memoizedProps&&b===t.memoizedState||(a.flags|=1024),i=false);}return s=i,Em(t,a),i=(a.flags&128)!==0,s||i?(s=a.stateNode,l=i&&typeof l.getDerivedStateFromError!="function"?null:s.render(),a.flags|=1,t!==null&&i?(a.child=kc(a,t.child,null,r),a.child=kc(a,null,l,r)):ta(t,a,l,r),a.memoizedState=s.state,t=a.child):t=Ji(t,a,r),t}function ez(t,a,l,i){return Mc(),a.flags|=256,ta(t,a,l,i),a.child}var Vb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zb(t){return {baseLanes:t,cachePool:kT()}}function Jb(t,a,l){return t=t!==null?t.childLanes&~l:0,a&&(t|=gl),t}function gA(t,a,l){var i=a.pendingProps,r=false,s=(a.flags&128)!==0,h;if((h=s)||(h=t!==null&&t.memoizedState===null?false:(hn.current&2)!==0),h&&(r=true,a.flags&=-129),h=(a.flags&32)!==0,a.flags&=-33,t===null){if(he){if(r?Ku(a):Fu(),(t=Je)?(t=rD(t,Jl),t=t!==null&&t.data!=="&"?t:null,t!==null&&(a.memoizedState={dehydrated:t,treeContext:hr!==null?{id:Jo,overflow:Ko}:null,retryLane:536870912,hydrationErrors:null},l=ST(t),l.return=a,a.child=l,na=a,Je=null)):t=null,t===null)throw yr(a);return tS(t)?a.lanes=32:a.lanes=536870912,null}var y=i.children;return i=i.fallback,r?(Fu(),r=a.mode,y=qm({mode:"hidden",children:y},r),i=bc(i,r,l,null),y.return=a,i.return=a,y.sibling=i,a.child=y,i=a.child,i.memoizedState=Zb(l),i.childLanes=Jb(t,h,l),a.memoizedState=Vb,U0(null,i)):(Ku(a),Bv(a,y))}var p=t.memoizedState;if(p!==null&&(y=p.dehydrated,y!==null)){if(s)a.flags&256?(Ku(a),a.flags&=-257,a=Kb(t,a,l)):a.memoizedState!==null?(Fu(),a.child=t.child,a.flags|=128,a=null):(Fu(),y=i.fallback,r=a.mode,i=qm({mode:"visible",children:i.children},r),y=bc(y,r,l,null),y.flags|=2,i.return=a,y.return=a,i.sibling=y,a.child=i,kc(a,t.child,null,l),i=a.child,i.memoizedState=Zb(l),i.childLanes=Jb(t,h,l),a.memoizedState=Vb,a=U0(null,i));else if(Ku(a),tS(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var E=h.dgst;h=E,i=Error(I(419)),i.stack="",i.digest=h,eh({value:i,source:null,stack:null}),a=Kb(t,a,l);}else if(Tn||Cf(t,a,l,false),h=(l&t.childLanes)!==0,Tn||h){if(h=Le,h!==null&&(i=Vz(h,l),i!==0&&i!==p.retryLane))throw p.retryLane=i,Oc(t,i),Ga(h,t,i),YS;Iv(y)||Vm(),a=Kb(t,a,l);}else Iv(y)?(a.flags|=192,a.child=t.child,a=null):(t=p.treeContext,Je=Fl(y.nextSibling),na=a,he=true,or=null,Jl=false,t!==null&&MT(a,t),a=Bv(a,i.children),a.flags|=4096);return a}return r?(Fu(),y=i.fallback,r=a.mode,p=t.child,E=p.sibling,i=qi(p,{mode:"hidden",children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,E!==null?y=qi(E,y):(y=bc(y,r,l,null),y.flags|=2),y.return=a,i.return=a,i.sibling=y,a.child=i,U0(null,i),i=a.child,y=t.child.memoizedState,y===null?y=Zb(l):(r=y.cachePool,r!==null?(p=zn._currentValue,r=r.parent!==p?{parent:p,pool:p}:r):r=kT(),y={baseLanes:y.baseLanes|l,cachePool:r}),i.memoizedState=y,i.childLanes=Jb(t,h,l),a.memoizedState=Vb,U0(t.child,i)):(Ku(a),l=t.child,t=l.sibling,l=qi(l,{mode:"visible",children:i.children}),l.return=a,l.sibling=null,t!==null&&(h=a.deletions,h===null?(a.deletions=[t],a.flags|=16):h.push(t)),a.child=l,a.memoizedState=null,l)}function Bv(t,a){return a=qm({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function qm(t,a){return t=pl(22,t,null,a),t.lanes=0,t}function Kb(t,a,l){return kc(a,t.child,null,l),t=Bv(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function nz(t,a,l){t.lanes|=a;var i=t.alternate;i!==null&&(i.lanes|=a),Av(t.return,a,l);}function Fb(t,a,l,i,r,s){var h=t.memoizedState;h===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:i,tail:l,tailMode:r,treeForkCount:s}:(h.isBackwards=a,h.rendering=null,h.renderingStartTime=0,h.last=i,h.tail=l,h.tailMode=r,h.treeForkCount=s);}function xA(t,a,l){var i=a.pendingProps,r=i.revealOrder,s=i.tail;i=i.children;var h=hn.current,y=(h&2)!==0;if(y?(h=h&1|2,a.flags|=128):h&=1,qe(hn,h),ta(t,a,i,l),i=he?th:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&nz(t,l,a);else if(t.tag===19)nz(t,l,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break t;for(;t.sibling===null;){if(t.return===null||t.return===a)break t;t=t.return;}t.sibling.return=t.return,t=t.sibling;}switch(r){case "forwards":for(l=a.child,r=null;l!==null;)t=l.alternate,t!==null&&Ym(t)===null&&(r=l),l=l.sibling;l=r,l===null?(r=a.child,a.child=null):(r=l.sibling,l.sibling=null),Fb(a,false,r,l,s,i);break;case "backwards":case "unstable_legacy-backwards":for(l=null,r=a.child,a.child=null;r!==null;){if(t=r.alternate,t!==null&&Ym(t)===null){a.child=r;break}t=r.sibling,r.sibling=l,l=r,r=t;}Fb(a,true,l,null,s,i);break;case "together":Fb(a,false,null,null,void 0,i);break;default:a.memoizedState=null;}return a.child}function Ji(t,a,l){if(t!==null&&(a.dependencies=t.dependencies),pr|=a.lanes,(l&a.childLanes)===0)if(t!==null){if(Cf(t,a,l,false),(l&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(I(153));if(a.child!==null){for(t=a.child,l=qi(t,t.pendingProps),a.child=l,l.return=a;t.sibling!==null;)t=t.sibling,l=l.sibling=qi(t,t.pendingProps),l.return=a;l.sibling=null;}return a.child}function WS(t,a){return (t.lanes&a)!==0?true:(t=t.dependencies,!!(t!==null&&Nm(t)))}function dH(t,a,l){switch(a.tag){case 3:Dm(a,a.stateNode.containerInfo),Ju(a,zn,t.memoizedState.cache),Mc();break;case 27:case 5:mv(a);break;case 4:Dm(a,a.stateNode.containerInfo);break;case 10:Ju(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Hv(a),null;break;case 13:var i=a.memoizedState;if(i!==null)return i.dehydrated!==null?(Ku(a),a.flags|=128,null):(l&a.child.childLanes)!==0?gA(t,a,l):(Ku(a),t=Ji(t,a,l),t!==null?t.sibling:null);Ku(a);break;case 19:var r=(t.flags&128)!==0;if(i=(l&a.childLanes)!==0,i||(Cf(t,a,l,false),i=(l&a.childLanes)!==0),r){if(i)return xA(t,a,l);a.flags|=128;}if(r=a.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),qe(hn,hn.current),i)break;return null;case 22:return a.lanes=0,pA(t,a,l,a.pendingProps);case 24:Ju(a,zn,t.memoizedState.cache);}return Ji(t,a,l)}function bA(t,a,l){if(t!==null)if(t.memoizedProps!==a.pendingProps)Tn=true;else {if(!WS(t,l)&&(a.flags&128)===0)return Tn=false,dH(t,a,l);Tn=(t.flags&131072)!==0;}else Tn=false,he&&(a.flags&1048576)!==0&&ET(a,th,a.index);switch(a.lanes=0,a.tag){case 16:t:{var i=a.pendingProps;if(t=pc(a.elementType),a.type=t,typeof t=="function")xS(t)?(i=Tc(t,i),a.tag=1,a=tz(null,a,t,i,l)):(a.tag=0,a=Wv(null,a,t,i,l));else {if(t!=null){var r=t.$$typeof;if(r===lS){a.tag=11,a=Jk(null,a,t,i,l);break t}else if(r===oS){a.tag=14,a=Kk(null,a,t,i,l);break t}}throw a=hv(t)||t,Error(I(306,a,""))}}return a;case 0:return Wv(t,a,a.type,a.pendingProps,l);case 1:return i=a.type,r=Tc(i,a.pendingProps),tz(t,a,i,r,l);case 3:t:{if(Dm(a,a.stateNode.containerInfo),t===null)throw Error(I(387));i=a.pendingProps;var s=a.memoizedState;r=s.element,Ov(t,a),q0(a,i,null,l);var h=a.memoizedState;if(i=h.cache,Ju(a,zn,i),i!==s.cache&&Dv(a,[zn],l,true),j0(),i=h.element,s.isDehydrated)if(s={element:i,isDehydrated:false,cache:h.cache},a.updateQueue.baseState=s,a.memoizedState=s,a.flags&256){a=ez(t,a,i,l);break t}else if(i!==r){r=Zl(Error(I(424)),a),eh(r),a=ez(t,a,i,l);break t}else for(t=a.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Je=Fl(t.firstChild),na=a,he=true,or=null,Jl=true,l=AT(a,null,i,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else {if(Mc(),i===r){a=Ji(t,a,l);break t}ta(t,a,i,l);}a=a.child;}return a;case 26:return Em(t,a),t===null?(l=_z(a.type,null,a.pendingProps,null))?a.memoizedState=l:he||(l=a.type,t=a.pendingProps,i=Fm(lr.current).createElement(l),i[ea]=a,i[Qa]=t,la(i,l,t),qn(i),a.stateNode=i):a.memoizedState=_z(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return mv(a),t===null&&he&&(i=a.stateNode=cD(a.type,a.pendingProps,lr.current),na=a,Jl=true,r=Je,xr(a.type)?(eS=r,Je=Fl(i.firstChild)):Je=r),ta(t,a,a.pendingProps.children,l),Em(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&he&&((r=i=Je)&&(i=WH(i,a.type,a.pendingProps,Jl),i!==null?(a.stateNode=i,na=a,Je=Fl(i.firstChild),Jl=false,r=true):r=false),r||yr(a)),mv(a),r=a.type,s=a.pendingProps,h=t!==null?t.memoizedProps:null,i=s.children,Fv(r,s)?i=null:h!==null&&Fv(r,h)&&(a.flags|=32),a.memoizedState!==null&&(r=TS(t,a,aH,null,null,l),uh._currentValue=r),Em(t,a),ta(t,a,i,l),a.child;case 6:return t===null&&he&&((t=l=Je)&&(l=BH(l,a.pendingProps,Jl),l!==null?(a.stateNode=l,na=a,Je=null,t=true):t=false),t||yr(a)),null;case 13:return gA(t,a,l);case 4:return Dm(a,a.stateNode.containerInfo),i=a.pendingProps,t===null?a.child=kc(a,null,i,l):ta(t,a,i,l),a.child;case 11:return Jk(t,a,a.type,a.pendingProps,l);case 7:return ta(t,a,a.pendingProps,l),a.child;case 8:return ta(t,a,a.pendingProps.children,l),a.child;case 12:return ta(t,a,a.pendingProps.children,l),a.child;case 10:return i=a.pendingProps,Ju(a,a.type,i.value),ta(t,a,i.children,l),a.child;case 9:return r=a.type._context,i=a.pendingProps.children,_c(a),r=aa(r),i=i(r),a.flags|=1,ta(t,a,i,l),a.child;case 14:return Kk(t,a,a.type,a.pendingProps,l);case 15:return mA(t,a,a.type,a.pendingProps,l);case 19:return xA(t,a,l);case 31:return fH(t,a,l);case 22:return pA(t,a,l,a.pendingProps);case 24:return _c(a),i=aa(zn),t===null?(r=ES(),r===null&&(r=Le,s=SS(),r.pooledCache=s,s.refCount++,s!==null&&(r.pooledCacheLanes|=l),r=s),a.memoizedState={parent:i,cache:r},_S(a),Ju(a,zn,r)):((t.lanes&l)!==0&&(Ov(t,a),q0(a,null,null,l),j0()),r=t.memoizedState,s=a.memoizedState,r.parent!==i?(r={parent:i,cache:i},a.memoizedState=r,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=r),Ju(a,zn,i)):(i=s.cache,Ju(a,zn,i),i!==r.cache&&Dv(a,[zn],l,true))),ta(t,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(I(156,a.tag))}function Hi(t){t.flags|=4;}function Pb(t,a,l,i,r){if((a=(t.mode&32)!==0)&&(a=false),a){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(qA())t.flags|=8192;else throw Sc=$m,MS}else t.flags&=-16777217;}function az(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!dD(a))if(qA())t.flags|=8192;else throw Sc=$m,MS}function im(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Xz():536870912,t.lanes|=a,Mf|=a);}function A0(t,a){if(!he)switch(t.tailMode){case "hidden":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t.tail=null:l.sibling=null;break;case "collapsed":l=t.tail;for(var i=null;l!==null;)l.alternate!==null&&(i=l),l=l.sibling;i===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null;}}function Ze(t){var a=t.alternate!==null&&t.alternate.child===t.child,l=0,i=0;if(a)for(var r=t.child;r!==null;)l|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)l|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=i,t.childLanes=l,a}function hH(t,a,l){var i=a.pendingProps;switch(vS(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ze(a),null;case 1:return Ze(a),null;case 3:return l=a.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Xi(zn),gf(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Vs(a)?Hi(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,qb())),Ze(a),null;case 26:var r=a.type,s=a.memoizedState;return t===null?(Hi(a),s!==null?(Ze(a),az(a,s)):(Ze(a),Pb(a,r,null,i,l))):s?s!==t.memoizedState?(Hi(a),Ze(a),az(a,s)):(Ze(a),a.flags&=-16777217):(t=t.memoizedProps,t!==i&&Hi(a),Ze(a),Pb(a,r,t,i,l)),null;case 27:if(Cm(a),l=lr.current,r=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==i&&Hi(a);else {if(!i){if(a.stateNode===null)throw Error(I(166));return Ze(a),null}t=Po.current,Vs(a)?Rk(a):(t=cD(r,i,l),a.stateNode=t,Hi(a));}return Ze(a),null;case 5:if(Cm(a),r=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==i&&Hi(a);else {if(!i){if(a.stateNode===null)throw Error(I(166));return Ze(a),null}if(s=Po.current,Vs(a))Rk(a);else {var h=Fm(lr.current);switch(s){case 1:s=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:s=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case "svg":s=h.createElementNS("http://www.w3.org/2000/svg",r);break;case "math":s=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case "script":s=h.createElement("div"),s.innerHTML="<script></script>",s=s.removeChild(s.firstChild);break;case "select":s=typeof i.is=="string"?h.createElement("select",{is:i.is}):h.createElement("select"),i.multiple?s.multiple=true:i.size&&(s.size=i.size);break;default:s=typeof i.is=="string"?h.createElement(r,{is:i.is}):h.createElement(r);}}s[ea]=a,s[Qa]=i;t:for(h=a.child;h!==null;){if(h.tag===5||h.tag===6)s.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===a)break t;for(;h.sibling===null;){if(h.return===null||h.return===a)break t;h=h.return;}h.sibling.return=h.return,h=h.sibling;}a.stateNode=s;t:switch(la(s,r,i),r){case "button":case "input":case "select":case "textarea":i=!!i.autoFocus;break t;case "img":i=true;break t;default:i=false;}i&&Hi(a);}}return Ze(a),Pb(a,a.type,t===null?null:t.memoizedProps,a.pendingProps,l),null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==i&&Hi(a);else {if(typeof i!="string"&&a.stateNode===null)throw Error(I(166));if(t=lr.current,Vs(a)){if(t=a.stateNode,l=a.memoizedProps,i=null,r=na,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps;}t[ea]=a,t=!!(t.nodeValue===l||i!==null&&i.suppressHydrationWarning===true||oD(t.nodeValue,l)),t||yr(a,true);}else t=Fm(t).createTextNode(i),t[ea]=a,a.stateNode=t;}return Ze(a),null;case 31:if(l=a.memoizedState,t===null||t.memoizedState!==null){if(i=Vs(a),l!==null){if(t===null){if(!i)throw Error(I(318));if(t=a.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(I(557));t[ea]=a;}else Mc(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ze(a),t=false;}else l=qb(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=true;if(!t)return a.flags&256?(ml(a),a):(ml(a),null);if((a.flags&128)!==0)throw Error(I(558))}return Ze(a),null;case 13:if(i=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=Vs(a),i!==null&&i.dehydrated!==null){if(t===null){if(!r)throw Error(I(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(I(317));r[ea]=a;}else Mc(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Ze(a),r=false;}else r=qb(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=true;if(!r)return a.flags&256?(ml(a),a):(ml(a),null)}return ml(a),(a.flags&128)!==0?(a.lanes=l,a):(l=i!==null,t=t!==null&&t.memoizedState!==null,l&&(i=a.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==r&&(i.flags|=2048)),l!==t&&l&&(a.child.flags|=8192),im(a,a.updateQueue),Ze(a),null);case 4:return gf(),t===null&&VS(a.stateNode.containerInfo),Ze(a),null;case 10:return Xi(a.type),Ze(a),null;case 19:if(Xn(hn),i=a.memoizedState,i===null)return Ze(a),null;if(r=(a.flags&128)!==0,s=i.rendering,s===null)if(r)A0(i,false);else {if(rn!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(s=Ym(t),s!==null){for(a.flags|=128,A0(i,false),t=s.updateQueue,a.updateQueue=t,im(a,t),a.subtreeFlags=0,t=l,l=a.child;l!==null;)vT(l,t),l=l.sibling;return qe(hn,hn.current&1|2),he&&Li(a,i.treeForkCount),a.child}t=t.sibling;}i.tail!==null&&xl()>Gm&&(a.flags|=128,r=true,A0(i,false),a.lanes=4194304);}else {if(!r)if(t=Ym(s),t!==null){if(a.flags|=128,r=true,t=t.updateQueue,a.updateQueue=t,im(a,t),A0(i,true),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!he)return Ze(a),null}else 2*xl()-i.renderingStartTime>Gm&&l!==536870912&&(a.flags|=128,r=true,A0(i,false),a.lanes=4194304);i.isBackwards?(s.sibling=a.child,a.child=s):(t=i.last,t!==null?t.sibling=s:a.child=s,i.last=s);}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=xl(),t.sibling=null,l=hn.current,qe(hn,r?l&1|2:l&1),he&&Li(a,i.treeForkCount),t):(Ze(a),null);case 22:case 23:return ml(a),kS(),i=a.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(a.flags|=8192):i&&(a.flags|=8192),i?(l&536870912)!==0&&(a.flags&128)===0&&(Ze(a),a.subtreeFlags&6&&(a.flags|=8192)):Ze(a),l=a.updateQueue,l!==null&&im(a,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==l&&(a.flags|=2048),t!==null&&Xn(vc),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Xi(zn),Ze(a),null;case 25:return null;case 30:return null}throw Error(I(156,a.tag))}function yH(t,a){switch(vS(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Xi(zn),gf(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return Cm(a),null;case 31:if(a.memoizedState!==null){if(ml(a),a.alternate===null)throw Error(I(340));Mc();}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 13:if(ml(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(I(340));Mc();}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return Xn(hn),null;case 4:return gf(),null;case 10:return Xi(a.type),null;case 22:case 23:return ml(a),kS(),t!==null&&Xn(vc),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Xi(zn),null;case 25:return null;default:return null}}function vA(t,a){switch(vS(a),a.tag){case 3:Xi(zn),gf();break;case 26:case 27:case 5:Cm(a);break;case 4:gf();break;case 31:a.memoizedState!==null&&ml(a);break;case 13:ml(a);break;case 19:Xn(hn);break;case 10:Xi(a.type);break;case 22:case 23:ml(a),kS(),t!==null&&Xn(vc);break;case 24:Xi(zn);}}function xh(t,a){try{var l=a.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var r=i.next;l=r;do{if((l.tag&t)===t){i=void 0;var s=l.create,h=l.inst;i=s(),h.destroy=i;}l=l.next;}while(l!==r)}}catch(y){ze(a,a.return,y);}}function mr(t,a,l){try{var i=a.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var s=r.next;i=s;do{if((i.tag&t)===t){var h=i.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,r=a;var p=l,E=y;try{E();}catch(_){ze(r,p,_);}}}i=i.next;}while(i!==s)}}catch(_){ze(a,a.return,_);}}function SA(t){var a=t.updateQueue;if(a!==null){var l=t.stateNode;try{CT(a,l);}catch(i){ze(t,t.return,i);}}}function EA(t,a,l){l.props=Tc(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount();}catch(i){ze(t,a,i);}}function G0(t,a){try{var l=t.ref;if(l!==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 l=="function"?t.refCleanup=l(i):l.current=i;}}catch(r){ze(t,a,r);}}function Fo(t,a){var l=t.ref,i=t.refCleanup;if(l!==null)if(typeof i=="function")try{i();}catch(r){ze(t,a,r);}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null);}else if(typeof l=="function")try{l(null);}catch(r){ze(t,a,r);}else l.current=null;}function MA(t){var a=t.type,l=t.memoizedProps,i=t.stateNode;try{t:switch(a){case "button":case "input":case "select":case "textarea":l.autoFocus&&i.focus();break t;case "img":l.src?i.src=l.src:l.srcSet&&(i.srcset=l.srcSet);}}catch(r){ze(t,t.return,r);}}function Ib(t,a,l){try{var i=t.stateNode;HH(i,t.type,l,a),i[Qa]=a;}catch(r){ze(t,t.return,r);}}function _A(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&xr(t.type)||t.tag===4}function tv(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||_A(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&&xr(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 jv(t,a,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(t),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=Bi));else if(i!==4&&(i===27&&xr(t.type)&&(l=t.stateNode,a=null),t=t.child,t!==null))for(jv(t,a,l),t=t.sibling;t!==null;)jv(t,a,l),t=t.sibling;}function Xm(t,a,l){var i=t.tag;if(i===5||i===6)t=t.stateNode,a?l.insertBefore(t,a):l.appendChild(t);else if(i!==4&&(i===27&&xr(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Xm(t,a,l),t=t.sibling;t!==null;)Xm(t,a,l),t=t.sibling;}function kA(t){var a=t.stateNode,l=t.memoizedProps;try{for(var i=t.type,r=a.attributes;r.length;)a.removeAttributeNode(r[0]);la(a,i,l),a[ea]=t,a[Qa]=l;}catch(s){ze(t,t.return,s);}}var Yi=false,kn=false,ev=false,lz=typeof WeakSet=="function"?WeakSet:Set,jn=null;function mH(t,a){if(t=t.containerInfo,Jv=e2,t=dT(t),mS(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var i=l.getSelection&&l.getSelection();if(i&&i.rangeCount!==0){l=i.anchorNode;var r=i.anchorOffset,s=i.focusNode;i=i.focusOffset;try{l.nodeType,s.nodeType;}catch{l=null;break t}var h=0,y=-1,p=-1,E=0,_=0,M=t,b=null;e:for(;;){for(var k;M!==l||r!==0&&M.nodeType!==3||(y=h+r),M!==s||i!==0&&M.nodeType!==3||(p=h+i),M.nodeType===3&&(h+=M.nodeValue.length),(k=M.firstChild)!==null;)b=M,M=k;for(;;){if(M===t)break e;if(b===l&&++E===r&&(y=h),b===s&&++_===i&&(p=h),(k=M.nextSibling)!==null)break;M=b,b=M.parentNode;}M=k;}l=y===-1||p===-1?null:{start:y,end:p};}else l=null;}l=l||{start:0,end:0};}else l=null;for(Kv={focusedElem:t,selectionRange:l},e2=false,jn=a;jn!==null;)if(a=jn,t=a.child,(a.subtreeFlags&1028)!==0&&t!==null)t.return=a,jn=t;else for(;jn!==null;){switch(a=jn,s=a.alternate,t=a.flags,a.tag){case 0:if((t&4)!==0&&(t=a.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)r=t[l],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&s!==null){t=void 0,l=a,r=s.memoizedProps,s=s.memoizedState,i=l.stateNode;try{var Y=Tc(l.type,r);t=i.getSnapshotBeforeUpdate(Y,s),i.__reactInternalSnapshotBeforeUpdate=t;}catch($){ze(l,l.return,$);}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,l=t.nodeType,l===9)Pv(t);else if(l===1)switch(t.nodeName){case "HEAD":case "HTML":case "BODY":Pv(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(I(163))}if(t=a.sibling,t!==null){t.return=a.return,jn=t;break}jn=a.return;}}function zA(t,a,l){var i=l.flags;switch(l.tag){case 0:case 11:case 15:Ni(t,l),i&4&&xh(5,l);break;case 1:if(Ni(t,l),i&4)if(t=l.stateNode,a===null)try{t.componentDidMount();}catch(h){ze(l,l.return,h);}else {var r=Tc(l.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(r,a,t.__reactInternalSnapshotBeforeUpdate);}catch(h){ze(l,l.return,h);}}i&64&&SA(l),i&512&&G0(l,l.return);break;case 3:if(Ni(t,l),i&64&&(t=l.updateQueue,t!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode;}try{CT(t,a);}catch(h){ze(l,l.return,h);}}break;case 27:a===null&&i&4&&kA(l);case 26:case 5:Ni(t,l),a===null&&i&4&&MA(l),i&512&&G0(l,l.return);break;case 12:Ni(t,l);break;case 31:Ni(t,l),i&4&&DA(t,l);break;case 13:Ni(t,l),i&4&&CA(t,l),i&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=_H.bind(null,l),jH(t,l))));break;case 22:if(i=l.memoizedState!==null||Yi,!i){a=a!==null&&a.memoizedState!==null||kn,r=Yi;var s=kn;Yi=i,(kn=a)&&!s?$i(t,l,(l.subtreeFlags&8772)!==0):Ni(t,l),Yi=r,kn=s;}break;case 30:break;default:Ni(t,l);}}function TA(t){var a=t.alternate;a!==null&&(t.alternate=null,TA(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&cS(a)),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 en=null,qa=false;function Ui(t,a,l){for(l=l.child;l!==null;)AA(t,a,l),l=l.sibling;}function AA(t,a,l){if(bl&&typeof bl.onCommitFiberUnmount=="function")try{bl.onCommitFiberUnmount(fh,l);}catch{}switch(l.tag){case 26:kn||Fo(l,a),Ui(t,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:kn||Fo(l,a);var i=en,r=qa;xr(l.type)&&(en=l.stateNode,qa=false),Ui(t,a,l),J0(l.stateNode),en=i,qa=r;break;case 5:kn||Fo(l,a);case 6:if(i=en,r=qa,en=null,Ui(t,a,l),en=i,qa=r,en!==null)if(qa)try{(en.nodeType===9?en.body:en.nodeName==="HTML"?en.ownerDocument.body:en).removeChild(l.stateNode);}catch(s){ze(l,a,s);}else try{en.removeChild(l.stateNode);}catch(s){ze(l,a,s);}break;case 18:en!==null&&(qa?(t=en,bz(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),Tf(t)):bz(en,l.stateNode));break;case 4:i=en,r=qa,en=l.stateNode.containerInfo,qa=true,Ui(t,a,l),en=i,qa=r;break;case 0:case 11:case 14:case 15:mr(2,l,a),kn||mr(4,l,a),Ui(t,a,l);break;case 1:kn||(Fo(l,a),i=l.stateNode,typeof i.componentWillUnmount=="function"&&EA(l,a,i)),Ui(t,a,l);break;case 21:Ui(t,a,l);break;case 22:kn=(i=kn)||l.memoizedState!==null,Ui(t,a,l),kn=i;break;default:Ui(t,a,l);}}function DA(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Tf(t);}catch(l){ze(a,a.return,l);}}}function CA(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Tf(t);}catch(l){ze(a,a.return,l);}}function pH(t){switch(t.tag){case 31:case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new lz),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new lz),a;default:throw Error(I(435,t.tag))}}function um(t,a){var l=pH(t);a.forEach(function(i){if(!l.has(i)){l.add(i);var r=kH.bind(null,t,i);i.then(r,r);}});}function Ba(t,a){var l=a.deletions;if(l!==null)for(var i=0;i<l.length;i++){var r=l[i],s=t,h=a,y=h;t:for(;y!==null;){switch(y.tag){case 27:if(xr(y.type)){en=y.stateNode,qa=false;break t}break;case 5:en=y.stateNode,qa=false;break t;case 3:case 4:en=y.stateNode.containerInfo,qa=true;break t}y=y.return;}if(en===null)throw Error(I(160));AA(s,h,r),en=null,qa=false,s=r.alternate,s!==null&&(s.return=null),r.return=null;}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)OA(a,t),a=a.sibling;}var yo=null;function OA(t,a){var l=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Ba(a,t),ja(t),i&4&&(mr(3,t,t.return),xh(3,t),mr(5,t,t.return));break;case 1:Ba(a,t),ja(t),i&512&&(kn||l===null||Fo(l,l.return)),i&64&&Yi&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?i:l.concat(i))));break;case 26:var r=yo;if(Ba(a,t),ja(t),i&512&&(kn||l===null||Fo(l,l.return)),i&4){var s=l!==null?l.memoizedState:null;if(i=t.memoizedState,l===null)if(i===null)if(t.stateNode===null){t:{i=t.type,l=t.memoizedProps,r=r.ownerDocument||r;e:switch(i){case "title":s=r.getElementsByTagName("title")[0],(!s||s[yh]||s[ea]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=r.createElement(i),r.head.insertBefore(s,r.querySelector("head > title"))),la(s,i,l),s[ea]=t,qn(s),i=s;break t;case "link":var h=zz("link","href",r).get(i+(l.href||""));if(h){for(var y=0;y<h.length;y++)if(s=h[y],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){h.splice(y,1);break e}}s=r.createElement(i),la(s,i,l),r.head.appendChild(s);break;case "meta":if(h=zz("meta","content",r).get(i+(l.content||""))){for(y=0;y<h.length;y++)if(s=h[y],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){h.splice(y,1);break e}}s=r.createElement(i),la(s,i,l),r.head.appendChild(s);break;default:throw Error(I(468,i))}s[ea]=t,qn(s),i=s;}t.stateNode=i;}else Tz(r,t.type,t.stateNode);else t.stateNode=kz(r,i,t.memoizedProps);else s!==i?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,i===null?Tz(r,t.type,t.stateNode):kz(r,i,t.memoizedProps)):i===null&&t.stateNode!==null&&Ib(t,t.memoizedProps,l.memoizedProps);}break;case 27:Ba(a,t),ja(t),i&512&&(kn||l===null||Fo(l,l.return)),l!==null&&i&4&&Ib(t,t.memoizedProps,l.memoizedProps);break;case 5:if(Ba(a,t),ja(t),i&512&&(kn||l===null||Fo(l,l.return)),t.flags&32){r=t.stateNode;try{bf(r,"");}catch(Y){ze(t,t.return,Y);}}i&4&&t.stateNode!=null&&(r=t.memoizedProps,Ib(t,r,l!==null?l.memoizedProps:r)),i&1024&&(ev=true);break;case 6:if(Ba(a,t),ja(t),i&4){if(t.stateNode===null)throw Error(I(162));i=t.memoizedProps,l=t.stateNode;try{l.nodeValue=i;}catch(Y){ze(t,t.return,Y);}}break;case 3:if(km=null,r=yo,yo=Pm(a.containerInfo),Ba(a,t),yo=r,ja(t),i&4&&l!==null&&l.memoizedState.isDehydrated)try{Tf(a.containerInfo);}catch(Y){ze(t,t.return,Y);}ev&&(ev=false,RA(t));break;case 4:i=yo,yo=Pm(t.stateNode.containerInfo),Ba(a,t),ja(t),yo=i;break;case 12:Ba(a,t),ja(t);break;case 31:Ba(a,t),ja(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,um(t,i)));break;case 13:Ba(a,t),ja(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(y2=xl()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,um(t,i)));break;case 22:r=t.memoizedState!==null;var p=l!==null&&l.memoizedState!==null,E=Yi,_=kn;if(Yi=E||r,kn=_||p,Ba(a,t),kn=_,Yi=E,ja(t),i&8192)t:for(a=t.stateNode,a._visibility=r?a._visibility&-2:a._visibility|1,r&&(l===null||p||Yi||kn||gc(t)),l=null,a=t;;){if(a.tag===5||a.tag===26){if(l===null){p=l=a;try{if(s=p.stateNode,r)h=s.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else {y=p.stateNode;var M=p.memoizedProps.style,b=M!=null&&M.hasOwnProperty("display")?M.display:null;y.style.display=b==null||typeof b=="boolean"?"":(""+b).trim();}}catch(Y){ze(p,p.return,Y);}}}else if(a.tag===6){if(l===null){p=a;try{p.stateNode.nodeValue=r?"":p.memoizedProps;}catch(Y){ze(p,p.return,Y);}}}else if(a.tag===18){if(l===null){p=a;try{var k=p.stateNode;r?vz(k,!0):vz(p.stateNode,!1);}catch(Y){ze(p,p.return,Y);}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break t;for(;a.sibling===null;){if(a.return===null||a.return===t)break t;l===a&&(l=null),a=a.return;}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling;}i&4&&(i=t.updateQueue,i!==null&&(l=i.retryQueue,l!==null&&(i.retryQueue=null,um(t,l))));break;case 19:Ba(a,t),ja(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,um(t,i)));break;case 30:break;case 21:break;default:Ba(a,t),ja(t);}}function ja(t){var a=t.flags;if(a&2){try{for(var l,i=t.return;i!==null;){if(_A(i)){l=i;break}i=i.return;}if(l==null)throw Error(I(160));switch(l.tag){case 27:var r=l.stateNode,s=tv(t);Xm(t,s,r);break;case 5:var h=l.stateNode;l.flags&32&&(bf(h,""),l.flags&=-33);var y=tv(t);Xm(t,y,h);break;case 3:case 4:var p=l.stateNode.containerInfo,E=tv(t);jv(t,E,p);break;default:throw Error(I(161))}}catch(_){ze(t,t.return,_);}t.flags&=-3;}a&4096&&(t.flags&=-4097);}function RA(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;RA(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling;}}function Ni(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)zA(t,a.alternate,a),a=a.sibling;}function gc(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:mr(4,a,a.return),gc(a);break;case 1:Fo(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&EA(a,a.return,l),gc(a);break;case 27:J0(a.stateNode);case 26:case 5:Fo(a,a.return),gc(a);break;case 22:a.memoizedState===null&&gc(a);break;case 30:gc(a);break;default:gc(a);}t=t.sibling;}}function $i(t,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var i=a.alternate,r=t,s=a,h=s.flags;switch(s.tag){case 0:case 11:case 15:$i(r,s,l),xh(4,s);break;case 1:if($i(r,s,l),i=s,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount();}catch(E){ze(i,i.return,E);}if(i=s,r=i.updateQueue,r!==null){var y=i.stateNode;try{var p=r.shared.hiddenCallbacks;if(p!==null)for(r.shared.hiddenCallbacks=null,r=0;r<p.length;r++)DT(p[r],y);}catch(E){ze(i,i.return,E);}}l&&h&64&&SA(s),G0(s,s.return);break;case 27:kA(s);case 26:case 5:$i(r,s,l),l&&i===null&&h&4&&MA(s),G0(s,s.return);break;case 12:$i(r,s,l);break;case 31:$i(r,s,l),l&&h&4&&DA(r,s);break;case 13:$i(r,s,l),l&&h&4&&CA(r,s);break;case 22:s.memoizedState===null&&$i(r,s,l),G0(s,s.return);break;case 30:break;default:$i(r,s,l);}a=a.sibling;}}function BS(t,a){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ph(l));}function jS(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&ph(t));}function ho(t,a,l,i){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)wA(t,a,l,i),a=a.sibling;}function wA(t,a,l,i){var r=a.flags;switch(a.tag){case 0:case 11:case 15:ho(t,a,l,i),r&2048&&xh(9,a);break;case 1:ho(t,a,l,i);break;case 3:ho(t,a,l,i),r&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&ph(t)));break;case 12:if(r&2048){ho(t,a,l,i),t=a.stateNode;try{var s=a.memoizedProps,h=s.id,y=s.onPostCommit;typeof y=="function"&&y(h,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0);}catch(p){ze(a,a.return,p);}}else ho(t,a,l,i);break;case 31:ho(t,a,l,i);break;case 13:ho(t,a,l,i);break;case 23:break;case 22:s=a.stateNode,h=a.alternate,a.memoizedState!==null?s._visibility&2?ho(t,a,l,i):Q0(t,a):s._visibility&2?ho(t,a,l,i):(s._visibility|=2,Js(t,a,l,i,(a.subtreeFlags&10256)!==0||false)),r&2048&&BS(h,a);break;case 24:ho(t,a,l,i),r&2048&&jS(a.alternate,a);break;default:ho(t,a,l,i);}}function Js(t,a,l,i,r){for(r=r&&((a.subtreeFlags&10256)!==0||false),a=a.child;a!==null;){var s=t,h=a,y=l,p=i,E=h.flags;switch(h.tag){case 0:case 11:case 15:Js(s,h,y,p,r),xh(8,h);break;case 23:break;case 22:var _=h.stateNode;h.memoizedState!==null?_._visibility&2?Js(s,h,y,p,r):Q0(s,h):(_._visibility|=2,Js(s,h,y,p,r)),r&&E&2048&&BS(h.alternate,h);break;case 24:Js(s,h,y,p,r),r&&E&2048&&jS(h.alternate,h);break;default:Js(s,h,y,p,r);}a=a.sibling;}}function Q0(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=t,i=a,r=i.flags;switch(i.tag){case 22:Q0(l,i),r&2048&&BS(i.alternate,i);break;case 24:Q0(l,i),r&2048&&jS(i.alternate,i);break;default:Q0(l,i);}a=a.sibling;}}var N0=8192;function Zs(t,a,l){if(t.subtreeFlags&N0)for(t=t.child;t!==null;)HA(t,a,l),t=t.sibling;}function HA(t,a,l){switch(t.tag){case 26:Zs(t,a,l),t.flags&N0&&t.memoizedState!==null&&tU(l,yo,t.memoizedState,t.memoizedProps);break;case 5:Zs(t,a,l);break;case 3:case 4:var i=yo;yo=Pm(t.stateNode.containerInfo),Zs(t,a,l),yo=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=N0,N0=16777216,Zs(t,a,l),N0=i):Zs(t,a,l));break;default:Zs(t,a,l);}}function UA(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function D0(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var i=a[l];jn=i,$A(i,t);}UA(t);}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)NA(t),t=t.sibling;}function NA(t){switch(t.tag){case 0:case 11:case 15:D0(t),t.flags&2048&&mr(9,t,t.return);break;case 3:D0(t);break;case 12:D0(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,Mm(t)):D0(t);break;default:D0(t);}}function Mm(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var i=a[l];jn=i,$A(i,t);}UA(t);}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:mr(8,a,a.return),Mm(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Mm(a));break;default:Mm(a);}t=t.sibling;}}function $A(t,a){for(;jn!==null;){var l=jn;switch(l.tag){case 0:case 11:case 15:mr(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var i=l.memoizedState.cachePool.pool;i!=null&&i.refCount++;}break;case 24:ph(l.memoizedState.cache);}if(i=l.child,i!==null)i.return=l,jn=i;else t:for(l=t;jn!==null;){i=jn;var r=i.sibling,s=i.return;if(TA(i),i===l){jn=null;break t}if(r!==null){r.return=s,jn=r;break t}jn=s;}}}var gH={getCacheForType:function(t){var a=aa(zn),l=a.data.get(t);return l===void 0&&(l=t(),a.data.set(t,l)),l},cacheSignal:function(){return aa(zn).controller.signal}},xH=typeof WeakMap=="function"?WeakMap:Map,xe=0,Le=null,ce=null,se=0,ke=0,yl=null,er=false,Rf=false,qS=false,Ki=0,rn=0,pr=0,Ec=0,XS=0,gl=0,Mf=0,V0=null,Xa=null,qv=false,y2=0,LA=0,Gm=1/0,Qm=null,rr=null,Rn=0,cr=null,_f=null,Gi=0,Xv=0,Gv=null,YA=null,Z0=0,Qv=null;function Sl(){return (xe&2)!==0&&se!==0?se&-se:Nt.T!==null?QS():Zz()}function WA(){if(gl===0)if((se&536870912)===0||he){var t=F1;F1<<=1,(F1&3932160)===0&&(F1=262144),gl=t;}else gl=536870912;return t=Ml.current,t!==null&&(t.flags|=32),gl}function Ga(t,a,l){(t===Le&&(ke===2||ke===9)||t.cancelPendingCommit!==null)&&(kf(t,0),nr(t,se,gl,false)),hh(t,l),((xe&2)===0||t!==Le)&&(t===Le&&((xe&2)===0&&(Ec|=l),rn===4&&nr(t,se,gl,false)),ti(t));}function BA(t,a,l){if((xe&6)!==0)throw Error(I(327));var i=!l&&(a&127)===0&&(a&t.expiredLanes)===0||dh(t,a),r=i?SH(t,a):nv(t,a,true),s=i;do{if(r===0){Rf&&!i&&nr(t,a,0,false);break}else {if(l=t.current.alternate,s&&!bH(l)){r=nv(t,a,false),s=false;continue}if(r===2){if(s=a,t.errorRecoveryDisabledLanes&s)var h=0;else h=t.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){a=h;t:{var y=t;r=V0;var p=y.current.memoizedState.isDehydrated;if(p&&(kf(y,h).flags|=256),h=nv(y,h,false),h!==2){if(qS&&!p){y.errorRecoveryDisabledLanes|=s,Ec|=s,r=4;break t}s=Xa,Xa=r,s!==null&&(Xa===null?Xa=s:Xa.push.apply(Xa,s));}r=h;}if(s=false,r!==2)continue}}if(r===1){kf(t,0),nr(t,a,0,true);break}t:{switch(i=t,s=r,s){case 0:case 1:throw Error(I(345));case 4:if((a&4194048)!==a)break;case 6:nr(i,a,gl,!er);break t;case 2:Xa=null;break;case 3:case 5:break;default:throw Error(I(329))}if((a&62914560)===a&&(r=y2+300-xl(),10<r)){if(nr(i,a,gl,!er),a2(i,0,true)!==0)break t;Gi=a,i.timeoutHandle=uD(oz.bind(null,i,l,Xa,Qm,qv,a,gl,Ec,Mf,er,s,"Throttled",-0,0),r);break t}oz(i,l,Xa,Qm,qv,a,gl,Ec,Mf,er,s,null,-0,0);}}break}while(true);ti(t);}function oz(t,a,l,i,r,s,h,y,p,E,_,M,b,k){if(t.timeoutHandle=-1,M=a.subtreeFlags,M&8192||(M&16785408)===16785408){M={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:Bi},HA(a,s,M);var Y=(s&62914560)===s?y2-xl():(s&4194048)===s?LA-xl():0;if(Y=eU(M,Y),Y!==null){Gi=s,t.cancelPendingCommit=Y(uz.bind(null,t,a,s,l,i,r,h,y,p,_,M,null,b,k)),nr(t,s,h,!E);return}}uz(t,a,s,l,i,r,h,y,p);}function bH(t){for(var a=t;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var i=0;i<l.length;i++){var r=l[i],s=r.getSnapshot;r=r.value;try{if(!El(s(),r))return !1}catch{return false}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else {if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return true;a=a.return;}a.sibling.return=a.return,a=a.sibling;}}return true}function nr(t,a,l,i){a&=~XS,a&=~Ec,t.suspendedLanes|=a,t.pingedLanes&=~a,i&&(t.warmLanes|=a),i=t.expirationTimes;for(var r=a;0<r;){var s=31-vl(r),h=1<<s;i[s]=-1,r&=~h;}l!==0&&Gz(t,l,a);}function m2(){return (xe&6)===0?(bh(0),false):true}function GS(){if(ce!==null){if(ke===0)var t=ce.return;else t=ce,ji=Rc=null,CS(t),yf=null,nh=0,t=ce;for(;t!==null;)vA(t.alternate,t),t=t.return;ce=null;}}function kf(t,a){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,$H(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Gi=0,GS(),Le=t,ce=l=qi(t.current,null),se=a,ke=0,yl=null,er=false,Rf=dh(t,a),qS=false,Mf=gl=XS=Ec=pr=rn=0,Xa=V0=null,qv=false,(a&8)!==0&&(a|=a&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=a;0<i;){var r=31-vl(i),s=1<<r;a|=t[r],i&=~s;}return Ki=a,u2(),l}function jA(t,a){Jt=null,Nt.H=lh,a===Of||a===c2?(a=$k(),ke=3):a===MS?(a=$k(),ke=4):ke=a===YS?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,yl=a,ce===null&&(rn=1,jm(t,Zl(a,t.current)));}function qA(){var t=Ml.current;return t===null?true:(se&4194048)===se?Kl===null:(se&62914560)===se||(se&536870912)!==0?t===Kl:false}function XA(){var t=Nt.H;return Nt.H=lh,t===null?lh:t}function GA(){var t=Nt.A;return Nt.A=gH,t}function Vm(){rn=4,er||(se&4194048)!==se&&Ml.current!==null||(Rf=true),(pr&134217727)===0&&(Ec&134217727)===0||Le===null||nr(Le,se,gl,false);}function nv(t,a,l){var i=xe;xe|=2;var r=XA(),s=GA();(Le!==t||se!==a)&&(Qm=null,kf(t,a)),a=false;var h=rn;t:do try{if(ke!==0&&ce!==null){var y=ce,p=yl;switch(ke){case 8:GS(),h=6;break t;case 3:case 2:case 9:case 6:Ml.current===null&&(a=!0);var E=ke;if(ke=0,yl=null,cf(t,y,p,E),l&&Rf){h=0;break t}break;default:E=ke,ke=0,yl=null,cf(t,y,p,E);}}vH(),h=rn;break}catch(_){jA(t,_);}while(true);return a&&t.shellSuspendCounter++,ji=Rc=null,xe=i,Nt.H=r,Nt.A=s,ce===null&&(Le=null,se=0,u2()),h}function vH(){for(;ce!==null;)QA(ce);}function SH(t,a){var l=xe;xe|=2;var i=XA(),r=GA();Le!==t||se!==a?(Qm=null,Gm=xl()+500,kf(t,a)):Rf=dh(t,a);t:do try{if(ke!==0&&ce!==null){a=ce;var s=yl;e:switch(ke){case 1:ke=0,yl=null,cf(t,a,s,1);break;case 2:case 9:if(Nk(s)){ke=0,yl=null,iz(a);break}a=function(){ke!==2&&ke!==9||Le!==t||(ke=7),ti(t);},s.then(a,a);break t;case 3:ke=7;break t;case 4:ke=5;break t;case 7:Nk(s)?(ke=0,yl=null,iz(a)):(ke=0,yl=null,cf(t,a,s,7));break;case 5:var h=null;switch(ce.tag){case 26:h=ce.memoizedState;case 5:case 27:var y=ce;if(h?dD(h):y.stateNode.complete){ke=0,yl=null;var p=y.sibling;if(p!==null)ce=p;else {var E=y.return;E!==null?(ce=E,p2(E)):ce=null;}break e}}ke=0,yl=null,cf(t,a,s,5);break;case 6:ke=0,yl=null,cf(t,a,s,6);break;case 8:GS(),rn=6;break t;default:throw Error(I(462))}}EH();break}catch(_){jA(t,_);}while(true);return ji=Rc=null,Nt.H=i,Nt.A=r,xe=l,ce!==null?0:(Le=null,se=0,u2(),rn)}function EH(){for(;ce!==null&&!Gw();)QA(ce);}function QA(t){var a=bA(t.alternate,t,Ki);t.memoizedProps=t.pendingProps,a===null?p2(t):ce=a;}function iz(t){var a=t,l=a.alternate;switch(a.tag){case 15:case 0:a=Ik(l,a,a.pendingProps,a.type,void 0,se);break;case 11:a=Ik(l,a,a.pendingProps,a.type.render,a.ref,se);break;case 5:CS(a);default:vA(l,a),a=ce=vT(a,Ki),a=bA(l,a,Ki);}t.memoizedProps=t.pendingProps,a===null?p2(t):ce=a;}function cf(t,a,l,i){ji=Rc=null,CS(a),yf=null,nh=0;var r=a.return;try{if(sH(t,r,a,l,se)){rn=1,jm(t,Zl(l,t.current)),ce=null;return}}catch(s){if(r!==null)throw ce=r,s;rn=1,jm(t,Zl(l,t.current)),ce=null;return}a.flags&32768?(he||i===1?t=true:Rf||(se&536870912)!==0?t=false:(er=t=true,(i===2||i===9||i===3||i===6)&&(i=Ml.current,i!==null&&i.tag===13&&(i.flags|=16384))),VA(a,t)):p2(a);}function p2(t){var a=t;do{if((a.flags&32768)!==0){VA(a,er);return}t=a.return;var l=hH(a.alternate,a,Ki);if(l!==null){ce=l;return}if(a=a.sibling,a!==null){ce=a;return}ce=a=t;}while(a!==null);rn===0&&(rn=5);}function VA(t,a){do{var l=yH(t.alternate,t);if(l!==null){l.flags&=32767,ce=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(t=t.sibling,t!==null)){ce=t;return}ce=t=l;}while(t!==null);rn=6,ce=null;}function uz(t,a,l,i,r,s,h,y,p){t.cancelPendingCommit=null;do g2();while(Rn!==0);if((xe&6)!==0)throw Error(I(327));if(a!==null){if(a===t.current)throw Error(I(177));if(s=a.lanes|a.childLanes,s|=pS,e9(t,l,s,h,y,p),t===Le&&(ce=Le=null,se=0),_f=a,cr=t,Gi=l,Xv=s,Gv=r,YA=i,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,zH(Om,function(){return PA(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||i){i=Nt.T,Nt.T=null,r=be.p,be.p=2,h=xe,xe|=4;try{mH(t,a,l);}finally{xe=h,be.p=r,Nt.T=i;}}Rn=1,ZA(),JA(),KA();}}function ZA(){if(Rn===1){Rn=0;var t=cr,a=_f,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=Nt.T,Nt.T=null;var i=be.p;be.p=2;var r=xe;xe|=4;try{OA(a,t);var s=Kv,h=dT(t.containerInfo),y=s.focusedElem,p=s.selectionRange;if(h!==y&&y&&y.ownerDocument&&fT(y.ownerDocument.documentElement,y)){if(p!==null&&mS(y)){var E=p.start,_=p.end;if(_===void 0&&(_=E),"selectionStart"in y)y.selectionStart=E,y.selectionEnd=Math.min(_,y.value.length);else {var M=y.ownerDocument||document,b=M&&M.defaultView||window;if(b.getSelection){var k=b.getSelection(),Y=y.textContent.length,$=Math.min(p.start,Y),K=p.end===void 0?$:Math.min(p.end,Y);!k.extend&&$>K&&(h=K,K=$,$=h);var C=Dk(y,$),z=Dk(y,K);if(C&&z&&(k.rangeCount!==1||k.anchorNode!==C.node||k.anchorOffset!==C.offset||k.focusNode!==z.node||k.focusOffset!==z.offset)){var O=M.createRange();O.setStart(C.node,C.offset),k.removeAllRanges(),$>K?(k.addRange(O),k.extend(z.node,z.offset)):(O.setEnd(z.node,z.offset),k.addRange(O));}}}}for(M=[],k=y;k=k.parentNode;)k.nodeType===1&&M.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<M.length;y++){var B=M[y];B.element.scrollLeft=B.left,B.element.scrollTop=B.top;}}e2=!!Jv,Kv=Jv=null;}finally{xe=r,be.p=i,Nt.T=l;}}t.current=a,Rn=2;}}function JA(){if(Rn===2){Rn=0;var t=cr,a=_f,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=Nt.T,Nt.T=null;var i=be.p;be.p=2;var r=xe;xe|=4;try{zA(t,a.alternate,a);}finally{xe=r,be.p=i,Nt.T=l;}}Rn=3;}}function KA(){if(Rn===4||Rn===3){Rn=0,Qw();var t=cr,a=_f,l=Gi,i=YA;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Rn=5:(Rn=0,_f=cr=null,FA(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(rr=null),rS(l),a=a.stateNode,bl&&typeof bl.onCommitFiberRoot=="function")try{bl.onCommitFiberRoot(fh,a,void 0,(a.current.flags&128)===128);}catch{}if(i!==null){a=Nt.T,r=be.p,be.p=2,Nt.T=null;try{for(var s=t.onRecoverableError,h=0;h<i.length;h++){var y=i[h];s(y.value,{componentStack:y.stack});}}finally{Nt.T=a,be.p=r;}}(Gi&3)!==0&&g2(),ti(t),r=t.pendingLanes,(l&261930)!==0&&(r&42)!==0?t===Qv?Z0++:(Z0=0,Qv=t):Z0=0,bh(0);}}function FA(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,ph(a)));}function g2(){return ZA(),JA(),KA(),PA()}function PA(){if(Rn!==5)return false;var t=cr,a=Xv;Xv=0;var l=rS(Gi),i=Nt.T,r=be.p;try{be.p=32>l?32:l,Nt.T=null,l=Gv,Gv=null;var s=cr,h=Gi;if(Rn=0,_f=cr=null,Gi=0,(xe&6)!==0)throw Error(I(331));var y=xe;if(xe|=4,NA(s.current),wA(s,s.current,h,l),xe=y,bh(0,!1),bl&&typeof bl.onPostCommitFiberRoot=="function")try{bl.onPostCommitFiberRoot(fh,s);}catch{}return !0}finally{be.p=r,Nt.T=i,FA(t,a);}}function rz(t,a,l){a=Zl(l,a),a=Yv(t.stateNode,a,2),t=ur(t,a,2),t!==null&&(hh(t,2),ti(t));}function ze(t,a,l){if(t.tag===3)rz(t,t,l);else for(;a!==null;){if(a.tag===3){rz(a,t,l);break}else if(a.tag===1){var i=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(rr===null||!rr.has(i))){t=Zl(l,t),l=hA(2),i=ur(a,l,2),i!==null&&(yA(l,i,a,t),hh(i,2),ti(i));break}}a=a.return;}}function av(t,a,l){var i=t.pingCache;if(i===null){i=t.pingCache=new xH;var r=new Set;i.set(a,r);}else r=i.get(a),r===void 0&&(r=new Set,i.set(a,r));r.has(l)||(qS=true,r.add(l),t=MH.bind(null,t,a,l),a.then(t,t));}function MH(t,a,l){var i=t.pingCache;i!==null&&i.delete(a),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Le===t&&(se&l)===l&&(rn===4||rn===3&&(se&62914560)===se&&300>xl()-y2?(xe&2)===0&&kf(t,0):XS|=l,Mf===se&&(Mf=0)),ti(t);}function IA(t,a){a===0&&(a=Xz()),t=Oc(t,a),t!==null&&(hh(t,a),ti(t));}function _H(t){var a=t.memoizedState,l=0;a!==null&&(l=a.retryLane),IA(t,l);}function kH(t,a){var l=0;switch(t.tag){case 31:case 13:var i=t.stateNode,r=t.memoizedState;r!==null&&(l=r.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(I(314))}i!==null&&i.delete(a),IA(t,l);}function zH(t,a){return iS(t,a)}var Zm=null,Ks=null,Vv=false,Jm=false,lv=false,ar=0;function ti(t){t!==Ks&&t.next===null&&(Ks===null?Zm=Ks=t:Ks=Ks.next=t),Jm=true,Vv||(Vv=true,AH());}function bh(t,a){if(!lv&&Jm){lv=true;do for(var l=false,i=Zm;i!==null;){if(t!==0){var r=i.pendingLanes;if(r===0)var s=0;else {var h=i.suspendedLanes,y=i.pingedLanes;s=(1<<31-vl(42|t)+1)-1,s&=r&~(h&~y),s=s&201326741?s&201326741|1:s?s|2:0;}s!==0&&(l=true,cz(i,s));}else s=se,s=a2(i,i===Le?s:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(s&3)===0||dh(i,s)||(l=true,cz(i,s));i=i.next;}while(l);lv=false;}}function TH(){tD();}function tD(){Jm=Vv=false;var t=0;ar!==0&&NH()&&(t=ar);for(var a=xl(),l=null,i=Zm;i!==null;){var r=i.next,s=eD(i,a);s===0?(i.next=null,l===null?Zm=r:l.next=r,r===null&&(Ks=l)):(l=i,(t!==0||(s&3)!==0)&&(Jm=true)),i=r;}Rn!==0&&Rn!==5||bh(t),ar!==0&&(ar=0);}function eD(t,a){for(var l=t.suspendedLanes,i=t.pingedLanes,r=t.expirationTimes,s=t.pendingLanes&-62914561;0<s;){var h=31-vl(s),y=1<<h,p=r[h];p===-1?((y&l)===0||(y&i)!==0)&&(r[h]=t9(y,a)):p<=a&&(t.expiredLanes|=y),s&=~y;}if(a=Le,l=se,l=a2(t,t===a?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,l===0||t===a&&(ke===2||ke===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&wb(i),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||dh(t,l)){if(a=l&-l,a===t.callbackPriority)return a;switch(i!==null&&wb(i),rS(l)){case 2:case 8:l=jz;break;case 32:l=Om;break;case 268435456:l=qz;break;default:l=Om;}return i=nD.bind(null,t),l=iS(l,i),t.callbackPriority=a,t.callbackNode=l,a}return i!==null&&i!==null&&wb(i),t.callbackPriority=2,t.callbackNode=null,2}function nD(t,a){if(Rn!==0&&Rn!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(g2()&&t.callbackNode!==l)return null;var i=se;return i=a2(t,t===Le?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(BA(t,i,a),eD(t,xl()),t.callbackNode!=null&&t.callbackNode===l?nD.bind(null,t):null)}function cz(t,a){if(g2())return null;BA(t,a,true);}function AH(){LH(function(){(xe&6)!==0?iS(Bz,TH):tD();});}function QS(){if(ar===0){var t=vf;t===0&&(t=K1,K1<<=1,(K1&261888)===0&&(K1=256)),ar=t;}return ar}function sz(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ym(""+t)}function fz(t,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,t.id&&l.setAttribute("form",t.id),a.parentNode.insertBefore(l,a),t=new FormData(t),l.parentNode.removeChild(l),t}function DH(t,a,l,i,r){if(a==="submit"&&l&&l.stateNode===r){var s=sz((r[Qa]||null).action),h=i.submitter;h&&(a=(a=h[Qa]||null)?sz(a.formAction):h.getAttribute("formAction"),a!==null&&(s=a,h=null));var y=new l2("action","action",null,i,r);t.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ar!==0){var p=h?fz(r,h):new FormData(r);$v(l,{pending:true,data:p,method:r.method,action:s},null,p);}}else typeof s=="function"&&(y.preventDefault(),p=h?fz(r,h):new FormData(r),$v(l,{pending:true,data:p,method:r.method,action:s},s,p));},currentTarget:r}]});}}for(rm=0;rm<kv.length;rm++)cm=kv[rm],dz=cm.toLowerCase(),hz=cm[0].toUpperCase()+cm.slice(1),mo(dz,"on"+hz);var cm,dz,hz,rm;mo(yT,"onAnimationEnd");mo(mT,"onAnimationIteration");mo(pT,"onAnimationStart");mo("dblclick","onDoubleClick");mo("focusin","onFocus");mo("focusout","onBlur");mo(V9,"onTransitionRun");mo(Z9,"onTransitionStart");mo(J9,"onTransitionCancel");mo(gT,"onTransitionEnd");xf("onMouseEnter",["mouseout","mouseover"]);xf("onMouseLeave",["mouseout","mouseover"]);xf("onPointerEnter",["pointerout","pointerover"]);xf("onPointerLeave",["pointerout","pointerover"]);Ac("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ac("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ac("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ac("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ac("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ac("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oh="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(" "),CH=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oh));function aD(t,a){a=(a&4)!==0;for(var l=0;l<t.length;l++){var i=t[l],r=i.event;i=i.listeners;t:{var s=void 0;if(a)for(var h=i.length-1;0<=h;h--){var y=i[h],p=y.instance,E=y.currentTarget;if(y=y.listener,p!==s&&r.isPropagationStopped())break t;s=y,r.currentTarget=E;try{s(r);}catch(_){wm(_);}r.currentTarget=null,s=p;}else for(h=0;h<i.length;h++){if(y=i[h],p=y.instance,E=y.currentTarget,y=y.listener,p!==s&&r.isPropagationStopped())break t;s=y,r.currentTarget=E;try{s(r);}catch(_){wm(_);}r.currentTarget=null,s=p;}}}}function re(t,a){var l=a[gv];l===void 0&&(l=a[gv]=new Set);var i=t+"__bubble";l.has(i)||(lD(a,t,2,false),l.add(i));}function ov(t,a,l){var i=0;a&&(i|=4),lD(l,t,i,a);}var sm="_reactListening"+Math.random().toString(36).slice(2);function VS(t){if(!t[sm]){t[sm]=true,Jz.forEach(function(l){l!=="selectionchange"&&(CH.has(l)||ov(l,false,t),ov(l,true,t));});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[sm]||(a[sm]=true,ov("selectionchange",false,a));}}function lD(t,a,l,i){switch(gD(a)){case 2:var r=lU;break;case 8:r=oU;break;default:r=FS;}l=r.bind(null,a,l,t),r=void 0,!Ev||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(r=true),i?r!==void 0?t.addEventListener(a,l,{capture:true,passive:r}):t.addEventListener(a,l,true):r!==void 0?t.addEventListener(a,l,{passive:r}):t.addEventListener(a,l,false);}function iv(t,a,l,i,r){var s=i;if((a&1)===0&&(a&2)===0&&i!==null)t:for(;;){if(i===null)return;var h=i.tag;if(h===3||h===4){var y=i.stateNode.containerInfo;if(y===r)break;if(h===4)for(h=i.return;h!==null;){var p=h.tag;if((p===3||p===4)&&h.stateNode.containerInfo===r)return;h=h.return;}for(;y!==null;){if(h=Is(y),h===null)return;if(p=h.tag,p===5||p===6||p===26||p===27){i=s=h;continue t}y=y.parentNode;}}i=i.return;}aT(function(){var E=s,_=fS(l),M=[];t:{var b=xT.get(t);if(b!==void 0){var k=l2,Y=t;switch(t){case "keypress":if(pm(l)===0)break t;case "keydown":case "keyup":k=k9;break;case "focusin":Y="focus",k=Lb;break;case "focusout":Y="blur",k=Lb;break;case "beforeblur":case "afterblur":k=Lb;break;case "click":if(l.button===2)break t;case "auxclick":case "dblclick":case "mousedown":case "mousemove":case "mouseup":case "mouseout":case "mouseover":case "contextmenu":k=vk;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":k=h9;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":k=A9;break;case yT:case mT:case pT:k=p9;break;case gT:k=C9;break;case "scroll":case "scrollend":k=f9;break;case "wheel":k=R9;break;case "copy":case "cut":case "paste":k=x9;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":k=Ek;break;case "toggle":case "beforetoggle":k=H9;}var $=(a&4)!==0,K=!$&&(t==="scroll"||t==="scrollend"),C=$?b!==null?b+"Capture":null:b;$=[];for(var z=E,O;z!==null;){var B=z;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||C===null||(B=F0(z,C),B!=null&&$.push(ih(z,B,O))),K)break;z=z.return;}0<$.length&&(b=new k(b,Y,null,l,_),M.push({event:b,listeners:$}));}}if((a&7)===0){t:{if(b=t==="mouseover"||t==="pointerover",k=t==="mouseout"||t==="pointerout",b&&l!==Sv&&(Y=l.relatedTarget||l.fromElement)&&(Is(Y)||Y[Af]))break t;if((k||b)&&(b=_.window===_?_:(b=_.ownerDocument)?b.defaultView||b.parentWindow:window,k?(Y=l.relatedTarget||l.toElement,k=E,Y=Y?Is(Y):null,Y!==null&&(K=sh(Y),$=Y.tag,Y!==K||$!==5&&$!==27&&$!==6)&&(Y=null)):(k=null,Y=E),k!==Y)){if($=vk,B="onMouseLeave",C="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&($=Ek,B="onPointerLeave",C="onPointerEnter",z="pointer"),K=k==null?b:H0(k),O=Y==null?b:H0(Y),b=new $(B,z+"leave",k,l,_),b.target=K,b.relatedTarget=O,B=null,Is(_)===E&&($=new $(C,z+"enter",Y,l,_),$.target=O,$.relatedTarget=K,B=$),K=B,k&&Y)e:{for($=OH,C=k,z=Y,O=0,B=C;B;B=$(B))O++;B=0;for(var L=z;L;L=$(L))B++;for(;0<O-B;)C=$(C),O--;for(;0<B-O;)z=$(z),B--;for(;O--;){if(C===z||z!==null&&C===z.alternate){$=C;break e}C=$(C),z=$(z);}$=null;}else $=null;k!==null&&yz(M,b,k,$,!1),Y!==null&&K!==null&&yz(M,K,Y,$,!0);}}t:{if(b=E?H0(E):window,k=b.nodeName&&b.nodeName.toLowerCase(),k==="select"||k==="input"&&b.type==="file")var xt=zk;else if(kk(b))if(cT)xt=X9;else {xt=j9;var nt=B9;}else k=b.nodeName,!k||k.toLowerCase()!=="input"||b.type!=="checkbox"&&b.type!=="radio"?E&&sS(E.elementType)&&(xt=zk):xt=q9;if(xt&&(xt=xt(t,E))){rT(M,xt,l,_);break t}nt&&nt(t,b,E),t==="focusout"&&E&&b.type==="number"&&E.memoizedProps.value!=null&&vv(b,"number",b.value);}switch(nt=E?H0(E):window,t){case "focusin":(kk(nt)||nt.contentEditable==="true")&&(nf=nt,Mv=E,Y0=null);break;case "focusout":Y0=Mv=nf=null;break;case "mousedown":_v=!0;break;case "contextmenu":case "mouseup":case "dragend":_v=!1,Ck(M,l,_);break;case "selectionchange":if(Q9)break;case "keydown":case "keyup":Ck(M,l,_);}var at;if(yS)t:{switch(t){case "compositionstart":var Mt="onCompositionStart";break t;case "compositionend":Mt="onCompositionEnd";break t;case "compositionupdate":Mt="onCompositionUpdate";break t}Mt=void 0;}else ef?iT(t,l)&&(Mt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Mt="onCompositionStart");Mt&&(oT&&l.locale!=="ko"&&(ef||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&ef&&(at=lT()):(tr=_,dS="value"in tr?tr.value:tr.textContent,ef=!0)),nt=Km(E,Mt),0<nt.length&&(Mt=new Sk(Mt,t,null,l,_),M.push({event:Mt,listeners:nt}),at?Mt.data=at:(at=uT(l),at!==null&&(Mt.data=at)))),(at=N9?$9(t,l):L9(t,l))&&(Mt=Km(E,"onBeforeInput"),0<Mt.length&&(nt=new Sk("onBeforeInput","beforeinput",null,l,_),M.push({event:nt,listeners:Mt}),nt.data=at)),DH(M,t,E,l,_);}aD(M,a);});}function ih(t,a,l){return {instance:t,listener:a,currentTarget:l}}function Km(t,a){for(var l=a+"Capture",i=[];t!==null;){var r=t,s=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||s===null||(r=F0(t,l),r!=null&&i.unshift(ih(t,r,s)),r=F0(t,a),r!=null&&i.push(ih(t,r,s))),t.tag===3)return i;t=t.return;}return []}function OH(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function yz(t,a,l,i,r){for(var s=a._reactName,h=[];l!==null&&l!==i;){var y=l,p=y.alternate,E=y.stateNode;if(y=y.tag,p!==null&&p===i)break;y!==5&&y!==26&&y!==27||E===null||(p=E,r?(E=F0(l,s),E!=null&&h.unshift(ih(l,E,p))):r||(E=F0(l,s),E!=null&&h.push(ih(l,E,p)))),l=l.return;}h.length!==0&&t.push({event:a,listeners:h});}var RH=/\r\n?/g,wH=/\u0000|\uFFFD/g;function mz(t){return (typeof t=="string"?t:""+t).replace(RH,`
30
- `).replace(wH,"")}function oD(t,a){return a=mz(a),mz(t)===a}function Re(t,a,l,i,r,s){switch(l){case "children":typeof i=="string"?a==="body"||a==="textarea"&&i===""||bf(t,i):(typeof i=="number"||typeof i=="bigint")&&a!=="body"&&bf(t,""+i);break;case "className":I1(t,"class",i);break;case "tabIndex":I1(t,"tabindex",i);break;case "dir":case "role":case "viewBox":case "width":case "height":I1(t,l,i);break;case "style":nT(t,i,s);break;case "data":if(a!=="object"){I1(t,"data",i);break}case "src":case "href":if(i===""&&(a!=="a"||l!=="href")){t.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(l);break}i=ym(""+i),t.setAttribute(l,i);break;case "action":case "formAction":if(typeof i=="function"){t.setAttribute(l,"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"&&(l==="formAction"?(a!=="input"&&Re(t,a,"name",r.name,r,null),Re(t,a,"formEncType",r.formEncType,r,null),Re(t,a,"formMethod",r.formMethod,r,null),Re(t,a,"formTarget",r.formTarget,r,null)):(Re(t,a,"encType",r.encType,r,null),Re(t,a,"method",r.method,r,null),Re(t,a,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(l);break}i=ym(""+i),t.setAttribute(l,i);break;case "onClick":i!=null&&(t.onclick=Bi);break;case "onScroll":i!=null&&re("scroll",t);break;case "onScrollEnd":i!=null&&re("scrollend",t);break;case "dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(I(61));if(l=i.__html,l!=null){if(r.children!=null)throw Error(I(60));t.innerHTML=l;}}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}l=ym(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);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(l,""+i):t.removeAttribute(l);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(l,""):t.removeAttribute(l);break;case "capture":case "download":i===true?t.setAttribute(l,""):i!==false&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(l,i):t.removeAttribute(l);break;case "cols":case "rows":case "size":case "span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(l,i):t.removeAttribute(l);break;case "rowSpan":case "start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(l):t.setAttribute(l,i);break;case "popover":re("beforetoggle",t),re("toggle",t),hm(t,"popover",i);break;case "xlinkActuate":wi(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case "xlinkArcrole":wi(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case "xlinkRole":wi(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case "xlinkShow":wi(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case "xlinkTitle":wi(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case "xlinkType":wi(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case "xmlBase":wi(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case "xmlLang":wi(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case "xmlSpace":wi(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case "is":hm(t,"is",i);break;case "innerText":case "textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=c9.get(l)||l,hm(t,l,i));}}function Zv(t,a,l,i,r,s){switch(l){case "style":nT(t,i,s);break;case "dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(I(61));if(l=i.__html,l!=null){if(r.children!=null)throw Error(I(60));t.innerHTML=l;}}break;case "children":typeof i=="string"?bf(t,i):(typeof i=="number"||typeof i=="bigint")&&bf(t,""+i);break;case "onScroll":i!=null&&re("scroll",t);break;case "onScrollEnd":i!=null&&re("scrollend",t);break;case "onClick":i!=null&&(t.onclick=Bi);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(!Kz.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(r=l.endsWith("Capture"),a=l.slice(2,r?l.length-7:void 0),s=t[Qa]||null,s=s!=null?s[l]:null,typeof s=="function"&&t.removeEventListener(a,s,r),typeof i=="function")){typeof s!="function"&&s!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(a,i,r);break t}l in t?t[l]=i:i===true?t.setAttribute(l,""):hm(t,l,i);}}}function la(t,a,l){switch(a){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":re("error",t),re("load",t);var i=false,r=false,s;for(s in l)if(l.hasOwnProperty(s)){var h=l[s];if(h!=null)switch(s){case "src":i=true;break;case "srcSet":r=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(I(137,a));default:Re(t,a,s,h,l,null);}}r&&Re(t,a,"srcSet",l.srcSet,l,null),i&&Re(t,a,"src",l.src,l,null);return;case "input":re("invalid",t);var y=s=h=r=null,p=null,E=null;for(i in l)if(l.hasOwnProperty(i)){var _=l[i];if(_!=null)switch(i){case "name":r=_;break;case "type":h=_;break;case "checked":p=_;break;case "defaultChecked":E=_;break;case "value":s=_;break;case "defaultValue":y=_;break;case "children":case "dangerouslySetInnerHTML":if(_!=null)throw Error(I(137,a));break;default:Re(t,a,i,_,l,null);}}Iz(t,s,y,p,E,h,r,false);return;case "select":re("invalid",t),i=h=s=null;for(r in l)if(l.hasOwnProperty(r)&&(y=l[r],y!=null))switch(r){case "value":s=y;break;case "defaultValue":h=y;break;case "multiple":i=y;default:Re(t,a,r,y,l,null);}a=s,l=h,t.multiple=!!i,a!=null?ff(t,!!i,a,false):l!=null&&ff(t,!!i,l,true);return;case "textarea":re("invalid",t),s=r=i=null;for(h in l)if(l.hasOwnProperty(h)&&(y=l[h],y!=null))switch(h){case "value":i=y;break;case "defaultValue":r=y;break;case "children":s=y;break;case "dangerouslySetInnerHTML":if(y!=null)throw Error(I(91));break;default:Re(t,a,h,y,l,null);}eT(t,i,r,s);return;case "option":for(p in l)l.hasOwnProperty(p)&&(i=l[p],i!=null)&&(p==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":Re(t,a,p,i,l,null));return;case "dialog":re("beforetoggle",t),re("toggle",t),re("cancel",t),re("close",t);break;case "iframe":case "object":re("load",t);break;case "video":case "audio":for(i=0;i<oh.length;i++)re(oh[i],t);break;case "image":re("error",t),re("load",t);break;case "details":re("toggle",t);break;case "embed":case "source":case "link":re("error",t),re("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 l)if(l.hasOwnProperty(E)&&(i=l[E],i!=null))switch(E){case "children":case "dangerouslySetInnerHTML":throw Error(I(137,a));default:Re(t,a,E,i,l,null);}return;default:if(sS(a)){for(_ in l)l.hasOwnProperty(_)&&(i=l[_],i!==void 0&&Zv(t,a,_,i,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(i=l[y],i!=null&&Re(t,a,y,i,l,null));}function HH(t,a,l,i){switch(a){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var r=null,s=null,h=null,y=null,p=null,E=null,_=null;for(k in l){var M=l[k];if(l.hasOwnProperty(k)&&M!=null)switch(k){case "checked":break;case "value":break;case "defaultValue":p=M;default:i.hasOwnProperty(k)||Re(t,a,k,null,i,M);}}for(var b in i){var k=i[b];if(M=l[b],i.hasOwnProperty(b)&&(k!=null||M!=null))switch(b){case "type":s=k;break;case "name":r=k;break;case "checked":E=k;break;case "defaultChecked":_=k;break;case "value":h=k;break;case "defaultValue":y=k;break;case "children":case "dangerouslySetInnerHTML":if(k!=null)throw Error(I(137,a));break;default:k!==M&&Re(t,a,b,k,i,M);}}bv(t,h,y,p,E,_,s,r);return;case "select":k=h=y=b=null;for(s in l)if(p=l[s],l.hasOwnProperty(s)&&p!=null)switch(s){case "value":break;case "multiple":k=p;default:i.hasOwnProperty(s)||Re(t,a,s,null,i,p);}for(r in i)if(s=i[r],p=l[r],i.hasOwnProperty(r)&&(s!=null||p!=null))switch(r){case "value":b=s;break;case "defaultValue":y=s;break;case "multiple":h=s;default:s!==p&&Re(t,a,r,s,i,p);}a=y,l=h,i=k,b!=null?ff(t,!!l,b,false):!!i!=!!l&&(a!=null?ff(t,!!l,a,true):ff(t,!!l,l?[]:"",false));return;case "textarea":k=b=null;for(y in l)if(r=l[y],l.hasOwnProperty(y)&&r!=null&&!i.hasOwnProperty(y))switch(y){case "value":break;case "children":break;default:Re(t,a,y,null,i,r);}for(h in i)if(r=i[h],s=l[h],i.hasOwnProperty(h)&&(r!=null||s!=null))switch(h){case "value":b=r;break;case "defaultValue":k=r;break;case "children":break;case "dangerouslySetInnerHTML":if(r!=null)throw Error(I(91));break;default:r!==s&&Re(t,a,h,r,i,s);}tT(t,b,k);return;case "option":for(var Y in l)b=l[Y],l.hasOwnProperty(Y)&&b!=null&&!i.hasOwnProperty(Y)&&(Y==="selected"?t.selected=false:Re(t,a,Y,null,i,b));for(p in i)b=i[p],k=l[p],i.hasOwnProperty(p)&&b!==k&&(b!=null||k!=null)&&(p==="selected"?t.selected=b&&typeof b!="function"&&typeof b!="symbol":Re(t,a,p,b,i,k));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 $ in l)b=l[$],l.hasOwnProperty($)&&b!=null&&!i.hasOwnProperty($)&&Re(t,a,$,null,i,b);for(E in i)if(b=i[E],k=l[E],i.hasOwnProperty(E)&&b!==k&&(b!=null||k!=null))switch(E){case "children":case "dangerouslySetInnerHTML":if(b!=null)throw Error(I(137,a));break;default:Re(t,a,E,b,i,k);}return;default:if(sS(a)){for(var K in l)b=l[K],l.hasOwnProperty(K)&&b!==void 0&&!i.hasOwnProperty(K)&&Zv(t,a,K,void 0,i,b);for(_ in i)b=i[_],k=l[_],!i.hasOwnProperty(_)||b===k||b===void 0&&k===void 0||Zv(t,a,_,b,i,k);return}}for(var C in l)b=l[C],l.hasOwnProperty(C)&&b!=null&&!i.hasOwnProperty(C)&&Re(t,a,C,null,i,b);for(M in i)b=i[M],k=l[M],!i.hasOwnProperty(M)||b===k||b==null&&k==null||Re(t,a,M,b,i,k);}function pz(t){switch(t){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return true;default:return false}}function UH(){if(typeof performance.getEntriesByType=="function"){for(var t=0,a=0,l=performance.getEntriesByType("resource"),i=0;i<l.length;i++){var r=l[i],s=r.transferSize,h=r.initiatorType,y=r.duration;if(s&&y&&pz(h)){for(h=0,y=r.responseEnd,i+=1;i<l.length;i++){var p=l[i],E=p.startTime;if(E>y)break;var _=p.transferSize,M=p.initiatorType;_&&pz(M)&&(p=p.responseEnd,h+=_*(p<y?1:(y-E)/(p-E)));}if(--i,a+=8*(s+h)/(r.duration/1e3),t++,10<t)break}}if(0<t)return a/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Jv=null,Kv=null;function Fm(t){return t.nodeType===9?t:t.ownerDocument}function gz(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 iD(t,a){if(t===0)switch(a){case "svg":return 1;case "math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function Fv(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var uv=null;function NH(){var t=window.event;return t&&t.type==="popstate"?t===uv?false:(uv=t,true):(uv=null,false)}var uD=typeof setTimeout=="function"?setTimeout:void 0,$H=typeof clearTimeout=="function"?clearTimeout:void 0,xz=typeof Promise=="function"?Promise:void 0,LH=typeof queueMicrotask=="function"?queueMicrotask:typeof xz<"u"?function(t){return xz.resolve(null).then(t).catch(YH)}:uD;function YH(t){setTimeout(function(){throw t});}function xr(t){return t==="head"}function bz(t,a){var l=a,i=0;do{var r=l.nextSibling;if(t.removeChild(l),r&&r.nodeType===8)if(l=r.data,l==="/$"||l==="/&"){if(i===0){t.removeChild(r),Tf(a);return}i--;}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")i++;else if(l==="html")J0(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,J0(l);for(var s=l.firstChild;s;){var h=s.nextSibling,y=s.nodeName;s[yh]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=h;}}else l==="body"&&J0(t.ownerDocument.body);l=r;}while(l);Tf(a);}function vz(t,a){var l=t;t=0;do{var i=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),i&&i.nodeType===8)if(l=i.data,l==="/$"){if(t===0)break;t--;}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=i;}while(l)}function Pv(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case "HTML":case "HEAD":case "BODY":Pv(l),cS(l);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l);}}function WH(t,a,l,i){for(;t.nodeType===1;){var r=l;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[yh])switch(a){case "meta":if(!t.hasAttribute("itemprop"))break;return t;case "link":if(s=t.getAttribute("rel"),s==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(s!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case "style":if(t.hasAttribute("data-precedence"))break;return t;case "script":if(s=t.getAttribute("src"),(s!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&s&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var s=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===s)return t}else return t;if(t=Fl(t.nextSibling),t===null)break}return null}function BH(t,a,l){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Fl(t.nextSibling),t===null))return null;return t}function rD(t,a){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Fl(t.nextSibling),t===null))return null;return t}function Iv(t){return t.data==="$?"||t.data==="$~"}function tS(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function jH(t,a){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=a;else if(t.data!=="$?"||l.readyState!=="loading")a();else {var i=function(){a(),l.removeEventListener("DOMContentLoaded",i);};l.addEventListener("DOMContentLoaded",i),t._reactRetry=i;}}function Fl(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return t}var eS=null;function Sz(t){t=t.nextSibling;for(var a=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(a===0)return Fl(t.nextSibling);a--;}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++;}t=t.nextSibling;}return null}function Ez(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return t;a--;}else l!=="/$"&&l!=="/&"||a++;}t=t.previousSibling;}return null}function cD(t,a,l){switch(a=Fm(l),t){case "html":if(t=a.documentElement,!t)throw Error(I(452));return t;case "head":if(t=a.head,!t)throw Error(I(453));return t;case "body":if(t=a.body,!t)throw Error(I(454));return t;default:throw Error(I(451))}}function J0(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);cS(t);}var Pl=new Map,Mz=new Set;function Pm(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Fi=be.d;be.d={f:qH,r:XH,D:GH,C:QH,L:VH,m:ZH,X:KH,S:JH,M:FH};function qH(){var t=Fi.f(),a=m2();return t||a}function XH(t){var a=Df(t);a!==null&&a.tag===5&&a.type==="form"?nA(a):Fi.r(t);}var wf=typeof document>"u"?null:document;function sD(t,a,l){var i=wf;if(i&&typeof a=="string"&&a){var r=Vl(a);r='link[rel="'+t+'"][href="'+r+'"]',typeof l=="string"&&(r+='[crossorigin="'+l+'"]'),Mz.has(r)||(Mz.add(r),t={rel:t,crossOrigin:l,href:a},i.querySelector(r)===null&&(a=i.createElement("link"),la(a,"link",t),qn(a),i.head.appendChild(a)));}}function GH(t){Fi.D(t),sD("dns-prefetch",t,null);}function QH(t,a){Fi.C(t,a),sD("preconnect",t,a);}function VH(t,a,l){Fi.L(t,a,l);var i=wf;if(i&&t&&a){var r='link[rel="preload"][as="'+Vl(a)+'"]';a==="image"&&l&&l.imageSrcSet?(r+='[imagesrcset="'+Vl(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(r+='[imagesizes="'+Vl(l.imageSizes)+'"]')):r+='[href="'+Vl(t)+'"]';var s=r;switch(a){case "style":s=zf(t);break;case "script":s=Hf(t);}Pl.has(s)||(t=Ke({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:t,as:a},l),Pl.set(s,t),i.querySelector(r)!==null||a==="style"&&i.querySelector(vh(s))||a==="script"&&i.querySelector(Sh(s))||(a=i.createElement("link"),la(a,"link",t),qn(a),i.head.appendChild(a)));}}function ZH(t,a){Fi.m(t,a);var l=wf;if(l&&t){var i=a&&typeof a.as=="string"?a.as:"script",r='link[rel="modulepreload"][as="'+Vl(i)+'"][href="'+Vl(t)+'"]',s=r;switch(i){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":s=Hf(t);}if(!Pl.has(s)&&(t=Ke({rel:"modulepreload",href:t},a),Pl.set(s,t),l.querySelector(r)===null)){switch(i){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(l.querySelector(Sh(s)))return}i=l.createElement("link"),la(i,"link",t),qn(i),l.head.appendChild(i);}}}function JH(t,a,l){Fi.S(t,a,l);var i=wf;if(i&&t){var r=sf(i).hoistableStyles,s=zf(t);a=a||"default";var h=r.get(s);if(!h){var y={loading:0,preload:null};if(h=i.querySelector(vh(s)))y.loading=5;else {t=Ke({rel:"stylesheet",href:t,"data-precedence":a},l),(l=Pl.get(s))&&ZS(t,l);var p=h=i.createElement("link");qn(p),la(p,"link",t),p._p=new Promise(function(E,_){p.onload=E,p.onerror=_;}),p.addEventListener("load",function(){y.loading|=1;}),p.addEventListener("error",function(){y.loading|=2;}),y.loading|=4,_m(h,a,i);}h={type:"stylesheet",instance:h,count:1,state:y},r.set(s,h);}}}function KH(t,a){Fi.X(t,a);var l=wf;if(l&&t){var i=sf(l).hoistableScripts,r=Hf(t),s=i.get(r);s||(s=l.querySelector(Sh(r)),s||(t=Ke({src:t,async:true},a),(a=Pl.get(r))&&JS(t,a),s=l.createElement("script"),qn(s),la(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(r,s));}}function FH(t,a){Fi.M(t,a);var l=wf;if(l&&t){var i=sf(l).hoistableScripts,r=Hf(t),s=i.get(r);s||(s=l.querySelector(Sh(r)),s||(t=Ke({src:t,async:true,type:"module"},a),(a=Pl.get(r))&&JS(t,a),s=l.createElement("script"),qn(s),la(s,"link",t),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},i.set(r,s));}}function _z(t,a,l,i){var r=(r=lr.current)?Pm(r):null;if(!r)throw Error(I(446));switch(t){case "meta":case "title":return null;case "style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=zf(l.href),l=sf(r).hoistableStyles,i=l.get(a),i||(i={type:"style",instance:null,count:0,state:null},l.set(a,i)),i):{type:"void",instance:null,count:0,state:null};case "link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=zf(l.href);var s=sf(r).hoistableStyles,h=s.get(t);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(t,h),(s=r.querySelector(vh(t)))&&!s._p&&(h.instance=s,h.state.loading=5),Pl.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Pl.set(t,l),s||PH(r,t,l,h.state))),a&&i===null)throw Error(I(528,""));return h}if(a&&i!==null)throw Error(I(529,""));return null;case "script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Hf(l),l=sf(r).hoistableScripts,i=l.get(a),i||(i={type:"script",instance:null,count:0,state:null},l.set(a,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(I(444,t))}}function zf(t){return 'href="'+Vl(t)+'"'}function vh(t){return 'link[rel="stylesheet"]['+t+"]"}function fD(t){return Ke({},t,{"data-precedence":t.precedence,precedence:null})}function PH(t,a,l,i){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?i.loading=1:(a=t.createElement("link"),i.preload=a,a.addEventListener("load",function(){return i.loading|=1}),a.addEventListener("error",function(){return i.loading|=2}),la(a,"link",l),qn(a),t.head.appendChild(a));}function Hf(t){return '[src="'+Vl(t)+'"]'}function Sh(t){return "script[async]"+t}function kz(t,a,l){if(a.count++,a.instance===null)switch(a.type){case "style":var i=t.querySelector('style[data-href~="'+Vl(l.href)+'"]');if(i)return a.instance=i,qn(i),i;var r=Ke({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),qn(i),la(i,"style",r),_m(i,l.precedence,t),a.instance=i;case "stylesheet":r=zf(l.href);var s=t.querySelector(vh(r));if(s)return a.state.loading|=4,a.instance=s,qn(s),s;i=fD(l),(r=Pl.get(r))&&ZS(i,r),s=(t.ownerDocument||t).createElement("link"),qn(s);var h=s;return h._p=new Promise(function(y,p){h.onload=y,h.onerror=p;}),la(s,"link",i),a.state.loading|=4,_m(s,l.precedence,t),a.instance=s;case "script":return s=Hf(l.src),(r=t.querySelector(Sh(s)))?(a.instance=r,qn(r),r):(i=l,(r=Pl.get(s))&&(i=Ke({},l),JS(i,r)),t=t.ownerDocument||t,r=t.createElement("script"),qn(r),la(r,"link",i),t.head.appendChild(r),a.instance=r);case "void":return null;default:throw Error(I(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(i=a.instance,a.state.loading|=4,_m(i,l.precedence,t));return a.instance}function _m(t,a,l){for(var i=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,s=r,h=0;h<i.length;h++){var y=i[h];if(y.dataset.precedence===a)s=y;else if(s!==r)break}s?s.parentNode.insertBefore(t,s.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(t,a.firstChild));}function ZS(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title);}function JS(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity);}var km=null;function zz(t,a,l){if(km===null){var i=new Map,r=km=new Map;r.set(l,i);}else r=km,i=r.get(l),i||(i=new Map,r.set(l,i));if(i.has(t))return i;for(i.set(t,null),l=l.getElementsByTagName(t),r=0;r<l.length;r++){var s=l[r];if(!(s[yh]||s[ea]||t==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var h=s.getAttribute(a)||"";h=t+h;var y=i.get(h);y?y.push(s):i.set(h,[s]);}}return i}function Tz(t,a,l){t=t.ownerDocument||t,t.head.insertBefore(l,a==="title"?t.querySelector("head > title"):null);}function IH(t,a,l){if(l===1||a.itemProp!=null)return false;switch(t){case "meta":case "title":return true;case "style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return true;case "link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(t=a.disabled,typeof a.precedence=="string"&&t==null):true;case "script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return true}return false}function dD(t){return !(t.type==="stylesheet"&&(t.state.loading&3)===0)}function tU(t,a,l,i){if(l.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==false)&&(l.state.loading&4)===0){if(l.instance===null){var r=zf(i.href),s=a.querySelector(vh(r));if(s){a=s._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(t.count++,t=Im.bind(t),a.then(t,t)),l.state.loading|=4,l.instance=s,qn(s);return}s=a.ownerDocument||a,i=fD(i),(r=Pl.get(r))&&ZS(i,r),s=s.createElement("link"),qn(s);var h=s;h._p=new Promise(function(y,p){h.onload=y,h.onerror=p;}),la(s,"link",i),l.instance=s;}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Im.bind(t),a.addEventListener("load",l),a.addEventListener("error",l));}}var rv=0;function eU(t,a){return t.stylesheets&&t.count===0&&zm(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var i=setTimeout(function(){if(t.stylesheets&&zm(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s();}},6e4+a);0<t.imgBytes&&rv===0&&(rv=62500*UH());var r=setTimeout(function(){if(t.waitingForImages=false,t.count===0&&(t.stylesheets&&zm(t,t.stylesheets),t.unsuspend)){var s=t.unsuspend;t.unsuspend=null,s();}},(t.imgBytes>rv?50:800)+a);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(r);}}:null}function Im(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zm(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t();}}}var t2=null;function zm(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,t2=new Map,a.forEach(nU,t),t2=null,Im.call(t));}function nU(t,a){if(!(a.state.loading&4)){var l=t2.get(t);if(l)var i=l.get(null);else {l=new Map,t2.set(t,l);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<r.length;s++){var h=r[s];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(l.set(h.dataset.precedence,h),i=h);}i&&l.set(null,i);}r=a.instance,h=r.getAttribute("data-precedence"),s=l.get(h)||i,s===i&&l.set(null,r),l.set(h,r),this.count++,i=Im.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),s?s.parentNode.insertBefore(r,s.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),a.state.loading|=4;}}var uh={$$typeof:Wi,Provider:null,Consumer:null,_currentValue:xc,_currentValue2:xc,_threadCount:0};function aU(t,a,l,i,r,s,h,y,p){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=Hb(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hb(0),this.hiddenUpdates=Hb(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=s,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,this.incompleteTransitions=new Map;}function hD(t,a,l,i,r,s,h,y,p,E,_,M){return t=new aU(t,a,l,h,p,E,_,M,y),a=1,s===true&&(a|=24),s=pl(3,null,null,a),t.current=s,s.stateNode=t,a=SS(),a.refCount++,t.pooledCache=a,a.refCount++,s.memoizedState={element:i,isDehydrated:l,cache:a},_S(s),t}function yD(t){return t?(t=of,t):of}function mD(t,a,l,i,r,s){r=yD(r),i.context===null?i.context=r:i.pendingContext=r,i=ir(a),i.payload={element:l},s=s===void 0?null:s,s!==null&&(i.callback=s),l=ur(t,i,a),l!==null&&(Ga(l,t,a),B0(l,t,a));}function Az(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<a?l:a;}}function KS(t,a){Az(t,a),(t=t.alternate)&&Az(t,a);}function pD(t){if(t.tag===13||t.tag===31){var a=Oc(t,67108864);a!==null&&Ga(a,t,67108864),KS(t,67108864);}}function Dz(t){if(t.tag===13||t.tag===31){var a=Sl();a=uS(a);var l=Oc(t,a);l!==null&&Ga(l,t,a),KS(t,a);}}var e2=true;function lU(t,a,l,i){var r=Nt.T;Nt.T=null;var s=be.p;try{be.p=2,FS(t,a,l,i);}finally{be.p=s,Nt.T=r;}}function oU(t,a,l,i){var r=Nt.T;Nt.T=null;var s=be.p;try{be.p=8,FS(t,a,l,i);}finally{be.p=s,Nt.T=r;}}function FS(t,a,l,i){if(e2){var r=nS(i);if(r===null)iv(t,a,i,n2,l),Cz(t,i);else if(uU(r,t,a,l,i))i.stopPropagation();else if(Cz(t,i),a&4&&-1<iU.indexOf(t)){for(;r!==null;){var s=Df(r);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var h=mc(s.pendingLanes);if(h!==0){var y=s;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var p=1<<31-vl(h);y.entanglements[1]|=p,h&=~p;}ti(s),(xe&6)===0&&(Gm=xl()+500,bh(0));}}break;case 31:case 13:y=Oc(s,2),y!==null&&Ga(y,s,2),m2(),KS(s,2);}if(s=nS(i),s===null&&iv(t,a,i,n2,l),s===r)break;r=s;}r!==null&&i.stopPropagation();}else iv(t,a,i,null,l);}}function nS(t){return t=fS(t),PS(t)}var n2=null;function PS(t){if(n2=null,t=Is(t),t!==null){var a=sh(t);if(a===null)t=null;else {var l=a.tag;if(l===13){if(t=Nz(a),t!==null)return t;t=null;}else if(l===31){if(t=$z(a),t!==null)return t;t=null;}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null;}else a!==t&&(t=null);}}return n2=t,null}function gD(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(Vw()){case Bz:return 2;case jz:return 8;case Om:case Zw:return 32;case qz:return 268435456;default:return 32}default:return 32}}var aS=false,sr=null,fr=null,dr=null,rh=new Map,ch=new Map,Pu=[],iU="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 Cz(t,a){switch(t){case "focusin":case "focusout":sr=null;break;case "dragenter":case "dragleave":fr=null;break;case "mouseover":case "mouseout":dr=null;break;case "pointerover":case "pointerout":rh.delete(a.pointerId);break;case "gotpointercapture":case "lostpointercapture":ch.delete(a.pointerId);}}function C0(t,a,l,i,r,s){return t===null||t.nativeEvent!==s?(t={blockedOn:a,domEventName:l,eventSystemFlags:i,nativeEvent:s,targetContainers:[r]},a!==null&&(a=Df(a),a!==null&&pD(a)),t):(t.eventSystemFlags|=i,a=t.targetContainers,r!==null&&a.indexOf(r)===-1&&a.push(r),t)}function uU(t,a,l,i,r){switch(a){case "focusin":return sr=C0(sr,t,a,l,i,r),true;case "dragenter":return fr=C0(fr,t,a,l,i,r),true;case "mouseover":return dr=C0(dr,t,a,l,i,r),true;case "pointerover":var s=r.pointerId;return rh.set(s,C0(rh.get(s)||null,t,a,l,i,r)),true;case "gotpointercapture":return s=r.pointerId,ch.set(s,C0(ch.get(s)||null,t,a,l,i,r)),true}return false}function xD(t){var a=Is(t.target);if(a!==null){var l=sh(a);if(l!==null){if(a=l.tag,a===13){if(a=Nz(l),a!==null){t.blockedOn=a,hk(t.priority,function(){Dz(l);});return}}else if(a===31){if(a=$z(l),a!==null){t.blockedOn=a,hk(t.priority,function(){Dz(l);});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null;}function Tm(t){if(t.blockedOn!==null)return false;for(var a=t.targetContainers;0<a.length;){var l=nS(t.nativeEvent);if(l===null){l=t.nativeEvent;var i=new l.constructor(l.type,l);Sv=i,l.target.dispatchEvent(i),Sv=null;}else return a=Df(l),a!==null&&pD(a),t.blockedOn=l,false;a.shift();}return true}function Oz(t,a,l){Tm(t)&&l.delete(a);}function rU(){aS=false,sr!==null&&Tm(sr)&&(sr=null),fr!==null&&Tm(fr)&&(fr=null),dr!==null&&Tm(dr)&&(dr=null),rh.forEach(Oz),ch.forEach(Oz);}function fm(t,a){t.blockedOn===a&&(t.blockedOn=null,aS||(aS=true,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,rU)));}var dm=null;function Rz(t){dm!==t&&(dm=t,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,function(){dm===t&&(dm=null);for(var a=0;a<t.length;a+=3){var l=t[a],i=t[a+1],r=t[a+2];if(typeof i!="function"){if(PS(i||l)===null)continue;break}var s=Df(l);s!==null&&(t.splice(a,3),a-=3,$v(s,{pending:true,data:r,method:l.method,action:i},i,r));}}));}function Tf(t){function a(p){return fm(p,t)}sr!==null&&fm(sr,t),fr!==null&&fm(fr,t),dr!==null&&fm(dr,t),rh.forEach(a),ch.forEach(a);for(var l=0;l<Pu.length;l++){var i=Pu[l];i.blockedOn===t&&(i.blockedOn=null);}for(;0<Pu.length&&(l=Pu[0],l.blockedOn===null);)xD(l),l.blockedOn===null&&Pu.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(i=0;i<l.length;i+=3){var r=l[i],s=l[i+1],h=r[Qa]||null;if(typeof s=="function")h||Rz(l);else if(h){var y=null;if(s&&s.hasAttribute("formAction")){if(r=s,h=s[Qa]||null)y=h.formAction;else if(PS(r)!==null)continue}else y=h.action;typeof y=="function"?l[i+1]=y:(l.splice(i,3),i-=3),Rz(l);}}}function bD(){function t(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"});}function a(){r!==null&&(r(),r=null),i||setTimeout(l,20);}function l(){if(!i&&!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 i=false,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){i=true,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),r!==null&&(r(),r=null);}}}function IS(t){this._internalRoot=t;}x2.prototype.render=IS.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(I(409));var l=a.current,i=Sl();mD(l,i,t,a,null,null);};x2.prototype.unmount=IS.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;mD(t.current,2,null,t,null,null),m2(),a[Af]=null;}};function x2(t){this._internalRoot=t;}x2.prototype.unstable_scheduleHydration=function(t){if(t){var a=Zz();t={blockedOn:null,target:t,priority:a};for(var l=0;l<Pu.length&&a!==0&&a<Pu[l].priority;l++);Pu.splice(l,0,t),l===0&&xD(t);}};var wz=Hz.version;if(wz!=="19.2.5")throw Error(I(527,wz,"19.2.5"));be.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(I(188)):(t=Object.keys(t).join(","),Error(I(268,t)));return t=Ww(a),t=t!==null?Lz(t):null,t=t===null?null:t.stateNode,t};var cU={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:Nt,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(O0=__REACT_DEVTOOLS_GLOBAL_HOOK__,!O0.isDisabled&&O0.supportsFiber))try{fh=O0.inject(cU),bl=O0;}catch{}var O0;b2.createRoot=function(t,a){if(!Uz(t))throw Error(I(299));var l=false,i="",r=sA,s=fA,h=dA;return a!=null&&(a.unstable_strictMode===true&&(l=true),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(h=a.onRecoverableError)),a=hD(t,1,false,null,null,l,i,null,r,s,h,bD),t[Af]=a.current,VS(t),new IS(a)};b2.hydrateRoot=function(t,a,l){if(!Uz(t))throw Error(I(299));var i=false,r="",s=sA,h=fA,y=dA,p=null;return l!=null&&(l.unstable_strictMode===true&&(i=true),l.identifierPrefix!==void 0&&(r=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(h=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.formState!==void 0&&(p=l.formState)),a=hD(t,1,true,a,l??null,i,r,p,s,h,y,bD),a.context=yD(null),l=a.current,i=Sl(),i=uS(i),r=ir(i),r.callback=null,ur(l,r,i),l=i,a.current.lanes=l,hh(a,l),ti(a),t[Af]=a.current,VS(t),new x2(a)};b2.version="19.2.5";});var SD=Sa(v2=>{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 a(e,n,o,u){if(o>=n.length)return u;var c=n[o],f=An(e)?e.slice():te({},e);return f[c]=a(e[c],n,o+1,u),f}function l(e,n,o){if(n.length!==o.length)console.warn("copyWithRename() expects paths of the same length");else {for(var u=0;u<o.length-1;u++)if(n[u]!==o[u]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return i(e,n,o,0)}}function i(e,n,o,u){var c=n[u],f=An(e)?e.slice():te({},e);return u+1===n.length?(f[o[u]]=f[c],An(f)?f.splice(c,1):delete f[c]):f[c]=i(e[c],n,o,u+1),f}function r(e,n,o){var u=n[o],c=An(e)?e.slice():te({},e);return o+1===n.length?(An(c)?c.splice(u,1):delete c[u],c):(c[u]=r(e[u],n,o+1),c)}function s(){return false}function h(){return null}function y(){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 p(){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 _(){}function M(e){var n=[];return e.forEach(function(o){n.push(o);}),n.sort().join(", ")}function b(e,n,o,u){return new tC(e,n,o,u)}function k(e,n){e.context===Su&&(Mg(e.current,2,n,e,null,null),Kc());}function Y(e,n){if(Dl!==null){var o=n.staleFamilies;n=n.updatedFamilies,fd(),Q4(e.current,n,o),Kc();}}function $(e){Dl=e;}function K(e){return !(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function C(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else {e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o: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 O(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 o=e,u=n;;){var c=o.return;if(c===null)break;var f=c.alternate;if(f===null){if(u=c.return,u!==null){o=u;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===o)return B(c),e;if(f===u)return B(c),n;f=f.sibling;}throw Error("Unable to find node on an unmounted component.")}if(o.return!==u.return)o=c,u=f;else {for(var d=false,m=c.child;m;){if(m===o){d=true,o=c,u=f;break}if(m===u){d=true,u=c,o=f;break}m=m.sibling;}if(!d){for(m=f.child;m;){if(m===o){d=true,o=f,u=c;break}if(m===u){d=true,u=f,o=c;break}m=m.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(o.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(o.tag!==3)throw Error("Unable to find node on an unmounted component.");return o.stateNode.current===o?e:n}function xt(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=xt(e),n!==null)return n;e=e.sibling;}return null}function nt(e){return e===null||typeof e!="object"?null:(e=I5&&e[I5]||e["@@iterator"],typeof e=="function"?e:null)}function at(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===EO?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case as:return "Fragment";case Cg:return "Profiler";case Ry:return "StrictMode";case Rg:return "Suspense";case wg:return "SuspenseList";case Hg: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 ns:return "Portal";case Ho:return e.displayName||"Context";case Og:return (e._context.displayName||"Context")+".Consumer";case Sd:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case wy:return n=e.displayName||null,n!==null?n:at(e.type)||"Memo";case al:n=e._payload,e=e._init;try{return at(e(n))}catch{}}return null}function Mt(e){return typeof e.tag=="number"?P(e):typeof e.name=="string"?e.name:null}function P(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 at(n);case 8:return n===Ry?"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 o=n.length-1;0<=o;o--)if(typeof n[o].name=="string")return n[o].name}if(e.return!==null)return P(e.return)}return null}function fe(e){return {current:e}}function Lt(e,n){0>fi?console.error("Unexpected pop."):(n!==Ng[fi]&&console.error("Unexpected Fiber popped."),e.current=Ug[fi],Ug[fi]=null,Ng[fi]=null,fi--);}function rt(e,n,o){fi++,Ug[fi]=e.current,Ng[fi]=o,e.current=n;}function pt(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 Z(e,n){rt(mu,n,e),rt(Ed,e,e),rt(yu,null,e);var o=n.nodeType;switch(o){case 9:case 11:o=o===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?M5(n):ki;break;default:if(o=n.tagName,n=n.namespaceURI)n=M5(n),n=_5(n,o);else switch(o){case "svg":n=$s;break;case "math":n=O1;break;default:n=ki;}}o=o.toLowerCase(),o=g4(null,o),o={context:n,ancestorInfo:o},Lt(yu,e),rt(yu,o,e);}function ht(e){Lt(yu,e),Lt(Ed,e),Lt(mu,e);}function bt(){return pt(yu.current)}function ne(e){e.memoizedState!==null&&rt(Hy,e,e);var n=pt(yu.current),o=e.type,u=_5(n.context,o);o=g4(n.ancestorInfo,o),u={context:u,ancestorInfo:o},n!==u&&(rt(Ed,e,e),rt(yu,u,e));}function ye(e){Ed.current===e&&(Lt(yu,e),Lt(Ed,e)),Hy.current===e&&(Lt(Hy,e),h0._currentValue=cc);}function Gn(){}function F(){if(Md===0){t6=console.log,e6=console.info,n6=console.warn,a6=console.error,l6=console.group,o6=console.groupCollapsed,i6=console.groupEnd;var e={configurable:true,enumerable:true,value:Gn,writable:true};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e});}Md++;}function Ot(){if(Md--,Md===0){var e={configurable:true,enumerable:true,writable:true};Object.defineProperties(console,{log:te({},e,{value:t6}),info:te({},e,{value:e6}),warn:te({},e,{value:n6}),error:te({},e,{value:a6}),group:te({},e,{value:l6}),groupCollapsed:te({},e,{value:o6}),groupEnd:te({},e,{value:i6})});}0>Md&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");}function Kt(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 jt(e){if($g===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);$g=n&&n[1]||"",u6=-1<o.stack.indexOf(`
34
- at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":"";}return `
35
- `+$g+e+u6}function Da(e,n){if(!e||Lg)return "";var o=Yg.get(e);if(o!==void 0)return o;Lg=true,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var u=null;u=Q.H,Q.H=null,F();try{var c={DetermineComponentFrameRoot:function(){try{if(n){var A=function(){throw Error()};if(Object.defineProperty(A.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(A,[]);}catch(ct){var q=ct;}Reflect.construct(e,[],A);}else {try{A.call();}catch(ct){q=ct;}e.call(A.prototype);}}else {try{throw Error()}catch(ct){q=ct;}(A=e())&&typeof A.catch=="function"&&A.catch(function(){});}}catch(ct){if(ct&&q&&typeof ct.stack=="string")return [ct.stack,q.stack]}return [null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=c.DetermineComponentFrameRoot(),m=d[0],x=d[1];if(m&&x){var v=m.split(`
36
- `),w=x.split(`
37
- `);for(d=f=0;f<v.length&&!v[f].includes("DetermineComponentFrameRoot");)f++;for(;d<w.length&&!w[d].includes("DetermineComponentFrameRoot");)d++;if(f===v.length||d===w.length)for(f=v.length-1,d=w.length-1;1<=f&&0<=d&&v[f]!==w[d];)d--;for(;1<=f&&0<=d;f--,d--)if(v[f]!==w[d]){if(f!==1||d!==1)do if(f--,d--,0>d||v[f]!==w[d]){var H=`
38
- `+v[f].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),typeof e=="function"&&Yg.set(e,H),H}while(1<=f&&0<=d);break}}}finally{Lg=false,Q.H=u,Ot(),Error.prepareStackTrace=o;}return v=(v=e?e.displayName||e.name:"")?jt(v):"",typeof e=="function"&&Yg.set(e,v),v}function ei(e,n){switch(e.tag){case 26:case 27:case 5:return jt(e.type);case 16:return jt("Lazy");case 13:return e.child!==n&&n!==null?jt("Suspense Fallback"):jt("Suspense");case 19:return jt("SuspenseList");case 0:case 15:return Da(e.type,false);case 11:return Da(e.type.render,false);case 1:return Da(e.type,true);case 31:return jt("Activity");default:return ""}}function Ye(e){try{var n="",o=null;do{n+=ei(e,o);var u=e._debugInfo;if(u)for(var c=u.length-1;0<=c;c--){var f=u[c];if(typeof f.name=="string"){var d=n;t:{var m=f.name,x=f.env,v=f.debugLocation;if(v!=null){var w=Kt(v),H=w.lastIndexOf(`
39
- `),A=H===-1?w:w.slice(H+1);if(A.indexOf(m)!==-1){var q=`
40
- `+A;break t}}q=jt(m+(x?" ["+x+"]":""));}n=d+q;}}o=e,e=e.return;}while(e);return n}catch(ct){return `
41
- Error generating stack: `+ct.message+`
42
- `+ct.stack}}function fa(e){return (e=e?e.displayName||e.name:"")?jt(e):""}function Il(){if(ll===null)return null;var e=ll._debugOwner;return e!=null?Mt(e):null}function wc(){if(ll===null)return "";var e=ll;try{var n="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:n+=jt(e.type);break;case 13:n+=jt("Suspense");break;case 19:n+=jt("SuspenseList");break;case 31:n+=jt("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||n!==""||(n+=fa(e.type));break;case 11:e._debugOwner||n!==""||(n+=fa(e.type.render));}for(;e;)if(typeof e.tag=="number"){var o=e;e=o._debugOwner;var u=o._debugStack;if(e&&u){var c=Kt(u);c!==""&&(n+=`
43
- `+c);}}else if(e.debugStack!=null){var f=e.debugStack;(e=e.owner)&&f&&(n+=`
44
- `+Kt(f));}else break;var d=n;}catch(m){d=`
45
- Error generating stack: `+m.message+`
46
- `+m.stack;}return d}function gt(e,n,o,u,c,f,d){var m=ll;Hc(e);try{return e!==null&&e._debugTask?e._debugTask.run(n.bind(null,o,u,c,f,d)):n(o,u,c,f,d)}finally{Hc(m);}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Hc(e){Q.getCurrentStack=e===null?null:wc,Uo=false,ll=e;}function br(e){return typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Pi(e){try{return Hn(e),!1}catch{return true}}function Hn(e){return ""+e}function Ee(e,n){if(Pi(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,br(e)),Hn(e)}function $f(e,n){if(Pi(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,br(e)),Hn(e)}function Gt(e){if(Pi(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.",br(e)),Hn(e)}function Uc(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{os=n.inject(e),ua=n;}catch(o){console.error("React instrumentation encountered an error: %o.",o);}return !!n.checkDCE}function He(e){if(typeof DO=="function"&&CO(e),ua&&typeof ua.setStrictMode=="function")try{ua.setStrictMode(os,e);}catch(n){No||(No=true,console.error("React instrumentation encountered an error: %o",n));}}function Eh(e){return e>>>=0,e===0?32:31-(OO(e)/RO|0)|0}function po(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 vr(e,n,o){var u=e.pendingLanes;if(u===0)return 0;var c=0,f=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var m=u&134217727;return m!==0?(u=m&~f,u!==0?c=po(u):(d&=m,d!==0?c=po(d):o||(o=m&~e,o!==0&&(c=po(o))))):(m=u&~f,m!==0?c=po(m):d!==0?c=po(d):o||(o=u&~e,o!==0&&(c=po(o)))),c===0?0:n!==0&&n!==c&&(n&f)===0&&(f=c&-c,o=n&-n,f>=o||f===32&&(o&4194048)!==0)?n:c}function Sr(e,n){return (e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function M2(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 Nc(){var e=$y;return $y<<=1,($y&62914560)===0&&($y=4194304),e}function $c(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Ii(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0);}function Mh(e,n,o,u,c,f){var d=e.pendingLanes;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=o,e.entangledLanes&=o,e.errorRecoveryDisabledLanes&=o,e.shellSuspendCounter=0;var m=e.entanglements,x=e.expirationTimes,v=e.hiddenUpdates;for(o=d&~o;0<o;){var w=31-ha(o),H=1<<w;m[w]=0,x[w]=-1;var A=v[w];if(A!==null)for(v[w]=null,w=0;w<A.length;w++){var q=A[w];q!==null&&(q.lane&=-536870913);}o&=~H;}u!==0&&Er(e,u,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(d&~n));}function Er(e,n,o){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-ha(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|o&261930;}function Mr(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var u=31-ha(o),c=1<<u;c&n|e[u]&n&&(e[u]|=n),o&=~c;}}function _r(e,n){var o=n&-n;return o=(o&42)!==0?1:kr(o),(o&(e.suspendedLanes|n))!==0?0:o}function kr(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 Lf(e,n,o){if($o)for(e=e.pendingUpdatersLaneMap;0<o;){var u=31-ha(o),c=1<<u;e[u].add(n),o&=~c;}}function tu(e,n){if($o)for(var o=e.pendingUpdatersLaneMap,u=e.memoizedUpdaters;0<n;){var c=31-ha(n);e=1<<c,c=o[c],0<c.size&&(c.forEach(function(f){var d=f.alternate;d!==null&&u.has(d)||u.add(f);}),c.clear()),n&=~e;}}function S(e){return e&=-e,ol<e?lo<e?(e&134217727)!==0?Lo:Ly:lo:ol}function N(){var e=ge.p;return e!==0?e:(e=window.event,e===void 0?Lo:Q5(e.type))}function ot(e,n){var o=ge.p;try{return ge.p=e,n()}finally{ge.p=o;}}function ft(e){delete e[Jn],delete e[ya],delete e[Xg],delete e[wO],delete e[HO];}function St(e){var n=e[Jn];if(n)return n;for(var o=e.parentNode;o;){if(n=o[gu]||o[Jn]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=R5(e);e!==null;){if(o=e[Jn])return o;e=R5(e);}return n}e=o,o=e.parentNode;}return null}function Yt(e){if(e=e[Jn]||e[gu]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Wt(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function me(e){var n=e[r6];return n||(n=e[r6]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function zt(e){e[_d]=true;}function oa(e,n){Za(e,n),Za(e+"Capture",n);}function Za(e,n){Br[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Br[e]=n;var o=e.toLowerCase();for(Gg[o]=e,e==="onDoubleClick"&&(Gg.ondblclick=e),e=0;e<n.length;e++)c6.add(n[e]);}function eu(e,n){UO[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 Yf(e){return ao.call(f6,e)?true:ao.call(s6,e)?false:NO.test(e)?f6[e]=true:(s6[e]=true,console.error("Invalid attribute name: `%s`",e),false)}function n4(e,n,o){if(Yf(n)){if(!e.hasAttribute(n)){switch(typeof o){case "symbol":case "object":return o;case "function":return o;case "boolean":if(o===false)return o}return o===void 0?void 0:null}return e=e.getAttribute(n),e===""&&o===true?true:(Ee(o,n),e===""+o?o:e)}}function _h(e,n,o){if(Yf(n))if(o===null)e.removeAttribute(n);else {switch(typeof o){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}}Ee(o,n),e.setAttribute(n,""+o);}}function kh(e,n,o){if(o===null)e.removeAttribute(n);else {switch(typeof o){case "undefined":case "function":case "symbol":case "boolean":e.removeAttribute(n);return}Ee(o,n),e.setAttribute(n,""+o);}}function ni(e,n,o,u){if(u===null)e.removeAttribute(o);else {switch(typeof u){case "undefined":case "function":case "symbol":case "boolean":e.removeAttribute(o);return}Ee(u,o),e.setAttributeNS(n,o,""+u);}}function _l(e){switch(typeof e){case "bigint":case "boolean":case "number":case "string":case "undefined":return e;case "object":return Gt(e),e;default:return ""}}function a4(e){var n=e.type;return (e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function OD(e,n,o){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var c=u.get,f=u.set;return Object.defineProperty(e,n,{configurable:true,get:function(){return c.call(this)},set:function(d){Gt(d),o=""+d,f.call(this,d);}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(d){Gt(d),o=""+d;},stopTracking:function(){e._valueTracker=null,delete e[n];}}}}function _2(e){if(!e._valueTracker){var n=a4(e)?"checked":"value";e._valueTracker=OD(e,n,""+e[n]);}}function l4(e){if(!e)return false;var n=e._valueTracker;if(!n)return true;var o=n.getValue(),u="";return e&&(u=a4(e)?e.checked?"true":"false":e.value),e=u,e!==o?(n.setValue(e),true):false}function zh(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 kl(e){return e.replace($O,function(n){return "\\"+n.charCodeAt(0).toString(16)+" "})}function o4(e,n){n.checked===void 0||n.defaultChecked===void 0||h6||(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",Il()||"A component",n.type),h6=true),n.value===void 0||n.defaultValue===void 0||d6||(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",Il()||"A component",n.type),d6=true);}function k2(e,n,o,u,c,f,d,m){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?(Ee(d,"type"),e.type=d):e.removeAttribute("type"),n!=null?d==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+_l(n)):e.value!==""+_l(n)&&(e.value=""+_l(n)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),n!=null?z2(e,d,_l(n)):o!=null?z2(e,d,_l(o)):u!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?(Ee(m,"name"),e.name=""+_l(m)):e.removeAttribute("name");}function i4(e,n,o,u,c,f,d,m){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(Ee(f,"type"),e.type=f),n!=null||o!=null){if(!(f!=="submit"&&f!=="reset"||n!=null)){_2(e);return}o=o!=null?""+_l(o):"",n=n!=null?""+_l(n):o,m||n===e.value||(e.value=n),e.defaultValue=n;}u=u??c,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=m?e.checked:!!u,e.defaultChecked=!!u,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(Ee(d,"name"),e.name=d),_2(e);}function z2(e,n,o){n==="number"&&zh(e.ownerDocument)===e||e.defaultValue===""+o||(e.defaultValue=""+o);}function u4(e,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?Dg.Children.forEach(n.children,function(o){o==null||typeof o=="string"||typeof o=="number"||typeof o=="bigint"||m6||(m6=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||p6||(p6=true,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||y6||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),y6=true);}function r4(){var e=Il();return e?`
47
-
48
- Check the render method of \``+e+"`.":""}function Lc(e,n,o,u){if(e=e.options,n){n={};for(var c=0;c<o.length;c++)n["$"+o[c]]=true;for(o=0;o<e.length;o++)c=n.hasOwnProperty("$"+e[o].value),e[o].selected!==c&&(e[o].selected=c),c&&u&&(e[o].defaultSelected=true);}else {for(o=""+_l(o),n=null,c=0;c<e.length;c++){if(e[c].value===o){e[c].selected=true,u&&(e[c].defaultSelected=true);return}n!==null||e[c].disabled||(n=e[c]);}n!==null&&(n.selected=true);}}function c4(e,n){for(e=0;e<x6.length;e++){var o=x6[e];if(n[o]!=null){var u=An(n[o]);n.multiple&&!u?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",o,r4()):!n.multiple&&u&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",o,r4());}}n.value===void 0||n.defaultValue===void 0||g6||(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"),g6=true);}function s4(e,n){n.value===void 0||n.defaultValue===void 0||b6||(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",Il()||"A component"),b6=true),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");}function f4(e,n,o){if(n!=null&&(n=""+_l(n),n!==e.value&&(e.value=n),o==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=o!=null?""+_l(o):"";}function d4(e,n,o,u){if(n==null){if(u!=null){if(o!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(An(u)){if(1<u.length)throw Error("<textarea> can only have at most one child.");u=u[0];}o=u;}o==null&&(o=""),n=o;}o=_l(n),e.defaultValue=o,u=e.textContent,u===o&&u!==""&&u!==null&&(e.value=u),_2(e);}function h4(e,n){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-n?h4(e.children[0],n):e}function Ja(e){return " "+" ".repeat(e)}function Yc(e){return "+ "+" ".repeat(e)}function zr(e){return "- "+" ".repeat(e)}function y4(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 Wf(e,n){return v6.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 Th(e,n,o){var u=120-2*o;if(n===null)return Yc(o)+Wf(e,u)+`
49
- `;if(typeof n=="string"){for(var c=0;c<n.length&&c<e.length&&n.charCodeAt(c)===e.charCodeAt(c);c++);return c>u-8&&10<c&&(e="..."+e.slice(c-8),n="..."+n.slice(c-8)),Yc(o)+Wf(e,u)+`
50
- `+zr(o)+Wf(n,u)+`
51
- `}return Ja(o)+Wf(e,u)+`
52
- `}function T2(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(n,o){return o})}function Bf(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(An(e))return "[...]";if(e.$$typeof===wo)return (n=at(e.type))?"<"+n+">":"<...>";var o=T2(e);if(o==="Object"){o="",n-=2;for(var u in e)if(e.hasOwnProperty(u)){var c=JSON.stringify(u);if(c!=='"'+u+'"'&&(u=c),n-=u.length-2,c=Bf(e[u],15>n?n:15),n-=c.length,0>n){o+=o===""?"...":", ...";break}o+=(o===""?"":",")+u+":"+c;}return "{"+o+"}"}return o;case "function":return (n=e.displayName||e.name)?"function "+n:"function";default:return String(e)}}function Wc(e,n){return typeof e!="string"||v6.test(e)?"{"+Bf(e,n-2)+"}":e.length>n-2?5>n?'"..."':'"'+e.slice(0,n-5)+'..."':'"'+e+'"'}function A2(e,n,o){var u=120-o.length-e.length,c=[],f;for(f in n)if(n.hasOwnProperty(f)&&f!=="children"){var d=Wc(n[f],120-o.length-f.length-1);u-=f.length+d.length+2,c.push(f+"="+d);}return c.length===0?o+"<"+e+`>
53
- `:0<u?o+"<"+e+" "+c.join(" ")+`>
54
- `:o+"<"+e+`
55
- `+o+" "+c.join(`
56
- `+o+" ")+`
57
- `+o+`>
58
- `}function RD(e,n,o){var u="",c=te({},n),f;for(f in e)if(e.hasOwnProperty(f)){delete c[f];var d=120-2*o-f.length-2,m=Bf(e[f],d);n.hasOwnProperty(f)?(d=Bf(n[f],d),u+=Yc(o)+f+": "+m+`
59
- `,u+=zr(o)+f+": "+d+`
60
- `):u+=Yc(o)+f+": "+m+`
61
- `;}for(var x in c)c.hasOwnProperty(x)&&(e=Bf(c[x],120-2*o-x.length-2),u+=zr(o)+x+": "+e+`
62
- `);return u}function wD(e,n,o,u){var c="",f=new Map;for(v in o)o.hasOwnProperty(v)&&f.set(v.toLowerCase(),v);if(f.size===1&&f.has("children"))c+=A2(e,n,Ja(u));else {for(var d in n)if(n.hasOwnProperty(d)&&d!=="children"){var m=120-2*(u+1)-d.length-1,x=f.get(d.toLowerCase());if(x!==void 0){f.delete(d.toLowerCase());var v=n[d];x=o[x];var w=Wc(v,m);m=Wc(x,m),typeof v=="object"&&v!==null&&typeof x=="object"&&x!==null&&T2(v)==="Object"&&T2(x)==="Object"&&(2<Object.keys(v).length||2<Object.keys(x).length||-1<w.indexOf("...")||-1<m.indexOf("..."))?c+=Ja(u+1)+d+`={{
63
- `+RD(v,x,u+2)+Ja(u+1)+`}}
64
- `:(c+=Yc(u+1)+d+"="+w+`
65
- `,c+=zr(u+1)+d+"="+m+`
66
- `);}else c+=Ja(u+1)+d+"="+Wc(n[d],m)+`
67
- `;}f.forEach(function(H){if(H!=="children"){var A=120-2*(u+1)-H.length-1;c+=zr(u+1)+H+"="+Wc(o[H],A)+`
68
- `;}}),c=c===""?Ja(u)+"<"+e+`>
69
- `:Ja(u)+"<"+e+`
70
- `+c+Ja(u)+`>
71
- `;}return e=o.children,n=n.children,typeof e=="string"||typeof e=="number"||typeof e=="bigint"?(f="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(f=""+n),c+=Th(f,""+e,u+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(c=e==null?c+Th(""+n,null,u+1):c+Th(""+n,void 0,u+1)),c}function m4(e,n){var o=y4(e);if(o===null){for(o="",e=e.child;e;)o+=m4(e,n),e=e.sibling;return o}return Ja(n)+"<"+o+`>
72
- `}function D2(e,n){var o=h4(e,n);if(o!==e&&(e.children.length!==1||e.children[0]!==o))return Ja(n)+`...
73
- `+D2(o,n+1);o="";var u=e.fiber._debugInfo;if(u)for(var c=0;c<u.length;c++){var f=u[c].name;typeof f=="string"&&(o+=Ja(n)+"<"+f+`>
74
- `,n++);}if(u="",c=e.fiber.pendingProps,e.fiber.tag===6)u=Th(c,e.serverProps,n),n++;else if(f=y4(e.fiber),f!==null)if(e.serverProps===void 0){u=n;var d=120-2*u-f.length-2,m="";for(v in c)if(c.hasOwnProperty(v)&&v!=="children"){var x=Wc(c[v],15);if(d-=v.length+x.length+2,0>d){m+=" ...";break}m+=" "+v+"="+x;}u=Ja(u)+"<"+f+m+`>
75
- `,n++;}else e.serverProps===null?(u=A2(f,c,Yc(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=wD(f,c,e.serverProps,n),n++);var v="";for(c=e.fiber.child,f=0;c&&f<e.children.length;)d=e.children[f],d.fiber===c?(v+=D2(d,n),f++):v+=m4(c,n),c=c.sibling;for(c&&0<e.children.length&&(v+=Ja(n)+`...
76
- `),c=e.serverTail,e.serverProps===null&&n--,e=0;e<c.length;e++)f=c[e],v=typeof f=="string"?v+(zr(n)+Wf(f,120-2*n)+`
77
- `):v+A2(f.type,f.props,zr(n));return o+u+v}function C2(e){try{return `
78
-
79
- `+D2(e,0)}catch{return ""}}function p4(e,n,o){for(var u=n,c=null,f=0;u;)u===e&&(f=0),c={fiber:u,children:c!==null?[c]:[],serverProps:u===n?o:u===e?null:void 0,serverTail:[],distanceFromLeaf:f},f++,u=u.return;return c!==null?C2(c).replaceAll(/^[+-]/gm,">"):""}function g4(e,n){var o=te({},e||E6),u={tag:n};return S6.indexOf(n)!==-1&&(o.aTagInScope=null,o.buttonTagInScope=null,o.nobrTagInScope=null),YO.indexOf(n)!==-1&&(o.pTagInButtonScope=null),LO.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(o.listItemTagAutoclosing=null,o.dlItemTagAutoclosing=null),o.current=u,n==="form"&&(o.formTag=u),n==="a"&&(o.aTagInScope=u),n==="button"&&(o.buttonTagInScope=u),n==="nobr"&&(o.nobrTagInScope=u),n==="p"&&(o.pTagInButtonScope=u),n==="li"&&(o.listItemTagAutoclosing=u),(n==="dd"||n==="dt")&&(o.dlItemTagAutoclosing=u),n==="#document"||n==="html"?o.containerTagInScope=null:o.containerTagInScope||(o.containerTagInScope=u),e!==null||n!=="#document"&&n!=="html"&&n!=="body"?o.implicitRootScope===true&&(o.implicitRootScope=false):o.implicitRootScope=true,o}function x4(e,n,o){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(o)break;return e==="head"||e==="body"||e==="frameset";case "frameset":return e==="frame";case "#document":if(!o)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 WO.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 o||n===null;case "html":return o&&n==="#document"||n===null;case "body":return o&&(n==="#document"||n==="html")||n===null}return true}function HD(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 b4(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 O2(e,n){n=n||E6;var o=n.current;if(n=(o=x4(e,o&&o.tag,n.implicitRootScope)?null:o)?null:HD(e,n),n=o||n,!n)return true;var u=n.tag;if(n=String(!!o)+"|"+e+"|"+u,Yy[n])return false;Yy[n]=true;var c=(n=ll)?b4(n.return,u):null,f=n!==null&&c!==null?p4(c,n,null):"",d="<"+e+">";return o?(o="",u==="table"&&e==="tr"&&(o+=" 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,o,f)):console.error(`In HTML, %s cannot be a descendant of <%s>.
81
- This will cause a hydration error.%s`,d,u,f),n&&(e=n.return,c===null||e===null||c===e&&e._debugOwner===n._debugOwner||gt(c,function(){console.error(`<%s> cannot contain a nested %s.
82
- See this log for the ancestor stack trace.`,u,d);})),false}function Ah(e,n,o){if(o||x4("#text",n,false))return true;if(o="#text|"+n,Yy[o])return false;Yy[o]=true;var u=(o=ll)?b4(o,n):null;return o=o!==null&&u!==null?p4(u,o,o.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,o):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,o),false}function jf(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n;}function UD(e){return e.replace(qO,function(n,o){return o.toUpperCase()})}function v4(e,n,o){var u=n.indexOf("--")===0;u||(-1<n.indexOf("-")?is.hasOwnProperty(n)&&is[n]||(is[n]=true,console.error("Unsupported style property %s. Did you mean %s?",n,UD(n.replace(jO,"ms-")))):BO.test(n)?is.hasOwnProperty(n)&&is[n]||(is[n]=true,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!k6.test(o)||Vg.hasOwnProperty(o)&&Vg[o]||(Vg[o]=true,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,o.replace(k6,""))),typeof o=="number"&&(isNaN(o)?z6||(z6=true,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(o)||T6||(T6=true,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),o==null||typeof o=="boolean"||o===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,o):typeof o!="number"||o===0||A6.has(n)?n==="float"?e.cssFloat=o:($f(o,n),e[n]=(""+o).trim()):e[n]=o+"px";}function S4(e,n,o){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,o!=null){if(n){var u={};if(o){for(var c in o)if(o.hasOwnProperty(c)&&!n.hasOwnProperty(c))for(var f=Qg[c]||[c],d=0;d<f.length;d++)u[f[d]]=c;}for(var m in n)if(n.hasOwnProperty(m)&&(!o||o[m]!==n[m]))for(c=Qg[m]||[m],f=0;f<c.length;f++)u[c[f]]=m;m={};for(var x in n)for(c=Qg[x]||[x],f=0;f<c.length;f++)m[c[f]]=x;x={};for(var v in u)if(c=u[v],(f=m[v])&&c!==f&&(d=c+","+f,!x[d])){x[d]=true,d=console;var w=n[c];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.",w==null||typeof w=="boolean"||w===""?"Removing":"Updating",c,f);}}for(var H in o)!o.hasOwnProperty(H)||n!=null&&n.hasOwnProperty(H)||(H.indexOf("--")===0?e.setProperty(H,""):H==="float"?e.cssFloat="":e[H]="");for(var A in n)v=n[A],n.hasOwnProperty(A)&&o[A]!==v&&v4(e,A,v);}else for(u in n)n.hasOwnProperty(u)&&v4(e,u,n[u]);}function qf(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 E4(e){return XO.get(e)||e}function ND(e,n){if(ao.call(rs,n)&&rs[n])return true;if(QO.test(n)){if(e="aria-"+n.slice(4).toLowerCase(),e=D6.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),rs[n]=true;if(n!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,e),rs[n]=true}if(GO.test(n)){if(e=n.toLowerCase(),e=D6.hasOwnProperty(e)?e:null,e==null)return rs[n]=true,false;n!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,e),rs[n]=true);}return true}function $D(e,n){var o=[],u;for(u in n)ND(e,u)||o.push(u);n=o.map(function(c){return "`"+c+"`"}).join(", "),o.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e):1<o.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,e);}function LD(e,n,o,u){if(ao.call(ma,n)&&ma[n])return true;var c=n.toLowerCase();if(c==="onfocusin"||c==="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."),ma[n]=true;if(typeof o=="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(c)?e[c]:null,u!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,u),ma[n]=true;if(O6.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),ma[n]=true}else if(O6.test(n))return VO.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),ma[n]=true;if(ZO.test(n)||JO.test(n))return true;if(c==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ma[n]=true;if(c==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ma[n]=true;if(c==="is"&&o!==null&&o!==void 0&&typeof o!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof o),ma[n]=true;if(typeof o=="number"&&isNaN(o))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),ma[n]=true;if(By.hasOwnProperty(c)){if(c=By[c],c!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,c),ma[n]=true}else if(n!==c)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,c),ma[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 o){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 c=n.toLowerCase().slice(0,5),c==="data-"||c==="aria-"?true:(o?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()}.',o,n,n,o,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.',o,n,n,o,n,n,n),ma[n]=true)}case "function":case "symbol":return ma[n]=true,false;case "string":if(o==="false"||o==="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}?",o,n,o==="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,o),ma[n]=true;}}return true}function YD(e,n,o){var u=[],c;for(c in n)LD(e,c,n[c],o)||u.push(c);n=u.map(function(f){return "`"+f+"`"}).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 Xf(e){return KO.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ai(){}function R2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function M4(e){var n=Yt(e);if(n&&(e=n.stateNode)){var o=e[ya]||null;t:switch(e=n.stateNode,n.type){case "input":if(k2(e,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(Ee(n,"name"),o=o.querySelectorAll('input[name="'+kl(""+n)+'"][type="radio"]'),n=0;n<o.length;n++){var u=o[n];if(u!==e&&u.form===e.form){var c=u[ya]||null;if(!c)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");k2(u,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name);}}for(n=0;n<o.length;n++)u=o[n],u.form===e.form&&l4(u);}break t;case "textarea":f4(e,o.value,o.defaultValue);break t;case "select":n=o.value,n!=null&&Lc(e,!!o.multiple,n,false);}}}function _4(e,n,o){if(Zg)return e(n,o);Zg=true;try{var u=e(n);return u}finally{if(Zg=false,(cs!==null||ss!==null)&&(Kc(),cs&&(n=cs,e=ss,ss=cs=null,M4(n),e)))for(n=0;n<e.length;n++)M4(e[n]);}}function Gf(e,n){var o=e.stateNode;if(o===null)return null;var u=o[ya]||null;if(u===null)return null;o=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(o&&typeof o!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof o+"` type.");return o}function k4(){if(jy)return jy;var e,n=Kg,o=n.length,u,c="value"in xu?xu.value:xu.textContent,f=c.length;for(e=0;e<o&&n[e]===c[e];e++);var d=o-e;for(u=1;u<=d&&n[o-u]===c[f-u];u++);return jy=c.slice(e,1<u?1-u:void 0)}function Dh(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 Ch(){return true}function z4(){return false}function Ca(e){function n(o,u,c,f,d){this._reactName=o,this._targetInst=c,this.type=u,this.nativeEvent=f,this.target=d,this.currentTarget=null;for(var m in e)e.hasOwnProperty(m)&&(o=e[m],this[m]=o?o(f):f[m]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===false)?Ch:z4,this.isPropagationStopped=z4,this}return te(n.prototype,{preventDefault:function(){this.defaultPrevented=true;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=false),this.isDefaultPrevented=Ch);},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=true),this.isPropagationStopped=Ch);},persist:function(){},isPersistent:Ch}),n}function WD(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=cR[e])?!!n[e]:false}function w2(){return WD}function T4(e,n){switch(e){case "keyup":return SR.indexOf(n.keyCode)!==-1;case "keydown":return n.keyCode!==U6;case "keypress":case "mousedown":case "focusout":return true;default:return false}}function A4(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}function BD(e,n){switch(e){case "compositionend":return A4(n);case "keypress":return n.which!==$6?null:(Y6=true,L6);case "textInput":return e=n.data,e===L6&&Y6?null:e;default:return null}}function jD(e,n){if(fs)return e==="compositionend"||!tx&&T4(e,n)?(e=k4(),jy=Kg=xu=null,fs=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 N6&&n.locale!=="ko"?null:n.data;default:return null}}function D4(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!MR[e.type]:n==="textarea"}function qD(e){if(!Yo)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 C4(e,n,o,u){cs?ss?ss.push(u):ss=[u]:cs=u,n=Ey(n,"onChange"),0<n.length&&(o=new qy("onChange","change",null,o,u),e.push({event:o,listeners:n}));}function XD(e){d5(e,0);}function Oh(e){var n=Wt(e);if(l4(n))return e}function O4(e,n){if(e==="change")return n}function R4(){Cd&&(Cd.detachEvent("onpropertychange",w4),Od=Cd=null);}function w4(e){if(e.propertyName==="value"&&Oh(Od)){var n=[];C4(n,Od,e,R2(e)),_4(XD,n);}}function GD(e,n,o){e==="focusin"?(R4(),Cd=n,Od=o,Cd.attachEvent("onpropertychange",w4)):e==="focusout"&&R4();}function QD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oh(Od)}function VD(e,n){if(e==="click")return Oh(n)}function ZD(e,n){if(e==="input"||e==="change")return Oh(n)}function JD(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}function Qf(e,n){if(pa(e,n))return true;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return false;var o=Object.keys(e),u=Object.keys(n);if(o.length!==u.length)return false;for(u=0;u<o.length;u++){var c=o[u];if(!ao.call(n,c)||!pa(e[c],n[c]))return false}return true}function H4(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function U4(e,n){var o=H4(e);e=0;for(var u;o;){if(o.nodeType===3){if(u=e+o.textContent.length,e<=n&&u>=n)return {node:o,offset:n-e};e=u;}t:{for(;o;){if(o.nextSibling){o=o.nextSibling;break t}o=o.parentNode;}o=void 0;}o=H4(o);}}function N4(e,n){return e&&n?e===n?true:e&&e.nodeType===3?false:n&&n.nodeType===3?N4(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):false:false}function $4(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=zh(e.document);n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string";}catch{o=false;}if(o)e=n.contentWindow;else break;n=zh(e.document);}return n}function H2(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 L4(e,n,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;nx||ds==null||ds!==zh(u)||(u=ds,"selectionStart"in u&&H2(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}),Rd&&Qf(Rd,u)||(Rd=u,u=Ey(ex,"onSelect"),0<u.length&&(n=new qy("onSelect","select",null,n,o),e.push({event:n,listeners:u}),n.target=ds)));}function Tr(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}function Ar(e){if(ax[e])return ax[e];if(!hs[e])return e;var n=hs[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in B6)return ax[e]=n[o];return e}function to(e,n){Q6.set(e,n),oa(n,[e]);}function KD(e){for(var n=Gy,o=0;o<e.length;o++){var u=e[o];if(typeof u=="object"&&u!==null)if(An(u)&&u.length===2&&typeof u[0]=="string"){if(n!==Gy&&n!==rx)return ix;n=rx;}else return ix;else {if(typeof u=="function"||typeof u=="string"&&50<u.length||n!==Gy&&n!==ux)return ix;n=ux;}}return n}function U2(e,n,o,u){for(var c in e)ao.call(e,c)&&c[0]!=="_"&&go(c,e[c],n,o,u);}function go(e,n,o,u,c){switch(typeof n){case "object":if(n===null){n="null";break}else {if(n.$$typeof===wo){var f=at(n.type)||"\u2026",d=n.key;n=n.props;var m=Object.keys(n),x=m.length;if(d==null&&x===0){n="<"+f+" />";break}if(3>u||x===1&&m[0]==="children"&&d==null){n="<"+f+" \u2026 />";break}o.push([c+"\xA0\xA0".repeat(u)+e,"<"+f]),d!==null&&go("key",d,o,u+1,c),e=false;for(var v in n)v==="children"?n.children!=null&&(!An(n.children)||0<n.children.length)&&(e=true):ao.call(n,v)&&v[0]!=="_"&&go(v,n[v],o,u+1,c);o.push(["",e?">\u2026</"+f+">":"/>"]);return}if(f=Object.prototype.toString.call(n),f=f.slice(8,f.length-1),f==="Array"){if(v=KD(n),v===ux||v===Gy){n=JSON.stringify(n);break}else if(v===rx){for(o.push([c+"\xA0\xA0".repeat(u)+e,""]),e=0;e<n.length;e++)f=n[e],go(f[0],f[1],o,u+1,c);return}}if(f==="Promise"){if(n.status==="fulfilled"){if(f=o.length,go(e,n.value,o,u,c),o.length>f){o=o[f],o[1]="Promise<"+(o[1]||"Object")+">";return}}else if(n.status==="rejected"&&(f=o.length,go(e,n.reason,o,u,c),o.length>f)){o=o[f],o[1]="Rejected Promise<"+o[1]+">";return}o.push(["\xA0\xA0".repeat(u)+e,"Promise"]);return}f==="Object"&&(v=Object.getPrototypeOf(n))&&typeof v.constructor=="function"&&(f=v.constructor.name),o.push([c+"\xA0\xA0".repeat(u)+e,f==="Object"?3>u?"":"\u2026":f]),3>u&&U2(n,o,u+1,c);return}case "function":n=n.name===""?"() => {}":n.name+"() {}";break;case "string":n=n===CR?"\u2026":JSON.stringify(n);break;case "undefined":n="undefined";break;case "boolean":n=n?"true":"false";break;default:n=String(n);}o.push([c+"\xA0\xA0".repeat(u)+e,n]);}function Y4(e,n,o,u){var c=true;for(d in e)d in n||(o.push([Qy+"\xA0\xA0".repeat(u)+d,"\u2026"]),c=false);for(var f in n)if(f in e){var d=e[f],m=n[f];if(d!==m){if(u===0&&f==="children")c="\xA0\xA0".repeat(u)+f,o.push([Qy+c,"\u2026"],[Vy+c,"\u2026"]);else {if(!(3<=u)){if(typeof d=="object"&&typeof m=="object"&&d!==null&&m!==null&&d.$$typeof===m.$$typeof)if(m.$$typeof===wo){if(d.type===m.type&&d.key===m.key){d=at(m.type)||"\u2026",c="\xA0\xA0".repeat(u)+f,d="<"+d+" \u2026 />",o.push([Qy+c,d],[Vy+c,d]),c=false;continue}}else {var x=Object.prototype.toString.call(d),v=Object.prototype.toString.call(m);if(x===v&&(v==="[object Object]"||v==="[object Array]")){x=[J6+"\xA0\xA0".repeat(u)+f,v==="[object Array]"?"Array":""],o.push(x),v=o.length,Y4(d,m,o,u+1)?v===o.length&&(x[1]="Referentially unequal but deeply equal objects. Consider memoization."):c=false;continue}}else if(typeof d=="function"&&typeof m=="function"&&d.name===m.name&&d.length===m.length&&(x=Function.prototype.toString.call(d),v=Function.prototype.toString.call(m),x===v)){d=m.name===""?"() => {}":m.name+"() {}",o.push([J6+"\xA0\xA0".repeat(u)+f,d+" Referentially unequal function closure. Consider memoization."]);continue}}go(f,d,o,u,Qy),go(f,m,o,u,Vy);}c=false;}}else o.push([Vy+"\xA0\xA0".repeat(u)+f,"\u2026"]),c=false;return c}function Ka(e){ae=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other";}function xo(e,n,o,u){We&&(vu.start=n,vu.end=o,di.color="warning",di.tooltipText=u,di.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,u,vu)):performance.measure(u,vu));}function Rh(e,n,o){xo(e,n,o,"Reconnect");}function wh(e,n,o,u,c){var f=P(e);if(f!==null&&We){var d=e.alternate,m=e.actualDuration;if(d===null||d.child!==e.child)for(var x=e.child;x!==null;x=x.sibling)m-=x.actualDuration;u=.5>m?u?"tertiary-light":"primary-light":10>m?u?"tertiary":"primary":100>m?u?"tertiary-dark":"primary-dark":"error";var v=e.memoizedProps;m=e._debugTask,v!==null&&d!==null&&d.memoizedProps!==v?(x=[OR],v=Y4(d.memoizedProps,v,x,0),1<x.length&&(v&&!bu&&(d.lanes&c)===0&&100<e.actualDuration?(bu=true,x[0]=RR,di.color="warning",di.tooltipText=K6):(di.color=u,di.tooltipText=f),di.properties=x,vu.start=n,vu.end=o,m!=null?m.run(performance.measure.bind(performance,"\u200B"+f,vu)):performance.measure("\u200B"+f,vu))):m!=null?m.run(console.timeStamp.bind(console,f,n,o,Tl,void 0,u)):console.timeStamp(f,n,o,Tl,void 0,u);}}function N2(e,n,o,u){if(We){var c=P(e);if(c!==null){for(var f=null,d=[],m=0;m<u.length;m++){var x=u[m];f==null&&x.source!==null&&(f=x.source._debugTask),x=x.value,d.push(["Error",typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x)]);}e.key!==null&&go("key",e.key,d,0,""),e.memoizedProps!==null&&U2(e.memoizedProps,d,0,""),f==null&&(f=e._debugTask),e={start:n,end:o,detail:{devtools:{color:"error",track:Tl,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:d}}},f?f.run(performance.measure.bind(performance,"\u200B"+c,e)):performance.measure("\u200B"+c,e);}}}function bo(e,n,o,u,c){if(c!==null){if(We){var f=P(e);if(f!==null){u=[];for(var d=0;d<c.length;d++){var m=c[d].value;u.push(["Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)]);}e.key!==null&&go("key",e.key,u,0,""),e.memoizedProps!==null&&U2(e.memoizedProps,u,0,""),n={start:n,end:o,detail:{devtools:{color:"error",track:Tl,tooltipText:"A lifecycle or effect errored",properties:u}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"\u200B"+f,n)):performance.measure("\u200B"+f,n);}}}else f=P(e),f!==null&&We&&(c=1>u?"secondary-light":100>u?"secondary":500>u?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,f,n,o,Tl,void 0,c)):console.timeStamp(f,n,o,Tl,void 0,c));}function FD(e,n,o,u){if(We&&!(n<=e)){var c=(o&738197653)===o?"tertiary-dark":"primary-dark";o=(o&536870912)===o?"Prepared":(o&201326741)===o?"Hydrated":"Render",u?u.run(console.timeStamp.bind(console,o,e,n,ae,ee,c)):console.timeStamp(o,e,n,ae,ee,c);}}function W4(e,n,o,u){!We||n<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Prewarm",e,n,ae,ee,o)):console.timeStamp("Prewarm",e,n,ae,ee,o));}function B4(e,n,o,u){!We||n<=e||(o=(o&738197653)===o?"tertiary-dark":"primary-dark",u?u.run(console.timeStamp.bind(console,"Suspended",e,n,ae,ee,o)):console.timeStamp("Suspended",e,n,ae,ee,o));}function PD(e,n,o,u,c,f){if(We&&!(n<=e)){o=[];for(var d=0;d<u.length;d++){var m=u[d].value;o.push(["Recoverable Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)]);}e={start:e,end:n,detail:{devtools:{color:"primary-dark",track:ae,trackGroup:ee,tooltipText:c?"Hydration Failed":"Recovered after Error",properties:o}}},f?f.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e);}}function $2(e,n,o,u){!We||n<=e||(u?u.run(console.timeStamp.bind(console,"Errored",e,n,ae,ee,"error")):console.timeStamp("Errored",e,n,ae,ee,"error"));}function ID(e,n,o,u){!We||n<=e||(u?u.run(console.timeStamp.bind(console,o,e,n,ae,ee,"secondary-light")):console.timeStamp(o,e,n,ae,ee,"secondary-light"));}function j4(e,n,o,u,c){if(We&&!(n<=e)){for(var f=[],d=0;d<o.length;d++){var m=o[d].value;f.push(["Error",typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m)]);}e={start:e,end:n,detail:{devtools:{color:"error",track:ae,trackGroup:ee,tooltipText:u?"Remaining Effects Errored":"Commit Errored",properties:f}}},c?c.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e);}}function Vf(e,n,o){!We||n<=e||(console.timeStamp("Animating",e,n,ae,ee,"secondary-dark"));}function Hh(){for(var e=ys,n=cx=ys=0;n<e;){var o=Al[n];Al[n++]=null;var u=Al[n];Al[n++]=null;var c=Al[n];Al[n++]=null;var f=Al[n];if(Al[n++]=null,u!==null&&c!==null){var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c;}f!==0&&q4(o,c,f);}}function Uh(e,n,o,u){Al[ys++]=e,Al[ys++]=n,Al[ys++]=o,Al[ys++]=u,cx|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u);}function L2(e,n,o,u){return Uh(e,n,o,u),Nh(e)}function ia(e,n){return Uh(e,null,null,n),Nh(e)}function q4(e,n,o){e.lanes|=o;var u=e.alternate;u!==null&&(u.lanes|=o);for(var c=false,f=e.return;f!==null;)f.childLanes|=o,u=f.alternate,u!==null&&(u.childLanes|=o),f.tag===22&&(e=f.stateNode,e===null||e._visibility&wd||(c=true)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&n!==null&&(c=31-ha(o),e=f.hiddenUpdates,u=e[c],u===null?e[c]=[n]:u.push(n),n.lane=o|536870912),f):null}function Nh(e){if(i0>VR)throw ac=i0=0,u0=jx=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.");ac>ZR&&(ac=0,u0=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&&o5(e);for(var n=e,o=n.return;o!==null;)n.alternate===null&&(n.flags&4098)!==0&&o5(e),n=o,o=n.return;return n.tag===3?n.stateNode:null}function Dr(e){if(Dl===null)return e;var n=Dl(e);return n===void 0?e:n.current}function Y2(e){if(Dl===null)return e;var n=Dl(e);return n===void 0?e!=null&&typeof e.render=="function"&&(n=Dr(e.render),e.render!==n)?(n={$$typeof:Sd,render:n},e.displayName!==void 0&&(n.displayName=e.displayName),n):e:n.current}function X4(e,n){if(Dl===null)return false;var o=e.elementType;n=n.type;var u=false,c=typeof n=="object"&&n!==null?n.$$typeof:null;switch(e.tag){case 1:typeof n=="function"&&(u=true);break;case 0:(typeof n=="function"||c===al)&&(u=true);break;case 11:(c===Sd||c===al)&&(u=true);break;case 14:case 15:(c===wy||c===al)&&(u=true);break;default:return false}return !!(u&&(e=Dl(o),e!==void 0&&e===Dl(n)))}function G4(e){Dl!==null&&typeof WeakSet=="function"&&(ms===null&&(ms=new WeakSet),ms.add(e));}function Q4(e,n,o){do{var u=e,c=u.alternate,f=u.child,d=u.sibling,m=u.tag;u=u.type;var x=null;switch(m){case 0:case 15:case 1:x=u;break;case 11:x=u.render;}if(Dl===null)throw Error("Expected resolveFamily to be set during hot reload.");var v=false;if(u=false,x!==null&&(x=Dl(x),x!==void 0&&(o.has(x)?u=true:n.has(x)&&(m===1?u=true:v=true))),ms!==null&&(ms.has(e)||c!==null&&ms.has(c))&&(u=true),u&&(e._debugNeedsRemount=true),(u||v)&&(c=ia(e,2),c!==null&&nn(c,e,2)),f===null||u||Q4(f,n,o),d===null)break;e=d;}while(true)}function tC(e,n,o,u){this.tag=e,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=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,F6||typeof Object.preventExtensions!="function"||Object.preventExtensions(this);}function W2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function li(e,n){var o=e.alternate;switch(o===null?(o=b(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o._debugOwner=e._debugOwner,o._debugStack=e._debugStack,o._debugTask=e._debugTask,o._debugHookTypes=e._debugHookTypes,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null,o.actualDuration=-0,o.actualStartTime=-1.1),o.flags=e.flags&65011712,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o.refCleanup=e.refCleanup,o.selfBaseDuration=e.selfBaseDuration,o.treeBaseDuration=e.treeBaseDuration,o._debugInfo=e._debugInfo,o._debugNeedsRemount=e._debugNeedsRemount,o.tag){case 0:case 15:o.type=Dr(e.type);break;case 1:o.type=Dr(e.type);break;case 11:o.type=Y2(e.type);}return o}function V4(e,n){e.flags&=65011714;var o=e.alternate;return o===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=o.childLanes,e.lanes=o.lanes,e.child=o.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=o.memoizedProps,e.memoizedState=o.memoizedState,e.updateQueue=o.updateQueue,e.type=o.type,n=o.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},e.selfBaseDuration=o.selfBaseDuration,e.treeBaseDuration=o.treeBaseDuration),e}function B2(e,n,o,u,c,f){var d=0,m=e;if(typeof e=="function")W2(e)&&(d=1),m=Dr(m);else if(typeof e=="string")d=bt(),d=cO(e,o,d)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case Hg:return n=b(31,o,n,c),n.elementType=Hg,n.lanes=f,n;case as:return Cr(o.children,c,f,n);case Ry:d=8,c|=ra,c|=oo;break;case Cg:return e=o,u=c,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=b(12,e,n,u|Qt),n.elementType=Cg,n.lanes=f,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case Rg:return n=b(13,o,n,c),n.elementType=Rg,n.lanes=f,n;case wg:return n=b(19,o,n,c),n.elementType=wg,n.lanes=f,n;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ho:d=10;break t;case Og:d=9;break t;case Sd:d=11,m=Y2(m);break t;case wy:d=14;break t;case al:d=16,m=null;break t}m="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(m+=" 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?o="null":An(e)?o="array":e!==void 0&&e.$$typeof===wo?(o="<"+(at(e.type)||"Unknown")+" />",m=" Did you accidentally export a JSX literal instead of a component?"):o=typeof e,(d=u?Mt(u):null)&&(m+=`
85
-
86
- Check the render method of \``+d+"`."),d=29,o=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(o+"."+m)),m=null;}return n=b(d,o,n,c),n.elementType=e,n.type=m,n.lanes=f,n._debugOwner=u,n}function $h(e,n,o){return n=B2(e.type,e.key,e.props,e._owner,n,o),n._debugOwner=e._owner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n}function Cr(e,n,o,u){return e=b(7,e,u,n),e.lanes=o,e}function j2(e,n,o){return e=b(6,e,null,n),e.lanes=o,e}function Z4(e){var n=b(18,null,null,Rt);return n.stateNode=e,n}function q2(e,n,o){return n=b(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Fa(e,n){if(typeof e=="object"&&e!==null){var o=sx.get(e);return o!==void 0?o:(n={value:e,source:n,stack:Ye(n)},sx.set(e,n),n)}return {value:e,source:n,stack:Ye(n)}}function oi(e,n){nu(),ps[gs++]=Hd,ps[gs++]=Zy,Zy=e,Hd=n;}function J4(e,n,o){nu(),Cl[Ol++]=yi,Cl[Ol++]=mi,Cl[Ol++]=qr,qr=e;var u=yi;e=mi;var c=32-ha(u)-1;u&=~(1<<c),o+=1;var f=32-ha(n)+c;if(30<f){var d=c-c%5;f=(u&(1<<d)-1).toString(32),u>>=d,c-=d,yi=1<<32-ha(n)+c|o<<c|u,mi=f+e;}else yi=1<<f|o<<c|u,mi=e;}function X2(e){nu(),e.return!==null&&(oi(e,1),J4(e,1,0));}function G2(e){for(;e===Zy;)Zy=ps[--gs],ps[gs]=null,Hd=ps[--gs],ps[gs]=null;for(;e===qr;)qr=Cl[--Ol],Cl[Ol]=null,mi=Cl[--Ol],Cl[Ol]=null,yi=Cl[--Ol],Cl[Ol]=null;}function K4(){return nu(),qr!==null?{id:yi,overflow:mi}:null}function F4(e,n){nu(),Cl[Ol++]=yi,Cl[Ol++]=mi,Cl[Ol++]=qr,yi=n.id,mi=n.overflow,qr=e;}function nu(){le||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.");}function Or(e,n){if(e.return===null){if(il===null)il={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else {if(il.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");il.distanceFromLeaf>n&&(il.distanceFromLeaf=n);}return il}var o=Or(e.return,n+1).children;return 0<o.length&&o[o.length-1].fiber===e?(o=o[o.length-1],o.distanceFromLeaf>n&&(o.distanceFromLeaf=n),o):(n={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},o.push(n),n)}function P4(){le&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.");}function Lh(e,n){Wo||(e=Or(e,0),e.serverProps=null,n!==null&&(n=C5(n),e.serverTail.push(n)));}function au(e){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:false,o="",u=il;throw u!==null&&(il=null,o=C2(u)),Zf(Fa(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`+o),e)),fx}function I4(e){var n=e.stateNode,o=e.type,u=e.memoizedProps;switch(n[Jn]=e,n[ya]=u,fg(o,u),o){case "dialog":ie("cancel",n),ie("close",n);break;case "iframe":case "object":case "embed":ie("load",n);break;case "video":case "audio":for(o=0;o<r0.length;o++)ie(r0[o],n);break;case "source":ie("error",n);break;case "img":case "image":case "link":ie("error",n),ie("load",n);break;case "details":ie("toggle",n);break;case "input":eu("input",u),ie("invalid",n),o4(n,u),i4(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,true);break;case "option":u4(n,u);break;case "select":eu("select",u),ie("invalid",n),c4(n,u);break;case "textarea":eu("textarea",u),ie("invalid",n),s4(n,u),d4(n,u.value,u.defaultValue,u.children);}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||n.textContent===""+o||u.suppressHydrationWarning===true||p5(n.textContent,o)?(u.popover!=null&&(ie("beforetoggle",n),ie("toggle",n)),u.onScroll!=null&&ie("scroll",n),u.onScrollEnd!=null&&ie("scrollend",n),u.onClick!=null&&(n.onclick=ai),n=true):n=false,n||au(e,true);}function tE(e){for(Kn=e.return;Kn;)switch(Kn.tag){case 5:case 31:case 13:Rl=false;return;case 27:case 3:Rl=true;return;default:Kn=Kn.return;}}function Bc(e){if(e!==Kn)return false;if(!le)return tE(e),le=true,false;var n=e.tag,o;if((o=n!==3&&n!==27)&&((o=n===5)&&(o=e.type,o=!(o!=="form"&&o!=="button")||pg(e.type,e.memoizedProps)),o=!o),o&&Be){for(o=Be;o;){var u=Or(e,0),c=C5(o);u.serverTail.push(c),o=c.type==="Suspense"?vg(o):nl(o.nextSibling);}au(e);}if(tE(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.");Be=vg(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.");Be=vg(e);}else n===27?(n=Be,hu(e.type)?(e=tb,tb=null,Be=e):Be=n):Be=Kn?nl(e.stateNode.nextSibling):null;return true}function Rr(){Be=Kn=null,Wo=le=false;}function Q2(){var e=Eu;return e!==null&&(va===null?va=e:va.push.apply(va,e),Eu=null),e}function Zf(e){Eu===null?Eu=[e]:Eu.push(e);}function V2(){var e=il;if(e!==null){il=null;for(var n=C2(e);0<e.children.length;)e=e.children[0];gt(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 Yh(){xs=Jy=null,bs=false;}function lu(e,n,o){rt(dx,n._currentValue,e),n._currentValue=o,rt(hx,n._currentRenderer,e),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==I6&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=I6;}function ii(e,n){e._currentValue=dx.current;var o=hx.current;Lt(hx,n),e._currentRenderer=o,Lt(dx,n);}function Z2(e,n,o){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===o)break;e=e.return;}e!==o&&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 J2(e,n,o,u){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var d=c.child;f=f.firstContext;t:for(;f!==null;){var m=f;f=c;for(var x=0;x<n.length;x++)if(m.context===n[x]){f.lanes|=o,m=f.alternate,m!==null&&(m.lanes|=o),Z2(f.return,o,e),u||(d=null);break t}f=m.next;}}else if(c.tag===18){if(d=c.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|=o,f=d.alternate,f!==null&&(f.lanes|=o),Z2(d,o,e),d=null;}else d=c.child;if(d!==null)d.return=c;else for(d=c;d!==null;){if(d===e){d=null;break}if(c=d.sibling,c!==null){c.return=d.return,d=c;break}d=d.return;}c=d;}}function jc(e,n,o,u){e=null;for(var c=n,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 d=c.alternate;if(d===null)throw Error("Should have a current fiber. This is a bug in React.");if(d=d.memoizedProps,d!==null){var m=c.type;pa(c.pendingProps.value,d.value)||(e!==null?e.push(m):e=[m]);}}else if(c===Hy.current){if(d=c.alternate,d===null)throw Error("Should have a current fiber. This is a bug in React.");d.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(h0):e=[h0]);}c=c.return;}e!==null&&J2(n,e,o,u),n.flags|=262144;}function Wh(e){for(e=e.firstContext;e!==null;){if(!pa(e.context._currentValue,e.memoizedValue))return true;e=e.next;}return false}function wr(e){Jy=e,xs=null,e=e.dependencies,e!==null&&(e.firstContext=null);}function Xe(e){return bs&&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()."),eE(Jy,e)}function Bh(e,n){return Jy===null&&wr(e),eE(e,n)}function eE(e,n){var o=n._currentValue;if(n={context:n,memoizedValue:o,next:null},xs===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().");xs=n,e.dependencies={lanes:0,firstContext:n,_debugThenableState:null},e.flags|=524288;}else xs=xs.next=n;return o}function K2(){return {controller:new UR,data:new Map,refCount:0}}function Hr(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 Jf(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&&NR($R,function(){e.controller.abort();});}function vo(e,n,o){(e&127)!==0?0>Bo&&(Bo=gn(),Nd=Ky(n),yx=n,o!=null&&(mx=P(o)),(de&(Cn|cl))!==Yn&&(an=true,ku=Ud),e=pd(),n=md(),e!==vs||n!==$d?vs=-1.1:n!==null&&(ku=Ud),Gr=e,$d=n):(e&4194048)!==0&&0>wl&&(wl=gn(),Ld=Ky(n),t8=n,o!=null&&(e8=P(o)),0>xi)&&(e=pd(),n=md(),(e!==Tu||n!==Qr)&&(Tu=-1.1),zu=e,Qr=n);}function eC(e){if(0>Bo){Bo=gn(),Nd=e._debugTask!=null?e._debugTask:null,(de&(Cn|cl))!==Yn&&(ku=Ud);var n=pd(),o=md();n!==vs||o!==$d?vs=-1.1:o!==null&&(ku=Ud),Gr=n,$d=o;}0>wl&&(wl=gn(),Ld=e._debugTask!=null?e._debugTask:null,0>xi)&&(e=pd(),n=md(),(e!==Tu||n!==Qr)&&(Tu=-1.1),zu=e,Qr=n);}function ui(){var e=Xr;return Xr=0,e}function jh(e){var n=Xr;return Xr=e,n}function Kf(e){var n=Xr;return Xr+=e,n}function qh(){Dt=Tt=-1.1;}function Pa(){var e=Tt;return Tt=-1.1,e}function Ia(e){0<=e&&(Tt=e);}function So(){var e=Fe;return Fe=-0,e}function Eo(e){0<=e&&(Fe=e);}function Mo(){var e=Ge;return Ge=null,e}function _o(){var e=an;return an=false,e}function F2(e){ga=gn(),0>e.actualStartTime&&(e.actualStartTime=ga);}function P2(e){if(0<=ga){var n=gn()-ga;e.actualDuration+=n,e.selfBaseDuration=n,ga=-1;}}function nE(e){if(0<=ga){var n=gn()-ga;e.actualDuration+=n,ga=-1;}}function ko(){if(0<=ga){var e=gn(),n=e-ga;ga=-1,Xr+=n,Fe+=n,Dt=e;}}function aE(e){Ge===null&&(Ge=[]),Ge.push(e),gi===null&&(gi=[]),gi.push(e);}function zo(){ga=gn(),0>Tt&&(Tt=ga);}function Ff(e){for(var n=e.child;n;)e.actualDuration+=n.actualDuration,n=n.sibling;}function nC(e,n){if(Wd===null){var o=Wd=[];gx=0,Vr=ug(),Ss={status:"pending",value:void 0,then:function(u){o.push(u);}};}return gx++,n.then(lE,lE),n}function lE(){if(--gx===0&&(-1<wl||(xi=-1.1),Wd!==null)){Ss!==null&&(Ss.status="fulfilled");var e=Wd;Wd=null,Vr=0,Ss=null;for(var n=0;n<e.length;n++)(0, e[n])();}}function aC(e,n){var o=[],u={status:"pending",value:null,reason:null,then:function(c){o.push(c);}};return e.then(function(){u.status="fulfilled",u.value=n;for(var c=0;c<o.length;c++)(0, o[c])(n);},function(c){for(u.status="rejected",u.reason=c,c=0;c<o.length;c++)(0, o[c])(void 0);}),u}function I2(){var e=Zr.current;return e!==null?e:De.pooledCache}function Xh(e,n){n===null?rt(Zr,Zr.current,e):rt(Zr,n.pool,e);}function oE(){var e=I2();return e===null?null:{parent:pn._currentValue,pool:e}}function iE(){return {didWarnAboutUncachedPromise:false,thenables:[]}}function uE(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rE(e,n,o){Q.actQueue!==null&&(Q.didUsePromise=true);var u=e.thenables;if(o=u[o],o===void 0?u.push(n):o!==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(ai,ai),n=o),n._debugInfo===void 0){e=performance.now(),u=n.displayName;var c={name:typeof u=="string"?u:"Promise",start:e,end:e,value:n};n._debugInfo=[{awaited:c}],n.status!=="fulfilled"&&n.status!=="rejected"&&(e=function(){c.end=performance.now();},n.then(e,e));}switch(n.status){case "fulfilled":return n.value;case "rejected":throw e=n.reason,sE(e),e;default:if(typeof n.status=="string")n.then(ai,ai);else {if(e=De,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(f){if(n.status==="pending"){var d=n;d.status="fulfilled",d.value=f;}},function(f){if(n.status==="pending"){var d=n;d.status="rejected",d.reason=f;}});}switch(n.status){case "fulfilled":return n.value;case "rejected":throw e=n.reason,sE(e),e}throw Kr=n,Vd=true,Es}}function ou(e){try{return BR(e)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Kr=n,Vd=true,Es):n}}function cE(){if(Kr===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Kr;return Kr=null,Vd=false,e}function sE(e){if(e===Es||e===l1)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 Qn(e){var n=Vt;return e!=null&&(Vt=n===null?e:n.concat(e)),n}function tp(){var e=Vt;if(e!=null){for(var n=e.length-1;0<=n;n--)if(e[n].name!=null){var o=e[n].debugTask;if(o!=null)return o}}return null}function Gh(e,n,o){for(var u=Object.keys(e.props),c=0;c<u.length;c++){var f=u[c];if(f!=="children"&&f!=="key"){n===null&&(n=$h(e,o.mode,0),n._debugInfo=Vt,n.return=o),gt(n,function(d){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",d);},f);break}}}function Qh(e){var n=Zd;return Zd+=1,Ms===null&&(Ms=iE()),rE(Ms,e,n)}function Pf(e,n){n=n.props.ref,e.ref=n!==void 0?n:null;}function fE(e,n){throw n.$$typeof===vO?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 Vh(e,n){var o=tp();o!==null?o.run(fE.bind(null,e,n)):fE(e,n);}function dE(e,n){var o=P(e)||"Component";S8[o]||(S8[o]=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,o,n,o));}function Zh(e,n){var o=tp();o!==null?o.run(dE.bind(null,e,n)):dE(e,n);}function hE(e,n){var o=P(e)||"Component";E8[o]||(E8[o]=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>`,o,n,o));}function Jh(e,n){var o=tp();o!==null?o.run(hE.bind(null,e,n)):hE(e,n);}function yE(e){function n(T,D){if(e){var R=T.deletions;R===null?(T.deletions=[D],T.flags|=16):R.push(D);}}function o(T,D){if(!e)return null;for(;D!==null;)n(T,D),D=D.sibling;return null}function u(T){for(var D=new Map;T!==null;)T.key!==null?D.set(T.key,T):D.set(T.index,T),T=T.sibling;return D}function c(T,D){return T=li(T,D),T.index=0,T.sibling=null,T}function f(T,D,R){return T.index=R,e?(R=T.alternate,R!==null?(R=R.index,R<D?(T.flags|=67108866,D):R):(T.flags|=67108866,D)):(T.flags|=1048576,D)}function d(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function m(T,D,R,V){return D===null||D.tag!==6?(D=j2(R,T.mode,V),D.return=T,D._debugOwner=T,D._debugTask=T._debugTask,D._debugInfo=Vt,D):(D=c(D,R),D.return=T,D._debugInfo=Vt,D)}function x(T,D,R,V){var dt=R.type;return dt===as?(D=w(T,D,R.props.children,V,R.key),Gh(R,D,T),D):D!==null&&(D.elementType===dt||X4(D,R)||typeof dt=="object"&&dt!==null&&dt.$$typeof===al&&ou(dt)===D.type)?(D=c(D,R.props),Pf(D,R),D.return=T,D._debugOwner=R._owner,D._debugInfo=Vt,D):(D=$h(R,T.mode,V),Pf(D,R),D.return=T,D._debugInfo=Vt,D)}function v(T,D,R,V){return D===null||D.tag!==4||D.stateNode.containerInfo!==R.containerInfo||D.stateNode.implementation!==R.implementation?(D=q2(R,T.mode,V),D.return=T,D._debugInfo=Vt,D):(D=c(D,R.children||[]),D.return=T,D._debugInfo=Vt,D)}function w(T,D,R,V,dt){return D===null||D.tag!==7?(D=Cr(R,T.mode,V,dt),D.return=T,D._debugOwner=T,D._debugTask=T._debugTask,D._debugInfo=Vt,D):(D=c(D,R),D.return=T,D._debugInfo=Vt,D)}function H(T,D,R){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=j2(""+D,T.mode,R),D.return=T,D._debugOwner=T,D._debugTask=T._debugTask,D._debugInfo=Vt,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case wo:return R=$h(D,T.mode,R),Pf(R,D),R.return=T,T=Qn(D._debugInfo),R._debugInfo=Vt,Vt=T,R;case ns:return D=q2(D,T.mode,R),D.return=T,D._debugInfo=Vt,D;case al:var V=Qn(D._debugInfo);return D=ou(D),T=H(T,D,R),Vt=V,T}if(An(D)||nt(D))return R=Cr(D,T.mode,R,null),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,T=Qn(D._debugInfo),R._debugInfo=Vt,Vt=T,R;if(typeof D.then=="function")return V=Qn(D._debugInfo),T=H(T,Qh(D),R),Vt=V,T;if(D.$$typeof===Ho)return H(T,Bh(T,D),R);Vh(T,D);}return typeof D=="function"&&Zh(T,D),typeof D=="symbol"&&Jh(T,D),null}function A(T,D,R,V){var dt=D!==null?D.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return dt!==null?null:m(T,D,""+R,V);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case wo:return R.key===dt?(dt=Qn(R._debugInfo),T=x(T,D,R,V),Vt=dt,T):null;case ns:return R.key===dt?v(T,D,R,V):null;case al:return dt=Qn(R._debugInfo),R=ou(R),T=A(T,D,R,V),Vt=dt,T}if(An(R)||nt(R))return dt!==null?null:(dt=Qn(R._debugInfo),T=w(T,D,R,V,null),Vt=dt,T);if(typeof R.then=="function")return dt=Qn(R._debugInfo),T=A(T,D,Qh(R),V),Vt=dt,T;if(R.$$typeof===Ho)return A(T,D,Bh(T,R),V);Vh(T,R);}return typeof R=="function"&&Zh(T,R),typeof R=="symbol"&&Jh(T,R),null}function q(T,D,R,V,dt){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return T=T.get(R)||null,m(D,T,""+V,dt);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case wo:return R=T.get(V.key===null?R:V.key)||null,T=Qn(V._debugInfo),D=x(D,R,V,dt),Vt=T,D;case ns:return T=T.get(V.key===null?R:V.key)||null,v(D,T,V,dt);case al:var Ut=Qn(V._debugInfo);return V=ou(V),D=q(T,D,R,V,dt),Vt=Ut,D}if(An(V)||nt(V))return R=T.get(R)||null,T=Qn(V._debugInfo),D=w(D,R,V,dt,null),Vt=T,D;if(typeof V.then=="function")return Ut=Qn(V._debugInfo),D=q(T,D,R,Qh(V),dt),Vt=Ut,D;if(V.$$typeof===Ho)return q(T,D,R,Bh(D,V),dt);Vh(D,V);}return typeof V=="function"&&Zh(D,V),typeof V=="symbol"&&Jh(D,V),null}function ct(T,D,R,V){if(typeof R!="object"||R===null)return V;switch(R.$$typeof){case wo:case ns:_(T,D,R);var dt=R.key;if(typeof dt!="string")break;if(V===null){V=new Set,V.add(dt);break}if(!V.has(dt)){V.add(dt);break}gt(D,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.",dt);});break;case al:R=ou(R),ct(T,D,R,V);}return V}function yt(T,D,R,V){for(var dt=null,Ut=null,kt=null,Et=D,qt=D=0,je=null;Et!==null&&qt<R.length;qt++){Et.index>qt?(je=Et,Et=null):je=Et.sibling;var sn=A(T,Et,R[qt],V);if(sn===null){Et===null&&(Et=je);break}dt=ct(T,sn,R[qt],dt),e&&Et&&sn.alternate===null&&n(T,Et),D=f(sn,D,qt),kt===null?Ut=sn:kt.sibling=sn,kt=sn,Et=je;}if(qt===R.length)return o(T,Et),le&&oi(T,qt),Ut;if(Et===null){for(;qt<R.length;qt++)Et=H(T,R[qt],V),Et!==null&&(dt=ct(T,Et,R[qt],dt),D=f(Et,D,qt),kt===null?Ut=Et:kt.sibling=Et,kt=Et);return le&&oi(T,qt),Ut}for(Et=u(Et);qt<R.length;qt++)je=q(Et,T,qt,R[qt],V),je!==null&&(dt=ct(T,je,R[qt],dt),e&&je.alternate!==null&&Et.delete(je.key===null?qt:je.key),D=f(je,D,qt),kt===null?Ut=je:kt.sibling=je,kt=je);return e&&Et.forEach(function(Ti){return n(T,Ti)}),le&&oi(T,qt),Ut}function Ne(T,D,R,V){if(R==null)throw Error("An iterable object provided no iterator.");for(var dt=null,Ut=null,kt=D,Et=D=0,qt=null,je=null,sn=R.next();kt!==null&&!sn.done;Et++,sn=R.next()){kt.index>Et?(qt=kt,kt=null):qt=kt.sibling;var Ti=A(T,kt,sn.value,V);if(Ti===null){kt===null&&(kt=qt);break}je=ct(T,Ti,sn.value,je),e&&kt&&Ti.alternate===null&&n(T,kt),D=f(Ti,D,Et),Ut===null?dt=Ti:Ut.sibling=Ti,Ut=Ti,kt=qt;}if(sn.done)return o(T,kt),le&&oi(T,Et),dt;if(kt===null){for(;!sn.done;Et++,sn=R.next())kt=H(T,sn.value,V),kt!==null&&(je=ct(T,kt,sn.value,je),D=f(kt,D,Et),Ut===null?dt=kt:Ut.sibling=kt,Ut=kt);return le&&oi(T,Et),dt}for(kt=u(kt);!sn.done;Et++,sn=R.next())qt=q(kt,T,Et,sn.value,V),qt!==null&&(je=ct(T,qt,sn.value,je),e&&qt.alternate!==null&&kt.delete(qt.key===null?Et:qt.key),D=f(qt,D,Et),Ut===null?dt=qt:Ut.sibling=qt,Ut=qt);return e&&kt.forEach(function(f7){return n(T,f7)}),le&&oi(T,Et),dt}function ue(T,D,R,V){if(typeof R=="object"&&R!==null&&R.type===as&&R.key===null&&(Gh(R,null,T),R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case wo:var dt=Qn(R._debugInfo);t:{for(var Ut=R.key;D!==null;){if(D.key===Ut){if(Ut=R.type,Ut===as){if(D.tag===7){o(T,D.sibling),V=c(D,R.props.children),V.return=T,V._debugOwner=R._owner,V._debugInfo=Vt,Gh(R,V,T),T=V;break t}}else if(D.elementType===Ut||X4(D,R)||typeof Ut=="object"&&Ut!==null&&Ut.$$typeof===al&&ou(Ut)===D.type){o(T,D.sibling),V=c(D,R.props),Pf(V,R),V.return=T,V._debugOwner=R._owner,V._debugInfo=Vt,T=V;break t}o(T,D);break}else n(T,D);D=D.sibling;}R.type===as?(V=Cr(R.props.children,T.mode,V,R.key),V.return=T,V._debugOwner=T,V._debugTask=T._debugTask,V._debugInfo=Vt,Gh(R,V,T),T=V):(V=$h(R,T.mode,V),Pf(V,R),V.return=T,V._debugInfo=Vt,T=V);}return T=d(T),Vt=dt,T;case ns:t:{for(dt=R,R=dt.key;D!==null;){if(D.key===R)if(D.tag===4&&D.stateNode.containerInfo===dt.containerInfo&&D.stateNode.implementation===dt.implementation){o(T,D.sibling),V=c(D,dt.children||[]),V.return=T,T=V;break t}else {o(T,D);break}else n(T,D);D=D.sibling;}V=q2(dt,T.mode,V),V.return=T,T=V;}return d(T);case al:return dt=Qn(R._debugInfo),R=ou(R),T=ue(T,D,R,V),Vt=dt,T}if(An(R))return dt=Qn(R._debugInfo),T=yt(T,D,R,V),Vt=dt,T;if(nt(R)){if(dt=Qn(R._debugInfo),Ut=nt(R),typeof Ut!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var kt=Ut.call(R);return kt===R?(T.tag!==0||Object.prototype.toString.call(T.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(kt)!=="[object Generator]")&&(b8||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."),b8=true):R.entries!==Ut||Sx||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Sx=true),T=Ne(T,D,kt,V),Vt=dt,T}if(typeof R.then=="function")return dt=Qn(R._debugInfo),T=ue(T,D,Qh(R),V),Vt=dt,T;if(R.$$typeof===Ho)return ue(T,D,Bh(T,R),V);Vh(T,R);}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(dt=""+R,D!==null&&D.tag===6?(o(T,D.sibling),V=c(D,dt),V.return=T,T=V):(o(T,D),V=j2(dt,T.mode,V),V.return=T,V._debugOwner=T,V._debugTask=T._debugTask,V._debugInfo=Vt,T=V),d(T)):(typeof R=="function"&&Zh(T,R),typeof R=="symbol"&&Jh(T,R),o(T,D))}return function(T,D,R,V){var dt=Vt;Vt=null;try{Zd=0;var Ut=ue(T,D,R,V);return Ms=null,Ut}catch(je){if(je===Es||je===l1)throw je;var kt=b(29,je,null,T.mode);kt.lanes=V,kt.return=T;var Et=kt._debugInfo=Vt;if(kt._debugOwner=T._debugOwner,kt._debugTask=T._debugTask,Et!=null){for(var qt=Et.length-1;0<=qt;qt--)if(typeof Et[qt].stack=="string"){kt._debugOwner=Et[qt],kt._debugTask=Et[qt].debugTask;break}}return kt}finally{Vt=dt;}}}function mE(e,n){var o=An(e);return e=!o&&typeof nt(e)=="function",o||e?(o=o?"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>",o,n,o),false):true}function ep(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null};}function np(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 iu(e){return {lane:e,tag:_8,payload:null,callback:null,next:null}}function uu(e,n,o){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,Mx===u&&!T8){var c=P(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`,c),T8=true;}return (de&Cn)!==Yn?(c=u.pending,c===null?n.next=n:(n.next=c.next,c.next=n),u.pending=n,n=Nh(e),q4(e,null,o),n):(Uh(e,u,n,o),Nh(e))}function If(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,o|=u,n.lanes=o,Mr(e,o);}}function Kh(e,n){var o=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var c=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var d={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};f===null?c=f=d:f=f.next=d,o=o.next;}while(o!==null);f===null?c=f=n:f=f.next=n;}else c=f=n;o={baseState:u.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:u.shared,callbacks:u.callbacks},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n;}function td(){if(_x){var e=Ss;if(e!==null)throw e}}function ed(e,n,o,u){_x=false;var c=e.updateQueue;Au=false,Mx=c.shared;var f=c.firstBaseUpdate,d=c.lastBaseUpdate,m=c.shared.pending;if(m!==null){c.shared.pending=null;var x=m,v=x.next;x.next=null,d===null?f=v:d.next=v,d=x;var w=e.alternate;w!==null&&(w=w.updateQueue,m=w.lastBaseUpdate,m!==d&&(m===null?w.firstBaseUpdate=v:m.next=v,w.lastBaseUpdate=x));}if(f!==null){var H=c.baseState;d=0,w=v=x=null,m=f;do{var A=m.lane&-536870913,q=A!==m.lane;if(q?(Zt&A)===A:(u&A)===A){A!==0&&A===Vr&&(_x=true),w!==null&&(w=w.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});t:{A=e;var ct=m,yt=n,Ne=o;switch(ct.tag){case k8:if(ct=ct.payload,typeof ct=="function"){bs=true;var ue=ct.call(Ne,H,yt);if(A.mode&ra){He(true);try{ct.call(Ne,H,yt);}finally{He(false);}}bs=false,H=ue;break t}H=ct;break t;case Ex:A.flags=A.flags&-65537|128;case _8:if(ue=ct.payload,typeof ue=="function"){if(bs=true,ct=ue.call(Ne,H,yt),A.mode&ra){He(true);try{ue.call(Ne,H,yt);}finally{He(false);}}bs=false;}else ct=ue;if(ct==null)break t;H=te({},H,ct);break t;case z8:Au=true;}}A=m.callback,A!==null&&(e.flags|=64,q&&(e.flags|=8192),q=c.callbacks,q===null?c.callbacks=[A]:q.push(A));}else q={lane:A,tag:m.tag,payload:m.payload,callback:m.callback,next:null},w===null?(v=w=q,x=H):w=w.next=q,d|=A;if(m=m.next,m===null){if(m=c.shared.pending,m===null)break;q=m,m=q.next,q.next=null,c.lastBaseUpdate=q,c.shared.pending=null;}}while(true);w===null&&(x=H),c.baseState=x,c.firstBaseUpdate=v,c.lastBaseUpdate=w,f===null&&(c.shared.lanes=0),Ou|=d,e.lanes=d,e.memoizedState=H;}Mx=null;}function pE(e,n){if(typeof e!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(n);}function lC(e,n){var o=e.shared.hiddenCallbacks;if(o!==null)for(e.shared.hiddenCallbacks=null,e=0;e<o.length;e++)pE(o[e],n);}function gE(e,n){var o=e.callbacks;if(o!==null)for(e.callbacks=null,e=0;e<o.length;e++)pE(o[e],n);}function xE(e,n){var o=Xo;rt(i1,o,e),rt(_s,n,e),Xo=o|n.baseLanes;}function ap(e){rt(i1,Xo,e),rt(_s,_s.current,e);}function lp(e){Xo=i1.current,Lt(_s,e),Lt(i1,e);}function ru(e){var n=e.alternate;rt(cn,cn.current&ks,e),rt(ul,e,e),Hl===null&&(n===null||_s.current!==null||n.memoizedState!==null)&&(Hl=e);}function op(e){rt(cn,cn.current,e),rt(ul,e,e),Hl===null&&(Hl=e);}function bE(e){e.tag===22?(rt(cn,cn.current,e),rt(ul,e,e),Hl===null&&(Hl=e)):cu(e);}function cu(e){rt(cn,cn.current,e),rt(ul,ul.current,e);}function tl(e){Lt(ul,e),Hl===e&&(Hl=null),Lt(cn,e);}function Fh(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||xg(o)||bg(o)))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 It(){var e=G;Nl===null?Nl=[e]:Nl.push(e);}function et(){var e=G;if(Nl!==null&&(Ei++,Nl[Ei]!==e)){var n=P(Ht);if(!A8.has(n)&&(A8.add(n),Nl!==null)){for(var o="",u=0;u<=Ei;u++){var c=Nl[u],f=u===Ei?e:c;for(c=u+1+". "+c;30>c.length;)c+=" ";c+=f+`
116
- `,o+=c;}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,o);}}}function qc(e){e==null||An(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.",G,typeof e);}function Ph(){var e=P(Ht);C8.has(e)||(C8.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e));}function ln(){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 ip(e,n){if(Fd)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.",G),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`,G,"["+n.join(", ")+"]","["+e.join(", ")+"]");for(var o=0;o<n.length&&o<e.length;o++)if(!pa(e[o],n[o]))return false;return true}function up(e,n,o,u,c,f){vi=f,Ht=n,Nl=e!==null?e._debugHookTypes:null,Ei=-1,Fd=e!==null&&e.type!==n.type,(Object.prototype.toString.call(o)==="[object AsyncFunction]"||Object.prototype.toString.call(o)==="[object AsyncGeneratorFunction]")&&(f=P(Ht),kx.has(f)||(kx.add(f),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.",f===null?"An unknown Component":"<"+f+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,Q.H=e!==null&&e.memoizedState!==null?Tx:Nl!==null?O8:zx,Pr=f=(n.mode&ra)!==Rt;var d=xx(o,u,c);if(Pr=false,Ts&&(d=rp(n,o,u,c)),f){He(true);try{d=rp(n,o,u,c);}finally{He(false);}}return vE(e,n),d}function vE(e,n){n._debugHookTypes=Nl,n.dependencies===null?Si!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:Si}):n.dependencies._debugThenableState=Si,Q.H=Pd;var o=Ae!==null&&Ae.next!==null;if(vi=0,Nl=G=xn=Ae=Ht=null,Ei=-1,e!==null&&(e.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),r1=false,Kd=0,Si=null,o)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||bn||(e=e.dependencies,e!==null&&Wh(e)&&(bn=true)),Vd?(Vd=false,e=true):e=false,e&&(n=P(n)||"Unknown",D8.has(n)||kx.has(n)||(D8.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 rp(e,n,o,u){Ht=e;var c=0;do{if(Ts&&(Si=null),Kd=0,Ts=false,c>=qR)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(c+=1,Fd=false,xn=Ae=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0);}Ei=-1,Q.H=R8,f=xx(n,o,u);}while(Ts);return f}function oC(){var e=Q.H,n=e.useState()[0];return n=typeof n.then=="function"?nd(n):n,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(Ht.flags|=1024),n}function cp(){var e=c1!==0;return c1=0,e}function sp(e,n,o){n.updateQueue=e.updateQueue,n.flags=(n.mode&oo)!==Rt?n.flags&-402655237:n.flags&-2053,e.lanes&=~o;}function fp(e){if(r1){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next;}r1=false;}vi=0,Nl=xn=Ae=Ht=null,Ei=-1,G=null,Ts=false,Kd=c1=0,Si=null;}function da(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xn===null?Ht.memoizedState=xn=e:xn=xn.next=e,xn}function ve(){if(Ae===null){var e=Ht.alternate;e=e!==null?e.memoizedState:null;}else e=Ae.next;var n=xn===null?Ht.memoizedState:xn.next;if(n!==null)xn=n,Ae=e;else {if(e===null)throw Ht.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.");Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},xn===null?Ht.memoizedState=xn=e:xn=xn.next=e;}return xn}function Ih(){return {lastEffect:null,events:null,stores:null,memoCache:null}}function nd(e){var n=Kd;return Kd+=1,Si===null&&(Si=iE()),e=rE(Si,e,n),n=Ht,(xn===null?n.memoizedState:xn.next)===null&&(n=n.alternate,Q.H=n!==null&&n.memoizedState!==null?Tx:zx),e}function su(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return nd(e);if(e.$$typeof===Ho)return Xe(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function Ur(e){var n=null,o=Ht.updateQueue;if(o!==null&&(n=o.memoCache),n==null){var u=Ht.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(c){return c.slice()}),index:0})));}if(n==null&&(n={data:[],index:0}),o===null&&(o=Ih(),Ht.updateQueue=o),o.memoCache=n,o=n.data[n.index],o===void 0||Fd)for(o=n.data[n.index]=Array(e),u=0;u<e;u++)o[u]=SO;else o.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.",o.length,e);return n.index++,o}function eo(e,n){return typeof n=="function"?n(e):n}function dp(e,n,o){var u=da();if(o!==void 0){var c=o(n);if(Pr){He(true);try{o(n);}finally{He(false);}}}else c=n;return u.memoizedState=u.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},u.queue=e,e=e.dispatch=sC.bind(null,Ht,e),[u.memoizedState,e]}function Xc(e){var n=ve();return hp(n,Ae,e)}function hp(e,n,o){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=o;var c=e.baseQueue,f=u.pending;if(f!==null){if(c!==null){var d=c.next;c.next=f.next,f.next=d;}n.baseQueue!==c&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=c=f,u.pending=null;}if(f=e.baseState,c===null)e.memoizedState=f;else {n=c.next;var m=d=null,x=null,v=n,w=false;do{var H=v.lane&-536870913;if(H!==v.lane?(Zt&H)===H:(vi&H)===H){var A=v.revertLane;if(A===0)x!==null&&(x=x.next={lane:0,revertLane:0,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null}),H===Vr&&(w=true);else if((vi&A)===A){v=v.next,A===Vr&&(w=true);continue}else H={lane:0,revertLane:v.revertLane,gesture:null,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},x===null?(m=x=H,d=f):x=x.next=H,Ht.lanes|=A,Ou|=A;H=v.action,Pr&&o(f,H),f=v.hasEagerState?v.eagerState:o(f,H);}else A={lane:H,revertLane:v.revertLane,gesture:v.gesture,action:v.action,hasEagerState:v.hasEagerState,eagerState:v.eagerState,next:null},x===null?(m=x=A,d=f):x=x.next=A,Ht.lanes|=H,Ou|=H;v=v.next;}while(v!==null&&v!==n);if(x===null?d=f:x.next=m,!pa(f,e.memoizedState)&&(bn=true,w&&(o=Ss,o!==null)))throw o;e.memoizedState=f,e.baseState=d,e.baseQueue=x,u.lastRenderedState=f;}return c===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function ad(e){var n=ve(),o=n.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=e;var u=o.dispatch,c=o.pending,f=n.memoizedState;if(c!==null){o.pending=null;var d=c=c.next;do f=e(f,d.action),d=d.next;while(d!==c);pa(f,n.memoizedState)||(bn=true),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),o.lastRenderedState=f;}return [f,u]}function yp(e,n,o){var u=Ht,c=da();if(le){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var f=o();zs||f===o()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),zs=true);}else {if(f=n(),zs||(o=n(),pa(f,o)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zs=true)),De===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Zt&127)!==0||SE(u,n,f);}return c.memoizedState=f,o={value:f,getSnapshot:n},c.queue=o,ay(ME.bind(null,u,o,e),[e]),u.flags|=2048,Qc(Ul|ba,{destroy:void 0},EE.bind(null,u,o,f,n),null),f}function ty(e,n,o){var u=Ht,c=ve(),f=le;if(f){if(o===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");o=o();}else if(o=n(),!zs){var d=n();pa(o,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zs=true);}(d=!pa((Ae||c).memoizedState,o))&&(c.memoizedState=o,bn=true),c=c.queue;var m=ME.bind(null,u,c,e);if(Oa(2048,ba,m,[e]),c.getSnapshot!==n||d||xn!==null&&xn.memoizedState.tag&Ul){if(u.flags|=2048,Qc(Ul|ba,{destroy:void 0},EE.bind(null,u,c,o,n),null),De===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");f||(vi&127)!==0||SE(u,n,o);}return o}function SE(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ht.updateQueue,n===null?(n=Ih(),Ht.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e));}function EE(e,n,o,u){n.value=o,n.getSnapshot=u,_E(n)&&kE(e);}function ME(e,n,o){return o(function(){_E(n)&&(vo(2,"updateSyncExternalStore()",e),kE(e));})}function _E(e){var n=e.getSnapshot;e=e.value;try{var o=n();return !pa(e,o)}catch{return true}}function kE(e){var n=ia(e,2);n!==null&&nn(n,e,2);}function mp(e){var n=da();if(typeof e=="function"){var o=e;if(e=o(),Pr){He(true);try{o();}finally{He(false);}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:e},n}function pp(e){e=mp(e);var n=e.queue,o=XE.bind(null,Ht,n);return n.dispatch=o,[e.memoizedState,o]}function gp(e){var n=da();n.memoizedState=n.baseState=e;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=o,n=Op.bind(null,Ht,true,o),o.dispatch=n,[e,n]}function zE(e,n){var o=ve();return TE(o,Ae,e,n)}function TE(e,n,o,u){return e.baseState=o,hp(e,Ae,typeof u=="function"?u:eo)}function AE(e,n){var o=ve();return Ae!==null?TE(o,Ae,e,n):(o.baseState=e,[e,o.queue.dispatch])}function iC(e,n,o,u,c){if(cy(e))throw Error("Cannot update form state while rendering.");if(e=n.action,e!==null){var f={payload:c,action:e,next:null,isTransition:true,status:"pending",value:null,reason:null,listeners:[],then:function(d){f.listeners.push(d);}};Q.T!==null?o(true):f.isTransition=false,u(f),o=n.pending,o===null?(f.next=n.pending=f,DE(n,f)):(f.next=o.next,n.pending=o.next=f);}}function DE(e,n){var o=n.action,u=n.payload,c=e.state;if(n.isTransition){var f=Q.T,d={};d._updatedFibers=new Set,Q.T=d;try{var m=o(c,u),x=Q.S;x!==null&&x(d,m),CE(e,n,m);}catch(v){xp(e,n,v);}finally{f!==null&&d.types!==null&&(f.types!==null&&f.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."),f.types=d.types),Q.T=f,f===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=o(c,u),CE(e,n,d);}catch(v){xp(e,n,v);}}function CE(e,n,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?(Q.asyncTransitions++,o.then(ry,ry),o.then(function(u){OE(e,n,u);},function(u){return xp(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.")):OE(e,n,o);}function OE(e,n,o){n.status="fulfilled",n.value=o,RE(n),e.state=o,n=e.pending,n!==null&&(o=n.next,o===n?e.pending=null:(o=o.next,n.next=o,DE(e,o)));}function xp(e,n,o){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=o,RE(n),n=n.next;while(n!==u)}e.action=null;}function RE(e){e=e.listeners;for(var n=0;n<e.length;n++)(0, e[n])();}function wE(e,n){return n}function Gc(e,n){if(le){var o=De.formState;if(o!==null){t:{var u=Ht;if(le){if(Be){e:{for(var c=Be,f=Rl;c.nodeType!==8;){if(!f){c=null;break e}if(c=nl(c.nextSibling),c===null){c=null;break e}}f=c.data,c=f===Kx||f===gM?c:null;}if(c){Be=nl(c.nextSibling),u=c.data===Kx;break t}}au(u);}u=false;}u&&(n=o[0]);}}return o=da(),o.memoizedState=o.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wE,lastRenderedState:n},o.queue=u,o=XE.bind(null,Ht,u),u.dispatch=o,u=mp(false),f=Op.bind(null,Ht,false,u.queue),u=da(),c={state:n,dispatch:null,action:e,pending:null},u.queue=c,o=iC.bind(null,Ht,c,f,o),c.dispatch=o,u.memoizedState=e,[n,o,false]}function ey(e){var n=ve();return HE(n,Ae,e)}function HE(e,n,o){if(n=hp(e,n,wE)[0],e=Xc(eo)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=nd(n);}catch(d){throw d===Es?l1:d}else u=n;n=ve();var c=n.queue,f=c.dispatch;return o!==n.memoizedState&&(Ht.flags|=2048,Qc(Ul|ba,{destroy:void 0},uC.bind(null,c,o),null)),[u,f,e]}function uC(e,n){e.action=n;}function ny(e){var n=ve(),o=Ae;if(o!==null)return HE(n,o,e);ve(),n=n.memoizedState,o=ve();var u=o.queue.dispatch;return o.memoizedState=e,[n,u,false]}function Qc(e,n,o,u){return e={tag:e,create:o,deps:u,inst:n,next:null},n=Ht.updateQueue,n===null&&(n=Ih(),Ht.updateQueue=n),o=n.lastEffect,o===null?n.lastEffect=e.next=e:(u=o.next,o.next=e,e.next=u,n.lastEffect=e),e}function bp(e){var n=da();return e={current:e},n.memoizedState=e}function Nr(e,n,o,u){var c=da();Ht.flags|=e,c.memoizedState=Qc(Ul|n,{destroy:void 0},o,u===void 0?null:u);}function Oa(e,n,o,u){var c=ve();u=u===void 0?null:u;var f=c.memoizedState.inst;Ae!==null&&u!==null&&ip(u,Ae.memoizedState.deps)?c.memoizedState=Qc(n,f,o,u):(Ht.flags|=e,c.memoizedState=Qc(Ul|n,f,o,u));}function ay(e,n){(Ht.mode&oo)!==Rt?Nr(276826112,ba,e,n):Nr(8390656,ba,e,n);}function rC(e){Ht.flags|=4;var n=Ht.updateQueue;if(n===null)n=Ih(),Ht.updateQueue=n,n.events=[e];else {var o=n.events;o===null?n.events=[e]:o.push(e);}}function vp(e){var n=da(),o={impl:e};return n.memoizedState=o,function(){if((de&Cn)!==Yn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return o.impl.apply(void 0,arguments)}}function ly(e){var n=ve().memoizedState;return rC({ref:n,nextImpl:e}),function(){if((de&Cn)!==Yn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function Sp(e,n){var o=4194308;return (Ht.mode&oo)!==Rt&&(o|=134217728),Nr(o,rl,e,n)}function UE(e,n){if(typeof n=="function"){e=e();var o=n(e);return function(){typeof o=="function"?o():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 Ep(e,n,o){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"),o=o!=null?o.concat([e]):null;var u=4194308;(Ht.mode&oo)!==Rt&&(u|=134217728),Nr(u,rl,UE.bind(null,n,e),o);}function oy(e,n,o){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"),o=o!=null?o.concat([e]):null,Oa(4,rl,UE.bind(null,n,e),o);}function Mp(e,n){return da().memoizedState=[e,n===void 0?null:n],e}function iy(e,n){var o=ve();n=n===void 0?null:n;var u=o.memoizedState;return n!==null&&ip(n,u[1])?u[0]:(o.memoizedState=[e,n],e)}function _p(e,n){var o=da();n=n===void 0?null:n;var u=e();if(Pr){He(true);try{e();}finally{He(false);}}return o.memoizedState=[u,n],u}function uy(e,n){var o=ve();n=n===void 0?null:n;var u=o.memoizedState;if(n!==null&&ip(n,u[1]))return u[0];if(u=e(),Pr){He(true);try{e();}finally{He(false);}}return o.memoizedState=[u,n],u}function kp(e,n){var o=da();return zp(o,e,n)}function NE(e,n){var o=ve();return LE(o,Ae.memoizedState,e,n)}function $E(e,n){var o=ve();return Ae===null?zp(o,e,n):LE(o,Ae.memoizedState,e,n)}function zp(e,n,o){return o===void 0||(vi&1073741824)!==0&&(Zt&261930)===0?e.memoizedState=n:(e.memoizedState=o,e=Y3(),Ht.lanes|=e,Ou|=e,o)}function LE(e,n,o,u){return pa(o,n)?o:_s.current!==null?(e=zp(e,o,u),pa(e,n)||(bn=true),e):(vi&42)===0||(vi&1073741824)!==0&&(Zt&261930)===0?(bn=true,e.memoizedState=o):(e=Y3(),Ht.lanes|=e,Ou|=e,n)}function ry(){Q.asyncTransitions--;}function YE(e,n,o,u,c){var f=ge.p;ge.p=f!==0&&f<lo?f:lo;var d=Q.T,m={};m._updatedFibers=new Set,Q.T=m,Op(e,false,n,o);try{var x=c(),v=Q.S;if(v!==null&&v(m,x),x!==null&&typeof x=="object"&&typeof x.then=="function"){Q.asyncTransitions++,x.then(ry,ry);var w=aC(x,u);ld(e,n,w,el(e));}else ld(e,n,u,el(e));}catch(H){ld(e,n,{then:function(){},status:"rejected",reason:H},el(e));}finally{ge.p=f,d!==null&&m.types!==null&&(d.types!==null&&d.types!==m.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=m.types),Q.T=d,d===null&&m._updatedFibers&&(e=m._updatedFibers.size,m._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 Tp(e,n,o,u){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var c=WE(e).queue;eC(e),YE(e,c,n,cc,o===null?E:function(){return BE(e),o(u)});}function WE(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:cc,baseState:cc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:cc},next:null};var o={};return n.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:eo,lastRenderedState:o},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function BE(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=WE(e);n.next===null&&(n=e.alternate.memoizedState),ld(e,n.next.queue,{},el(e));}function Ap(){var e=mp(false);return e=YE.bind(null,Ht,e.queue,true,false),da().memoizedState=e,[false,e]}function jE(){var e=Xc(eo)[0],n=ve().memoizedState;return [typeof e=="boolean"?e:nd(e),n]}function qE(){var e=ad(eo)[0],n=ve().memoizedState;return [typeof e=="boolean"?e:nd(e),n]}function $r(){return Xe(h0)}function Dp(){var e=da(),n=De.identifierPrefix;if(le){var o=mi,u=yi;o=(u&~(1<<32-ha(u)-1)).toString(32)+o,n="_"+n+"R_"+o,o=c1++,0<o&&(n+="H"+o.toString(32)),n+="_";}else o=jR++,n="_"+n+"r_"+o.toString(32)+"_";return e.memoizedState=n}function Cp(){return da().memoizedState=cC.bind(null,Ht)}function cC(e,n){for(var o=e.return;o!==null;){switch(o.tag){case 24:case 3:var u=el(o),c=iu(u),f=uu(o,c,u);f!==null&&(vo(u,"refresh()",e),nn(f,o,u),If(f,o,u)),e=K2(),n!=null&&f!==null&&console.error("The seed argument is not enabled outside experimental channels."),c.payload={cache:e};return}o=o.return;}}function sC(e,n,o){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=el(e);var c={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:false,eagerState:null,next:null};cy(e)?GE(n,c):(c=L2(e,n,c,u),c!==null&&(vo(u,"dispatch()",e),nn(c,e,u),QE(c,n,u)));}function XE(e,n,o){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=el(e),ld(e,n,o,u)&&vo(u,"setState()",e);}function ld(e,n,o,u){var c={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:false,eagerState:null,next:null};if(cy(e))GE(n,c);else {var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null)){var d=Q.H;Q.H=uo;try{var m=n.lastRenderedState,x=f(m,o);if(c.hasEagerState=!0,c.eagerState=x,pa(x,m))return Uh(e,n,c,0),De===null&&Hh(),!1}catch{}finally{Q.H=d;}}if(o=L2(e,n,c,u),o!==null)return nn(o,e,u),QE(o,n,u),true}return false}function Op(e,n,o,u){if(Q.T===null&&Vr===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:ug(),gesture:null,action:u,hasEagerState:false,eagerState:null,next:null},cy(e)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.");}else n=L2(e,o,u,2),n!==null&&(vo(2,"setOptimistic()",e),nn(n,e,2));}function cy(e){var n=e.alternate;return e===Ht||n!==null&&n===Ht}function GE(e,n){Ts=r1=true;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n;}function QE(e,n,o){if((o&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,o|=u,n.lanes=o,Mr(e,o);}}function Rp(e){if(e!==null&&typeof e!="function"){var n=String(e);q8.has(n)||(q8.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e));}}function wp(e,n,o,u){var c=e.memoizedState,f=o(u,c);if(e.mode&ra){He(true);try{f=o(u,c);}finally{He(false);}}f===void 0&&(n=at(n)||"Component",Y8.has(n)||(Y8.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),c=f==null?c:te({},c,f),e.memoizedState=c,e.lanes===0&&(e.updateQueue.baseState=c);}function VE(e,n,o,u,c,f,d){var m=e.stateNode;if(typeof m.shouldComponentUpdate=="function"){if(o=m.shouldComponentUpdate(u,f,d),e.mode&ra){He(true);try{o=m.shouldComponentUpdate(u,f,d);}finally{He(false);}}return o===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",at(n)||"Component"),o}return n.prototype&&n.prototype.isPureReactComponent?!Qf(o,u)||!Qf(c,f):true}function ZE(e,n,o,u){var c=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,u),n.state!==c&&(e=P(e)||"Component",H8.has(e)||(H8.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Ax.enqueueReplaceState(n,n.state,null));}function Lr(e,n){var o=n;if("ref"in n){o={};for(var u in n)u!=="ref"&&(o[u]=n[u]);}if(e=e.defaultProps){o===n&&(o=te({},o));for(var c in e)o[c]===void 0&&(o[c]=e[c]);}return o}function JE(e){ox(e),console.warn(`%s
129
-
130
- %s
131
- `,As?"An error occurred in the <"+As+"> 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 KE(e){var n=As?"The above error occurred in the <"+As+"> component.":"The above error occurred in one of your React components.",o="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Dx||"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,o].slice(0),typeof e[0]=="string"?e.splice(0,1,kM+" "+e[0],zM,H1+u+H1,TM):e.splice(0,0,kM,zM,H1+u+H1,TM),e.unshift(console),u=c7.apply(console.error,e),u();}else console.error(`%o
138
-
139
- %s
140
-
141
- %s
142
- `,e,n,o);}function FE(e){ox(e);}function sy(e,n){try{As=n.source?P(n.source):null,Dx=null;var o=n.value;if(Q.actQueue!==null)Q.thrownErrors.push(o);else {var u=e.onUncaughtError;u(o,{componentStack:n.stack});}}catch(c){setTimeout(function(){throw c});}}function PE(e,n,o){try{As=o.source?P(o.source):null,Dx=P(n);var u=e.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:n.tag===1?n.stateNode:null});}catch(c){setTimeout(function(){throw c});}}function Hp(e,n,o){return o=iu(o),o.tag=Ex,o.payload={element:null},o.callback=function(){gt(n.source,sy,e,n);},o}function Up(e){return e=iu(e),e.tag=Ex,e}function Np(e,n,o,u){var c=o.type.getDerivedStateFromError;if(typeof c=="function"){var f=u.value;e.payload=function(){return c(f)},e.callback=function(){G4(o),gt(u.source,PE,n,o,u);};}var d=o.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){G4(o),gt(u.source,PE,n,o,u),typeof c!="function"&&(wu===null?wu=new Set([this]):wu.add(this)),LR(this,u),typeof c=="function"||(o.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.",P(o)||"Unknown");});}function fC(e,n,o,u,c){if(o.flags|=32768,$o&&dd(e,c),u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=o.alternate,n!==null&&jc(n,o,c,true),le&&(Wo=true),o=ul.current,o!==null){switch(o.tag){case 31:case 13:return Hl===null?by():o.alternate===null&&Pe===_i&&(Pe=d1),o.flags&=-257,o.flags|=65536,o.lanes=c,u===o1?o.flags|=16384:(n=o.updateQueue,n===null?o.updateQueue=new Set([u]):n.add(u),ag(e,u,c)),false;case 22:return o.flags|=65536,u===o1?o.flags|=16384:(n=o.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=n):(o=n.retryQueue,o===null?n.retryQueue=new Set([u]):o.add(u)),ag(e,u,c)),false}throw Error("Unexpected Suspense handler tag ("+o.tag+"). This is a bug in React.")}return ag(e,u,c),by(),false}if(le)return Wo=true,n=ul.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=c,u!==fx&&Zf(Fa(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:u}),o))):(u!==fx&&Zf(Fa(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:u}),o)),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,u=Fa(u,o),c=Hp(e.stateNode,u,c),Kh(e,c),Pe!==Du&&(Pe=Ir)),false;var f=Fa(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:u}),o);if(l0===null?l0=[f]:l0.push(f),Pe!==Du&&(Pe=Ir),n===null)return true;u=Fa(u,o),o=n;do{switch(o.tag){case 3:return o.flags|=65536,e=c&-c,o.lanes|=e,e=Hp(o.stateNode,u,e),Kh(o,e),false;case 1:if(n=o.type,f=o.stateNode,(o.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(wu===null||!wu.has(f))))return o.flags|=65536,c&=-c,o.lanes|=c,c=Up(c),Np(c,e,o,u),Kh(o,c),false}o=o.return;}while(o!==null);return false}function Vn(e,n,o,u){n.child=e===null?M8(n,null,o,u):Fr(n,e.child,o,u);}function IE(e,n,o,u,c){o=o.render;var f=n.ref;if("ref"in u){var d={};for(var m in u)m!=="ref"&&(d[m]=u[m]);}else d=u;return wr(n),u=up(e,n,o,d,f,c),m=cp(),e!==null&&!bn?(sp(e,n,c),ri(e,n,c)):(le&&m&&X2(n),n.flags|=1,Vn(e,n,u,c),n.child)}function t3(e,n,o,u,c){if(e===null){var f=o.type;return typeof f=="function"&&!W2(f)&&f.defaultProps===void 0&&o.compare===null?(o=Dr(f),n.tag=15,n.type=o,Lp(n,f),e3(e,n,o,u,c)):(e=B2(o.type,null,u,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,!Xp(e,c)){var d=f.memoizedProps;if(o=o.compare,o=o!==null?o:Qf,o(d,u)&&e.ref===n.ref)return ri(e,n,c)}return n.flags|=1,e=li(f,u),e.ref=n.ref,e.return=n,n.child=e}function e3(e,n,o,u,c){if(e!==null){var f=e.memoizedProps;if(Qf(f,u)&&e.ref===n.ref&&n.type===e.type)if(bn=false,n.pendingProps=u=f,Xp(e,c))(e.flags&131072)!==0&&(bn=true);else return n.lanes=e.lanes,ri(e,n,c)}return $p(e,n,o,u,c)}function n3(e,n,o,u){var c=u.children,f=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:wd,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(f=f!==null?f.baseLanes|o:o,e!==null){for(u=n.child=e.child,c=0;u!==null;)c=c|u.lanes|u.childLanes,u=u.sibling;u=c&~f;}else u=0,n.child=null;return a3(e,n,f,o,u)}if((o&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&Xh(n,f!==null?f.cachePool:null),f!==null?xE(n,f):ap(n),bE(n);else return u=n.lanes=536870912,a3(e,n,f!==null?f.baseLanes|o:o,o,u)}else f!==null?(Xh(n,f.cachePool),xE(n,f),cu(n),n.memoizedState=null):(e!==null&&Xh(n,null),ap(n),cu(n));return Vn(e,n,c,o),n.child}function od(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:wd,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function a3(e,n,o,u,c){var f=I2();return f=f===null?null:{parent:pn._currentValue,pool:f},n.memoizedState={baseLanes:o,cachePool:f},e!==null&&Xh(n,null),ap(n),bE(n),e!==null&&jc(e,n,u,true),n.childLanes=c,null}function fy(e,n){var o=n.hidden;return o!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
143
- - <Activity %s>
144
- + <Activity %s>`,o===true?"hidden":o===false?"hidden={false}":"hidden={...}",o?'mode="hidden"':'mode="visible"'),n=hy({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function l3(e,n,o){return Fr(n,e.child,null,o),e=fy(n,n.pendingProps),e.flags|=2,tl(n),n.memoizedState=null,e}function dC(e,n,o){var u=n.pendingProps,c=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(le){if(u.mode==="hidden")return e=fy(n,u),n.lanes=536870912,od(null,e);if(op(n),(e=Be)?(o=D5(e,Rl),o=o!==null&&o.data===oc?o:null,o!==null&&(u={dehydrated:o,treeContext:K4(),retryLane:536870912,hydrationErrors:null},n.memoizedState=u,u=Z4(o),u.return=n,n.child=u,Kn=n,Be=null)):o=null,o===null)throw Lh(n,e),au(n);return n.lanes=536870912,null}return fy(n,u)}var f=e.memoizedState;if(f!==null){var d=f.dehydrated;if(op(n),c)if(n.flags&256)n.flags&=-257,n=l3(e,n,o);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(P4(),(o&536870912)!==0&&xy(n),bn||jc(e,n,o,false),c=(o&e.childLanes)!==0,bn||c){if(u=De,u!==null&&(d=_r(u,o),d!==0&&d!==f.retryLane))throw f.retryLane=d,ia(e,d),nn(u,e,d),Cx;by(),n=l3(e,n,o);}else e=f.treeContext,Be=nl(d.nextSibling),Kn=n,le=true,Eu=null,Wo=false,il=null,Rl=false,e!==null&&F4(n,e),n=fy(n,u),n.flags|=4096;return n}return f=e.child,u={mode:u.mode,children:u.children},(o&536870912)!==0&&(o&e.lanes)!==0&&xy(n),e=li(f,u),e.ref=n.ref,n.child=e,e.return=n,e}function dy(e,n){var o=n.ref;if(o===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else {if(typeof o!="function"&&typeof o!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(e===null||e.ref!==o)&&(n.flags|=4194816);}}function $p(e,n,o,u,c){if(o.prototype&&typeof o.prototype.render=="function"){var f=at(o)||"Unknown";X8[f]||(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.",f,f),X8[f]=true);}return n.mode&ra&&io.recordLegacyContextWarning(n,null),e===null&&(Lp(n,n.type),o.contextTypes&&(f=at(o)||"Unknown",Q8[f]||(Q8[f]=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)",f)))),wr(n),o=up(e,n,o,u,void 0,c),u=cp(),e!==null&&!bn?(sp(e,n,c),ri(e,n,c)):(le&&u&&X2(n),n.flags|=1,Vn(e,n,o,c),n.child)}function o3(e,n,o,u,c,f){return wr(n),Ei=-1,Fd=e!==null&&e.type!==n.type,n.updateQueue=null,o=rp(n,u,o,c),vE(e,n),u=cp(),e!==null&&!bn?(sp(e,n,f),ri(e,n,f)):(le&&u&&X2(n),n.flags|=1,Vn(e,n,o,f),n.child)}function i3(e,n,o,u,c){switch(h(n)){case false:var f=n.stateNode,d=new n.type(n.memoizedProps,f.context).state;f.updater.enqueueSetState(f,d,null);break;case true:n.flags|=128,n.flags|=65536,f=Error("Simulated error coming from DevTools");var m=c&-c;if(n.lanes|=m,d=De,d===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");m=Up(m),Np(m,d,n,Fa(f,n)),Kh(n,m);}if(wr(n),n.stateNode===null){if(d=Su,f=o.contextType,"contextType"in o&&f!==null&&(f===void 0||f.$$typeof!==Ho)&&!j8.has(o)&&(j8.add(o),m=f===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 f!="object"?" However, it is set to a "+typeof f+".":f.$$typeof===Og?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(f).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",at(o)||"Component",m)),typeof f=="object"&&f!==null&&(d=Xe(f)),f=new o(u,d),n.mode&ra){He(true);try{f=new o(u,d);}finally{He(false);}}if(d=n.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Ax,n.stateNode=f,f._reactInternals=n,f._reactInternalInstance=w8,typeof o.getDerivedStateFromProps=="function"&&d===null&&(d=at(o)||"Component",U8.has(d)||(U8.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,f.state===null?"null":"undefined",d))),typeof o.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"){var x=m=d=null;if(typeof f.componentWillMount=="function"&&f.componentWillMount.__suppressDeprecationWarning!==true?d="componentWillMount":typeof f.UNSAFE_componentWillMount=="function"&&(d="UNSAFE_componentWillMount"),typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps.__suppressDeprecationWarning!==true?m="componentWillReceiveProps":typeof f.UNSAFE_componentWillReceiveProps=="function"&&(m="UNSAFE_componentWillReceiveProps"),typeof f.componentWillUpdate=="function"&&f.componentWillUpdate.__suppressDeprecationWarning!==true?x="componentWillUpdate":typeof f.UNSAFE_componentWillUpdate=="function"&&(x="UNSAFE_componentWillUpdate"),d!==null||m!==null||x!==null){f=at(o)||"Component";var v=typeof o.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";$8.has(f)||($8.add(f),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`,f,v,d!==null?`
150
- `+d:"",m!==null?`
151
- `+m:"",x!==null?`
152
- `+x:""));}}f=n.stateNode,d=at(o)||"Component",f.render||(o.prototype&&typeof o.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)),!f.getInitialState||f.getInitialState.isReactClassApproved||f.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),f.getDefaultProps&&!f.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),f.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",d),o.childContextTypes&&!B8.has(o)&&(B8.add(o),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)),o.contextTypes&&!W8.has(o)&&(W8.add(o),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 f.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),o.prototype&&o.prototype.isPureReactComponent&&typeof f.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.",at(o)||"A pure component"),typeof f.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",d),typeof f.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 f.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",d),typeof f.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",d),m=f.props!==u,f.props!==void 0&&m&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",d),f.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 f.getSnapshotBeforeUpdate!="function"||typeof f.componentDidUpdate=="function"||N8.has(o)||(N8.add(o),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",at(o))),typeof f.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 f.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 o.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",d),(m=f.state)&&(typeof m!="object"||An(m))&&console.error("%s.state: must be set to an object or null",d),typeof f.getChildContext=="function"&&typeof o.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",d),f=n.stateNode,f.props=u,f.state=n.memoizedState,f.refs={},ep(n),d=o.contextType,f.context=typeof d=="object"&&d!==null?Xe(d):Su,f.state===u&&(d=at(o)||"Component",L8.has(d)||(L8.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&ra&&io.recordLegacyContextWarning(n,f),io.recordUnsafeLifecycleWarnings(n,f),f.state=n.memoizedState,d=o.getDerivedStateFromProps,typeof d=="function"&&(wp(n,o,d,u),f.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(d=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),d!==f.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",P(n)||"Component"),Ax.enqueueReplaceState(f,f.state,null)),ed(n,u,f,c),td(),f.state=n.memoizedState),typeof f.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&oo)!==Rt&&(n.flags|=134217728),f=true;}else if(e===null){f=n.stateNode;var w=n.memoizedProps;m=Lr(o,w),f.props=m;var H=f.context;x=o.contextType,d=Su,typeof x=="object"&&x!==null&&(d=Xe(x)),v=o.getDerivedStateFromProps,x=typeof v=="function"||typeof f.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,x||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(w||H!==d)&&ZE(n,f,u,d),Au=false;var A=n.memoizedState;f.state=A,ed(n,u,f,c),td(),H=n.memoizedState,w||A!==H||Au?(typeof v=="function"&&(wp(n,o,v,u),H=n.memoizedState),(m=Au||VE(n,o,m,u,A,H,d))?(x||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"&&(n.flags|=4194308),(n.mode&oo)!==Rt&&(n.flags|=134217728)):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&oo)!==Rt&&(n.flags|=134217728),n.memoizedProps=u,n.memoizedState=H),f.props=u,f.state=H,f.context=d,f=m):(typeof f.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&oo)!==Rt&&(n.flags|=134217728),f=false);}else {f=n.stateNode,np(e,n),d=n.memoizedProps,x=Lr(o,d),f.props=x,v=n.pendingProps,A=f.context,H=o.contextType,m=Su,typeof H=="object"&&H!==null&&(m=Xe(H)),w=o.getDerivedStateFromProps,(H=typeof w=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(d!==v||A!==m)&&ZE(n,f,u,m),Au=false,A=n.memoizedState,f.state=A,ed(n,u,f,c),td();var q=n.memoizedState;d!==v||A!==q||Au||e!==null&&e.dependencies!==null&&Wh(e.dependencies)?(typeof w=="function"&&(wp(n,o,w,u),q=n.memoizedState),(x=Au||VE(n,o,x,u,A,q,m)||e!==null&&e.dependencies!==null&&Wh(e.dependencies))?(H||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(u,q,m),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(u,q,m)),typeof f.componentDidUpdate=="function"&&(n.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=q),f.props=u,f.state=q,f.context=m,f=x):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(n.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&A===e.memoizedState||(n.flags|=1024),f=false);}if(m=f,dy(e,n),d=(n.flags&128)!==0,m||d){if(m=n.stateNode,Hc(n),d&&typeof o.getDerivedStateFromError!="function")o=null,ga=-1;else if(o=c8(m),n.mode&ra){He(true);try{c8(m);}finally{He(false);}}n.flags|=1,e!==null&&d?(n.child=Fr(n,e.child,null,c),n.child=Fr(n,null,o,c)):Vn(e,n,o,c),n.memoizedState=m.state,e=n.child;}else e=ri(e,n,c);return c=n.stateNode,f&&c.props!==u&&(Ds||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",P(n)||"a component"),Ds=true),e}function u3(e,n,o,u){return Rr(),n.flags|=256,Vn(e,n,o,u),n.child}function Lp(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=at(n)||"Unknown",V8[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),V8[e]=true)),typeof n.contextType=="object"&&n.contextType!==null&&(n=at(n)||"Unknown",G8[n]||(console.error("%s: Function components do not support contextType.",n),G8[n]=true));}function Yp(e){return {baseLanes:e,cachePool:oE()}}function Wp(e,n,o){return e=e!==null?e.childLanes&~o:0,n&&(e|=Na),e}function r3(e,n,o){var u,c=n.pendingProps;s(n)&&(n.flags|=128);var f=false,d=(n.flags&128)!==0;if((u=d)||(u=e!==null&&e.memoizedState===null?false:(cn.current&Jd)!==0),u&&(f=true,n.flags&=-129),u=(n.flags&32)!==0,n.flags&=-33,e===null){if(le){if(f?ru(n):cu(n),(e=Be)?(o=D5(e,Rl),o=o!==null&&o.data!==oc?o:null,o!==null&&(u={dehydrated:o,treeContext:K4(),retryLane:536870912,hydrationErrors:null},n.memoizedState=u,u=Z4(o),u.return=n,n.child=u,Kn=n,Be=null)):o=null,o===null)throw Lh(n,e),au(n);return bg(o)?n.lanes=32:n.lanes=536870912,null}var m=c.children;if(c=c.fallback,f){cu(n);var x=n.mode;return m=hy({mode:"hidden",children:m},x),c=Cr(c,x,o,null),m.return=n,c.return=n,m.sibling=c,n.child=m,c=n.child,c.memoizedState=Yp(o),c.childLanes=Wp(e,u,o),n.memoizedState=Ox,od(null,c)}return ru(n),Bp(n,m)}var v=e.memoizedState;if(v!==null){var w=v.dehydrated;if(w!==null){if(d)n.flags&256?(ru(n),n.flags&=-257,n=jp(e,n,o)):n.memoizedState!==null?(cu(n),n.child=e.child,n.flags|=128,n=null):(cu(n),m=c.fallback,x=n.mode,c=hy({mode:"visible",children:c.children},x),m=Cr(m,x,o,null),m.flags|=2,c.return=n,m.return=n,c.sibling=m,n.child=c,Fr(n,e.child,null,o),c=n.child,c.memoizedState=Yp(o),c.childLanes=Wp(e,u,o),n.memoizedState=Ox,n=od(null,c));else if(ru(n),P4(),(o&536870912)!==0&&xy(n),bg(w)){if(u=w.nextSibling&&w.nextSibling.dataset,u){m=u.dgst;var H=u.msg;x=u.stck;var A=u.cstck;}f=H,u=m,c=x,w=A,m=f,x=w,m=Error(m||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),m.stack=c||"",m.digest=u,u=x===void 0?null:x,c={value:m,source:null,stack:u},typeof u=="string"&&sx.set(m,c),Zf(c),n=jp(e,n,o);}else if(bn||jc(e,n,o,false),u=(o&e.childLanes)!==0,bn||u){if(u=De,u!==null&&(c=_r(u,o),c!==0&&c!==v.retryLane))throw v.retryLane=c,ia(e,c),nn(u,e,c),Cx;xg(w)||by(),n=jp(e,n,o);}else xg(w)?(n.flags|=192,n.child=e.child,n=null):(e=v.treeContext,Be=nl(w.nextSibling),Kn=n,le=true,Eu=null,Wo=false,il=null,Rl=false,e!==null&&F4(n,e),n=Bp(n,c.children),n.flags|=4096);return n}}return f?(cu(n),m=c.fallback,x=n.mode,A=e.child,w=A.sibling,c=li(A,{mode:"hidden",children:c.children}),c.subtreeFlags=A.subtreeFlags&65011712,w!==null?m=li(w,m):(m=Cr(m,x,o,null),m.flags|=2),m.return=n,c.return=n,c.sibling=m,n.child=c,od(null,c),c=n.child,m=e.child.memoizedState,m===null?m=Yp(o):(x=m.cachePool,x!==null?(A=pn._currentValue,x=x.parent!==A?{parent:A,pool:A}:x):x=oE(),m={baseLanes:m.baseLanes|o,cachePool:x}),c.memoizedState=m,c.childLanes=Wp(e,u,o),n.memoizedState=Ox,od(e.child,c)):(v!==null&&(o&62914560)===o&&(o&e.lanes)!==0&&xy(n),ru(n),o=e.child,e=o.sibling,o=li(o,{mode:"visible",children:c.children}),o.return=n,o.sibling=null,e!==null&&(u=n.deletions,u===null?(n.deletions=[e],n.flags|=16):u.push(e)),n.child=o,n.memoizedState=null,o)}function Bp(e,n){return n=hy({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function hy(e,n){return e=b(22,e,null,n),e.lanes=0,e}function jp(e,n,o){return Fr(n,e.child,null,o),e=Bp(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function c3(e,n,o){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),Z2(e.return,n,o);}function qp(e,n,o,u,c,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:c,treeForkCount:f}:(d.isBackwards=n,d.rendering=null,d.renderingStartTime=0,d.last=u,d.tail=o,d.tailMode=c,d.treeForkCount=f);}function s3(e,n,o){var u=n.pendingProps,c=u.revealOrder,f=u.tail,d=u.children,m=cn.current;if((u=(m&Jd)!==0)?(m=m&ks|Jd,n.flags|=128):m&=ks,rt(cn,m,n),m=c??"null",c!=="forwards"&&c!=="unstable_legacy-backwards"&&c!=="together"&&c!=="independent"&&!Z8[m])if(Z8[m]=true,c==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(c==="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 c=="string")switch(c.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.',c,c.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.',c,c.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',c);}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',c);m=f??"null",f1[m]||(f==null?(c==="forwards"||c==="backwards"||c==="unstable_legacy-backwards")&&(f1[m]=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".')):f!=="visible"&&f!=="collapsed"&&f!=="hidden"?(f1[m]=true,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',f)):c!=="forwards"&&c!=="backwards"&&c!=="unstable_legacy-backwards"&&(f1[m]=true,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',f)));t:if((c==="forwards"||c==="backwards"||c==="unstable_legacy-backwards")&&d!==void 0&&d!==null&&d!==false)if(An(d)){for(m=0;m<d.length;m++)if(!mE(d[m],m))break t}else if(m=nt(d),typeof m=="function"){if(m=m.call(d))for(var x=m.next(),v=0;!x.done;x=m.next()){if(!mE(x.value,v))break t;v++;}}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?',c);if(Vn(e,n,d,o),le?(nu(),d=Hd):d=0,!u&&e!==null&&(e.flags&128)!==0)t:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&c3(e,o,n);else if(e.tag===19)c3(e,o,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(c){case "forwards":for(o=n.child,c=null;o!==null;)e=o.alternate,e!==null&&Fh(e)===null&&(c=o),o=o.sibling;o=c,o===null?(c=n.child,n.child=null):(c=o.sibling,o.sibling=null),qp(n,false,c,o,f,d);break;case "backwards":case "unstable_legacy-backwards":for(o=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&Fh(e)===null){n.child=c;break}e=c.sibling,c.sibling=o,o=c,c=e;}qp(n,true,o,null,f,d);break;case "together":qp(n,false,null,null,void 0,d);break;default:n.memoizedState=null;}return n.child}function ri(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),ga=-1,Ou|=n.lanes,(o&n.childLanes)===0)if(e!==null){if(jc(e,n,o,false),(o&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,o=li(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=li(e,e.pendingProps),o.return=n;o.sibling=null;}return n.child}function Xp(e,n){return (e.lanes&n)!==0?true:(e=e.dependencies,!!(e!==null&&Wh(e)))}function hC(e,n,o){switch(n.tag){case 3:Z(n,n.stateNode.containerInfo),lu(n,pn,e.memoizedState.cache),Rr();break;case 27:case 5:ne(n);break;case 4:Z(n,n.stateNode.containerInfo);break;case 10:lu(n,n.type,n.memoizedProps.value);break;case 12:(o&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,op(n),null;break;case 13:if(u=n.memoizedState,u!==null)return u.dehydrated!==null?(ru(n),n.flags|=128,null):(o&n.child.childLanes)!==0?r3(e,n,o):(ru(n),e=ri(e,n,o),e!==null?e.sibling:null);ru(n);break;case 19:var c=(e.flags&128)!==0;if(u=(o&n.childLanes)!==0,u||(jc(e,n,o,false),u=(o&n.childLanes)!==0),c){if(u)return s3(e,n,o);n.flags|=128;}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),rt(cn,cn.current,n),u)break;return null;case 22:return n.lanes=0,n3(e,n,o,n.pendingProps);case 24:lu(n,pn,e.memoizedState.cache);}return ri(e,n,o)}function Gp(e,n,o){if(n._debugNeedsRemount&&e!==null){o=B2(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),o._debugStack=n._debugStack,o._debugTask=n._debugTask;var u=n.return;if(u===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,n.alternate=null,o.index=n.index,o.sibling=n.sibling,o.return=n.return,o.ref=n.ref,o._debugInfo=n._debugInfo,n===u.child)u.child=o;else {var c=u.child;if(c===null)throw Error("Expected parent to have a child.");for(;c.sibling!==n;)if(c=c.sibling,c===null)throw Error("Expected to find the previous sibling.");c.sibling=o;}return n=u.deletions,n===null?(u.deletions=[e],u.flags|=16):n.push(e),o.flags|=2,o}if(e!==null)if(e.memoizedProps!==n.pendingProps||n.type!==e.type)bn=true;else {if(!Xp(e,o)&&(n.flags&128)===0)return bn=false,hC(e,n,o);bn=(e.flags&131072)!==0;}else bn=false,(u=le)&&(nu(),u=(n.flags&1048576)!==0),u&&(u=n.index,nu(),J4(n,Hd,u));switch(n.lanes=0,n.tag){case 16:t:if(u=n.pendingProps,e=ou(n.elementType),n.type=e,typeof e=="function")W2(e)?(u=Lr(e,u),n.tag=1,n.type=e=Dr(e),n=i3(null,n,e,u,o)):(n.tag=0,Lp(n,e),n.type=e=Dr(e),n=$p(null,n,e,u,o));else {if(e!=null){if(c=e.$$typeof,c===Sd){n.tag=11,n.type=e=Y2(e),n=IE(null,n,e,u,o);break t}else if(c===wy){n.tag=14,n=t3(null,n,e,u,o);break t}}throw n="",e!==null&&typeof e=="object"&&e.$$typeof===al&&(n=" Did you wrap a component in React.lazy() more than once?"),o=at(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+o+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return $p(e,n,n.type,n.pendingProps,o);case 1:return u=n.type,c=Lr(u,n.pendingProps),i3(e,n,u,c,o);case 3:t:{if(Z(n,n.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");u=n.pendingProps;var f=n.memoizedState;c=f.element,np(e,n),ed(n,u,null,o);var d=n.memoizedState;if(u=d.cache,lu(n,pn,u),u!==f.cache&&J2(n,[pn],o,true),td(),u=d.element,f.isDehydrated)if(f={element:u,isDehydrated:false,cache:d.cache},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){n=u3(e,n,u,o);break t}else if(u!==c){c=Fa(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),Zf(c),n=u3(e,n,u,o);break t}else for(e=n.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Be=nl(e.firstChild),Kn=n,le=true,Eu=null,Wo=false,il=null,Rl=true,o=M8(n,null,u,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else {if(Rr(),u===c){n=ri(e,n,o);break t}Vn(e,n,u,o);}n=n.child;}return n;case 26:return dy(e,n),e===null?(o=U5(n.type,null,n.pendingProps,null))?n.memoizedState=o:le||(o=n.type,e=n.pendingProps,u=pt(mu.current),u=My(u).createElement(o),u[Jn]=n,u[ya]=e,Zn(u,o,e),zt(u),n.stateNode=u):n.memoizedState=U5(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return ne(n),e===null&&le&&(u=pt(mu.current),c=bt(),u=n.stateNode=w5(n.type,n.pendingProps,u,c,false),Wo||(c=S5(u,n.type,n.pendingProps,c),c!==null&&(Or(n,0).serverProps=c)),Kn=n,Rl=true,c=Be,hu(n.type)?(tb=c,Be=nl(u.firstChild)):Be=c),Vn(e,n,n.pendingProps.children,o),dy(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&le&&(f=bt(),u=O2(n.type,f.ancestorInfo),c=Be,(d=!c)||(d=eO(c,n.type,n.pendingProps,Rl),d!==null?(n.stateNode=d,Wo||(f=S5(d,n.type,n.pendingProps,f),f!==null&&(Or(n,0).serverProps=f)),Kn=n,Be=nl(d.firstChild),Rl=false,f=true):f=false,d=!f),d&&(u&&Lh(n,c),au(n))),ne(n),c=n.type,f=n.pendingProps,d=e!==null?e.memoizedProps:null,u=f.children,pg(c,f)?u=null:d!==null&&pg(c,d)&&(n.flags|=32),n.memoizedState!==null&&(c=up(e,n,oC,null,null,o),h0._currentValue=c),dy(e,n),Vn(e,n,u,o),n.child;case 6:return e===null&&le&&(o=n.pendingProps,e=bt(),u=e.ancestorInfo.current,o=u!=null?Ah(o,u.tag,e.ancestorInfo.implicitRootScope):true,e=Be,(u=!e)||(u=nO(e,n.pendingProps,Rl),u!==null?(n.stateNode=u,Kn=n,Be=null,u=true):u=false,u=!u),u&&(o&&Lh(n,e),au(n))),null;case 13:return r3(e,n,o);case 4:return Z(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Fr(n,null,u,o):Vn(e,n,u,o),n.child;case 11:return IE(e,n,n.type,n.pendingProps,o);case 7:return Vn(e,n,n.pendingProps,o),n.child;case 8:return Vn(e,n,n.pendingProps.children,o),n.child;case 12:return n.flags|=4,n.flags|=2048,u=n.stateNode,u.effectDuration=-0,u.passiveEffectDuration=-0,Vn(e,n,n.pendingProps.children,o),n.child;case 10:return u=n.type,c=n.pendingProps,f=c.value,"value"in c||J8||(J8=true,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),lu(n,u,f),Vn(e,n,c.children,o),n.child;case 9:return c=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."),wr(n),c=Xe(c),u=xx(u,c,void 0),n.flags|=1,Vn(e,n,u,o),n.child;case 14:return t3(e,n,n.type,n.pendingProps,o);case 15:return e3(e,n,n.type,n.pendingProps,o);case 19:return s3(e,n,o);case 31:return dC(e,n,o);case 22:return n3(e,n,o,n.pendingProps);case 24:return wr(n),u=Xe(pn),e===null?(c=I2(),c===null&&(c=De,f=K2(),c.pooledCache=f,Hr(f),f!==null&&(c.pooledCacheLanes|=o),c=f),n.memoizedState={parent:u,cache:c},ep(n),lu(n,pn,c)):((e.lanes&o)!==0&&(np(e,n),ed(n,null,null,o),td()),c=e.memoizedState,f=n.memoizedState,c.parent!==u?(c={parent:u,cache:u},n.memoizedState=c,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=c),lu(n,pn,u)):(u=f.cache,lu(n,pn,u),u!==c.cache&&J2(n,[pn],o,true))),Vn(e,n,n.pendingProps.children,o),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 ci(e){e.flags|=4;}function Qp(e,n,o,u,c){if((n=(e.mode&HR)!==Rt)&&(n=false),n){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(q3())e.flags|=8192;else throw Kr=o1,vx}else e.flags&=-16777217;}function f3(e,n){if(n.type!=="stylesheet"||(n.state.loading&$l)!==rc)e.flags&=-16777217;else if(e.flags|=16777216,!W5(n))if(q3())e.flags|=8192;else throw Kr=o1,vx}function yy(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Nc():536870912,e.lanes|=n,nc|=n);}function id(e,n){if(!le)switch(e.tailMode){case "hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case "collapsed":o=e.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null;}}function Ue(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,u=0;if(n)if((e.mode&Qt)!==Rt){for(var c=e.selfBaseDuration,f=e.child;f!==null;)o|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,c+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=c;}else for(c=e.child;c!==null;)o|=c.lanes|c.childLanes,u|=c.subtreeFlags&65011712,u|=c.flags&65011712,c.return=e,c=c.sibling;else if((e.mode&Qt)!==Rt){c=e.actualDuration,f=e.selfBaseDuration;for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,c+=d.actualDuration,f+=d.treeBaseDuration,d=d.sibling;e.actualDuration=c,e.treeBaseDuration=f;}else for(c=e.child;c!==null;)o|=c.lanes|c.childLanes,u|=c.subtreeFlags,u|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=u,e.childLanes=o,n}function yC(e,n,o){var u=n.pendingProps;switch(G2(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(n),null;case 1:return Ue(n),null;case 3:return o=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),ii(pn,n),ht(n),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(e===null||e.child===null)&&(Bc(n)?(V2(),ci(n)):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Q2())),Ue(n),null;case 26:var c=n.type,f=n.memoizedState;return e===null?(ci(n),f!==null?(Ue(n),f3(n,f)):(Ue(n),Qp(n,c,null,u,o))):f?f!==e.memoizedState?(ci(n),Ue(n),f3(n,f)):(Ue(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&ci(n),Ue(n),Qp(n,c,e,u,o)),null;case 27:if(ye(n),o=pt(mu.current),c=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&ci(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 Ue(n),null}e=bt(),Bc(n)?I4(n):(e=w5(c,u,o,e,true),n.stateNode=e,ci(n));}return Ue(n),null;case 5:if(ye(n),c=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&ci(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 Ue(n),null}var d=bt();if(Bc(n))I4(n);else {switch(f=pt(mu.current),O2(c,d.ancestorInfo),d=d.context,f=My(f),d){case $s:f=f.createElementNS(us,c);break;case O1:f=f.createElementNS(Wy,c);break;default:switch(c){case "svg":f=f.createElementNS(us,c);break;case "math":f=f.createElementNS(Wy,c);break;case "script":f=f.createElement("div"),f.innerHTML="<script></script>",f=f.removeChild(f.firstChild);break;case "select":f=typeof u.is=="string"?f.createElement("select",{is:u.is}):f.createElement("select"),u.multiple?f.multiple=true:u.size&&(f.size=u.size);break;default:f=typeof u.is=="string"?f.createElement(c,{is:u.is}):f.createElement(c),c.indexOf("-")===-1&&(c!==c.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",c),Object.prototype.toString.call(f)!=="[object HTMLUnknownElement]"||ao.call(bM,c)||(bM[c]=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.",c)));}}f[Jn]=n,f[ya]=u;t:for(d=n.child;d!==null;){if(d.tag===5||d.tag===6)f.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=f;t:switch(Zn(f,c,u),c){case "button":case "input":case "select":case "textarea":u=!!u.autoFocus;break t;case "img":u=true;break t;default:u=false;}u&&ci(n);}}return Ue(n),Qp(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,o),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&ci(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=pt(mu.current),o=bt(),Bc(n)){if(e=n.stateNode,o=n.memoizedProps,c=!Wo,u=null,f=Kn,f!==null)switch(f.tag){case 3:c&&(c=O5(e,o,u),c!==null&&(Or(n,0).serverProps=c));break;case 27:case 5:u=f.memoizedProps,c&&(c=O5(e,o,u),c!==null&&(Or(n,0).serverProps=c));}e[Jn]=n,e=!!(e.nodeValue===o||u!==null&&u.suppressHydrationWarning===true||p5(e.nodeValue,o)),e||au(n,true);}else c=o.ancestorInfo.current,c!=null&&Ah(u,c.tag,o.ancestorInfo.implicitRootScope),e=My(e).createTextNode(u),e[Jn]=n,n.stateNode=e;}return Ue(n),null;case 31:if(o=n.memoizedState,e===null||e.memoizedState!==null){if(u=Bc(n),o!==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[Jn]=n,Ue(n),(n.mode&Qt)!==Rt&&o!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration));}else V2(),Rr(),(n.flags&128)===0&&(o=n.memoizedState=null),n.flags|=4,Ue(n),(n.mode&Qt)!==Rt&&o!==null&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration));e=false;}else o=Q2(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),e=true;if(!e)return n.flags&256?(tl(n),n):(tl(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ue(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=u,f=Bc(n),c!==null&&c.dehydrated!==null){if(e===null){if(!f)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");f[Jn]=n,Ue(n),(n.mode&Qt)!==Rt&&c!==null&&(c=n.child,c!==null&&(n.treeBaseDuration-=c.treeBaseDuration));}else V2(),Rr(),(n.flags&128)===0&&(c=n.memoizedState=null),n.flags|=4,Ue(n),(n.mode&Qt)!==Rt&&c!==null&&(c=n.child,c!==null&&(n.treeBaseDuration-=c.treeBaseDuration));c=false;}else c=Q2(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=true;if(!c)return n.flags&256?(tl(n),n):(tl(n),null)}return tl(n),(n.flags&128)!==0?(n.lanes=o,(n.mode&Qt)!==Rt&&Ff(n),n):(o=u!==null,e=e!==null&&e.memoizedState!==null,o&&(u=n.child,c=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(c=u.alternate.memoizedState.cachePool.pool),f=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(f=u.memoizedState.cachePool.pool),f!==c&&(u.flags|=2048)),o!==e&&o&&(n.child.flags|=8192),yy(n,n.updateQueue),Ue(n),(n.mode&Qt)!==Rt&&o&&(e=n.child,e!==null&&(n.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return ht(n),e===null&&cg(n.stateNode.containerInfo),Ue(n),null;case 10:return ii(n.type,n),Ue(n),null;case 19:if(Lt(cn,n),u=n.memoizedState,u===null)return Ue(n),null;if(c=(n.flags&128)!==0,f=u.rendering,f===null)if(c)id(u,false);else {if(Pe!==_i||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=Fh(e),f!==null){for(n.flags|=128,id(u,false),e=f.updateQueue,n.updateQueue=e,yy(n,e),n.subtreeFlags=0,e=o,o=n.child;o!==null;)V4(o,e),o=o.sibling;return rt(cn,cn.current&ks|Jd,n),le&&oi(n,u.treeForkCount),n.child}e=e.sibling;}u.tail!==null&&Nn()>x1&&(n.flags|=128,c=true,id(u,false),n.lanes=4194304);}else {if(!c)if(e=Fh(f),e!==null){if(n.flags|=128,c=true,e=e.updateQueue,n.updateQueue=e,yy(n,e),id(u,true),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!le)return Ue(n),null}else 2*Nn()-u.renderingStartTime>x1&&o!==536870912&&(n.flags|=128,c=true,id(u,false),n.lanes=4194304);u.isBackwards?(f.sibling=n.child,n.child=f):(e=u.last,e!==null?e.sibling=f:n.child=f,u.last=f);}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=Nn(),e.sibling=null,o=cn.current,o=c?o&ks|Jd:o&ks,rt(cn,o,n),le&&oi(n,u.treeForkCount),e):(Ue(n),null);case 22:case 23:return tl(n),lp(n),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(o&536870912)!==0&&(n.flags&128)===0&&(Ue(n),n.subtreeFlags&6&&(n.flags|=8192)):Ue(n),o=n.updateQueue,o!==null&&yy(n,o.retryQueue),o=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==o&&(n.flags|=2048),e!==null&&Lt(Zr,n),null;case 24:return o=null,e!==null&&(o=e.memoizedState.cache),n.memoizedState.cache!==o&&(n.flags|=2048),ii(pn,n),Ue(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 mC(e,n){switch(G2(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Qt)!==Rt&&Ff(n),n):null;case 3:return ii(pn,n),ht(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(tl(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Rr();}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Qt)!==Rt&&Ff(n),n):null;case 13:if(tl(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.");Rr();}return e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Qt)!==Rt&&Ff(n),n):null;case 19:return Lt(cn,n),null;case 4:return ht(n),null;case 10:return ii(n.type,n),null;case 22:case 23:return tl(n),lp(n),e!==null&&Lt(Zr,n),e=n.flags,e&65536?(n.flags=e&-65537|128,(n.mode&Qt)!==Rt&&Ff(n),n):null;case 24:return ii(pn,n),null;case 25:return null;default:return null}}function d3(e,n){switch(G2(n),n.tag){case 3:ii(pn,n),ht(n);break;case 26:case 27:case 5:ye(n);break;case 4:ht(n);break;case 31:n.memoizedState!==null&&tl(n);break;case 13:tl(n);break;case 19:Lt(cn,n);break;case 10:ii(n.type,n);break;case 22:case 23:tl(n),lp(n),e!==null&&Lt(Zr,n);break;case 24:ii(pn,n);}}function To(e){return (e.mode&Qt)!==Rt}function h3(e,n){To(e)?(zo(),ud(n,e),ko()):ud(n,e);}function Vp(e,n,o){To(e)?(zo(),Vc(o,e,n),ko()):Vc(o,e,n);}function ud(e,n){try{var o=n.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var c=u.next;o=c;do{if((o.tag&e)===e&&(u=void 0,(e&xa)!==u1&&(Hs=!0),u=gt(n,YR,o),(e&xa)!==u1&&(Hs=!1),u!==void 0&&typeof u!="function")){var f=void 0;f=(o.tag&rl)!==0?"useLayoutEffect":(o.tag&xa)!==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 `+f+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
156
-
157
- `+f+`(() => {
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,gt(n,function(m,x){console.error("%s must not return anything besides a function, which is used for clean-up.%s",m,x);},f,d);}o=o.next;}while(o!==c)}}catch(m){pe(n,n.return,m);}}function Vc(e,n,o){try{var u=n.updateQueue,c=u!==null?u.lastEffect:null;if(c!==null){var f=c.next;u=f;do{if((u.tag&e)===e){var d=u.inst,m=d.destroy;m!==void 0&&(d.destroy=void 0,(e&xa)!==u1&&(Hs=!0),c=n,gt(c,WR,c,o,m),(e&xa)!==u1&&(Hs=!1));}u=u.next;}while(u!==f)}}catch(x){pe(n,n.return,x);}}function y3(e,n){To(e)?(zo(),ud(n,e),ko()):ud(n,e);}function Zp(e,n,o){To(e)?(zo(),Vc(o,e,n),ko()):Vc(o,e,n);}function m3(e){var n=e.updateQueue;if(n!==null){var o=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ds||(o.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.",P(e)||"instance"),o.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.",P(e)||"instance"));try{gt(e,gE,n,o);}catch(u){pe(e,e.return,u);}}}function pC(e,n,o){return e.getSnapshotBeforeUpdate(n,o)}function gC(e,n){var o=n.memoizedProps,u=n.memoizedState;n=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ds||(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.",P(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.",P(e)||"instance"));try{var c=Lr(e.type,o),f=gt(e,pC,n,c,u);o=K8,f!==void 0||o.has(e.type)||(o.add(e.type),gt(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",P(e));})),n.__reactInternalSnapshotBeforeUpdate=f;}catch(d){pe(e,e.return,d);}}function p3(e,n,o){o.props=Lr(e.type,e.memoizedProps),o.state=e.memoizedState,To(e)?(zo(),gt(e,m8,e,n,o),ko()):gt(e,m8,e,n,o);}function xC(e){var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode;}if(typeof n=="function")if(To(e))try{zo(),e.refCleanup=n(o);}finally{ko();}else e.refCleanup=n(o);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().",P(e)),n.current=o;}}function rd(e,n){try{gt(e,xC,e);}catch(o){pe(e,n,o);}}function Ao(e,n){var o=e.ref,u=e.refCleanup;if(o!==null)if(typeof u=="function")try{if(To(e))try{zo(),gt(e,u);}finally{ko(e);}else gt(e,u);}catch(c){pe(e,n,c);}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null);}else if(typeof o=="function")try{if(To(e))try{zo(),gt(e,o,null);}finally{ko(e);}else gt(e,o,null);}catch(c){pe(e,n,c);}else o.current=null;}function g3(e,n,o,u){var c=e.memoizedProps,f=c.id,d=c.onCommit;c=c.onRender,n=n===null?"mount":"update",e1&&(n="nested-update"),typeof c=="function"&&c(f,n,e.actualDuration,e.treeBaseDuration,e.actualStartTime,o),typeof d=="function"&&d(f,n,u,o);}function bC(e,n,o,u){var c=e.memoizedProps;e=c.id,c=c.onPostCommit,n=n===null?"mount":"update",e1&&(n="nested-update"),typeof c=="function"&&c(e,n,u,o);}function x3(e){var n=e.type,o=e.memoizedProps,u=e.stateNode;try{gt(e,qC,u,n,o,e);}catch(c){pe(e,e.return,c);}}function Jp(e,n,o){try{gt(e,GC,e.stateNode,e.type,o,n,e);}catch(u){pe(e,e.return,u);}}function b3(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hu(e.type)||e.tag===4}function Kp(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||b3(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&&hu(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 Fp(e,n,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(z5(o),(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(e,n)):(z5(o),n=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,n.appendChild(e),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=ai));else if(u!==4&&(u===27&&hu(e.type)&&(o=e.stateNode,n=null),e=e.child,e!==null))for(Fp(e,n,o),e=e.sibling;e!==null;)Fp(e,n,o),e=e.sibling;}function my(e,n,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(u!==4&&(u===27&&hu(e.type)&&(o=e.stateNode),e=e.child,e!==null))for(my(e,n,o),e=e.sibling;e!==null;)my(e,n,o),e=e.sibling;}function vC(e){for(var n,o=e.return;o!==null;){if(b3(o)){n=o;break}o=o.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,o=Kp(e),my(e,o,n);break;case 5:o=n.stateNode,n.flags&32&&(k5(o),n.flags&=-33),n=Kp(e),my(e,n,o);break;case 3:case 4:n=n.stateNode.containerInfo,o=Kp(e),Fp(e,o,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function v3(e){var n=e.stateNode,o=e.memoizedProps;try{gt(e,uO,e.type,o,n,e);}catch(u){pe(e,e.return,u);}}function S3(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 SC(e,n){if(e=e.containerInfo,Fx=U1,e=$4(e),H2(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else t:{o=(o=e.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var c=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{o.nodeType,f.nodeType;}catch{o=null;break t}var d=0,m=-1,x=-1,v=0,w=0,H=e,A=null;e:for(;;){for(var q;H!==o||c!==0&&H.nodeType!==3||(m=d+c),H!==f||u!==0&&H.nodeType!==3||(x=d+u),H.nodeType===3&&(d+=H.nodeValue.length),(q=H.firstChild)!==null;)A=H,H=q;for(;;){if(H===e)break e;if(A===o&&++v===c&&(m=d),A===f&&++w===u&&(x=d),(q=H.nextSibling)!==null)break;H=A,A=H.parentNode;}H=q;}o=m===-1||x===-1?null:{start:m,end:x};}else o=null;}o=o||{start:0,end:0};}else o=null;for(Px={focusedElem:e,selectionRange:o},U1=false,Ln=n;Ln!==null;)if(n=Ln,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Ln=e;else for(;Ln!==null;){switch(e=n=Ln,o=e.alternate,c=e.flags,e.tag){case 0:if((c&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(o=0;o<e.length;o++)c=e[o],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:(c&1024)!==0&&o!==null&&gC(e,o);break;case 3:if((c&1024)!==0){if(e=e.stateNode.containerInfo,o=e.nodeType,o===9)gg(e);else if(o===1)switch(e.nodeName){case "HEAD":case "HTML":case "BODY":gg(e);break;default:e.textContent="";}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&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,Ln=e;break}Ln=n.return;}}function E3(e,n,o){var u=Pa(),c=So(),f=Mo(),d=_o(),m=o.flags;switch(o.tag){case 0:case 11:case 15:Do(e,o),m&4&&h3(o,rl|Ul);break;case 1:if(Do(e,o),m&4)if(e=o.stateNode,n===null)o.type.defaultProps||"ref"in o.memoizedProps||Ds||(e.props!==o.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.",P(o)||"instance"),e.state!==o.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.",P(o)||"instance")),To(o)?(zo(),gt(o,bx,o,e),ko()):gt(o,bx,o,e);else {var x=Lr(o.type,n.memoizedProps);n=n.memoizedState,o.type.defaultProps||"ref"in o.memoizedProps||Ds||(e.props!==o.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.",P(o)||"instance"),e.state!==o.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.",P(o)||"instance")),To(o)?(zo(),gt(o,d8,o,e,x,n,e.__reactInternalSnapshotBeforeUpdate),ko()):gt(o,d8,o,e,x,n,e.__reactInternalSnapshotBeforeUpdate);}m&64&&m3(o),m&512&&rd(o,o.return);break;case 3:if(n=ui(),Do(e,o),m&64&&(m=o.updateQueue,m!==null)){if(x=null,o.child!==null)switch(o.child.tag){case 27:case 5:x=o.child.stateNode;break;case 1:x=o.child.stateNode;}try{gt(o,gE,m,x);}catch(w){pe(o,o.return,w);}}e.effectDuration+=jh(n);break;case 27:n===null&&m&4&&v3(o);case 26:case 5:if(Do(e,o),n===null){if(m&4)x3(o);else if(m&64){e=o.type,n=o.memoizedProps,x=o.stateNode;try{gt(o,XC,x,e,n,o);}catch(w){pe(o,o.return,w);}}}m&512&&rd(o,o.return);break;case 12:if(m&4){m=ui(),Do(e,o),e=o.stateNode,e.effectDuration+=Kf(m);try{gt(o,g3,o,n,Mu,e.effectDuration);}catch(w){pe(o,o.return,w);}}else Do(e,o);break;case 31:Do(e,o),m&4&&k3(e,o);break;case 13:Do(e,o),m&4&&z3(e,o),m&64&&(e=o.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(m=CC.bind(null,o),aO(e,m))));break;case 22:if(m=o.memoizedState!==null||Mi,!m){n=n!==null&&n.memoizedState!==null||vn,x=Mi;var v=vn;Mi=m,(vn=n)&&!v?(Co(e,o,(o.subtreeFlags&8772)!==0),(o.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&.05<Dt-Tt&&Rh(o,Tt,Dt)):Do(e,o),Mi=x,vn=v;}break;case 30:break;default:Do(e,o);}(o.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&((an||.05<Fe)&&bo(o,Tt,Dt,Fe,Ge),o.alternate===null&&o.return!==null&&o.return.alternate!==null&&.05<Dt-Tt&&(S3(o.return.alternate,o.return)||xo(o,Tt,Dt,"Mount"))),Ia(u),Eo(c),Ge=f,an=d;}function M3(e){var n=e.alternate;n!==null&&(e.alternate=null,M3(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&ft(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 si(e,n,o){for(o=o.child;o!==null;)_3(e,n,o),o=o.sibling;}function _3(e,n,o){if(ua&&typeof ua.onCommitFiberUnmount=="function")try{ua.onCommitFiberUnmount(os,o);}catch(v){No||(No=true,console.error("React instrumentation encountered an error: %o",v));}var u=Pa(),c=So(),f=Mo(),d=_o();switch(o.tag){case 26:vn||Ao(o,n),si(e,n,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(e=o.stateNode,e.parentNode.removeChild(e));break;case 27:vn||Ao(o,n);var m=Sn,x=Ha;hu(o.type)&&(Sn=o.stateNode,Ha=false),si(e,n,o),gt(o,gd,o.stateNode),Sn=m,Ha=x;break;case 5:vn||Ao(o,n);case 6:if(m=Sn,x=Ha,Sn=null,si(e,n,o),Sn=m,Ha=x,Sn!==null)if(Ha)try{gt(o,ZC,Sn,o.stateNode);}catch(v){pe(o,n,v);}else try{gt(o,VC,Sn,o.stateNode);}catch(v){pe(o,n,v);}break;case 18:Sn!==null&&(Ha?(e=Sn,T5(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,o.stateNode),es(e)):T5(Sn,o.stateNode));break;case 4:m=Sn,x=Ha,Sn=o.stateNode.containerInfo,Ha=true,si(e,n,o),Sn=m,Ha=x;break;case 0:case 11:case 14:case 15:Vc(xa,o,n),vn||Vp(o,n,rl),si(e,n,o);break;case 1:vn||(Ao(o,n),m=o.stateNode,typeof m.componentWillUnmount=="function"&&p3(o,n,m)),si(e,n,o);break;case 21:si(e,n,o);break;case 22:vn=(m=vn)||o.memoizedState!==null,si(e,n,o),vn=m;break;default:si(e,n,o);}(o.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&(an||.05<Fe)&&bo(o,Tt,Dt,Fe,Ge),Ia(u),Eo(c),Ge=f,an=d;}function k3(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{gt(n,oO,e);}catch(o){pe(n,n.return,o);}}}function z3(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{gt(n,iO,e);}catch(o){pe(n,n.return,o);}}function EC(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new F8),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new F8),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function py(e,n){var o=EC(e);n.forEach(function(u){if(!o.has(u)){if(o.add(u),$o)if(Cs!==null&&Os!==null)dd(Os,Cs);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var c=OC.bind(null,e,u);u.then(c,c);}});}function Ra(e,n){var o=n.deletions;if(o!==null)for(var u=0;u<o.length;u++){var c=e,f=n,d=o[u],m=Pa(),x=f;t:for(;x!==null;){switch(x.tag){case 27:if(hu(x.type)){Sn=x.stateNode,Ha=false;break t}break;case 5:Sn=x.stateNode,Ha=false;break t;case 3:case 4:Sn=x.stateNode.containerInfo,Ha=true;break t}x=x.return;}if(Sn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");_3(c,f,d),Sn=null,Ha=false,(d.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&.05<Dt-Tt&&xo(d,Tt,Dt,"Unmount"),Ia(m),c=d,f=c.alternate,f!==null&&(f.return=null),c.return=null;}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)T3(n,e),n=n.sibling;}function T3(e,n){var o=Pa(),u=So(),c=Mo(),f=_o(),d=e.alternate,m=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ra(n,e),wa(e),m&4&&(Vc(xa|Ul,e,e.return),ud(xa|Ul,e),Vp(e,e.return,rl|Ul));break;case 1:if(Ra(n,e),wa(e),m&512&&(vn||d===null||Ao(d,d.return)),m&64&&Mi&&(m=e.updateQueue,m!==null&&(d=m.callbacks,d!==null))){var x=m.shared.hiddenCallbacks;m.shared.hiddenCallbacks=x===null?d:x.concat(d);}break;case 26:if(x=ro,Ra(n,e),wa(e),m&512&&(vn||d===null||Ao(d,d.return)),m&4){var v=d!==null?d.memoizedState:null;if(m=e.memoizedState,d===null)if(m===null)if(e.stateNode===null){t:{m=e.type,d=e.memoizedProps,x=x.ownerDocument||x;e:switch(m){case "title":v=x.getElementsByTagName("title")[0],(!v||v[_d]||v[Jn]||v.namespaceURI===us||v.hasAttribute("itemprop"))&&(v=x.createElement(m),x.head.insertBefore(v,x.querySelector("head > title"))),Zn(v,m,d),v[Jn]=e,zt(v),m=v;break t;case "link":var w=L5("link","href",x).get(m+(d.href||""));if(w){for(var H=0;H<w.length;H++)if(v=w[H],v.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&v.getAttribute("rel")===(d.rel==null?null:d.rel)&&v.getAttribute("title")===(d.title==null?null:d.title)&&v.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){w.splice(H,1);break e}}v=x.createElement(m),Zn(v,m,d),x.head.appendChild(v);break;case "meta":if(w=L5("meta","content",x).get(m+(d.content||""))){for(H=0;H<w.length;H++)if(v=w[H],Ee(d.content,"content"),v.getAttribute("content")===(d.content==null?null:""+d.content)&&v.getAttribute("name")===(d.name==null?null:d.name)&&v.getAttribute("property")===(d.property==null?null:d.property)&&v.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&v.getAttribute("charset")===(d.charSet==null?null:d.charSet)){w.splice(H,1);break e}}v=x.createElement(m),Zn(v,m,d),x.head.appendChild(v);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+m+'". This is a bug in React.')}v[Jn]=e,zt(v),m=v;}e.stateNode=m;}else Y5(x,e.type,e.stateNode);else e.stateNode=$5(x,m,e.memoizedProps);else v!==m?(v===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):v.count--,m===null?Y5(x,e.type,e.stateNode):$5(x,m,e.memoizedProps)):m===null&&e.stateNode!==null&&Jp(e,e.memoizedProps,d.memoizedProps);}break;case 27:Ra(n,e),wa(e),m&512&&(vn||d===null||Ao(d,d.return)),d!==null&&m&4&&Jp(e,e.memoizedProps,d.memoizedProps);break;case 5:if(Ra(n,e),wa(e),m&512&&(vn||d===null||Ao(d,d.return)),e.flags&32){x=e.stateNode;try{gt(e,k5,x);}catch(yt){pe(e,e.return,yt);}}m&4&&e.stateNode!=null&&(x=e.memoizedProps,Jp(e,x,d!==null?d.memoizedProps:x)),m&1024&&(Rx=true,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Ra(n,e),wa(e),m&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.");m=e.memoizedProps,d=d!==null?d.memoizedProps:m,x=e.stateNode;try{gt(e,QC,x,d,m);}catch(yt){pe(e,e.return,yt);}}break;case 3:if(x=ui(),R1=null,v=ro,ro=_y(n.containerInfo),Ra(n,e),ro=v,wa(e),m&4&&d!==null&&d.memoizedState.isDehydrated)try{gt(e,lO,n.containerInfo);}catch(yt){pe(e,e.return,yt);}Rx&&(Rx=false,A3(e)),n.effectDuration+=jh(x);break;case 4:m=ro,ro=_y(e.stateNode.containerInfo),Ra(n,e),wa(e),ro=m;break;case 12:m=ui(),Ra(n,e),wa(e),e.stateNode.effectDuration+=Kf(m);break;case 31:Ra(n,e),wa(e),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,py(e,m)));break;case 13:Ra(n,e),wa(e),e.child.flags&8192&&e.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(g1=Nn()),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,py(e,m)));break;case 22:x=e.memoizedState!==null;var A=d!==null&&d.memoizedState!==null,q=Mi,ct=vn;if(Mi=q||x,vn=ct||A,Ra(n,e),vn=ct,Mi=q,A&&!x&&!q&&!ct&&(e.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&.05<Dt-Tt&&Rh(e,Tt,Dt),wa(e),m&8192)t:for(n=e.stateNode,n._visibility=x?n._visibility&~wd:n._visibility|wd,!x||d===null||A||Mi||vn||(Yr(e),(e.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&.05<Dt-Tt&&xo(e,Tt,Dt,"Disconnect")),d=null,n=e;;){if(n.tag===5||n.tag===26){if(d===null){A=d=n;try{v=A.stateNode,x?gt(A,KC,v):gt(A,IC,A.stateNode,A.memoizedProps);}catch(yt){pe(A,A.return,yt);}}}else if(n.tag===6){if(d===null){A=n;try{w=A.stateNode,x?gt(A,FC,w):gt(A,tO,w,A.memoizedProps);}catch(yt){pe(A,A.return,yt);}}}else if(n.tag===18){if(d===null){A=n;try{H=A.stateNode,x?gt(A,JC,H):gt(A,PC,A.stateNode);}catch(yt){pe(A,A.return,yt);}}}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;}m&4&&(m=e.updateQueue,m!==null&&(d=m.retryQueue,d!==null&&(m.retryQueue=null,py(e,d))));break;case 19:Ra(n,e),wa(e),m&4&&(m=e.updateQueue,m!==null&&(e.updateQueue=null,py(e,m)));break;case 30:break;case 21:break;default:Ra(n,e),wa(e);}(e.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&((an||.05<Fe)&&bo(e,Tt,Dt,Fe,Ge),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<Dt-Tt&&(S3(e.return.alternate,e.return)||xo(e,Tt,Dt,"Mount"))),Ia(o),Eo(u),Ge=c,an=f;}function wa(e){var n=e.flags;if(n&2){try{gt(e,vC,e);}catch(o){pe(e,e.return,o);}e.flags&=-3;}n&4096&&(e.flags&=-4097);}function A3(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;A3(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling;}}function Do(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)E3(e,n.alternate,n),n=n.sibling;}function D3(e){var n=Pa(),o=So(),u=Mo(),c=_o();switch(e.tag){case 0:case 11:case 14:case 15:Vp(e,e.return,rl),Yr(e);break;case 1:Ao(e,e.return);var f=e.stateNode;typeof f.componentWillUnmount=="function"&&p3(e,e.return,f),Yr(e);break;case 27:gt(e,gd,e.stateNode);case 26:case 5:Ao(e,e.return),Yr(e);break;case 22:e.memoizedState===null&&Yr(e);break;case 30:Yr(e);break;default:Yr(e);}(e.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&(an||.05<Fe)&&bo(e,Tt,Dt,Fe,Ge),Ia(n),Eo(o),Ge=u,an=c;}function Yr(e){for(e=e.child;e!==null;)D3(e),e=e.sibling;}function C3(e,n,o,u){var c=Pa(),f=So(),d=Mo(),m=_o(),x=o.flags;switch(o.tag){case 0:case 11:case 15:Co(e,o,u),h3(o,rl);break;case 1:if(Co(e,o,u),n=o.stateNode,typeof n.componentDidMount=="function"&&gt(o,bx,o,n),n=o.updateQueue,n!==null){e=o.stateNode;try{gt(o,lC,n,e);}catch(v){pe(o,o.return,v);}}u&&x&64&&m3(o),rd(o,o.return);break;case 27:v3(o);case 26:case 5:Co(e,o,u),u&&n===null&&x&4&&x3(o),rd(o,o.return);break;case 12:if(u&&x&4){x=ui(),Co(e,o,u),u=o.stateNode,u.effectDuration+=Kf(x);try{gt(o,g3,o,n,Mu,u.effectDuration);}catch(v){pe(o,o.return,v);}}else Co(e,o,u);break;case 31:Co(e,o,u),u&&x&4&&k3(e,o);break;case 13:Co(e,o,u),u&&x&4&&z3(e,o);break;case 22:o.memoizedState===null&&Co(e,o,u),rd(o,o.return);break;case 30:break;default:Co(e,o,u);}(o.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&(an||.05<Fe)&&bo(o,Tt,Dt,Fe,Ge),Ia(c),Eo(f),Ge=d,an=m;}function Co(e,n,o){for(o=o&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)C3(e,n.alternate,n,o),n=n.sibling;}function Pp(e,n){var o=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(o=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==o&&(e!=null&&Hr(e),o!=null&&Jf(o));}function Ip(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(Hr(n),e!=null&&Jf(e));}function no(e,n,o,u,c){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var f=n.sibling;O3(e,n,o,u,f!==null?f.actualStartTime:c),n=f;}}function O3(e,n,o,u,c){var f=Pa(),d=So(),m=Mo(),x=_o(),v=bu,w=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&Qt)!==Rt&&0<n.actualStartTime&&(n.flags&1)!==0&&wh(n,n.actualStartTime,c,Dn,o),no(e,n,o,u,c),w&2048&&y3(n,ba|Ul);break;case 1:(n.mode&Qt)!==Rt&&0<n.actualStartTime&&((n.flags&128)!==0?N2(n,n.actualStartTime,c,[]):(n.flags&1)!==0&&wh(n,n.actualStartTime,c,Dn,o)),no(e,n,o,u,c);break;case 3:var H=ui(),A=Dn;Dn=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,no(e,n,o,u,c),Dn=A,w&2048&&(o=null,n.alternate!==null&&(o=n.alternate.memoizedState.cache),u=n.memoizedState.cache,u!==o&&(Hr(u),o!=null&&Jf(o))),e.passiveEffectDuration+=jh(H);break;case 12:if(w&2048){w=ui(),no(e,n,o,u,c),e=n.stateNode,e.passiveEffectDuration+=Kf(w);try{gt(n,bC,n,n.alternate,Mu,e.passiveEffectDuration);}catch(q){pe(n,n.return,q);}}else no(e,n,o,u,c);break;case 31:w=Dn,H=n.alternate!==null?n.alternate.memoizedState:null,A=n.memoizedState,H!==null&&A===null?(A=n.deletions,A!==null&&0<A.length&&A[0].tag===18?(Dn=false,H=H.hydrationErrors,H!==null&&N2(n,n.actualStartTime,c,H)):Dn=true):Dn=false,no(e,n,o,u,c),Dn=w;break;case 13:w=Dn,H=n.alternate!==null?n.alternate.memoizedState:null,A=n.memoizedState,H===null||H.dehydrated===null||A!==null&&A.dehydrated!==null?Dn=false:(A=n.deletions,A!==null&&0<A.length&&A[0].tag===18?(Dn=false,H=H.hydrationErrors,H!==null&&N2(n,n.actualStartTime,c,H)):Dn=true),no(e,n,o,u,c),Dn=w;break;case 23:break;case 22:A=n.stateNode,H=n.alternate,n.memoizedState!==null?A._visibility&hi?no(e,n,o,u,c):cd(e,n,o,u,c):A._visibility&hi?no(e,n,o,u,c):(A._visibility|=hi,Zc(e,n,o,u,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),c),(n.mode&Qt)===Rt||Dn||(e=n.actualStartTime,0<=e&&.05<c-e&&Rh(n,e,c),0<=Tt&&0<=Dt&&.05<Dt-Tt&&Rh(n,Tt,Dt))),w&2048&&Pp(H,n);break;case 24:no(e,n,o,u,c),w&2048&&Ip(n.alternate,n);break;default:no(e,n,o,u,c);}(n.mode&Qt)!==Rt&&((e=!Dn&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(o=n.actualStartTime,0<=o&&.05<c-o&&xo(n,o,c,"Mount")),0<=Tt&&0<=Dt&&((an||.05<Fe)&&bo(n,Tt,Dt,Fe,Ge),e&&.05<Dt-Tt&&xo(n,Tt,Dt,"Mount"))),Ia(f),Eo(d),Ge=m,an=x,bu=v;}function Zc(e,n,o,u,c,f){for(c=c&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var d=n.sibling;R3(e,n,o,u,c,d!==null?d.actualStartTime:f),n=d;}}function R3(e,n,o,u,c,f){var d=Pa(),m=So(),x=Mo(),v=_o(),w=bu;c&&(n.mode&Qt)!==Rt&&0<n.actualStartTime&&(n.flags&1)!==0&&wh(n,n.actualStartTime,f,Dn,o);var H=n.flags;switch(n.tag){case 0:case 11:case 15:Zc(e,n,o,u,c,f),y3(n,ba);break;case 23:break;case 22:var A=n.stateNode;n.memoizedState!==null?A._visibility&hi?Zc(e,n,o,u,c,f):cd(e,n,o,u,f):(A._visibility|=hi,Zc(e,n,o,u,c,f)),c&&H&2048&&Pp(n.alternate,n);break;case 24:Zc(e,n,o,u,c,f),c&&H&2048&&Ip(n.alternate,n);break;default:Zc(e,n,o,u,c,f);}(n.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&(an||.05<Fe)&&bo(n,Tt,Dt,Fe,Ge),Ia(d),Eo(m),Ge=x,an=v,bu=w;}function cd(e,n,o,u,c){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var f=n.child;f!==null;){n=f.sibling;var d=e,m=o,x=u,v=n!==null?n.actualStartTime:c,w=bu;(f.mode&Qt)!==Rt&&0<f.actualStartTime&&(f.flags&1)!==0&&wh(f,f.actualStartTime,v,Dn,m);var H=f.flags;switch(f.tag){case 22:cd(d,f,m,x,v),H&2048&&Pp(f.alternate,f);break;case 24:cd(d,f,m,x,v),H&2048&&Ip(f.alternate,f);break;default:cd(d,f,m,x,v);}bu=w,f=n;}}function Jc(e,n,o){if(e.subtreeFlags&Id)for(e=e.child;e!==null;)w3(e,n,o),e=e.sibling;}function w3(e,n,o){switch(e.tag){case 26:Jc(e,n,o),e.flags&Id&&e.memoizedState!==null&&sO(o,ro,e.memoizedState,e.memoizedProps);break;case 5:Jc(e,n,o);break;case 3:case 4:var u=ro;ro=_y(e.stateNode.containerInfo),Jc(e,n,o),ro=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Id,Id=16777216,Jc(e,n,o),Id=u):Jc(e,n,o));break;default:Jc(e,n,o);}}function H3(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 sd(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var u=n[o],c=Pa();Ln=u,$3(u,e),(u.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&.05<Dt-Tt&&xo(u,Tt,Dt,"Unmount"),Ia(c);}H3(e);}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)U3(e),e=e.sibling;}function U3(e){var n=Pa(),o=So(),u=Mo(),c=_o();switch(e.tag){case 0:case 11:case 15:sd(e),e.flags&2048&&Zp(e,e.return,ba|Ul);break;case 3:var f=ui();sd(e),e.stateNode.passiveEffectDuration+=jh(f);break;case 12:f=ui(),sd(e),e.stateNode.passiveEffectDuration+=Kf(f);break;case 22:f=e.stateNode,e.memoizedState!==null&&f._visibility&hi&&(e.return===null||e.return.tag!==13)?(f._visibility&=~hi,gy(e),(e.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&.05<Dt-Tt&&xo(e,Tt,Dt,"Disconnect")):sd(e);break;default:sd(e);}(e.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&(an||.05<Fe)&&bo(e,Tt,Dt,Fe,Ge),Ia(n),Eo(o),an=c,Ge=u;}function gy(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var o=0;o<n.length;o++){var u=n[o],c=Pa();Ln=u,$3(u,e),(u.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&.05<Dt-Tt&&xo(u,Tt,Dt,"Unmount"),Ia(c);}H3(e);}for(e=e.child;e!==null;)N3(e),e=e.sibling;}function N3(e){var n=Pa(),o=So(),u=Mo(),c=_o();switch(e.tag){case 0:case 11:case 15:Zp(e,e.return,ba),gy(e);break;case 22:var f=e.stateNode;f._visibility&hi&&(f._visibility&=~hi,gy(e));break;default:gy(e);}(e.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&(an||.05<Fe)&&bo(e,Tt,Dt,Fe,Ge),Ia(n),Eo(o),an=c,Ge=u;}function $3(e,n){for(;Ln!==null;){var o=Ln,u=o,c=n,f=Pa(),d=So(),m=Mo(),x=_o();switch(u.tag){case 0:case 11:case 15:Zp(u,c,ba);break;case 23:case 22:u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(c=u.memoizedState.cachePool.pool,c!=null&&Hr(c));break;case 24:Jf(u.memoizedState.cache);}if((u.mode&Qt)!==Rt&&0<=Tt&&0<=Dt&&(an||.05<Fe)&&bo(u,Tt,Dt,Fe,Ge),Ia(f),Eo(d),an=x,Ge=m,u=o.child,u!==null)u.return=o,Ln=u;else t:for(o=e;Ln!==null;){if(u=Ln,f=u.sibling,d=u.return,M3(u),u===o){Ln=null;break t}if(f!==null){f.return=d,Ln=f;break t}Ln=d;}}}function MC(){GR.forEach(function(e){return e()});}function L3(){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 el(e){if((de&Cn)!==Yn&&Zt!==0)return Zt&-Zt;var n=Q.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(e),ug()):N()}function Y3(){if(Na===0)if((Zt&536870912)===0||le){var e=Ny;Ny<<=1,(Ny&3932160)===0&&(Ny=262144),Na=e;}else Na=536870912;return e=ul.current,e!==null&&(e.flags|=32),Na}function nn(e,n,o){if(Hs&&console.error("useInsertionEffect must not schedule updates."),qx&&(S1=true),(e===De&&(Se===tc||Se===ec)||e.cancelPendingCommit!==null)&&(Fc(e,0),fu(e,Zt,Na,false)),Ii(e,o),(de&Cn)!==Yn&&e===De){if(Uo)switch(n.tag){case 0:case 11:case 15:e=Ft&&P(Ft)||"Unknown",dM.has(e)||(dM.add(e),n=P(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:fM||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),fM=true);}}else $o&&Lf(e,n,o),wC(n),e===De&&((de&Cn)===Yn&&(Ru|=o),Pe===Du&&fu(e,Zt,Na,false)),Oo(e);}function W3(e,n,o){if((de&(Cn|cl))!==Yn)throw Error("Should not already be working.");if(Zt!==0&&Ft!==null){var u=Ft,c=Nn();switch(l8){case n0:case tc:var f=Yd;We&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Suspended",f,c,Tl,void 0,"primary-light")):console.timeStamp("Suspended",f,c,Tl,void 0,"primary-light"));break;case ec:f=Yd,We&&((u=u._debugTask)?u.run(console.timeStamp.bind(console,"Action",f,c,Tl,void 0,"primary-light")):console.timeStamp("Action",f,c,Tl,void 0,"primary-light"));break;default:We&&(u=c-Yd,3>u||console.timeStamp("Blocked",Yd,c,Tl,void 0,5>u?"primary-light":10>u?"primary":100>u?"primary-dark":"error"));}}f=(o=!o&&(n&127)===0&&(n&e.expiredLanes)===0||Sr(e,n))?kC(e,n):eg(e,n,true);var d=o;do{if(f===_i){Rs&&!o&&fu(e,n,0,false),n=Se,Yd=gn(),l8=n;break}else {if(u=Nn(),c=e.current.alternate,d&&!_C(c)){Ka(n),c=$n,f=u,!We||f<=c||(on?on.run(console.timeStamp.bind(console,"Teared Render",c,f,ae,ee,"error")):console.timeStamp("Teared Render",c,f,ae,ee,"error")),Wr(n,u),f=eg(e,n,false),d=false;continue}if(f===Ir){if(d=n,e.errorRecoveryDisabledLanes&d)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){Ka(n),$2($n,u,n,on),Wr(n,u),n=m;t:{u=e,f=d,d=l0;var x=u.current.memoizedState.isDehydrated;if(x&&(Fc(u,m).flags|=256),m=eg(u,m,false),m!==Ir){if(Ux&&!x){u.errorRecoveryDisabledLanes|=f,Ru|=f,f=Du;break t}u=va,va=d,u!==null&&(va===null?va=u:va.push.apply(va,u));}f=m;}if(d=false,f!==Ir)continue;u=Nn();}}if(f===e0){Ka(n),$2($n,u,n,on),Wr(n,u),Fc(e,0),fu(e,n,0,true);break}t:{switch(o=e,f){case _i:case e0:throw Error("Root did not complete. This is a bug in React.");case Du:if((n&4194048)!==n)break;case h1:Ka(n),W4($n,u,n,on),Wr(n,u),c=n,(c&127)!==0?Py=u:(c&4194048)!==0&&(Iy=u),fu(o,n,Na,!Cu);break t;case Ir:va=null;break;case d1:case P8:break;default:throw Error("Unknown root exit status.")}if(Q.actQueue!==null)ng(o,c,n,va,o0,p1,Na,Ru,nc,f,null,null,$n,u);else {if((n&62914560)===n&&(d=g1+eM-Nn(),10<d)){if(fu(o,n,Na,!Cu),vr(o,0,true)!==0)break t;co=n,o.timeoutHandle=vM(B3.bind(null,o,c,va,o0,p1,n,Na,Ru,nc,Cu,f,"Throttled",$n,u),d);break t}B3(o,c,va,o0,p1,n,Na,Ru,nc,Cu,f,null,$n,u);}}}break}while(true);Oo(e);}function B3(e,n,o,u,c,f,d,m,x,v,w,H,A,q){e.timeoutHandle=uc;var ct=n.subtreeFlags,yt=null;if((ct&8192||(ct&16785408)===16785408)&&(yt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:true,waitingForViewTransition:false,unsuspend:ai},w3(n,f,yt),ct=(f&62914560)===f?g1-Nn():(f&4194048)===f?tM-Nn():0,ct=fO(yt,ct),ct!==null)){co=f,e.cancelPendingCommit=ct(ng.bind(null,e,n,f,o,u,c,d,m,x,w,yt,yt.waitingForViewTransition?"Waiting for the previous Animation":0<yt.count?0<yt.imgCount?"Suspended on CSS and Images":"Suspended on CSS":yt.imgCount===1?"Suspended on an Image":0<yt.imgCount?"Suspended on Images":null,A,q)),fu(e,f,d,!v);return}ng(e,n,f,o,u,c,d,m,x,w,yt,H,A,q);}function _C(e){for(var n=e;;){var o=n.tag;if((o===0||o===11||o===15)&&n.flags&16384&&(o=n.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var c=o[u],f=c.getSnapshot;c=c.value;try{if(!pa(f(),c))return !1}catch{return false}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;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 fu(e,n,o,u){n&=~Nx,n&=~Ru,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var c=n;0<c;){var f=31-ha(c),d=1<<f;u[f]=-1,c&=~d;}o!==0&&Er(e,o,n);}function Kc(){return (de&(Cn|cl))===Yn?(hd(0),false):true}function tg(){if(Ft!==null){if(Se===Ua)var e=Ft.return;else e=Ft,Yh(),fp(e),Ms=null,Zd=0,e=Ft;for(;e!==null;)d3(e.alternate,e),e=e.return;Ft=null;}}function Wr(e,n){(e&127)!==0&&(_u=n),(e&4194048)!==0&&(jo=n),(e&62914560)!==0&&(n8=n),(e&2080374784)!==0&&(a8=n);}function Fc(e,n){We&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",ee,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",ee,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",ee,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",ee,"primary-light"));var o=$n;if($n=gn(),Zt!==0&&0<o){if(Ka(Zt),Pe===d1||Pe===Du)W4(o,$n,n,on);else {var u=$n,c=on;if(We&&!(u<=o)){var f=(n&738197653)===n?"tertiary-dark":"primary-dark",d=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";c?c.run(console.timeStamp.bind(console,d,o,u,ae,ee,f)):console.timeStamp(d,o,u,ae,ee,f);}}Wr(Zt,$n);}if(o=on,on=null,(n&127)!==0){on=Nd,c=0<=Bo&&Bo<_u?_u:Bo,u=0<=Gr&&Gr<_u?_u:Gr,f=0<=u?u:0<=c?c:$n,0<=Py?(Ka(2),B4(Py,f,n,o)):(t1&127)!==0,o=c;var m=u,x=$d,v=0<vs,w=ku===Ud,H=ku===Fy;if(c=$n,u=Nd,f=yx,d=mx,We){if(ae="Blocking",0<o?o>c&&(o=c):o=c,0<m?m>o&&(m=o):m=o,x!==null&&o>m){var A=v?"secondary-light":"warning";u?u.run(console.timeStamp.bind(console,v?"Consecutive":"Event: "+x,m,o,ae,ee,A)):console.timeStamp(v?"Consecutive":"Event: "+x,m,o,ae,ee,A);}c>o&&(m=w?"error":(n&738197653)===n?"tertiary-light":"primary-light",w=H?"Promise Resolved":w?"Cascading Update":5<c-o?"Update Blocked":"Update",H=[],d!=null&&H.push(["Component name",d]),f!=null&&H.push(["Method name",f]),o={start:o,end:c,detail:{devtools:{properties:H,track:ae,trackGroup:ee,color:m}}},u?u.run(performance.measure.bind(performance,w,o)):performance.measure(w,o));}Bo=-1.1,ku=0,mx=yx=null,Py=-1.1,vs=Gr,Gr=-1.1,_u=gn();}if((n&4194048)!==0&&(on=Ld,c=0<=xi&&xi<jo?jo:xi,o=0<=wl&&wl<jo?jo:wl,u=0<=zu&&zu<jo?jo:zu,f=0<=u?u:0<=o?o:$n,0<=Iy?(Ka(256),B4(Iy,f,n,on)):(t1&4194048)!==0,H=u,m=Qr,x=0<Tu,v=px===Fy,f=$n,u=Ld,d=t8,w=e8,We&&(ae="Transition",0<o?o>f&&(o=f):o=f,0<c?c>o&&(c=o):c=o,0<H?H>c&&(H=c):H=c,c>H&&m!==null&&(A=x?"secondary-light":"warning",u?u.run(console.timeStamp.bind(console,x?"Consecutive":"Event: "+m,H,c,ae,ee,A)):console.timeStamp(x?"Consecutive":"Event: "+m,H,c,ae,ee,A)),o>c&&(u?u.run(console.timeStamp.bind(console,"Action",c,o,ae,ee,"primary-dark")):console.timeStamp("Action",c,o,ae,ee,"primary-dark")),f>o&&(c=v?"Promise Resolved":5<f-o?"Update Blocked":"Update",H=[],w!=null&&H.push(["Component name",w]),d!=null&&H.push(["Method name",d]),o={start:o,end:f,detail:{devtools:{properties:H,track:ae,trackGroup:ee,color:"primary-light"}}},u?u.run(performance.measure.bind(performance,c,o)):performance.measure(c,o))),wl=xi=-1.1,px=0,Iy=-1.1,Tu=zu,zu=-1.1,jo=gn()),(n&62914560)!==0&&(t1&62914560)!==0&&(Ka(4194304),Vf(n8,$n)),(n&2080374784)!==0&&(t1&2080374784)!==0&&(Ka(268435456),Vf(a8,$n)),o=e.timeoutHandle,o!==uc&&(e.timeoutHandle=uc,l7(o)),o=e.cancelPendingCommit,o!==null&&(e.cancelPendingCommit=null,o()),co=0,tg(),De=e,Ft=o=li(e.current,null),Zt=n,Se=Ua,sl=null,Cu=false,Rs=Sr(e,n),Ux=false,Pe=_i,nc=Na=Nx=Ru=Ou=0,va=l0=null,p1=false,(n&8)!==0&&(n|=n&32),u=e.entangledLanes,u!==0)for(e=e.entanglements,u&=n;0<u;)c=31-ha(u),f=1<<c,n|=e[c],u&=~f;return Xo=n,Hh(),e=Z6(),1e3<e-V6&&(Q.recentlyCreatedOwnerStacks=0,V6=e),io.discardPendingWarnings(),o}function j3(e,n){Ht=null,Q.H=Pd,Q.getCurrentStack=null,Uo=false,ll=null,n===Es||n===l1?(n=cE(),Se=n0):n===vx?(n=cE(),Se=I8):Se=n===Cx?Hx:n!==null&&typeof n=="object"&&typeof n.then=="function"?a0:y1,sl=n;var o=Ft;o===null?(Pe=e0,sy(e,Fa(n,e.current))):o.mode&Qt&&P2(o);}function q3(){var e=ul.current;return e===null?true:(Zt&4194048)===Zt?Hl===null:(Zt&62914560)===Zt||(Zt&536870912)!==0?e===Hl:false}function X3(){var e=Q.H;return Q.H=Pd,e===null?Pd:e}function G3(){var e=Q.A;return Q.A=XR,e}function xy(e){on===null&&(on=e._debugTask==null?null:e._debugTask);}function by(){Pe=Du,Cu||(Zt&4194048)!==Zt&&ul.current!==null||(Rs=true),(Ou&134217727)===0&&(Ru&134217727)===0||De===null||fu(De,Zt,Na,false);}function eg(e,n,o){var u=de;de|=Cn;var c=X3(),f=G3();if(De!==e||Zt!==n){if($o){var d=e.memoizedUpdaters;0<d.size&&(dd(e,Zt),d.clear()),tu(e,n);}o0=null,Fc(e,n);}n=false,d=Pe;t:do try{if(Se!==Ua&&Ft!==null){var m=Ft,x=sl;switch(Se){case Hx:tg(),d=h1;break t;case n0:case tc:case ec:case a0:ul.current===null&&(n=!0);var v=Se;if(Se=Ua,sl=null,Pc(e,m,x,v),o&&Rs){d=_i;break t}break;default:v=Se,Se=Ua,sl=null,Pc(e,m,x,v);}}Q3(),d=Pe;break}catch(w){j3(e,w);}while(true);return n&&e.shellSuspendCounter++,Yh(),de=u,Q.H=c,Q.A=f,Ft===null&&(De=null,Zt=0,Hh()),d}function Q3(){for(;Ft!==null;)V3(Ft);}function kC(e,n){var o=de;de|=Cn;var u=X3(),c=G3();if(De!==e||Zt!==n){if($o){var f=e.memoizedUpdaters;0<f.size&&(dd(e,Zt),f.clear()),tu(e,n);}o0=null,x1=Nn()+nM,Fc(e,n);}else Rs=Sr(e,n);t:do try{if(Se!==Ua&&Ft!==null)e:switch(n=Ft,f=sl,Se){case y1:Se=Ua,sl=null,Pc(e,n,f,y1);break;case tc:case ec:if(uE(f)){Se=Ua,sl=null,Z3(n);break}n=function(){Se!==tc&&Se!==ec||De!==e||(Se=m1),Oo(e);},f.then(n,n);break t;case n0:Se=m1;break t;case I8:Se=wx;break t;case m1:uE(f)?(Se=Ua,sl=null,Z3(n)):(Se=Ua,sl=null,Pc(e,n,f,m1));break;case wx:var d=null;switch(Ft.tag){case 26:d=Ft.memoizedState;case 5:case 27:var m=Ft;if(d?W5(d):m.stateNode.complete){Se=Ua,sl=null;var x=m.sibling;if(x!==null)Ft=x;else {var v=m.return;v!==null?(Ft=v,vy(v)):Ft=null;}break e}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.");}Se=Ua,sl=null,Pc(e,n,f,wx);break;case a0:Se=Ua,sl=null,Pc(e,n,f,a0);break;case Hx:tg(),Pe=h1;break t;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Q.actQueue!==null?Q3():zC();break}catch(w){j3(e,w);}while(true);return Yh(),Q.H=u,Q.A=c,de=o,Ft!==null?_i:(De=null,Zt=0,Hh(),Pe)}function zC(){for(;Ft!==null&&!kO();)V3(Ft);}function V3(e){var n=e.alternate;(e.mode&Qt)!==Rt?(F2(e),n=gt(e,Gp,n,e,Xo),P2(e)):n=gt(e,Gp,n,e,Xo),e.memoizedProps=e.pendingProps,n===null?vy(e):Ft=n;}function Z3(e){var n=gt(e,TC,e);e.memoizedProps=e.pendingProps,n===null?vy(e):Ft=n;}function TC(e){var n=e.alternate,o=(e.mode&Qt)!==Rt;switch(o&&F2(e),e.tag){case 15:case 0:n=o3(n,e,e.pendingProps,e.type,void 0,Zt);break;case 11:n=o3(n,e,e.pendingProps,e.type.render,e.ref,Zt);break;case 5:fp(e);default:d3(n,e),e=Ft=V4(e,Xo),n=Gp(n,e,Xo);}return o&&P2(e),n}function Pc(e,n,o,u){Yh(),fp(n),Ms=null,Zd=0;var c=n.return;try{if(fC(e,c,n,o,Zt)){Pe=e0,sy(e,Fa(o,e.current)),Ft=null;return}}catch(f){if(c!==null)throw Ft=c,f;Pe=e0,sy(e,Fa(o,e.current)),Ft=null;return}n.flags&32768?(le||u===y1?e=true:Rs||(Zt&536870912)!==0?e=false:(Cu=e=true,(u===tc||u===ec||u===n0||u===a0)&&(u=ul.current,u!==null&&u.tag===13&&(u.flags|=16384))),J3(n,e)):vy(n);}function vy(e){var n=e;do{if((n.flags&32768)!==0){J3(n,Cu);return}var o=n.alternate;if(e=n.return,F2(n),o=gt(n,yC,o,n,Xo),(n.mode&Qt)!==Rt&&nE(n),o!==null){Ft=o;return}if(n=n.sibling,n!==null){Ft=n;return}Ft=n=e;}while(n!==null);Pe===_i&&(Pe=P8);}function J3(e,n){do{var o=mC(e.alternate,e);if(o!==null){o.flags&=32767,Ft=o;return}if((e.mode&Qt)!==Rt){nE(e),o=e.actualDuration;for(var u=e.child;u!==null;)o+=u.actualDuration,u=u.sibling;e.actualDuration=o;}if(o=e.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!n&&(e=e.sibling,e!==null)){Ft=e;return}Ft=e=o;}while(e!==null);Pe=h1,Ft=null;}function ng(e,n,o,u,c,f,d,m,x,v,w,H,A,q){e.cancelPendingCommit=null;do fd();while(En!==Hu);if(io.flushLegacyContextWarning(),io.flushPendingUnsafeLifecycleWarnings(),(de&(Cn|cl))!==Yn)throw Error("Should not already be working.");if(Ka(o),v===Ir?$2(A,q,o,on):u!==null?PD(A,q,o,u,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,on):FD(A,q,o,on),n!==null){if(o===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(f=n.lanes|n.childLanes,f|=cx,Mh(e,o,f,d,m,x),e===De&&(Ft=De=null,Zt=0),ws=n,Uu=e,co=o,Yx=f,Bx=c,rM=u,Wx=q,cM=H,so=b1,sM=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,RC(ls,function(){return f0=window.event,so===b1&&(so=Lx),t5(),null})):(e.callbackNode=null,e.callbackPriority=0),gi=null,Mu=gn(),H!==null&&ID(q,Mu,H,on),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=Q.T,Q.T=null,c=ge.p,ge.p=ol,d=de,de|=cl;try{SC(e,n,o);}finally{de=d,ge.p=c,Q.T=u;}}En=lM,K3(),F3(),P3();}}function K3(){if(En===lM){En=Hu;var e=Uu,n=ws,o=co,u=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||u){u=Q.T,Q.T=null;var c=ge.p;ge.p=ol;var f=de;de|=cl;try{Cs=o,Os=e,qh(),T3(n,e),Os=Cs=null,o=Px;var d=$4(e.containerInfo),m=o.focusedElem,x=o.selectionRange;if(d!==m&&m&&m.ownerDocument&&N4(m.ownerDocument.documentElement,m)){if(x!==null&&H2(m)){var v=x.start,w=x.end;if(w===void 0&&(w=v),"selectionStart"in m)m.selectionStart=v,m.selectionEnd=Math.min(w,m.value.length);else {var H=m.ownerDocument||document,A=H&&H.defaultView||window;if(A.getSelection){var q=A.getSelection(),ct=m.textContent.length,yt=Math.min(x.start,ct),Ne=x.end===void 0?yt:Math.min(x.end,ct);!q.extend&&yt>Ne&&(d=Ne,Ne=yt,yt=d);var ue=U4(m,yt),T=U4(m,Ne);if(ue&&T&&(q.rangeCount!==1||q.anchorNode!==ue.node||q.anchorOffset!==ue.offset||q.focusNode!==T.node||q.focusOffset!==T.offset)){var D=H.createRange();D.setStart(ue.node,ue.offset),q.removeAllRanges(),yt>Ne?(q.addRange(D),q.extend(T.node,T.offset)):(D.setEnd(T.node,T.offset),q.addRange(D));}}}}for(H=[],q=m;q=q.parentNode;)q.nodeType===1&&H.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<H.length;m++){var R=H[m];R.element.scrollLeft=R.left,R.element.scrollTop=R.top;}}U1=!!Fx,Px=Fx=null;}finally{de=f,ge.p=c,Q.T=u;}}e.current=n,En=oM;}}function F3(){if(En===oM){En=Hu;var e=sM;if(e!==null){Mu=gn();var n=pi,o=Mu;!We||o<=n||(console.timeStamp(e,n,o,ae,ee,"secondary-light"));}e=Uu,n=ws,o=co;var u=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||u){u=Q.T,Q.T=null;var c=ge.p;ge.p=ol;var f=de;de|=cl;try{Cs=o,Os=e,qh(),E3(e,n.alternate,n),Os=Cs=null;}finally{de=f,ge.p=c,Q.T=u;}}e=Wx,n=cM,pi=gn(),e=n===null?e:Mu,n=pi,o=so===$x,u=on,gi!==null?j4(e,n,gi,false,u):!We||n<=e||(u?u.run(console.timeStamp.bind(console,o?"Commit Interrupted View Transition":"Commit",e,n,ae,ee,o?"error":"secondary-dark")):console.timeStamp(o?"Commit Interrupted View Transition":"Commit",e,n,ae,ee,o?"error":"secondary-dark")),En=iM;}}function P3(){if(En===uM||En===iM){if(En===uM){var e=pi;pi=gn();var n=pi,o=so===$x;!We||n<=e||(console.timeStamp(o?"Interrupted View Transition":"Starting Animation",e,n,ae,ee,o?" error":"secondary-light")),so!==$x&&(so=aM);}En=Hu,zO(),e=Uu;var u=ws;n=co,o=rM;var c=u.actualDuration!==0||(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0;c?En=v1:(En=Hu,ws=Uu=null,I3(e,e.pendingLanes),ac=0,u0=null);var f=e.pendingLanes;if(f===0&&(wu=null),c||l5(e),f=S(n),u=u.stateNode,ua&&typeof ua.onCommitFiberRoot=="function")try{var d=(u.current.flags&128)===128;switch(f){case ol:var m=Bg;break;case lo:m=jg;break;case Lo:m=ls;break;case Ly:m=qg;break;default:m=ls;}ua.onCommitFiberRoot(os,u,m,d);}catch(H){No||(No=true,console.error("React instrumentation encountered an error: %o",H));}if($o&&e.memoizedUpdaters.clear(),MC(),o!==null){d=Q.T,m=ge.p,ge.p=ol,Q.T=null;try{var x=e.onRecoverableError;for(u=0;u<o.length;u++){var v=o[u],w=AC(v.stack);gt(v.source,x,v.value,w);}}finally{Q.T=d,ge.p=m;}}(co&3)!==0&&fd(),Oo(e),f=e.pendingLanes,(n&261930)!==0&&(f&42)!==0?(n1=true,e===jx?i0++:(i0=0,jx=e)):i0=0,c||Wr(n,pi),hd(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 I3(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Jf(n)));}function fd(){return K3(),F3(),P3(),t5()}function t5(){if(En!==v1)return false;var e=Uu,n=Yx;Yx=0;var o=S(co),u=Lo>o?Lo:o;o=Q.T;var c=ge.p;try{ge.p=u,Q.T=null;var f=Bx;Bx=null,u=Uu;var d=co;if(En=Hu,ws=Uu=null,co=0,(de&(Cn|cl))!==Yn)throw Error("Cannot flush passive effects while already rendering.");Ka(d),qx=!0,S1=!1;var m=0;if(gi=null,m=Nn(),so===aM)Vf(pi,m,bi);else {var x=pi,v=m,w=so===Lx;!We||v<=x||(on?on.run(console.timeStamp.bind(console,w?"Waiting for Paint":"Waiting",x,v,ae,ee,"secondary-light")):console.timeStamp(w?"Waiting for Paint":"Waiting",x,v,ae,ee,"secondary-light"));}x=de,de|=cl;var H=u.current;qh(),U3(H);var A=u.current;H=Wx,qh(),O3(u,A,d,f,H),l5(u),de=x;var q=Nn();if(A=m,H=on,gi!==null?j4(A,q,gi,!0,H):!We||q<=A||(H?H.run(console.timeStamp.bind(console,"Remaining Effects",A,q,ae,ee,"secondary-dark")):console.timeStamp("Remaining Effects",A,q,ae,ee,"secondary-dark")),Wr(d,q),hd(0,!1),S1?u===u0?ac++:(ac=0,u0=u):ac=0,S1=qx=!1,ua&&typeof ua.onPostCommitFiberRoot=="function")try{ua.onPostCommitFiberRoot(os,u);}catch(yt){No||(No=!0,console.error("React instrumentation encountered an error: %o",yt));}var ct=u.current.stateNode;return ct.effectDuration=0,ct.passiveEffectDuration=0,!0}finally{ge.p=c,Q.T=o,I3(e,n);}}function e5(e,n,o){n=Fa(o,n),aE(n),n=Hp(e.stateNode,n,2),e=uu(e,n,2),e!==null&&(Ii(e,2),Oo(e));}function pe(e,n,o){if(Hs=false,e.tag===3)e5(e,e,o);else {for(;n!==null;){if(n.tag===3){e5(n,e,o);return}if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(wu===null||!wu.has(u))){e=Fa(o,e),aE(e),o=Up(2),u=uu(n,o,2),u!==null&&(Np(o,u,n,e),Ii(u,2),Oo(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`,o);}}function ag(e,n,o){var u=e.pingCache;if(u===null){u=e.pingCache=new QR;var c=new Set;u.set(n,c);}else c=u.get(n),c===void 0&&(c=new Set,u.set(n,c));c.has(o)||(Ux=true,c.add(o),u=DC.bind(null,e,n,o),$o&&dd(e,o),n.then(u,u));}function DC(e,n,o){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&o,e.warmLanes&=~o,(o&127)!==0?0>Bo&&(_u=Bo=gn(),Nd=Ky("Promise Resolved"),ku=Fy):(o&4194048)!==0&&0>wl&&(jo=wl=gn(),Ld=Ky("Promise Resolved"),px=Fy),L3()&&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`),De===e&&(Zt&o)===o&&(Pe===Du||Pe===d1&&(Zt&62914560)===Zt&&Nn()-g1<eM?(de&Cn)===Yn&&Fc(e,0):Nx|=o,nc===Zt&&(nc=0)),Oo(e);}function n5(e,n){n===0&&(n=Nc()),e=ia(e,n),e!==null&&(Ii(e,n),Oo(e));}function CC(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),n5(e,o);}function OC(e,n){var o=0;switch(e.tag){case 31:case 13:var u=e.stateNode,c=e.memoizedState;c!==null&&(o=c.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),n5(e,o);}function lg(e,n,o){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var u=e,c=n,f=c.type===Ry;f=o||f,c.tag!==22?c.flags&67108864?f&&gt(c,a5,u,c):lg(u,c,f):c.memoizedState===null&&(f&&c.flags&8192?gt(c,a5,u,c):c.subtreeFlags&67108864&&gt(c,lg,u,c,f)),n=n.sibling;}}function a5(e,n){He(true);try{D3(n),N3(n),C3(e,n.alternate,n,!1),R3(e,n,0,null,!1,0);}finally{He(false);}}function l5(e){var n=true;e.current.mode&(ra|oo)||(n=false),lg(e,e.current,n);}function o5(e){if((de&Cn)===Yn){var n=e.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=P(e)||"ReactComponent",E1!==null){if(E1.has(n))return;E1.add(n);}else E1=new Set([n]);gt(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 dd(e,n){$o&&e.memoizedUpdaters.forEach(function(o){Lf(e,o,n);});}function RC(e,n){var o=Q.actQueue;return o!==null?(o.push(n),JR):Wg(e,n)}function wC(e){L3()&&Q.actQueue===null&&gt(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`,P(e));});}function Oo(e){e!==Us&&e.next===null&&(Us===null?M1=Us=e:Us=Us.next=e),_1=true,Q.actQueue!==null?Gx||(Gx=true,c5()):Xx||(Xx=true,c5());}function hd(e,n){if(!Qx&&_1){Qx=true;do for(var o=false,u=M1;u!==null;){if(e!==0){var c=u.pendingLanes;if(c===0)var f=0;else {var d=u.suspendedLanes,m=u.pingedLanes;f=(1<<31-ha(42|e)+1)-1,f&=c&~(d&~m),f=f&201326741?f&201326741|1:f?f|2:0;}f!==0&&(o=true,r5(u,f));}else f=Zt,f=vr(u,u===De?f:0,u.cancelPendingCommit!==null||u.timeoutHandle!==uc),(f&3)===0||Sr(u,f)||(o=true,r5(u,f));u=u.next;}while(o);Qx=false;}}function HC(){f0=window.event,og();}function og(){_1=Gx=Xx=false;var e=0;Nu!==0&&BC()&&(e=Nu);for(var n=Nn(),o=null,u=M1;u!==null;){var c=u.next,f=i5(u,n);f===0?(u.next=null,o===null?M1=c:o.next=c,c===null&&(Us=o)):(o=u,(e!==0||(f&3)!==0)&&(_1=true)),u=c;}En!==Hu&&En!==v1||hd(e),Nu!==0&&(Nu=0);}function i5(e,n){for(var o=e.suspendedLanes,u=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var d=31-ha(f),m=1<<d,x=c[d];x===-1?((m&o)===0||(m&u)!==0)&&(c[d]=M2(m,n)):x<=n&&(e.expiredLanes|=m),f&=~m;}if(n=De,o=Zt,o=vr(e,e===n?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==uc),u=e.callbackNode,o===0||e===n&&(Se===tc||Se===ec)||e.cancelPendingCommit!==null)return u!==null&&ig(u),e.callbackNode=null,e.callbackPriority=0;if((o&3)===0||Sr(e,o)){if(n=o&-o,n!==e.callbackPriority||Q.actQueue!==null&&u!==Vx)ig(u);else return n;switch(S(o)){case ol:case lo:o=jg;break;case Lo:o=ls;break;case Ly:o=qg;break;default:o=ls;}return u=u5.bind(null,e),Q.actQueue!==null?(Q.actQueue.push(u),o=Vx):o=Wg(o,u),e.callbackPriority=n,e.callbackNode=o,n}return u!==null&&ig(u),e.callbackPriority=2,e.callbackNode=null,2}function u5(e,n){if(n1=e1=false,f0=window.event,En!==Hu&&En!==v1)return e.callbackNode=null,e.callbackPriority=0,null;var o=e.callbackNode;if(so===b1&&(so=Lx),fd()&&e.callbackNode!==o)return null;var u=Zt;return u=vr(e,e===De?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==uc),u===0?null:(W3(e,u,n),i5(e,Nn()),e.callbackNode!=null&&e.callbackNode===o?u5.bind(null,e):null)}function r5(e,n){if(fd())return null;e1=n1,n1=false,W3(e,n,true);}function ig(e){e!==Vx&&e!==null&&_O(e);}function c5(){Q.actQueue!==null&&Q.actQueue.push(function(){return og(),null}),o7(function(){(de&(Cn|cl))!==Yn?Wg(Bg,HC):og();});}function ug(){if(Nu===0){var e=Vr;e===0&&(e=Uy,Uy<<=1,(Uy&261888)===0&&(Uy=256)),Nu=e;}return Nu}function s5(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:(Ee(e,"action"),Xf(""+e))}function f5(e,n){var o=n.ownerDocument.createElement("input");return o.name=n.name,o.value=n.value,e.id&&o.setAttribute("form",e.id),n.parentNode.insertBefore(o,n),e=new FormData(e),o.parentNode.removeChild(o),e}function UC(e,n,o,u,c){if(n==="submit"&&o&&o.stateNode===c){var f=s5((c[ya]||null).action),d=u.submitter;d&&(n=(n=d[ya]||null)?s5(n.formAction):d.getAttribute("formAction"),n!==null&&(f=n,d=null));var m=new qy("action","action",null,u,c);e.push({event:m,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Nu!==0){var x=d?f5(c,d):new FormData(c),v={pending:true,data:x,method:c.method,action:f};Object.freeze(v),Tp(o,v,null,x);}}else typeof f=="function"&&(m.preventDefault(),x=d?f5(c,d):new FormData(c),v={pending:true,data:x,method:c.method,action:f},Object.freeze(v),Tp(o,v,f,x));},currentTarget:c}]});}}function Sy(e,n,o){e.currentTarget=o;try{n(e);}catch(u){ox(u);}e.currentTarget=null;}function d5(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var u=e[o];t:{var c=void 0,f=u.event;if(u=u.listeners,n)for(var d=u.length-1;0<=d;d--){var m=u[d],x=m.instance,v=m.currentTarget;if(m=m.listener,x!==c&&f.isPropagationStopped())break t;x!==null?gt(x,Sy,f,m,v):Sy(f,m,v),c=x;}else for(d=0;d<u.length;d++){if(m=u[d],x=m.instance,v=m.currentTarget,m=m.listener,x!==c&&f.isPropagationStopped())break t;x!==null?gt(x,Sy,f,m,v):Sy(f,m,v),c=x;}}}}function ie(e,n){Zx.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var o=n[Xg];o===void 0&&(o=n[Xg]=new Set);var u=e+"__bubble";o.has(u)||(h5(n,e,2,false),o.add(u));}function rg(e,n,o){Zx.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),h5(o,e,u,n);}function cg(e){if(!e[k1]){e[k1]=true,c6.forEach(function(o){o!=="selectionchange"&&(Zx.has(o)||rg(o,false,e),rg(o,true,e));});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[k1]||(n[k1]=true,rg("selectionchange",false,n));}}function h5(e,n,o,u){switch(Q5(n)){case ol:var c=mO;break;case lo:c=pO;break;default:c=kg;}o=c.bind(null,n,o,e),c=void 0,!Jg||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=true),u?c!==void 0?e.addEventListener(n,o,{capture:true,passive:c}):e.addEventListener(n,o,true):c!==void 0?e.addEventListener(n,o,{passive:c}):e.addEventListener(n,o,false);}function sg(e,n,o,u,c){var f=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 m=u.stateNode.containerInfo;if(m===c)break;if(d===4)for(d=u.return;d!==null;){var x=d.tag;if((x===3||x===4)&&d.stateNode.containerInfo===c)return;d=d.return;}for(;m!==null;){if(d=St(m),d===null)return;if(x=d.tag,x===5||x===6||x===26||x===27){u=f=d;continue t}m=m.parentNode;}}u=u.return;}_4(function(){var v=f,w=R2(o),H=[];t:{var A=Q6.get(e);if(A!==void 0){var q=qy,ct=e;switch(e){case "keypress":if(Dh(o)===0)break t;case "keydown":case "keyup":q=fR;break;case "focusin":ct="focus",q=Ig;break;case "focusout":ct="blur",q=Ig;break;case "beforeblur":case "afterblur":q=Ig;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":q=R6;break;case "drag":case "dragend":case "dragenter":case "dragexit":case "dragleave":case "dragover":case "dragstart":case "drop":q=IO;break;case "touchcancel":case "touchend":case "touchmove":case "touchstart":q=yR;break;case j6:case q6:case X6:q=nR;break;case G6:q=pR;break;case "scroll":case "scrollend":q=FO;break;case "wheel":q=xR;break;case "copy":case "cut":case "paste":q=lR;break;case "gotpointercapture":case "lostpointercapture":case "pointercancel":case "pointerdown":case "pointermove":case "pointerout":case "pointerover":case "pointerup":q=H6;break;case "toggle":case "beforetoggle":q=vR;}var yt=(n&4)!==0,Ne=!yt&&(e==="scroll"||e==="scrollend"),ue=yt?A!==null?A+"Capture":null:A;yt=[];for(var T=v,D;T!==null;){var R=T;if(D=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||D===null||ue===null||(R=Gf(T,ue),R!=null&&yt.push(yd(T,R,D))),Ne)break;T=T.return;}0<yt.length&&(A=new q(A,ct,null,o,w),H.push({event:A,listeners:yt}));}}if((n&7)===0){t:{if(A=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",A&&o!==kd&&(ct=o.relatedTarget||o.fromElement)&&(St(ct)||ct[gu]))break t;if((q||A)&&(A=w.window===w?w:(A=w.ownerDocument)?A.defaultView||A.parentWindow:window,q?(ct=o.relatedTarget||o.toElement,q=v,ct=ct?St(ct):null,ct!==null&&(Ne=C(ct),yt=ct.tag,ct!==Ne||yt!==5&&yt!==27&&yt!==6)&&(ct=null)):(q=null,ct=v),q!==ct)){if(yt=R6,R="onMouseLeave",ue="onMouseEnter",T="mouse",(e==="pointerout"||e==="pointerover")&&(yt=H6,R="onPointerLeave",ue="onPointerEnter",T="pointer"),Ne=q==null?A:Wt(q),D=ct==null?A:Wt(ct),A=new yt(R,T+"leave",q,o,w),A.target=Ne,A.relatedTarget=D,R=null,St(w)===v&&(yt=new yt(ue,T+"enter",ct,o,w),yt.target=D,yt.relatedTarget=Ne,R=yt),Ne=R,q&&ct)e:{for(yt=NC,ue=q,T=ct,D=0,R=ue;R;R=yt(R))D++;R=0;for(var V=T;V;V=yt(V))R++;for(;0<D-R;)ue=yt(ue),D--;for(;0<R-D;)T=yt(T),R--;for(;D--;){if(ue===T||T!==null&&ue===T.alternate){yt=ue;break e}ue=yt(ue),T=yt(T);}yt=null;}else yt=null;q!==null&&y5(H,A,q,yt,!1),ct!==null&&Ne!==null&&y5(H,Ne,ct,yt,!0);}}t:{if(A=v?Wt(v):window,q=A.nodeName&&A.nodeName.toLowerCase(),q==="select"||q==="input"&&A.type==="file")var dt=O4;else if(D4(A))if(W6)dt=ZD;else {dt=QD;var Ut=GD;}else q=A.nodeName,!q||q.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?v&&qf(v.elementType)&&(dt=O4):dt=VD;if(dt&&(dt=dt(e,v))){C4(H,dt,o,w);break t}Ut&&Ut(e,A,v),e==="focusout"&&v&&A.type==="number"&&v.memoizedProps.value!=null&&z2(A,"number",A.value);}switch(Ut=v?Wt(v):window,e){case "focusin":(D4(Ut)||Ut.contentEditable==="true")&&(ds=Ut,ex=v,Rd=null);break;case "focusout":Rd=ex=ds=null;break;case "mousedown":nx=!0;break;case "contextmenu":case "mouseup":case "dragend":nx=!1,L4(H,o,w);break;case "selectionchange":if(_R)break;case "keydown":case "keyup":L4(H,o,w);}var kt;if(tx)t:{switch(e){case "compositionstart":var Et="onCompositionStart";break t;case "compositionend":Et="onCompositionEnd";break t;case "compositionupdate":Et="onCompositionUpdate";break t}Et=void 0;}else fs?T4(e,o)&&(Et="onCompositionEnd"):e==="keydown"&&o.keyCode===U6&&(Et="onCompositionStart");Et&&(N6&&o.locale!=="ko"&&(fs||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&fs&&(kt=k4()):(xu=w,Kg="value"in xu?xu.value:xu.textContent,fs=!0)),Ut=Ey(v,Et),0<Ut.length&&(Et=new w6(Et,e,null,o,w),H.push({event:Et,listeners:Ut}),kt?Et.data=kt:(kt=A4(o),kt!==null&&(Et.data=kt)))),(kt=ER?BD(e,o):jD(e,o))&&(Et=Ey(v,"onBeforeInput"),0<Et.length&&(Ut=new iR("onBeforeInput","beforeinput",null,o,w),H.push({event:Ut,listeners:Et}),Ut.data=kt)),UC(H,e,v,o,w);}d5(H,n);});}function yd(e,n,o){return {instance:e,listener:n,currentTarget:o}}function Ey(e,n){for(var o=n+"Capture",u=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=Gf(e,o),c!=null&&u.unshift(yd(e,c,f)),c=Gf(e,n),c!=null&&u.push(yd(e,c,f))),e.tag===3)return u;e=e.return;}return []}function NC(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function y5(e,n,o,u,c){for(var f=n._reactName,d=[];o!==null&&o!==u;){var m=o,x=m.alternate,v=m.stateNode;if(m=m.tag,x!==null&&x===u)break;m!==5&&m!==26&&m!==27||v===null||(x=v,c?(v=Gf(o,f),v!=null&&d.unshift(yd(o,v,x))):c||(v=Gf(o,f),v!=null&&d.push(yd(o,v,x)))),o=o.return;}d.length!==0&&e.push({event:n,listeners:d});}function fg(e,n){$D(e,n),e!=="input"&&e!=="textarea"&&e!=="select"||n==null||n.value!==null||C6||(C6=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 o={registrationNameDependencies:Br,possibleRegistrationNames:Gg};qf(e)||typeof n.is=="string"||YD(e,n,o),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 Un(e,n,o,u){n!==o&&(o=du(o),du(n)!==o&&(u[e]=n));}function $C(e,n,o){n.forEach(function(u){o[g5(u)]=u==="style"?hg(e):e.getAttribute(u);});}function Ro(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 m5(e,n){return e=e.namespaceURI===Wy||e.namespaceURI===us?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=n,e.innerHTML}function du(e){return Pi(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.",br(e)),Hn(e)),(typeof e=="string"?e:""+e).replace(KR,`
189
- `).replace(FR,"")}function p5(e,n){return n=du(n),du(e)===n}function Te(e,n,o,u,c,f){switch(o){case "children":typeof u=="string"?(Ah(u,n,false),n==="body"||n==="textarea"&&u===""||jf(e,u)):(typeof u=="number"||typeof u=="bigint")&&(Ah(""+u,n,false),n!=="body"&&jf(e,""+u));break;case "className":kh(e,"class",u);break;case "tabIndex":kh(e,"tabindex",u);break;case "dir":case "role":case "viewBox":case "width":case "height":kh(e,o,u);break;case "style":S4(e,u,f);break;case "data":if(n!=="object"){kh(e,"data",u);break}case "src":case "href":if(u===""&&(n!=="a"||o!=="href")){console.error(o==="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.',o,o),e.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(o);break}Ee(u,o),u=Xf(""+u),e.setAttribute(o,u);break;case "action":case "formAction":if(u!=null&&(n==="form"?o==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof u=="function"&&(c.encType==null&&c.method==null||A1||(A1=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.")),c.target==null||T1||(T1=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"?o==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||c.type==="submit"||c.type==="image"||z1?n!=="button"||c.type==null||c.type==="submit"||z1?typeof u=="function"&&(c.name==null||mM||(mM=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.')),c.formEncType==null&&c.formMethod==null||A1||(A1=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.")),c.formTarget==null||T1||(T1=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."))):(z1=true,console.error('A button can only specify a formAction along with type="submit" or no type.')):(z1=true,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(o==="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(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"?(n!=="input"&&Te(e,n,"name",c.name,c,null),Te(e,n,"formEncType",c.formEncType,c,null),Te(e,n,"formMethod",c.formMethod,c,null),Te(e,n,"formTarget",c.formTarget,c,null)):(Te(e,n,"encType",c.encType,c,null),Te(e,n,"method",c.method,c,null),Te(e,n,"target",c.target,c,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(o);break}Ee(u,o),u=Xf(""+u),e.setAttribute(o,u);break;case "onClick":u!=null&&(typeof u!="function"&&Ro(o,u),e.onclick=ai);break;case "onScroll":u!=null&&(typeof u!="function"&&Ro(o,u),ie("scroll",e));break;case "onScrollEnd":u!=null&&(typeof u!="function"&&Ro(o,u),ie("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(o=u.__html,o!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o;}}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}Ee(u,o),o=Xf(""+u),e.setAttributeNS(lc,"xlink:href",o);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"?(Ee(u,o),e.setAttribute(o,""+u)):e.removeAttribute(o);break;case "inert":u!==""||D1[o]||(D1[o]=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.",o));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(o,""):e.removeAttribute(o);break;case "capture":case "download":u===true?e.setAttribute(o,""):u!==false&&u!=null&&typeof u!="function"&&typeof u!="symbol"?(Ee(u,o),e.setAttribute(o,u)):e.removeAttribute(o);break;case "cols":case "rows":case "size":case "span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?(Ee(u,o),e.setAttribute(o,u)):e.removeAttribute(o);break;case "rowSpan":case "start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(o):(Ee(u,o),e.setAttribute(o,u));break;case "popover":ie("beforetoggle",e),ie("toggle",e),_h(e,"popover",u);break;case "xlinkActuate":ni(e,lc,"xlink:actuate",u);break;case "xlinkArcrole":ni(e,lc,"xlink:arcrole",u);break;case "xlinkRole":ni(e,lc,"xlink:role",u);break;case "xlinkShow":ni(e,lc,"xlink:show",u);break;case "xlinkTitle":ni(e,lc,"xlink:title",u);break;case "xlinkType":ni(e,lc,"xlink:type",u);break;case "xmlBase":ni(e,Jx,"xml:base",u);break;case "xmlLang":ni(e,Jx,"xml:lang",u);break;case "xmlSpace":ni(e,Jx,"xml:space",u);break;case "is":f!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),_h(e,"is",u);break;case "innerText":case "textContent":break;case "popoverTarget":pM||u==null||typeof u!="object"||(pM=true,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",u));default:!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N"?(o=E4(o),_h(e,o,u)):Br.hasOwnProperty(o)&&u!=null&&typeof u!="function"&&Ro(o,u);}}function dg(e,n,o,u,c,f){switch(o){case "style":S4(e,u,f);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(o=u.__html,o!=null){if(c.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=o;}}break;case "children":typeof u=="string"?jf(e,u):(typeof u=="number"||typeof u=="bigint")&&jf(e,""+u);break;case "onScroll":u!=null&&(typeof u!="function"&&Ro(o,u),ie("scroll",e));break;case "onScrollEnd":u!=null&&(typeof u!="function"&&Ro(o,u),ie("scrollend",e));break;case "onClick":u!=null&&(typeof u!="function"&&Ro(o,u),e.onclick=ai);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "innerHTML":case "ref":break;case "innerText":case "textContent":break;default:if(Br.hasOwnProperty(o))u!=null&&typeof u!="function"&&Ro(o,u);else t:{if(o[0]==="o"&&o[1]==="n"&&(c=o.endsWith("Capture"),n=o.slice(2,c?o.length-7:void 0),f=e[ya]||null,f=f!=null?f[o]:null,typeof f=="function"&&e.removeEventListener(n,f,c),typeof u=="function")){typeof f!="function"&&f!==null&&(o in e?e[o]=null:e.hasAttribute(o)&&e.removeAttribute(o)),e.addEventListener(n,u,c);break t}o in e?e[o]=u:u===true?e.setAttribute(o,""):_h(e,o,u);}}}function Zn(e,n,o){switch(fg(n,o),n){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "img":ie("error",e),ie("load",e);var u=false,c=false,f;for(f in o)if(o.hasOwnProperty(f)){var d=o[f];if(d!=null)switch(f){case "src":u=true;break;case "srcSet":c=true;break;case "children":case "dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Te(e,n,f,d,o,null);}}c&&Te(e,n,"srcSet",o.srcSet,o,null),u&&Te(e,n,"src",o.src,o,null);return;case "input":eu("input",o),ie("invalid",e);var m=f=d=c=null,x=null,v=null;for(u in o)if(o.hasOwnProperty(u)){var w=o[u];if(w!=null)switch(u){case "name":c=w;break;case "type":d=w;break;case "checked":x=w;break;case "defaultChecked":v=w;break;case "value":f=w;break;case "defaultValue":m=w;break;case "children":case "dangerouslySetInnerHTML":if(w!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Te(e,n,u,w,o,null);}}o4(e,o),i4(e,f,m,x,v,d,c,false);return;case "select":eu("select",o),ie("invalid",e),u=d=f=null;for(c in o)if(o.hasOwnProperty(c)&&(m=o[c],m!=null))switch(c){case "value":f=m;break;case "defaultValue":d=m;break;case "multiple":u=m;default:Te(e,n,c,m,o,null);}c4(e,o),n=f,o=d,e.multiple=!!u,n!=null?Lc(e,!!u,n,false):o!=null&&Lc(e,!!u,o,true);return;case "textarea":eu("textarea",o),ie("invalid",e),f=c=u=null;for(d in o)if(o.hasOwnProperty(d)&&(m=o[d],m!=null))switch(d){case "value":u=m;break;case "defaultValue":c=m;break;case "children":f=m;break;case "dangerouslySetInnerHTML":if(m!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Te(e,n,d,m,o,null);}s4(e,o),d4(e,u,c,f);return;case "option":u4(e,o);for(x in o)o.hasOwnProperty(x)&&(u=o[x],u!=null)&&(x==="selected"?e.selected=u&&typeof u!="function"&&typeof u!="symbol":Te(e,n,x,u,o,null));return;case "dialog":ie("beforetoggle",e),ie("toggle",e),ie("cancel",e),ie("close",e);break;case "iframe":case "object":ie("load",e);break;case "video":case "audio":for(u=0;u<r0.length;u++)ie(r0[u],e);break;case "image":ie("error",e),ie("load",e);break;case "details":ie("toggle",e);break;case "embed":case "source":case "link":ie("error",e),ie("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(v in o)if(o.hasOwnProperty(v)&&(u=o[v],u!=null))switch(v){case "children":case "dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Te(e,n,v,u,o,null);}return;default:if(qf(n)){for(w in o)o.hasOwnProperty(w)&&(u=o[w],u!==void 0&&dg(e,n,w,u,o,void 0));return}}for(m in o)o.hasOwnProperty(m)&&(u=o[m],u!=null&&Te(e,n,m,u,o,null));}function LC(e,n,o,u){switch(fg(n,u),n){case "div":case "span":case "svg":case "path":case "a":case "g":case "p":case "li":break;case "input":var c=null,f=null,d=null,m=null,x=null,v=null,w=null;for(q in o){var H=o[q];if(o.hasOwnProperty(q)&&H!=null)switch(q){case "checked":break;case "value":break;case "defaultValue":x=H;default:u.hasOwnProperty(q)||Te(e,n,q,null,u,H);}}for(var A in u){var q=u[A];if(H=o[A],u.hasOwnProperty(A)&&(q!=null||H!=null))switch(A){case "type":f=q;break;case "name":c=q;break;case "checked":v=q;break;case "defaultChecked":w=q;break;case "value":d=q;break;case "defaultValue":m=q;break;case "children":case "dangerouslySetInnerHTML":if(q!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:q!==H&&Te(e,n,A,q,u,H);}}n=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,u=u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null,n||!u||yM||(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"),yM=true),!n||u||hM||(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"),hM=true),k2(e,d,m,x,v,w,f,c);return;case "select":q=d=m=A=null;for(f in o)if(x=o[f],o.hasOwnProperty(f)&&x!=null)switch(f){case "value":break;case "multiple":q=x;default:u.hasOwnProperty(f)||Te(e,n,f,null,u,x);}for(c in u)if(f=u[c],x=o[c],u.hasOwnProperty(c)&&(f!=null||x!=null))switch(c){case "value":A=f;break;case "defaultValue":m=f;break;case "multiple":d=f;default:f!==x&&Te(e,n,c,f,u,x);}u=m,n=d,o=q,A!=null?Lc(e,!!n,A,false):!!o!=!!n&&(u!=null?Lc(e,!!n,u,true):Lc(e,!!n,n?[]:"",false));return;case "textarea":q=A=null;for(m in o)if(c=o[m],o.hasOwnProperty(m)&&c!=null&&!u.hasOwnProperty(m))switch(m){case "value":break;case "children":break;default:Te(e,n,m,null,u,c);}for(d in u)if(c=u[d],f=o[d],u.hasOwnProperty(d)&&(c!=null||f!=null))switch(d){case "value":A=c;break;case "defaultValue":q=c;break;case "children":break;case "dangerouslySetInnerHTML":if(c!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:c!==f&&Te(e,n,d,c,u,f);}f4(e,A,q);return;case "option":for(var ct in o)A=o[ct],o.hasOwnProperty(ct)&&A!=null&&!u.hasOwnProperty(ct)&&(ct==="selected"?e.selected=false:Te(e,n,ct,null,u,A));for(x in u)A=u[x],q=o[x],u.hasOwnProperty(x)&&A!==q&&(A!=null||q!=null)&&(x==="selected"?e.selected=A&&typeof A!="function"&&typeof A!="symbol":Te(e,n,x,A,u,q));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 yt in o)A=o[yt],o.hasOwnProperty(yt)&&A!=null&&!u.hasOwnProperty(yt)&&Te(e,n,yt,null,u,A);for(v in u)if(A=u[v],q=o[v],u.hasOwnProperty(v)&&A!==q&&(A!=null||q!=null))switch(v){case "children":case "dangerouslySetInnerHTML":if(A!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Te(e,n,v,A,u,q);}return;default:if(qf(n)){for(var Ne in o)A=o[Ne],o.hasOwnProperty(Ne)&&A!==void 0&&!u.hasOwnProperty(Ne)&&dg(e,n,Ne,void 0,u,A);for(w in u)A=u[w],q=o[w],!u.hasOwnProperty(w)||A===q||A===void 0&&q===void 0||dg(e,n,w,A,u,q);return}}for(var ue in o)A=o[ue],o.hasOwnProperty(ue)&&A!=null&&!u.hasOwnProperty(ue)&&Te(e,n,ue,null,u,A);for(H in u)A=u[H],q=o[H],!u.hasOwnProperty(H)||A===q||A==null&&q==null||Te(e,n,H,A,u,q);}function g5(e){switch(e){case "class":return "className";case "for":return "htmlFor";default:return e}}function hg(e){var n={};e=e.style;for(var o=0;o<e.length;o++){var u=e[o];n[u]=e.getPropertyValue(u);}return n}function x5(e,n,o){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,c=u="",f;for(f in n)if(n.hasOwnProperty(f)){var d=n[f];d!=null&&typeof d!="boolean"&&d!==""&&(f.indexOf("--")===0?($f(d,f),u+=c+f+":"+(""+d).trim()):typeof d!="number"||d===0||A6.has(f)?($f(d,f),u+=c+f.replace(M6,"-$1").toLowerCase().replace(_6,"-ms-")+":"+(""+d).trim()):u+=c+f.replace(M6,"-$1").toLowerCase().replace(_6,"-ms-")+":"+d+"px",c=";");}u=u||null,n=e.getAttribute("style"),n!==u&&(u=du(u),du(n)!==u&&(o.style=hg(e)));}}function zl(e,n,o,u,c,f){if(c.delete(o),e=e.getAttribute(o),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(Ee(u,n),e===""+u)return}Un(n,e,u,f);}function b5(e,n,o,u,c,f){if(c.delete(o),e=e.getAttribute(o),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}Un(n,e,u,f);}function yg(e,n,o,u,c,f){if(c.delete(o),e=e.getAttribute(o),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(Ee(u,o),e===""+u)return}Un(n,e,u,f);}function v5(e,n,o,u,c,f){if(c.delete(o),e=e.getAttribute(o),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)&&(Ee(u,n),e===""+u))return}Un(n,e,u,f);}function mg(e,n,o,u,c,f){if(c.delete(o),e=e.getAttribute(o),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(Ee(u,n),o=Xf(""+u),e===o)return}Un(n,e,u,f);}function S5(e,n,o,u){for(var c={},f=new Set,d=e.attributes,m=0;m<d.length;m++)switch(d[m].name.toLowerCase()){case "value":break;case "checked":break;case "selected":break;default:f.add(d[m].name);}if(qf(n)){for(var x in o)if(o.hasOwnProperty(x)){var v=o[x];if(v!=null){if(Br.hasOwnProperty(x))typeof v!="function"&&Ro(x,v);else if(o.suppressHydrationWarning!==true)switch(x){case "children":typeof v!="string"&&typeof v!="number"||Un("children",e.textContent,v,c);continue;case "suppressContentEditableWarning":case "suppressHydrationWarning":case "defaultValue":case "defaultChecked":case "innerHTML":case "ref":continue;case "dangerouslySetInnerHTML":d=e.innerHTML,v=v?v.__html:void 0,v!=null&&(v=m5(e,v),Un(x,d,v,c));continue;case "style":f.delete(x),x5(e,v,c);continue;case "offsetParent":case "offsetTop":case "offsetLeft":case "offsetWidth":case "offsetHeight":case "isContentEditable":case "outerText":case "outerHTML":f.delete(x.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",x);continue;case "className":f.delete("class"),d=n4(e,"class",v),Un("className",d,v,c);continue;default:u.context===ki&&n!=="svg"&&n!=="math"?f.delete(x.toLowerCase()):f.delete(x),d=n4(e,x,v),Un(x,d,v,c);}}}}else for(v in o)if(o.hasOwnProperty(v)&&(x=o[v],x!=null)){if(Br.hasOwnProperty(v))typeof x!="function"&&Ro(v,x);else if(o.suppressHydrationWarning!==true)switch(v){case "children":typeof x!="string"&&typeof x!="number"||Un("children",e.textContent,x,c);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,x=x?x.__html:void 0,x!=null&&(x=m5(e,x),d!==x&&(c[v]={__html:d}));continue;case "className":zl(e,v,"class",x,f,c);continue;case "tabIndex":zl(e,v,"tabindex",x,f,c);continue;case "style":f.delete(v),x5(e,x,c);continue;case "multiple":f.delete(v),Un(v,e.multiple,x,c);continue;case "muted":f.delete(v),Un(v,e.muted,x,c);continue;case "autoFocus":f.delete("autofocus"),Un(v,e.autofocus,x,c);continue;case "data":if(n!=="object"){f.delete(v),d=e.getAttribute("data"),Un(v,d,x,c);continue}case "src":case "href":if(!(x!==""||n==="a"&&v==="href"||n==="object"&&v==="data")){console.error(v==="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.',v,v);continue}mg(e,v,v,x,f,c);continue;case "action":case "formAction":if(d=e.getAttribute(v),typeof x=="function"){f.delete(v.toLowerCase()),v==="formAction"?(f.delete("name"),f.delete("formenctype"),f.delete("formmethod"),f.delete("formtarget")):(f.delete("enctype"),f.delete("method"),f.delete("target"));continue}else if(d===PR){f.delete(v.toLowerCase()),Un(v,"function",x,c);continue}mg(e,v,v.toLowerCase(),x,f,c);continue;case "xlinkHref":mg(e,v,"xlink:href",x,f,c);continue;case "contentEditable":yg(e,v,"contenteditable",x,f,c);continue;case "spellCheck":yg(e,v,"spellcheck",x,f,c);continue;case "draggable":case "autoReverse":case "externalResourcesRequired":case "focusable":case "preserveAlpha":yg(e,v,v,x,f,c);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":b5(e,v,v.toLowerCase(),x,f,c);continue;case "capture":case "download":t:{m=e;var w=d=v,H=c;if(f.delete(w),m=m.getAttribute(w),m===null)switch(typeof x){case "undefined":case "function":case "symbol":break t;default:if(x===false)break t}else if(x!=null)switch(typeof x){case "function":case "symbol":break;case "boolean":if(x===true&&m==="")break t;break;default:if(Ee(x,d),m===""+x)break t}Un(d,m,x,H);}continue;case "cols":case "rows":case "size":case "span":t:{if(m=e,w=d=v,H=c,f.delete(w),m=m.getAttribute(w),m===null)switch(typeof x){case "undefined":case "function":case "symbol":case "boolean":break t;default:if(isNaN(x)||1>x)break t}else if(x!=null)switch(typeof x){case "function":case "symbol":case "boolean":break;default:if(!(isNaN(x)||1>x)&&(Ee(x,d),m===""+x))break t}Un(d,m,x,H);}continue;case "rowSpan":v5(e,v,"rowspan",x,f,c);continue;case "start":v5(e,v,v,x,f,c);continue;case "xHeight":zl(e,v,"x-height",x,f,c);continue;case "xlinkActuate":zl(e,v,"xlink:actuate",x,f,c);continue;case "xlinkArcrole":zl(e,v,"xlink:arcrole",x,f,c);continue;case "xlinkRole":zl(e,v,"xlink:role",x,f,c);continue;case "xlinkShow":zl(e,v,"xlink:show",x,f,c);continue;case "xlinkTitle":zl(e,v,"xlink:title",x,f,c);continue;case "xlinkType":zl(e,v,"xlink:type",x,f,c);continue;case "xmlBase":zl(e,v,"xml:base",x,f,c);continue;case "xmlLang":zl(e,v,"xml:lang",x,f,c);continue;case "xmlSpace":zl(e,v,"xml:space",x,f,c);continue;case "inert":x!==""||D1[v]||(D1[v]=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.",v)),b5(e,v,v,x,f,c);continue;default:if(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N"){m=E4(v),d=false,u.context===ki&&n!=="svg"&&n!=="math"?f.delete(m.toLowerCase()):(w=v.toLowerCase(),w=By.hasOwnProperty(w)&&By[w]||null,w!==null&&w!==v&&(d=true,f.delete(w)),f.delete(m));t:if(w=e,H=m,m=x,Yf(H))if(w.hasAttribute(H))w=w.getAttribute(H),Ee(m,H),m=w===""+m?m:w;else {switch(typeof m){case "function":case "symbol":break t;case "boolean":if(w=H.toLowerCase().slice(0,5),w!=="data-"&&w!=="aria-")break t}m=m===void 0?void 0:null;}else m=void 0;d||Un(v,m,x,c);}}}return 0<f.size&&o.suppressHydrationWarning!==true&&$C(e,f,c),Object.keys(c).length===0?null:c}function YC(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 E5(e){switch(e){case "css":case "script":case "font":case "img":case "image":case "input":case "link":return true;default:return false}}function WC(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,o=performance.getEntriesByType("resource"),u=0;u<o.length;u++){var c=o[u],f=c.transferSize,d=c.initiatorType,m=c.duration;if(f&&m&&E5(d)){for(d=0,m=c.responseEnd,u+=1;u<o.length;u++){var x=o[u],v=x.startTime;if(v>m)break;var w=x.transferSize,H=x.initiatorType;w&&E5(H)&&(x=x.responseEnd,d+=w*(x<m?1:(m-v)/(x-v)));}if(--u,n+=8*(f+d)/(c.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 M5(e){switch(e){case us:return $s;case Wy:return O1;default:return ki}}function _5(e,n){if(e===ki)switch(n){case "svg":return $s;case "math":return O1;default:return ki}return e===$s&&n==="foreignObject"?ki:e}function pg(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 BC(){var e=window.event;return e&&e.type==="popstate"?e===Ix?false:(Ix=e,true):(Ix=null,false)}function md(){var e=window.event;return e&&e!==f0?e.type:null}function pd(){var e=window.event;return e&&e!==f0?e.timeStamp:-1.1}function jC(e){setTimeout(function(){throw e});}function qC(e,n,o){switch(n){case "button":case "input":case "select":case "textarea":o.autoFocus&&e.focus();break;case "img":o.src?e.src=o.src:o.srcSet&&(e.srcset=o.srcSet);}}function XC(){}function GC(e,n,o,u){LC(e,n,o,u),e[ya]=u;}function k5(e){jf(e,"");}function QC(e,n,o){e.nodeValue=o;}function z5(e){if(!e.__reactWarnedAboutChildrenConflict){var n=e[ya]||null;if(n!==null){var o=Yt(e);o!==null&&(typeof n.children=="string"||typeof n.children=="number"?(e.__reactWarnedAboutChildrenConflict=true,gt(o,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,gt(o,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 hu(e){return e==="head"}function VC(e,n){e.removeChild(n);}function ZC(e,n){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(n);}function T5(e,n){var o=n,u=0;do{var c=o.nextSibling;if(e.removeChild(o),c&&c.nodeType===8)if(o=c.data,o===s0||o===C1){if(u===0){e.removeChild(c),es(n);return}u--;}else if(o===c0||o===$u||o===ic||o===Ns||o===oc)u++;else if(o===t7)gd(e.ownerDocument.documentElement);else if(o===n7){o=e.ownerDocument.head,gd(o);for(var f=o.firstChild;f;){var d=f.nextSibling,m=f.nodeName;f[_d]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&f.rel.toLowerCase()==="stylesheet"||o.removeChild(f),f=d;}}else o===e7&&gd(e.ownerDocument.body);o=c;}while(o);es(n);}function A5(e,n){var o=e;e=0;do{var u=o.nextSibling;if(o.nodeType===1?n?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(n?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),u&&u.nodeType===8)if(o=u.data,o===s0){if(e===0)break;e--;}else o!==c0&&o!==$u&&o!==ic&&o!==Ns||e++;o=u;}while(o)}function JC(e){A5(e,true);}function KC(e){e=e.style,typeof e.setProperty=="function"?e.setProperty("display","none","important"):e.display="none";}function FC(e){e.nodeValue="";}function PC(e){A5(e,false);}function IC(e,n){n=n[a7],n=n!=null&&n.hasOwnProperty("display")?n.display:null,e.style.display=n==null||typeof n=="boolean"?"":(""+n).trim();}function tO(e,n){e.nodeValue=n;}function gg(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var o=n;switch(n=n.nextSibling,o.nodeName){case "HTML":case "HEAD":case "BODY":gg(o),ft(o);continue;case "SCRIPT":case "STYLE":continue;case "LINK":if(o.rel.toLowerCase()==="stylesheet")continue}e.removeChild(o);}}function eO(e,n,o,u){for(;e.nodeType===1;){var c=o;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[_d])switch(n){case "meta":if(!e.hasAttribute("itemprop"))break;return e;case "link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case "style":if(e.hasAttribute("data-precedence"))break;return e;case "script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){Ee(c.name,"name");var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=nl(e.nextSibling),e===null)break}return null}function nO(e,n,o){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!o||(e=nl(e.nextSibling),e===null))return null;return e}function D5(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=nl(e.nextSibling),e===null))return null;return e}function xg(e){return e.data===$u||e.data===ic}function bg(e){return e.data===Ns||e.data===$u&&e.ownerDocument.readyState!==xM}function aO(e,n){var o=e.ownerDocument;if(e.data===ic)e._reactRetry=n;else if(e.data!==$u||o.readyState!==xM)n();else {var u=function(){n(),o.removeEventListener("DOMContentLoaded",u);};o.addEventListener("DOMContentLoaded",u),e._reactRetry=u;}}function nl(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===c0||n===Ns||n===$u||n===ic||n===oc||n===Kx||n===gM)break;if(n===s0||n===C1)return null}}return e}function C5(e){if(e.nodeType===1){for(var n=e.nodeName.toLowerCase(),o={},u=e.attributes,c=0;c<u.length;c++){var f=u[c];o[g5(f.name)]=f.name.toLowerCase()==="style"?hg(e):f.value;}return {type:n,props:o}}return e.nodeType===8?e.data===oc?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function O5(e,n,o){return o===null||o[IR]!==true?(e.nodeValue===n?e=null:(n=du(n),e=du(e.nodeValue)===n?null:e.nodeValue),e):null}function vg(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o===s0||o===C1){if(n===0)return nl(e.nextSibling);n--;}else o!==c0&&o!==Ns&&o!==$u&&o!==ic&&o!==oc||n++;}e=e.nextSibling;}return null}function R5(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o===c0||o===Ns||o===$u||o===ic||o===oc){if(n===0)return e;n--;}else o!==s0&&o!==C1||n++;}e=e.previousSibling;}return null}function lO(e){es(e);}function oO(e){es(e);}function iO(e){es(e);}function w5(e,n,o,u,c){switch(c&&O2(e,u.ancestorInfo),n=My(o),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 uO(e,n,o,u){if(!o[gu]&&Yt(o)){var c=o.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.",c,c,c);}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(c=o.attributes;c.length;)o.removeAttributeNode(c[0]);Zn(o,e,n),o[Jn]=u,o[ya]=n;}function gd(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);ft(e);}function _y(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function H5(e,n,o){var u=Ls;if(u&&typeof n=="string"&&n){var c=kl(n);c='link[rel="'+e+'"][href="'+c+'"]',typeof o=="string"&&(c+='[crossorigin="'+o+'"]'),_M.has(c)||(_M.add(c),e={rel:e,crossOrigin:o,href:n},u.querySelector(c)===null&&(n=u.createElement("link"),Zn(n,"link",e),zt(n),u.head.appendChild(n)));}}function U5(e,n,o,u){var c=(c=mu.current)?_y(c):null;if(!c)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 o.precedence=="string"&&typeof o.href=="string"?(o=Ic(o.href),n=me(c).hoistableStyles,u=n.get(o),u||(u={type:"style",instance:null,count:0,state:null},n.set(o,u)),u):{type:"void",instance:null,count:0,state:null};case "link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){e=Ic(o.href);var f=me(c).hoistableStyles,d=f.get(e);if(!d&&(c=c.ownerDocument||c,d={type:"stylesheet",instance:null,count:0,state:{loading:rc,preload:null}},f.set(e,d),(f=c.querySelector(xd(e)))&&!f._p&&(d.instance=f,d.state.loading=d0|$l),!Ll.has(e))){var m={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy};Ll.set(e,m),f||rO(c,e,m,d.state);}if(n&&u===null)throw o=`
190
-
191
- - `+ky(n)+`
192
- + `+ky(o),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."+o);return d}if(n&&u!==null)throw o=`
193
-
194
- - `+ky(n)+`
195
- + `+ky(o),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."+o);return null;case "script":return n=o.async,o=o.src,typeof o=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(o=ts(o),n=me(c).hoistableScripts,u=n.get(o),u||(u={type:"script",instance:null,count:0,state:null},n.set(o,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 ky(e){var n=0,o="<link";return typeof e.rel=="string"?(n++,o+=' rel="'+e.rel+'"'):ao.call(e,"rel")&&(n++,o+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href=="string"?(n++,o+=' href="'+e.href+'"'):ao.call(e,"href")&&(n++,o+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence=="string"?(n++,o+=' precedence="'+e.precedence+'"'):ao.call(e,"precedence")&&(n++,o+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>n&&(o+=" ..."),o+" />"}function Ic(e){return 'href="'+kl(e)+'"'}function xd(e){return 'link[rel="stylesheet"]['+e+"]"}function N5(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function rO(e,n,o,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=d0:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=d0}),n.addEventListener("error",function(){return u.loading|=EM}),Zn(n,"link",o),zt(n),e.head.appendChild(n));}function ts(e){return '[src="'+kl(e)+'"]'}function bd(e){return "script[async]"+e}function $5(e,n,o){if(n.count++,n.instance===null)switch(n.type){case "style":var u=e.querySelector('style[data-href~="'+kl(o.href)+'"]');if(u)return n.instance=u,zt(u),u;var c=te({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),zt(u),Zn(u,"style",c),zy(u,o.precedence,e),n.instance=u;case "stylesheet":c=Ic(o.href);var f=e.querySelector(xd(c));if(f)return n.state.loading|=$l,n.instance=f,zt(f),f;u=N5(o),(c=Ll.get(c))&&Sg(u,c),f=(e.ownerDocument||e).createElement("link"),zt(f);var d=f;return d._p=new Promise(function(m,x){d.onload=m,d.onerror=x;}),Zn(f,"link",u),n.state.loading|=$l,zy(f,o.precedence,e),n.instance=f;case "script":return f=ts(o.src),(c=e.querySelector(bd(f)))?(n.instance=c,zt(c),c):(u=o,(c=Ll.get(f))&&(u=te({},o),Eg(u,c)),e=e.ownerDocument||e,c=e.createElement("script"),zt(c),Zn(c,"link",u),e.head.appendChild(c),n.instance=c);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&$l)===rc&&(u=n.instance,n.state.loading|=$l,zy(u,o.precedence,e));return n.instance}function zy(e,n,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=u.length?u[u.length-1]:null,f=c,d=0;d<u.length;d++){var m=u[d];if(m.dataset.precedence===n)f=m;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(n=o.nodeType===9?o.head:o,n.insertBefore(e,n.firstChild));}function Sg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title);}function Eg(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity);}function L5(e,n,o){if(R1===null){var u=new Map,c=R1=new Map;c.set(o,u);}else c=R1,u=c.get(o),u||(u=new Map,c.set(o,u));if(u.has(e))return u;for(u.set(e,null),o=o.getElementsByTagName(e),c=0;c<o.length;c++){var f=o[c];if(!(f[_d]||f[Jn]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!==us){var d=f.getAttribute(n)||"";d=e+d;var m=u.get(d);m?m.push(f):u.set(d,[f]);}}return u}function Y5(e,n,o){e=e.ownerDocument||e,e.head.insertBefore(o,n==="title"?e.querySelector("head > title"):null);}function cO(e,n,o){var u=!o.ancestorInfo.containerTagInScope;if(o.context===$s||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 c=n.onError,f=n.disabled;o=[],n.onLoad&&o.push("`onLoad`"),c&&o.push("`onError`"),f!=null&&o.push("`disabled`"),c=YC(o,"and"),c+=o.length===1?" prop":" props",f=o.length===1?"an "+c:"the "+c,o.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,f,c);}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&MM)===rc)}function sO(e,n,o,u){if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==false)&&(o.state.loading&$l)===rc){if(o.instance===null){var c=Ic(u.href),f=n.querySelector(xd(c));if(f){n=f._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Ty.bind(e),n.then(e,e)),o.state.loading|=$l,o.instance=f,zt(f);return}f=n.ownerDocument||n,u=N5(u),(c=Ll.get(c))&&Sg(u,c),f=f.createElement("link"),zt(f);var d=f;d._p=new Promise(function(m,x){d.onload=m,d.onerror=x;}),Zn(f,"link",u),o.instance=f;}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(o,n),(n=o.state.preload)&&(o.state.loading&MM)===rc&&(e.count++,o=Ty.bind(e),n.addEventListener("load",o),n.addEventListener("error",o));}}function fO(e,n){return e.stylesheets&&e.count===0&&Ay(e,e.stylesheets),0<e.count||0<e.imgCount?function(o){var u=setTimeout(function(){if(e.stylesheets&&Ay(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f();}},i7+n);0<e.imgBytes&&eb===0&&(eb=125*WC()*r7);var c=setTimeout(function(){if(e.waitingForImages=false,e.count===0&&(e.stylesheets&&Ay(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f();}},(e.imgBytes>eb?50:u7)+n);return e.unsuspend=o,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(c);}}:null}function Ty(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ay(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e();}}}function Ay(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,w1=new Map,n.forEach(dO,e),w1=null,Ty.call(e));}function dO(e,n){if(!(n.state.loading&$l)){var o=w1.get(e);if(o)var u=o.get(nb);else {o=new Map,w1.set(e,o);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var d=c[f];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(o.set(d.dataset.precedence,d),u=d);}u&&o.set(nb,u);}c=n.instance,d=c.getAttribute("data-precedence"),f=o.get(d)||u,f===u&&o.set(nb,c),o.set(d,c),this.count++,u=Ty.bind(this),c.addEventListener("load",u),c.addEventListener("error",u),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),n.state.loading|=$l;}}function hO(e,n,o,u,c,f,d,m,x){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=uc,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=$c(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$c(0),this.hiddenUpdates=$c(null),this.identifierPrefix=u,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,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=o?"hydrateRoot()":"createRoot()";}function B5(e,n,o,u,c,f,d,m,x,v,w,H){return e=new hO(e,n,o,d,x,v,w,H,m),n=wR,f===true&&(n|=ra|oo),n|=Qt,f=b(3,null,null,n),e.current=f,f.stateNode=e,n=K2(),Hr(n),e.pooledCache=n,Hr(n),f.memoizedState={element:u,isDehydrated:o,cache:n},ep(f),e}function j5(e){return e?(e=Su,e):Su}function Mg(e,n,o,u,c,f){if(ua&&typeof ua.onScheduleFiberRoot=="function")try{ua.onScheduleFiberRoot(os,u,o);}catch(d){No||(No=true,console.error("React instrumentation encountered an error: %o",d));}c=j5(c),u.context===null?u.context=c:u.pendingContext=c,Uo&&ll!==null&&!AM&&(AM=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.`,P(ll)||"Unknown")),u=iu(n),u.payload={element:o},f=f===void 0?null:f,f!==null&&(typeof f!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",f),u.callback=f),o=uu(e,u,n),o!==null&&(vo(n,"root.render()",null),nn(o,e,n),If(o,e,n));}function q5(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n;}}function _g(e,n){q5(e,n),(e=e.alternate)&&q5(e,n);}function X5(e){if(e.tag===13||e.tag===31){var n=ia(e,67108864);n!==null&&nn(n,e,67108864),_g(e,67108864);}}function G5(e){if(e.tag===13||e.tag===31){var n=el(e);n=kr(n);var o=ia(e,n);o!==null&&nn(o,e,n),_g(e,n);}}function yO(){return ll}function mO(e,n,o,u){var c=Q.T;Q.T=null;var f=ge.p;try{ge.p=ol,kg(e,n,o,u);}finally{ge.p=f,Q.T=c;}}function pO(e,n,o,u){var c=Q.T;Q.T=null;var f=ge.p;try{ge.p=lo,kg(e,n,o,u);}finally{ge.p=f,Q.T=c;}}function kg(e,n,o,u){if(U1){var c=zg(u);if(c===null)sg(e,n,u,N1,o),V5(e,u);else if(gO(c,e,n,o,u))u.stopPropagation();else if(V5(e,u),n&4&&-1<s7.indexOf(e)){for(;c!==null;){var f=Yt(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var d=po(f.pendingLanes);if(d!==0){var m=f;for(m.pendingLanes|=2,m.entangledLanes|=2;d;){var x=1<<31-ha(d);m.entanglements[1]|=x,d&=~x;}Oo(f),(de&(Cn|cl))===Yn&&(x1=Nn()+nM,hd(0));}}break;case 31:case 13:m=ia(f,2),m!==null&&nn(m,f,2),Kc(),_g(f,2);}if(f=zg(u),f===null&&sg(e,n,u,N1,o),f===c)break;c=f;}c!==null&&u.stopPropagation();}else sg(e,n,u,null,o);}}function zg(e){return e=R2(e),Tg(e)}function Tg(e){if(N1=null,e=St(e),e!==null){var n=C(e);if(n===null)e=null;else {var o=n.tag;if(o===13){if(e=z(n),e!==null)return e;e=null;}else if(o===31){if(e=O(n),e!==null)return e;e=null;}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null;}else n!==e&&(e=null);}}return N1=e,null}function Q5(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 ol;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 lo;case "message":switch(TO()){case Bg:return ol;case jg:return lo;case ls:case AO:return Lo;case qg:return Ly;default:return Lo}default:return Lo}}function V5(e,n){switch(e){case "focusin":case "focusout":Lu=null;break;case "dragenter":case "dragleave":Yu=null;break;case "mouseover":case "mouseout":Wu=null;break;case "pointerover":case "pointerout":y0.delete(n.pointerId);break;case "gotpointercapture":case "lostpointercapture":m0.delete(n.pointerId);}}function vd(e,n,o,u,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:o,eventSystemFlags:u,nativeEvent:f,targetContainers:[c]},n!==null&&(n=Yt(n),n!==null&&X5(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function gO(e,n,o,u,c){switch(n){case "focusin":return Lu=vd(Lu,e,n,o,u,c),true;case "dragenter":return Yu=vd(Yu,e,n,o,u,c),true;case "mouseover":return Wu=vd(Wu,e,n,o,u,c),true;case "pointerover":var f=c.pointerId;return y0.set(f,vd(y0.get(f)||null,e,n,o,u,c)),true;case "gotpointercapture":return f=c.pointerId,m0.set(f,vd(m0.get(f)||null,e,n,o,u,c)),true}return false}function Z5(e){var n=St(e.target);if(n!==null){var o=C(n);if(o!==null){if(n=o.tag,n===13){if(n=z(o),n!==null){e.blockedOn=n,ot(e.priority,function(){G5(o);});return}}else if(n===31){if(n=O(o),n!==null){e.blockedOn=n,ot(e.priority,function(){G5(o);});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null;}function Dy(e){if(e.blockedOn!==null)return false;for(var n=e.targetContainers;0<n.length;){var o=zg(e.nativeEvent);if(o===null){o=e.nativeEvent;var u=new o.constructor(o.type,o),c=u;kd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),kd=c,o.target.dispatchEvent(u),kd===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."),kd=null;}else return n=Yt(o),n!==null&&X5(n),e.blockedOn=o,false;n.shift();}return true}function J5(e,n,o){Dy(e)&&o.delete(n);}function xO(){ab=false,Lu!==null&&Dy(Lu)&&(Lu=null),Yu!==null&&Dy(Yu)&&(Yu=null),Wu!==null&&Dy(Wu)&&(Wu=null),y0.forEach(J5),m0.forEach(J5);}function Cy(e,n){e.blockedOn===n&&(e.blockedOn=null,ab||(ab=true,mn.unstable_scheduleCallback(mn.unstable_NormalPriority,xO)));}function K5(e){$1!==e&&($1=e,mn.unstable_scheduleCallback(mn.unstable_NormalPriority,function(){$1===e&&($1=null);for(var n=0;n<e.length;n+=3){var o=e[n],u=e[n+1],c=e[n+2];if(typeof u!="function"){if(Tg(u||o)===null)continue;break}var f=Yt(o);f!==null&&(e.splice(n,3),n-=3,o={pending:true,data:c,method:o.method,action:u},Object.freeze(o),Tp(f,o,u,c));}}));}function es(e){function n(x){return Cy(x,e)}Lu!==null&&Cy(Lu,e),Yu!==null&&Cy(Yu,e),Wu!==null&&Cy(Wu,e),y0.forEach(n),m0.forEach(n);for(var o=0;o<Bu.length;o++){var u=Bu[o];u.blockedOn===e&&(u.blockedOn=null);}for(;0<Bu.length&&(o=Bu[0],o.blockedOn===null);)Z5(o),o.blockedOn===null&&Bu.shift();if(o=(e.ownerDocument||e).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var c=o[u],f=o[u+1],d=c[ya]||null;if(typeof f=="function")d||K5(o);else if(d){var m=null;if(f&&f.hasAttribute("formAction")){if(c=f,d=f[ya]||null)m=d.formAction;else if(Tg(c)!==null)continue}else m=d.action;typeof m=="function"?o[u+1]=m:(o.splice(u,3),u-=3),K5(o);}}}function F5(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(d){return c=d})},focusReset:"manual",scroll:"manual"});}function n(){c!==null&&(c(),c=null),u||setTimeout(o,20);}function o(){if(!u&&!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 u=false,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(o,100),function(){u=true,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),c!==null&&(c(),c=null);}}}function Ag(e){this._internalRoot=e;}function Oy(e){this._internalRoot=e;}function P5(e){e[gu]&&(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 mn=Tb(),Dg=Yl(),bO=Db(),te=Object.assign,vO=Symbol.for("react.element"),wo=Symbol.for("react.transitional.element"),ns=Symbol.for("react.portal"),as=Symbol.for("react.fragment"),Ry=Symbol.for("react.strict_mode"),Cg=Symbol.for("react.profiler"),Og=Symbol.for("react.consumer"),Ho=Symbol.for("react.context"),Sd=Symbol.for("react.forward_ref"),Rg=Symbol.for("react.suspense"),wg=Symbol.for("react.suspense_list"),wy=Symbol.for("react.memo"),al=Symbol.for("react.lazy"),Hg=Symbol.for("react.activity"),SO=Symbol.for("react.memo_cache_sentinel"),I5=Symbol.iterator,EO=Symbol.for("react.client.reference"),An=Array.isArray,Q=Dg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=bO.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,MO=Object.freeze({pending:false,data:null,method:null,action:null}),Ug=[],Ng=[],fi=-1,yu=fe(null),Ed=fe(null),mu=fe(null),Hy=fe(null),Md=0,t6,e6,n6,a6,l6,o6,i6;Gn.__reactDisabledLog=true;var $g,u6,Lg=false,Yg=new(typeof WeakMap=="function"?WeakMap:Map),ll=null,Uo=false,ao=Object.prototype.hasOwnProperty,Wg=mn.unstable_scheduleCallback,_O=mn.unstable_cancelCallback,kO=mn.unstable_shouldYield,zO=mn.unstable_requestPaint,Nn=mn.unstable_now,TO=mn.unstable_getCurrentPriorityLevel,Bg=mn.unstable_ImmediatePriority,jg=mn.unstable_UserBlockingPriority,ls=mn.unstable_NormalPriority,AO=mn.unstable_LowPriority,qg=mn.unstable_IdlePriority,DO=mn.log,CO=mn.unstable_setDisableYieldValue,os=null,ua=null,No=false,$o=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ha=Math.clz32?Math.clz32:Eh,OO=Math.log,RO=Math.LN2,Uy=256,Ny=262144,$y=4194304,ol=2,lo=8,Lo=32,Ly=268435456,pu=Math.random().toString(36).slice(2),Jn="__reactFiber$"+pu,ya="__reactProps$"+pu,gu="__reactContainer$"+pu,Xg="__reactEvents$"+pu,wO="__reactListeners$"+pu,HO="__reactHandles$"+pu,r6="__reactResources$"+pu,_d="__reactMarker$"+pu,c6=new Set,Br={},Gg={},UO={button:true,checkbox:true,image:true,hidden:true,radio:true,reset:true,submit:true},NO=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]*$"),s6={},f6={},$O=/[\n"\\]/g,d6=false,h6=false,y6=false,m6=false,p6=false,g6=false,x6=["value","defaultValue"],b6=false,v6=/["'&<>\n\t]|^\s|\s$/,LO="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(" "),S6="applet caption html table td th marquee object template foreignObject desc title".split(" "),YO=S6.concat(["button"]),WO="dd dt li option optgroup p rp rt".split(" "),E6={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:false},Yy={},Qg={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"]},M6=/([A-Z])/g,_6=/^ms-/,BO=/^(?:webkit|moz|o)[A-Z]/,jO=/^-ms-/,qO=/-(.)/g,k6=/;\s*$/,is={},Vg={},z6=false,T6=false,A6=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(" ")),Wy="http://www.w3.org/1998/Math/MathML",us="http://www.w3.org/2000/svg",XO=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"]]),By={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"},D6={"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},rs={},GO=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]*$"),QO=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]*$"),C6=false,ma={},O6=/^on./,VO=/^on[^A-Z]/,ZO=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]*$"),JO=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]*$"),KO=/^[\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,kd=null,cs=null,ss=null,Zg=false,Yo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jg=false;if(Yo)try{var zd={};Object.defineProperty(zd,"passive",{get:function(){Jg=!0;}}),window.addEventListener("test",zd,zd),window.removeEventListener("test",zd,zd);}catch{Jg=false;}var xu=null,Kg=null,jy=null,jr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qy=Ca(jr),Td=te({},jr,{view:0,detail:0}),FO=Ca(Td),Fg,Pg,Ad,Xy=te({},Td,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:w2,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!==Ad&&(Ad&&e.type==="mousemove"?(Fg=e.screenX-Ad.screenX,Pg=e.screenY-Ad.screenY):Pg=Fg=0,Ad=e),Fg)},movementY:function(e){return "movementY"in e?e.movementY:Pg}}),R6=Ca(Xy),PO=te({},Xy,{dataTransfer:0}),IO=Ca(PO),tR=te({},Td,{relatedTarget:0}),Ig=Ca(tR),eR=te({},jr,{animationName:0,elapsedTime:0,pseudoElement:0}),nR=Ca(eR),aR=te({},jr,{clipboardData:function(e){return "clipboardData"in e?e.clipboardData:window.clipboardData}}),lR=Ca(aR),oR=te({},jr,{data:0}),w6=Ca(oR),iR=w6,uR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rR={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"},cR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},sR=te({},Td,{key:function(e){if(e.key){var n=uR[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Dh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:w2,charCode:function(e){return e.type==="keypress"?Dh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Dh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fR=Ca(sR),dR=te({},Xy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),H6=Ca(dR),hR=te({},Td,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:w2}),yR=Ca(hR),mR=te({},jr,{propertyName:0,elapsedTime:0,pseudoElement:0}),pR=Ca(mR),gR=te({},Xy,{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}),xR=Ca(gR),bR=te({},jr,{newState:0,oldState:0}),vR=Ca(bR),SR=[9,13,27,32],U6=229,tx=Yo&&"CompositionEvent"in window,Dd=null;Yo&&"documentMode"in document&&(Dd=document.documentMode);var ER=Yo&&"TextEvent"in window&&!Dd,N6=Yo&&(!tx||Dd&&8<Dd&&11>=Dd),$6=32,L6=String.fromCharCode($6),Y6=false,fs=false,MR={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},Cd=null,Od=null,W6=false;Yo&&(W6=qD("input")&&(!document.documentMode||9<document.documentMode));var pa=typeof Object.is=="function"?Object.is:JD,_R=Yo&&"documentMode"in document&&11>=document.documentMode,ds=null,ex=null,Rd=null,nx=false,hs={animationend:Tr("Animation","AnimationEnd"),animationiteration:Tr("Animation","AnimationIteration"),animationstart:Tr("Animation","AnimationStart"),transitionrun:Tr("Transition","TransitionRun"),transitionstart:Tr("Transition","TransitionStart"),transitioncancel:Tr("Transition","TransitionCancel"),transitionend:Tr("Transition","TransitionEnd")},ax={},B6={};Yo&&(B6=document.createElement("div").style,"AnimationEvent"in window||(delete hs.animationend.animation,delete hs.animationiteration.animation,delete hs.animationstart.animation),"TransitionEvent"in window||delete hs.transitionend.transition);var j6=Ar("animationend"),q6=Ar("animationiteration"),X6=Ar("animationstart"),kR=Ar("transitionrun"),zR=Ar("transitionstart"),TR=Ar("transitioncancel"),G6=Ar("transitionend"),Q6=new Map,lx="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(" ");lx.push("scrollEnd");var V6=0;if(typeof performance=="object"&&typeof performance.now=="function")var AR=performance,Z6=function(){return AR.now()};else {var DR=Date;Z6=function(){return DR.now()};}var ox=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);},CR="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.",Gy=0,ix=1,ux=2,rx=3,Qy="\u2013\xA0",Vy="+\xA0",J6="\u2007\xA0",We=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Tl="Components \u269B",ee="Scheduler \u269B",ae="Blocking",bu=false,di={color:"primary",properties:null,tooltipText:"",track:Tl},vu={start:-0,end:-0,detail:{devtools:di}},OR=["Changed Props",""],K6="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",RR=["Changed Props",K6],wd=1,hi=2,Al=[],ys=0,cx=0,Su={};Object.freeze(Su);var Dl=null,ms=null,Rt=0,wR=1,Qt=2,ra=8,oo=16,HR=32,F6=false;try{var P6=Object.preventExtensions({});}catch{F6=true;}var sx=new WeakMap,ps=[],gs=0,Zy=null,Hd=0,Cl=[],Ol=0,qr=null,yi=1,mi="",Kn=null,Be=null,le=false,Wo=false,il=null,Eu=null,Rl=false,fx=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."),dx=fe(null),hx=fe(null),I6={},Jy=null,xs=null,bs=false,UR=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:false,addEventListener:function(o,u){e.push(u);}};this.abort=function(){n.aborted=true,e.forEach(function(o){return o()});};},NR=mn.unstable_scheduleCallback,$R=mn.unstable_NormalPriority,pn={$$typeof:Ho,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},gn=mn.unstable_now,Ky=console.createTask?console.createTask:function(){return null},Ud=1,Fy=2,$n=-0,Mu=-0,pi=-0,gi=null,ga=-1.1,Xr=-0,Fe=-0,Tt=-1.1,Dt=-1.1,Ge=null,an=false,_u=-0,Bo=-1.1,Nd=null,ku=0,yx=null,mx=null,Gr=-1.1,$d=null,vs=-1.1,Py=-1.1,jo=-0,xi=-1.1,wl=-1.1,px=0,Ld=null,t8=null,e8=null,zu=-1.1,Qr=null,Tu=-1.1,Iy=-1.1,n8=-0,a8=-0,t1=0,bi=null,l8=0,Yd=-1.1,e1=false,n1=false,Wd=null,gx=0,Vr=0,Ss=null,o8=Q.S;Q.S=function(e,n){if(tM=Nn(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>xi&&0>wl){xi=gn();var o=pd(),u=md();(o!==Tu||u!==Qr)&&(Tu=-1.1),zu=o,Qr=u;}nC(e,n);}o8!==null&&o8(e,n);};var Zr=fe(null),io={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Bd=[],jd=[],qd=[],Xd=[],Gd=[],Qd=[],Jr=new Set;io.recordUnsafeLifecycleWarnings=function(e,n){Jr.has(e.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==true&&Bd.push(e),e.mode&ra&&typeof n.UNSAFE_componentWillMount=="function"&&jd.push(e),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==true&&qd.push(e),e.mode&ra&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&Xd.push(e),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==true&&Gd.push(e),e.mode&ra&&typeof n.UNSAFE_componentWillUpdate=="function"&&Qd.push(e));},io.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Bd.length&&(Bd.forEach(function(m){e.add(P(m)||"Component"),Jr.add(m.type);}),Bd=[]);var n=new Set;0<jd.length&&(jd.forEach(function(m){n.add(P(m)||"Component"),Jr.add(m.type);}),jd=[]);var o=new Set;0<qd.length&&(qd.forEach(function(m){o.add(P(m)||"Component"),Jr.add(m.type);}),qd=[]);var u=new Set;0<Xd.length&&(Xd.forEach(function(m){u.add(P(m)||"Component"),Jr.add(m.type);}),Xd=[]);var c=new Set;0<Gd.length&&(Gd.forEach(function(m){c.add(P(m)||"Component"),Jr.add(m.type);}),Gd=[]);var f=new Set;if(0<Qd.length&&(Qd.forEach(function(m){f.add(P(m)||"Component"),Jr.add(m.type);}),Qd=[]),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<f.size&&(d=M(f),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<o.size&&(d=M(o),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<c.size&&(d=M(c),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 a1=new Map,i8=new Set;io.recordLegacyContextWarning=function(e,n){for(var o=null,u=e;u!==null;)u.mode&ra&&(o=u),u=u.return;o===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."):!i8.has(e.type)&&(u=a1.get(o),e.type.contextTypes!=null||e.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(u===void 0&&(u=[],a1.set(o,u)),u.push(e));},io.flushLegacyContextWarning=function(){a1.forEach(function(e){if(e.length!==0){var n=e[0],o=new Set;e.forEach(function(c){o.add(P(c)||"Component"),i8.add(c.type);});var u=M(o);gt(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);});}});},io.discardPendingWarnings=function(){Bd=[],jd=[],qd=[],Xd=[],Gd=[],Qd=[],a1=new Map;};var u8={react_stack_bottom_frame:function(e,n,o){var u=Uo;Uo=true;try{return e(n,o)}finally{Uo=u;}}},xx=u8.react_stack_bottom_frame.bind(u8),r8={react_stack_bottom_frame:function(e){var n=Uo;Uo=true;try{return e.render()}finally{Uo=n;}}},c8=r8.react_stack_bottom_frame.bind(r8),s8={react_stack_bottom_frame:function(e,n){try{n.componentDidMount();}catch(o){pe(e,e.return,o);}}},bx=s8.react_stack_bottom_frame.bind(s8),f8={react_stack_bottom_frame:function(e,n,o,u,c){try{n.componentDidUpdate(o,u,c);}catch(f){pe(e,e.return,f);}}},d8=f8.react_stack_bottom_frame.bind(f8),h8={react_stack_bottom_frame:function(e,n){var o=n.stack;e.componentDidCatch(n.value,{componentStack:o!==null?o:""});}},LR=h8.react_stack_bottom_frame.bind(h8),y8={react_stack_bottom_frame:function(e,n,o){try{o.componentWillUnmount();}catch(u){pe(e,n,u);}}},m8=y8.react_stack_bottom_frame.bind(y8),p8={react_stack_bottom_frame:function(e){var n=e.create;return e=e.inst,n=n(),e.destroy=n}},YR=p8.react_stack_bottom_frame.bind(p8),g8={react_stack_bottom_frame:function(e,n,o){try{o();}catch(u){pe(e,n,u);}}},WR=g8.react_stack_bottom_frame.bind(g8),x8={react_stack_bottom_frame:function(e){var n=e._init;return n(e._payload)}},BR=x8.react_stack_bottom_frame.bind(x8),Es=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`."),vx=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."),l1=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."),o1={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.');}},Kr=null,Vd=false,Ms=null,Zd=0,Vt=null,Sx,b8=Sx=false,v8={},S8={},E8={};_=function(e,n,o){if(o!==null&&typeof o=="object"&&o._store&&(!o._store.validated&&o.key==null||o._store.validated===2)){if(typeof o._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.");o._store.validated=1;var u=P(e),c=u||"null";if(!v8[c]){v8[c]=true,o=o._owner,e=e._debugOwner;var f="";e&&typeof e.tag=="number"&&(c=P(e))&&(f=`
233
-
234
- Check the render method of \``+c+"`."),f||u&&(f=`
235
-
236
- Check the top-level render call using <`+u+">.");var d="";o!=null&&e!==o&&(u=null,typeof o.tag=="number"?u=P(o):typeof o.name=="string"&&(u=o.name),u&&(d=" It was passed a child from "+u+".")),gt(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.',f,d);});}}};var Fr=yE(true),M8=yE(false),_8=0,k8=1,z8=2,Ex=3,Au=false,T8=false,Mx=null,_x=false,_s=fe(null),i1=fe(0),ul=fe(null),Hl=null,ks=1,Jd=2,cn=fe(0),u1=0,Ul=1,xa=2,rl=4,ba=8,zs,A8=new Set,D8=new Set,kx=new Set,C8=new Set,vi=0,Ht=null,Ae=null,xn=null,r1=false,Ts=false,Pr=false,c1=0,Kd=0,Si=null,jR=0,qR=25,G=null,Nl=null,Ei=-1,Fd=false,Pd={readContext:Xe,use:su,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};Pd.useEffectEvent=ln;var zx=null,O8=null,Tx=null,R8=null,qo=null,uo=null,s1=null;zx={readContext:function(e){return Xe(e)},use:su,useCallback:function(e,n){return G="useCallback",It(),qc(n),Mp(e,n)},useContext:function(e){return G="useContext",It(),Xe(e)},useEffect:function(e,n){return G="useEffect",It(),qc(n),ay(e,n)},useImperativeHandle:function(e,n,o){return G="useImperativeHandle",It(),qc(o),Ep(e,n,o)},useInsertionEffect:function(e,n){G="useInsertionEffect",It(),qc(n),Nr(4,xa,e,n);},useLayoutEffect:function(e,n){return G="useLayoutEffect",It(),qc(n),Sp(e,n)},useMemo:function(e,n){G="useMemo",It(),qc(n);var o=Q.H;Q.H=qo;try{return _p(e,n)}finally{Q.H=o;}},useReducer:function(e,n,o){G="useReducer",It();var u=Q.H;Q.H=qo;try{return dp(e,n,o)}finally{Q.H=u;}},useRef:function(e){return G="useRef",It(),bp(e)},useState:function(e){G="useState",It();var n=Q.H;Q.H=qo;try{return pp(e)}finally{Q.H=n;}},useDebugValue:function(){G="useDebugValue",It();},useDeferredValue:function(e,n){return G="useDeferredValue",It(),kp(e,n)},useTransition:function(){return G="useTransition",It(),Ap()},useSyncExternalStore:function(e,n,o){return G="useSyncExternalStore",It(),yp(e,n,o)},useId:function(){return G="useId",It(),Dp()},useFormState:function(e,n){return G="useFormState",It(),Ph(),Gc(e,n)},useActionState:function(e,n){return G="useActionState",It(),Gc(e,n)},useOptimistic:function(e){return G="useOptimistic",It(),gp(e)},useHostTransitionStatus:$r,useMemoCache:Ur,useCacheRefresh:function(){return G="useCacheRefresh",It(),Cp()},useEffectEvent:function(e){return G="useEffectEvent",It(),vp(e)}},O8={readContext:function(e){return Xe(e)},use:su,useCallback:function(e,n){return G="useCallback",et(),Mp(e,n)},useContext:function(e){return G="useContext",et(),Xe(e)},useEffect:function(e,n){return G="useEffect",et(),ay(e,n)},useImperativeHandle:function(e,n,o){return G="useImperativeHandle",et(),Ep(e,n,o)},useInsertionEffect:function(e,n){G="useInsertionEffect",et(),Nr(4,xa,e,n);},useLayoutEffect:function(e,n){return G="useLayoutEffect",et(),Sp(e,n)},useMemo:function(e,n){G="useMemo",et();var o=Q.H;Q.H=qo;try{return _p(e,n)}finally{Q.H=o;}},useReducer:function(e,n,o){G="useReducer",et();var u=Q.H;Q.H=qo;try{return dp(e,n,o)}finally{Q.H=u;}},useRef:function(e){return G="useRef",et(),bp(e)},useState:function(e){G="useState",et();var n=Q.H;Q.H=qo;try{return pp(e)}finally{Q.H=n;}},useDebugValue:function(){G="useDebugValue",et();},useDeferredValue:function(e,n){return G="useDeferredValue",et(),kp(e,n)},useTransition:function(){return G="useTransition",et(),Ap()},useSyncExternalStore:function(e,n,o){return G="useSyncExternalStore",et(),yp(e,n,o)},useId:function(){return G="useId",et(),Dp()},useActionState:function(e,n){return G="useActionState",et(),Gc(e,n)},useFormState:function(e,n){return G="useFormState",et(),Ph(),Gc(e,n)},useOptimistic:function(e){return G="useOptimistic",et(),gp(e)},useHostTransitionStatus:$r,useMemoCache:Ur,useCacheRefresh:function(){return G="useCacheRefresh",et(),Cp()},useEffectEvent:function(e){return G="useEffectEvent",et(),vp(e)}},Tx={readContext:function(e){return Xe(e)},use:su,useCallback:function(e,n){return G="useCallback",et(),iy(e,n)},useContext:function(e){return G="useContext",et(),Xe(e)},useEffect:function(e,n){G="useEffect",et(),Oa(2048,ba,e,n);},useImperativeHandle:function(e,n,o){return G="useImperativeHandle",et(),oy(e,n,o)},useInsertionEffect:function(e,n){return G="useInsertionEffect",et(),Oa(4,xa,e,n)},useLayoutEffect:function(e,n){return G="useLayoutEffect",et(),Oa(4,rl,e,n)},useMemo:function(e,n){G="useMemo",et();var o=Q.H;Q.H=uo;try{return uy(e,n)}finally{Q.H=o;}},useReducer:function(e,n,o){G="useReducer",et();var u=Q.H;Q.H=uo;try{return Xc(e,n,o)}finally{Q.H=u;}},useRef:function(){return G="useRef",et(),ve().memoizedState},useState:function(){G="useState",et();var e=Q.H;Q.H=uo;try{return Xc(eo)}finally{Q.H=e;}},useDebugValue:function(){G="useDebugValue",et();},useDeferredValue:function(e,n){return G="useDeferredValue",et(),NE(e,n)},useTransition:function(){return G="useTransition",et(),jE()},useSyncExternalStore:function(e,n,o){return G="useSyncExternalStore",et(),ty(e,n,o)},useId:function(){return G="useId",et(),ve().memoizedState},useFormState:function(e){return G="useFormState",et(),Ph(),ey(e)},useActionState:function(e){return G="useActionState",et(),ey(e)},useOptimistic:function(e,n){return G="useOptimistic",et(),zE(e,n)},useHostTransitionStatus:$r,useMemoCache:Ur,useCacheRefresh:function(){return G="useCacheRefresh",et(),ve().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",et(),ly(e)}},R8={readContext:function(e){return Xe(e)},use:su,useCallback:function(e,n){return G="useCallback",et(),iy(e,n)},useContext:function(e){return G="useContext",et(),Xe(e)},useEffect:function(e,n){G="useEffect",et(),Oa(2048,ba,e,n);},useImperativeHandle:function(e,n,o){return G="useImperativeHandle",et(),oy(e,n,o)},useInsertionEffect:function(e,n){return G="useInsertionEffect",et(),Oa(4,xa,e,n)},useLayoutEffect:function(e,n){return G="useLayoutEffect",et(),Oa(4,rl,e,n)},useMemo:function(e,n){G="useMemo",et();var o=Q.H;Q.H=s1;try{return uy(e,n)}finally{Q.H=o;}},useReducer:function(e,n,o){G="useReducer",et();var u=Q.H;Q.H=s1;try{return ad(e,n,o)}finally{Q.H=u;}},useRef:function(){return G="useRef",et(),ve().memoizedState},useState:function(){G="useState",et();var e=Q.H;Q.H=s1;try{return ad(eo)}finally{Q.H=e;}},useDebugValue:function(){G="useDebugValue",et();},useDeferredValue:function(e,n){return G="useDeferredValue",et(),$E(e,n)},useTransition:function(){return G="useTransition",et(),qE()},useSyncExternalStore:function(e,n,o){return G="useSyncExternalStore",et(),ty(e,n,o)},useId:function(){return G="useId",et(),ve().memoizedState},useFormState:function(e){return G="useFormState",et(),Ph(),ny(e)},useActionState:function(e){return G="useActionState",et(),ny(e)},useOptimistic:function(e,n){return G="useOptimistic",et(),AE(e,n)},useHostTransitionStatus:$r,useMemoCache:Ur,useCacheRefresh:function(){return G="useCacheRefresh",et(),ve().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",et(),ly(e)}},qo={readContext:function(e){return p(),Xe(e)},use:function(e){return y(),su(e)},useCallback:function(e,n){return G="useCallback",y(),It(),Mp(e,n)},useContext:function(e){return G="useContext",y(),It(),Xe(e)},useEffect:function(e,n){return G="useEffect",y(),It(),ay(e,n)},useImperativeHandle:function(e,n,o){return G="useImperativeHandle",y(),It(),Ep(e,n,o)},useInsertionEffect:function(e,n){G="useInsertionEffect",y(),It(),Nr(4,xa,e,n);},useLayoutEffect:function(e,n){return G="useLayoutEffect",y(),It(),Sp(e,n)},useMemo:function(e,n){G="useMemo",y(),It();var o=Q.H;Q.H=qo;try{return _p(e,n)}finally{Q.H=o;}},useReducer:function(e,n,o){G="useReducer",y(),It();var u=Q.H;Q.H=qo;try{return dp(e,n,o)}finally{Q.H=u;}},useRef:function(e){return G="useRef",y(),It(),bp(e)},useState:function(e){G="useState",y(),It();var n=Q.H;Q.H=qo;try{return pp(e)}finally{Q.H=n;}},useDebugValue:function(){G="useDebugValue",y(),It();},useDeferredValue:function(e,n){return G="useDeferredValue",y(),It(),kp(e,n)},useTransition:function(){return G="useTransition",y(),It(),Ap()},useSyncExternalStore:function(e,n,o){return G="useSyncExternalStore",y(),It(),yp(e,n,o)},useId:function(){return G="useId",y(),It(),Dp()},useFormState:function(e,n){return G="useFormState",y(),It(),Gc(e,n)},useActionState:function(e,n){return G="useActionState",y(),It(),Gc(e,n)},useOptimistic:function(e){return G="useOptimistic",y(),It(),gp(e)},useMemoCache:function(e){return y(),Ur(e)},useHostTransitionStatus:$r,useCacheRefresh:function(){return G="useCacheRefresh",It(),Cp()},useEffectEvent:function(e){return G="useEffectEvent",y(),It(),vp(e)}},uo={readContext:function(e){return p(),Xe(e)},use:function(e){return y(),su(e)},useCallback:function(e,n){return G="useCallback",y(),et(),iy(e,n)},useContext:function(e){return G="useContext",y(),et(),Xe(e)},useEffect:function(e,n){G="useEffect",y(),et(),Oa(2048,ba,e,n);},useImperativeHandle:function(e,n,o){return G="useImperativeHandle",y(),et(),oy(e,n,o)},useInsertionEffect:function(e,n){return G="useInsertionEffect",y(),et(),Oa(4,xa,e,n)},useLayoutEffect:function(e,n){return G="useLayoutEffect",y(),et(),Oa(4,rl,e,n)},useMemo:function(e,n){G="useMemo",y(),et();var o=Q.H;Q.H=uo;try{return uy(e,n)}finally{Q.H=o;}},useReducer:function(e,n,o){G="useReducer",y(),et();var u=Q.H;Q.H=uo;try{return Xc(e,n,o)}finally{Q.H=u;}},useRef:function(){return G="useRef",y(),et(),ve().memoizedState},useState:function(){G="useState",y(),et();var e=Q.H;Q.H=uo;try{return Xc(eo)}finally{Q.H=e;}},useDebugValue:function(){G="useDebugValue",y(),et();},useDeferredValue:function(e,n){return G="useDeferredValue",y(),et(),NE(e,n)},useTransition:function(){return G="useTransition",y(),et(),jE()},useSyncExternalStore:function(e,n,o){return G="useSyncExternalStore",y(),et(),ty(e,n,o)},useId:function(){return G="useId",y(),et(),ve().memoizedState},useFormState:function(e){return G="useFormState",y(),et(),ey(e)},useActionState:function(e){return G="useActionState",y(),et(),ey(e)},useOptimistic:function(e,n){return G="useOptimistic",y(),et(),zE(e,n)},useMemoCache:function(e){return y(),Ur(e)},useHostTransitionStatus:$r,useCacheRefresh:function(){return G="useCacheRefresh",et(),ve().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",y(),et(),ly(e)}},s1={readContext:function(e){return p(),Xe(e)},use:function(e){return y(),su(e)},useCallback:function(e,n){return G="useCallback",y(),et(),iy(e,n)},useContext:function(e){return G="useContext",y(),et(),Xe(e)},useEffect:function(e,n){G="useEffect",y(),et(),Oa(2048,ba,e,n);},useImperativeHandle:function(e,n,o){return G="useImperativeHandle",y(),et(),oy(e,n,o)},useInsertionEffect:function(e,n){return G="useInsertionEffect",y(),et(),Oa(4,xa,e,n)},useLayoutEffect:function(e,n){return G="useLayoutEffect",y(),et(),Oa(4,rl,e,n)},useMemo:function(e,n){G="useMemo",y(),et();var o=Q.H;Q.H=uo;try{return uy(e,n)}finally{Q.H=o;}},useReducer:function(e,n,o){G="useReducer",y(),et();var u=Q.H;Q.H=uo;try{return ad(e,n,o)}finally{Q.H=u;}},useRef:function(){return G="useRef",y(),et(),ve().memoizedState},useState:function(){G="useState",y(),et();var e=Q.H;Q.H=uo;try{return ad(eo)}finally{Q.H=e;}},useDebugValue:function(){G="useDebugValue",y(),et();},useDeferredValue:function(e,n){return G="useDeferredValue",y(),et(),$E(e,n)},useTransition:function(){return G="useTransition",y(),et(),qE()},useSyncExternalStore:function(e,n,o){return G="useSyncExternalStore",y(),et(),ty(e,n,o)},useId:function(){return G="useId",y(),et(),ve().memoizedState},useFormState:function(e){return G="useFormState",y(),et(),ny(e)},useActionState:function(e){return G="useActionState",y(),et(),ny(e)},useOptimistic:function(e,n){return G="useOptimistic",y(),et(),AE(e,n)},useMemoCache:function(e){return y(),Ur(e)},useHostTransitionStatus:$r,useCacheRefresh:function(){return G="useCacheRefresh",et(),ve().memoizedState},useEffectEvent:function(e){return G="useEffectEvent",y(),et(),ly(e)}};var w8={},H8=new Set,U8=new Set,N8=new Set,$8=new Set,L8=new Set,Y8=new Set,W8=new Set,B8=new Set,j8=new Set,q8=new Set;Object.freeze(w8);var Ax={enqueueSetState:function(e,n,o){e=e._reactInternals;var u=el(e),c=iu(u);c.payload=n,o!=null&&(Rp(o),c.callback=o),n=uu(e,c,u),n!==null&&(vo(u,"this.setState()",e),nn(n,e,u),If(n,e,u));},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var u=el(e),c=iu(u);c.tag=k8,c.payload=n,o!=null&&(Rp(o),c.callback=o),n=uu(e,c,u),n!==null&&(vo(u,"this.replaceState()",e),nn(n,e,u),If(n,e,u));},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=el(e),u=iu(o);u.tag=z8,n!=null&&(Rp(n),u.callback=n),n=uu(e,u,o),n!==null&&(vo(o,"this.forceUpdate()",e),nn(n,e,o),If(n,e,o));}},As=null,Dx=null,Cx=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."),bn=false,X8={},G8={},Q8={},V8={},Ds=false,Z8={},f1={},Ox={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},J8=false,K8=null;K8=new Set;var Mi=false,vn=false,Rx=false,F8=typeof WeakSet=="function"?WeakSet:Set,Ln=null,Cs=null,Os=null,Sn=null,Ha=false,ro=null,Dn=false,Id=8192,XR={getCacheForType:function(e){var n=Xe(pn),o=n.data.get(e);return o===void 0&&(o=e(),n.data.set(e,o)),o},cacheSignal:function(){return Xe(pn).controller.signal},getOwner:function(){return ll}};if(typeof Symbol=="function"&&Symbol.for){var t0=Symbol.for;t0("selector.component"),t0("selector.has_pseudo_class"),t0("selector.role"),t0("selector.test_id"),t0("selector.text");}var GR=[],QR=typeof WeakMap=="function"?WeakMap:Map,Yn=0,Cn=2,cl=4,_i=0,e0=1,Ir=2,d1=3,Du=4,h1=6,P8=5,de=Yn,De=null,Ft=null,Zt=0,Ua=0,y1=1,tc=2,n0=3,I8=4,wx=5,a0=6,m1=7,Hx=8,ec=9,Se=Ua,sl=null,Cu=false,Rs=false,Ux=false,Xo=0,Pe=_i,Ou=0,Ru=0,Nx=0,Na=0,nc=0,l0=null,va=null,p1=false,g1=0,tM=0,eM=300,x1=1/0,nM=500,o0=null,on=null,wu=null,b1=0,$x=1,Lx=2,aM=3,Hu=0,lM=1,oM=2,iM=3,uM=4,v1=5,En=0,Uu=null,ws=null,co=0,Yx=0,Wx=-0,Bx=null,rM=null,cM=null,so=b1,sM=null,VR=50,i0=0,jx=null,qx=false,S1=false,ZR=50,ac=0,u0=null,Hs=false,E1=null,fM=false,dM=new Set,JR={},M1=null,Us=null,Xx=false,Gx=false,_1=false,Qx=false,Nu=0,Vx={};((function(){for(var e=0;e<lx.length;e++){var n=lx[e],o=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),to(o,"on"+n);}to(j6,"onAnimationEnd"),to(q6,"onAnimationIteration"),to(X6,"onAnimationStart"),to("dblclick","onDoubleClick"),to("focusin","onFocus"),to("focusout","onBlur"),to(kR,"onTransitionRun"),to(zR,"onTransitionStart"),to(TR,"onTransitionCancel"),to(G6,"onTransitionEnd");}))(),Za("onMouseEnter",["mouseout","mouseover"]),Za("onMouseLeave",["mouseout","mouseover"]),Za("onPointerEnter",["pointerout","pointerover"]),Za("onPointerLeave",["pointerout","pointerover"]),oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),oa("onBeforeInput",["compositionend","keypress","textInput","paste"]),oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),oa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var r0="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(" "),Zx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(r0)),k1="_reactListening"+Math.random().toString(36).slice(2),hM=false,yM=false,z1=false,mM=false,T1=false,A1=false,pM=false,D1={},KR=/\r\n?/g,FR=/\u0000|\uFFFD/g,lc="http://www.w3.org/1999/xlink",Jx="http://www.w3.org/XML/1998/namespace",PR="javascript:throw new Error('React form unexpectedly submitted.')",IR="suppressHydrationWarning",oc="&",C1="/&",c0="$",s0="/$",$u="$?",ic="$~",Ns="$!",t7="html",e7="body",n7="head",Kx="F!",gM="F",xM="loading",a7="style",ki=0,$s=1,O1=2,Fx=null,Px=null,bM={dialog:true,webview:true},Ix=null,f0=void 0,vM=typeof setTimeout=="function"?setTimeout:void 0,l7=typeof clearTimeout=="function"?clearTimeout:void 0,uc=-1,SM=typeof Promise=="function"?Promise:void 0,o7=typeof queueMicrotask=="function"?queueMicrotask:typeof SM<"u"?function(e){return SM.resolve(null).then(e).catch(jC)}:vM,tb=null,rc=0,d0=1,EM=2,MM=3,$l=4,Ll=new Map,_M=new Set,zi=ge.d;ge.d={f:function(){var e=zi.f(),n=Kc();return e||n},r:function(e){var n=Yt(e);n!==null&&n.tag===5&&n.type==="form"?BE(n):zi.r(e);},D:function(e){zi.D(e),H5("dns-prefetch",e,null);},C:function(e,n){zi.C(e,n),H5("preconnect",e,n);},L:function(e,n,o){zi.L(e,n,o);var u=Ls;if(u&&e&&n){var c='link[rel="preload"][as="'+kl(n)+'"]';n==="image"&&o&&o.imageSrcSet?(c+='[imagesrcset="'+kl(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(c+='[imagesizes="'+kl(o.imageSizes)+'"]')):c+='[href="'+kl(e)+'"]';var f=c;switch(n){case "style":f=Ic(e);break;case "script":f=ts(e);}Ll.has(f)||(e=te({rel:"preload",href:n==="image"&&o&&o.imageSrcSet?void 0:e,as:n},o),Ll.set(f,e),u.querySelector(c)!==null||n==="style"&&u.querySelector(xd(f))||n==="script"&&u.querySelector(bd(f))||(n=u.createElement("link"),Zn(n,"link",e),zt(n),u.head.appendChild(n)));}},m:function(e,n){zi.m(e,n);var o=Ls;if(o&&e){var u=n&&typeof n.as=="string"?n.as:"script",c='link[rel="modulepreload"][as="'+kl(u)+'"][href="'+kl(e)+'"]',f=c;switch(u){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":f=ts(e);}if(!Ll.has(f)&&(e=te({rel:"modulepreload",href:e},n),Ll.set(f,e),o.querySelector(c)===null)){switch(u){case "audioworklet":case "paintworklet":case "serviceworker":case "sharedworker":case "worker":case "script":if(o.querySelector(bd(f)))return}u=o.createElement("link"),Zn(u,"link",e),zt(u),o.head.appendChild(u);}}},X:function(e,n){zi.X(e,n);var o=Ls;if(o&&e){var u=me(o).hoistableScripts,c=ts(e),f=u.get(c);f||(f=o.querySelector(bd(c)),f||(e=te({src:e,async:true},n),(n=Ll.get(c))&&Eg(e,n),f=o.createElement("script"),zt(f),Zn(f,"link",e),o.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},u.set(c,f));}},S:function(e,n,o){zi.S(e,n,o);var u=Ls;if(u&&e){var c=me(u).hoistableStyles,f=Ic(e);n=n||"default";var d=c.get(f);if(!d){var m={loading:rc,preload:null};if(d=u.querySelector(xd(f)))m.loading=d0|$l;else {e=te({rel:"stylesheet",href:e,"data-precedence":n},o),(o=Ll.get(f))&&Sg(e,o);var x=d=u.createElement("link");zt(x),Zn(x,"link",e),x._p=new Promise(function(v,w){x.onload=v,x.onerror=w;}),x.addEventListener("load",function(){m.loading|=d0;}),x.addEventListener("error",function(){m.loading|=EM;}),m.loading|=$l,zy(d,n,u);}d={type:"stylesheet",instance:d,count:1,state:m},c.set(f,d);}}},M:function(e,n){zi.M(e,n);var o=Ls;if(o&&e){var u=me(o).hoistableScripts,c=ts(e),f=u.get(c);f||(f=o.querySelector(bd(c)),f||(e=te({src:e,async:true,type:"module"},n),(n=Ll.get(c))&&Eg(e,n),f=o.createElement("script"),zt(f),Zn(f,"link",e),o.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},u.set(c,f));}}};var Ls=typeof document>"u"?null:document,R1=null,i7=6e4,u7=800,r7=500,eb=0,nb=null,w1=null,cc=MO,h0={$$typeof:Ho,Provider:null,Consumer:null,_currentValue:cc,_currentValue2:cc,_threadCount:0},kM="%c%s%c",zM="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",TM="",H1=" ",c7=Function.prototype.bind,AM=false,DM=null,CM=null,OM=null,RM=null,wM=null,HM=null,UM=null,NM=null,$M=null,LM=null;DM=function(e,n,o,u){n=t(e,n),n!==null&&(o=a(n.memoizedState,o,0,u),n.memoizedState=o,n.baseState=o,e.memoizedProps=te({},e.memoizedProps),o=ia(e,2),o!==null&&nn(o,e,2));},CM=function(e,n,o){n=t(e,n),n!==null&&(o=r(n.memoizedState,o,0),n.memoizedState=o,n.baseState=o,e.memoizedProps=te({},e.memoizedProps),o=ia(e,2),o!==null&&nn(o,e,2));},OM=function(e,n,o,u){n=t(e,n),n!==null&&(o=l(n.memoizedState,o,u),n.memoizedState=o,n.baseState=o,e.memoizedProps=te({},e.memoizedProps),o=ia(e,2),o!==null&&nn(o,e,2));},RM=function(e,n,o){e.pendingProps=a(e.memoizedProps,n,0,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=ia(e,2),n!==null&&nn(n,e,2);},wM=function(e,n){e.pendingProps=r(e.memoizedProps,n,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=ia(e,2),n!==null&&nn(n,e,2);},HM=function(e,n,o){e.pendingProps=l(e.memoizedProps,n,o),e.alternate&&(e.alternate.pendingProps=e.pendingProps),n=ia(e,2),n!==null&&nn(n,e,2);},UM=function(e){var n=ia(e,2);n!==null&&nn(n,e,2);},NM=function(e){var n=Nc(),o=ia(e,n);o!==null&&nn(o,e,n);},$M=function(e){h=e;},LM=function(e){s=e;};var U1=true,N1=null,ab=false,Lu=null,Yu=null,Wu=null,y0=new Map,m0=new Map,Bu=[],s7="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(" "),$1=null;if(Oy.prototype.render=Ag.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var o=arguments;typeof o[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()."):K(o[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 o[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),o=e;var u=n.current,c=el(u);Mg(u,c,o,n,null,null);},Oy.prototype.unmount=Ag.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;(de&(Cn|cl))!==Yn&&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."),Mg(e.current,2,null,e,null,null),Kc(),n[gu]=null;}},Oy.prototype.unstable_scheduleHydration=function(e){if(e){var n=N();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Bu.length&&n!==0&&n<Bu[o].priority;o++);Bu.splice(o,0,e),o===0&&Z5(e);}},(function(){var e=Dg.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"),ge.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?xt(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=DM,e.overrideHookStateDeletePath=CM,e.overrideHookStateRenamePath=OM,e.overrideProps=RM,e.overridePropsDeletePath=wM,e.overridePropsRenamePath=HM,e.scheduleUpdate=UM,e.scheduleRetry=NM,e.setErrorHandler=$M,e.setSuspenseHandler=LM,e.scheduleRefresh=Y,e.scheduleRoot=k,e.setRefreshHandler=$,e.getCurrentFiber=yO,Uc(e)})()&&Yo&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var YM=window.location.protocol;/^(https?|file):$/.test(YM)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(YM==="file:"?`
240
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold");}v2.createRoot=function(e,n){if(!K(e))throw Error("Target container is not a DOM element.");P5(e);var o=false,u="",c=JE,f=KE,d=FE;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===wo&&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&&(o=true),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(d=n.onRecoverableError)),n=B5(e,1,false,null,null,o,u,null,c,f,d,F5),e[gu]=n.current,cg(e),new Ag(n)},v2.hydrateRoot=function(e,n,o){if(!K(e))throw Error("Target container is not a DOM element.");P5(e),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var u=false,c="",f=JE,d=KE,m=FE,x=null;return o!=null&&(o.unstable_strictMode===true&&(u=true),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onUncaughtError!==void 0&&(f=o.onUncaughtError),o.onCaughtError!==void 0&&(d=o.onCaughtError),o.onRecoverableError!==void 0&&(m=o.onRecoverableError),o.formState!==void 0&&(x=o.formState)),n=B5(e,1,true,n,o??null,u,c,x,f,d,m,F5),n.context=j5(null),o=n.current,u=el(o),u=kr(u),c=iu(u),c.callback=null,uu(o,c,u),vo(u,"hydrateRoot()",null),o=u,n.current.lanes=o,Ii(n,o),Oo(n),e[gu]=n.current,cg(e),new Oy(n)},v2.version="19.2.5",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());})();});var MD=Sa((c$,t4)=>{function ED(){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(ED);}catch(t){console.error(t);}}}process.env.NODE_ENV==="production"?(ED(),t4.exports=vD()):t4.exports=SD();});var zD=$t(Yl());var H7={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}]},U7={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"}]},N7={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}]},IM=[H7,U7,N7],t_={name:"Mechanics",elements:IM[0].elements,examples:IM,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 $7={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"}]},L7={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}]},Y7={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}]},e_=[$7,L7,Y7],n_={name:"Circuit",elements:e_[0].elements,examples:e_,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 W7={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}]},B7={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}]},j7={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"}]},a_=[W7,B7,j7],l_={name:"Thermodynamics",elements:a_[0].elements,examples: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 q7={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}]},X7={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}]},G7={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}]},o_=[q7,X7,G7],i_={name:"Magnetism",elements:o_[0].elements,examples:o_,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 u_=[{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"}]}],r_={name:"Light & optics",elements:u_[0].elements,examples:u_,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 Q7={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}]},V7={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}]},Z7={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"}]},c_=[Q7,V7,Z7],s_={name:"Oscillations & Waves",elements:c_[0].elements,examples:c_,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 J7={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}]},K7={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}]},F7={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"}]},f_=[J7,K7,F7],d_={name:"Rotation",elements:f_[0].elements,examples:f_,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 P7={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"}]},I7={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}]},tw={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}]},h_=[P7,I7,tw],y_={name:"Graph",elements:h_[0].elements,examples:h_,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 ew={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}]},nw={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}]},aw={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}]},m_=[ew,nw,aw],p_={name:"Electrostatics",elements:m_[0].elements,examples:m_,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 lw={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:""}]},ow={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:""}]},iw={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}]},g_=[lw,ow,iw],x_={name:"Chemistry",elements:g_[0].elements,examples:g_,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 Go={mechanics:t_,circuit:n_,thermo:l_,magnetism:i_,light:r_,waveOscillation:s_,rotation:d_,graph:y_,electrostatics:p_,chemistry:x_};var In=$t(Yl());var _a=$t(Yl());var U_=$t(Yl());var sc=(t,a=20)=>Math.round(t/a)*a,mt=(t,a,l,i)=>Math.hypot(l-t,i-a),_t=(t,a,l,i)=>Math.atan2(i-a,l-t)*180/Math.PI,fn=(t,a,l,i)=>{let r=Math.min(t,l),s=Math.min(a,i),h=Math.max(t,l),y=Math.max(a,i);return {minX:r,minY:s,maxX:h,maxY:y,width:Math.max(1,h-r),height:Math.max(1,y-s)}};function p0(t,a,l,i){let r=mt(t,a,l,i);if(r>=1)return r;let s=fn(t,a,l,i);return Math.max(12,s.width,s.height)}var g0=(t,a)=>{let l=t.getScreenCTM();return l?{x:(a.clientX-l.e)/l.a,y:(a.clientY-l.f)/l.d}:{x:0,y:0}};function Bs(t,a,l,i,r,s=18){let h=mt(t,a,l,i),y=Math.atan2(i-a,l-t),p=h/2,E=-r*2,_=t+p*Math.cos(y)-E*Math.sin(y),M=a+p*Math.sin(y)+E*Math.cos(y),b=[t,l,_],k=[a,i,M],Y=Math.min(...b),$=Math.min(...k),K=Math.max(...b),C=Math.max(...k);return uw(Y,$,K,C,s)}function uw(t,a,l,i,r){return {x:t-r,y:a-r,width:l-t+2*r,height:i-a+2*r}}var b_=new Map,j=(t,a)=>{b_.set(t,a);},db=t=>b_.get(t);var Ve=$t(Pt()),k_="#2563eb",M_="#ef4444",__="#10b981",sw="#3b82f6";function Ai(t,a,l,i){return (0, Ve.jsx)("rect",{x:t,y:a,width:l,height:i,fill:"none",stroke:k_,strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"})}function fw(t,a=15,l=20){let i=fn(t.x1,t.y1,t.x2,t.y2);return Ai(i.minX-a,i.minY-l,i.width+2*a,i.height+2*l)}function dw(t,a=24){return (0, Ve.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"transparent",strokeWidth:a,strokeLinecap:"round"})}function Di(t,a){return !a.isSelected||a.viewMode||a.isGhost||!a.onHandlePointerDown?null:(0, Ve.jsxs)(Ve.Fragment,{children:[(0, Ve.jsx)("circle",{cx:t.x1,cy:t.y1,r:5,fill:M_,cursor:"grab",onMouseDown:l=>a.onHandlePointerDown(l,"start")}),(0, Ve.jsx)("circle",{cx:t.x2,cy:t.y2,r:5,fill:M_,cursor:"grab",onMouseDown:l=>a.onHandlePointerDown(l,"end")})]})}function ut({el:t,ctx:a,padX:l=15,padY:i=20,hitWidth:r=24}){return (0, Ve.jsxs)(Ve.Fragment,{children:[dw(t,r),a.isSelected&&!a.viewMode&&!a.isGhost?fw(t,l,i):null,Di(t,a)]})}function Ce({dPath:t,strokeWidth:a=24,strokeLinecap:l="round",strokeLinejoin:i}){return (0, Ve.jsx)("path",{d:t,fill:"none",stroke:"transparent",strokeWidth:a,strokeLinecap:l,strokeLinejoin:i})}function oe({ctx:t,hitHalfSize:a,selectionHalfSize:l,children:i}){let r=l??a+10;return (0, Ve.jsxs)(Ve.Fragment,{children:[t.isSelected&&!t.viewMode&&!t.isGhost?(0, Ve.jsx)("rect",{x:-r,y:-r,width:2*r,height:2*r,fill:"none",stroke:k_,strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"}):null,(0, Ve.jsx)("rect",{x:-a,y:-a,width:2*a,height:2*a,fill:"transparent"}),i]})}function Me(t,a,l,i,r,s=10){return !r.isSelected||r.viewMode||r.isGhost?null:Ai(t-s,a-s,l+2*s,i+2*s)}function fc({minX:t,minY:a,width:l,height:i,ctx:r,inset:s=10,includeHitFill:h=true}){return (0, Ve.jsxs)(Ve.Fragment,{children:[h?(0, Ve.jsx)("rect",{x:t,y:a,width:l,height:i,fill:"transparent"}):null,Me(t,a,l,i,r,s)]})}function z_({x1:t,y1:a,x2:l,y2:i,cp0:r,ctx:s,pts:h,pad:y=10}){if(!(s.isSelected&&!s.viewMode&&!s.isGhost&&s.onHandlePointerDown))return null;let E=Math.min(...h.map(k=>k.x)),_=Math.max(...h.map(k=>k.x)),M=Math.min(...h.map(k=>k.y)),b=Math.max(...h.map(k=>k.y));return (0, Ve.jsxs)(Ve.Fragment,{children:[Ai(E-y,M-y,_-E+2*y,b-M+2*y),(0, Ve.jsx)("polyline",{points:h.map(k=>`${k.x},${k.y}`).join(" "),fill:"none",stroke:"#94a3b8",strokeDasharray:"4 4",strokeWidth:1,pointerEvents:"none"}),(0, Ve.jsx)("circle",{cx:t,cy:a,r:6,fill:__,cursor:"grab",onMouseDown:k=>s.onHandlePointerDown(k,"start")}),(0, Ve.jsx)("circle",{cx:l,cy:i,r:6,fill:__,cursor:"grab",onMouseDown:k=>s.onHandlePointerDown(k,"end")}),(0, Ve.jsx)("circle",{cx:r.x,cy:r.y,r:6,fill:sw,cursor:"grab",onMouseDown:k=>s.onHandlePointerDown(k,"cp",0)})]})}var dn=$t(Pt()),Qo=t=>t.color||"#0f172a",T_=t=>t.strokeWidth||2,j1=t=>t.fontSize||16;j("point",(t,a)=>(0, dn.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, dn.jsxs)(oe,{ctx:a,hitHalfSize:28,selectionHalfSize:32,children:[(0, dn.jsx)("circle",{cx:"0",cy:"0",r:3,fill:Qo(t)}),t.label?(0, dn.jsx)("text",{x:"8",y:"-8",fontSize:j1(t),fill:Qo(t),children:String(t.label)}):null]})}));j("text",(t,a)=>(0, dn.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, dn.jsx)(oe,{ctx:a,hitHalfSize:Math.max(40,(t.label||t.value||"").length*4),selectionHalfSize:void 0,children:(0, dn.jsx)("text",{x:0,y:0,dominantBaseline:"central",textAnchor:"middle",fill:Qo(t),fontSize:j1(t),fontFamily:t.fontFamily||"serif",fontWeight:t.fontWeight||"normal",children:String(t.label||t.value||"")})})}));var js=(t,a,l=false)=>{let i=mt(t.x1,t.y1,t.x2,t.y2),r=_t(t.x1,t.y1,t.x2,t.y2),s=t.lineStyle==="dashed"||t.type==="dashed"||t.type==="dashed_line"?"6 6":t.lineStyle==="dotted"?"2 4":void 0;return (0, dn.jsxs)("g",{children:[(0, dn.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${r})`,children:[(0, dn.jsx)("line",{x1:0,y1:0,x2:i,y2:0,stroke:Qo(t),strokeWidth:T_(t),strokeDasharray:s,strokeLinecap:"round"}),l?(0, dn.jsx)("polygon",{points:`${i},0 ${i-12},-6 ${i-12},6`,fill:Qo(t)}):null,t.label?(0, dn.jsx)("text",{x:i/2,y:-10,fontSize:j1(t),fill:Qo(t),textAnchor:"middle",children:String(t.label)}):null]}),(0, dn.jsx)(ut,{el:t,ctx:a})]})};j("line",(t,a)=>js(t,a));j("dashed",(t,a)=>js({...t,lineStyle:"dashed"},a));j("dashed_line",(t,a)=>js({...t,lineStyle:"dashed"},a));j("vector",(t,a)=>js(t,a,true));j("ray",(t,a)=>js(t,a,true));j("wire",(t,a)=>js(t,a));j("table_edge",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=Math.max(1,i-l),y=Math.max(1,s-r),p=[],E=Math.max(2,Math.floor(h/12)),_=Math.max(2,Math.floor(y/12));for(let M=0;M<=E;M++){let b=l+M/E*h;p.push((0, dn.jsx)("line",{x1:b,y1:r,x2:b-8,y2:r+10,stroke:Qo(t),strokeWidth:1},`h-${M}`));}for(let M=0;M<=_;M++){let b=r+M/_*y;p.push((0, dn.jsx)("line",{x1:i,y1:b,x2:i-10,y2:b+8,stroke:Qo(t),strokeWidth:1},`v-${M}`));}return (0, dn.jsxs)("g",{children:[(0, dn.jsx)("polyline",{points:`${l},${r} ${i},${r} ${i},${s}`,fill:"none",stroke:Qo(t),strokeWidth:T_(t)}),p,t.label?(0, dn.jsx)("text",{x:l+h/2,y:r-10,fill:Qo(t),textAnchor:"middle",fontSize:j1(t),children:String(t.label)}):null,(0, dn.jsx)(fc,{minX:l,minY:r,width:h,height:y,ctx:a,inset:12}),Di(t,a)]})});var W=$t(Pt()),lt=t=>t.color||"#0f172a",wt=t=>t.strokeWidth||2,fl=t=>t.fillOpacity??.2,yb=t=>t.fontSize||18,A_=t=>t.rotation||0;j("slab",t=>{let a=fn(t.x1,t.y1,t.x2,t.y2),l=t.curveHeight??20;return (0, W.jsxs)("g",{children:[(0, W.jsx)("path",{d:`M ${a.minX} ${a.minY} L ${a.maxX} ${a.minY} L ${a.maxX} ${a.maxY} L ${a.minX} ${a.maxY} Z`,fill:lt(t),fillOpacity:fl(t),stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("path",{d:`M ${a.minX} ${a.minY} L ${a.minX+l} ${a.minY-l} L ${a.maxX+l} ${a.minY-l} L ${a.maxX} ${a.minY} Z`,fill:lt(t),fillOpacity:Math.max(0,fl(t)-.1),stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("path",{d:`M ${a.maxX} ${a.minY} L ${a.maxX+l} ${a.minY-l} L ${a.maxX+l} ${a.maxY-l} L ${a.maxX} ${a.maxY} Z`,fill:lt(t),fillOpacity:Math.min(1,fl(t)+.1),stroke:lt(t),strokeWidth:wt(t)})]})});j("sphere",t=>{let a=Math.max(4,mt(t.x1,t.y1,t.x2,t.y2));return (0, W.jsx)("circle",{cx:t.x1,cy:t.y1,r:a,fill:lt(t),fillOpacity:fl(t),stroke:lt(t),strokeWidth:wt(t)})});j("shell",t=>{let a=Math.max(10,mt(t.x1,t.y1,t.x2,t.y2)),l=t.curveHeight??10,i=Math.max(1,a-l);return (0, W.jsx)("path",{d:`M ${t.x1-a} ${t.y1} A ${a} ${a} 0 1 0 ${t.x1+a} ${t.y1} A ${a} ${a} 0 1 0 ${t.x1-a} ${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:lt(t),fillOpacity:fl(t),fillRule:"evenodd",stroke:lt(t),strokeWidth:wt(t)})});j("cylinder",t=>{let a=mt(t.x1,t.y1,t.x2,t.y2),l=_t(t.x1,t.y1,t.x2,t.y2),i=t.curveHeight??20;return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, W.jsx)("path",{d:`M 0 ${-i} L ${a} ${-i} A 10 ${i} 0 0 1 ${a} ${i} L 0 ${i} Z`,fill:lt(t),fillOpacity:fl(t)}),(0, W.jsx)("path",{d:`M 0 ${-i} L ${a} ${-i} M 0 ${i} L ${a} ${i}`,fill:"none",stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("ellipse",{cx:a,cy:0,rx:10,ry:i,fill:lt(t),fillOpacity:fl(t),stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("ellipse",{cx:0,cy:0,rx:10,ry:i,fill:"none",stroke:lt(t),strokeWidth:wt(t),strokeDasharray:"2 4"})]})});j("ladder",t=>{let a=mt(t.x1,t.y1,t.x2,t.y2),l=_t(t.x1,t.y1,t.x2,t.y2),i=t.curveHeight??10,r=[];for(let s=15;s<a-10;s+=15)r.push((0, W.jsx)("line",{x1:s,y1:-i,x2:s,y2:i,stroke:lt(t),strokeWidth:Math.max(1,wt(t)-1)},s));return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, W.jsx)("line",{x1:0,y1:-i,x2:a,y2:-i,stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("line",{x1:0,y1:i,x2:a,y2:i,stroke:lt(t),strokeWidth:wt(t)}),r]})});j("spring",t=>{let a=mt(t.x1,t.y1,t.x2,t.y2),l=_t(t.x1,t.y1,t.x2,t.y2),i=Math.max(0,Math.floor(a/12)),r="M 0 0";for(let s=0;s<i;s++)r+=` L ${s*12+3} 8 L ${s*12+9} -8`;return r+=` L ${a} 0`,(0, W.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:(0, W.jsx)("path",{d:r,fill:"none",stroke:lt(t),strokeWidth:wt(t),strokeLinejoin:"round"})})});j("rod",t=>{let a=mt(t.x1,t.y1,t.x2,t.y2),l=_t(t.x1,t.y1,t.x2,t.y2);return (0, W.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:(0, W.jsx)("line",{x1:0,y1:0,x2:a,y2:0,stroke:lt(t),strokeWidth:Math.max(4,wt(t)),strokeLinecap:"round"})})});j("arc_arrow",t=>{let a=Math.max(8,mt(t.x1,t.y1,t.x2,t.y2));return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, W.jsx)("path",{d:`M ${a} 0 A ${a} ${a} 0 0 0 ${-a} 0`,fill:"none",stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("polygon",{points:`${-a},2 ${-a-6},-10 ${-a+6},-10`,fill:lt(t)})]})});j("lens_convex",(t,a)=>{let l=p0(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.curveHeight!==void 0?Number(t.curveHeight):l*.15,s=t.fontSize||16,h=`M 0 0 Q ${l/2} ${-r*2} ${l} 0 Q ${l/2} ${r*2} 0 0 Z`,y=Math.ceil(2*r)+Math.ceil(s+14);return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, W.jsx)("path",{d:h,fill:lt(t),fillOpacity:Math.max(.15,fl(t)),stroke:lt(t),strokeWidth:wt(t)}),t.label?(0, W.jsx)("text",{x:l/2,y:-r-10,fontSize:s,fill:lt(t),textAnchor:"middle",children:String(t.label)}):null,(0, W.jsx)(Ce,{dPath:h,strokeWidth:28,strokeLinejoin:"round"})]}),(0, W.jsx)(ut,{el:t,ctx:a,padX:15+y,padY:20+y})]})});j("lens_concave",(t,a)=>{let l=p0(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.curveHeight!==void 0?Number(t.curveHeight):Math.max(10,l*.04),s=Math.max(15,l*.05),h=t.fontSize||16,y=`M 0 ${-s} L 0 ${s} Q ${l/2} ${s-r*2} ${l} ${s} L ${l} ${-s} Q ${l/2} ${-s+r*2} 0 ${-s} Z`,p=Math.ceil(s+2*r)+Math.ceil(h+14);return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, W.jsx)("path",{d:y,fill:lt(t),fillOpacity:Math.max(.15,fl(t)),stroke:lt(t),strokeWidth:wt(t)}),t.label?(0, W.jsx)("text",{x:l/2,y:-s-10,fontSize:h,fill:lt(t),textAnchor:"middle",children:String(t.label)}):null,(0, W.jsx)(Ce,{dPath:y,strokeWidth:28,strokeLinejoin:"round"})]}),(0, W.jsx)(ut,{el:t,ctx:a,padX:15+p,padY:20+p})]})});j("mirror_concave",(t,a)=>{let l=p0(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.curveHeight!==void 0?Number(t.curveHeight):l*.2,s=t.fontSize||16,h=`M 0 0 Q ${l/2} ${r*2} ${l} 0`,y=Math.ceil(2*r)+24;return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, W.jsx)("path",{d:h,fill:"none",stroke:lt(t),strokeWidth:wt(t)}),t.label?(0, W.jsx)("text",{x:l/2,y:-15,fontSize:s,fill:lt(t),textAnchor:"middle",children:String(t.label)}):null,(0, W.jsx)(Ce,{dPath:h,strokeWidth:28,strokeLinecap:"round"})]}),(0, W.jsx)(ut,{el:t,ctx:a,padX:15+y,padY:20+y})]})});j("mirror_convex",(t,a)=>{let l=p0(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.curveHeight!==void 0?Number(t.curveHeight):l*.2,s=t.fontSize||16,h=`M 0 0 Q ${l/2} ${-r*2} ${l} 0`,y=Math.ceil(2*r)+24;return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, W.jsx)("path",{d:h,fill:"none",stroke:lt(t),strokeWidth:wt(t)}),t.label?(0, W.jsx)("text",{x:l/2,y:-15,fontSize:s,fill:lt(t),textAnchor:"middle",children:String(t.label)}):null,(0, W.jsx)(Ce,{dPath:h,strokeWidth:28,strokeLinecap:"round"})]}),(0, W.jsx)(ut,{el:t,ctx:a,padX:15+y,padY:20+y})]})});j("prism",t=>{let a=mt(t.x1,t.y1,t.x2,t.y2),l=_t(t.x1,t.y1,t.x2,t.y2),i=-a*.866,r=t.fontSize||16;return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, W.jsx)("polygon",{points:`0,0 ${a},0 ${a/2},${i}`,fill:lt(t),fillOpacity:Math.max(.15,fl(t)),stroke:lt(t),strokeWidth:wt(t),strokeLinejoin:"round"}),t.label&&(0, W.jsx)("text",{x:a/2,y:i-10,fontSize:r,fill:lt(t),textAnchor:"middle",children:String(t.label)})]})});j("slit_single",t=>{let a=mt(t.x1,t.y1,t.x2,t.y2),l=_t(t.x1,t.y1,t.x2,t.y2),i=16,r=Math.max(4,wt(t)),s=t.fontSize||16;return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, W.jsx)("line",{x1:0,y1:0,x2:a/2-i/2,y2:0,stroke:lt(t),strokeWidth:r,strokeLinecap:"square"}),(0, W.jsx)("line",{x1:a/2+i/2,y1:0,x2:a,y2:0,stroke:lt(t),strokeWidth:r,strokeLinecap:"square"}),t.label&&(0, W.jsx)("text",{x:a/2,y:-14,fontSize:s,fill:lt(t),textAnchor:"middle",children:String(t.label)})]})});j("slit_double",t=>{let a=fn(t.x1,t.y1,t.x2,t.y2),l=a.minX+a.width/2;return (0, W.jsxs)("g",{children:[(0, W.jsx)("line",{x1:l-6,y1:a.minY,x2:l-6,y2:a.maxY,stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("line",{x1:l+6,y1:a.minY,x2:l+6,y2:a.maxY,stroke:lt(t),strokeWidth:wt(t)})]})});j("photon",t=>{let a=mt(t.x1,t.y1,t.x2,t.y2),l=_t(t.x1,t.y1,t.x2,t.y2),i=6,r=Math.max(3,Math.floor(a/24)),s=a/(r*2),h="M 0 0 ";for(let y=0;y<r*2;y++){let p=(y+1)*s,E=y%2===0?-i:i;h+=`L ${p} ${E} `;}return h+=`L ${a} 0`,(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, W.jsx)("path",{d:h,fill:"none",stroke:lt(t),strokeWidth:wt(t)}),t.label&&(0, W.jsx)("text",{x:a/2,y:-12,textAnchor:"middle",fill:lt(t),children:String(t.label)})]})});j("glass_slab",t=>{let a=fn(t.x1,t.y1,t.x2,t.y2);return (0, W.jsx)("rect",{x:a.minX,y:a.minY,width:a.width,height:a.height,fill:lt(t),fillOpacity:Math.max(.1,fl(t)),stroke:lt(t),strokeWidth:wt(t)})});j("pipe",t=>{let a=fn(t.x1,t.y1,t.x2,t.y2),l=t.curveHeight??a.height*.35;return (0, W.jsx)("path",{d:`M ${a.minX} ${a.minY} C ${a.minX+a.width*.3} ${a.minY}, ${a.minX+a.width*.3} ${a.minY+l}, ${a.minX+a.width*.5} ${a.minY+l} C ${a.minX+a.width*.7} ${a.minY+l}, ${a.minX+a.width*.7} ${a.minY}, ${a.maxX} ${a.minY} L ${a.maxX} ${a.maxY} C ${a.minX+a.width*.7} ${a.maxY}, ${a.minX+a.width*.7} ${a.maxY-l}, ${a.minX+a.width*.5} ${a.maxY-l} C ${a.minX+a.width*.3} ${a.maxY-l}, ${a.minX+a.width*.3} ${a.maxY}, ${a.minX} ${a.maxY} Z`,fill:lt(t),fillOpacity:fl(t),stroke:lt(t),strokeWidth:wt(t)})});j("liquid",t=>{let a=fn(t.x1,t.y1,t.x2,t.y2);return (0, W.jsxs)("g",{children:[(0, W.jsx)("path",{d:`M ${a.minX} ${a.minY} Q ${a.minX+a.width/2} ${a.minY+10} ${a.maxX} ${a.minY} L ${a.maxX} ${a.maxY} L ${a.minX} ${a.maxY} Z`,fill:lt(t),fillOpacity:Math.max(.2,fl(t))}),(0, W.jsx)("path",{d:`M ${a.minX} ${a.minY} Q ${a.minX+a.width/2} ${a.minY+10} ${a.maxX} ${a.minY}`,fill:"none",stroke:lt(t),strokeWidth:2})]})});j("orbit",t=>{let a=fn(t.x1,t.y1,t.x2,t.y2);return (0, W.jsx)("ellipse",{cx:a.minX+a.width/2,cy:a.minY+a.height/2,rx:a.width/2,ry:a.height/2,fill:"none",stroke:lt(t),strokeWidth:wt(t),strokeDasharray:"3 3"})});j("pole_piece",(t,a)=>{let l=fn(t.x1,t.y1,t.x2,t.y2),i=String(t.label||"N"),s=i.toUpperCase().includes("N")?"#ef4444":"#3b82f6",h=Math.min(l.width,l.height)*.5+10;return (0, W.jsxs)("g",{children:[(0, W.jsx)("rect",{x:l.minX,y:l.minY,width:l.width,height:l.height,fill:s,fillOpacity:.2,stroke:lt(t),strokeWidth:wt(t),rx:"4"}),(0, W.jsx)("text",{x:l.minX+l.width/2,y:l.minY+l.height/2,textAnchor:"middle",dominantBaseline:"central",fill:lt(t),fontWeight:"bold",fontSize:h,children:i}),Me(l.minX,l.minY,l.width,l.height,a)]})});j("b_field_line",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.fontSize||18,s=l/2;return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, W.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:lt(t),strokeWidth:wt(t),strokeLinecap:"round"}),(0, W.jsx)("polygon",{points:`${s+6},0 ${s-6},-5 ${s-6},5`,fill:lt(t)}),t.label?(0, W.jsx)("text",{x:s,y:-10,textAnchor:"middle",fill:lt(t),fontSize:r,children:String(t.label)}):null]}),(0, W.jsx)(ut,{el:t,ctx:a})]})});j("b_field_curve",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.curveHeight!==void 0?t.curveHeight:l*.4,s=t.fontSize||18,h=-r,y=Bs(t.x1,t.y1,t.x2,t.y2,r),p=`M 0 0 Q ${l/2} ${-r*2} ${l} 0`;return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, W.jsx)("path",{d:p,fill:"none",stroke:lt(t),strokeWidth:wt(t),strokeLinecap:"round"}),(0, W.jsx)("polygon",{points:`${l/2+6},${h} ${l/2-6},${h-5} ${l/2-6},${h+5}`,fill:lt(t)}),t.label?(0, W.jsx)("text",{x:l/2,y:h-15,textAnchor:"middle",fill:lt(t),fontSize:s,children:String(t.label)}):null,(0, W.jsx)(Ce,{dPath:p,strokeWidth:24,strokeLinecap:"round"})]}),a.isSelected&&!a.viewMode&&!a.isGhost?Ai(y.x,y.y,y.width,y.height):null,Di(t,a)]})});j("axes_3d",t=>(0, W.jsxs)("g",{children:[(0, W.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1+100,y2:t.y1,stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1,y2:t.y1-100,stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x1+70,y2:t.y1+50,stroke:lt(t),strokeWidth:wt(t)})]}));j("string",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2);return (0, W.jsxs)("g",{children:[(0, W.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:(0, W.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:lt(t),strokeWidth:wt(t),strokeLinecap:"round"})}),(0, W.jsx)(ut,{el:t,ctx:a})]})});j("surface",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=Math.max(0,Math.floor(l/12)),s=[];for(let h=0;h<=r;h++)s.push((0, W.jsx)("line",{x1:h*12,y1:0,x2:h*12-8,y2:12,stroke:lt(t),strokeWidth:1.5},h));return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, W.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:lt(t),strokeWidth:wt(t)+.5,strokeLinecap:"round"}),s]}),(0, W.jsx)(ut,{el:t,ctx:a})]})});j("block",(t,a)=>{let l=Math.abs(t.x2-t.x1),i=Math.abs(t.y2-t.y1),r=(t.x1+t.x2)/2,s=(t.y1+t.y2)/2,h=A_(t),y=fn(t.x1,t.y1,t.x2,t.y2);return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${r}, ${s}) rotate(${h})`,children:[(0, W.jsx)("rect",{x:-l/2,y:-i/2,width:l,height:i,fill:"#f1f5f9",stroke:lt(t),strokeWidth:wt(t)}),t.label?(0, W.jsx)("text",{x:0,y:t.value?-6:0,dominantBaseline:"central",textAnchor:"middle",fill:lt(t),fontSize:18,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, W.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]}),Me(y.minX,y.minY,y.width,y.height,a),(0, W.jsx)(ut,{el:t,ctx:a})]})});j("cart",(t,a)=>{let l=Math.abs(t.x2-t.x1),i=Math.abs(t.y2-t.y1),r=(t.x1+t.x2)/2,s=(t.y1+t.y2)/2,h=A_(t),y=Math.min(l*.15,i*.25,12),p=fn(t.x1,t.y1,t.x2,t.y2);return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${r}, ${s}) rotate(${h})`,children:[(0, W.jsx)("rect",{x:-l/2,y:-i/2,width:l,height:i-y,fill:"#f1f5f9",stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("circle",{cx:-l/2+y*1.5,cy:i/2-y,r:y,fill:"#cbd5e1",stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("circle",{cx:l/2-y*1.5,cy:i/2-y,r:y,fill:"#cbd5e1",stroke:lt(t),strokeWidth:wt(t)}),t.label?(0, W.jsx)("text",{x:0,y:t.value?-8:-2,dominantBaseline:"central",textAnchor:"middle",fill:lt(t),fontSize:18,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, W.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]}),Me(p.minX,p.minY,p.width,p.height,a),(0, W.jsx)(ut,{el:t,ctx:a})]})});j("particle",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=Math.max(5,l);return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, W.jsx)("circle",{cx:0,cy:0,r:i,fill:lt(t)}),t.label?(0, W.jsx)("text",{x:0,y:-i-12,dominantBaseline:"central",textAnchor:"middle",fill:lt(t),fontSize:yb(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, W.jsx)("text",{x:0,y:i+12,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]}),(0, W.jsx)(ut,{el:t,ctx:a})]})});j("disk",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=Math.max(10,l);return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, W.jsx)("circle",{cx:0,cy:0,r:i,fill:"#e2e8f0",stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("line",{x1:0,y1:0,x2:i,y2:0,stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("circle",{cx:0,cy:0,r:3,fill:lt(t)}),t.label?(0, W.jsx)("text",{x:0,y:-i-12,dominantBaseline:"central",textAnchor:"middle",fill:lt(t),fontSize:yb(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null,t.value?(0, W.jsx)("text",{x:0,y:i+12,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:14,fontFamily:"sans-serif",children:String(t.value)}):null]}),(0, W.jsx)(ut,{el:t,ctx:a})]})});j("com",(t,a)=>(0, W.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, W.jsxs)(oe,{ctx:a,hitHalfSize:22,selectionHalfSize:28,children:[(0, W.jsx)("circle",{cx:0,cy:0,r:10,fill:"none",stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("path",{d:"M 0 -10 A 10 10 0 0 1 10 0 L 0 0 Z",fill:lt(t)}),(0, W.jsx)("path",{d:"M 0 10 A 10 10 0 0 1 -10 0 L 0 0 Z",fill:lt(t)})]})}));j("pivot",(t,a)=>(0, W.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, W.jsxs)(oe,{ctx:a,hitHalfSize:24,selectionHalfSize:32,children:[(0, W.jsx)("polygon",{points:"0,0 -12,20 12,20",fill:"#f8fafc",stroke:lt(t),strokeWidth:wt(t),strokeLinejoin:"round"}),(0, W.jsx)("line",{x1:-20,y1:20,x2:20,y2:20,stroke:lt(t),strokeWidth:wt(t),strokeLinecap:"round"}),(0, W.jsx)("circle",{cx:0,cy:0,r:3,fill:lt(t)})]})}));j("pulley",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=Math.max(10,l);return (0, W.jsxs)("g",{children:[(0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, W.jsx)("circle",{cx:0,cy:0,r:i,fill:"#f8fafc",stroke:lt(t),strokeWidth:wt(t)}),(0, W.jsx)("circle",{cx:0,cy:0,r:4,fill:lt(t)}),t.label?(0, W.jsx)("text",{x:0,y:-i-12,dominantBaseline:"central",textAnchor:"middle",fill:lt(t),fontSize:yb(t),fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null]}),(0, W.jsx)(ut,{el:t,ctx:a})]})});j("wedge",t=>{let a=t.x2-t.x1,l=t.y2-t.y1;return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, W.jsx)("polygon",{points:`0,0 ${a},0 ${a},${l}`,fill:"#f1f5f9",stroke:lt(t),strokeWidth:wt(t),strokeLinejoin:"round"}),t.label?(0, W.jsx)("text",{x:a*.6,y:l*.3,dominantBaseline:"central",textAnchor:"middle",fill:lt(t),fontSize:20,fontFamily:"serif",fontWeight:"bold",children:String(t.label)}):null]})});j("dimension",t=>{let a=mt(t.x1,t.y1,t.x2,t.y2),l=_t(t.x1,t.y1,t.x2,t.y2),i=Math.max(1,wt(t)-.5);return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${l})`,children:[(0, W.jsx)("line",{x1:0,y1:0,x2:a,y2:0,stroke:lt(t),strokeWidth:i,strokeDasharray:"4 4"}),(0, W.jsx)("polygon",{points:"0,0 10,-5 10,5",fill:lt(t)}),(0, W.jsx)("polygon",{points:`${a},0 ${a-10},-5 ${a-10},5`,fill:lt(t)}),t.label?(0, W.jsx)("text",{x:a/2,y:-10,textAnchor:"middle",fill:lt(t),fontSize:18,fontFamily:"serif",fontStyle:"italic",fontWeight:"bold",children:String(t.label)}):null]})});j("arc",t=>{let a=t.x2-t.x1,l=t.y2-t.y1,i=Math.hypot(a,l),r=Math.atan2(l,a)*180/Math.PI,s=Math.min(i,40),h=l>0?1:0,y=s,p=0,E=s*Math.cos(r*Math.PI/180),_=s*Math.sin(r*Math.PI/180),M=r/2,b=s+15,k=b*Math.cos(M*Math.PI/180),Y=b*Math.sin(M*Math.PI/180),$=Math.max(i,50);return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, W.jsx)("line",{x1:0,y1:0,x2:$,y2:0,stroke:lt(t),strokeWidth:1.5,strokeDasharray:"4 4"}),(0, W.jsx)("path",{d:`M ${y} ${p} A ${s} ${s} 0 0 ${h} ${E} ${_}`,fill:"none",stroke:lt(t),strokeWidth:wt(t)}),t.label?(0, W.jsx)("text",{x:k,y:Y,dominantBaseline:"central",textAnchor:"middle",fill:lt(t),fontSize:16,fontFamily:"serif",fontStyle:"italic",fontWeight:"bold",children:String(t.label)}):null]})});j("nucleus",t=>{let a=t.fontSize||18,l=lt(t),i=wt(t);return (0, W.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, W.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:l,strokeWidth:i,transform:"rotate(30)"}),(0, W.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:l,strokeWidth:i,transform:"rotate(-30)"}),(0, W.jsx)("ellipse",{cx:0,cy:0,rx:24,ry:8,fill:"none",stroke:l,strokeWidth:i,transform:"rotate(90)"}),(0, W.jsx)("circle",{cx:0,cy:0,r:6,fill:"#ef4444"}),t.label&&(0, W.jsx)("text",{x:0,y:36,fontSize:a,fill:l,textAnchor:"middle",children:String(t.label)})]})});["cone","curved_wedge","incline","container","hinge"].forEach(t=>j(t,a=>{let l=mt(a.x1,a.y1,a.x2,a.y2),i=_t(a.x1,a.y1,a.x2,a.y2);return (0, W.jsx)("g",{transform:`translate(${a.x1}, ${a.y1}) rotate(${i})`,children:(0, W.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:lt(a),strokeWidth:wt(a)})})}));["semicircle","quarter_circle","axes"].forEach(t=>j(t,a=>{let l=fn(a.x1,a.y1,a.x2,a.y2);return (0, W.jsx)("rect",{x:l.minX,y:l.minY,width:l.width,height:l.height,fill:"none",stroke:lt(a),strokeWidth:wt(a)})}));var Ct=$t(Pt()),$e=t=>t.color||"#0f172a",dl=t=>t.strokeWidth||2,ju=t=>t.fontSize||18,D_=t=>t.lineStyle==="dashed"||t.type==="dashed_line"?"6 6":t.lineStyle==="dotted"?"2 4":void 0;j("b_region_in",(t,a)=>{let l=fn(t.x1,t.y1,t.x2,t.y2),i=l.minX,r=l.maxX,s=l.minY,h=l.maxY,y=(i+r)/2,p=40,E=6,_=[];for(let M=i+p/2;M<=r;M+=p)for(let b=s+p/2;b<=h;b+=p)_.push((0, Ct.jsxs)("g",{transform:`translate(${M}, ${b})`,children:[(0, Ct.jsx)("circle",{cx:0,cy:0,r:E,fill:"none",stroke:$e(t),strokeWidth:dl(t)*.75}),(0, Ct.jsx)("line",{x1:-E*.7,y1:-E*.7,x2:E*.7,y2:E*.7,stroke:$e(t),strokeWidth:dl(t)*.75}),(0, Ct.jsx)("line",{x1:E*.7,y1:-E*.7,x2:-E*.7,y2:E*.7,stroke:$e(t),strokeWidth:dl(t)*.75})]},`${M}-${b}`));return (0, Ct.jsxs)("g",{children:[(0, Ct.jsx)("rect",{x:i,y:s,width:l.width,height:l.height,fill:$e(t),stroke:$e(t),strokeWidth:1,strokeDasharray:"4 4",opacity:.1}),_,t.label?(0, Ct.jsx)("text",{x:y,y:s-10,fontSize:ju(t),fill:$e(t),textAnchor:"middle",fontWeight:"bold",children:String(t.label)}):null,Me(i,s,l.width,l.height,a)]})});j("b_region_out",(t,a)=>{let l=fn(t.x1,t.y1,t.x2,t.y2),i=l.minX,r=l.maxX,s=l.minY,h=l.maxY,y=(i+r)/2,p=40,E=6,_=[];for(let M=i+p/2;M<=r;M+=p)for(let b=s+p/2;b<=h;b+=p)_.push((0, Ct.jsxs)("g",{transform:`translate(${M}, ${b})`,children:[(0, Ct.jsx)("circle",{cx:0,cy:0,r:E,fill:"none",stroke:$e(t),strokeWidth:dl(t)*.75}),(0, Ct.jsx)("circle",{cx:0,cy:0,r:2,fill:$e(t)})]},`${M}-${b}`));return (0, Ct.jsxs)("g",{children:[(0, Ct.jsx)("rect",{x:i,y:s,width:l.width,height:l.height,fill:$e(t),stroke:$e(t),strokeWidth:1,strokeDasharray:"4 4",opacity:.1}),_,t.label?(0, Ct.jsx)("text",{x:y,y:s-10,fontSize:ju(t),fill:$e(t),textAnchor:"middle",fontWeight:"bold",children:String(t.label)}):null,Me(i,s,l.width,l.height,a)]})});j("current_wire",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=l/2,s=i>90||i<=-90;return (0, Ct.jsxs)("g",{children:[(0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, Ct.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:$e(t),strokeWidth:dl(t),strokeDasharray:D_(t),strokeLinecap:"round"}),(0, Ct.jsx)("polygon",{points:`${r+8},0 ${r-6},-7 ${r-6},7`,fill:$e(t)}),t.label?(0, Ct.jsx)("text",{x:r,y:-15,fontSize:ju(t),fill:$e(t),textAnchor:"middle",fontStyle:"italic",transform:s?`rotate(180, ${r}, -15)`:void 0,children:String(t.label)}):null]}),(0, Ct.jsx)(ut,{el:t,ctx:a})]})});j("bar_magnet",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=Math.max(20,dl(t)*10),s=i>90||i<=-90;return (0, Ct.jsxs)("g",{children:[(0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, Ct.jsx)("rect",{x:0,y:-r/2,width:l/2,height:r,fill:"#ef4444",stroke:$e(t),strokeWidth:1}),(0, Ct.jsx)("rect",{x:l/2,y:-r/2,width:l/2,height:r,fill:"#3b82f6",stroke:$e(t),strokeWidth:1}),(0, Ct.jsx)("text",{x:l/4,y:0,fill:"white",fontSize:r*.6,fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",transform:s?`rotate(180, ${l/4}, 0)`:void 0,children:"N"}),(0, Ct.jsx)("text",{x:l*.75,y:0,fill:"white",fontSize:r*.6,fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",transform:s?`rotate(180, ${l*.75}, 0)`:void 0,children:"S"}),t.label?(0, Ct.jsx)("text",{x:l/2,y:-r/2-10,fill:$e(t),fontSize:ju(t),textAnchor:"middle",transform:s?`rotate(180, ${l/2}, ${-r/2-10})`:void 0,children:String(t.label)}):null]}),(0, Ct.jsx)(ut,{el:t,ctx:a})]})});j("coil",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=Math.max(Math.floor(l/15),1),s="M 0 0 ";for(let y=1;y<=r;y++)s+=`C ${y*(l/r)-l/(r*2)} -15, ${y*(l/r)} 20, ${y*(l/r)} 0 `;let h=i>90||i<=-90;return (0, Ct.jsxs)("g",{children:[(0, Ct.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, Ct.jsx)("path",{d:s,fill:"none",stroke:$e(t),strokeWidth:dl(t),strokeLinejoin:"round"}),t.label?(0, Ct.jsx)("text",{x:l/2,y:-20,fontSize:ju(t),fill:$e(t),textAnchor:"middle",transform:h?`rotate(180, ${l/2}, -20)`:void 0,children:String(t.label)}):null,(0, Ct.jsx)(Ce,{dPath:s,strokeWidth:24,strokeLinejoin:"round"})]}),(0, Ct.jsx)(ut,{el:t,ctx:a})]})});j("meter",(t,a)=>{let l=Math.max(16,dl(t)*5),i=String(t.label||"G");return (0, Ct.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, Ct.jsxs)(oe,{ctx:a,hitHalfSize:20,selectionHalfSize:30,children:[(0, Ct.jsx)("circle",{cx:0,cy:0,r:l,fill:"white",stroke:$e(t),strokeWidth:dl(t)}),(0, Ct.jsx)("text",{x:0,y:0,fontSize:ju(t),fill:$e(t),fontWeight:"bold",textAnchor:"middle",dominantBaseline:"central",children:i})]})})});j("ac_source",(t,a)=>{let l=Math.max(16,dl(t)*5);return (0, Ct.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, Ct.jsxs)(oe,{ctx:a,hitHalfSize:22,selectionHalfSize:30,children:[(0, Ct.jsx)("circle",{cx:0,cy:0,r:l,fill:"white",stroke:$e(t),strokeWidth:dl(t)}),(0, Ct.jsx)("path",{d:`M ${-l*.6} 0 Q ${-l*.3} ${-l*.6} 0 0 T ${l*.6} 0`,fill:"none",stroke:$e(t),strokeWidth:dl(t)*.8}),t.label?(0, Ct.jsx)("text",{x:0,y:l+18,fontSize:ju(t),fill:$e(t),textAnchor:"middle",children:String(t.label)}):null]})})});j("bezier",(t,a)=>{let{x1:l,y1:i,x2:r,y2:s}=t,y=(t.cps?.length?t.cps:[{x:(l+r)/2,y:Math.min(i,s)-50}])[0],p=`M ${l} ${i} Q ${y.x} ${y.y} ${r} ${s}`,E=[{x:l,y:i},y,{x:r,y:s}],_=.25*l+.5*y.x+.25*r,M=.25*i+.5*y.y+.25*s,b=Math.atan2(s-i,r-l),k=!!t.showArrow;return (0, Ct.jsxs)("g",{children:[(0, Ct.jsx)("path",{d:p,fill:"none",stroke:"transparent",strokeWidth:24,strokeLinecap:"round",strokeLinejoin:"round"}),(0, Ct.jsx)("path",{d:p,fill:"none",stroke:$e(t),strokeWidth:dl(t),strokeDasharray:D_(t),strokeLinecap:"round",strokeLinejoin:"round"}),k?(0, Ct.jsx)("g",{transform:`translate(${_}, ${M}) rotate(${b*180/Math.PI})`,children:(0, Ct.jsx)("polygon",{points:"6,0 -6,-5 -6,5",fill:$e(t)})}):null,t.label?(0, Ct.jsx)("text",{x:_,y:M-14,fontSize:ju(t),fill:$e(t),textAnchor:"middle",children:String(t.label)}):null,(0, Ct.jsx)(z_,{x1:l,y1:i,x2:r,y2:s,cp0:y,ctx:a,pts:E})]})});var st=$t(Pt()),$a=t=>t.color||"#0f172a",La=t=>t.strokeWidth||2,C_=t=>t.fontSize||16,Ya=t=>{if(t.lineStyle==="dashed"||t.type==="dashed_line"||t.type==="dashed")return "6 6";if(t.lineStyle==="dotted")return "2 4"},Ea=t=>t?.isGhost?.5:1;j("axes",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(l+i)/2,y=(r+s)/2,p=Math.max(1,i-l),E=Math.max(1,s-r),_=$a(t),M=La(t),b=Ya(t);if(i-l<=1&&s-r<=1){let k=t.x1,Y=t.y1,$=40,K=C_(t);return (0, st.jsx)("g",{opacity:Ea(a),transform:`translate(${k}, ${Y})`,children:(0, st.jsxs)(oe,{ctx:a,hitHalfSize:52,selectionHalfSize:58,children:[(0, st.jsx)("line",{x1:0,y1:0,x2:$,y2:0,stroke:_,strokeWidth:M}),(0, st.jsx)("polygon",{points:`${$},0 ${$-8},-5 ${$-8},5`,fill:_}),(0, st.jsx)("text",{x:$+10,y:0,dominantBaseline:"central",textAnchor:"middle",fill:_,fontSize:K,fontFamily:"serif",fontStyle:"italic",children:"x"}),(0, st.jsx)("line",{x1:0,y1:0,x2:0,y2:-$,stroke:_,strokeWidth:M}),(0, st.jsx)("polygon",{points:`0,${-$} -5,${-$+8} 5,${-$+8}`,fill:_}),(0, st.jsx)("text",{x:0,y:-$-12,dominantBaseline:"central",textAnchor:"middle",fill:_,fontSize:K,fontFamily:"serif",fontStyle:"italic",children:"y"}),(0, st.jsx)("circle",{cx:0,cy:0,r:2,fill:_})]})})}return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:p,height:E,fill:"transparent"}),Me(l,r,p,E,a),(0, st.jsxs)("g",{pointerEvents:"none",children:[(0, st.jsx)("line",{x1:h,y1:r,x2:h,y2:s,stroke:_,strokeWidth:M,strokeDasharray:b,opacity:.8}),(0, st.jsx)("line",{x1:l,y1:y,x2:i,y2:y,stroke:_,strokeWidth:M,strokeDasharray:b,opacity:.8}),(0, st.jsx)("polygon",{points:`${i},${y} ${i-10},${y-5} ${i-10},${y+5}`,fill:_,opacity:.8}),(0, st.jsx)("polygon",{points:`${h},${r} ${h-5},${r+10} ${h+5},${r+10}`,fill:_,opacity:.8})]}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("circle",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=$a(t),r=La(t),s=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("circle",{cx:t.x1,cy:t.y1,r:l,fill:"none",stroke:i,strokeWidth:r,strokeDasharray:s,pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("ellipse",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(l+i)/2,y=(r+s)/2,p=Math.max(1,i-l),E=Math.max(1,s-r),_=$a(t),M=La(t),b=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:p,height:E,fill:"transparent"}),Me(l,r,p,E,a),(0, st.jsx)("ellipse",{cx:h,cy:y,rx:p/2,ry:E/2,fill:"none",stroke:_,strokeWidth:M,strokeDasharray:b,pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("rectangle",(t,a)=>{let l=fn(t.x1,t.y1,t.x2,t.y2),i=$a(t),r=La(t),s=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l.minX,y:l.minY,width:l.width,height:l.height,fill:"transparent"}),Me(l.minX,l.minY,l.width,l.height,a),(0, st.jsx)("rect",{x:l.minX,y:l.minY,width:l.width,height:l.height,fill:"none",stroke:i,strokeWidth:r,strokeDasharray:s,strokeLinejoin:"round",pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("angle",(t,a)=>{let{x1:l,y1:i,x2:r,y2:s}=t,h=r-l,y=s-i,p=Math.hypot(h,y),E=Math.min(l,r),_=Math.max(l,r),M=Math.min(i,s),b=Math.max(i,s),k=Math.max(1,_-E),Y=Math.max(1,b-M),$=$a(t),K=La(t),C=Ya(t),z=C_(t),O=Math.atan2(y,h),L=Math.min(p*.4,40),nt=(h>=0?1:-1)===1?0:Math.PI,at=O-nt;at=Math.atan2(Math.sin(at),Math.cos(at));let Mt=nt+at/2,P=at>0?1:0,fe=l+L*Math.cos(nt),Lt=i+L*Math.sin(nt),rt=l+L*Math.cos(O),pt=i+L*Math.sin(O),Z=O*180/Math.PI;return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:E,y:M,width:k,height:Y,fill:"transparent"}),Me(E,M,k,Y,a),(0, st.jsxs)("g",{pointerEvents:"none",children:[(0, st.jsx)("line",{x1:l,y1:i,x2:l+h,y2:i,stroke:$,strokeWidth:K,strokeDasharray:"4 4",opacity:.6}),(0, st.jsx)("line",{x1:l,y1:i,x2:r,y2:s,stroke:$,strokeWidth:K,strokeLinecap:"round",strokeDasharray:C}),(0, st.jsx)("g",{transform:`translate(${r}, ${s}) rotate(${Z})`,children:(0, st.jsx)("polygon",{points:"0,0 -12,-6 -12,6",fill:$})}),p>20&&(0, st.jsx)("path",{d:`M ${fe} ${Lt} A ${L} ${L} 0 0 ${P} ${rt} ${pt}`,fill:"none",stroke:$,strokeWidth:K}),t.label&&(0, st.jsx)("text",{x:l+(L+16)*Math.cos(Mt),y:i+(L+16)*Math.sin(Mt),fontSize:z,fill:$,fontFamily:"serif",fontStyle:"italic",dominantBaseline:"central",textAnchor:"middle",children:String(t.label)})]}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("parabola_v",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(l+i)/2,y=Math.max(1,i-l),p=Math.max(1,s-r),E=2*t.y1-t.y2,_=$a(t),M=La(t),b=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:y,height:p,fill:"transparent"}),Me(l,r,y,p,a),(0, st.jsx)("path",{d:`M ${l} ${t.y2} Q ${h} ${E} ${i} ${t.y2}`,fill:"none",stroke:_,strokeWidth:M,strokeDasharray:b,pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("parabola_h",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(r+s)/2,y=Math.max(1,i-l),p=Math.max(1,s-r),E=2*t.x1-t.x2,_=$a(t),M=La(t),b=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:y,height:p,fill:"transparent"}),Me(l,r,y,p,a),(0, st.jsx)("path",{d:`M ${t.x2} ${r} Q ${E} ${h} ${t.x2} ${s}`,fill:"none",stroke:_,strokeWidth:M,strokeDasharray:b,pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("hyperbola",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(l+i)/2,y=(r+s)/2,p=Math.max(1,i-l),E=Math.max(1,s-r),_=$a(t),M=La(t),b=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:p,height:E,fill:"transparent"}),Me(l,r,p,E,a),(0, st.jsxs)("g",{pointerEvents:"none",children:[(0, st.jsx)("path",{d:`M ${l} ${r} Q ${h} ${y} ${l} ${s}`,fill:"none",stroke:_,strokeWidth:M,strokeDasharray:b}),(0, st.jsx)("path",{d:`M ${i} ${r} Q ${h} ${y} ${i} ${s}`,fill:"none",stroke:_,strokeWidth:M,strokeDasharray:b})]}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("modulus",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(l+i)/2,y=Math.max(1,i-l),p=Math.max(1,s-r),E=$a(t),_=La(t),M=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:y,height:p,fill:"transparent"}),Me(l,r,y,p,a),(0, st.jsx)("polyline",{points:`${l},${r} ${h},${s} ${i},${r}`,fill:"none",stroke:E,strokeWidth:_,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:M,pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("exponential",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(l+i)/2,y=Math.max(1,i-l),p=Math.max(1,s-r),E=$a(t),_=La(t),M=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:y,height:p,fill:"transparent"}),Me(l,r,y,p,a),(0, st.jsx)("path",{d:`M ${l} ${s} Q ${h+y*.2} ${s} ${i} ${r}`,fill:"none",stroke:E,strokeWidth:_,strokeDasharray:M,pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("logarithmic",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(r+s)/2,y=Math.max(1,i-l),p=Math.max(1,s-r),E=$a(t),_=La(t),M=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:y,height:p,fill:"transparent"}),Me(l,r,y,p,a),(0, st.jsx)("path",{d:`M ${l} ${s} Q ${l} ${h-p*.2} ${i} ${r}`,fill:"none",stroke:E,strokeWidth:_,strokeDasharray:M,pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("sine_wave",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(r+s)/2,y=Math.max(1,i-l),p=Math.max(1,s-r),E=y/4,_=$a(t),M=La(t),b=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:y,height:p,fill:"transparent"}),Me(l,r,y,p,a),(0, st.jsx)("path",{d:`M ${l} ${h} Q ${l+E/2} ${r}, ${l+E} ${h} T ${l+2*E} ${h} T ${l+3*E} ${h} T ${i} ${h}`,fill:"none",stroke:_,strokeWidth:M,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:b,pointerEvents:"none"}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("step_function",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=Math.max(1,i-l),y=Math.max(1,s-r),p=$a(t),E=La(t),_=Ya(t),M=4,b=h/M,k=y/M,Y=[];for(let $=0;$<M;$++){let K=l+$*b,C=s-$*k,z=K+b;Y.push((0, st.jsxs)("g",{children:[(0, st.jsx)("line",{x1:K,y1:C,x2:z,y2:C,stroke:p,strokeWidth:E,strokeDasharray:_}),(0, st.jsx)("circle",{cx:K,cy:C,r:E*1.5,fill:p}),(0, st.jsx)("circle",{cx:z,cy:C,r:E*1.5,fill:"white",stroke:p,strokeWidth:E*.75})]},$));}return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:h,height:y,fill:"transparent"}),Me(l,r,h,y,a),(0, st.jsx)("g",{pointerEvents:"none",children:Y}),(0, st.jsx)(ut,{el:t,ctx:a})]})});j("shaded_area",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.max(t.x1,t.x2),r=Math.min(t.y1,t.y2),s=Math.max(t.y1,t.y2),h=(l+i)/2,y=Math.max(1,i-l),p=Math.max(1,s-r),E=$a(t),_=La(t),M=Ya(t);return (0, st.jsxs)("g",{opacity:Ea(a),children:[(0, st.jsx)("rect",{x:l,y:r,width:y,height:p,fill:"transparent"}),Me(l,r,y,p,a),(0, st.jsxs)("g",{pointerEvents:"none",children:[(0, st.jsx)("path",{d:`M ${l} ${s} L ${l} ${r+p*.3} Q ${h} ${r} ${i} ${r+p*.3} L ${i} ${s} Z`,fill:E,opacity:.2}),(0, st.jsx)("path",{d:`M ${l} ${r+p*.3} Q ${h} ${r} ${i} ${r+p*.3}`,fill:"none",stroke:E,strokeWidth:_,strokeDasharray:M})]}),(0, st.jsx)(ut,{el:t,ctx:a})]})});var U=$t(Pt()),Wn=t=>t.color||"#0f172a",Fn=t=>t.strokeWidth||2,Bn=t=>t.fontSize||18;j("mass_box",(t,a)=>{let l=t.size||30,i=Wn(t),r=Fn(t),s=Bn(t),h=Math.max(36,l/2+24);return (0, U.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, U.jsxs)(oe,{ctx:a,hitHalfSize:h,selectionHalfSize:h+8,children:[(0, U.jsx)("rect",{x:-l/2,y:-l/2,width:l,height:l,fill:i,fillOpacity:.2,stroke:i,strokeWidth:r,rx:4,pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:0,y:0,dominantBaseline:"central",textAnchor:"middle",fontSize:s,fill:i,fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null]})})});j("tuning_fork",(t,a)=>{let l=Wn(t),i=Fn(t),r=Bn(t),s=Math.max(3,i);return (0, U.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, U.jsxs)(oe,{ctx:a,hitHalfSize:38,selectionHalfSize:46,children:[(0, U.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:s,strokeLinecap:"round",pointerEvents:"none"}),(0, U.jsx)("line",{x1:"0",y1:"10",x2:"0",y2:"30",stroke:l,strokeWidth:Math.max(4,i),strokeLinecap:"round",pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:0,y:45,fontSize:r,fill:l,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});j("speaker",(t,a)=>{let l=Wn(t),i=Bn(t);return (0, U.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, U.jsxs)(oe,{ctx:a,hitHalfSize:36,selectionHalfSize:44,children:[(0, U.jsx)("polygon",{points:"-10,-15 5,-25 5,25 -10,15",fill:l,pointerEvents:"none"}),(0, U.jsx)("rect",{x:"-20",y:"-15",width:"10",height:"30",fill:l,pointerEvents:"none"}),(0, U.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",pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:0,y:40,fontSize:i,fill:l,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});j("wavefronts",(t,a)=>{let l=t.rings||5,i=t.velocityRatio??0,r=Wn(t),s=Fn(t),h=Bn(t),y=[];for(let E=1;E<=l;E++){let _=E*20,M=i*_;y.push((0, U.jsx)("circle",{cx:M,cy:0,r:_,fill:"none",stroke:r,strokeWidth:s,opacity:1-E/l*.5,pointerEvents:"none"},E));}let p=l*20+Math.abs(i)*l*20+30;return (0, U.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, U.jsxs)(oe,{ctx:a,hitHalfSize:p,selectionHalfSize:p+10,children:[(0, U.jsx)("circle",{cx:0,cy:0,r:4,fill:r,pointerEvents:"none"}),y,t.label?(0, U.jsx)("text",{x:0,y:l*20+20,fontSize:h,fill:r,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});j("pendulum",(t,a)=>{let l=t.size||15,i=Wn(t),r=Fn(t),s=Bn(t),h=Math.atan2(t.x2-t.x1,t.y2-t.y1),y=h*(180/Math.PI),p=Math.hypot(t.x2-t.x1,t.y2-t.y1),E=Math.min(40,p*.5),_=Math.sin(h)*E,M=Math.cos(h)*E,b=h>0?0:1,k=t.showForces;return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, U.jsx)("line",{x1:-20,y1:0,x2:20,y2:0,stroke:i,strokeWidth:2}),(0, U.jsx)("line",{x1:-15,y1:0,x2:-10,y2:-5,stroke:i}),(0, U.jsx)("line",{x1:0,y1:0,x2:5,y2:-5,stroke:i}),(0, U.jsx)("line",{x1:15,y1:0,x2:20,y2:-5,stroke:i}),(0, U.jsx)("line",{x1:0,y1:0,x2:0,y2:p+20,stroke:i,strokeWidth:1,strokeDasharray:"4 4",opacity:.5}),Math.abs(h)>.05?(0, U.jsx)("path",{d:`M 0 ${E} A ${E} ${E} 0 0 ${b} ${_} ${M}`,fill:"none",stroke:i,strokeWidth:1.5}):null,(0, U.jsxs)("g",{transform:`rotate(${-y})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:0,y2:p,stroke:i,strokeWidth:r}),(0, U.jsx)("circle",{cx:0,cy:p,r:l,fill:i,stroke:"#fff",strokeWidth:2}),k?(0, U.jsxs)("g",{transform:`translate(0, ${p})`,children:[(0, U.jsxs)("g",{transform:`rotate(${y})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:0,y2:40,stroke:"#ef4444",strokeWidth:2}),(0, U.jsx)("polygon",{points:"0,45 -4,37 4,37",fill:"#ef4444"}),(0, U.jsx)("text",{x:10,y:40,fontSize:12,fill:"#ef4444",children:"F_g"})]}),(0, U.jsx)("line",{x1:0,y1:0,x2:0,y2:-40,stroke:"#3b82f6",strokeWidth:2}),(0, U.jsx)("polygon",{points:"0,-45 -4,-37 4,-37",fill:"#3b82f6"}),(0, U.jsx)("text",{x:10,y:-35,fontSize:12,fill:"#3b82f6",children:"T"}),(0, U.jsx)("line",{x1:0,y1:0,x2:-35*Math.sin(h),y2:0,stroke:"#10b981",strokeWidth:2}),(0, U.jsx)("polygon",{points:`${ -40*Math.sin(h)},0 ${ -32*Math.sin(h)},-4 ${ -32*Math.sin(h)},4`,fill:"#10b981"}),(0, U.jsx)("text",{x:-45*Math.sin(h),y:-10,fontSize:12,fill:"#10b981",children:"F_g sin(\u03B8)"})]}):null,t.label?(0, U.jsx)("text",{x:0,y:p+l+15,fontSize:s,fill:i,textAnchor:"middle",children:String(t.label)}):null]})]}),(0, U.jsx)(ut,{el:t,ctx:a,padX:Math.max(80,p+l+30),padY:Math.max(80,p+l+30)})]})});j("phasor",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.x2-t.x1,s=t.y2-t.y1,h=Wn(t),y=Fn(t),p=Bn(t),E=t.showProjection;return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("circle",{cx:0,cy:0,r:l,fill:"none",stroke:h,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, U.jsx)("line",{x1:-l-10,y1:0,x2:l+10,y2:0,stroke:h,strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, U.jsx)("line",{x1:0,y1:-l-10,x2:0,y2:l+10,stroke:h,strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:h,strokeWidth:y,pointerEvents:"none"}),(0, U.jsx)("polygon",{points:`${l},0 ${l-12},-6 ${l-12},6`,fill:h,pointerEvents:"none"}),E?(0, U.jsxs)("g",{transform:`rotate(${-i})`,children:[(0, U.jsx)("line",{x1:r,y1:s,x2:r,y2:0,stroke:"#ef4444",strokeWidth:1,strokeDasharray:"4 4"}),(0, U.jsx)("line",{x1:r,y1:s,x2:0,y2:s,stroke:"#3b82f6",strokeWidth:1,strokeDasharray:"4 4"}),(0, U.jsx)("line",{x1:0,y1:0,x2:r,y2:0,stroke:"#ef4444",strokeWidth:2}),(0, U.jsx)("polygon",{points:`${r},0 ${r>0?r-8:r+8},-4 ${r>0?r-8:r+8},4`,fill:"#ef4444"}),(0, U.jsx)("line",{x1:0,y1:0,x2:0,y2:s,stroke:"#3b82f6",strokeWidth:2}),(0, U.jsx)("polygon",{points:`0,${s} -4,${s>0?s-8:s+8} 4,${s>0?s-8:s+8}`,fill:"#3b82f6"})]}):null,(0, U.jsx)("path",{d:`M ${l*.3} 0 A ${l*.3} ${l*.3} 0 0 0 ${l*.3*Math.cos(-i*Math.PI/180)} ${l*.3*Math.sin(-i*Math.PI/180)}`,fill:"none",stroke:h,strokeWidth:1.5,transform:`rotate(${-i})`}),t.label?(0, U.jsx)("text",{x:l/2,y:-15,fontSize:p,fill:h,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padX:l+28,padY:l+28})]})});j("sine_wave",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.amplitude||40,s=t.loops||2,h=l/(s/2),y=Wn(t),p=Fn(t),E=Bn(t),_="M 0 0",M=Math.max(1,l/100);for(let b=0;b<=l;b+=M)_+=` L ${b} ${-r*Math.sin(b/h*2*Math.PI)}`;return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:y,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, U.jsx)(Ce,{dPath:_,strokeWidth:22,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:_,fill:"none",stroke:y,strokeWidth:p,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:l/2,y:-r-15,fontSize:E,fill:y,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:r+28})]})});j("standing_wave",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.amplitude||40,s=t.loops||3,h=l/(s/2),y=Wn(t),p=Fn(t),E=Bn(t),_="M 0 0",M="M 0 0",b=Math.max(1,l/100);for(let k=0;k<=l;k+=b){let Y=r*Math.sin(k/h*2*Math.PI);_+=` L ${k} ${-Y}`,M+=` L ${k} ${Y}`;}return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:y,strokeWidth:1,opacity:.5,pointerEvents:"none"}),(0, U.jsx)(Ce,{dPath:_,strokeWidth:22,strokeLinejoin:"round"}),(0, U.jsx)(Ce,{dPath:M,strokeWidth:22,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:_,fill:y,fillOpacity:.1,stroke:y,strokeWidth:p,strokeLinejoin:"round",pointerEvents:"none"}),(0, U.jsx)("path",{d:M,fill:"none",stroke:y,strokeWidth:p,strokeDasharray:"4 4",strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:l/2,y:-r-15,fontSize:E,fill:y,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:r+28})]})});j("shm_graph",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.amplitude||40,s=t.loops||1,h=l/s,y=t.graphType||"x",p=Wn(t),E=Fn(t),_=Bn(t),M=`M 0 ${-r}`,b="M 0 0",k=`M 0 ${r}`,Y=Math.max(1,l/100);for(let $=0;$<=l;$+=Y){let K=$/h*2*Math.PI;M+=` L ${$} ${-r*Math.cos(K)}`,b+=` L ${$} ${-r*.8*-Math.sin(K)}`,k+=` L ${$} ${-r*.6*-Math.cos(K)}`;}return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:p,strokeWidth:1,opacity:.5,pointerEvents:"none"}),(0, U.jsx)("line",{x1:0,y1:-r*1.2,x2:0,y2:r*1.2,stroke:p,strokeWidth:1,opacity:.5,pointerEvents:"none"}),y==="x"||y==="all"?(0, U.jsxs)(U.Fragment,{children:[(0, U.jsx)(Ce,{dPath:M,strokeWidth:20,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:M,fill:"none",stroke:"#3b82f6",strokeWidth:E,strokeLinejoin:"round",pointerEvents:"none"})]}):null,y==="v"||y==="all"?(0, U.jsxs)(U.Fragment,{children:[(0, U.jsx)(Ce,{dPath:b,strokeWidth:20,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:b,fill:"none",stroke:"#ef4444",strokeWidth:E,strokeLinejoin:"round",pointerEvents:"none"})]}):null,y==="a"||y==="all"?(0, U.jsxs)(U.Fragment,{children:[(0, U.jsx)(Ce,{dPath:k,strokeWidth:20,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:k,fill:"none",stroke:"#10b981",strokeWidth:E,strokeLinejoin:"round",pointerEvents:"none"})]}):null,t.label?(0, U.jsx)("text",{x:l/2,y:-r-15,fontSize:_,fill:p,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:r*1.2+28})]})});j("energy_graph",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.amplitude||50,s=t.loops||1,h=l/s,y=t.domain||"time",p=Wn(t),E=Fn(t),_=Bn(t),M="M 0 0",b=`M 0 ${-r}`,k=Math.max(1,l/100);if(y==="time"){M=`M 0 ${-r}`,b="M 0 0";for(let Y=0;Y<=l;Y+=k){let $=Y/h*2*Math.PI;M+=` L ${Y} ${-r*Math.pow(Math.cos($),2)}`,b+=` L ${Y} ${-r*Math.pow(Math.sin($),2)}`;}}else for(let Y=0;Y<=l;Y+=k){let $=2*(Y/l)-1,K=r*$*$;M+=` L ${Y} ${-K}`,b+=` L ${Y} ${-(r-K)}`;}return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:p,strokeWidth:1,opacity:.5,pointerEvents:"none"}),(0, U.jsx)("line",{x1:0,y1:-r,x2:l,y2:-r,stroke:p,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, U.jsx)(Ce,{dPath:M,strokeWidth:20,strokeLinejoin:"round"}),(0, U.jsx)(Ce,{dPath:b,strokeWidth:20,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:M,fill:"none",stroke:"#10b981",strokeWidth:E,strokeLinejoin:"round",pointerEvents:"none"}),(0, U.jsx)("path",{d:b,fill:"none",stroke:"#ef4444",strokeWidth:E,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:l/2,y:-r-15,fontSize:_,fill:p,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:r+28})]})});j("strobe_shm",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.amplitude||40,s=t.loops||1,h=Wn(t),y=Fn(t),p=Bn(t),E=10,_=[],M=[],b=[];for(let k=0;k<=E;k++){let Y=k/E,$=r*Math.cos(Y*2*Math.PI*s),K=Y*l;_.push(`${$},${K}`),M.push((0, U.jsx)("circle",{cx:$,cy:K,r:y*2,fill:h,pointerEvents:"none"},`c${k}`)),b.push((0, U.jsx)("line",{x1:-r-20,y1:K,x2:r+20,y2:K,stroke:h,strokeWidth:1,strokeDasharray:"4 4",opacity:.3},`l${k}`));}return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[b,(0, U.jsx)("polyline",{points:_.join(" "),fill:"none",stroke:h,strokeWidth:1,opacity:.4,pointerEvents:"none"}),(0, U.jsx)("line",{x1:0,y1:0,x2:0,y2:l,stroke:h,strokeWidth:1,opacity:.5,pointerEvents:"none"}),M,t.label?(0, U.jsx)("text",{x:0,y:-15,fontSize:p,fill:h,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padX:r+35,padY:l+35})]})});j("torsion_pendulum",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=Wn(t),s=Fn(t),h=Bn(t),y=Math.max(18,Math.min(58,t.size||26+l*.2)),p=Math.max(5,Math.min(11,y*.14)),E=Math.max(-45,Math.min(45,t.rotation??16)),_=E*Math.PI/180,M=Math.min(14,y*.35),b=M*Math.sin(_),k=-M*Math.cos(_),Y=4,$=Math.max(Y+8,l-p),K=[],C=Math.min(2.8,p*.35),z=24;for(let B=0;B<=z;B++){let L=B/z,xt=Y+L*($-Y),nt=C*Math.sin(L*Math.PI*5);K.push(B===0?`M ${xt} ${nt}`:` L ${xt} ${nt}`);}let O=Math.max(y+p+28,l*.35+40);return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("rect",{x:-28,y:-14,width:56,height:10,rx:2,fill:"#e2e8f0",stroke:r,strokeWidth:1.25,pointerEvents:"none"}),(0, U.jsx)("rect",{x:-8,y:-4,width:16,height:8,rx:1,fill:"#94a3b8",stroke:r,strokeWidth:1,pointerEvents:"none"}),(0, U.jsx)("line",{x1:-22,y1:-9,x2:22,y2:-9,stroke:"#64748b",strokeWidth:1,pointerEvents:"none"}),(0, U.jsx)("path",{d:K.join(""),fill:"none",stroke:r,strokeWidth:1,strokeLinecap:"round",opacity:.35,pointerEvents:"none"}),(0, U.jsx)("line",{x1:Y,y1:0,x2:$,y2:0,stroke:"#64748b",strokeWidth:Math.max(1,s*.45),strokeLinecap:"round",pointerEvents:"none"}),(0, U.jsx)("rect",{x:l-p,y:-y,width:2*p,height:2*y,rx:p-.5,fill:"#f8fafc",stroke:r,strokeWidth:s,pointerEvents:"none"}),(0, U.jsx)("line",{x1:l-p+1,y1:0,x2:l+p-1,y2:0,stroke:"#cbd5e1",strokeWidth:1,pointerEvents:"none"}),(0, U.jsx)("circle",{cx:l,cy:0,r:Math.min(5,p-1),fill:"#94a3b8",stroke:r,strokeWidth:1,pointerEvents:"none"}),(0, U.jsx)("line",{x1:l,y1:0,x2:l,y2:-(y-6),stroke:"#94a3b8",strokeWidth:1.25,strokeDasharray:"3 3",opacity:.65,pointerEvents:"none"}),(0, U.jsx)("g",{transform:`translate(${l},0) rotate(${E})`,children:(0, U.jsx)("line",{x1:0,y1:0,x2:0,y2:-(y-5),stroke:"#dc2626",strokeWidth:Math.max(1.5,s*.75),strokeLinecap:"round",pointerEvents:"none"})}),Math.abs(E)>=2?(0, U.jsx)("g",{transform:`translate(${l},0)`,children:(0, U.jsx)("path",{d:`M 0 ${-M} A ${M} ${M} 0 0 ${E>=0?1:0} ${b} ${k}`,fill:"none",stroke:"#dc2626",strokeWidth:1.25,pointerEvents:"none"})}):null,t.label?(0, U.jsx)("text",{x:l,y:y+22,fontSize:h,fill:r,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padX:O,padY:O})]})});j("vane_liquid",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=Wn(t),s=Fn(t),h=Bn(t),y=Math.max(40,l*.4),p=Math.max(40,l*.5);return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:r,strokeWidth:s,pointerEvents:"none"}),(0, U.jsx)("line",{x1:l,y1:-y*.3,x2:l,y2:y*.3,stroke:r,strokeWidth:s*1.5,strokeLinecap:"round",pointerEvents:"none"}),(0, U.jsx)("path",{d:`M ${l-p} ${-y/2} L ${l+10} ${-y/2} L ${l+10} ${y/2} L ${l-p} ${y/2}`,fill:"none",stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"none"}),(0, U.jsx)("rect",{x:l-p+2,y:-y/2+2,width:p+8,height:y-4,fill:"#38bdf8",fillOpacity:.3,pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:l/2,y:-y/2-15,fontSize:h,fill:r,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padX:p+40,padY:y+40})]})});j("wave_pulse",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.amplitude||50,s=Wn(t),h=Fn(t),y=Bn(t),p=l/2,E=l/6,_="M 0 0",M=Math.max(1,l/50);for(let b=0;b<=l;b+=M){let k=r*Math.exp(-Math.pow(b-p,2)/(2*E*E));_+=` L ${b} ${-k}`;}return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:s,strokeWidth:h,strokeLinecap:"round",pointerEvents:"none"}),(0, U.jsx)(Ce,{dPath:_,strokeWidth:22,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:_,fill:s,fillOpacity:.1,stroke:s,strokeWidth:h,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:p,y:-r-15,fontSize:y,fill:s,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:r+28})]})});j("damped_wave",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.amplitude||50,s=t.damping||.015,h=t.frequency||10,y=Wn(t),p=Fn(t),E=Bn(t),_=`M 0 ${-r}`,M=`M 0 ${-r}`,b=`M 0 ${r}`,k=Math.max(1,l/200);for(let Y=0;Y<=l;Y+=k){let $=r*Math.exp(-s*Y),K=$*Math.cos(Y/l*h*2*Math.PI);_+=` L ${Y} ${-K}`,M+=` L ${Y} ${-$}`,b+=` L ${Y} ${$}`;}return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:y,strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, U.jsx)("path",{d:M,fill:"none",stroke:y,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, U.jsx)("path",{d:b,fill:"none",stroke:y,strokeWidth:1,strokeDasharray:"4 4",opacity:.5,pointerEvents:"none"}),(0, U.jsx)(Ce,{dPath:_,strokeWidth:22,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:_,fill:"none",stroke:y,strokeWidth:p,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:l/2,y:-r-15,fontSize:E,fill:y,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:r+28})]})});j("beats_graph",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.amplitude||30,s=t.frequency||20,h=t.beatFreq||2,y=Wn(t),p=Fn(t),E=Bn(t),_="M 0 0",M="M 0 0",b="M 0 0",k=Math.max(1,l/200);for(let Y=0;Y<=l;Y+=k){let $=r*Math.cos(Y/l*h*Math.PI),K=$*Math.sin(Y/l*s*2*Math.PI);_+=` L ${Y} ${-K}`,M+=` L ${Y} ${-Math.abs($)}`,b+=` L ${Y} ${Math.abs($)}`;}return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:y,strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, U.jsx)("path",{d:M,fill:"none",stroke:y,strokeWidth:1,strokeDasharray:"2 4",opacity:.5,pointerEvents:"none"}),(0, U.jsx)("path",{d:b,fill:"none",stroke:y,strokeWidth:1,strokeDasharray:"2 4",opacity:.5,pointerEvents:"none"}),(0, U.jsx)(Ce,{dPath:_,strokeWidth:22,strokeLinejoin:"round"}),(0, U.jsx)("path",{d:_,fill:"none",stroke:y,strokeWidth:p,strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, U.jsx)("text",{x:l/2,y:-r-20,fontSize:E,fill:y,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:r+28})]})});j("mach_cone",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.machNumber||2,s=Math.asin(1/Math.max(1.01,r)),h=l,y=h*Math.tan(s),p=Wn(t),E=Fn(t),_=Bn(t);return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:h,y2:0,stroke:p,strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"}),(0, U.jsx)("line",{x1:h,y1:0,x2:0,y2:-y,stroke:p,strokeWidth:E,pointerEvents:"none"}),(0, U.jsx)("line",{x1:h,y1:0,x2:0,y2:y,stroke:p,strokeWidth:E,pointerEvents:"none"}),(0, U.jsx)("circle",{cx:h,cy:0,r:4,fill:p,pointerEvents:"none"}),[.2,.5,.8].map(M=>(0, U.jsx)("circle",{cx:h*M,cy:0,r:(1-M)*y,fill:"none",stroke:p,strokeWidth:1,opacity:.6,pointerEvents:"none"},M)),t.label?(0, U.jsx)("text",{x:h/2,y:y+20,fontSize:_,fill:p,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:y+35})]})});j("wall",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=Wn(t),s=Fn(t),h=Bn(t),y=[],p=Math.max(2,Math.floor(l/10));for(let E=0;E<=p;E++){let _=E/p*l;y.push((0, U.jsx)("line",{x1:_,y1:0,x2:_-8,y2:-12,stroke:r,strokeWidth:1,pointerEvents:"none"},E));}return (0, U.jsxs)("g",{children:[(0, U.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, U.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:r,strokeWidth:s,pointerEvents:"none"}),y,t.label?(0, U.jsx)("text",{x:l/2,y:20,fontSize:h,fill:r,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, U.jsx)(ut,{el:t,ctx:a,padY:35})]})});var tt=$t(Pt()),At=t=>t.color||"#0f172a",Mn=t=>t.strokeWidth||2,Ma=t=>t.fontSize||18;function hw(t,a,l=20){let i=Math.max(3,a??Math.floor(t/20)),r=t/i,s=`M 0 0 L ${r*.2} 0 `;for(let h=0;h<i;h++){let y=h*r;h===i-1?s+=`L ${y+r*.25} ${-l/2} L ${y+r*.75} ${l/2} L ${t} 0 `:s+=`L ${y+r*.25} ${-l/2} L ${y+r*.75} ${l/2} L ${y+r} 0 `;}return s}j("point_mass",(t,a)=>{let l=t.size??15,i=Math.max(36,l+22);return (0, tt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, tt.jsxs)(oe,{ctx:a,hitHalfSize:i/2,selectionHalfSize:i/2+8,children:[(0, tt.jsx)("circle",{cx:0,cy:0,r:l,fill:At(t),fillOpacity:.8,stroke:At(t),strokeWidth:2}),(0, tt.jsx)("circle",{cx:0,cy:0,r:l*.3,fill:"#fff",fillOpacity:.5}),t.label?(0, tt.jsx)("text",{x:0,y:l+15,fontSize:Ma(t),fill:At(t),textAnchor:"middle",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null]})})});j("com_indicator",(t,a)=>{let l=t.size??15,i=Math.max(40,l*2+12);return (0, tt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, tt.jsxs)(oe,{ctx:a,hitHalfSize:i/2,selectionHalfSize:i/2+10,children:[(0, tt.jsx)("circle",{cx:0,cy:0,r:l,fill:"none",stroke:At(t),strokeWidth:Mn(t)}),(0, tt.jsx)("line",{x1:-l*1.3,y1:0,x2:l*1.3,y2:0,stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),(0, tt.jsx)("line",{x1:0,y1:-l*1.3,x2:0,y2:l*1.3,stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),(0, tt.jsx)("path",{d:`M 0 0 L ${l} 0 A ${l} ${l} 0 0 0 0 ${-l} Z`,fill:At(t),fillOpacity:.5,pointerEvents:"none"}),(0, tt.jsx)("path",{d:`M 0 0 L ${-l} 0 A ${l} ${l} 0 0 0 0 ${l} Z`,fill:At(t),fillOpacity:.5,pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:0,y:l+15,fontSize:Ma(t),fill:At(t),textAnchor:"middle",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null]})})});j("pivot",(t,a)=>{let l=t.size??20,i=Math.max(44,l*2+24);return (0, tt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, tt.jsxs)(oe,{ctx:a,hitHalfSize:i/2,selectionHalfSize:i/2+10,children:[(0, tt.jsx)("polygon",{points:`0,0 ${-l},${l*1.5} ${l},${l*1.5}`,fill:"none",stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),(0, tt.jsx)("line",{x1:-l*1.5,y1:l*1.5,x2:l*1.5,y2:l*1.5,stroke:At(t),strokeWidth:Mn(t)+1,strokeLinecap:"round",pointerEvents:"none"}),(0, tt.jsx)("circle",{cx:0,cy:0,r:Mn(t)*1.5,fill:At(t),pointerEvents:"none"}),Array.from({length:5},(r,s)=>(0, tt.jsx)("line",{x1:-l+s*l*.5,y1:l*1.5,x2:-l+s*l*.5-5,y2:l*1.5+8,stroke:At(t),strokeWidth:1,pointerEvents:"none"},s)),t.label?(0, tt.jsx)("text",{x:0,y:l*1.5+20,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});j("block_mass",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(1,Math.abs(t.x2-t.x1)),s=Math.max(1,Math.abs(t.y2-t.y1));return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${l}, ${i})`,children:[(0, tt.jsx)("rect",{x:0,y:0,width:r,height:s,fill:At(t),fillOpacity:.2,stroke:At(t),strokeWidth:Mn(t),rx:2}),t.label?(0, tt.jsx)("text",{x:r/2,y:s/2,dominantBaseline:"central",textAnchor:"middle",fontSize:Ma(t),fill:At(t),fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null]}),Me(l,i,r,s,a),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("system_boundary",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(1,Math.abs(t.x2-t.x1)),s=Math.max(1,Math.abs(t.y2-t.y1));return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${l}, ${i})`,children:[(0, tt.jsx)("rect",{x:0,y:0,width:r,height:s,fill:"none",stroke:At(t),strokeWidth:Mn(t),strokeDasharray:"8 6",rx:15}),t.label?(0, tt.jsx)("text",{x:r/2,y:-10,fontSize:Ma(t),fill:At(t),textAnchor:"middle",fontStyle:"italic",pointerEvents:"none",children:String(t.label)}):null]}),Me(l,i,r,s,a),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("rocket",(t,a)=>{let l=t.x2-t.x1,i=t.y2-t.y1,r=Math.hypot(l,i),s=_t(t.x1,t.y1,t.x2,t.y2),h=Math.min(t.x1,t.x2),y=Math.max(t.x1,t.x2),p=Math.max(1,y-h);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${s})`,children:[(0, tt.jsx)("path",{d:`M 0 ${-p/4} L ${r*.7} ${-p/4} L ${r} 0 L ${r*.7} ${p/4} L 0 ${p/4} Z`,fill:"none",stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),(0, tt.jsx)("polygon",{points:`0,${-p/4} ${r*.2},${-p/4} 0,${-p/2}`,fill:At(t),fillOpacity:.8,pointerEvents:"none"}),(0, tt.jsx)("polygon",{points:`0,${p/4} ${r*.2},${p/4} 0,${p/2}`,fill:At(t),fillOpacity:.8,pointerEvents:"none"}),(0, tt.jsx)("path",{d:`M 0 ${-p/6} Q ${-r*.3} 0 0 ${p/6}`,fill:"#f97316",fillOpacity:.8,pointerEvents:"none"}),(0, tt.jsx)("path",{d:`M 0 ${-p/8} Q ${-r*.5} 0 0 ${p/8}`,fill:"#ef4444",fillOpacity:.6,pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:r/2,y:-p/2-10,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("dashed_path",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, tt.jsx)("line",{x1:0,y1:0,x2:l,y2:0,stroke:At(t),strokeWidth:Mn(t),strokeLinecap:"round",strokeDasharray:"8 6",pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:l/2,y:-10,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("uniform_rod",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=Mn(t);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, tt.jsx)("rect",{x:0,y:-r/2,width:l,height:r,fill:At(t),rx:r/4,pointerEvents:"none"}),(0, tt.jsx)("circle",{cx:l/2,cy:0,r:Math.max(2,r/4),fill:"#fff",pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:l/2,y:-r/2-10,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("solid_disk",(t,a)=>{let l=t.x2-t.x1,i=t.y2-t.y1,r=Math.hypot(l,i);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, tt.jsx)("circle",{cx:0,cy:0,r,fill:At(t),fillOpacity:.4,stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:0,y:r+20,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("hoop_ring",(t,a)=>{let l=t.x2-t.x1,i=t.y2-t.y1,r=Math.hypot(l,i);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, tt.jsx)("circle",{cx:0,cy:0,r,fill:"none",stroke:At(t),strokeWidth:Math.max(4,Mn(t)*2),pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:0,y:r+20,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("rolling_body",(t,a)=>{let l=t.x2-t.x1,i=t.y2-t.y1,r=Math.hypot(l,i);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, tt.jsx)("circle",{cx:0,cy:0,r,fill:At(t),fillOpacity:.1,stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),(0, tt.jsx)("line",{x1:-r,y1:0,x2:r,y2:0,stroke:At(t),strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"}),(0, tt.jsx)("line",{x1:0,y1:-r,x2:0,y2:r,stroke:At(t),strokeWidth:1,strokeDasharray:"4 4",pointerEvents:"none"}),(0, tt.jsx)("circle",{cx:0,cy:0,r:3,fill:At(t),pointerEvents:"none"}),t.showVelocity?(0, tt.jsxs)("g",{pointerEvents:"none",children:[(0, tt.jsx)("line",{x1:0,y1:0,x2:r*1.5,y2:0,stroke:"#ef4444",strokeWidth:2}),(0, tt.jsx)("polygon",{points:`${r*1.5},0 ${r*1.5-8},-4 ${r*1.5-8},4`,fill:"#ef4444"}),(0, tt.jsx)("text",{x:r*1.5+10,y:5,fill:"#ef4444",fontSize:14,fontStyle:"italic",children:"v"})]}):null,t.showOmega?(0, tt.jsxs)("g",{transform:`translate(0, ${-r*1.2})`,pointerEvents:"none",children:[(0, tt.jsx)("path",{d:`M ${-r*.4} 0 A ${r*.4} ${r*.4} 0 0 1 ${r*.4} 0`,fill:"none",stroke:"#10b981",strokeWidth:2}),(0, tt.jsx)("polygon",{points:`${r*.4},0 ${r*.4-4},-6 ${r*.4+4},-6`,fill:"#10b981"}),(0, tt.jsx)("text",{x:0,y:-10,fill:"#10b981",fontSize:14,fontStyle:"italic",textAnchor:"middle",children:"\u03C9"})]}):null,t.label?(0, tt.jsx)("text",{x:0,y:r+20,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("inclined_wedge",(t,a)=>{let{x1:l,y1:i,x2:r,y2:s}=t,h=r-l,y=s-i,p=Math.atan2(y,h)*(180/Math.PI),E=fn(l,i,r,s),_=Math.min(l,r),M=Math.min(i,s),b=E.width,k=E.height;return (0, tt.jsxs)("g",{children:[(0, tt.jsx)("polygon",{points:`${l},${i} ${l},${s} ${r},${s}`,fill:At(t),fillOpacity:.1,stroke:At(t),strokeWidth:Mn(t),strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:(l+r)/2,y:s-10,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null,Math.abs(r-l)>20&&Math.abs(s-i)>20?(0, tt.jsx)("path",{d:`M ${r>l?r-20:r+20} ${s} A 20 20 0 0 ${r>l?0:1} ${r>l?r-20*Math.cos(p*Math.PI/180):r+20*Math.cos(p*Math.PI/180)} ${s-20*Math.sin(Math.abs(p)*Math.PI/180)}`,fill:"none",stroke:At(t),strokeWidth:1,pointerEvents:"none"}):null,(0, tt.jsx)(fc,{minX:_,minY:M,width:b,height:k,ctx:a}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("pulley",(t,a)=>{let l=t.x2-t.x1,i=t.y2-t.y1,r=Math.hypot(l,i);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, tt.jsx)("path",{d:`M 0 0 L 0 ${-r*1.5}`,fill:"none",stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),(0, tt.jsx)("line",{x1:-r*.8,y1:-r*1.5,x2:r*.8,y2:-r*1.5,stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),Array.from({length:5},(s,h)=>(0, tt.jsx)("line",{x1:-r*.8+h*r*.4,y1:-r*1.5,x2:-r*.8+h*r*.4+5,y2:-r*1.5-5,stroke:At(t),strokeWidth:1,pointerEvents:"none"},h)),(0, tt.jsx)("circle",{cx:0,cy:0,r,fill:"#fff",stroke:At(t),strokeWidth:Mn(t),pointerEvents:"none"}),(0, tt.jsx)("circle",{cx:0,cy:0,r:r*.8,fill:"none",stroke:At(t),strokeWidth:1,opacity:.3,pointerEvents:"none"}),(0, tt.jsx)("circle",{cx:0,cy:0,r:3,fill:At(t),pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:0,y:-r*1.5-15,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});j("curve_arrow",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=`M 0 0 Q ${l/2} ${-l*.5} ${l} 0`,s=Bs(t.x1,t.y1,t.x2,t.y2,l/4);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, tt.jsx)("path",{d:r,fill:"none",stroke:At(t),strokeWidth:Mn(t),strokeLinecap:"round",pointerEvents:"none"}),(0, tt.jsx)(Ce,{dPath:r,strokeWidth:24,strokeLinecap:"round"}),(0, tt.jsx)("polygon",{points:`${l},0 ${l-8},-6 ${l-4},-1`,fill:At(t),transform:`rotate(20 ${l} 0)`,pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:l/2,y:-l*.3,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),a.isSelected&&!a.viewMode&&!a.isGhost?Ai(s.x,s.y,s.width,s.height):null,Di(t,a)]})});j("spring",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=hw(l,t.coils);return (0, tt.jsxs)("g",{children:[(0, tt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, tt.jsx)(Ce,{dPath:r,strokeWidth:26,strokeLinecap:"round",strokeLinejoin:"round"}),(0, tt.jsx)("path",{d:r,fill:"none",stroke:At(t),strokeWidth:Mn(t),strokeLinecap:"round",strokeLinejoin:"round",pointerEvents:"none"}),t.label?(0, tt.jsx)("text",{x:l/2,y:-20,fontSize:Ma(t),fill:At(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, tt.jsx)(ut,{el:t,ctx:a})]})});var _e=$t(Pt()),hl=(t,a)=>a?.isSelected?"#2563eb":t.color||"#111827",Vo=(t,a)=>a?.isSelected?2.5:t.strokeWidth||2;j("wire",(t,a)=>(0, _e.jsxs)("g",{opacity:a?.isGhost?.5:1,children:[(0, _e.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:hl(t,a),strokeWidth:Vo(t,a),strokeLinecap:"round",pointerEvents:"none"}),(0, _e.jsx)(ut,{el:t,ctx:a,hitWidth:20})]}));var qs=(t,a,l)=>{let i=mt(t.x1,t.y1,t.x2,t.y2),r=_t(t.x1,t.y1,t.x2,t.y2),s=t.x2-t.x1,h=t.y2-t.y1,y=(t.x1+t.x2)/2,p=(t.y1+t.y2)/2,E=-h/(i||1),_=s/(i||1);_>0&&(E=-E,_=-_);let M=20;return (0, _e.jsxs)("g",{opacity:l?.isGhost?.5:1,children:[(0, _e.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${r})`,children:(0, _e.jsx)("g",{children:a})}),t.label?(0, _e.jsx)("text",{x:y+E*M,y:p+_*M,dominantBaseline:"central",textAnchor:"middle",fill:hl(t,l),fontSize:"16",fontFamily:"serif",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null,t.value?(0, _e.jsx)("text",{x:y-E*M,y:p-_*M,dominantBaseline:"central",textAnchor:"middle",fill:"#4b5563",fontSize:"14",fontFamily:"sans-serif",pointerEvents:"none",children:String(t.value)}):null,(0, _e.jsx)(ut,{el:t,ctx:l,hitWidth:20})]})};j("resistor",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=l/2-15;return qs(t,(0, _e.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 ${l} 0`,fill:"none",stroke:hl(t,a),strokeWidth:Vo(t,a),strokeLinejoin:"bevel"}),a)});j("capacitor",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=l/2;return qs(t,(0, _e.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 ${l} 0`,fill:"none",stroke:hl(t,a),strokeWidth:Vo(t,a)}),a)});j("inductor",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=l/2-15;return qs(t,(0, _e.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 ${l} 0`,fill:"none",stroke:hl(t,a),strokeWidth:Vo(t,a)}),a)});j("diode",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=l/2;return qs(t,(0, _e.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 ${l} 0`,fill:"none",stroke:hl(t,a),strokeWidth:Vo(t,a)}),a)});j("battery",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=l/2;return qs(t,(0, _e.jsxs)(_e.Fragment,{children:[(0, _e.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 ${l} 0`,fill:"none",stroke:hl(t,a),strokeWidth:Vo(t,a)}),(0, _e.jsx)("line",{x1:i+4,y1:-8,x2:i+4,y2:8,stroke:hl(t,a),strokeWidth:Vo(t,a)+2}),(0, _e.jsx)("text",{x:i-12,y:-12,fontSize:"12",fill:hl(t,a),textAnchor:"middle",children:"+"})]}),a)});["meter_v","meter_a"].forEach(t=>j(t,(a,l)=>{let i=mt(a.x1,a.y1,a.x2,a.y2),r=i/2,s=t==="meter_v"?"V":"A";return qs(a,(0, _e.jsxs)(_e.Fragment,{children:[(0, _e.jsx)("path",{d:`M 0 0 L ${r-14} 0 M ${r+14} 0 L ${i} 0`,fill:"none",stroke:hl(a,l),strokeWidth:Vo(a,l)}),(0, _e.jsx)("circle",{cx:r,cy:0,r:14,fill:"#f8f9fa",stroke:hl(a,l),strokeWidth:Vo(a,l)}),(0, _e.jsx)("text",{x:r,y:0,textAnchor:"middle",dominantBaseline:"central",fill:hl(a,l),fontSize:"14",fontWeight:"bold",children:s})]}),l)}));j("ground",(t,a)=>(0, _e.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:a?.isGhost?.5:1,children:(0, _e.jsx)(oe,{ctx:a,hitHalfSize:28,selectionHalfSize:34,children:(0, _e.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:hl(t,a),strokeWidth:Vo(t,a)})})}));var O_=t=>{let a={};return t.forEach(l=>{if(l.type!=="wire")return;let i=`${l.x1},${l.y1}`,r=`${l.x2},${l.y2}`;a[i]=(a[i]||0)+1,a[r]=(a[r]||0)+1;}),Object.entries(a).filter(([,l])=>l>2).map(([l])=>l.split(",").map(Number))};var J=$t(Pt()),fo=t=>t.color||"#0f172a",qu=t=>t.strokeWidth||2,Ci=t=>t.fontSize||18,q1=t=>{let a=Math.sin(t)*1e4;return a-Math.floor(a)},yw=t=>{if(t.lineStyle==="dashed")return "6 6";if(t.lineStyle==="dotted")return "2 4"};j("pv_axes",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(1,Math.abs(t.x2-t.x1)),s=Math.max(1,Math.abs(t.y2-t.y1)),h=String(t.yLabel??"P"),y=String(t.xLabel??"V"),p=fo(t),E=qu(t),_=Ci(t);return (0, J.jsxs)("g",{children:[(0, J.jsxs)("g",{transform:`translate(${l}, ${i})`,children:[(0, J.jsx)("line",{x1:0,y1:0,x2:0,y2:s,stroke:p,strokeWidth:E}),(0, J.jsx)("polygon",{points:"0,0 -5,10 5,10",fill:p}),(0, J.jsx)("text",{x:-15,y:10,fontSize:_,fill:p,fontWeight:"bold",children:h}),(0, J.jsx)("line",{x1:0,y1:s,x2:r,y2:s,stroke:p,strokeWidth:E}),(0, J.jsx)("polygon",{points:`${r},${s} ${r-10},${s-5} ${r-10},${s+5}`,fill:p}),(0, J.jsx)("text",{x:r-10,y:s+20,fontSize:_,fill:p,fontWeight:"bold",children:y}),(0, J.jsx)("text",{x:-10,y:s+15,fontSize:12,fill:p,children:"0"}),t.label?(0, J.jsx)("text",{x:r/2,y:-10,fontSize:_,fill:p,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, J.jsx)(fc,{minX:l,minY:i,width:r,height:s,ctx:a}),(0, J.jsx)(ut,{el:t,ctx:a})]})});j("piston_cylinder",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(1,Math.abs(t.x2-t.x1)),s=Math.max(1,Math.abs(t.y2-t.y1)),h=t.compression??.5,y=s*h,p=fo(t),E=qu(t),_=[],M=40;for(let b=0;b<M;b++){let k=q1(Number(t.id)+b)*(r-10)+5,Y=y+10+q1(Number(t.id)+b*100)*(s-y-15);_.push((0, J.jsx)("circle",{cx:k,cy:Y,r:"2",fill:"#94a3b8"},b));}return (0, J.jsxs)("g",{children:[(0, J.jsxs)("g",{transform:`translate(${l}, ${i})`,children:[(0, J.jsx)("polyline",{points:`0,0 0,${s} ${r},${s} ${r},0`,fill:"#f8fafc",stroke:p,strokeWidth:E,strokeLinecap:"square",strokeLinejoin:"miter",pointerEvents:"none"}),_,(0, J.jsxs)("g",{transform:`translate(0, ${y})`,children:[(0, J.jsx)("rect",{x:"2",y:"0",width:r-4,height:"12",fill:"#64748b",rx:"2"}),(0, J.jsx)("line",{x1:r/2,y1:"0",x2:r/2,y2:"-40",stroke:"#64748b",strokeWidth:"4"}),(0, J.jsx)("line",{x1:r/2-15,y1:"-40",x2:r/2+15,y2:"-40",stroke:"#64748b",strokeWidth:"6",strokeLinecap:"round"}),(0, J.jsx)("line",{x1:r/2,y1:"-50",x2:r/2,y2:"-42",stroke:"#ef4444",strokeWidth:"2"}),(0, J.jsx)("polygon",{points:`${r/2},-42 ${r/2-4},-46 ${r/2+4},-46`,fill:"#ef4444"})]}),t.showHeat?(0, J.jsxs)("g",{transform:`translate(${r/2}, ${s+15})`,children:[(0, J.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, J.jsx)("path",{d:"M-5,0 Q-8,-6 0,-12 Q2,-5 5,0 Z",fill:"#f59e0b"}),(0, J.jsx)("text",{x:"25",y:"-5",fontSize:"14",fill:"#ef4444",fontWeight:"bold",children:"Q"})]}):null,t.label?(0, J.jsx)("text",{x:r/2,y:s+(t.showHeat?35:20),textAnchor:"middle",fill:p,fontSize:Ci(t),pointerEvents:"none",children:String(t.label)}):null]}),Me(l,i,r,s,a),(0, J.jsx)(ut,{el:t,ctx:a})]})});j("heat_engine",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(1,Math.abs(t.x2-t.x1)),s=Math.max(1,Math.abs(t.y2-t.y1)),h=t.engineType!=="refrigerator",y=Math.min(r*.3,s*.2),p=fo(t),E=qu(t),_=Ci(t);return (0, J.jsxs)("g",{children:[(0, J.jsxs)("g",{transform:`translate(${l}, ${i})`,children:[(0, J.jsx)("rect",{x:0,y:0,width:r,height:s*.2,fill:"#ef4444",rx:"4",pointerEvents:"none"}),(0, J.jsx)("text",{x:r/2,y:s*.1,fontSize:_,fill:"#fff",textAnchor:"middle",dominantBaseline:"central",children:"T_H"}),(0, J.jsx)("rect",{x:0,y:s*.8,width:r,height:s*.2,fill:"#3b82f6",rx:"4"}),(0, J.jsx)("text",{x:r/2,y:s*.9,fontSize:_,fill:"#fff",textAnchor:"middle",dominantBaseline:"central",children:"T_C"}),(0, J.jsx)("circle",{cx:r/2,cy:s/2,r:y,fill:"#fff",stroke:p,strokeWidth:E}),(0, J.jsx)("text",{x:r/2,y:s/2,fontSize:_*1.2,fill:p,textAnchor:"middle",dominantBaseline:"central",fontWeight:"bold",children:h?"E":"R"}),(0, J.jsxs)("g",{strokeWidth:2,stroke:p,children:[(0, J.jsx)("line",{x1:r/2,y1:s*.2,x2:r/2,y2:s*.5-y-5}),(0, J.jsx)("polygon",{points:h?`${r/2},${s*.5-y-2} ${r/2-5},${s*.5-y-10} ${r/2+5},${s*.5-y-10}`:`${r/2},${s*.2+2} ${r/2-5},${s*.2+10} ${r/2+5},${s*.2+10}`,fill:p}),(0, J.jsx)("text",{x:r/2+10,y:s*.35,fontSize:14,fill:p,dominantBaseline:"central",children:"Q_H"}),(0, J.jsx)("line",{x1:r/2,y1:s*.5+y+5,x2:r/2,y2:s*.8}),(0, J.jsx)("polygon",{points:h?`${r/2},${s*.8-2} ${r/2-5},${s*.8-10} ${r/2+5},${s*.8-10}`:`${r/2},${s*.5+y+2} ${r/2-5},${s*.5+y+10} ${r/2+5},${s*.5+y+10}`,fill:p}),(0, J.jsx)("text",{x:r/2+10,y:s*.65,fontSize:14,fill:p,dominantBaseline:"central",children:"Q_C"}),(0, J.jsx)("line",{x1:h?r/2+y+5:r,y1:s/2,x2:h?r:r/2+y+5,y2:s/2}),(0, J.jsx)("polygon",{points:h?`${r},${s/2} ${r-8},${s/2-5} ${r-8},${s/2+5}`:`${r/2+y+5},${s/2} ${r/2+y+13},${s/2-5} ${r/2+y+13},${s/2+5}`,fill:p}),(0, J.jsx)("text",{x:r*.8,y:s/2-15,fontSize:14,fill:p,textAnchor:"middle",children:"W"})]}),t.label?(0, J.jsx)("text",{x:r/2,y:s+20,fontSize:_,fill:p,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),Me(l,i,r,s,a),(0, J.jsx)(ut,{el:t,ctx:a})]})});j("conduction_rod",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=`grad-rod-${t.id}`,s=fo(t),h=qu(t),y=Ci(t);return (0, J.jsxs)("g",{children:[(0, J.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, J.jsx)("defs",{children:(0, J.jsxs)("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0, J.jsx)("stop",{offset:"0%",stopColor:"#ef4444"}),(0, J.jsx)("stop",{offset:"100%",stopColor:"#3b82f6"})]})}),(0, J.jsx)("rect",{x:0,y:-20,width:l,height:40,fill:`url(#${r})`,stroke:s,strokeWidth:h,rx:"4",pointerEvents:"none"}),(0, J.jsxs)("g",{stroke:"#fff",strokeWidth:"2",opacity:.6,children:[(0, J.jsx)("line",{x1:l*.2,y1:0,x2:l*.4,y2:0}),(0, J.jsx)("polygon",{points:`${l*.4},0 ${l*.4-6},-4 ${l*.4-6},4`,fill:"#fff"}),(0, J.jsx)("line",{x1:l*.6,y1:0,x2:l*.8,y2:0}),(0, J.jsx)("polygon",{points:`${l*.8},0 ${l*.8-6},-4 ${l*.8-6},4`,fill:"#fff"})]}),(0, J.jsx)("text",{x:0,y:-30,fontSize:y,fill:"#ef4444",textAnchor:"middle",fontWeight:"bold",children:"T_H"}),(0, J.jsx)("text",{x:l,y:-30,fontSize:y,fill:"#3b82f6",textAnchor:"middle",fontWeight:"bold",children:"T_C"}),t.label?(0, J.jsx)("text",{x:l/2,y:35,fontSize:y,fill:s,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, J.jsx)(ut,{el:t,ctx:a,padY:48})]})});j("thermo_process",(t,a)=>{let l=t.processType||"isotherm",i=t.x2-t.x1,r=t.y2-t.y1,s=l==="isobaric"?`M 0 0 L ${i} 0`:l==="isochoric"?`M 0 0 L 0 ${r}`:l==="adiabatic"?`M 0 0 Q ${i*.1} ${r*.9} ${i} ${r}`:`M 0 0 Q ${i*.2} ${r*.8} ${i} ${r}`,h=i/2,y=r/2;if(l==="isotherm"||l==="adiabatic"){let k=i*(l==="adiabatic"?.1:.2),Y=r*(l==="adiabatic"?.9:.8);h=.25*0+.5*k+.25*i,y=.25*0+.5*Y+.25*r;}let p=Math.atan2(r,i)*180/Math.PI,E=yw(t),_=fo(t),M=qu(t),b=Ci(t);return (0, J.jsxs)("g",{children:[(0, J.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, J.jsx)(Ce,{dPath:s,strokeWidth:22,strokeLinejoin:"round",strokeLinecap:"round"}),(0, J.jsx)("path",{d:s,fill:"none",stroke:_,strokeWidth:M,strokeDasharray:E,pointerEvents:"none"}),(0, J.jsx)("g",{transform:`translate(${h}, ${y}) rotate(${p})`,children:(0, J.jsx)("polygon",{points:"0,0 -8,-5 -8,5",fill:_,pointerEvents:"none"})}),t.label?(0, J.jsx)("text",{x:h+15,y:y-10,fontSize:b,fill:_,pointerEvents:"none",children:String(t.label)}):null]}),(0, J.jsx)(ut,{el:t,ctx:a})]})});j("carnot_cycle",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(1,Math.abs(t.x2-t.x1)),s=Math.max(1,Math.abs(t.y2-t.y1)),h={x:r*.1,y:s*.1},y={x:r*.6,y:s*.3},p={x:r*.9,y:s*.9},E={x:r*.4,y:s*.7},_=`M ${h.x} ${h.y} Q ${r*.3} ${s*.15} ${y.x} ${y.y}`,M=`Q ${r*.7} ${s*.6} ${p.x} ${p.y}`,b=`Q ${r*.6} ${s*.85} ${E.x} ${E.y}`,k=`Q ${r*.2} ${s*.4} ${h.x} ${h.y}`,Y=fo(t),$=qu(t),K=Ci(t);return (0, J.jsxs)("g",{children:[(0, J.jsxs)("g",{transform:`translate(${l}, ${i})`,children:[(0, J.jsx)("path",{d:`${_} ${M} ${b} ${k} Z`,fill:Y,fillOpacity:.1,pointerEvents:"none"}),(0, J.jsx)("path",{d:_,fill:"none",stroke:"#ef4444",strokeWidth:$,pointerEvents:"none"}),(0, J.jsx)("path",{d:`M ${y.x} ${y.y} ${M}`,fill:"none",stroke:"#64748b",strokeWidth:$,strokeDasharray:"4 4",pointerEvents:"none"}),(0, J.jsx)("path",{d:`M ${p.x} ${p.y} ${b}`,fill:"none",stroke:"#3b82f6",strokeWidth:$,pointerEvents:"none"}),(0, J.jsx)("path",{d:`M ${E.x} ${E.y} ${k}`,fill:"none",stroke:"#64748b",strokeWidth:$,strokeDasharray:"4 4",pointerEvents:"none"}),(0, J.jsx)("circle",{cx:h.x,cy:h.y,r:"3",fill:"#1e293b",pointerEvents:"none"}),(0, J.jsx)("circle",{cx:y.x,cy:y.y,r:"3",fill:"#1e293b",pointerEvents:"none"}),(0, J.jsx)("circle",{cx:p.x,cy:p.y,r:"3",fill:"#1e293b",pointerEvents:"none"}),(0, J.jsx)("circle",{cx:E.x,cy:E.y,r:"3",fill:"#1e293b",pointerEvents:"none"}),(0, J.jsx)("text",{x:r*.4,y:s*.15,fontSize:"14",fill:"#ef4444",fontWeight:"bold",children:"T_H"}),(0, J.jsx)("text",{x:r*.6,y:s*.95,fontSize:"14",fill:"#3b82f6",fontWeight:"bold",children:"T_C"}),(0, J.jsx)("text",{x:r/2,y:s/2+5,fontSize:16,fill:Y,textAnchor:"middle",fontWeight:"bold",children:"W"}),t.label?(0, J.jsx)("text",{x:r/2,y:-15,fontSize:K,fill:Y,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),Me(l,i,r,s,a),(0, J.jsx)(ut,{el:t,ctx:a})]})});j("maxwell_boltzmann",(t,a)=>{let l=Math.min(t.x1,t.x2),i=Math.min(t.y1,t.y2),r=Math.max(1,Math.abs(t.x2-t.x1)),s=Math.max(1,Math.abs(t.y2-t.y1)),h=t.t1||300,y=t.t2||600,p=qu(t),E=Ci(t),_=fo(t),M=(b,k,Y,$)=>{let K=`M 0 ${s}`,C=1/b,z=Math.sqrt(2/C),O=z*3.5;for(let B=0;B<=r;B+=2){let L=B/r*O,xt=L*L*Math.exp(-C*L*L),nt=z*z*Math.exp(-1),at=s-xt/nt*k;K+=` L ${B} ${at}`;}return (0, J.jsx)("path",{d:K,fill:"none",stroke:Y,strokeWidth:p,strokeDasharray:$,strokeLinejoin:"round",pointerEvents:"none"})};return (0, J.jsxs)("g",{children:[(0, J.jsxs)("g",{transform:`translate(${l}, ${i})`,children:[(0, J.jsx)("line",{x1:0,y1:0,x2:0,y2:s,stroke:"#1e293b",strokeWidth:"2"}),(0, J.jsx)("line",{x1:0,y1:s,x2:r,y2:s,stroke:"#1e293b",strokeWidth:"2"}),(0, J.jsx)("text",{x:-25,y:s/2,fontSize:14,fill:"#1e293b",transform:`rotate(-90, -25, ${s/2})`,textAnchor:"middle",children:"N(v)"}),(0, J.jsx)("text",{x:r/2,y:s+20,fontSize:14,fill:"#1e293b",textAnchor:"middle",children:"Speed (v)"}),M(h,s*.8,"#ef4444"),M(y,s*.5,"#3b82f6","4 4"),(0, J.jsx)("rect",{x:r-70,y:10,width:10,height:10,fill:"#ef4444"}),(0, J.jsxs)("text",{x:r-55,y:20,fontSize:12,fill:"#1e293b",children:["T\u2081 = ",h,"K"]}),(0, J.jsx)("rect",{x:r-70,y:30,width:10,height:10,fill:"#3b82f6"}),(0, J.jsxs)("text",{x:r-55,y:40,fontSize:12,fill:"#1e293b",children:["T\u2082 = ",y,"K"]}),t.label?(0, J.jsx)("text",{x:r/2,y:-15,fontSize:E,fill:_,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, J.jsx)(fc,{minX:l,minY:i,width:r,height:s,ctx:a}),(0, J.jsx)(ut,{el:t,ctx:a})]})});j("diatomic_gas",(t,a)=>{let l=fo(t),i=Ci(t),r=t.showRotations!==false;return (0, J.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, J.jsxs)(oe,{ctx:a,hitHalfSize:38,selectionHalfSize:46,children:[(0, J.jsx)("circle",{cx:-15,cy:0,r:8,fill:l,stroke:"#fff",strokeWidth:2,pointerEvents:"none"}),(0, J.jsx)("circle",{cx:15,cy:0,r:8,fill:l,stroke:"#fff",strokeWidth:2,pointerEvents:"none"}),(0, J.jsx)("line",{x1:-10,y1:0,x2:10,y2:0,stroke:l,strokeWidth:4,pointerEvents:"none"}),r?(0, J.jsxs)("g",{stroke:"#94a3b8",strokeWidth:1.5,fill:"none",pointerEvents:"none",children:[(0, J.jsx)("path",{d:"M -10 -15 A 15 15 0 0 1 10 -15",strokeDasharray:"2 2"}),(0, J.jsx)("polygon",{points:"10,-15 6,-18 6,-12",fill:"#94a3b8"}),(0, J.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, J.jsx)("text",{x:0,y:25,fontSize:i,fill:l,textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]})})});j("random_walk",(t,a)=>{let l=t.steps||5,i=Math.hypot(t.x2-t.x1,t.y2-t.y1),r="M 0 0",s=0,h=0,y=[(0, J.jsx)("circle",{cx:"0",cy:"0",r:"4",fill:"#22c55e",pointerEvents:"none"},"start")];for(let p=1;p<=l;p++){let E=q1(Number(t.id)+p*7)*Math.PI*2,_=i/l*(.5+q1(Number(t.id)+p*13));s+=Math.cos(E)*_,h+=Math.sin(E)*_,r+=` L ${s} ${h}`,y.push((0, J.jsx)("circle",{cx:s,cy:h,r:p===l?4:2,fill:p===l?"#ef4444":fo(t),pointerEvents:"none"},p));}return (0, J.jsxs)("g",{children:[(0, J.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:[(0, J.jsx)(Ce,{dPath:r,strokeWidth:20,strokeLinejoin:"round"}),(0, J.jsx)("path",{d:r,fill:"none",stroke:fo(t),strokeWidth:qu(t),strokeLinejoin:"round",pointerEvents:"none"}),y,t.label?(0, J.jsx)("text",{x:i/2,y:i/2,fontSize:Ci(t),fill:fo(t),textAnchor:"middle",pointerEvents:"none",children:String(t.label)}):null]}),(0, J.jsx)(ut,{el:t,ctx:a,padX:Math.max(40,i),padY:Math.max(40,i)})]})});var it=$t(Pt()),ca=(t,a)=>a?"#0d9488":t.color||"#111827",Wl=(t,a)=>{let l=t.strokeWidth||2;return a?Math.max(3,l):l},mb=t=>t.fontSize||16,x0=(t,a,l)=>Array.from({length:t}).map((i,r)=>{let s=(r*360/t+l)*(Math.PI/180);return `${a*Math.cos(s)},${a*Math.sin(s)}`}).join(" ");j("atom",(t,a)=>(0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsxs)(oe,{ctx:a,hitHalfSize:22,selectionHalfSize:30,children:[(0, it.jsx)("rect",{x:"-20",y:"-15",width:"40",height:"30",fill:"white",rx:"6"}),(0, it.jsx)("text",{x:"0",y:"0",dominantBaseline:"central",textAnchor:"middle",fill:ca(t,a.isSelected),fontSize:Math.max(18,mb(t)),fontFamily:"sans-serif",fontWeight:"bold",children:String(t.label||"C")})]})}));j("charge_plus",(t,a)=>{let l=ca(t,a.isSelected),i=Wl(t,a.isSelected),r=t.strokeWidth||2,s=Math.max(12,r*4),h=Math.max(28,s+(t.label?26:8));return (0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsxs)(oe,{ctx:a,hitHalfSize:h,selectionHalfSize:h+10,children:[(0, it.jsx)("circle",{cx:"0",cy:"0",r:s,fill:"white",stroke:l,strokeWidth:i}),(0, it.jsx)("line",{x1:-s/2,y1:"0",x2:s/2,y2:"0",stroke:l,strokeWidth:i}),(0, it.jsx)("line",{x1:"0",y1:-s/2,x2:"0",y2:s/2,stroke:l,strokeWidth:i}),t.label?(0, it.jsx)("text",{x:"0",y:s+18,fontSize:mb(t),fill:l,fontFamily:"sans-serif",fontWeight:"bold",textAnchor:"middle",children:String(t.label)}):null]})})});j("charge_minus",(t,a)=>{let l=ca(t,a.isSelected),i=Wl(t,a.isSelected),r=t.strokeWidth||2,s=Math.max(12,r*4),h=Math.max(28,s+(t.label?26:8));return (0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsxs)(oe,{ctx:a,hitHalfSize:h,selectionHalfSize:h+10,children:[(0, it.jsx)("circle",{cx:"0",cy:"0",r:s,fill:"white",stroke:l,strokeWidth:i}),(0, it.jsx)("line",{x1:-s/2,y1:"0",x2:s/2,y2:"0",stroke:l,strokeWidth:i}),t.label?(0, it.jsx)("text",{x:"0",y:s+18,fontSize:mb(t),fill:l,fontFamily:"sans-serif",fontWeight:"bold",textAnchor:"middle",children:String(t.label)}):null]})})});j("radical",(t,a)=>(0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsx)(oe,{ctx:a,hitHalfSize:14,selectionHalfSize:22,children:(0, it.jsx)("circle",{cx:"0",cy:"0",r:"3.5",fill:ca(t,a.isSelected)})})}));j("lone_pair",(t,a)=>(0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsxs)(oe,{ctx:a,hitHalfSize:16,selectionHalfSize:24,children:[(0, it.jsx)("circle",{cx:"-4",cy:"0",r:"2.5",fill:ca(t,a.isSelected)}),(0, it.jsx)("circle",{cx:"4",cy:"0",r:"2.5",fill:ca(t,a.isSelected)})]})}));j("benzene",(t,a)=>{let i=ca(t,a.isSelected),r=Wl(t,a.isSelected);return (0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsxs)(oe,{ctx:a,hitHalfSize:36,selectionHalfSize:44,children:[(0, it.jsx)("polygon",{points:x0(6,30,-30),fill:"white",stroke:i,strokeWidth:r,strokeLinejoin:"round"}),(0, it.jsx)("circle",{cx:"0",cy:"0",r:20,fill:"none",stroke:i,strokeWidth:r})]})})});j("cyclohexane",(t,a)=>(0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsx)(oe,{ctx:a,hitHalfSize:36,selectionHalfSize:44,children:(0, it.jsx)("polygon",{points:x0(6,30,-30),fill:"white",stroke:ca(t,a.isSelected),strokeWidth:Wl(t,a.isSelected),strokeLinejoin:"round"})})}));j("cyclopentane",(t,a)=>(0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsx)(oe,{ctx:a,hitHalfSize:36,selectionHalfSize:44,children:(0, it.jsx)("polygon",{points:x0(5,30,-90),fill:"white",stroke:ca(t,a.isSelected),strokeWidth:Wl(t,a.isSelected),strokeLinejoin:"round"})})}));j("cyclobutane",(t,a)=>(0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsx)(oe,{ctx:a,hitHalfSize:36,selectionHalfSize:44,children:(0, it.jsx)("polygon",{points:x0(4,30,-45),fill:"white",stroke:ca(t,a.isSelected),strokeWidth:Wl(t,a.isSelected),strokeLinejoin:"round"})})}));j("cyclopropane",(t,a)=>(0, it.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,children:(0, it.jsx)(oe,{ctx:a,hitHalfSize:36,selectionHalfSize:44,children:(0, it.jsx)("polygon",{points:x0(3,30,-90),fill:"white",stroke:ca(t,a.isSelected),strokeWidth:Wl(t,a.isSelected),strokeLinejoin:"round"})})}));var b0=(t,a,l)=>{let i=mt(t.x1,t.y1,t.x2,t.y2),r=_t(t.x1,t.y1,t.x2,t.y2),s=ca(t,l),h=Wl(t,l);return (0, it.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${r})`,children:[a==="single"&&(0, it.jsx)("line",{x1:"0",y1:"0",x2:i,y2:"0",stroke:s,strokeWidth:h,strokeLinecap:"round"}),a==="double"&&(0, it.jsxs)(it.Fragment,{children:[(0, it.jsx)("line",{x1:"0",y1:"-3.5",x2:i,y2:"-3.5",stroke:s,strokeWidth:h,strokeLinecap:"round"}),(0, it.jsx)("line",{x1:"0",y1:"3.5",x2:i,y2:"3.5",stroke:s,strokeWidth:h,strokeLinecap:"round"})]}),a==="triple"&&(0, it.jsxs)(it.Fragment,{children:[(0, it.jsx)("line",{x1:"0",y1:"-6",x2:i,y2:"-6",stroke:s,strokeWidth:h,strokeLinecap:"round"}),(0, it.jsx)("line",{x1:"0",y1:"0",x2:i,y2:"0",stroke:s,strokeWidth:h,strokeLinecap:"round"}),(0, it.jsx)("line",{x1:"0",y1:"6",x2:i,y2:"6",stroke:s,strokeWidth:h,strokeLinecap:"round"})]}),a==="wedge"&&(0, it.jsx)("polygon",{points:`0,0 ${i},-5 ${i},5`,fill:s}),a==="dash"&&(0, it.jsx)("line",{x1:"0",y1:"0",x2:i,y2:"0",stroke:s,strokeWidth:h+1,strokeDasharray:"5 5",strokeLinecap:"square"})]})};j("single_bond",(t,a)=>(0, it.jsxs)("g",{children:[b0(t,"single",a.isSelected),(0, it.jsx)(ut,{el:t,ctx:a})]}));j("double_bond",(t,a)=>(0, it.jsxs)("g",{children:[b0(t,"double",a.isSelected),(0, it.jsx)(ut,{el:t,ctx:a})]}));j("triple_bond",(t,a)=>(0, it.jsxs)("g",{children:[b0(t,"triple",a.isSelected),(0, it.jsx)(ut,{el:t,ctx:a})]}));j("wedge_bond",(t,a)=>(0, it.jsxs)("g",{children:[b0(t,"wedge",a.isSelected),(0, it.jsx)(ut,{el:t,ctx:a})]}));j("dash_bond",(t,a)=>(0, it.jsxs)("g",{children:[b0(t,"dash",a.isSelected),(0, it.jsx)(ut,{el:t,ctx:a})]}));var R_=t=>({x:(t.x1+t.x2)/2,y:(t.y1+t.y2)/2});j("reaction_arrow",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=ca(t,a.isSelected),s=Wl(t,a.isSelected),h=R_(t);return (0, it.jsxs)("g",{children:[(0, it.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, it.jsx)("line",{x1:"0",y1:"0",x2:l,y2:"0",stroke:r,strokeWidth:s}),(0, it.jsx)("polygon",{points:`${l},0 ${l-12},-6 ${l-12},6`,fill:r})]}),(0, it.jsx)(ut,{el:t,ctx:a}),t.label?(0, it.jsx)("text",{x:h.x,y:h.y-18,textAnchor:"middle",fill:"#0f766e",fontSize:"14",fontFamily:"sans-serif",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null,t.value?(0, it.jsx)("text",{x:h.x,y:h.y+18,textAnchor:"middle",fill:"#4b5563",fontSize:"13",fontFamily:"sans-serif",pointerEvents:"none",children:String(t.value)}):null]})});j("equilibrium_arrow",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=ca(t,a.isSelected),s=Wl(t,a.isSelected),h=R_(t);return (0, it.jsxs)("g",{children:[(0, it.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, it.jsx)("line",{x1:"0",y1:"-4",x2:l,y2:"-4",stroke:r,strokeWidth:s}),(0, it.jsx)("polygon",{points:`${l},-4 ${l-10},-10 ${l-10},-4`,fill:r}),(0, it.jsx)("line",{x1:"0",y1:"4",x2:l,y2:"4",stroke:r,strokeWidth:s}),(0, it.jsx)("polygon",{points:"0,4 10,4 10,10",fill:r})]}),(0, it.jsx)(ut,{el:t,ctx:a}),t.label?(0, it.jsx)("text",{x:h.x,y:h.y-18,textAnchor:"middle",fill:"#0f766e",fontSize:"14",fontFamily:"sans-serif",fontWeight:"bold",pointerEvents:"none",children:String(t.label)}):null,t.value?(0, it.jsx)("text",{x:h.x,y:h.y+18,textAnchor:"middle",fill:"#4b5563",fontSize:"13",fontFamily:"sans-serif",pointerEvents:"none",children:String(t.value)}):null]})});j("resonance_arrow",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=ca(t,a.isSelected),s=Wl(t,a.isSelected);return (0, it.jsxs)("g",{children:[(0, it.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, it.jsx)("line",{x1:"0",y1:"0",x2:l,y2:"0",stroke:r,strokeWidth:s}),(0, it.jsx)("polygon",{points:"0,0 12,-6 12,6",fill:r}),(0, it.jsx)("polygon",{points:`${l},0 ${l-12},-6 ${l-12},6`,fill:r})]}),(0, it.jsx)(ut,{el:t,ctx:a})]})});j("curved_arrow",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=l/3,s=Math.atan2(r,l/2)*(180/Math.PI),h=ca(t,a.isSelected),y=Wl(t,a.isSelected),p=`M 0 0 Q ${l/2} ${-r} ${l} 0`,E=Bs(t.x1,t.y1,t.x2,t.y2,r/2);return (0, it.jsxs)("g",{children:[(0, it.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, it.jsx)("path",{d:p,fill:"none",stroke:h,strokeWidth:y}),(0, it.jsx)(Ce,{dPath:p,strokeWidth:24,strokeLinecap:"round"}),(0, it.jsx)("g",{transform:`translate(${l}, 0) rotate(${s})`,children:(0, it.jsx)("polygon",{points:"0,0 -12,-6 -12,6",fill:h})})]}),a.isSelected&&!a.viewMode&&!a.isGhost?Ai(E.x,E.y,E.width,E.height):null,Di(t,a)]})});var vt=$t(Pt()),dc=(t,a)=>a?"#2563eb":t.color||"#0f172a",Xu=(t,a)=>a?2.5:t.strokeWidth||2,w_=(t,a,l)=>{let i=mt(t.x1,t.y1,t.x2,t.y2),r=_t(t.x1,t.y1,t.x2,t.y2),s=t.x2-t.x1,h=t.y2-t.y1,y=(t.x1+t.x2)/2,p=(t.y1+t.y2)/2,E=-h/(i||1),_=s/(i||1);_>0&&(E=-E,_=-_);let M=18,b=dc(t,l);return (0, vt.jsxs)("g",{children:[(0, vt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${r})`,children:a}),t.label&&(0, vt.jsx)("text",{x:y+E*M,y:p+_*M,dominantBaseline:"central",textAnchor:"middle",fill:b,fontSize:14,fontFamily:"sans-serif",children:String(t.label)})]})};j("charge_pos",(t,a)=>{let l=a.isSelected?"#2563eb":"#ef4444";return (0, vt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:a?.isGhost?.5:1,children:(0, vt.jsxs)(oe,{ctx:a,hitHalfSize:22,selectionHalfSize:28,children:[(0, vt.jsx)("circle",{cx:"0",cy:"0",r:"10",fill:"#fecaca",stroke:l,strokeWidth:Xu(t,a.isSelected)}),(0, vt.jsx)("line",{x1:"0",y1:"-4",x2:"0",y2:"4",stroke:l,strokeWidth:2}),(0, vt.jsx)("line",{x1:"-4",y1:"0",x2:"4",y2:"0",stroke:l,strokeWidth:2}),t.label?(0, vt.jsx)("text",{x:0,y:-16,textAnchor:"middle",fill:l,fontSize:t.fontSize||14,children:String(t.label)}):null]})})});j("charge_neg",(t,a)=>{let l=a.isSelected?"#2563eb":"#3b82f6";return (0, vt.jsx)("g",{transform:`translate(${t.x1}, ${t.y1})`,opacity:a?.isGhost?.5:1,children:(0, vt.jsxs)(oe,{ctx:a,hitHalfSize:22,selectionHalfSize:28,children:[(0, vt.jsx)("circle",{cx:"0",cy:"0",r:"10",fill:"#bfdbfe",stroke:l,strokeWidth:Xu(t,a.isSelected)}),(0, vt.jsx)("line",{x1:"-4",y1:"0",x2:"4",y2:"0",stroke:l,strokeWidth:2}),t.label?(0, vt.jsx)("text",{x:0,y:-16,textAnchor:"middle",fill:l,fontSize:t.fontSize||14,children:String(t.label)}):null]})})});j("dipole",(t,a)=>{let l=Xu(t,a.isSelected);return (0, vt.jsxs)("g",{opacity:a?.isGhost?.5:1,children:[(0, vt.jsx)("line",{x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stroke:"#64748b",strokeWidth:l,strokeDasharray:"4 4"}),(0, vt.jsx)("circle",{cx:t.x1,cy:t.y1,r:"8",fill:"#fecaca",stroke:a.isSelected?"#2563eb":"#ef4444",strokeWidth:l}),(0, vt.jsx)("circle",{cx:t.x2,cy:t.y2,r:"8",fill:"#bfdbfe",stroke:a.isSelected?"#2563eb":"#3b82f6",strokeWidth:l}),t.label?(0, vt.jsx)("text",{x:(t.x1+t.x2)/2,y:t.y1-16,textAnchor:"middle",fill:"#475569",fontSize:14,children:String(t.label)}):null,(0, vt.jsx)(ut,{el:t,ctx:a})]})});var H_=(t,a)=>{let l=Math.max(2,Math.floor(t/25)),i=[];for(let r=0;r<=l;r++){let s=r/l*t;i.push((0, vt.jsx)("g",{transform:`translate(${s}, 0)`,children:a?(0, vt.jsx)(vt.Fragment,{children:(0, vt.jsx)("path",{d:"M-4 0 h8 M0 -4 v8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})}):(0, vt.jsx)("path",{d:"M-4 0 h8",stroke:"#ffffff",strokeWidth:"2",strokeLinecap:"round"})},r));}return i};j("charged_plate_pos",(t,a)=>{let l=a.isSelected?"#2563eb":"#ef4444",i=mt(t.x1,t.y1,t.x2,t.y2),r=_t(t.x1,t.y1,t.x2,t.y2),s=Math.max(12,t.strokeWidth*4||8);return (0, vt.jsxs)("g",{opacity:a?.isGhost?.5:1,children:[(0, vt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${r})`,children:[(0, vt.jsx)("line",{x1:0,y1:0,x2:i,y2:0,stroke:l,strokeWidth:s,strokeLinecap:"round"}),H_(i,true)]}),(0, vt.jsx)(ut,{el:t,ctx:a})]})});j("charged_plate_neg",(t,a)=>{let l=a.isSelected?"#2563eb":"#3b82f6",i=mt(t.x1,t.y1,t.x2,t.y2),r=_t(t.x1,t.y1,t.x2,t.y2),s=Math.max(12,t.strokeWidth*4||8);return (0, vt.jsxs)("g",{opacity:a?.isGhost?.5:1,children:[(0, vt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${r})`,children:[(0, vt.jsx)("line",{x1:0,y1:0,x2:i,y2:0,stroke:l,strokeWidth:s,strokeLinecap:"round"}),H_(i,false)]}),(0, vt.jsx)(ut,{el:t,ctx:a})]})});j("gaussian_sphere",(t,a)=>{let l=Math.max(10,mt(t.x1,t.y1,t.x2,t.y2)),i=a.isSelected?"#2563eb":"#10b981";return (0, vt.jsxs)("g",{opacity:a?.isGhost?.5:1,children:[(0, vt.jsx)("circle",{cx:t.x1,cy:t.y1,r:l,fill:"#d1fae5",fillOpacity:.35,stroke:i,strokeWidth:Xu(t,a.isSelected),strokeDasharray:"5 5"}),t.label?(0, vt.jsx)("text",{x:t.x1,y:t.y1-l-12,textAnchor:"middle",fill:i,fontSize:13,children:String(t.label)}):null,(0, vt.jsx)(ut,{el:t,ctx:a})]})});j("gaussian_cylinder",(t,a)=>{let l=mt(t.x1,t.y1,t.x2,t.y2),i=_t(t.x1,t.y1,t.x2,t.y2),r=t.curveHeight??40,s=15,h=a.isSelected?"#2563eb":"#10b981",y=Xu(t,a.isSelected),p="6 6";return (0, vt.jsxs)("g",{opacity:a?.isGhost?.5:1,children:[(0, vt.jsxs)("g",{transform:`translate(${t.x1}, ${t.y1}) rotate(${i})`,children:[(0, vt.jsx)("line",{x1:0,y1:-r,x2:l,y2:-r,stroke:h,strokeWidth:y,strokeDasharray:p}),(0, vt.jsx)("line",{x1:0,y1:r,x2:l,y2:r,stroke:h,strokeWidth:y,strokeDasharray:p}),(0, vt.jsx)("ellipse",{cx:0,cy:0,rx:s,ry:r,fill:h,fillOpacity:.05,stroke:h,strokeWidth:y,strokeDasharray:p}),(0, vt.jsx)("ellipse",{cx:l,cy:0,rx:s,ry:r,fill:h,fillOpacity:.05,stroke:h,strokeWidth:y,strokeDasharray:p}),t.label?(0, vt.jsx)("text",{x:l/2,y:-r-10,textAnchor:"middle",fill:h,fontSize:t.fontSize||14,children:String(t.label)}):null]}),(0, vt.jsx)(ut,{el:t,ctx:a})]})});j("mirror_plane",(t,a)=>(0, vt.jsxs)("g",{children:[w_(t,(0, vt.jsxs)(vt.Fragment,{children:[(0, vt.jsx)("line",{x1:0,y1:-24,x2:0,y2:24,stroke:dc(t,a.isSelected),strokeWidth:Xu(t,a.isSelected)}),(0, vt.jsx)("line",{x1:0,y1:-18,x2:-8,y2:-12,stroke:dc(t,a.isSelected),strokeWidth:1.5}),(0, vt.jsx)("line",{x1:0,y1:-6,x2:-8,y2:0,stroke:dc(t,a.isSelected),strokeWidth:1.5}),(0, vt.jsx)("line",{x1:0,y1:6,x2:-8,y2:12,stroke:dc(t,a.isSelected),strokeWidth:1.5}),(0, vt.jsx)("line",{x1:0,y1:18,x2:-8,y2:24,stroke:dc(t,a.isSelected),strokeWidth:1.5})]}),a.isSelected),(0, vt.jsx)(ut,{el:t,ctx:a})]}));j("energy_level",(t,a)=>{let l=Math.max(24,mt(t.x1,t.y1,t.x2,t.y2)),i=dc(t,a.isSelected),r=t.energy!=null?String(t.energy):"";return (0, vt.jsxs)("g",{children:[w_(t,(0, vt.jsxs)(vt.Fragment,{children:[(0, vt.jsx)("line",{x1:0,y1:-8,x2:l,y2:-8,stroke:i,strokeWidth:Xu(t,a.isSelected)}),(0, vt.jsx)("line",{x1:0,y1:8,x2:l,y2:8,stroke:i,strokeWidth:Xu(t,a.isSelected)}),r?(0, vt.jsx)("text",{x:l/2,y:22,textAnchor:"middle",fontSize:10,fill:"#4b5563",children:r}):null]}),a.isSelected),(0, vt.jsx)(ut,{el:t,ctx:a})]})});var Pn=$t(Pt()),pw=({x:t,y:a,type:l})=>(0, Pn.jsxs)("g",{children:[(0, Pn.jsx)("rect",{x:t-20,y:a-12,width:40,height:24,fill:"#fee2e2",stroke:"#ef4444"}),(0, Pn.jsx)("text",{x:t,y:a,textAnchor:"middle",dominantBaseline:"central",fontSize:10,fill:"#991b1b",children:l})]}),X1=({elements:t,selectedId:a,drawing:l,viewMode:i=false,showGrid:r=true,gridSize:s=20,className:h,svgRef:y,onBackgroundMouseDown:p,onBackgroundMouseMove:E,onBackgroundMouseUp:_,onBackgroundMouseLeave:M,onElementMouseDown:b,onHandlePointerDown:k})=>{let Y=(0, U_.useMemo)(()=>O_(t),[t]);return (0, Pn.jsxs)("svg",{ref:y,className:h,onMouseDown:p,onMouseMove:E,onMouseUp:_,onMouseLeave:M,children:[!i&&r&&(0, Pn.jsxs)(Pn.Fragment,{children:[(0, Pn.jsx)("defs",{children:(0, Pn.jsx)("pattern",{id:"svg-engine-grid",width:s,height:s,patternUnits:"userSpaceOnUse",children:(0, Pn.jsx)("path",{d:`M ${s} 0 L 0 0 0 ${s}`,fill:"none",stroke:"#e2e8f0",strokeWidth:"1"})})}),(0, Pn.jsx)("rect",{width:"100%",height:"100%",fill:"url(#svg-engine-grid)",pointerEvents:"none"})]}),t.map($=>{let K=db(String($.type)),C={isSelected:a===$.id,viewMode:i,onHandlePointerDown:!i&&k?(O,B,L)=>k(O,$,B,L):void 0},z=K?K($,C):(0, Pn.jsx)(pw,{x:$.x1,y:$.y1,type:String($.type)});return (0, Pn.jsx)("g",{onMouseDown:O=>b?.(O,$),cursor:i?"default":"move",children:z},String($.id))}),Y.map(([$,K],C)=>(0, Pn.jsx)("circle",{cx:$,cy:K,r:4,fill:"#111827",pointerEvents:"none"},`junction-${C}`)),l&&(()=>{let $=db(String(l.type));return $?(0, Pn.jsx)("g",{opacity:.5,children:$(l,{isGhost:true,viewMode:i,onHandlePointerDown:void 0})}):null})()]})};var On=$t(Yl());var N_=10,gw=t=>{let a={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2},l=t.cps;return l?.length?{...a,cps:l.map(i=>({x:i.x,y:i.y}))}:a},xw=(t,a,l,i,r)=>{let s=String(a);if(s.endsWith("-start")){let y=s.slice(0,-6);return t.map(p=>String(p.id)===y?{...p,x1:r.x1+l,y1:r.y1+i}:p)}if(s.endsWith("-end")){let y=s.slice(0,-4);return t.map(p=>String(p.id)===y?{...p,x2:r.x2+l,y2:r.y2+i}:p)}let h=s.match(/^(.*)-cp-(\d+)$/);if(h&&r.cps){let y=h[1],p=Number(h[2]);return t.map(E=>{if(String(E.id)!==y)return E;let _=r.cps.map((M,b)=>b===p?{x:M.x+l,y:M.y+i}:{...M});return {...E,cps:_}})}return t.map(y=>y.id===a||String(y.id)===s?{...y,x1:r.x1+l,y1:r.y1+i,x2:r.x2+l,y2:r.y2+i,...r.cps?{cps:r.cps.map(p=>({x:p.x+l,y:p.y+i}))}:{}}:y)},bw=t=>{let a="#0f172a";["spring","sine_wave","wavefronts","shm_graph"].includes(t)&&(a="#3b82f6"),["standing_wave","wave_pulse","torsion_pendulum"].includes(t)&&(a="#ec4899"),["pendulum","phasor"].includes(t)&&(a="#8b5cf6"),["wall","vane_liquid"].includes(t)&&(a="#64748b"),t==="mass_box"&&(a="#ef4444");let l={color:a,strokeWidth:2,fontSize:18};switch(t){case "standing_wave":case "sine_wave":return {...l,amplitude:40,loops:2};case "damped_wave":return {...l,amplitude:50,damping:.015,frequency:10};case "shm_graph":return {...l,amplitude:40,loops:1,graphType:"all"};case "energy_graph":return {...l,amplitude:50,loops:1,domain:"time"};case "strobe_shm":return {...l,amplitude:40,loops:1};case "beats_graph":return {...l,amplitude:30,frequency:15,beatFreq:2};case "wavefronts":return {...l,velocityRatio:.5,rings:5};case "mach_cone":return {...l,machNumber:2};case "mass_box":return {...l,size:30};case "pendulum":return {...l,size:15,showForces:false};case "phasor":return {...l,showProjection:false};case "spring":return {...l,coils:8};case "text":return {...l,label:"Equation/Label"};default:return l}},$_=(t,a)=>{if(a==="waveOscillation")return bw(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 a==="graph"?{color:"#0f172a",strokeWidth:2}:a==="mechanics"?{color:"#0f172a",strokeWidth:2}:a==="rotation"?{color:"#ef4444",strokeWidth:2}:a==="light"&&(t==="ray"||t==="photon")?{color:"#ef4444",strokeWidth:2}:a==="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 a==="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 a==="graph"?{color:"#0f172a",strokeWidth:2,fontSize:16,label:"P"}:a==="light"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"P"}:a==="thermo"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"P"}:{};case "text":return a==="graph"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"Label"}:a==="light"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"Text"}:a==="mechanics"?{color:"#0f172a",strokeWidth:2,fontSize:20,label:"Label"}:a==="rotation"?{color:"#1e293b",strokeWidth:2,fontSize:20,label:"Label"}:a==="thermo"?{color:"#1e293b",strokeWidth:2,fontSize:18,label:"Equation/Label"}:{};case "b_field_line":case "b_field_curve":return a==="magnetism"?{color:"#10b981",strokeWidth:2}:{};case "pole_piece":return a==="magnetism"?{color:"#0f172a",strokeWidth:2,label:"N"}:{};case "b_region_in":case "b_region_out":return a==="magnetism"?{color:"#94a3b8",strokeWidth:2}:{};case "current_wire":return a==="magnetism"?{color:"#ef4444",strokeWidth:2,label:"I"}:{};case "bar_magnet":return a==="magnetism"?{color:"#0f172a",strokeWidth:2,label:""}:{};case "coil":return a==="magnetism"?{color:"#0f172a",strokeWidth:2}:{};case "bezier":return a==="magnetism"?{color:"#0f172a",strokeWidth:2}:{};case "meter":return a==="magnetism"?{color:"#0f172a",strokeWidth:2,fontSize:24,label:"G"}:{};case "ac_source":return a==="magnetism"?{color:"#0f172a",strokeWidth:2,fontSize:18,label:"V_rms"}:{};case "spring":return a==="rotation"?{color:"#0f172a",strokeWidth:2,coils:6,lineStyle:"solid"}:a==="mechanics"?{color:"#0f172a",strokeWidth:2}:{};case "pivot":return a==="rotation"?{color:"#64748b",strokeWidth:2,size:20,fontSize:18}:a==="mechanics"?{color:"#0f172a",strokeWidth:2}:{};case "pulley":return a==="rotation"?{color:"#64748b",strokeWidth:2,fontSize:18}:a==="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:a==="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 a==="rotation"?{color:"#1e293b",strokeWidth:1.5}:a==="thermo"?{color:"#1e293b",strokeWidth:2,lineStyle:"solid"}:{};case "piston_cylinder":return a!=="thermo"?{}:{color:"#1e293b",strokeWidth:2,fontSize:18,compression:.5,showHeat:false,lineStyle:"solid"};case "heat_engine":return a!=="thermo"?{}:{color:"#10b981",strokeWidth:2,fontSize:18,engineType:"engine",efficiency:.4,lineStyle:"solid"};case "conduction_rod":return a!=="thermo"?{}:{color:"#3b82f6",strokeWidth:2,fontSize:18,lineStyle:"solid"};case "pv_axes":return a!=="thermo"?{}:{color:"#1e293b",strokeWidth:2,fontSize:18,xLabel:"V",yLabel:"P",lineStyle:"solid"};case "thermo_process":return a!=="thermo"?{}:{color:"#ec4899",strokeWidth:2,fontSize:18,processType:"isotherm",lineStyle:"solid"};case "carnot_cycle":return a!=="thermo"?{}:{color:"#ec4899",strokeWidth:2,fontSize:18,lineStyle:"solid"};case "maxwell_boltzmann":return a!=="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 a!=="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 a==="mechanics"?{color:"#0f172a",strokeWidth:2}:{};case "block":case "cart":return a==="mechanics"?{color:"#0f172a",strokeWidth:2,rotation:0}:{};default:return {}}},L_=(t,a)=>{let[l,i]=(0, On.useState)(t),[r,s]=(0, On.useState)("select"),[h,y]=(0, On.useState)(null),[p,E]=(0, On.useState)(null),[_,M]=(0, On.useState)(false),[b,k]=(0, On.useState)(false),[Y,$]=(0, On.useState)(""),[K,C]=(0, On.useState)(false),[z,O]=(0, On.useState)(null),B=(0, On.useRef)(null),L=(0, On.useRef)({x:0,y:0}),xt=(0, On.useRef)(null);(0, On.useEffect)(()=>{i(t),E(null),C(false),y(null);},[t]),(0, On.useEffect)(()=>{let rt=pt=>{let Z=pt.target;Z&&(Z.tagName==="INPUT"||Z.tagName==="TEXTAREA"||Z.isContentEditable)||((pt.key==="Delete"||pt.key==="Backspace")&&p&&(i(ht=>ht.filter(bt=>bt.id!==p)),E(null),C(false)),pt.key==="Escape"&&(y(null),s("select"),C(false)));};return window.addEventListener("keydown",rt),()=>window.removeEventListener("keydown",rt)},[p]);let nt=(0, On.useMemo)(()=>l.find(rt=>rt.id===p)||null,[l,p]);return {elements:l,setElements:i,tool:r,setTool:s,drawing:h,selectedId:p,setSelectedId:E,isViewMode:_,setIsViewMode:M,showJsonModal:b,setShowJsonModal:k,jsonText:Y,setJsonText:$,showProperties:K,setShowProperties:C,selectedElement:nt,svgRef:B,onElementMouseDown:(rt,pt)=>{if(r!=="select"||(rt.stopPropagation(),!B.current))return;let Z=g0(B.current,rt);E(pt.id),O(pt.id),L.current=Z,xt.current=gw(pt);},onHandlePointerDown:(rt,pt,Z,ht)=>{if(r!=="select"||(rt.stopPropagation(),!B.current))return;let bt=g0(B.current,rt);if(E(pt.id),L.current=bt,Z==="start"){O(`${pt.id}-start`),xt.current={x1:pt.x1,y1:pt.y1,x2:pt.x2,y2:pt.y2};return}if(Z==="end"){O(`${pt.id}-end`),xt.current={x1:pt.x1,y1:pt.y1,x2:pt.x2,y2:pt.y2};return}if(Z==="cp"&&ht!==void 0){let ne=pt.cps,ye=ne?.length&&ne.length>0?ne.map(Gn=>({x:Gn.x,y:Gn.y})):[{x:(pt.x1+pt.x2)/2,y:Math.min(pt.y1,pt.y2)-50}];O(`${pt.id}-cp-${ht}`),xt.current={x1:pt.x1,y1:pt.y1,x2:pt.x2,y2:pt.y2,cps:ye};}},handleMouseDown:rt=>{if(!B.current)return;if(r==="select"){rt.target===B.current&&(E(null),C(false));return}let pt=g0(B.current,rt),Z=sc(pt.x),ht=sc(pt.y),bt=a==="mechanics"&&["pivot","com","axes"].includes(r),ne=a==="rotation"&&["point_mass","com_indicator","pivot"].includes(r),ye=a==="waveOscillation"&&["tuning_fork","speaker","wavefronts","mass_box"].includes(r);if(bt||ne||ye||["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(r)){let Kt=$_(r,a),jt=r==="text"?"Text":r==="atom"?"C":r==="charge_pos"?"+q":r==="charge_neg"?"-q":r==="charge_plus"?"+q":r==="charge_minus"?"-q":r==="meter"?"G":r==="ac_source"?"V_rms":"",Da={id:Date.now(),type:r,x1:Z,y1:ht,x2:Z,y2:ht,...Kt,label:typeof Kt.label=="string"?Kt.label:jt};i(ei=>[...ei,Da]),E(Da.id),s("select");return}let F=$_(r,a),Ot=a==="mechanics"&&(r==="block"||r==="cart")?{rotation:F.rotation??0}:{};y({...F,...Ot,id:Date.now(),type:r,x1:Z,y1:ht,x2:Z,y2:ht,label:typeof F.label=="string"?F.label:""});},handleMouseMove:rt=>{if(!B.current)return;let pt=g0(B.current,rt);if(z!=null&&xt.current){let Z=sc(pt.x-L.current.x),ht=sc(pt.y-L.current.y),bt=xt.current;i(ne=>xw(ne,z,Z,ht,bt));return}h&&y({...h,x2:sc(pt.x),y2:sc(pt.y)});},handleMouseUp:()=>{if(z!=null){O(null),xt.current=null;return}if(!h)return;if(Math.abs(h.x1-h.x2)<=N_&&Math.abs(h.y1-h.y2)<=N_){y(null),s("select");return}let rt=h.type==="bezier"?{...h,cps:[{x:(h.x1+h.x2)/2,y:Math.min(h.y1,h.y2)-60}]}:h;i(pt=>[...pt,rt]),E(h.id),y(null),s("select");}}};var g=$t(Pt()),pb={select:(0, g.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, g.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"currentColor"}),line:(0, g.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"4",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),string:(0, g.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),vector:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"4",y1:"20",x2:"18",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, g.jsx)("polygon",{points:"14,4 20,4 20,10",fill:"none",stroke:"currentColor",strokeWidth:"2.5"})]}),ray:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})]}),wire:(0, g.jsx)("line",{x1:"3",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2.8",strokeLinecap:"round"}),text:(0, g.jsx)("text",{x:"12",y:"18",fontSize:"18",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",fontFamily:"serif",children:"T"}),block:(0, g.jsx)("rect",{x:"5",y:"6",width:"14",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",rx:"1"}),wedge:(0, g.jsx)("polygon",{points:"2,20 22,20 22,6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),pulley:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"10",r:"6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"10",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"6",y1:"10",x2:"6",y2:"20",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"18",y1:"10",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"1.5"})]}),point_mass:(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"currentColor",stroke:"currentColor",strokeWidth:"2"}),block_mass:(0, g.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",rx:"1"}),com_indicator:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, g.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, g.jsx)("rect",{x:"4",y:"4",width:"16",height:"16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"3 2",rx:"4"}),rocket:(0, g.jsxs)(g.Fragment,{children:[(0, g.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, g.jsx)("path",{d:"M8 20 Q12 24 16 20",fill:"currentColor"})]}),dashed_path:(0, g.jsx)("path",{d:"M 4 20 Q 8 8 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"4 3"}),uniform_rod:(0, g.jsx)("rect",{x:"3",y:"10",width:"18",height:"4",fill:"currentColor",rx:"2",opacity:"0.8"}),solid_disk:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"currentColor",opacity:"0.5",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),hoop_ring:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),(0, g.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),rolling_body:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("polygon",{points:"18,10 22,12 18,14",fill:"currentColor"}),(0, g.jsx)("path",{d:"M 16 6 A 8 8 0 0 1 20 10",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("polygon",{points:"19,11 22,9 18,8",fill:"currentColor"})]}),inclined_wedge:(0, g.jsx)("polygon",{points:"4,20 20,20 4,8",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),curve_arrow:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 6 18 A 9 9 0 0 1 18 6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"16,5 20,4 19,8",fill:"currentColor"})]}),ladder:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"7",y1:"4",x2:"4",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"17",y1:"4",x2:"14",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"6",y1:"8",x2:"16",y2:"8",stroke:"currentColor",strokeWidth:"1.6"}),(0, g.jsx)("line",{x1:"5",y1:"12",x2:"15",y2:"12",stroke:"currentColor",strokeWidth:"1.6"}),(0, g.jsx)("line",{x1:"4.5",y1:"16",x2:"14.5",y2:"16",stroke:"currentColor",strokeWidth:"1.6"})]}),spring:(0, g.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, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 4 16 A 8 8 0 0 1 18 8",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round"}),(0, g.jsx)("polygon",{points:"17,5 21,9 15,10",fill:"currentColor"})]}),dashed:(0, g.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"4,4"}),surface:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, g.jsx)("polygon",{points:"4,12 8,9 8,15",fill:"currentColor"}),(0, g.jsx)("polygon",{points:"20,12 16,9 16,15",fill:"currentColor"})]}),axes:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"6",y1:"18",x2:"6",y2:"6",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"6,4 3,9 9,9",fill:"currentColor"}),(0, g.jsx)("line",{x1:"6",y1:"18",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"20,18 15,15 15,21",fill:"currentColor"})]}),cart:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"12",x2:"18",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor"})]}),com:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.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, g.jsx)("circle",{cx:"12",cy:"12",r:"5",fill:"currentColor"}),pivot:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("polygon",{points:"12,6 6,18 18,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("circle",{cx:"12",cy:"6",r:"2",fill:"currentColor"})]}),dashed_line:(0, g.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"4",stroke:"currentColor",strokeWidth:"2.5",strokeDasharray:"4 4",strokeLinecap:"round"}),angle:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"4",y1:"20",x2:"16",y2:"4",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M 14 20 A 10 10 0 0 0 10 12",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),rectangle:(0, g.jsx)("rect",{x:"4",y:"6",width:"16",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinejoin:"round"}),circle:(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),ellipse:(0, g.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"5",fill:"none",stroke:"currentColor",strokeWidth:"2.5"}),parabola_v:(0, g.jsx)("path",{d:"M 4 4 Q 12 24 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),parabola_h:(0, g.jsx)("path",{d:"M 20 4 Q 0 12 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),hyperbola:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 6 2 Q 12 12 6 22",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M 18 2 Q 12 12 18 22",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),sine_wave:(0, g.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, g.jsx)("rect",{x:"6",y:"6",width:"12",height:"12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),pendulum:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"12",y1:"2",x2:"18",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("circle",{cx:"18",cy:"18",r:"4",fill:"currentColor"}),(0, g.jsx)("line",{x1:"6",y1:"2",x2:"18",y2:"2",stroke:"currentColor",strokeWidth:"2"})]}),phasor:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"10",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"12",x2:"18",y2:"6",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"15,5 19,5 19,9",fill:"currentColor"})]}),damped_wave:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 4 4 L 4 20 L 20 20 L 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("rect",{x:"4",y:"10",width:"16",height:"10",fill:"currentColor",opacity:"0.35"}),(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"8",y1:"16",x2:"16",y2:"16",stroke:"currentColor",strokeWidth:"2"})]}),torsion_pendulum:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("rect",{x:"5",y:"2",width:"14",height:"4",rx:"1",fill:"currentColor",opacity:"0.35"}),(0, g.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"15",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("rect",{x:"8",y:"15",width:"8",height:"6",rx:"2",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"15",x2:"14",y2:"13",stroke:"currentColor",strokeWidth:"1.2"})]}),standing_wave:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 2 12 Q 7 2 12 12 T 22 12",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.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, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"1",opacity:"0.5"}),(0, g.jsx)("path",{d:"M 2 12 Q 7 2 12 12 T 22 12",fill:"none",stroke:"#3b82f6",strokeWidth:"2"}),(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M 4 6 Q 12 24 20 6",fill:"none",stroke:"#ef4444",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M 4 20 Q 12 2 20 20",fill:"none",stroke:"#10b981",strokeWidth:"2"})]}),strobe_shm:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"4",r:"2",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"18",cy:"12",r:"2",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"12",cy:"20",r:"2",fill:"currentColor"}),(0, g.jsx)("line",{x1:"6",y1:"4",x2:"18",y2:"4",stroke:"currentColor",strokeWidth:"0.5"}),(0, g.jsx)("line",{x1:"6",y1:"12",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"0.5"}),(0, g.jsx)("line",{x1:"6",y1:"20",x2:"18",y2:"20",stroke:"currentColor",strokeWidth:"0.5"})]}),wall:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"4",x2:"16",y2:"0",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"12",y1:"10",x2:"16",y2:"6",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"12",y1:"16",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"12",y1:"22",x2:"16",y2:"18",stroke:"currentColor",strokeWidth:"1.5"})]}),tuning_fork:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 8 4 L 8 14 Q 12 20 16 14 L 16 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"17",x2:"12",y2:"24",stroke:"currentColor",strokeWidth:"2"})]}),speaker:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("polygon",{points:"8,8 14,4 14,20 8,16",fill:"currentColor"}),(0, g.jsx)("rect",{x:"4",y:"8",width:"4",height:"8",fill:"currentColor"}),(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"10",cy:"12",r:"4",fill:"none",stroke:"currentColor"}),(0, g.jsx)("circle",{cx:"11",cy:"12",r:"8",fill:"none",stroke:"currentColor"}),(0, g.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"none",stroke:"currentColor"})]}),mach_cone:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"18",cy:"12",r:"2",fill:"currentColor"}),(0, g.jsx)("line",{x1:"2",y1:"4",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"2",y1:"20",x2:"18",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),beats_graph:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M2 18 L8 18 M8 12 L14 12 M14 6 L20 6",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("circle",{cx:"2",cy:"18",r:"2",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"8",cy:"18",r:"2",fill:"none",stroke:"currentColor"}),(0, g.jsx)("circle",{cx:"8",cy:"12",r:"2",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"14",cy:"12",r:"2",fill:"none",stroke:"currentColor"}),(0, g.jsx)("circle",{cx:"14",cy:"6",r:"2",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"20",cy:"6",r:"2",fill:"none",stroke:"currentColor"})]}),shaded_area:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M4 20 L4 10 Q12 2 20 10 L20 20 Z",fill:"currentColor",opacity:"0.3"}),(0, g.jsx)("path",{d:"M4 10 Q12 2 20 10",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),modulus:(0, g.jsx)("polyline",{points:"4,4 12,20 20,4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}),exponential:(0, g.jsx)("path",{d:"M4 20 Q14 20 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),logarithmic:(0, g.jsx)("path",{d:"M4 20 Q4 10 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),axes_3d:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"8",y1:"16",x2:"8",y2:"2",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"8",y1:"16",x2:"22",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"8",y1:"16",x2:"2",y2:"22",stroke:"currentColor",strokeWidth:"2"})]}),rod:(0, g.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"6",strokeLinecap:"round"}),hinge:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"3.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor"})]}),slit_double:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"8",stroke:"currentColor",strokeWidth:"3"}),(0, g.jsx)("line",{x1:"12",y1:"11",x2:"12",y2:"13",stroke:"currentColor",strokeWidth:"3"}),(0, g.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"3"})]}),slit_single:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"9",stroke:"currentColor",strokeWidth:"3"}),(0, g.jsx)("line",{x1:"12",y1:"15",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"3"})]}),photon:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 2 12 Q 5 6 8 12 T 14 12 T 20 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"18,8 22,12 18,16",fill:"currentColor"})]}),nucleus:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"4",fill:"none",stroke:"currentColor",transform:"rotate(45 12 12)"}),(0, g.jsx)("ellipse",{cx:"12",cy:"12",rx:"10",ry:"4",fill:"none",stroke:"currentColor",transform:"rotate(-45 12 12)"}),(0, g.jsx)("circle",{cx:"12",cy:"12",r:"3",fill:"#ef4444"})]}),orbit:(0, g.jsx)("ellipse",{cx:"12",cy:"12",rx:"8",ry:"4.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),resistor:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"3",y1:"12",x2:"9",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"9",y1:"6",x2:"9",y2:"18",stroke:"currentColor",strokeWidth:"2.2"}),(0, g.jsx)("line",{x1:"15",y1:"6",x2:"15",y2:"18",stroke:"currentColor",strokeWidth:"2.2"}),(0, g.jsx)("line",{x1:"15",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),inductor:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"3",y1:"12",x2:"8",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"8,7 8,17 14,12",fill:"#fcd34d",fillOpacity:"0.85",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"15.5",y1:"7",x2:"15.5",y2:"17",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"15.5",y1:"12",x2:"21",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),battery:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 2 12 L 7 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),(0, g.jsx)("rect",{x:"7",y:"4",width:"5",height:"16",rx:"0.5",fill:"#dc2626",stroke:"currentColor",strokeWidth:"1"}),(0, g.jsx)("rect",{x:"12",y:"7",width:"5",height:"10",rx:"0.5",fill:"#2563eb",stroke:"currentColor",strokeWidth:"1"}),(0, g.jsx)("path",{d:"M 17 12 L 22 12",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),ground:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#e0f2fe",stroke:"#0369a1",strokeWidth:"2"}),(0, g.jsx)("text",{x:"12",y:"15",fontSize:"9",textAnchor:"middle",fill:"#0369a1",fontWeight:"bold",children:"V"})]}),meter_a:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#fef3c7",stroke:"#b45309",strokeWidth:"2"}),(0, g.jsx)("text",{x:"12",y:"15",fontSize:"9",textAnchor:"middle",fill:"#b45309",fontWeight:"bold",children:"A"})]}),piston_cylinder:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 4 4 L 4 20 L 20 20 L 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("rect",{x:"5",y:"10",width:"14",height:"4",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"9",cy:"16",r:"1",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"15",cy:"17",r:"1",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"12",cy:"14",r:"1",fill:"currentColor"})]}),heat_engine:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("rect",{x:"6",y:"2",width:"12",height:"4",fill:"#ef4444"}),(0, g.jsx)("circle",{cx:"12",cy:"12",r:"4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("rect",{x:"6",y:"18",width:"12",height:"4",fill:"#3b82f6"}),(0, g.jsx)("line",{x1:"12",y1:"6",x2:"12",y2:"8",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"16",x2:"12",y2:"18",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"16",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"})]}),conduction_rod:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("defs",{children:(0, g.jsxs)("linearGradient",{id:"thermo-conduction-icon-grad",x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0, g.jsx)("stop",{offset:"0%",stopColor:"#ef4444"}),(0, g.jsx)("stop",{offset:"100%",stopColor:"#3b82f6"})]})}),(0, g.jsx)("rect",{x:"2",y:"8",width:"20",height:"8",fill:"url(#thermo-conduction-icon-grad)",stroke:"currentColor",strokeWidth:"1"})]}),pv_axes:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"4",y1:"4",x2:"4",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"4",y1:"20",x2:"20",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"4,2 2,6 6,6",fill:"currentColor"}),(0, g.jsx)("polygon",{points:"22,20 18,18 18,22",fill:"currentColor"})]}),thermo_process:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 4 4 Q 8 16 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"12,12 8,10 10,14",fill:"currentColor"})]}),carnot_cycle:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"20",x2:"22",y2:"20",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M 2 20 Q 8 4 12 12 T 22 20",fill:"none",stroke:"#ef4444",strokeWidth:"2"}),(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"6",cy:"12",r:"4",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"18",cy:"12",r:"4",fill:"currentColor"}),(0, g.jsx)("line",{x1:"10",y1:"12",x2:"14",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M 8 6 A 6 6 0 0 1 16 6",fill:"none",stroke:"currentColor",strokeWidth:"1"})]}),random_walk:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("polyline",{points:"2,18 8,12 14,16 20,6",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("circle",{cx:"2",cy:"18",r:"1.5",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"20",cy:"6",r:"1.5",fill:"currentColor"})]}),lens_convex:(0, g.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, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 4 12 Q 12 18 20 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"8",y1:"14",x2:"5",y2:"17",stroke:"currentColor"}),(0, g.jsx)("line",{x1:"12",y1:"15",x2:"9",y2:"18",stroke:"currentColor"}),(0, g.jsx)("line",{x1:"16",y1:"14",x2:"13",y2:"17",stroke:"currentColor"})]}),mirror_convex:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 4 12 Q 12 6 20 12",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"8",y1:"10",x2:"5",y2:"7",stroke:"currentColor"}),(0, g.jsx)("line",{x1:"12",y1:"9",x2:"9",y2:"6",stroke:"currentColor"}),(0, g.jsx)("line",{x1:"16",y1:"10",x2:"13",y2:"7",stroke:"currentColor"})]}),prism:(0, g.jsx)("polygon",{points:"12,4 2,20 22,20",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),glass_slab:(0, g.jsx)("rect",{x:"4",y:"6",width:"16",height:"12",fill:"#38bdf8",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),pole_piece:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("rect",{x:"4",y:"2",width:"16",height:"20",fill:"#93c5fd",fillOpacity:"0.4",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("text",{x:"12",y:"16",fontSize:"12",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",children:"N"})]}),b_field_line:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})]}),b_field_curve:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 4 20 Q 12 2 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polygon",{points:"10,8 14,11 10,14",fill:"currentColor",transform:"rotate(30 12 11)"})]}),bezier:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("path",{d:"M 4 20 Q 4 4 20 4",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("circle",{cx:"4",cy:"4",r:"2",fill:"currentColor"}),(0, g.jsx)("line",{x1:"4",y1:"20",x2:"4",y2:"4",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"2 2"}),(0, g.jsx)("line",{x1:"20",y1:"4",x2:"4",y2:"4",stroke:"currentColor",strokeWidth:"1",strokeDasharray:"2 2"})]}),current_wire:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"12",x2:"22",y2:"12",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, g.jsx)("polygon",{points:"15,8 20,12 15,16",fill:"currentColor"})]}),b_region_in:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"2 2"}),(0, g.jsx)("path",{d:"M 8 8 L 16 16 M 16 8 L 8 16",stroke:"currentColor",strokeWidth:"2"})]}),b_region_out:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("rect",{x:"3",y:"3",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"2 2"}),(0, g.jsx)("circle",{cx:"12",cy:"12",r:"2",fill:"currentColor"})]}),bar_magnet:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("rect",{x:"2",y:"8",width:"20",height:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("text",{x:"7",y:"15",fontSize:"7",fill:"currentColor",fontWeight:"bold",children:"N"}),(0, g.jsx)("text",{x:"17",y:"15",fontSize:"7",fill:"currentColor",fontWeight:"bold",children:"S"})]}),coil:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("text",{x:"12",y:"16",fontSize:"10",fontWeight:"bold",textAnchor:"middle",fill:"currentColor",children:"G"})]}),ac_source:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M 7 12 Q 9.5 8 12 12 T 17 12",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),single_bond:(0, g.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),double_bond:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"3",y1:"15",x2:"17",y2:"3",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"}),(0, g.jsx)("line",{x1:"7",y1:"21",x2:"21",y2:"9",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round"})]}),triple_bond:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"12",x2:"16",y2:"0",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"5",y1:"16",x2:"19",y2:"4",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"8",y1:"20",x2:"22",y2:"8",stroke:"currentColor",strokeWidth:"2"})]}),wedge_bond:(0, g.jsx)("polygon",{points:"4,18 20,4 22,8",fill:"currentColor"}),dash_bond:(0, g.jsx)("line",{x1:"4",y1:"18",x2:"20",y2:"6",stroke:"currentColor",strokeWidth:"2.5",strokeDasharray:"3 3"}),benzene:(0, g.jsxs)(g.Fragment,{children:[(0, g.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, g.jsx)("circle",{cx:"12",cy:"12",r:"5",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),cyclohexane:(0, g.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, g.jsx)("polygon",{points:"12,2 22,9.5 18,21 6,21 2,9.5",fill:"none",stroke:"currentColor",strokeWidth:"2"}),cyclobutane:(0, g.jsx)("rect",{x:"5",y:"5",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2"}),cyclopropane:(0, g.jsx)("polygon",{points:"12,4 22,18 2,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),reaction_arrow:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polyline",{points:"14,6 22,12 14,18",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),equilibrium_arrow:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"2",y1:"9",x2:"20",y2:"9",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("polyline",{points:"14,4 20,9",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"4",y1:"15",x2:"22",y2:"15",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("polyline",{points:"10,20 4,15",fill:"none",stroke:"currentColor",strokeWidth:"1.5"})]}),curved_arrow:(0, g.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, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"4",y1:"12",x2:"20",y2:"12",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polyline",{points:"8,6 2,12 8,18",fill:"none",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("polyline",{points:"16,6 22,12 16,18",fill:"none",stroke:"currentColor",strokeWidth:"2"})]}),atom:(0, g.jsx)("text",{x:"12",y:"18",fontSize:"18",textAnchor:"middle",fill:"currentColor",fontWeight:"bold",fontFamily:"sans-serif",children:"C"}),charge_plus:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"12",y1:"8",x2:"12",y2:"16",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),charge_minus:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"none",stroke:"currentColor",strokeWidth:"1.5"}),(0, g.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12",stroke:"currentColor",strokeWidth:"1.5"})]}),radical:(0, g.jsx)("circle",{cx:"12",cy:"12",r:"2.5",fill:"currentColor"}),lone_pair:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"8",cy:"12",r:"2",fill:"currentColor"}),(0, g.jsx)("circle",{cx:"16",cy:"12",r:"2",fill:"currentColor"})]}),charge_pos:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#fecaca",stroke:"#ef4444",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M12 8v8M8 12h8",stroke:"#ef4444",strokeWidth:"2",strokeLinecap:"round"})]}),charge_neg:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"12",cy:"12",r:"8",fill:"#bfdbfe",stroke:"#3b82f6",strokeWidth:"2"}),(0, g.jsx)("path",{d:"M8 12h8",stroke:"#3b82f6",strokeWidth:"2",strokeLinecap:"round"})]}),dipole:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("circle",{cx:"5",cy:"12",r:"4",fill:"#fecaca",stroke:"#ef4444"}),(0, g.jsx)("circle",{cx:"19",cy:"12",r:"4",fill:"#bfdbfe",stroke:"#3b82f6"}),(0, g.jsx)("line",{x1:"9",y1:"12",x2:"15",y2:"12",stroke:"currentColor",strokeDasharray:"2 2"})]}),charged_plate_pos:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"#ef4444",strokeWidth:"6"}),(0, g.jsx)("path",{d:"M9 6h6M12 3v6 M9 12h6M12 9v6 M9 18h6M12 15v6",stroke:"#fff",strokeWidth:"1"})]}),charged_plate_neg:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"#3b82f6",strokeWidth:"6"}),(0, g.jsx)("path",{d:"M9 6h6 M9 12h6 M9 18h6",stroke:"#fff",strokeWidth:"1"})]}),gaussian_sphere:(0, g.jsx)("circle",{cx:"12",cy:"12",r:"9",fill:"#d1fae5",fillOpacity:"0.4",stroke:"#10b981",strokeWidth:"2",strokeDasharray:"3 3"}),gaussian_cylinder:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("ellipse",{cx:"12",cy:"4",rx:"7",ry:"2",fill:"none",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, g.jsx)("ellipse",{cx:"12",cy:"20",rx:"7",ry:"2",fill:"none",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"}),(0, g.jsx)("path",{d:"M5 4v16M19 4v16",stroke:"#10b981",strokeWidth:"1.5",strokeDasharray:"2 2"})]}),mirror_plane:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"12",y1:"2",x2:"12",y2:"22",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"12",y1:"6",x2:"6",y2:"10",stroke:"currentColor"}),(0, g.jsx)("line",{x1:"12",y1:"12",x2:"6",y2:"16",stroke:"currentColor"}),(0, g.jsx)("line",{x1:"12",y1:"18",x2:"6",y2:"22",stroke:"currentColor"})]}),energy_level:(0, g.jsxs)(g.Fragment,{children:[(0, g.jsx)("line",{x1:"4",y1:"8",x2:"20",y2:"8",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("line",{x1:"4",y1:"16",x2:"20",y2:"16",stroke:"currentColor",strokeWidth:"2"}),(0, g.jsx)("text",{x:"12",y:"13",fontSize:"6",fill:"currentColor",textAnchor:"middle",children:"n"})]})};var Y_={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"}},W_=["indigo","violet","purple","amber","orange"],B_=["rose","sky","cyan","fuchsia"],j_=["indigo","sky","violet","emerald","rose","amber","cyan","fuchsia","lime","orange","blue","pink"];function v0(t){let a=2166136261;for(let l=0;l<t.length;l++)a^=t.charCodeAt(l),a=Math.imul(a,16777619);return Math.abs(a)}var vw={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"},Sw=new Set(["wire","resistor","capacitor","inductor","diode","battery","meter_v","meter_a","meter","ground","ac_source"]);function Ew(t){let a=vw[t];if(a)return a;if(t.endsWith("_bond"))return W_[v0(t)%W_.length];if(t.endsWith("_arrow"))return B_[v0(t)%B_.length];let l=t.toLowerCase();if(l.includes("charge")&&(l.includes("pos")||l.includes("plus")||l.includes("_p")||l.endsWith("pos")))return "rose";if(l.includes("charge")&&(l.includes("neg")||l.includes("minus")))return "sky";if(t.startsWith("meter_"))return "violet";if(Sw.has(t)){let i=["slate","amber","blue","violet","green"];return i[v0(t)%i.length]}if(l.includes("lens")||l.includes("mirror")||l==="ray"||l.includes("photon")){let i=["amber","sky","cyan","violet","yellow"];return i[v0(t)%i.length]}return j_[v0(t)%j_.length]}function q_(t,a){let l=Ew(t);return a?Y_[l].active:Y_[l].idle}var Oi=$t(Pt()),X_=({categories:t,tool:a,onSelect:l})=>(0, Oi.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(i=>(0, Oi.jsxs)("section",{className:"flex flex-col items-center w-full px-2",children:[(0, Oi.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:i.name}),(0, Oi.jsx)("div",{className:"flex flex-col gap-1.5 w-full items-center",children:i.tools.map(r=>{let s=q_(r.id,a===r.id);return (0, Oi.jsxs)("button",{type:"button",onClick:()=>l(r.id),title:r.name,className:`p-2 rounded-xl border flex flex-col items-center gap-1 transition-all w-full ${s}`,children:[(0, Oi.jsx)("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",children:pb[r.id]??pb.line}),(0, Oi.jsx)("span",{className:"text-[11px] font-medium tracking-tight leading-tight text-center",children:r.name})]},r.id)})})]},i.name))});var X=$t(Pt()),Mw=t=>["gaussian_cylinder","lens_convex","lens_concave","mirror_concave","mirror_convex","b_field_curve"].includes(t),_w=t=>["lens_convex","lens_concave","mirror_concave","mirror_convex"].includes(t),kw=t=>["text","point","charge_pos","charge_neg","point_mass","com_indicator","diatomic_gas","mass_box"].includes(t),zw=t=>["point_mass","com_indicator","pivot"].includes(t),Tw=t=>["pendulum","mass_box"].includes(t),Aw=t=>["sine_wave","standing_wave","wave_pulse","damped_wave","beats_graph","shm_graph","energy_graph","strobe_shm"].includes(t),Dw=t=>["sine_wave","standing_wave","shm_graph","energy_graph","strobe_shm"].includes(t),Cw=t=>t==="rolling_body",Ow=t=>t==="spring",Rw=t=>["block","cart"].includes(t),G_=({element:t,onChange:a,onDelete:l,onClose:i})=>t?(0, X.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, X.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, X.jsx)("h3",{className:"text-[11px] font-semibold text-blue-700 uppercase tracking-[0.18em]",children:"Properties"}),(0, X.jsx)("button",{type:"button",onClick:i,className:"text-slate-400 hover:text-slate-800",children:"\u2715"})]}),(0, X.jsxs)("div",{className:"space-y-4",children:[(0, X.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.label||""),onChange:r=>a("label",r.target.value),placeholder:"Label"}),(0, X.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.value||""),onChange:r=>a("value",r.target.value),placeholder:"Value"}),(0, X.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, X.jsx)("input",{type:"color",value:String(t.color||"#0f172a"),onChange:r=>a("color",r.target.value),className:"h-10 w-full rounded-lg border border-slate-200"}),(0, X.jsx)("input",{type:"number",className:"px-3 py-2 border border-slate-300 rounded-lg text-sm",value:Number(t.strokeWidth||2),onChange:r=>a("strokeWidth",Number(r.target.value))})]}),Rw(String(t.type))&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Rotation (degrees)"}),(0, X.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:r=>a("rotation",Number(r.target.value))})]}),Mw(String(t.type))&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:t.type==="gaussian_cylinder"?"Cylinder half-height (curveHeight)":"Curve height"}),_w(String(t.type))?(0, X.jsxs)(X.Fragment,{children:[(0, X.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:r=>{let s=r.target.value;if(s==="")a("curveHeight",void 0);else {let h=Number(s);a("curveHeight",Number.isFinite(h)?h:void 0);}}}),(0, X.jsx)("p",{className:"text-[11px] text-slate-500 leading-snug",children:"Empty = auto (scales with chord length: lenses ~15% / 4% sagitta, mirrors ~20%)."})]}):(0, X.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:r=>a("curveHeight",Number(r.target.value))})]}),String(t.type)==="bezier"&&(0, X.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, X.jsx)("input",{type:"checkbox",checked:!!t.showArrow,onChange:r=>a("showArrow",r.target.checked)}),(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show arrow on curve"})]}),String(t.type)==="energy_level"&&(0, X.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.energy??""),onChange:r=>a("energy",r.target.value),placeholder:"Energy (e.g. -13.6 eV)"}),kw(String(t.type))&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Font size"}),(0, X.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:r=>a("fontSize",Number(r.target.value))})]}),zw(String(t.type))&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Size (radius / pivot scale)"}),(0, X.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:r=>a("size",Number(r.target.value))})]}),Tw(String(t.type))&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:t.type==="mass_box"?"Block size":"Bob radius"}),(0, X.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:r=>a("size",Number(r.target.value))})]}),Cw(String(t.type))&&(0, X.jsxs)("div",{className:"flex flex-col gap-2 text-sm text-slate-700",children:[(0, X.jsxs)("label",{className:"flex items-center gap-2",children:[(0, X.jsx)("input",{type:"checkbox",checked:!!t.showVelocity,onChange:r=>a("showVelocity",r.target.checked)}),(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show velocity (v)"})]}),(0, X.jsxs)("label",{className:"flex items-center gap-2",children:[(0, X.jsx)("input",{type:"checkbox",checked:!!t.showOmega,onChange:r=>a("showOmega",r.target.checked)}),(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show angular velocity (\u03C9)"})]})]}),Ow(String(t.type))&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Coils"}),(0, X.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:r=>a("coils",Number(r.target.value))})]}),String(t.type)==="piston_cylinder"&&(0, X.jsxs)(X.Fragment,{children:[(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Compression (0.1\u20130.9)"}),(0, X.jsx)("input",{type:"range",min:.1,max:.9,step:.05,className:"w-full",value:Number(t.compression??.5),onChange:r=>a("compression",Number(r.target.value))})]}),(0, X.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, X.jsx)("input",{type:"checkbox",checked:!!t.showHeat,onChange:r=>a("showHeat",r.target.checked)}),(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show heat source (Q)"})]})]}),String(t.type)==="heat_engine"&&(0, X.jsxs)(X.Fragment,{children:[(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Machine type"}),(0, X.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:r=>a("engineType",r.target.value),children:[(0, X.jsx)("option",{value:"engine",children:"Heat engine"}),(0, X.jsx)("option",{value:"refrigerator",children:"Refrigerator / pump"})]})]}),(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Efficiency (display)"}),(0, X.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:r=>a("efficiency",Number(r.target.value))})]})]}),String(t.type)==="thermo_process"&&(0, X.jsxs)(X.Fragment,{children:[(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Process type"}),(0, X.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:r=>a("processType",r.target.value),children:[(0, X.jsx)("option",{value:"isotherm",children:"Isothermal"}),(0, X.jsx)("option",{value:"adiabatic",children:"Adiabatic"}),(0, X.jsx)("option",{value:"isobaric",children:"Isobaric"}),(0, X.jsx)("option",{value:"isochoric",children:"Isochoric"})]})]}),(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Line style"}),(0, X.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:r=>a("lineStyle",r.target.value),children:[(0, X.jsx)("option",{value:"solid",children:"Solid"}),(0, X.jsx)("option",{value:"dashed",children:"Dashed"}),(0, X.jsx)("option",{value:"dotted",children:"Dotted"})]})]})]}),String(t.type)==="pv_axes"&&(0, X.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"X label (V)"}),(0, X.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.xLabel??"V"),onChange:r=>a("xLabel",r.target.value)})]}),(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Y label (P)"}),(0, X.jsx)("input",{className:"w-full px-3 py-2 border border-slate-300 rounded-lg text-sm",value:String(t.yLabel??"P"),onChange:r=>a("yLabel",r.target.value)})]})]}),String(t.type)==="maxwell_boltzmann"&&(0, X.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"T\u2081 (K)"}),(0, X.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:r=>a("t1",Number(r.target.value))})]}),(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"T\u2082 (K)"}),(0, X.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:r=>a("t2",Number(r.target.value))})]})]}),String(t.type)==="diatomic_gas"&&(0, X.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, X.jsx)("input",{type:"checkbox",checked:t.showRotations!==false,onChange:r=>a("showRotations",r.target.checked)}),(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show rotation DOF"})]}),String(t.type)==="random_walk"&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Steps"}),(0, X.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:r=>a("steps",Number(r.target.value))})]}),Aw(String(t.type))&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Amplitude"}),(0, X.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:r=>a("amplitude",Number(r.target.value))})]}),Dw(String(t.type))&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Loops / waves (n)"}),(0, X.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:r=>a("loops",Number(r.target.value))})]}),String(t.type)==="shm_graph"&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Graph function"}),(0, X.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:r=>a("graphType",r.target.value),children:[(0, X.jsx)("option",{value:"x",children:"Position x(t)"}),(0, X.jsx)("option",{value:"v",children:"Velocity v(t)"}),(0, X.jsx)("option",{value:"a",children:"Acceleration a(t)"}),(0, X.jsx)("option",{value:"all",children:"Compare all three"})]})]}),String(t.type)==="energy_graph"&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Domain"}),(0, X.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:r=>a("domain",r.target.value),children:[(0, X.jsx)("option",{value:"time",children:"Versus time (t)"}),(0, X.jsx)("option",{value:"position",children:"Versus position (x)"})]})]}),String(t.type)==="pendulum"&&(0, X.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, X.jsx)("input",{type:"checkbox",checked:!!t.showForces,onChange:r=>a("showForces",r.target.checked)}),(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show force vectors"})]}),String(t.type)==="phasor"&&(0, X.jsxs)("label",{className:"flex items-center gap-2 text-sm text-slate-700",children:[(0, X.jsx)("input",{type:"checkbox",checked:!!t.showProjection,onChange:r=>a("showProjection",r.target.checked)}),(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Show axis projections"})]}),String(t.type)==="damped_wave"&&(0, X.jsxs)(X.Fragment,{children:[(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Damping (b/2m)"}),(0, X.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:r=>a("damping",Number(r.target.value))})]}),(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Angular frequency (\u03C9)"}),(0, X.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:r=>a("frequency",Number(r.target.value))})]})]}),String(t.type)==="beats_graph"&&(0, X.jsxs)(X.Fragment,{children:[(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Carrier frequency (avg f)"}),(0, X.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:r=>a("frequency",Number(r.target.value))})]}),(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Beat frequency (\u0394f)"}),(0, X.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:r=>a("beatFreq",Number(r.target.value))})]})]}),String(t.type)==="wavefronts"&&(0, X.jsxs)(X.Fragment,{children:[(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Velocity ratio (v_s / v)"}),(0, X.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:r=>a("velocityRatio",Number(r.target.value))})]}),(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Rings"}),(0, X.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:r=>a("rings",Number(r.target.value))})]})]}),String(t.type)==="mach_cone"&&(0, X.jsxs)("label",{className:"block space-y-1",children:[(0, X.jsx)("span",{className:"text-xs font-medium text-slate-600",children:"Mach number (M)"}),(0, X.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:r=>a("machNumber",Number(r.target.value))})]}),(0, X.jsx)("button",{type:"button",onClick:l,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 Bl=$t(Pt()),Q_=({open:t,jsonText:a,setJsonText:l,onClose:i,onLoad:r})=>t?(0, Bl.jsx)("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:(0, Bl.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-2xl flex flex-col max-h-full",children:[(0, Bl.jsxs)("div",{className:"px-6 py-4 border-b flex justify-between items-center",children:[(0, Bl.jsx)("h2",{className:"text-lg font-bold text-gray-800",children:"Diagram Data (JSON)"}),(0, Bl.jsx)("button",{onClick:i,className:"text-gray-500 hover:text-gray-800 font-bold",children:"\u2715"})]}),(0, Bl.jsx)("div",{className:"p-6 flex-1 overflow-hidden flex flex-col gap-4",children:(0, Bl.jsx)("textarea",{value:a,onChange:s=>l(s.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, Bl.jsxs)("div",{className:"px-6 py-4 border-t bg-gray-50 flex justify-end gap-3",children:[(0, Bl.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, Bl.jsx)("button",{onClick:r,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 Oe=$t(Pt()),ww=Go.mechanics,gb=(0, _a.forwardRef)(function({initialElements:a,toolCategories:l,preset:i,enablePresetSwitch:r=true,onPresetChange:s,onChange:h,viewMode:y,embedded:p=false,documentTitle:E,hideDocumentTitle:_=false,onExport:M},b){let[k,Y]=(0, _a.useState)(i??"mechanics"),[$,K]=(0, _a.useState)(0),C=i!==void 0&&typeof s=="function";(0, _a.useEffect)(()=>{C&&i&&Y(i);},[i,C]);let z=C?i??k:k,O=Go[z]??ww;(0, _a.useEffect)(()=>{K(0);},[z]);let B=(0, _a.useMemo)(()=>a??(O.examples?.[$]?.elements??O.elements).slice(),[a,O,$]),L=L_(B,z);(0, _a.useEffect)(()=>{h?.(L.elements);},[L.elements,h]),(0, _a.useEffect)(()=>{typeof y=="boolean"&&L.setIsViewMode(y);},[y,L.setIsViewMode]),(0, _a.useEffect)(()=>{L.selectedId||L.setShowProperties(false);},[L.selectedId,L.setShowProperties]);let xt=l??O.toolCategories;(0, _a.useImperativeHandle)(b,()=>({getData:()=>L.elements,setData:rt=>L.setElements(rt),clear:()=>L.setElements([])}),[L.elements,L.setElements]);let nt=E??`${O.name} Editor`,at=()=>{let rt=JSON.stringify(L.elements,null,2);M?.({elements:L.elements,json:rt}),typeof navigator<"u"&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(rt);},Mt=(rt,pt)=>{L.setElements(Z=>Z.map(ht=>{if(ht.id!==L.selectedId)return ht;if(pt===void 0){let bt={...ht};return delete bt[rt],bt}return {...ht,[rt]:pt}}));},P=()=>{L.selectedId&&(L.setElements(rt=>rt.filter(pt=>pt.id!==L.selectedId)),L.setSelectedId(null),L.setShowProperties(false));},fe=p?"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",Lt="text-xs md:text-sm px-2.5 md:px-3.5 py-2 rounded-lg font-medium transition border border-transparent";return (0, Oe.jsxs)("div",{className:fe,children:[(0, Oe.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, Oe.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 min-w-0",children:[r&&(0, Oe.jsxs)("div",{className:"relative shrink-0",children:[(0, Oe.jsx)("select",{value:z,onChange:rt=>{let pt=rt.target.value;C||Y(pt),s?.(pt);},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(Go).map(rt=>(0, Oe.jsx)("option",{value:rt,children:Go[rt].name},rt))}),(0, Oe.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-slate-500 text-xs",children:"\u25BC"})]}),a==null&&O.examples&&O.examples.length>0&&(0, Oe.jsxs)("div",{className:"relative shrink-0 max-w-[min(280px,46vw)]",children:[(0, Oe.jsx)("select",{value:$,onChange:rt=>K(Number(rt.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:O.examples.map((rt,pt)=>(0, Oe.jsx)("option",{value:pt,children:rt.name},rt.name))}),(0, Oe.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-2 flex items-center text-violet-600 text-xs",children:"\u25BC"})]}),!_&&(0, Oe.jsx)("h1",{className:"text-lg md:text-2xl font-semibold tracking-tight text-slate-800 truncate min-w-0",children:nt})]}),(0, Oe.jsxs)("div",{className:`flex gap-1.5 md:gap-3 items-center flex-wrap justify-end ${_?"ml-auto w-full":"ml-auto"}`,children:[(0, Oe.jsx)("button",{type:"button",onClick:at,className:`${Lt} text-slate-700 hover:bg-emerald-50 hover:text-emerald-700`,children:"Copy JSON"}),(0, Oe.jsx)("button",{type:"button",onClick:()=>{L.setJsonText(JSON.stringify(L.elements,null,2)),L.setShowJsonModal(true);},className:`${Lt} text-slate-700 hover:bg-blue-50 hover:text-blue-700`,children:"Export/Import"}),L.selectedId!=null&&!L.isViewMode&&(0, Oe.jsxs)("button",{type:"button",onClick:()=>L.setShowProperties(rt=>!rt),className:`${Lt} 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, Oe.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, Oe.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, Oe.jsx)("span",{className:"hidden sm:inline",children:"Properties"})]}),(0, Oe.jsx)("button",{type:"button",onClick:()=>{L.setIsViewMode(!L.isViewMode),L.setSelectedId(null),L.setTool("select");},className:`${Lt} ${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, Oe.jsxs)("div",{className:"flex flex-1 overflow-hidden min-h-0",children:[!L.isViewMode&&(0, Oe.jsx)(X_,{categories:xt,tool:L.tool,onSelect:rt=>{L.setTool(rt),L.setSelectedId(null);}}),(0, Oe.jsxs)("div",{className:"flex-1 relative overflow-hidden bg-slate-50 min-h-0",children:[(0, Oe.jsx)(X1,{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,onHandlePointerDown:L.isViewMode?void 0:L.onHandlePointerDown}),L.showProperties&&L.selectedId&&!L.isViewMode&&(0, Oe.jsx)(G_,{element:L.selectedElement,onChange:Mt,onDelete:P,onClose:()=>L.setShowProperties(false)})]})]}),(0, Oe.jsx)(Q_,{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 Wa=$t(Pt()),Hw=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}}},V_=(0, In.forwardRef)(function({mode:a="floating",title:l="Diagram editor",startMinimized:i=false,position:r="top-right",width:s="min(960px, 92vw)",height:h="min(640px, 78vh)",onChange:y,onExport:p,onShellMinimize:E,onShellMaximize:_,onShellClose:M,documentTitle:b,...k},Y){let $=(0, In.useRef)(null),[K,C]=(0, In.useState)(i),[z,O]=(0, In.useState)(false),[B,L]=(0, In.useState)(false),[xt,nt]=(0, In.useState)({x:0,y:0}),at=(0, In.useRef)(null),Mt=(0, In.useRef)(null);(0, In.useImperativeHandle)(Y,()=>({getData:()=>$.current?.getData()??[],setData:Z=>$.current?.setData(Z),clear:()=>$.current?.clear(),minimize:()=>{C(true),O(false);},maximize:()=>{C(false),O(true);},restore:()=>{C(false),O(false);},close:()=>L(true),open:()=>L(false)}),[]);let P=(0, In.useCallback)(Z=>{p?.(Z);},[p]),fe=Z=>{a!=="floating"||z||(Z.preventDefault(),at.current={startX:Z.clientX,startY:Z.clientY,ox:xt.x,oy:xt.y},Z.currentTarget.setPointerCapture(Z.pointerId));},Lt=Z=>{if(!at.current||a!=="floating"||z)return;let ht=Z.clientX-at.current.startX,bt=Z.clientY-at.current.startY;nt({x:at.current.ox+ht,y:at.current.oy+bt});},rt=Z=>{at.current=null;try{Z.currentTarget.releasePointerCapture(Z.pointerId);}catch{}},pt=(0, In.useMemo)(()=>{if(a!=="floating")return {};let Z=r==="center"?`translate(calc(-50% + ${xt.x}px), calc(-50% + ${xt.y}px))`:`translate(${xt.x}px, ${xt.y}px)`,ht={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:Z};if(z)return {...ht,inset:16,width:"auto",height:"auto",maxWidth:"none",maxHeight:"none",transform:`translate(${xt.x}px, ${xt.y}px)`};let bt=K?"auto":void 0;return {...ht,...Hw(r),width:s,height:K?bt:h,maxHeight:K?"none":"90vh",maxWidth:"96vw"}},[a,B,z,K,r,s,h,xt]);return a==="inline"?(0, Wa.jsx)("div",{className:"flex flex-col bg-white rounded-lg border border-gray-200 overflow-hidden",style:{width:s,height:h},children:(0, Wa.jsx)(gb,{ref:$,...k,embedded:true,documentTitle:b??l,onChange:y,onExport:P})}):(0, Wa.jsxs)("div",{ref:Mt,style:pt,className:"font-sans text-gray-900",children:[(0, Wa.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:fe,onPointerMove:Lt,onPointerUp:rt,onPointerCancel:rt,children:[(0, Wa.jsx)("span",{className:"text-sm font-semibold text-slate-800 truncate pr-2",children:l}),(0, Wa.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0, Wa.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-slate-200 text-slate-600",title:K?"Expand":"Minimize",onClick:Z=>{Z.stopPropagation(),C(ht=>!ht),K||O(false),E?.();},children:K?"\u25A2":"\u2212"}),(0, Wa.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-slate-200 text-slate-600",title:z?"Restore":"Maximize",onClick:Z=>{Z.stopPropagation(),O(ht=>!ht),z||C(false),_?.();},children:"\u25A1"}),(0, Wa.jsx)("button",{type:"button",className:"p-1.5 rounded hover:bg-red-100 text-red-600",title:"Close",onClick:Z=>{Z.stopPropagation(),L(true),M?.();},children:"\xD7"})]})]}),(0, Wa.jsx)("div",{className:"flex-1 min-h-0 overflow-hidden flex flex-col",style:K?{maxHeight:0,opacity:0,overflow:"hidden",pointerEvents:"none"}:void 0,"aria-hidden":K,children:(0, Wa.jsx)(gb,{ref:$,...k,embedded:true,hideDocumentTitle:true,documentTitle:b,onChange:y,onExport:P})}),K&&(0, Wa.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 _D=$t(MD());function S2(t,a){let l=(0, _D.createRoot)(t);return l.render(a),l}function E2(t){t.unmount();}var TD=$t(Pt());function sU(t){if(!(t==null||t===""))try{let a=JSON.parse(t);return Array.isArray(a)?a:void 0}catch{return}}function kD(t,a){return t===null||t===""?a:t==="true"||t===""}var Uf=class extends HTMLElement{constructor(){super(...arguments);this.editorRef=(0, zD.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&&(E2(this.root),this.root=void 0);}attributeChangedCallback(l){(l==="data"||l==="preset")&&(this._elements=null,this.pendingReseed=true),this.isConnected&&this.render();}get elements(){return this.editorRef.current?.getData()??this.committedInitial??[]}set elements(l){this._elements=l.slice(),this.pendingReseed=true,this.render();}get preset(){let l=this._preset??this.getAttribute("preset");return l&&Go[l]?l:void 0}set preset(l){this._preset=l??null,this.pendingReseed=true,this.render();}get mode(){let l=this._mode??this.getAttribute("mode");return l==="inline"||l==="floating"?l:"floating"}set mode(l){this._mode=l,this.render();}get viewMode(){return this._viewMode??kD(this.getAttribute("view-mode"),false)}set viewMode(l){this._viewMode=l,this.render();}getData(){return this.editorRef.current?.getData()??this.committedInitial??[]}setData(l){this._elements=l.slice(),this.committedInitial=l.slice(),this.pendingReseed=false,this.editorRef.current?this.editorRef.current.setData(l):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 l=sU(this.getAttribute("data")),i=this._preset??this.getAttribute("preset"),r=i&&Go[i]?Go[i]:Go.mechanics;return this._elements?this._elements.slice():l?l.slice():r.elements.slice()}render(){(this.pendingReseed||this.committedInitial===null)&&(this.committedInitial=this.readParsedInitial(),this.pendingReseed=false);let l=this.mode,i=this.viewMode,r=this.getAttribute("title")??"Diagram editor",s=kD(this.getAttribute("start-minimized"),false),h=this.getAttribute("position")??"top-right",y=this.getAttribute("width"),p=this.getAttribute("height"),E=y===""?void 0:y??void 0,_=p===""?void 0:p??void 0,M=this.preset,b=this.committedInitial,k=(0, TD.jsx)(V_,{ref:this.editorRef,mode:l,title:r,startMinimized:s,position:h,width:E,height:_,preset:M,initialElements:b,viewMode:i,onChange:Y=>{this.dispatchEvent(new CustomEvent("change",{detail:{elements:Y},bubbles:true,composed:true}));},onExport:Y=>{this.dispatchEvent(new CustomEvent("export",{detail:{elements:Y.elements,json:Y.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(k):this.root=S2(this,k);}};Uf.observedAttributes=["mode","preset","data","view-mode","title","start-minimized","position","width","height"];var DD=$t(Yl());var e4=$t(Pt());function AD(t){if(!(t==null||t===""))try{let a=JSON.parse(t);return Array.isArray(a)?a:void 0}catch{return}}function fU(t,a){return t===null||t===""?a:t==="true"||t===""}var Nf=class extends HTMLElement{constructor(){super(...arguments);this.svgRef=(0, DD.createRef)();this._elements=null;this._showGrid=null;}connectedCallback(){this.style.display||(this.style.display="block"),this.render();}disconnectedCallback(){this.root&&(E2(this.root),this.root=void 0);}attributeChangedCallback(){this.isConnected&&this.render();}get elements(){return this._elements??AD(this.getAttribute("data"))??[]}set elements(l){this._elements=l.slice(),this.render();}get showGrid(){return this._showGrid??fU(this.getAttribute("show-grid"),false)}set showGrid(l){this._showGrid=l,this.render();}setData(l){this._elements=l.slice(),this.render();}toSvg(){return this.svgRef.current?.outerHTML??""}render(){let l=AD(this.getAttribute("data")),i=this._elements??l??[],r=this.getAttribute("width")??"100%",s=this.getAttribute("height")??"100%",h=this.showGrid,y=(0, e4.jsx)("div",{style:{width:r,height:s},className:"bg-white overflow-hidden",children:(0, e4.jsx)(X1,{elements:i,viewMode:true,showGrid:h,className:"w-full h-full block",svgRef:this.svgRef})});this.root?this.root.render(y):this.root=S2(this,y);}};Nf.observedAttributes=["data","width","height","show-grid"];function CD(){typeof window>"u"||typeof customElements>"u"||(customElements.get("codefrydev-svg-engine")||customElements.define("codefrydev-svg-engine",Uf),customElements.get("codefrydev-svg-engine-prev")||customElements.define("codefrydev-svg-engine-prev",Nf));}CD();/*! 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&&lt&&(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&&lt&&((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&&lt&&((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=Uf;exports.CodefrydevSvgEnginePrev=Nf;exports.defineSvgEngineComponents=CD;return exports;})({});
65
+ */exports.CodefrydevSvgEngine=$a;exports.CodefrydevSvgEnginePrev=Aa;exports.defineSvgEngineComponents=cy;return exports;})({});