@aiready/visualizer 0.4.13 → 0.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/graph/index.d.ts +1 -0
- package/dist/graph/index.js +2 -2
- package/dist/graph/index.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/web/dist/assets/index-Caal1pcl.css +1 -0
- package/web/dist/assets/index-DKAM1iZ7.js +48 -0
- package/web/dist/index.html +2 -2
- package/web/src/App.tsx +4 -2
- package/web/src/components/LegendPanel.tsx +73 -70
- package/web/src/components/index.ts +0 -2
- package/web/src/types.ts +1 -0
- package/web/dist/assets/index-CV7175vq.css +0 -1
- package/web/dist/assets/index-DIsb72JZ.js +0 -10
- package/web/src/components/ErrorDisplay.tsx +0 -53
- package/web/src/components/LoadingSpinner.tsx +0 -22
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const c of l)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function a(l){const c={};return l.integrity&&(c.integrity=l.integrity),l.referrerPolicy&&(c.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?c.credentials="include":l.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(l){if(l.ep)return;l.ep=!0;const c=a(l);fetch(l.href,c)}})();function Qw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yf={exports:{}},zs={};var Ky;function Pw(){if(Ky)return zs;Ky=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(s,l,c){var u=null;if(c!==void 0&&(u=""+c),l.key!==void 0&&(u=""+l.key),"key"in l){c={};for(var h in l)h!=="key"&&(c[h]=l[h])}else c=l;return l=c.ref,{$$typeof:t,type:s,key:u,ref:l!==void 0?l:null,props:c}}return zs.Fragment=n,zs.jsx=a,zs.jsxs=a,zs}var Qy;function Fw(){return Qy||(Qy=1,Yf.exports=Pw()),Yf.exports}var M=Fw(),qf={exports:{}},_t={};var Py;function Jw(){if(Py)return _t;Py=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),v=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=v&&T[v]||T["@@iterator"],typeof T=="function"?T:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,z={};function A(T,G,W){this.props=T,this.context=G,this.refs=z,this.updater=W||_}A.prototype.isReactComponent={},A.prototype.setState=function(T,G){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,G,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function R(){}R.prototype=A.prototype;function O(T,G,W){this.props=T,this.context=G,this.refs=z,this.updater=W||_}var C=O.prototype=new R;C.constructor=O,w(C,A.prototype),C.isPureReactComponent=!0;var L=Array.isArray;function I(){}var V={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function tt(T,G,W){var it=W.ref;return{$$typeof:t,type:T,key:G,ref:it!==void 0?it:null,props:W}}function at(T,G){return tt(T.type,G,T.props)}function vt(T){return typeof T=="object"&&T!==null&&T.$$typeof===t}function St(T){var G={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(W){return G[W]})}var zt=/\/+/g;function Z(T,G){return typeof T=="object"&&T!==null&&T.key!=null?St(""+T.key):G.toString(36)}function nt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(I,I):(T.status="pending",T.then(function(G){T.status==="pending"&&(T.status="fulfilled",T.value=G)},function(G){T.status==="pending"&&(T.status="rejected",T.reason=G)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function E(T,G,W,it,st){var lt=typeof T;(lt==="undefined"||lt==="boolean")&&(T=null);var yt=!1;if(T===null)yt=!0;else switch(lt){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(T.$$typeof){case t:case n:yt=!0;break;case g:return yt=T._init,E(yt(T._payload),G,W,it,st)}}if(yt)return st=st(T),yt=it===""?"."+Z(T,0):it,L(st)?(W="",yt!=null&&(W=yt.replace(zt,"$&/")+"/"),E(st,G,W,"",function(Rn){return Rn})):st!=null&&(vt(st)&&(st=at(st,W+(st.key==null||T&&T.key===st.key?"":(""+st.key).replace(zt,"$&/")+"/")+yt)),G.push(st)),1;yt=0;var Vt=it===""?".":it+":";if(L(T))for(var xt=0;xt<T.length;xt++)it=T[xt],lt=Vt+Z(it,xt),yt+=E(it,G,W,lt,st);else if(xt=S(T),typeof xt=="function")for(T=xt.call(T),xt=0;!(it=T.next()).done;)it=it.value,lt=Vt+Z(it,xt++),yt+=E(it,G,W,lt,st);else if(lt==="object"){if(typeof T.then=="function")return E(nt(T),G,W,it,st);throw G=String(T),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return yt}function $(T,G,W){if(T==null)return T;var it=[],st=0;return E(T,it,"","",function(lt){return G.call(W,lt,st++)}),it}function K(T){if(T._status===-1){var G=T._result;G=G(),G.then(function(W){(T._status===0||T._status===-1)&&(T._status=1,T._result=W)},function(W){(T._status===0||T._status===-1)&&(T._status=2,T._result=W)}),T._status===-1&&(T._status=0,T._result=G)}if(T._status===1)return T._result.default;throw T._result}var et=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},q={map:$,forEach:function(T,G,W){$(T,function(){G.apply(this,arguments)},W)},count:function(T){var G=0;return $(T,function(){G++}),G},toArray:function(T){return $(T,function(G){return G})||[]},only:function(T){if(!vt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return _t.Activity=b,_t.Children=q,_t.Component=A,_t.Fragment=a,_t.Profiler=l,_t.PureComponent=O,_t.StrictMode=s,_t.Suspense=m,_t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,_t.__COMPILER_RUNTIME={__proto__:null,c:function(T){return V.H.useMemoCache(T)}},_t.cache=function(T){return function(){return T.apply(null,arguments)}},_t.cacheSignal=function(){return null},_t.cloneElement=function(T,G,W){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var it=w({},T.props),st=T.key;if(G!=null)for(lt in G.key!==void 0&&(st=""+G.key),G)!k.call(G,lt)||lt==="key"||lt==="__self"||lt==="__source"||lt==="ref"&&G.ref===void 0||(it[lt]=G[lt]);var lt=arguments.length-2;if(lt===1)it.children=W;else if(1<lt){for(var yt=Array(lt),Vt=0;Vt<lt;Vt++)yt[Vt]=arguments[Vt+2];it.children=yt}return tt(T.type,st,it)},_t.createContext=function(T){return T={$$typeof:u,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},_t.createElement=function(T,G,W){var it,st={},lt=null;if(G!=null)for(it in G.key!==void 0&&(lt=""+G.key),G)k.call(G,it)&&it!=="key"&&it!=="__self"&&it!=="__source"&&(st[it]=G[it]);var yt=arguments.length-2;if(yt===1)st.children=W;else if(1<yt){for(var Vt=Array(yt),xt=0;xt<yt;xt++)Vt[xt]=arguments[xt+2];st.children=Vt}if(T&&T.defaultProps)for(it in yt=T.defaultProps,yt)st[it]===void 0&&(st[it]=yt[it]);return tt(T,lt,st)},_t.createRef=function(){return{current:null}},_t.forwardRef=function(T){return{$$typeof:h,render:T}},_t.isValidElement=vt,_t.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:K}},_t.memo=function(T,G){return{$$typeof:p,type:T,compare:G===void 0?null:G}},_t.startTransition=function(T){var G=V.T,W={};V.T=W;try{var it=T(),st=V.S;st!==null&&st(W,it),typeof it=="object"&&it!==null&&typeof it.then=="function"&&it.then(I,et)}catch(lt){et(lt)}finally{G!==null&&W.types!==null&&(G.types=W.types),V.T=G}},_t.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},_t.use=function(T){return V.H.use(T)},_t.useActionState=function(T,G,W){return V.H.useActionState(T,G,W)},_t.useCallback=function(T,G){return V.H.useCallback(T,G)},_t.useContext=function(T){return V.H.useContext(T)},_t.useDebugValue=function(){},_t.useDeferredValue=function(T,G){return V.H.useDeferredValue(T,G)},_t.useEffect=function(T,G){return V.H.useEffect(T,G)},_t.useEffectEvent=function(T){return V.H.useEffectEvent(T)},_t.useId=function(){return V.H.useId()},_t.useImperativeHandle=function(T,G,W){return V.H.useImperativeHandle(T,G,W)},_t.useInsertionEffect=function(T,G){return V.H.useInsertionEffect(T,G)},_t.useLayoutEffect=function(T,G){return V.H.useLayoutEffect(T,G)},_t.useMemo=function(T,G){return V.H.useMemo(T,G)},_t.useOptimistic=function(T,G){return V.H.useOptimistic(T,G)},_t.useReducer=function(T,G,W){return V.H.useReducer(T,G,W)},_t.useRef=function(T){return V.H.useRef(T)},_t.useState=function(T){return V.H.useState(T)},_t.useSyncExternalStore=function(T,G,W){return V.H.useSyncExternalStore(T,G,W)},_t.useTransition=function(){return V.H.useTransition()},_t.version="19.2.4",_t}var Fy;function ih(){return Fy||(Fy=1,qf.exports=Jw()),qf.exports}var P=ih();const El=Qw(P);var Xf={exports:{}},Es={},Kf={exports:{}},Qf={};var Jy;function Iw(){return Jy||(Jy=1,(function(t){function n(E,$){var K=E.length;E.push($);t:for(;0<K;){var et=K-1>>>1,q=E[et];if(0<l(q,$))E[et]=$,E[K]=q,K=et;else break t}}function a(E){return E.length===0?null:E[0]}function s(E){if(E.length===0)return null;var $=E[0],K=E.pop();if(K!==$){E[0]=K;t:for(var et=0,q=E.length,T=q>>>1;et<T;){var G=2*(et+1)-1,W=E[G],it=G+1,st=E[it];if(0>l(W,K))it<q&&0>l(st,W)?(E[et]=st,E[it]=K,et=it):(E[et]=W,E[G]=K,et=G);else if(it<q&&0>l(st,K))E[et]=st,E[it]=K,et=it;else break t}}return $}function l(E,$){var K=E.sortIndex-$.sortIndex;return K!==0?K:E.id-$.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();t.unstable_now=function(){return u.now()-h}}var m=[],p=[],g=1,b=null,v=3,S=!1,_=!1,w=!1,z=!1,A=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function C(E){for(var $=a(p);$!==null;){if($.callback===null)s(p);else if($.startTime<=E)s(p),$.sortIndex=$.expirationTime,n(m,$);else break;$=a(p)}}function L(E){if(w=!1,C(E),!_)if(a(m)!==null)_=!0,I||(I=!0,St());else{var $=a(p);$!==null&&nt(L,$.startTime-E)}}var I=!1,V=-1,k=5,tt=-1;function at(){return z?!0:!(t.unstable_now()-tt<k)}function vt(){if(z=!1,I){var E=t.unstable_now();tt=E;var $=!0;try{t:{_=!1,w&&(w=!1,R(V),V=-1),S=!0;var K=v;try{e:{for(C(E),b=a(m);b!==null&&!(b.expirationTime>E&&at());){var et=b.callback;if(typeof et=="function"){b.callback=null,v=b.priorityLevel;var q=et(b.expirationTime<=E);if(E=t.unstable_now(),typeof q=="function"){b.callback=q,C(E),$=!0;break e}b===a(m)&&s(m),C(E)}else s(m);b=a(m)}if(b!==null)$=!0;else{var T=a(p);T!==null&&nt(L,T.startTime-E),$=!1}}break t}finally{b=null,v=K,S=!1}$=void 0}}finally{$?St():I=!1}}}var St;if(typeof O=="function")St=function(){O(vt)};else if(typeof MessageChannel<"u"){var zt=new MessageChannel,Z=zt.port2;zt.port1.onmessage=vt,St=function(){Z.postMessage(null)}}else St=function(){A(vt,0)};function nt(E,$){V=A(function(){E(t.unstable_now())},$)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(E){E.callback=null},t.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<E?Math.floor(1e3/E):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(E){switch(v){case 1:case 2:case 3:var $=3;break;default:$=v}var K=v;v=$;try{return E()}finally{v=K}},t.unstable_requestPaint=function(){z=!0},t.unstable_runWithPriority=function(E,$){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var K=v;v=E;try{return $()}finally{v=K}},t.unstable_scheduleCallback=function(E,$,K){var et=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?et+K:et):K=et,E){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=K+q,E={id:g++,callback:$,priorityLevel:E,startTime:K,expirationTime:q,sortIndex:-1},K>et?(E.sortIndex=K,n(p,E),a(m)===null&&E===a(p)&&(w?(R(V),V=-1):w=!0,nt(L,K-et))):(E.sortIndex=q,n(m,E),_||S||(_=!0,I||(I=!0,St()))),E},t.unstable_shouldYield=at,t.unstable_wrapCallback=function(E){var $=v;return function(){var K=v;v=$;try{return E.apply(this,arguments)}finally{v=K}}}})(Qf)),Qf}var Iy;function Ww(){return Iy||(Iy=1,Kf.exports=Iw()),Kf.exports}var Pf={exports:{}},Me={};var Wy;function t2(){if(Wy)return Me;Wy=1;var t=ih();function n(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},l=Symbol.for("react.portal");function c(m,p,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:b==null?null:""+b,children:m,containerInfo:p,implementation:g}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Me.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Me.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return c(m,p,null,g)},Me.flushSync=function(m){var p=u.T,g=s.p;try{if(u.T=null,s.p=2,m)return m()}finally{u.T=p,s.p=g,s.d.f()}},Me.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},Me.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},Me.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,b=h(g,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:S}):g==="script"&&s.d.X(m,{crossOrigin:b,integrity:v,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Me.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=h(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},Me.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,b=h(g,p.crossOrigin);s.d.L(m,g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Me.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=h(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},Me.requestFormReset=function(m){s.d.r(m)},Me.unstable_batchedUpdates=function(m,p){return m(p)},Me.useFormState=function(m,p,g){return u.H.useFormState(m,p,g)},Me.useFormStatus=function(){return u.H.useHostTransitionStatus()},Me.version="19.2.4",Me}var t0;function e2(){if(t0)return Pf.exports;t0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Pf.exports=t2(),Pf.exports}var e0;function n2(){if(e0)return Es;e0=1;var t=Ww(),n=ih(),a=e2();function s(e){var i="https://react.dev/errors/"+e;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)i+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var i=e,r=e;if(e.alternate)for(;i.return;)i=i.return;else{e=i;do i=e,(i.flags&4098)!==0&&(r=i.return),e=i.return;while(e)}return i.tag===3?r:null}function u(e){if(e.tag===13){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function h(e){if(e.tag===31){var i=e.memoizedState;if(i===null&&(e=e.alternate,e!==null&&(i=e.memoizedState)),i!==null)return i.dehydrated}return null}function m(e){if(c(e)!==e)throw Error(s(188))}function p(e){var i=e.alternate;if(!i){if(i=c(e),i===null)throw Error(s(188));return i!==e?null:e}for(var r=e,o=i;;){var f=r.return;if(f===null)break;var d=f.alternate;if(d===null){if(o=f.return,o!==null){r=o;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===r)return m(f),e;if(d===o)return m(f),i;d=d.sibling}throw Error(s(188))}if(r.return!==o.return)r=f,o=d;else{for(var y=!1,x=f.child;x;){if(x===r){y=!0,r=f,o=d;break}if(x===o){y=!0,o=f,r=d;break}x=x.sibling}if(!y){for(x=d.child;x;){if(x===r){y=!0,r=d,o=f;break}if(x===o){y=!0,o=d,r=f;break}x=x.sibling}if(!y)throw Error(s(189))}}if(r.alternate!==o)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:i}function g(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e;for(e=e.child;e!==null;){if(i=g(e),i!==null)return i;e=e.sibling}return null}var b=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),O=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),tt=Symbol.for("react.activity"),at=Symbol.for("react.memo_cache_sentinel"),vt=Symbol.iterator;function St(e){return e===null||typeof e!="object"?null:(e=vt&&e[vt]||e["@@iterator"],typeof e=="function"?e:null)}var zt=Symbol.for("react.client.reference");function Z(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===zt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case A:return"Profiler";case z:return"StrictMode";case L:return"Suspense";case I:return"SuspenseList";case tt:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case O:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case C:var i=e.render;return e=e.displayName,e||(e=i.displayName||i.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return i=e.displayName||null,i!==null?i:Z(e.type)||"Memo";case k:i=e._payload,e=e._init;try{return Z(e(i))}catch{}}return null}var nt=Array.isArray,E=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},et=[],q=-1;function T(e){return{current:e}}function G(e){0>q||(e.current=et[q],et[q]=null,q--)}function W(e,i){q++,et[q]=e.current,e.current=i}var it=T(null),st=T(null),lt=T(null),yt=T(null);function Vt(e,i){switch(W(lt,i),W(st,e),W(it,null),i.nodeType){case 9:case 11:e=(e=i.documentElement)&&(e=e.namespaceURI)?gy(e):0;break;default:if(e=i.tagName,i=i.namespaceURI)i=gy(i),e=yy(i,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(it),W(it,e)}function xt(){G(it),G(st),G(lt)}function Rn(e){e.memoizedState!==null&&W(yt,e);var i=it.current,r=yy(i,e.type);i!==r&&(W(st,e),W(it,r))}function Sn(e){st.current===e&&(G(it),G(st)),yt.current===e&&(G(yt),_s._currentValue=K)}var kn,ot;function rt(e){if(kn===void 0)try{throw Error()}catch(r){var i=r.stack.trim().match(/\n( *(at )?)/);kn=i&&i[1]||"",ot=-1<r.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+kn+e+ot}var bt=!1;function wt(e,i){if(!e||bt)return"";bt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(i){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(Y){var H=Y}Reflect.construct(e,[],F)}else{try{F.call()}catch(Y){H=Y}e.call(F.prototype)}}else{try{throw Error()}catch(Y){H=Y}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(Y){if(Y&&H&&typeof Y.stack=="string")return[Y.stack,H.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),y=d[0],x=d[1];if(y&&x){var D=y.split(`
|
|
4
|
+
`),U=x.split(`
|
|
5
|
+
`);for(f=o=0;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;for(;f<U.length&&!U[f].includes("DetermineComponentFrameRoot");)f++;if(o===D.length||f===U.length)for(o=D.length-1,f=U.length-1;1<=o&&0<=f&&D[o]!==U[f];)f--;for(;1<=o&&0<=f;o--,f--)if(D[o]!==U[f]){if(o!==1||f!==1)do if(o--,f--,0>f||D[o]!==U[f]){var X=`
|
|
6
|
+
`+D[o].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=o&&0<=f);break}}}finally{bt=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?rt(r):""}function qt(e,i){switch(e.tag){case 26:case 27:case 5:return rt(e.type);case 16:return rt("Lazy");case 13:return e.child!==i&&i!==null?rt("Suspense Fallback"):rt("Suspense");case 19:return rt("SuspenseList");case 0:case 15:return wt(e.type,!1);case 11:return wt(e.type.render,!1);case 1:return wt(e.type,!0);case 31:return rt("Activity");default:return""}}function ae(e){try{var i="",r=null;do i+=qt(e,r),r=e,e=e.return;while(e);return i}catch(o){return`
|
|
7
|
+
Error generating stack: `+o.message+`
|
|
8
|
+
`+o.stack}}var Ht=Object.prototype.hasOwnProperty,De=t.unstable_scheduleCallback,Ne=t.unstable_cancelCallback,_n=t.unstable_shouldYield,Da=t.unstable_requestPaint,xe=t.unstable_now,Pe=t.unstable_getCurrentPriorityLevel,on=t.unstable_ImmediatePriority,lo=t.unstable_UserBlockingPriority,Ii=t.unstable_NormalPriority,Du=t.unstable_LowPriority,Rr=t.unstable_IdlePriority,uo=t.log,NS=t.unstable_setDisableYieldValue,kr=null,Fe=null;function pi(e){if(typeof uo=="function"&&NS(e),Fe&&typeof Fe.setStrictMode=="function")try{Fe.setStrictMode(kr,e)}catch{}}var Je=Math.clz32?Math.clz32:kS,OS=Math.log,RS=Math.LN2;function kS(e){return e>>>=0,e===0?32:31-(OS(e)/RS|0)|0}var co=256,fo=262144,ho=4194304;function Wi(e){var i=e&42;if(i!==0)return i;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 e}}function mo(e,i,r){var o=e.pendingLanes;if(o===0)return 0;var f=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var x=o&134217727;return x!==0?(o=x&~d,o!==0?f=Wi(o):(y&=x,y!==0?f=Wi(y):r||(r=x&~e,r!==0&&(f=Wi(r))))):(x=o&~d,x!==0?f=Wi(x):y!==0?f=Wi(y):r||(r=o&~e,r!==0&&(f=Wi(r)))),f===0?0:i!==0&&i!==f&&(i&d)===0&&(d=f&-f,r=i&-i,d>=r||d===32&&(r&4194048)!==0)?i:f}function jr(e,i){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&i)===0}function jS(e,i){switch(e){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Jh(){var e=ho;return ho<<=1,(ho&62914560)===0&&(ho=4194304),e}function Nu(e){for(var i=[],r=0;31>r;r++)i.push(e);return i}function Vr(e,i){e.pendingLanes|=i,i!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function VS(e,i,r,o,f,d){var y=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var x=e.entanglements,D=e.expirationTimes,U=e.hiddenUpdates;for(r=y&~r;0<r;){var X=31-Je(r),F=1<<X;x[X]=0,D[X]=-1;var H=U[X];if(H!==null)for(U[X]=null,X=0;X<H.length;X++){var Y=H[X];Y!==null&&(Y.lane&=-536870913)}r&=~F}o!==0&&Ih(e,o,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~i))}function Ih(e,i,r){e.pendingLanes|=i,e.suspendedLanes&=~i;var o=31-Je(i);e.entangledLanes|=i,e.entanglements[o]=e.entanglements[o]|1073741824|r&261930}function Wh(e,i){var r=e.entangledLanes|=i;for(e=e.entanglements;r;){var o=31-Je(r),f=1<<o;f&i|e[o]&i&&(e[o]|=i),r&=~f}}function tm(e,i){var r=i&-i;return r=(r&42)!==0?1:Ou(r),(r&(e.suspendedLanes|i))!==0?0:r}function Ou(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 Ru(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function em(){var e=$.p;return e!==0?e:(e=window.event,e===void 0?32:Zy(e.type))}function nm(e,i){var r=$.p;try{return $.p=e,i()}finally{$.p=r}}var gi=Math.random().toString(36).slice(2),Se="__reactFiber$"+gi,Ze="__reactProps$"+gi,Na="__reactContainer$"+gi,ku="__reactEvents$"+gi,BS="__reactListeners$"+gi,US="__reactHandles$"+gi,im="__reactResources$"+gi,Br="__reactMarker$"+gi;function ju(e){delete e[Se],delete e[Ze],delete e[ku],delete e[BS],delete e[US]}function Oa(e){var i=e[Se];if(i)return i;for(var r=e.parentNode;r;){if(i=r[Na]||r[Se]){if(r=i.alternate,i.child!==null||r!==null&&r.child!==null)for(e=Ty(e);e!==null;){if(r=e[Se])return r;e=Ty(e)}return i}e=r,r=e.parentNode}return null}function Ra(e){if(e=e[Se]||e[Na]){var i=e.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return e}return null}function Ur(e){var i=e.tag;if(i===5||i===26||i===27||i===6)return e.stateNode;throw Error(s(33))}function ka(e){var i=e[im];return i||(i=e[im]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function ve(e){e[Br]=!0}var am=new Set,rm={};function ta(e,i){ja(e,i),ja(e+"Capture",i)}function ja(e,i){for(rm[e]=i,e=0;e<i.length;e++)am.add(i[e])}var LS=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]*$"),sm={},om={};function ZS(e){return Ht.call(om,e)?!0:Ht.call(sm,e)?!1:LS.test(e)?om[e]=!0:(sm[e]=!0,!1)}function po(e,i,r){if(ZS(i))if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(i);return;case"boolean":var o=i.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(i);return}}e.setAttribute(i,""+r)}}function go(e,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttribute(i,""+r)}}function qn(e,i,r,o){if(o===null)e.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(i,r,""+o)}}function ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lm(e){var i=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function HS(e,i,r){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);if(!e.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var f=o.get,d=o.set;return Object.defineProperty(e,i,{configurable:!0,get:function(){return f.call(this)},set:function(y){r=""+y,d.call(this,y)}}),Object.defineProperty(e,i,{enumerable:o.enumerable}),{getValue:function(){return r},setValue:function(y){r=""+y},stopTracking:function(){e._valueTracker=null,delete e[i]}}}}function Vu(e){if(!e._valueTracker){var i=lm(e)?"checked":"value";e._valueTracker=HS(e,i,""+e[i])}}function um(e){if(!e)return!1;var i=e._valueTracker;if(!i)return!0;var r=i.getValue(),o="";return e&&(o=lm(e)?e.checked?"true":"false":e.value),e=o,e!==r?(i.setValue(e),!0):!1}function yo(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}}var $S=/[\n"\\]/g;function un(e){return e.replace($S,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Bu(e,i,r,o,f,d,y,x){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),i!=null?y==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+ln(i)):e.value!==""+ln(i)&&(e.value=""+ln(i)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),i!=null?Uu(e,y,ln(i)):r!=null?Uu(e,y,ln(r)):o!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+ln(x):e.removeAttribute("name")}function cm(e,i,r,o,f,d,y,x){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),i!=null||r!=null){if(!(d!=="submit"&&d!=="reset"||i!=null)){Vu(e);return}r=r!=null?""+ln(r):"",i=i!=null?""+ln(i):r,x||i===e.value||(e.value=i),e.defaultValue=i}o=o??f,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=x?e.checked:!!o,e.defaultChecked=!!o,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Vu(e)}function Uu(e,i,r){i==="number"&&yo(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function Va(e,i,r,o){if(e=e.options,i){i={};for(var f=0;f<r.length;f++)i["$"+r[f]]=!0;for(r=0;r<e.length;r++)f=i.hasOwnProperty("$"+e[r].value),e[r].selected!==f&&(e[r].selected=f),f&&o&&(e[r].defaultSelected=!0)}else{for(r=""+ln(r),i=null,f=0;f<e.length;f++){if(e[f].value===r){e[f].selected=!0,o&&(e[f].defaultSelected=!0);return}i!==null||e[f].disabled||(i=e[f])}i!==null&&(i.selected=!0)}}function fm(e,i,r){if(i!=null&&(i=""+ln(i),i!==e.value&&(e.value=i),r==null)){e.defaultValue!==i&&(e.defaultValue=i);return}e.defaultValue=r!=null?""+ln(r):""}function dm(e,i,r,o){if(i==null){if(o!=null){if(r!=null)throw Error(s(92));if(nt(o)){if(1<o.length)throw Error(s(93));o=o[0]}r=o}r==null&&(r=""),i=r}r=ln(i),e.defaultValue=r,o=e.textContent,o===r&&o!==""&&o!==null&&(e.value=o),Vu(e)}function Ba(e,i){if(i){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=i;return}}e.textContent=i}var GS=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 hm(e,i,r){var o=i.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?o?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="":o?e.setProperty(i,r):typeof r!="number"||r===0||GS.has(i)?i==="float"?e.cssFloat=r:e[i]=(""+r).trim():e[i]=r+"px"}function mm(e,i,r){if(i!=null&&typeof i!="object")throw Error(s(62));if(e=e.style,r!=null){for(var o in r)!r.hasOwnProperty(o)||i!=null&&i.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var f in i)o=i[f],i.hasOwnProperty(f)&&r[f]!==o&&hm(e,f,o)}else for(var d in i)i.hasOwnProperty(d)&&hm(e,d,i[d])}function Lu(e){if(e.indexOf("-")===-1)return!1;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!1;default:return!0}}var YS=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"]]),qS=/^[\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 vo(e){return qS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xn(){}var Zu=null;function Hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ua=null,La=null;function pm(e){var i=Ra(e);if(i&&(e=i.stateNode)){var r=e[Ze]||null;t:switch(e=i.stateNode,i.type){case"input":if(Bu(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),i=r.name,r.type==="radio"&&i!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+un(""+i)+'"][type="radio"]'),i=0;i<r.length;i++){var o=r[i];if(o!==e&&o.form===e.form){var f=o[Ze]||null;if(!f)throw Error(s(90));Bu(o,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(i=0;i<r.length;i++)o=r[i],o.form===e.form&&um(o)}break t;case"textarea":fm(e,r.value,r.defaultValue);break t;case"select":i=r.value,i!=null&&Va(e,!!r.multiple,i,!1)}}}var $u=!1;function gm(e,i,r){if($u)return e(i,r);$u=!0;try{var o=e(i);return o}finally{if($u=!1,(Ua!==null||La!==null)&&(rl(),Ua&&(i=Ua,e=La,La=Ua=null,pm(i),e)))for(i=0;i<e.length;i++)pm(e[i])}}function Lr(e,i){var r=e.stateNode;if(r===null)return null;var o=r[Ze]||null;if(o===null)return null;r=o[i];t:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break t;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,i,typeof r));return r}var Kn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gu=!1;if(Kn)try{var Zr={};Object.defineProperty(Zr,"passive",{get:function(){Gu=!0}}),window.addEventListener("test",Zr,Zr),window.removeEventListener("test",Zr,Zr)}catch{Gu=!1}var yi=null,Yu=null,bo=null;function ym(){if(bo)return bo;var e,i=Yu,r=i.length,o,f="value"in yi?yi.value:yi.textContent,d=f.length;for(e=0;e<r&&i[e]===f[e];e++);var y=r-e;for(o=1;o<=y&&i[r-o]===f[d-o];o++);return bo=f.slice(e,1<o?1-o:void 0)}function xo(e){var i=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&i===13&&(e=13)):e=i,e===10&&(e=13),32<=e||e===13?e:0}function So(){return!0}function vm(){return!1}function He(e){function i(r,o,f,d,y){this._reactName=r,this._targetInst=f,this.type=o,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(r=e[x],this[x]=r?r(d):d[x]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?So:vm,this.isPropagationStopped=vm,this}return b(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=So)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=So)},persist:function(){},isPersistent:So}),i}var ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_o=He(ea),Hr=b({},ea,{view:0,detail:0}),XS=He(Hr),qu,Xu,$r,wo=b({},Hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,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!==$r&&($r&&e.type==="mousemove"?(qu=e.screenX-$r.screenX,Xu=e.screenY-$r.screenY):Xu=qu=0,$r=e),qu)},movementY:function(e){return"movementY"in e?e.movementY:Xu}}),bm=He(wo),KS=b({},wo,{dataTransfer:0}),QS=He(KS),PS=b({},Hr,{relatedTarget:0}),Ku=He(PS),FS=b({},ea,{animationName:0,elapsedTime:0,pseudoElement:0}),JS=He(FS),IS=b({},ea,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),WS=He(IS),t_=b({},ea,{data:0}),xm=He(t_),e_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n_={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"},i_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function a_(e){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(e):(e=i_[e])?!!i[e]:!1}function Qu(){return a_}var r_=b({},Hr,{key:function(e){if(e.key){var i=e_[e.key]||e.key;if(i!=="Unidentified")return i}return e.type==="keypress"?(e=xo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?n_[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?xo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),s_=He(r_),o_=b({},wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sm=He(o_),l_=b({},Hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),u_=He(l_),c_=b({},ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),f_=He(c_),d_=b({},wo,{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}),h_=He(d_),m_=b({},ea,{newState:0,oldState:0}),p_=He(m_),g_=[9,13,27,32],Pu=Kn&&"CompositionEvent"in window,Gr=null;Kn&&"documentMode"in document&&(Gr=document.documentMode);var y_=Kn&&"TextEvent"in window&&!Gr,_m=Kn&&(!Pu||Gr&&8<Gr&&11>=Gr),wm=" ",Tm=!1;function Am(e,i){switch(e){case"keyup":return g_.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Za=!1;function v_(e,i){switch(e){case"compositionend":return zm(i);case"keypress":return i.which!==32?null:(Tm=!0,wm);case"textInput":return e=i.data,e===wm&&Tm?null:e;default:return null}}function b_(e,i){if(Za)return e==="compositionend"||!Pu&&Am(e,i)?(e=ym(),bo=Yu=yi=null,Za=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return _m&&i.locale!=="ko"?null:i.data;default:return null}}var x_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Em(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i==="input"?!!x_[e.type]:i==="textarea"}function Mm(e,i,r,o){Ua?La?La.push(o):La=[o]:Ua=o,i=dl(i,"onChange"),0<i.length&&(r=new _o("onChange","change",null,r,o),e.push({event:r,listeners:i}))}var Yr=null,qr=null;function S_(e){cy(e,0)}function To(e){var i=Ur(e);if(um(i))return e}function Cm(e,i){if(e==="change")return i}var Dm=!1;if(Kn){var Fu;if(Kn){var Ju="oninput"in document;if(!Ju){var Nm=document.createElement("div");Nm.setAttribute("oninput","return;"),Ju=typeof Nm.oninput=="function"}Fu=Ju}else Fu=!1;Dm=Fu&&(!document.documentMode||9<document.documentMode)}function Om(){Yr&&(Yr.detachEvent("onpropertychange",Rm),qr=Yr=null)}function Rm(e){if(e.propertyName==="value"&&To(qr)){var i=[];Mm(i,qr,e,Hu(e)),gm(S_,i)}}function __(e,i,r){e==="focusin"?(Om(),Yr=i,qr=r,Yr.attachEvent("onpropertychange",Rm)):e==="focusout"&&Om()}function w_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return To(qr)}function T_(e,i){if(e==="click")return To(i)}function A_(e,i){if(e==="input"||e==="change")return To(i)}function z_(e,i){return e===i&&(e!==0||1/e===1/i)||e!==e&&i!==i}var Ie=typeof Object.is=="function"?Object.is:z_;function Xr(e,i){if(Ie(e,i))return!0;if(typeof e!="object"||e===null||typeof i!="object"||i===null)return!1;var r=Object.keys(e),o=Object.keys(i);if(r.length!==o.length)return!1;for(o=0;o<r.length;o++){var f=r[o];if(!Ht.call(i,f)||!Ie(e[f],i[f]))return!1}return!0}function km(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jm(e,i){var r=km(e);e=0;for(var o;r;){if(r.nodeType===3){if(o=e+r.textContent.length,e<=i&&o>=i)return{node:r,offset:i-e};e=o}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=km(r)}}function Vm(e,i){return e&&i?e===i?!0:e&&e.nodeType===3?!1:i&&i.nodeType===3?Vm(e,i.parentNode):"contains"in e?e.contains(i):e.compareDocumentPosition?!!(e.compareDocumentPosition(i)&16):!1:!1}function Bm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var i=yo(e.document);i instanceof e.HTMLIFrameElement;){try{var r=typeof i.contentWindow.location.href=="string"}catch{r=!1}if(r)e=i.contentWindow;else break;i=yo(e.document)}return i}function Iu(e){var i=e&&e.nodeName&&e.nodeName.toLowerCase();return i&&(i==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||i==="textarea"||e.contentEditable==="true")}var E_=Kn&&"documentMode"in document&&11>=document.documentMode,Ha=null,Wu=null,Kr=null,tc=!1;function Um(e,i,r){var o=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;tc||Ha==null||Ha!==yo(o)||(o=Ha,"selectionStart"in o&&Iu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Kr&&Xr(Kr,o)||(Kr=o,o=dl(Wu,"onSelect"),0<o.length&&(i=new _o("onSelect","select",null,i,r),e.push({event:i,listeners:o}),i.target=Ha)))}function na(e,i){var r={};return r[e.toLowerCase()]=i.toLowerCase(),r["Webkit"+e]="webkit"+i,r["Moz"+e]="moz"+i,r}var $a={animationend:na("Animation","AnimationEnd"),animationiteration:na("Animation","AnimationIteration"),animationstart:na("Animation","AnimationStart"),transitionrun:na("Transition","TransitionRun"),transitionstart:na("Transition","TransitionStart"),transitioncancel:na("Transition","TransitionCancel"),transitionend:na("Transition","TransitionEnd")},ec={},Lm={};Kn&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function ia(e){if(ec[e])return ec[e];if(!$a[e])return e;var i=$a[e],r;for(r in i)if(i.hasOwnProperty(r)&&r in Lm)return ec[e]=i[r];return e}var Zm=ia("animationend"),Hm=ia("animationiteration"),$m=ia("animationstart"),M_=ia("transitionrun"),C_=ia("transitionstart"),D_=ia("transitioncancel"),Gm=ia("transitionend"),Ym=new Map,nc="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(" ");nc.push("scrollEnd");function wn(e,i){Ym.set(e,i),ta(i,[e])}var Ao=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},cn=[],Ga=0,ic=0;function zo(){for(var e=Ga,i=ic=Ga=0;i<e;){var r=cn[i];cn[i++]=null;var o=cn[i];cn[i++]=null;var f=cn[i];cn[i++]=null;var d=cn[i];if(cn[i++]=null,o!==null&&f!==null){var y=o.pending;y===null?f.next=f:(f.next=y.next,y.next=f),o.pending=f}d!==0&&qm(r,f,d)}}function Eo(e,i,r,o){cn[Ga++]=e,cn[Ga++]=i,cn[Ga++]=r,cn[Ga++]=o,ic|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function ac(e,i,r,o){return Eo(e,i,r,o),Mo(e)}function aa(e,i){return Eo(e,null,null,i),Mo(e)}function qm(e,i,r){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r);for(var f=!1,d=e.return;d!==null;)d.childLanes|=r,o=d.alternate,o!==null&&(o.childLanes|=r),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&i!==null&&(f=31-Je(r),e=d.hiddenUpdates,o=e[f],o===null?e[f]=[i]:o.push(i),i.lane=r|536870912),d):null}function Mo(e){if(50<ps)throw ps=0,mf=null,Error(s(185));for(var i=e.return;i!==null;)e=i,i=e.return;return e.tag===3?e.stateNode:null}var Ya={};function N_(e,i,r,o){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(e,i,r,o){return new N_(e,i,r,o)}function rc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qn(e,i){var r=e.alternate;return r===null?(r=We(e.tag,i,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=i,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,i=e.dependencies,r.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Xm(e,i){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=i,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,i=r.dependencies,e.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),e}function Co(e,i,r,o,f,d){var y=0;if(o=e,typeof e=="function")rc(e)&&(y=1);else if(typeof e=="string")y=Vw(e,r,it.current)?26:e==="html"||e==="head"||e==="body"?27:5;else t:switch(e){case tt:return e=We(31,r,i,f),e.elementType=tt,e.lanes=d,e;case w:return ra(r.children,f,d,i);case z:y=8,f|=24;break;case A:return e=We(12,r,i,f|2),e.elementType=A,e.lanes=d,e;case L:return e=We(13,r,i,f),e.elementType=L,e.lanes=d,e;case I:return e=We(19,r,i,f),e.elementType=I,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:y=10;break t;case R:y=9;break t;case C:y=11;break t;case V:y=14;break t;case k:y=16,o=null;break t}y=29,r=Error(s(130,e===null?"null":typeof e,"")),o=null}return i=We(y,r,i,f),i.elementType=e,i.type=o,i.lanes=d,i}function ra(e,i,r,o){return e=We(7,e,o,i),e.lanes=r,e}function sc(e,i,r){return e=We(6,e,null,i),e.lanes=r,e}function Km(e){var i=We(18,null,null,0);return i.stateNode=e,i}function oc(e,i,r){return i=We(4,e.children!==null?e.children:[],e.key,i),i.lanes=r,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}var Qm=new WeakMap;function fn(e,i){if(typeof e=="object"&&e!==null){var r=Qm.get(e);return r!==void 0?r:(i={value:e,source:i,stack:ae(i)},Qm.set(e,i),i)}return{value:e,source:i,stack:ae(i)}}var qa=[],Xa=0,Do=null,Qr=0,dn=[],hn=0,vi=null,jn=1,Vn="";function Pn(e,i){qa[Xa++]=Qr,qa[Xa++]=Do,Do=e,Qr=i}function Pm(e,i,r){dn[hn++]=jn,dn[hn++]=Vn,dn[hn++]=vi,vi=e;var o=jn;e=Vn;var f=32-Je(o)-1;o&=~(1<<f),r+=1;var d=32-Je(i)+f;if(30<d){var y=f-f%5;d=(o&(1<<y)-1).toString(32),o>>=y,f-=y,jn=1<<32-Je(i)+f|r<<f|o,Vn=d+e}else jn=1<<d|r<<f|o,Vn=e}function lc(e){e.return!==null&&(Pn(e,1),Pm(e,1,0))}function uc(e){for(;e===Do;)Do=qa[--Xa],qa[Xa]=null,Qr=qa[--Xa],qa[Xa]=null;for(;e===vi;)vi=dn[--hn],dn[hn]=null,Vn=dn[--hn],dn[hn]=null,jn=dn[--hn],dn[hn]=null}function Fm(e,i){dn[hn++]=jn,dn[hn++]=Vn,dn[hn++]=vi,jn=i.id,Vn=i.overflow,vi=e}var _e=null,Pt=null,Ot=!1,bi=null,mn=!1,cc=Error(s(519));function xi(e){var i=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pr(fn(i,e)),cc}function Jm(e){var i=e.stateNode,r=e.type,o=e.memoizedProps;switch(i[Se]=e,i[Ze]=o,r){case"dialog":Ct("cancel",i),Ct("close",i);break;case"iframe":case"object":case"embed":Ct("load",i);break;case"video":case"audio":for(r=0;r<ys.length;r++)Ct(ys[r],i);break;case"source":Ct("error",i);break;case"img":case"image":case"link":Ct("error",i),Ct("load",i);break;case"details":Ct("toggle",i);break;case"input":Ct("invalid",i),cm(i,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Ct("invalid",i);break;case"textarea":Ct("invalid",i),dm(i,o.value,o.defaultValue,o.children)}r=o.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||i.textContent===""+r||o.suppressHydrationWarning===!0||my(i.textContent,r)?(o.popover!=null&&(Ct("beforetoggle",i),Ct("toggle",i)),o.onScroll!=null&&Ct("scroll",i),o.onScrollEnd!=null&&Ct("scrollend",i),o.onClick!=null&&(i.onclick=Xn),i=!0):i=!1,i||xi(e,!0)}function Im(e){for(_e=e.return;_e;)switch(_e.tag){case 5:case 31:case 13:mn=!1;return;case 27:case 3:mn=!0;return;default:_e=_e.return}}function Ka(e){if(e!==_e)return!1;if(!Ot)return Im(e),Ot=!0,!1;var i=e.tag,r;if((r=i!==3&&i!==27)&&((r=i===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Cf(e.type,e.memoizedProps)),r=!r),r&&Pt&&xi(e),Im(e),i===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Pt=wy(e)}else if(i===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Pt=wy(e)}else i===27?(i=Pt,ki(e.type)?(e=kf,kf=null,Pt=e):Pt=i):Pt=_e?gn(e.stateNode.nextSibling):null;return!0}function sa(){Pt=_e=null,Ot=!1}function fc(){var e=bi;return e!==null&&(qe===null?qe=e:qe.push.apply(qe,e),bi=null),e}function Pr(e){bi===null?bi=[e]:bi.push(e)}var dc=T(null),oa=null,Fn=null;function Si(e,i,r){W(dc,i._currentValue),i._currentValue=r}function Jn(e){e._currentValue=dc.current,G(dc)}function hc(e,i,r){for(;e!==null;){var o=e.alternate;if((e.childLanes&i)!==i?(e.childLanes|=i,o!==null&&(o.childLanes|=i)):o!==null&&(o.childLanes&i)!==i&&(o.childLanes|=i),e===r)break;e=e.return}}function mc(e,i,r,o){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var y=f.child;d=d.firstContext;t:for(;d!==null;){var x=d;d=f;for(var D=0;D<i.length;D++)if(x.context===i[D]){d.lanes|=r,x=d.alternate,x!==null&&(x.lanes|=r),hc(d.return,r,e),o||(y=null);break t}d=x.next}}else if(f.tag===18){if(y=f.return,y===null)throw Error(s(341));y.lanes|=r,d=y.alternate,d!==null&&(d.lanes|=r),hc(y,r,e),y=null}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===e){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}}function Qa(e,i,r,o){e=null;for(var f=i,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var y=f.alternate;if(y===null)throw Error(s(387));if(y=y.memoizedProps,y!==null){var x=f.type;Ie(f.pendingProps.value,y.value)||(e!==null?e.push(x):e=[x])}}else if(f===yt.current){if(y=f.alternate,y===null)throw Error(s(387));y.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(_s):e=[_s])}f=f.return}e!==null&&mc(i,e,r,o),i.flags|=262144}function No(e){for(e=e.firstContext;e!==null;){if(!Ie(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function la(e){oa=e,Fn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function we(e){return Wm(oa,e)}function Oo(e,i){return oa===null&&la(e),Wm(e,i)}function Wm(e,i){var r=i._currentValue;if(i={context:i,memoizedValue:r,next:null},Fn===null){if(e===null)throw Error(s(308));Fn=i,e.dependencies={lanes:0,firstContext:i},e.flags|=524288}else Fn=Fn.next=i;return r}var O_=typeof AbortController<"u"?AbortController:function(){var e=[],i=this.signal={aborted:!1,addEventListener:function(r,o){e.push(o)}};this.abort=function(){i.aborted=!0,e.forEach(function(r){return r()})}},R_=t.unstable_scheduleCallback,k_=t.unstable_NormalPriority,ue={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pc(){return{controller:new O_,data:new Map,refCount:0}}function Fr(e){e.refCount--,e.refCount===0&&R_(k_,function(){e.controller.abort()})}var Jr=null,gc=0,Pa=0,Fa=null;function j_(e,i){if(Jr===null){var r=Jr=[];gc=0,Pa=xf(),Fa={status:"pending",value:void 0,then:function(o){r.push(o)}}}return gc++,i.then(tp,tp),i}function tp(){if(--gc===0&&Jr!==null){Fa!==null&&(Fa.status="fulfilled");var e=Jr;Jr=null,Pa=0,Fa=null;for(var i=0;i<e.length;i++)(0,e[i])()}}function V_(e,i){var r=[],o={status:"pending",value:null,reason:null,then:function(f){r.push(f)}};return e.then(function(){o.status="fulfilled",o.value=i;for(var f=0;f<r.length;f++)(0,r[f])(i)},function(f){for(o.status="rejected",o.reason=f,f=0;f<r.length;f++)(0,r[f])(void 0)}),o}var ep=E.S;E.S=function(e,i){Ug=xe(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&j_(e,i),ep!==null&&ep(e,i)};var ua=T(null);function yc(){var e=ua.current;return e!==null?e:Xt.pooledCache}function Ro(e,i){i===null?W(ua,ua.current):W(ua,i.pool)}function np(){var e=yc();return e===null?null:{parent:ue._currentValue,pool:e}}var Ja=Error(s(460)),vc=Error(s(474)),ko=Error(s(542)),jo={then:function(){}};function ip(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ap(e,i,r){switch(r=e[r],r===void 0?e.push(i):r!==i&&(i.then(Xn,Xn),i=r),i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,sp(e),e;default:if(typeof i.status=="string")i.then(Xn,Xn);else{if(e=Xt,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=i,e.status="pending",e.then(function(o){if(i.status==="pending"){var f=i;f.status="fulfilled",f.value=o}},function(o){if(i.status==="pending"){var f=i;f.status="rejected",f.reason=o}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw e=i.reason,sp(e),e}throw fa=i,Ja}}function ca(e){try{var i=e._init;return i(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(fa=r,Ja):r}}var fa=null;function rp(){if(fa===null)throw Error(s(459));var e=fa;return fa=null,e}function sp(e){if(e===Ja||e===ko)throw Error(s(483))}var Ia=null,Ir=0;function Vo(e){var i=Ir;return Ir+=1,Ia===null&&(Ia=[]),ap(Ia,e,i)}function Wr(e,i){i=i.props.ref,e.ref=i!==void 0?i:null}function Bo(e,i){throw i.$$typeof===v?Error(s(525)):(e=Object.prototype.toString.call(i),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":e)))}function op(e){function i(j,N){if(e){var B=j.deletions;B===null?(j.deletions=[N],j.flags|=16):B.push(N)}}function r(j,N){if(!e)return null;for(;N!==null;)i(j,N),N=N.sibling;return null}function o(j){for(var N=new Map;j!==null;)j.key!==null?N.set(j.key,j):N.set(j.index,j),j=j.sibling;return N}function f(j,N){return j=Qn(j,N),j.index=0,j.sibling=null,j}function d(j,N,B){return j.index=B,e?(B=j.alternate,B!==null?(B=B.index,B<N?(j.flags|=67108866,N):B):(j.flags|=67108866,N)):(j.flags|=1048576,N)}function y(j){return e&&j.alternate===null&&(j.flags|=67108866),j}function x(j,N,B,Q){return N===null||N.tag!==6?(N=sc(B,j.mode,Q),N.return=j,N):(N=f(N,B),N.return=j,N)}function D(j,N,B,Q){var mt=B.type;return mt===w?X(j,N,B.props.children,Q,B.key):N!==null&&(N.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===k&&ca(mt)===N.type)?(N=f(N,B.props),Wr(N,B),N.return=j,N):(N=Co(B.type,B.key,B.props,null,j.mode,Q),Wr(N,B),N.return=j,N)}function U(j,N,B,Q){return N===null||N.tag!==4||N.stateNode.containerInfo!==B.containerInfo||N.stateNode.implementation!==B.implementation?(N=oc(B,j.mode,Q),N.return=j,N):(N=f(N,B.children||[]),N.return=j,N)}function X(j,N,B,Q,mt){return N===null||N.tag!==7?(N=ra(B,j.mode,Q,mt),N.return=j,N):(N=f(N,B),N.return=j,N)}function F(j,N,B){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=sc(""+N,j.mode,B),N.return=j,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case S:return B=Co(N.type,N.key,N.props,null,j.mode,B),Wr(B,N),B.return=j,B;case _:return N=oc(N,j.mode,B),N.return=j,N;case k:return N=ca(N),F(j,N,B)}if(nt(N)||St(N))return N=ra(N,j.mode,B,null),N.return=j,N;if(typeof N.then=="function")return F(j,Vo(N),B);if(N.$$typeof===O)return F(j,Oo(j,N),B);Bo(j,N)}return null}function H(j,N,B,Q){var mt=N!==null?N.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return mt!==null?null:x(j,N,""+B,Q);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return B.key===mt?D(j,N,B,Q):null;case _:return B.key===mt?U(j,N,B,Q):null;case k:return B=ca(B),H(j,N,B,Q)}if(nt(B)||St(B))return mt!==null?null:X(j,N,B,Q,null);if(typeof B.then=="function")return H(j,N,Vo(B),Q);if(B.$$typeof===O)return H(j,N,Oo(j,B),Q);Bo(j,B)}return null}function Y(j,N,B,Q,mt){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return j=j.get(B)||null,x(N,j,""+Q,mt);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case S:return j=j.get(Q.key===null?B:Q.key)||null,D(N,j,Q,mt);case _:return j=j.get(Q.key===null?B:Q.key)||null,U(N,j,Q,mt);case k:return Q=ca(Q),Y(j,N,B,Q,mt)}if(nt(Q)||St(Q))return j=j.get(B)||null,X(N,j,Q,mt,null);if(typeof Q.then=="function")return Y(j,N,B,Vo(Q),mt);if(Q.$$typeof===O)return Y(j,N,B,Oo(N,Q),mt);Bo(N,Q)}return null}function ut(j,N,B,Q){for(var mt=null,Rt=null,ht=N,At=N=0,Nt=null;ht!==null&&At<B.length;At++){ht.index>At?(Nt=ht,ht=null):Nt=ht.sibling;var kt=H(j,ht,B[At],Q);if(kt===null){ht===null&&(ht=Nt);break}e&&ht&&kt.alternate===null&&i(j,ht),N=d(kt,N,At),Rt===null?mt=kt:Rt.sibling=kt,Rt=kt,ht=Nt}if(At===B.length)return r(j,ht),Ot&&Pn(j,At),mt;if(ht===null){for(;At<B.length;At++)ht=F(j,B[At],Q),ht!==null&&(N=d(ht,N,At),Rt===null?mt=ht:Rt.sibling=ht,Rt=ht);return Ot&&Pn(j,At),mt}for(ht=o(ht);At<B.length;At++)Nt=Y(ht,j,At,B[At],Q),Nt!==null&&(e&&Nt.alternate!==null&&ht.delete(Nt.key===null?At:Nt.key),N=d(Nt,N,At),Rt===null?mt=Nt:Rt.sibling=Nt,Rt=Nt);return e&&ht.forEach(function(Li){return i(j,Li)}),Ot&&Pn(j,At),mt}function gt(j,N,B,Q){if(B==null)throw Error(s(151));for(var mt=null,Rt=null,ht=N,At=N=0,Nt=null,kt=B.next();ht!==null&&!kt.done;At++,kt=B.next()){ht.index>At?(Nt=ht,ht=null):Nt=ht.sibling;var Li=H(j,ht,kt.value,Q);if(Li===null){ht===null&&(ht=Nt);break}e&&ht&&Li.alternate===null&&i(j,ht),N=d(Li,N,At),Rt===null?mt=Li:Rt.sibling=Li,Rt=Li,ht=Nt}if(kt.done)return r(j,ht),Ot&&Pn(j,At),mt;if(ht===null){for(;!kt.done;At++,kt=B.next())kt=F(j,kt.value,Q),kt!==null&&(N=d(kt,N,At),Rt===null?mt=kt:Rt.sibling=kt,Rt=kt);return Ot&&Pn(j,At),mt}for(ht=o(ht);!kt.done;At++,kt=B.next())kt=Y(ht,j,At,kt.value,Q),kt!==null&&(e&&kt.alternate!==null&&ht.delete(kt.key===null?At:kt.key),N=d(kt,N,At),Rt===null?mt=kt:Rt.sibling=kt,Rt=kt);return e&&ht.forEach(function(Kw){return i(j,Kw)}),Ot&&Pn(j,At),mt}function Yt(j,N,B,Q){if(typeof B=="object"&&B!==null&&B.type===w&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case S:t:{for(var mt=B.key;N!==null;){if(N.key===mt){if(mt=B.type,mt===w){if(N.tag===7){r(j,N.sibling),Q=f(N,B.props.children),Q.return=j,j=Q;break t}}else if(N.elementType===mt||typeof mt=="object"&&mt!==null&&mt.$$typeof===k&&ca(mt)===N.type){r(j,N.sibling),Q=f(N,B.props),Wr(Q,B),Q.return=j,j=Q;break t}r(j,N);break}else i(j,N);N=N.sibling}B.type===w?(Q=ra(B.props.children,j.mode,Q,B.key),Q.return=j,j=Q):(Q=Co(B.type,B.key,B.props,null,j.mode,Q),Wr(Q,B),Q.return=j,j=Q)}return y(j);case _:t:{for(mt=B.key;N!==null;){if(N.key===mt)if(N.tag===4&&N.stateNode.containerInfo===B.containerInfo&&N.stateNode.implementation===B.implementation){r(j,N.sibling),Q=f(N,B.children||[]),Q.return=j,j=Q;break t}else{r(j,N);break}else i(j,N);N=N.sibling}Q=oc(B,j.mode,Q),Q.return=j,j=Q}return y(j);case k:return B=ca(B),Yt(j,N,B,Q)}if(nt(B))return ut(j,N,B,Q);if(St(B)){if(mt=St(B),typeof mt!="function")throw Error(s(150));return B=mt.call(B),gt(j,N,B,Q)}if(typeof B.then=="function")return Yt(j,N,Vo(B),Q);if(B.$$typeof===O)return Yt(j,N,Oo(j,B),Q);Bo(j,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,N!==null&&N.tag===6?(r(j,N.sibling),Q=f(N,B),Q.return=j,j=Q):(r(j,N),Q=sc(B,j.mode,Q),Q.return=j,j=Q),y(j)):r(j,N)}return function(j,N,B,Q){try{Ir=0;var mt=Yt(j,N,B,Q);return Ia=null,mt}catch(ht){if(ht===Ja||ht===ko)throw ht;var Rt=We(29,ht,null,j.mode);return Rt.lanes=Q,Rt.return=j,Rt}}}var da=op(!0),lp=op(!1),_i=!1;function bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(e,i){e=e.updateQueue,i.updateQueue===e&&(i.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function wi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ti(e,i,r){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(jt&2)!==0){var f=o.pending;return f===null?i.next=i:(i.next=f.next,f.next=i),o.pending=i,i=Mo(e),qm(e,null,r),i}return Eo(e,o,i,r),Mo(e)}function ts(e,i,r){if(i=i.updateQueue,i!==null&&(i=i.shared,(r&4194048)!==0)){var o=i.lanes;o&=e.pendingLanes,r|=o,i.lanes=r,Wh(e,r)}}function Sc(e,i){var r=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,r===o)){var f=null,d=null;if(r=r.firstBaseUpdate,r!==null){do{var y={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};d===null?f=d=y:d=d.next=y,r=r.next}while(r!==null);d===null?f=d=i:d=d.next=i}else f=d=i;r={baseState:o.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=i:e.next=i,r.lastBaseUpdate=i}var _c=!1;function es(){if(_c){var e=Fa;if(e!==null)throw e}}function ns(e,i,r,o){_c=!1;var f=e.updateQueue;_i=!1;var d=f.firstBaseUpdate,y=f.lastBaseUpdate,x=f.shared.pending;if(x!==null){f.shared.pending=null;var D=x,U=D.next;D.next=null,y===null?d=U:y.next=U,y=D;var X=e.alternate;X!==null&&(X=X.updateQueue,x=X.lastBaseUpdate,x!==y&&(x===null?X.firstBaseUpdate=U:x.next=U,X.lastBaseUpdate=D))}if(d!==null){var F=f.baseState;y=0,X=U=D=null,x=d;do{var H=x.lane&-536870913,Y=H!==x.lane;if(Y?(Dt&H)===H:(o&H)===H){H!==0&&H===Pa&&(_c=!0),X!==null&&(X=X.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var ut=e,gt=x;H=i;var Yt=r;switch(gt.tag){case 1:if(ut=gt.payload,typeof ut=="function"){F=ut.call(Yt,F,H);break t}F=ut;break t;case 3:ut.flags=ut.flags&-65537|128;case 0:if(ut=gt.payload,H=typeof ut=="function"?ut.call(Yt,F,H):ut,H==null)break t;F=b({},F,H);break t;case 2:_i=!0}}H=x.callback,H!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=f.callbacks,Y===null?f.callbacks=[H]:Y.push(H))}else Y={lane:H,tag:x.tag,payload:x.payload,callback:x.callback,next:null},X===null?(U=X=Y,D=F):X=X.next=Y,y|=H;if(x=x.next,x===null){if(x=f.shared.pending,x===null)break;Y=x,x=Y.next,Y.next=null,f.lastBaseUpdate=Y,f.shared.pending=null}}while(!0);X===null&&(D=F),f.baseState=D,f.firstBaseUpdate=U,f.lastBaseUpdate=X,d===null&&(f.shared.lanes=0),Ci|=y,e.lanes=y,e.memoizedState=F}}function up(e,i){if(typeof e!="function")throw Error(s(191,e));e.call(i)}function cp(e,i){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)up(r[e],i)}var Wa=T(null),Uo=T(0);function fp(e,i){e=si,W(Uo,e),W(Wa,i),si=e|i.baseLanes}function wc(){W(Uo,si),W(Wa,Wa.current)}function Tc(){si=Uo.current,G(Wa),G(Uo)}var tn=T(null),pn=null;function Ai(e){var i=e.alternate;W(re,re.current&1),W(tn,e),pn===null&&(i===null||Wa.current!==null||i.memoizedState!==null)&&(pn=e)}function Ac(e){W(re,re.current),W(tn,e),pn===null&&(pn=e)}function dp(e){e.tag===22?(W(re,re.current),W(tn,e),pn===null&&(pn=e)):zi()}function zi(){W(re,re.current),W(tn,tn.current)}function en(e){G(tn),pn===e&&(pn=null),G(re)}var re=T(0);function Lo(e){for(var i=e;i!==null;){if(i.tag===13){var r=i.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Of(r)||Rf(r)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var In=0,Tt=null,$t=null,ce=null,Zo=!1,tr=!1,ha=!1,Ho=0,is=0,er=null,B_=0;function ee(){throw Error(s(321))}function zc(e,i){if(i===null)return!1;for(var r=0;r<i.length&&r<e.length;r++)if(!Ie(e[r],i[r]))return!1;return!0}function Ec(e,i,r,o,f,d){return In=d,Tt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,E.H=e===null||e.memoizedState===null?Pp:$c,ha=!1,d=r(o,f),ha=!1,tr&&(d=mp(i,r,o,f)),hp(e),d}function hp(e){E.H=ss;var i=$t!==null&&$t.next!==null;if(In=0,ce=$t=Tt=null,Zo=!1,is=0,er=null,i)throw Error(s(300));e===null||fe||(e=e.dependencies,e!==null&&No(e)&&(fe=!0))}function mp(e,i,r,o){Tt=e;var f=0;do{if(tr&&(er=null),is=0,tr=!1,25<=f)throw Error(s(301));if(f+=1,ce=$t=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}E.H=Fp,d=i(r,o)}while(tr);return d}function U_(){var e=E.H,i=e.useState()[0];return i=typeof i.then=="function"?as(i):i,e=e.useState()[0],($t!==null?$t.memoizedState:null)!==e&&(Tt.flags|=1024),i}function Mc(){var e=Ho!==0;return Ho=0,e}function Cc(e,i,r){i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~r}function Dc(e){if(Zo){for(e=e.memoizedState;e!==null;){var i=e.queue;i!==null&&(i.pending=null),e=e.next}Zo=!1}In=0,ce=$t=Tt=null,tr=!1,is=Ho=0,er=null}function Oe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?Tt.memoizedState=ce=e:ce=ce.next=e,ce}function se(){if($t===null){var e=Tt.alternate;e=e!==null?e.memoizedState:null}else e=$t.next;var i=ce===null?Tt.memoizedState:ce.next;if(i!==null)ce=i,$t=e;else{if(e===null)throw Tt.alternate===null?Error(s(467)):Error(s(310));$t=e,e={memoizedState:$t.memoizedState,baseState:$t.baseState,baseQueue:$t.baseQueue,queue:$t.queue,next:null},ce===null?Tt.memoizedState=ce=e:ce=ce.next=e}return ce}function $o(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function as(e){var i=is;return is+=1,er===null&&(er=[]),e=ap(er,e,i),i=Tt,(ce===null?i.memoizedState:ce.next)===null&&(i=i.alternate,E.H=i===null||i.memoizedState===null?Pp:$c),e}function Go(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return as(e);if(e.$$typeof===O)return we(e)}throw Error(s(438,String(e)))}function Nc(e){var i=null,r=Tt.updateQueue;if(r!==null&&(i=r.memoCache),i==null){var o=Tt.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(i={data:o.data.map(function(f){return f.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),r===null&&(r=$o(),Tt.updateQueue=r),r.memoCache=i,r=i.data[i.index],r===void 0)for(r=i.data[i.index]=Array(e),o=0;o<e;o++)r[o]=at;return i.index++,r}function Wn(e,i){return typeof i=="function"?i(e):i}function Yo(e){var i=se();return Oc(i,$t,e)}function Oc(e,i,r){var o=e.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=r;var f=e.baseQueue,d=o.pending;if(d!==null){if(f!==null){var y=f.next;f.next=d.next,d.next=y}i.baseQueue=f=d,o.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{i=f.next;var x=y=null,D=null,U=i,X=!1;do{var F=U.lane&-536870913;if(F!==U.lane?(Dt&F)===F:(In&F)===F){var H=U.revertLane;if(H===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),F===Pa&&(X=!0);else if((In&H)===H){U=U.next,H===Pa&&(X=!0);continue}else F={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(x=D=F,y=d):D=D.next=F,Tt.lanes|=H,Ci|=H;F=U.action,ha&&r(d,F),d=U.hasEagerState?U.eagerState:r(d,F)}else H={lane:F,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},D===null?(x=D=H,y=d):D=D.next=H,Tt.lanes|=F,Ci|=F;U=U.next}while(U!==null&&U!==i);if(D===null?y=d:D.next=x,!Ie(d,e.memoizedState)&&(fe=!0,X&&(r=Fa,r!==null)))throw r;e.memoizedState=d,e.baseState=y,e.baseQueue=D,o.lastRenderedState=d}return f===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Rc(e){var i=se(),r=i.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var o=r.dispatch,f=r.pending,d=i.memoizedState;if(f!==null){r.pending=null;var y=f=f.next;do d=e(d,y.action),y=y.next;while(y!==f);Ie(d,i.memoizedState)||(fe=!0),i.memoizedState=d,i.baseQueue===null&&(i.baseState=d),r.lastRenderedState=d}return[d,o]}function pp(e,i,r){var o=Tt,f=se(),d=Ot;if(d){if(r===void 0)throw Error(s(407));r=r()}else r=i();var y=!Ie(($t||f).memoizedState,r);if(y&&(f.memoizedState=r,fe=!0),f=f.queue,Vc(vp.bind(null,o,f,e),[e]),f.getSnapshot!==i||y||ce!==null&&ce.memoizedState.tag&1){if(o.flags|=2048,nr(9,{destroy:void 0},yp.bind(null,o,f,r,i),null),Xt===null)throw Error(s(349));d||(In&127)!==0||gp(o,i,r)}return r}function gp(e,i,r){e.flags|=16384,e={getSnapshot:i,value:r},i=Tt.updateQueue,i===null?(i=$o(),Tt.updateQueue=i,i.stores=[e]):(r=i.stores,r===null?i.stores=[e]:r.push(e))}function yp(e,i,r,o){i.value=r,i.getSnapshot=o,bp(i)&&xp(e)}function vp(e,i,r){return r(function(){bp(i)&&xp(e)})}function bp(e){var i=e.getSnapshot;e=e.value;try{var r=i();return!Ie(e,r)}catch{return!0}}function xp(e){var i=aa(e,2);i!==null&&Xe(i,e,2)}function kc(e){var i=Oe();if(typeof e=="function"){var r=e;if(e=r(),ha){pi(!0);try{r()}finally{pi(!1)}}}return i.memoizedState=i.baseState=e,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},i}function Sp(e,i,r,o){return e.baseState=r,Oc(e,$t,typeof o=="function"?o:Wn)}function L_(e,i,r,o,f){if(Ko(e))throw Error(s(485));if(e=i.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};E.T!==null?r(!0):d.isTransition=!1,o(d),r=i.pending,r===null?(d.next=i.pending=d,_p(i,d)):(d.next=r.next,i.pending=r.next=d)}}function _p(e,i){var r=i.action,o=i.payload,f=e.state;if(i.isTransition){var d=E.T,y={};E.T=y;try{var x=r(f,o),D=E.S;D!==null&&D(y,x),wp(e,i,x)}catch(U){jc(e,i,U)}finally{d!==null&&y.types!==null&&(d.types=y.types),E.T=d}}else try{d=r(f,o),wp(e,i,d)}catch(U){jc(e,i,U)}}function wp(e,i,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(o){Tp(e,i,o)},function(o){return jc(e,i,o)}):Tp(e,i,r)}function Tp(e,i,r){i.status="fulfilled",i.value=r,Ap(i),e.state=r,i=e.pending,i!==null&&(r=i.next,r===i?e.pending=null:(r=r.next,i.next=r,_p(e,r)))}function jc(e,i,r){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do i.status="rejected",i.reason=r,Ap(i),i=i.next;while(i!==o)}e.action=null}function Ap(e){e=e.listeners;for(var i=0;i<e.length;i++)(0,e[i])()}function zp(e,i){return i}function Ep(e,i){if(Ot){var r=Xt.formState;if(r!==null){t:{var o=Tt;if(Ot){if(Pt){e:{for(var f=Pt,d=mn;f.nodeType!==8;){if(!d){f=null;break e}if(f=gn(f.nextSibling),f===null){f=null;break e}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){Pt=gn(f.nextSibling),o=f.data==="F!";break t}}xi(o)}o=!1}o&&(i=r[0])}}return r=Oe(),r.memoizedState=r.baseState=i,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zp,lastRenderedState:i},r.queue=o,r=Xp.bind(null,Tt,o),o.dispatch=r,o=kc(!1),d=Hc.bind(null,Tt,!1,o.queue),o=Oe(),f={state:i,dispatch:null,action:e,pending:null},o.queue=f,r=L_.bind(null,Tt,f,d,r),f.dispatch=r,o.memoizedState=e,[i,r,!1]}function Mp(e){var i=se();return Cp(i,$t,e)}function Cp(e,i,r){if(i=Oc(e,i,zp)[0],e=Yo(Wn)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var o=as(i)}catch(y){throw y===Ja?ko:y}else o=i;i=se();var f=i.queue,d=f.dispatch;return r!==i.memoizedState&&(Tt.flags|=2048,nr(9,{destroy:void 0},Z_.bind(null,f,r),null)),[o,d,e]}function Z_(e,i){e.action=i}function Dp(e){var i=se(),r=$t;if(r!==null)return Cp(i,r,e);se(),i=i.memoizedState,r=se();var o=r.queue.dispatch;return r.memoizedState=e,[i,o,!1]}function nr(e,i,r,o){return e={tag:e,create:r,deps:o,inst:i,next:null},i=Tt.updateQueue,i===null&&(i=$o(),Tt.updateQueue=i),r=i.lastEffect,r===null?i.lastEffect=e.next=e:(o=r.next,r.next=e,e.next=o,i.lastEffect=e),e}function Np(){return se().memoizedState}function qo(e,i,r,o){var f=Oe();Tt.flags|=e,f.memoizedState=nr(1|i,{destroy:void 0},r,o===void 0?null:o)}function Xo(e,i,r,o){var f=se();o=o===void 0?null:o;var d=f.memoizedState.inst;$t!==null&&o!==null&&zc(o,$t.memoizedState.deps)?f.memoizedState=nr(i,d,r,o):(Tt.flags|=e,f.memoizedState=nr(1|i,d,r,o))}function Op(e,i){qo(8390656,8,e,i)}function Vc(e,i){Xo(2048,8,e,i)}function H_(e){Tt.flags|=4;var i=Tt.updateQueue;if(i===null)i=$o(),Tt.updateQueue=i,i.events=[e];else{var r=i.events;r===null?i.events=[e]:r.push(e)}}function Rp(e){var i=se().memoizedState;return H_({ref:i,nextImpl:e}),function(){if((jt&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}function kp(e,i){return Xo(4,2,e,i)}function jp(e,i){return Xo(4,4,e,i)}function Vp(e,i){if(typeof i=="function"){e=e();var r=i(e);return function(){typeof r=="function"?r():i(null)}}if(i!=null)return e=e(),i.current=e,function(){i.current=null}}function Bp(e,i,r){r=r!=null?r.concat([e]):null,Xo(4,4,Vp.bind(null,i,e),r)}function Bc(){}function Up(e,i){var r=se();i=i===void 0?null:i;var o=r.memoizedState;return i!==null&&zc(i,o[1])?o[0]:(r.memoizedState=[e,i],e)}function Lp(e,i){var r=se();i=i===void 0?null:i;var o=r.memoizedState;if(i!==null&&zc(i,o[1]))return o[0];if(o=e(),ha){pi(!0);try{e()}finally{pi(!1)}}return r.memoizedState=[o,i],o}function Uc(e,i,r){return r===void 0||(In&1073741824)!==0&&(Dt&261930)===0?e.memoizedState=i:(e.memoizedState=r,e=Zg(),Tt.lanes|=e,Ci|=e,r)}function Zp(e,i,r,o){return Ie(r,i)?r:Wa.current!==null?(e=Uc(e,r,o),Ie(e,i)||(fe=!0),e):(In&42)===0||(In&1073741824)!==0&&(Dt&261930)===0?(fe=!0,e.memoizedState=r):(e=Zg(),Tt.lanes|=e,Ci|=e,i)}function Hp(e,i,r,o,f){var d=$.p;$.p=d!==0&&8>d?d:8;var y=E.T,x={};E.T=x,Hc(e,!1,i,r);try{var D=f(),U=E.S;if(U!==null&&U(x,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var X=V_(D,o);rs(e,i,X,rn(e))}else rs(e,i,o,rn(e))}catch(F){rs(e,i,{then:function(){},status:"rejected",reason:F},rn())}finally{$.p=d,y!==null&&x.types!==null&&(y.types=x.types),E.T=y}}function $_(){}function Lc(e,i,r,o){if(e.tag!==5)throw Error(s(476));var f=$p(e).queue;Hp(e,f,i,K,r===null?$_:function(){return Gp(e),r(o)})}function $p(e){var i=e.memoizedState;if(i!==null)return i;i={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:K},next:null};var r={};return i.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:r},next:null},e.memoizedState=i,e=e.alternate,e!==null&&(e.memoizedState=i),i}function Gp(e){var i=$p(e);i.next===null&&(i=e.alternate.memoizedState),rs(e,i.next.queue,{},rn())}function Zc(){return we(_s)}function Yp(){return se().memoizedState}function qp(){return se().memoizedState}function G_(e){for(var i=e.return;i!==null;){switch(i.tag){case 24:case 3:var r=rn();e=wi(r);var o=Ti(i,e,r);o!==null&&(Xe(o,i,r),ts(o,i,r)),i={cache:pc()},e.payload=i;return}i=i.return}}function Y_(e,i,r){var o=rn();r={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ko(e)?Kp(i,r):(r=ac(e,i,r,o),r!==null&&(Xe(r,e,o),Qp(r,i,o)))}function Xp(e,i,r){var o=rn();rs(e,i,r,o)}function rs(e,i,r,o){var f={lane:o,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ko(e))Kp(i,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=i.lastRenderedReducer,d!==null))try{var y=i.lastRenderedState,x=d(y,r);if(f.hasEagerState=!0,f.eagerState=x,Ie(x,y))return Eo(e,i,f,0),Xt===null&&zo(),!1}catch{}if(r=ac(e,i,f,o),r!==null)return Xe(r,e,o),Qp(r,i,o),!0}return!1}function Hc(e,i,r,o){if(o={lane:2,revertLane:xf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ko(e)){if(i)throw Error(s(479))}else i=ac(e,r,o,2),i!==null&&Xe(i,e,2)}function Ko(e){var i=e.alternate;return e===Tt||i!==null&&i===Tt}function Kp(e,i){tr=Zo=!0;var r=e.pending;r===null?i.next=i:(i.next=r.next,r.next=i),e.pending=i}function Qp(e,i,r){if((r&4194048)!==0){var o=i.lanes;o&=e.pendingLanes,r|=o,i.lanes=r,Wh(e,r)}}var ss={readContext:we,use:Go,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useLayoutEffect:ee,useInsertionEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useSyncExternalStore:ee,useId:ee,useHostTransitionStatus:ee,useFormState:ee,useActionState:ee,useOptimistic:ee,useMemoCache:ee,useCacheRefresh:ee};ss.useEffectEvent=ee;var Pp={readContext:we,use:Go,useCallback:function(e,i){return Oe().memoizedState=[e,i===void 0?null:i],e},useContext:we,useEffect:Op,useImperativeHandle:function(e,i,r){r=r!=null?r.concat([e]):null,qo(4194308,4,Vp.bind(null,i,e),r)},useLayoutEffect:function(e,i){return qo(4194308,4,e,i)},useInsertionEffect:function(e,i){qo(4,2,e,i)},useMemo:function(e,i){var r=Oe();i=i===void 0?null:i;var o=e();if(ha){pi(!0);try{e()}finally{pi(!1)}}return r.memoizedState=[o,i],o},useReducer:function(e,i,r){var o=Oe();if(r!==void 0){var f=r(i);if(ha){pi(!0);try{r(i)}finally{pi(!1)}}}else f=i;return o.memoizedState=o.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},o.queue=e,e=e.dispatch=Y_.bind(null,Tt,e),[o.memoizedState,e]},useRef:function(e){var i=Oe();return e={current:e},i.memoizedState=e},useState:function(e){e=kc(e);var i=e.queue,r=Xp.bind(null,Tt,i);return i.dispatch=r,[e.memoizedState,r]},useDebugValue:Bc,useDeferredValue:function(e,i){var r=Oe();return Uc(r,e,i)},useTransition:function(){var e=kc(!1);return e=Hp.bind(null,Tt,e.queue,!0,!1),Oe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,i,r){var o=Tt,f=Oe();if(Ot){if(r===void 0)throw Error(s(407));r=r()}else{if(r=i(),Xt===null)throw Error(s(349));(Dt&127)!==0||gp(o,i,r)}f.memoizedState=r;var d={value:r,getSnapshot:i};return f.queue=d,Op(vp.bind(null,o,d,e),[e]),o.flags|=2048,nr(9,{destroy:void 0},yp.bind(null,o,d,r,i),null),r},useId:function(){var e=Oe(),i=Xt.identifierPrefix;if(Ot){var r=Vn,o=jn;r=(o&~(1<<32-Je(o)-1)).toString(32)+r,i="_"+i+"R_"+r,r=Ho++,0<r&&(i+="H"+r.toString(32)),i+="_"}else r=B_++,i="_"+i+"r_"+r.toString(32)+"_";return e.memoizedState=i},useHostTransitionStatus:Zc,useFormState:Ep,useActionState:Ep,useOptimistic:function(e){var i=Oe();i.memoizedState=i.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=r,i=Hc.bind(null,Tt,!0,r),r.dispatch=i,[e,i]},useMemoCache:Nc,useCacheRefresh:function(){return Oe().memoizedState=G_.bind(null,Tt)},useEffectEvent:function(e){var i=Oe(),r={impl:e};return i.memoizedState=r,function(){if((jt&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}},$c={readContext:we,use:Go,useCallback:Up,useContext:we,useEffect:Vc,useImperativeHandle:Bp,useInsertionEffect:kp,useLayoutEffect:jp,useMemo:Lp,useReducer:Yo,useRef:Np,useState:function(){return Yo(Wn)},useDebugValue:Bc,useDeferredValue:function(e,i){var r=se();return Zp(r,$t.memoizedState,e,i)},useTransition:function(){var e=Yo(Wn)[0],i=se().memoizedState;return[typeof e=="boolean"?e:as(e),i]},useSyncExternalStore:pp,useId:Yp,useHostTransitionStatus:Zc,useFormState:Mp,useActionState:Mp,useOptimistic:function(e,i){var r=se();return Sp(r,$t,e,i)},useMemoCache:Nc,useCacheRefresh:qp};$c.useEffectEvent=Rp;var Fp={readContext:we,use:Go,useCallback:Up,useContext:we,useEffect:Vc,useImperativeHandle:Bp,useInsertionEffect:kp,useLayoutEffect:jp,useMemo:Lp,useReducer:Rc,useRef:Np,useState:function(){return Rc(Wn)},useDebugValue:Bc,useDeferredValue:function(e,i){var r=se();return $t===null?Uc(r,e,i):Zp(r,$t.memoizedState,e,i)},useTransition:function(){var e=Rc(Wn)[0],i=se().memoizedState;return[typeof e=="boolean"?e:as(e),i]},useSyncExternalStore:pp,useId:Yp,useHostTransitionStatus:Zc,useFormState:Dp,useActionState:Dp,useOptimistic:function(e,i){var r=se();return $t!==null?Sp(r,$t,e,i):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Nc,useCacheRefresh:qp};Fp.useEffectEvent=Rp;function Gc(e,i,r,o){i=e.memoizedState,r=r(o,i),r=r==null?i:b({},i,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Yc={enqueueSetState:function(e,i,r){e=e._reactInternals;var o=rn(),f=wi(o);f.payload=i,r!=null&&(f.callback=r),i=Ti(e,f,o),i!==null&&(Xe(i,e,o),ts(i,e,o))},enqueueReplaceState:function(e,i,r){e=e._reactInternals;var o=rn(),f=wi(o);f.tag=1,f.payload=i,r!=null&&(f.callback=r),i=Ti(e,f,o),i!==null&&(Xe(i,e,o),ts(i,e,o))},enqueueForceUpdate:function(e,i){e=e._reactInternals;var r=rn(),o=wi(r);o.tag=2,i!=null&&(o.callback=i),i=Ti(e,o,r),i!==null&&(Xe(i,e,r),ts(i,e,r))}};function Jp(e,i,r,o,f,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,y):i.prototype&&i.prototype.isPureReactComponent?!Xr(r,o)||!Xr(f,d):!0}function Ip(e,i,r,o){e=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(r,o),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(r,o),i.state!==e&&Yc.enqueueReplaceState(i,i.state,null)}function ma(e,i){var r=i;if("ref"in i){r={};for(var o in i)o!=="ref"&&(r[o]=i[o])}if(e=e.defaultProps){r===i&&(r=b({},r));for(var f in e)r[f]===void 0&&(r[f]=e[f])}return r}function Wp(e){Ao(e)}function tg(e){console.error(e)}function eg(e){Ao(e)}function Qo(e,i){try{var r=e.onUncaughtError;r(i.value,{componentStack:i.stack})}catch(o){setTimeout(function(){throw o})}}function ng(e,i,r){try{var o=e.onCaughtError;o(r.value,{componentStack:r.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function qc(e,i,r){return r=wi(r),r.tag=3,r.payload={element:null},r.callback=function(){Qo(e,i)},r}function ig(e){return e=wi(e),e.tag=3,e}function ag(e,i,r,o){var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var d=o.value;e.payload=function(){return f(d)},e.callback=function(){ng(i,r,o)}}var y=r.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){ng(i,r,o),typeof f!="function"&&(Di===null?Di=new Set([this]):Di.add(this));var x=o.stack;this.componentDidCatch(o.value,{componentStack:x!==null?x:""})})}function q_(e,i,r,o,f){if(r.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(i=r.alternate,i!==null&&Qa(i,r,f,!0),r=tn.current,r!==null){switch(r.tag){case 31:case 13:return pn===null?sl():r.alternate===null&&ne===0&&(ne=3),r.flags&=-257,r.flags|=65536,r.lanes=f,o===jo?r.flags|=16384:(i=r.updateQueue,i===null?r.updateQueue=new Set([o]):i.add(o),yf(e,o,f)),!1;case 22:return r.flags|=65536,o===jo?r.flags|=16384:(i=r.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([o])},r.updateQueue=i):(r=i.retryQueue,r===null?i.retryQueue=new Set([o]):r.add(o)),yf(e,o,f)),!1}throw Error(s(435,r.tag))}return yf(e,o,f),sl(),!1}if(Ot)return i=tn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=f,o!==cc&&(e=Error(s(422),{cause:o}),Pr(fn(e,r)))):(o!==cc&&(i=Error(s(423),{cause:o}),Pr(fn(i,r))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,o=fn(o,r),f=qc(e.stateNode,o,f),Sc(e,f),ne!==4&&(ne=2)),!1;var d=Error(s(520),{cause:o});if(d=fn(d,r),ms===null?ms=[d]:ms.push(d),ne!==4&&(ne=2),i===null)return!0;o=fn(o,r),r=i;do{switch(r.tag){case 3:return r.flags|=65536,e=f&-f,r.lanes|=e,e=qc(r.stateNode,o,e),Sc(r,e),!1;case 1:if(i=r.type,d=r.stateNode,(r.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Di===null||!Di.has(d))))return r.flags|=65536,f&=-f,r.lanes|=f,f=ig(f),ag(f,e,r,o),Sc(r,f),!1}r=r.return}while(r!==null);return!1}var Xc=Error(s(461)),fe=!1;function Te(e,i,r,o){i.child=e===null?lp(i,null,r,o):da(i,e.child,r,o)}function rg(e,i,r,o,f){r=r.render;var d=i.ref;if("ref"in o){var y={};for(var x in o)x!=="ref"&&(y[x]=o[x])}else y=o;return la(i),o=Ec(e,i,r,y,d,f),x=Mc(),e!==null&&!fe?(Cc(e,i,f),ti(e,i,f)):(Ot&&x&&lc(i),i.flags|=1,Te(e,i,o,f),i.child)}function sg(e,i,r,o,f){if(e===null){var d=r.type;return typeof d=="function"&&!rc(d)&&d.defaultProps===void 0&&r.compare===null?(i.tag=15,i.type=d,og(e,i,d,o,f)):(e=Co(r.type,null,o,i,i.mode,f),e.ref=i.ref,e.return=i,i.child=e)}if(d=e.child,!tf(e,f)){var y=d.memoizedProps;if(r=r.compare,r=r!==null?r:Xr,r(y,o)&&e.ref===i.ref)return ti(e,i,f)}return i.flags|=1,e=Qn(d,o),e.ref=i.ref,e.return=i,i.child=e}function og(e,i,r,o,f){if(e!==null){var d=e.memoizedProps;if(Xr(d,o)&&e.ref===i.ref)if(fe=!1,i.pendingProps=o=d,tf(e,f))(e.flags&131072)!==0&&(fe=!0);else return i.lanes=e.lanes,ti(e,i,f)}return Kc(e,i,r,o,f)}function lg(e,i,r,o){var f=o.children,d=e!==null?e.memoizedState:null;if(e===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((i.flags&128)!==0){if(d=d!==null?d.baseLanes|r:r,e!==null){for(o=i.child=e.child,f=0;o!==null;)f=f|o.lanes|o.childLanes,o=o.sibling;o=f&~d}else o=0,i.child=null;return ug(e,i,d,r,o)}if((r&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ro(i,d!==null?d.cachePool:null),d!==null?fp(i,d):wc(),dp(i);else return o=i.lanes=536870912,ug(e,i,d!==null?d.baseLanes|r:r,r,o)}else d!==null?(Ro(i,d.cachePool),fp(i,d),zi(),i.memoizedState=null):(e!==null&&Ro(i,null),wc(),zi());return Te(e,i,f,r),i.child}function os(e,i){return e!==null&&e.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function ug(e,i,r,o,f){var d=yc();return d=d===null?null:{parent:ue._currentValue,pool:d},i.memoizedState={baseLanes:r,cachePool:d},e!==null&&Ro(i,null),wc(),dp(i),e!==null&&Qa(e,i,o,!0),i.childLanes=f,null}function Po(e,i){return i=Jo({mode:i.mode,children:i.children},e.mode),i.ref=e.ref,e.child=i,i.return=e,i}function cg(e,i,r){return da(i,e.child,null,r),e=Po(i,i.pendingProps),e.flags|=2,en(i),i.memoizedState=null,e}function X_(e,i,r){var o=i.pendingProps,f=(i.flags&128)!==0;if(i.flags&=-129,e===null){if(Ot){if(o.mode==="hidden")return e=Po(i,o),i.lanes=536870912,os(null,e);if(Ac(i),(e=Pt)?(e=_y(e,mn),e=e!==null&&e.data==="&"?e:null,e!==null&&(i.memoizedState={dehydrated:e,treeContext:vi!==null?{id:jn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},r=Km(e),r.return=i,i.child=r,_e=i,Pt=null)):e=null,e===null)throw xi(i);return i.lanes=536870912,null}return Po(i,o)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Ac(i),f)if(i.flags&256)i.flags&=-257,i=cg(e,i,r);else if(i.memoizedState!==null)i.child=e.child,i.flags|=128,i=null;else throw Error(s(558));else if(fe||Qa(e,i,r,!1),f=(r&e.childLanes)!==0,fe||f){if(o=Xt,o!==null&&(y=tm(o,r),y!==0&&y!==d.retryLane))throw d.retryLane=y,aa(e,y),Xe(o,e,y),Xc;sl(),i=cg(e,i,r)}else e=d.treeContext,Pt=gn(y.nextSibling),_e=i,Ot=!0,bi=null,mn=!1,e!==null&&Fm(i,e),i=Po(i,o),i.flags|=4096;return i}return e=Qn(e.child,{mode:o.mode,children:o.children}),e.ref=i.ref,i.child=e,e.return=i,e}function Fo(e,i){var r=i.ref;if(r===null)e!==null&&e.ref!==null&&(i.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(i.flags|=4194816)}}function Kc(e,i,r,o,f){return la(i),r=Ec(e,i,r,o,void 0,f),o=Mc(),e!==null&&!fe?(Cc(e,i,f),ti(e,i,f)):(Ot&&o&&lc(i),i.flags|=1,Te(e,i,r,f),i.child)}function fg(e,i,r,o,f,d){return la(i),i.updateQueue=null,r=mp(i,o,r,f),hp(e),o=Mc(),e!==null&&!fe?(Cc(e,i,d),ti(e,i,d)):(Ot&&o&&lc(i),i.flags|=1,Te(e,i,r,d),i.child)}function dg(e,i,r,o,f){if(la(i),i.stateNode===null){var d=Ya,y=r.contextType;typeof y=="object"&&y!==null&&(d=we(y)),d=new r(o,d),i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Yc,i.stateNode=d,d._reactInternals=i,d=i.stateNode,d.props=o,d.state=i.memoizedState,d.refs={},bc(i),y=r.contextType,d.context=typeof y=="object"&&y!==null?we(y):Ya,d.state=i.memoizedState,y=r.getDerivedStateFromProps,typeof y=="function"&&(Gc(i,r,y,o),d.state=i.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&Yc.enqueueReplaceState(d,d.state,null),ns(i,o,d,f),es(),d.state=i.memoizedState),typeof d.componentDidMount=="function"&&(i.flags|=4194308),o=!0}else if(e===null){d=i.stateNode;var x=i.memoizedProps,D=ma(r,x);d.props=D;var U=d.context,X=r.contextType;y=Ya,typeof X=="object"&&X!==null&&(y=we(X));var F=r.getDerivedStateFromProps;X=typeof F=="function"||typeof d.getSnapshotBeforeUpdate=="function",x=i.pendingProps!==x,X||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x||U!==y)&&Ip(i,d,o,y),_i=!1;var H=i.memoizedState;d.state=H,ns(i,o,d,f),es(),U=i.memoizedState,x||H!==U||_i?(typeof F=="function"&&(Gc(i,r,F,o),U=i.memoizedState),(D=_i||Jp(i,r,D,o,H,U,y))?(X||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(i.flags|=4194308)):(typeof d.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=o,i.memoizedState=U),d.props=o,d.state=U,d.context=y,o=D):(typeof d.componentDidMount=="function"&&(i.flags|=4194308),o=!1)}else{d=i.stateNode,xc(e,i),y=i.memoizedProps,X=ma(r,y),d.props=X,F=i.pendingProps,H=d.context,U=r.contextType,D=Ya,typeof U=="object"&&U!==null&&(D=we(U)),x=r.getDerivedStateFromProps,(U=typeof x=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==F||H!==D)&&Ip(i,d,o,D),_i=!1,H=i.memoizedState,d.state=H,ns(i,o,d,f),es();var Y=i.memoizedState;y!==F||H!==Y||_i||e!==null&&e.dependencies!==null&&No(e.dependencies)?(typeof x=="function"&&(Gc(i,r,x,o),Y=i.memoizedState),(X=_i||Jp(i,r,X,o,H,Y,D)||e!==null&&e.dependencies!==null&&No(e.dependencies))?(U||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,Y,D),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,Y,D)),typeof d.componentDidUpdate=="function"&&(i.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(i.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(i.flags|=1024),i.memoizedProps=o,i.memoizedState=Y),d.props=o,d.state=Y,d.context=D,o=X):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(i.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&H===e.memoizedState||(i.flags|=1024),o=!1)}return d=o,Fo(e,i),o=(i.flags&128)!==0,d||o?(d=i.stateNode,r=o&&typeof r.getDerivedStateFromError!="function"?null:d.render(),i.flags|=1,e!==null&&o?(i.child=da(i,e.child,null,f),i.child=da(i,null,r,f)):Te(e,i,r,f),i.memoizedState=d.state,e=i.child):e=ti(e,i,f),e}function hg(e,i,r,o){return sa(),i.flags|=256,Te(e,i,r,o),i.child}var Qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pc(e){return{baseLanes:e,cachePool:np()}}function Fc(e,i,r){return e=e!==null?e.childLanes&~r:0,i&&(e|=an),e}function mg(e,i,r){var o=i.pendingProps,f=!1,d=(i.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(re.current&2)!==0),y&&(f=!0,i.flags&=-129),y=(i.flags&32)!==0,i.flags&=-33,e===null){if(Ot){if(f?Ai(i):zi(),(e=Pt)?(e=_y(e,mn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(i.memoizedState={dehydrated:e,treeContext:vi!==null?{id:jn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},r=Km(e),r.return=i,i.child=r,_e=i,Pt=null)):e=null,e===null)throw xi(i);return Rf(e)?i.lanes=32:i.lanes=536870912,null}var x=o.children;return o=o.fallback,f?(zi(),f=i.mode,x=Jo({mode:"hidden",children:x},f),o=ra(o,f,r,null),x.return=i,o.return=i,x.sibling=o,i.child=x,o=i.child,o.memoizedState=Pc(r),o.childLanes=Fc(e,y,r),i.memoizedState=Qc,os(null,o)):(Ai(i),Jc(i,x))}var D=e.memoizedState;if(D!==null&&(x=D.dehydrated,x!==null)){if(d)i.flags&256?(Ai(i),i.flags&=-257,i=Ic(e,i,r)):i.memoizedState!==null?(zi(),i.child=e.child,i.flags|=128,i=null):(zi(),x=o.fallback,f=i.mode,o=Jo({mode:"visible",children:o.children},f),x=ra(x,f,r,null),x.flags|=2,o.return=i,x.return=i,o.sibling=x,i.child=o,da(i,e.child,null,r),o=i.child,o.memoizedState=Pc(r),o.childLanes=Fc(e,y,r),i.memoizedState=Qc,i=os(null,o));else if(Ai(i),Rf(x)){if(y=x.nextSibling&&x.nextSibling.dataset,y)var U=y.dgst;y=U,o=Error(s(419)),o.stack="",o.digest=y,Pr({value:o,source:null,stack:null}),i=Ic(e,i,r)}else if(fe||Qa(e,i,r,!1),y=(r&e.childLanes)!==0,fe||y){if(y=Xt,y!==null&&(o=tm(y,r),o!==0&&o!==D.retryLane))throw D.retryLane=o,aa(e,o),Xe(y,e,o),Xc;Of(x)||sl(),i=Ic(e,i,r)}else Of(x)?(i.flags|=192,i.child=e.child,i=null):(e=D.treeContext,Pt=gn(x.nextSibling),_e=i,Ot=!0,bi=null,mn=!1,e!==null&&Fm(i,e),i=Jc(i,o.children),i.flags|=4096);return i}return f?(zi(),x=o.fallback,f=i.mode,D=e.child,U=D.sibling,o=Qn(D,{mode:"hidden",children:o.children}),o.subtreeFlags=D.subtreeFlags&65011712,U!==null?x=Qn(U,x):(x=ra(x,f,r,null),x.flags|=2),x.return=i,o.return=i,o.sibling=x,i.child=o,os(null,o),o=i.child,x=e.child.memoizedState,x===null?x=Pc(r):(f=x.cachePool,f!==null?(D=ue._currentValue,f=f.parent!==D?{parent:D,pool:D}:f):f=np(),x={baseLanes:x.baseLanes|r,cachePool:f}),o.memoizedState=x,o.childLanes=Fc(e,y,r),i.memoizedState=Qc,os(e.child,o)):(Ai(i),r=e.child,e=r.sibling,r=Qn(r,{mode:"visible",children:o.children}),r.return=i,r.sibling=null,e!==null&&(y=i.deletions,y===null?(i.deletions=[e],i.flags|=16):y.push(e)),i.child=r,i.memoizedState=null,r)}function Jc(e,i){return i=Jo({mode:"visible",children:i},e.mode),i.return=e,e.child=i}function Jo(e,i){return e=We(22,e,null,i),e.lanes=0,e}function Ic(e,i,r){return da(i,e.child,null,r),e=Jc(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function pg(e,i,r){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i),hc(e.return,i,r)}function Wc(e,i,r,o,f,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:o,tail:r,tailMode:f,treeForkCount:d}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=o,y.tail=r,y.tailMode=f,y.treeForkCount=d)}function gg(e,i,r){var o=i.pendingProps,f=o.revealOrder,d=o.tail;o=o.children;var y=re.current,x=(y&2)!==0;if(x?(y=y&1|2,i.flags|=128):y&=1,W(re,y),Te(e,i,o,r),o=Ot?Qr:0,!x&&e!==null&&(e.flags&128)!==0)t:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&pg(e,r,i);else if(e.tag===19)pg(e,r,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break t;for(;e.sibling===null;){if(e.return===null||e.return===i)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(r=i.child,f=null;r!==null;)e=r.alternate,e!==null&&Lo(e)===null&&(f=r),r=r.sibling;r=f,r===null?(f=i.child,i.child=null):(f=r.sibling,r.sibling=null),Wc(i,!1,f,r,d,o);break;case"backwards":case"unstable_legacy-backwards":for(r=null,f=i.child,i.child=null;f!==null;){if(e=f.alternate,e!==null&&Lo(e)===null){i.child=f;break}e=f.sibling,f.sibling=r,r=f,f=e}Wc(i,!0,r,null,d,o);break;case"together":Wc(i,!1,null,null,void 0,o);break;default:i.memoizedState=null}return i.child}function ti(e,i,r){if(e!==null&&(i.dependencies=e.dependencies),Ci|=i.lanes,(r&i.childLanes)===0)if(e!==null){if(Qa(e,i,r,!1),(r&i.childLanes)===0)return null}else return null;if(e!==null&&i.child!==e.child)throw Error(s(153));if(i.child!==null){for(e=i.child,r=Qn(e,e.pendingProps),i.child=r,r.return=i;e.sibling!==null;)e=e.sibling,r=r.sibling=Qn(e,e.pendingProps),r.return=i;r.sibling=null}return i.child}function tf(e,i){return(e.lanes&i)!==0?!0:(e=e.dependencies,!!(e!==null&&No(e)))}function K_(e,i,r){switch(i.tag){case 3:Vt(i,i.stateNode.containerInfo),Si(i,ue,e.memoizedState.cache),sa();break;case 27:case 5:Rn(i);break;case 4:Vt(i,i.stateNode.containerInfo);break;case 10:Si(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Ac(i),null;break;case 13:var o=i.memoizedState;if(o!==null)return o.dehydrated!==null?(Ai(i),i.flags|=128,null):(r&i.child.childLanes)!==0?mg(e,i,r):(Ai(i),e=ti(e,i,r),e!==null?e.sibling:null);Ai(i);break;case 19:var f=(e.flags&128)!==0;if(o=(r&i.childLanes)!==0,o||(Qa(e,i,r,!1),o=(r&i.childLanes)!==0),f){if(o)return gg(e,i,r);i.flags|=128}if(f=i.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),W(re,re.current),o)break;return null;case 22:return i.lanes=0,lg(e,i,r,i.pendingProps);case 24:Si(i,ue,e.memoizedState.cache)}return ti(e,i,r)}function yg(e,i,r){if(e!==null)if(e.memoizedProps!==i.pendingProps)fe=!0;else{if(!tf(e,r)&&(i.flags&128)===0)return fe=!1,K_(e,i,r);fe=(e.flags&131072)!==0}else fe=!1,Ot&&(i.flags&1048576)!==0&&Pm(i,Qr,i.index);switch(i.lanes=0,i.tag){case 16:t:{var o=i.pendingProps;if(e=ca(i.elementType),i.type=e,typeof e=="function")rc(e)?(o=ma(e,o),i.tag=1,i=dg(null,i,e,o,r)):(i.tag=0,i=Kc(null,i,e,o,r));else{if(e!=null){var f=e.$$typeof;if(f===C){i.tag=11,i=rg(null,i,e,o,r);break t}else if(f===V){i.tag=14,i=sg(null,i,e,o,r);break t}}throw i=Z(e)||e,Error(s(306,i,""))}}return i;case 0:return Kc(e,i,i.type,i.pendingProps,r);case 1:return o=i.type,f=ma(o,i.pendingProps),dg(e,i,o,f,r);case 3:t:{if(Vt(i,i.stateNode.containerInfo),e===null)throw Error(s(387));o=i.pendingProps;var d=i.memoizedState;f=d.element,xc(e,i),ns(i,o,null,r);var y=i.memoizedState;if(o=y.cache,Si(i,ue,o),o!==d.cache&&mc(i,[ue],r,!0),es(),o=y.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:y.cache},i.updateQueue.baseState=d,i.memoizedState=d,i.flags&256){i=hg(e,i,o,r);break t}else if(o!==f){f=fn(Error(s(424)),i),Pr(f),i=hg(e,i,o,r);break t}else for(e=i.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Pt=gn(e.firstChild),_e=i,Ot=!0,bi=null,mn=!0,r=lp(i,null,o,r),i.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(sa(),o===f){i=ti(e,i,r);break t}Te(e,i,o,r)}i=i.child}return i;case 26:return Fo(e,i),e===null?(r=My(i.type,null,i.pendingProps,null))?i.memoizedState=r:Ot||(r=i.type,e=i.pendingProps,o=hl(lt.current).createElement(r),o[Se]=i,o[Ze]=e,Ae(o,r,e),ve(o),i.stateNode=o):i.memoizedState=My(i.type,e.memoizedProps,i.pendingProps,e.memoizedState),null;case 27:return Rn(i),e===null&&Ot&&(o=i.stateNode=Ay(i.type,i.pendingProps,lt.current),_e=i,mn=!0,f=Pt,ki(i.type)?(kf=f,Pt=gn(o.firstChild)):Pt=f),Te(e,i,i.pendingProps.children,r),Fo(e,i),e===null&&(i.flags|=4194304),i.child;case 5:return e===null&&Ot&&((f=o=Pt)&&(o=ww(o,i.type,i.pendingProps,mn),o!==null?(i.stateNode=o,_e=i,Pt=gn(o.firstChild),mn=!1,f=!0):f=!1),f||xi(i)),Rn(i),f=i.type,d=i.pendingProps,y=e!==null?e.memoizedProps:null,o=d.children,Cf(f,d)?o=null:y!==null&&Cf(f,y)&&(i.flags|=32),i.memoizedState!==null&&(f=Ec(e,i,U_,null,null,r),_s._currentValue=f),Fo(e,i),Te(e,i,o,r),i.child;case 6:return e===null&&Ot&&((e=r=Pt)&&(r=Tw(r,i.pendingProps,mn),r!==null?(i.stateNode=r,_e=i,Pt=null,e=!0):e=!1),e||xi(i)),null;case 13:return mg(e,i,r);case 4:return Vt(i,i.stateNode.containerInfo),o=i.pendingProps,e===null?i.child=da(i,null,o,r):Te(e,i,o,r),i.child;case 11:return rg(e,i,i.type,i.pendingProps,r);case 7:return Te(e,i,i.pendingProps,r),i.child;case 8:return Te(e,i,i.pendingProps.children,r),i.child;case 12:return Te(e,i,i.pendingProps.children,r),i.child;case 10:return o=i.pendingProps,Si(i,i.type,o.value),Te(e,i,o.children,r),i.child;case 9:return f=i.type._context,o=i.pendingProps.children,la(i),f=we(f),o=o(f),i.flags|=1,Te(e,i,o,r),i.child;case 14:return sg(e,i,i.type,i.pendingProps,r);case 15:return og(e,i,i.type,i.pendingProps,r);case 19:return gg(e,i,r);case 31:return X_(e,i,r);case 22:return lg(e,i,r,i.pendingProps);case 24:return la(i),o=we(ue),e===null?(f=yc(),f===null&&(f=Xt,d=pc(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=r),f=d),i.memoizedState={parent:o,cache:f},bc(i),Si(i,ue,f)):((e.lanes&r)!==0&&(xc(e,i),ns(i,null,null,r),es()),f=e.memoizedState,d=i.memoizedState,f.parent!==o?(f={parent:o,cache:o},i.memoizedState=f,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=f),Si(i,ue,o)):(o=d.cache,Si(i,ue,o),o!==f.cache&&mc(i,[ue],r,!0))),Te(e,i,i.pendingProps.children,r),i.child;case 29:throw i.pendingProps}throw Error(s(156,i.tag))}function ei(e){e.flags|=4}function ef(e,i,r,o,f){if((i=(e.mode&32)!==0)&&(i=!1),i){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(Yg())e.flags|=8192;else throw fa=jo,vc}else e.flags&=-16777217}function vg(e,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ry(i))if(Yg())e.flags|=8192;else throw fa=jo,vc}function Io(e,i){i!==null&&(e.flags|=4),e.flags&16384&&(i=e.tag!==22?Jh():536870912,e.lanes|=i,sr|=i)}function ls(e,i){if(!Ot)switch(e.tailMode){case"hidden":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ft(e){var i=e.alternate!==null&&e.alternate.child===e.child,r=0,o=0;if(i)for(var f=e.child;f!==null;)r|=f.lanes|f.childLanes,o|=f.subtreeFlags&65011712,o|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)r|=f.lanes|f.childLanes,o|=f.subtreeFlags,o|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=o,e.childLanes=r,i}function Q_(e,i,r){var o=i.pendingProps;switch(uc(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ft(i),null;case 1:return Ft(i),null;case 3:return r=i.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),Jn(ue),xt(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ka(i)?ei(i):e===null||e.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,fc())),Ft(i),null;case 26:var f=i.type,d=i.memoizedState;return e===null?(ei(i),d!==null?(Ft(i),vg(i,d)):(Ft(i),ef(i,f,null,o,r))):d?d!==e.memoizedState?(ei(i),Ft(i),vg(i,d)):(Ft(i),i.flags&=-16777217):(e=e.memoizedProps,e!==o&&ei(i),Ft(i),ef(i,f,e,o,r)),null;case 27:if(Sn(i),r=lt.current,f=i.type,e!==null&&i.stateNode!=null)e.memoizedProps!==o&&ei(i);else{if(!o){if(i.stateNode===null)throw Error(s(166));return Ft(i),null}e=it.current,Ka(i)?Jm(i):(e=Ay(f,o,r),i.stateNode=e,ei(i))}return Ft(i),null;case 5:if(Sn(i),f=i.type,e!==null&&i.stateNode!=null)e.memoizedProps!==o&&ei(i);else{if(!o){if(i.stateNode===null)throw Error(s(166));return Ft(i),null}if(d=it.current,Ka(i))Jm(i);else{var y=hl(lt.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof o.is=="string"?y.createElement("select",{is:o.is}):y.createElement("select"),o.multiple?d.multiple=!0:o.size&&(d.size=o.size);break;default:d=typeof o.is=="string"?y.createElement(f,{is:o.is}):y.createElement(f)}}d[Se]=i,d[Ze]=o;t:for(y=i.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===i)break t;for(;y.sibling===null;){if(y.return===null||y.return===i)break t;y=y.return}y.sibling.return=y.return,y=y.sibling}i.stateNode=d;t:switch(Ae(d,f,o),f){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break t;case"img":o=!0;break t;default:o=!1}o&&ei(i)}}return Ft(i),ef(i,i.type,e===null?null:e.memoizedProps,i.pendingProps,r),null;case 6:if(e&&i.stateNode!=null)e.memoizedProps!==o&&ei(i);else{if(typeof o!="string"&&i.stateNode===null)throw Error(s(166));if(e=lt.current,Ka(i)){if(e=i.stateNode,r=i.memoizedProps,o=null,f=_e,f!==null)switch(f.tag){case 27:case 5:o=f.memoizedProps}e[Se]=i,e=!!(e.nodeValue===r||o!==null&&o.suppressHydrationWarning===!0||my(e.nodeValue,r)),e||xi(i,!0)}else e=hl(e).createTextNode(o),e[Se]=i,i.stateNode=e}return Ft(i),null;case 31:if(r=i.memoizedState,e===null||e.memoizedState!==null){if(o=Ka(i),r!==null){if(e===null){if(!o)throw Error(s(318));if(e=i.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Se]=i}else sa(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ft(i),e=!1}else r=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return i.flags&256?(en(i),i):(en(i),null);if((i.flags&128)!==0)throw Error(s(558))}return Ft(i),null;case 13:if(o=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Ka(i),o!==null&&o.dehydrated!==null){if(e===null){if(!f)throw Error(s(318));if(f=i.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(s(317));f[Se]=i}else sa(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ft(i),f=!1}else f=fc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return i.flags&256?(en(i),i):(en(i),null)}return en(i),(i.flags&128)!==0?(i.lanes=r,i):(r=o!==null,e=e!==null&&e.memoizedState!==null,r&&(o=i.child,f=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(f=o.alternate.memoizedState.cachePool.pool),d=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==f&&(o.flags|=2048)),r!==e&&r&&(i.child.flags|=8192),Io(i,i.updateQueue),Ft(i),null);case 4:return xt(),e===null&&Tf(i.stateNode.containerInfo),Ft(i),null;case 10:return Jn(i.type),Ft(i),null;case 19:if(G(re),o=i.memoizedState,o===null)return Ft(i),null;if(f=(i.flags&128)!==0,d=o.rendering,d===null)if(f)ls(o,!1);else{if(ne!==0||e!==null&&(e.flags&128)!==0)for(e=i.child;e!==null;){if(d=Lo(e),d!==null){for(i.flags|=128,ls(o,!1),e=d.updateQueue,i.updateQueue=e,Io(i,e),i.subtreeFlags=0,e=r,r=i.child;r!==null;)Xm(r,e),r=r.sibling;return W(re,re.current&1|2),Ot&&Pn(i,o.treeForkCount),i.child}e=e.sibling}o.tail!==null&&xe()>il&&(i.flags|=128,f=!0,ls(o,!1),i.lanes=4194304)}else{if(!f)if(e=Lo(d),e!==null){if(i.flags|=128,f=!0,e=e.updateQueue,i.updateQueue=e,Io(i,e),ls(o,!0),o.tail===null&&o.tailMode==="hidden"&&!d.alternate&&!Ot)return Ft(i),null}else 2*xe()-o.renderingStartTime>il&&r!==536870912&&(i.flags|=128,f=!0,ls(o,!1),i.lanes=4194304);o.isBackwards?(d.sibling=i.child,i.child=d):(e=o.last,e!==null?e.sibling=d:i.child=d,o.last=d)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=xe(),e.sibling=null,r=re.current,W(re,f?r&1|2:r&1),Ot&&Pn(i,o.treeForkCount),e):(Ft(i),null);case 22:case 23:return en(i),Tc(),o=i.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(i.flags|=8192):o&&(i.flags|=8192),o?(r&536870912)!==0&&(i.flags&128)===0&&(Ft(i),i.subtreeFlags&6&&(i.flags|=8192)):Ft(i),r=i.updateQueue,r!==null&&Io(i,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==r&&(i.flags|=2048),e!==null&&G(ua),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),i.memoizedState.cache!==r&&(i.flags|=2048),Jn(ue),Ft(i),null;case 25:return null;case 30:return null}throw Error(s(156,i.tag))}function P_(e,i){switch(uc(i),i.tag){case 1:return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return Jn(ue),xt(),e=i.flags,(e&65536)!==0&&(e&128)===0?(i.flags=e&-65537|128,i):null;case 26:case 27:case 5:return Sn(i),null;case 31:if(i.memoizedState!==null){if(en(i),i.alternate===null)throw Error(s(340));sa()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 13:if(en(i),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(s(340));sa()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return G(re),null;case 4:return xt(),null;case 10:return Jn(i.type),null;case 22:case 23:return en(i),Tc(),e!==null&&G(ua),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 24:return Jn(ue),null;case 25:return null;default:return null}}function bg(e,i){switch(uc(i),i.tag){case 3:Jn(ue),xt();break;case 26:case 27:case 5:Sn(i);break;case 4:xt();break;case 31:i.memoizedState!==null&&en(i);break;case 13:en(i);break;case 19:G(re);break;case 10:Jn(i.type);break;case 22:case 23:en(i),Tc(),e!==null&&G(ua);break;case 24:Jn(ue)}}function us(e,i){try{var r=i.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var f=o.next;r=f;do{if((r.tag&e)===e){o=void 0;var d=r.create,y=r.inst;o=d(),y.destroy=o}r=r.next}while(r!==f)}}catch(x){Ut(i,i.return,x)}}function Ei(e,i,r){try{var o=i.updateQueue,f=o!==null?o.lastEffect:null;if(f!==null){var d=f.next;o=d;do{if((o.tag&e)===e){var y=o.inst,x=y.destroy;if(x!==void 0){y.destroy=void 0,f=i;var D=r,U=x;try{U()}catch(X){Ut(f,D,X)}}}o=o.next}while(o!==d)}}catch(X){Ut(i,i.return,X)}}function xg(e){var i=e.updateQueue;if(i!==null){var r=e.stateNode;try{cp(i,r)}catch(o){Ut(e,e.return,o)}}}function Sg(e,i,r){r.props=ma(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(o){Ut(e,i,o)}}function cs(e,i){try{var r=e.ref;if(r!==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}typeof r=="function"?e.refCleanup=r(o):r.current=o}}catch(f){Ut(e,i,f)}}function Bn(e,i){var r=e.ref,o=e.refCleanup;if(r!==null)if(typeof o=="function")try{o()}catch(f){Ut(e,i,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(f){Ut(e,i,f)}else r.current=null}function _g(e){var i=e.type,r=e.memoizedProps,o=e.stateNode;try{t:switch(i){case"button":case"input":case"select":case"textarea":r.autoFocus&&o.focus();break t;case"img":r.src?o.src=r.src:r.srcSet&&(o.srcset=r.srcSet)}}catch(f){Ut(e,e.return,f)}}function nf(e,i,r){try{var o=e.stateNode;yw(o,e.type,r,i),o[Ze]=i}catch(f){Ut(e,e.return,f)}}function wg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ki(e.type)||e.tag===4}function af(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||wg(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&&ki(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 rf(e,i,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,i?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,i):(i=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,i.appendChild(e),r=r._reactRootContainer,r!=null||i.onclick!==null||(i.onclick=Xn));else if(o!==4&&(o===27&&ki(e.type)&&(r=e.stateNode,i=null),e=e.child,e!==null))for(rf(e,i,r),e=e.sibling;e!==null;)rf(e,i,r),e=e.sibling}function Wo(e,i,r){var o=e.tag;if(o===5||o===6)e=e.stateNode,i?r.insertBefore(e,i):r.appendChild(e);else if(o!==4&&(o===27&&ki(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Wo(e,i,r),e=e.sibling;e!==null;)Wo(e,i,r),e=e.sibling}function Tg(e){var i=e.stateNode,r=e.memoizedProps;try{for(var o=e.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);Ae(i,o,r),i[Se]=e,i[Ze]=r}catch(d){Ut(e,e.return,d)}}var ni=!1,de=!1,sf=!1,Ag=typeof WeakSet=="function"?WeakSet:Set,be=null;function F_(e,i){if(e=e.containerInfo,Ef=xl,e=Bm(e),Iu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else t:{r=(r=e.ownerDocument)&&r.defaultView||window;var o=r.getSelection&&r.getSelection();if(o&&o.rangeCount!==0){r=o.anchorNode;var f=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{r.nodeType,d.nodeType}catch{r=null;break t}var y=0,x=-1,D=-1,U=0,X=0,F=e,H=null;e:for(;;){for(var Y;F!==r||f!==0&&F.nodeType!==3||(x=y+f),F!==d||o!==0&&F.nodeType!==3||(D=y+o),F.nodeType===3&&(y+=F.nodeValue.length),(Y=F.firstChild)!==null;)H=F,F=Y;for(;;){if(F===e)break e;if(H===r&&++U===f&&(x=y),H===d&&++X===o&&(D=y),(Y=F.nextSibling)!==null)break;F=H,H=F.parentNode}F=Y}r=x===-1||D===-1?null:{start:x,end:D}}else r=null}r=r||{start:0,end:0}}else r=null;for(Mf={focusedElem:e,selectionRange:r},xl=!1,be=i;be!==null;)if(i=be,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,be=e;else for(;be!==null;){switch(i=be,d=i.alternate,e=i.flags,i.tag){case 0:if((e&4)!==0&&(e=i.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)f=e[r],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,r=i,f=d.memoizedProps,d=d.memoizedState,o=r.stateNode;try{var ut=ma(r.type,f);e=o.getSnapshotBeforeUpdate(ut,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(gt){Ut(r,r.return,gt)}}break;case 3:if((e&1024)!==0){if(e=i.stateNode.containerInfo,r=e.nodeType,r===9)Nf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Nf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=i.sibling,e!==null){e.return=i.return,be=e;break}be=i.return}}function zg(e,i,r){var o=r.flags;switch(r.tag){case 0:case 11:case 15:ai(e,r),o&4&&us(5,r);break;case 1:if(ai(e,r),o&4)if(e=r.stateNode,i===null)try{e.componentDidMount()}catch(y){Ut(r,r.return,y)}else{var f=ma(r.type,i.memoizedProps);i=i.memoizedState;try{e.componentDidUpdate(f,i,e.__reactInternalSnapshotBeforeUpdate)}catch(y){Ut(r,r.return,y)}}o&64&&xg(r),o&512&&cs(r,r.return);break;case 3:if(ai(e,r),o&64&&(e=r.updateQueue,e!==null)){if(i=null,r.child!==null)switch(r.child.tag){case 27:case 5:i=r.child.stateNode;break;case 1:i=r.child.stateNode}try{cp(e,i)}catch(y){Ut(r,r.return,y)}}break;case 27:i===null&&o&4&&Tg(r);case 26:case 5:ai(e,r),i===null&&o&4&&_g(r),o&512&&cs(r,r.return);break;case 12:ai(e,r);break;case 31:ai(e,r),o&4&&Cg(e,r);break;case 13:ai(e,r),o&4&&Dg(e,r),o&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=rw.bind(null,r),Aw(e,r))));break;case 22:if(o=r.memoizedState!==null||ni,!o){i=i!==null&&i.memoizedState!==null||de,f=ni;var d=de;ni=o,(de=i)&&!d?ri(e,r,(r.subtreeFlags&8772)!==0):ai(e,r),ni=f,de=d}break;case 30:break;default:ai(e,r)}}function Eg(e){var i=e.alternate;i!==null&&(e.alternate=null,Eg(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&ju(i)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Jt=null,$e=!1;function ii(e,i,r){for(r=r.child;r!==null;)Mg(e,i,r),r=r.sibling}function Mg(e,i,r){if(Fe&&typeof Fe.onCommitFiberUnmount=="function")try{Fe.onCommitFiberUnmount(kr,r)}catch{}switch(r.tag){case 26:de||Bn(r,i),ii(e,i,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:de||Bn(r,i);var o=Jt,f=$e;ki(r.type)&&(Jt=r.stateNode,$e=!1),ii(e,i,r),bs(r.stateNode),Jt=o,$e=f;break;case 5:de||Bn(r,i);case 6:if(o=Jt,f=$e,Jt=null,ii(e,i,r),Jt=o,$e=f,Jt!==null)if($e)try{(Jt.nodeType===9?Jt.body:Jt.nodeName==="HTML"?Jt.ownerDocument.body:Jt).removeChild(r.stateNode)}catch(d){Ut(r,i,d)}else try{Jt.removeChild(r.stateNode)}catch(d){Ut(r,i,d)}break;case 18:Jt!==null&&($e?(e=Jt,xy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),mr(e)):xy(Jt,r.stateNode));break;case 4:o=Jt,f=$e,Jt=r.stateNode.containerInfo,$e=!0,ii(e,i,r),Jt=o,$e=f;break;case 0:case 11:case 14:case 15:Ei(2,r,i),de||Ei(4,r,i),ii(e,i,r);break;case 1:de||(Bn(r,i),o=r.stateNode,typeof o.componentWillUnmount=="function"&&Sg(r,i,o)),ii(e,i,r);break;case 21:ii(e,i,r);break;case 22:de=(o=de)||r.memoizedState!==null,ii(e,i,r),de=o;break;default:ii(e,i,r)}}function Cg(e,i){if(i.memoizedState===null&&(e=i.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{mr(e)}catch(r){Ut(i,i.return,r)}}}function Dg(e,i){if(i.memoizedState===null&&(e=i.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{mr(e)}catch(r){Ut(i,i.return,r)}}function J_(e){switch(e.tag){case 31:case 13:case 19:var i=e.stateNode;return i===null&&(i=e.stateNode=new Ag),i;case 22:return e=e.stateNode,i=e._retryCache,i===null&&(i=e._retryCache=new Ag),i;default:throw Error(s(435,e.tag))}}function tl(e,i){var r=J_(e);i.forEach(function(o){if(!r.has(o)){r.add(o);var f=sw.bind(null,e,o);o.then(f,f)}})}function Ge(e,i){var r=i.deletions;if(r!==null)for(var o=0;o<r.length;o++){var f=r[o],d=e,y=i,x=y;t:for(;x!==null;){switch(x.tag){case 27:if(ki(x.type)){Jt=x.stateNode,$e=!1;break t}break;case 5:Jt=x.stateNode,$e=!1;break t;case 3:case 4:Jt=x.stateNode.containerInfo,$e=!0;break t}x=x.return}if(Jt===null)throw Error(s(160));Mg(d,y,f),Jt=null,$e=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Ng(i,e),i=i.sibling}var Tn=null;function Ng(e,i){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ge(i,e),Ye(e),o&4&&(Ei(3,e,e.return),us(3,e),Ei(5,e,e.return));break;case 1:Ge(i,e),Ye(e),o&512&&(de||r===null||Bn(r,r.return)),o&64&&ni&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?o:r.concat(o))));break;case 26:var f=Tn;if(Ge(i,e),Ye(e),o&512&&(de||r===null||Bn(r,r.return)),o&4){var d=r!==null?r.memoizedState:null;if(o=e.memoizedState,r===null)if(o===null)if(e.stateNode===null){t:{o=e.type,r=e.memoizedProps,f=f.ownerDocument||f;e:switch(o){case"title":d=f.getElementsByTagName("title")[0],(!d||d[Br]||d[Se]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(o),f.head.insertBefore(d,f.querySelector("head > title"))),Ae(d,o,r),d[Se]=e,ve(d),o=d;break t;case"link":var y=Ny("link","href",f).get(o+(r.href||""));if(y){for(var x=0;x<y.length;x++)if(d=y[x],d.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&d.getAttribute("rel")===(r.rel==null?null:r.rel)&&d.getAttribute("title")===(r.title==null?null:r.title)&&d.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){y.splice(x,1);break e}}d=f.createElement(o),Ae(d,o,r),f.head.appendChild(d);break;case"meta":if(y=Ny("meta","content",f).get(o+(r.content||""))){for(x=0;x<y.length;x++)if(d=y[x],d.getAttribute("content")===(r.content==null?null:""+r.content)&&d.getAttribute("name")===(r.name==null?null:r.name)&&d.getAttribute("property")===(r.property==null?null:r.property)&&d.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&d.getAttribute("charset")===(r.charSet==null?null:r.charSet)){y.splice(x,1);break e}}d=f.createElement(o),Ae(d,o,r),f.head.appendChild(d);break;default:throw Error(s(468,o))}d[Se]=e,ve(d),o=d}e.stateNode=o}else Oy(f,e.type,e.stateNode);else e.stateNode=Dy(f,o,e.memoizedProps);else d!==o?(d===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):d.count--,o===null?Oy(f,e.type,e.stateNode):Dy(f,o,e.memoizedProps)):o===null&&e.stateNode!==null&&nf(e,e.memoizedProps,r.memoizedProps)}break;case 27:Ge(i,e),Ye(e),o&512&&(de||r===null||Bn(r,r.return)),r!==null&&o&4&&nf(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Ge(i,e),Ye(e),o&512&&(de||r===null||Bn(r,r.return)),e.flags&32){f=e.stateNode;try{Ba(f,"")}catch(ut){Ut(e,e.return,ut)}}o&4&&e.stateNode!=null&&(f=e.memoizedProps,nf(e,f,r!==null?r.memoizedProps:f)),o&1024&&(sf=!0);break;case 6:if(Ge(i,e),Ye(e),o&4){if(e.stateNode===null)throw Error(s(162));o=e.memoizedProps,r=e.stateNode;try{r.nodeValue=o}catch(ut){Ut(e,e.return,ut)}}break;case 3:if(gl=null,f=Tn,Tn=ml(i.containerInfo),Ge(i,e),Tn=f,Ye(e),o&4&&r!==null&&r.memoizedState.isDehydrated)try{mr(i.containerInfo)}catch(ut){Ut(e,e.return,ut)}sf&&(sf=!1,Og(e));break;case 4:o=Tn,Tn=ml(e.stateNode.containerInfo),Ge(i,e),Ye(e),Tn=o;break;case 12:Ge(i,e),Ye(e);break;case 31:Ge(i,e),Ye(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,tl(e,o)));break;case 13:Ge(i,e),Ye(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(nl=xe()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,tl(e,o)));break;case 22:f=e.memoizedState!==null;var D=r!==null&&r.memoizedState!==null,U=ni,X=de;if(ni=U||f,de=X||D,Ge(i,e),de=X,ni=U,Ye(e),o&8192)t:for(i=e.stateNode,i._visibility=f?i._visibility&-2:i._visibility|1,f&&(r===null||D||ni||de||pa(e)),r=null,i=e;;){if(i.tag===5||i.tag===26){if(r===null){D=r=i;try{if(d=D.stateNode,f)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{x=D.stateNode;var F=D.memoizedProps.style,H=F!=null&&F.hasOwnProperty("display")?F.display:null;x.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(ut){Ut(D,D.return,ut)}}}else if(i.tag===6){if(r===null){D=i;try{D.stateNode.nodeValue=f?"":D.memoizedProps}catch(ut){Ut(D,D.return,ut)}}}else if(i.tag===18){if(r===null){D=i;try{var Y=D.stateNode;f?Sy(Y,!0):Sy(D.stateNode,!1)}catch(ut){Ut(D,D.return,ut)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===e)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break t;for(;i.sibling===null;){if(i.return===null||i.return===e)break t;r===i&&(r=null),i=i.return}r===i&&(r=null),i.sibling.return=i.return,i=i.sibling}o&4&&(o=e.updateQueue,o!==null&&(r=o.retryQueue,r!==null&&(o.retryQueue=null,tl(e,r))));break;case 19:Ge(i,e),Ye(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,tl(e,o)));break;case 30:break;case 21:break;default:Ge(i,e),Ye(e)}}function Ye(e){var i=e.flags;if(i&2){try{for(var r,o=e.return;o!==null;){if(wg(o)){r=o;break}o=o.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var f=r.stateNode,d=af(e);Wo(e,d,f);break;case 5:var y=r.stateNode;r.flags&32&&(Ba(y,""),r.flags&=-33);var x=af(e);Wo(e,x,y);break;case 3:case 4:var D=r.stateNode.containerInfo,U=af(e);rf(e,U,D);break;default:throw Error(s(161))}}catch(X){Ut(e,e.return,X)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function Og(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var i=e;Og(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),e=e.sibling}}function ai(e,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)zg(e,i.alternate,i),i=i.sibling}function pa(e){for(e=e.child;e!==null;){var i=e;switch(i.tag){case 0:case 11:case 14:case 15:Ei(4,i,i.return),pa(i);break;case 1:Bn(i,i.return);var r=i.stateNode;typeof r.componentWillUnmount=="function"&&Sg(i,i.return,r),pa(i);break;case 27:bs(i.stateNode);case 26:case 5:Bn(i,i.return),pa(i);break;case 22:i.memoizedState===null&&pa(i);break;case 30:pa(i);break;default:pa(i)}e=e.sibling}}function ri(e,i,r){for(r=r&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var o=i.alternate,f=e,d=i,y=d.flags;switch(d.tag){case 0:case 11:case 15:ri(f,d,r),us(4,d);break;case 1:if(ri(f,d,r),o=d,f=o.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(U){Ut(o,o.return,U)}if(o=d,f=o.updateQueue,f!==null){var x=o.stateNode;try{var D=f.shared.hiddenCallbacks;if(D!==null)for(f.shared.hiddenCallbacks=null,f=0;f<D.length;f++)up(D[f],x)}catch(U){Ut(o,o.return,U)}}r&&y&64&&xg(d),cs(d,d.return);break;case 27:Tg(d);case 26:case 5:ri(f,d,r),r&&o===null&&y&4&&_g(d),cs(d,d.return);break;case 12:ri(f,d,r);break;case 31:ri(f,d,r),r&&y&4&&Cg(f,d);break;case 13:ri(f,d,r),r&&y&4&&Dg(f,d);break;case 22:d.memoizedState===null&&ri(f,d,r),cs(d,d.return);break;case 30:break;default:ri(f,d,r)}i=i.sibling}}function of(e,i){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(e=i.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Fr(r))}function lf(e,i){e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&Fr(e))}function An(e,i,r,o){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Rg(e,i,r,o),i=i.sibling}function Rg(e,i,r,o){var f=i.flags;switch(i.tag){case 0:case 11:case 15:An(e,i,r,o),f&2048&&us(9,i);break;case 1:An(e,i,r,o);break;case 3:An(e,i,r,o),f&2048&&(e=null,i.alternate!==null&&(e=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==e&&(i.refCount++,e!=null&&Fr(e)));break;case 12:if(f&2048){An(e,i,r,o),e=i.stateNode;try{var d=i.memoizedProps,y=d.id,x=d.onPostCommit;typeof x=="function"&&x(y,i.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(D){Ut(i,i.return,D)}}else An(e,i,r,o);break;case 31:An(e,i,r,o);break;case 13:An(e,i,r,o);break;case 23:break;case 22:d=i.stateNode,y=i.alternate,i.memoizedState!==null?d._visibility&2?An(e,i,r,o):fs(e,i):d._visibility&2?An(e,i,r,o):(d._visibility|=2,ir(e,i,r,o,(i.subtreeFlags&10256)!==0||!1)),f&2048&&of(y,i);break;case 24:An(e,i,r,o),f&2048&&lf(i.alternate,i);break;default:An(e,i,r,o)}}function ir(e,i,r,o,f){for(f=f&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var d=e,y=i,x=r,D=o,U=y.flags;switch(y.tag){case 0:case 11:case 15:ir(d,y,x,D,f),us(8,y);break;case 23:break;case 22:var X=y.stateNode;y.memoizedState!==null?X._visibility&2?ir(d,y,x,D,f):fs(d,y):(X._visibility|=2,ir(d,y,x,D,f)),f&&U&2048&&of(y.alternate,y);break;case 24:ir(d,y,x,D,f),f&&U&2048&&lf(y.alternate,y);break;default:ir(d,y,x,D,f)}i=i.sibling}}function fs(e,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var r=e,o=i,f=o.flags;switch(o.tag){case 22:fs(r,o),f&2048&&of(o.alternate,o);break;case 24:fs(r,o),f&2048&&lf(o.alternate,o);break;default:fs(r,o)}i=i.sibling}}var ds=8192;function ar(e,i,r){if(e.subtreeFlags&ds)for(e=e.child;e!==null;)kg(e,i,r),e=e.sibling}function kg(e,i,r){switch(e.tag){case 26:ar(e,i,r),e.flags&ds&&e.memoizedState!==null&&Bw(r,Tn,e.memoizedState,e.memoizedProps);break;case 5:ar(e,i,r);break;case 3:case 4:var o=Tn;Tn=ml(e.stateNode.containerInfo),ar(e,i,r),Tn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=ds,ds=16777216,ar(e,i,r),ds=o):ar(e,i,r));break;default:ar(e,i,r)}}function jg(e){var i=e.alternate;if(i!==null&&(e=i.child,e!==null)){i.child=null;do i=e.sibling,e.sibling=null,e=i;while(e!==null)}}function hs(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var r=0;r<i.length;r++){var o=i[r];be=o,Bg(o,e)}jg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vg(e),e=e.sibling}function Vg(e){switch(e.tag){case 0:case 11:case 15:hs(e),e.flags&2048&&Ei(9,e,e.return);break;case 3:hs(e);break;case 12:hs(e);break;case 22:var i=e.stateNode;e.memoizedState!==null&&i._visibility&2&&(e.return===null||e.return.tag!==13)?(i._visibility&=-3,el(e)):hs(e);break;default:hs(e)}}function el(e){var i=e.deletions;if((e.flags&16)!==0){if(i!==null)for(var r=0;r<i.length;r++){var o=i[r];be=o,Bg(o,e)}jg(e)}for(e=e.child;e!==null;){switch(i=e,i.tag){case 0:case 11:case 15:Ei(8,i,i.return),el(i);break;case 22:r=i.stateNode,r._visibility&2&&(r._visibility&=-3,el(i));break;default:el(i)}e=e.sibling}}function Bg(e,i){for(;be!==null;){var r=be;switch(r.tag){case 0:case 11:case 15:Ei(8,r,i);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var o=r.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Fr(r.memoizedState.cache)}if(o=r.child,o!==null)o.return=r,be=o;else t:for(r=e;be!==null;){o=be;var f=o.sibling,d=o.return;if(Eg(o),o===r){be=null;break t}if(f!==null){f.return=d,be=f;break t}be=d}}}var I_={getCacheForType:function(e){var i=we(ue),r=i.data.get(e);return r===void 0&&(r=e(),i.data.set(e,r)),r},cacheSignal:function(){return we(ue).controller.signal}},W_=typeof WeakMap=="function"?WeakMap:Map,jt=0,Xt=null,Mt=null,Dt=0,Bt=0,nn=null,Mi=!1,rr=!1,uf=!1,si=0,ne=0,Ci=0,ga=0,cf=0,an=0,sr=0,ms=null,qe=null,ff=!1,nl=0,Ug=0,il=1/0,al=null,Di=null,me=0,Ni=null,or=null,oi=0,df=0,hf=null,Lg=null,ps=0,mf=null;function rn(){return(jt&2)!==0&&Dt!==0?Dt&-Dt:E.T!==null?xf():em()}function Zg(){if(an===0)if((Dt&536870912)===0||Ot){var e=fo;fo<<=1,(fo&3932160)===0&&(fo=262144),an=e}else an=536870912;return e=tn.current,e!==null&&(e.flags|=32),an}function Xe(e,i,r){(e===Xt&&(Bt===2||Bt===9)||e.cancelPendingCommit!==null)&&(lr(e,0),Oi(e,Dt,an,!1)),Vr(e,r),((jt&2)===0||e!==Xt)&&(e===Xt&&((jt&2)===0&&(ga|=r),ne===4&&Oi(e,Dt,an,!1)),Un(e))}function Hg(e,i,r){if((jt&6)!==0)throw Error(s(327));var o=!r&&(i&127)===0&&(i&e.expiredLanes)===0||jr(e,i),f=o?nw(e,i):gf(e,i,!0),d=o;do{if(f===0){rr&&!o&&Oi(e,i,0,!1);break}else{if(r=e.current.alternate,d&&!tw(r)){f=gf(e,i,!1),d=!1;continue}if(f===2){if(d=i,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){i=y;t:{var x=e;f=ms;var D=x.current.memoizedState.isDehydrated;if(D&&(lr(x,y).flags|=256),y=gf(x,y,!1),y!==2){if(uf&&!D){x.errorRecoveryDisabledLanes|=d,ga|=d,f=4;break t}d=qe,qe=f,d!==null&&(qe===null?qe=d:qe.push.apply(qe,d))}f=y}if(d=!1,f!==2)continue}}if(f===1){lr(e,0),Oi(e,i,0,!0);break}t:{switch(o=e,d=f,d){case 0:case 1:throw Error(s(345));case 4:if((i&4194048)!==i)break;case 6:Oi(o,i,an,!Mi);break t;case 2:qe=null;break;case 3:case 5:break;default:throw Error(s(329))}if((i&62914560)===i&&(f=nl+300-xe(),10<f)){if(Oi(o,i,an,!Mi),mo(o,0,!0)!==0)break t;oi=i,o.timeoutHandle=vy($g.bind(null,o,r,qe,al,ff,i,an,ga,sr,Mi,d,"Throttled",-0,0),f);break t}$g(o,r,qe,al,ff,i,an,ga,sr,Mi,d,null,-0,0)}}break}while(!0);Un(e)}function $g(e,i,r,o,f,d,y,x,D,U,X,F,H,Y){if(e.timeoutHandle=-1,F=i.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xn},kg(i,d,F);var ut=(d&62914560)===d?nl-xe():(d&4194048)===d?Ug-xe():0;if(ut=Uw(F,ut),ut!==null){oi=d,e.cancelPendingCommit=ut(Fg.bind(null,e,i,d,r,o,f,y,x,D,X,F,null,H,Y)),Oi(e,d,y,!U);return}}Fg(e,i,d,r,o,f,y,x,D)}function tw(e){for(var i=e;;){var r=i.tag;if((r===0||r===11||r===15)&&i.flags&16384&&(r=i.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var o=0;o<r.length;o++){var f=r[o],d=f.getSnapshot;f=f.value;try{if(!Ie(d(),f))return!1}catch{return!1}}if(r=i.child,i.subtreeFlags&16384&&r!==null)r.return=i,i=r;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Oi(e,i,r,o){i&=~cf,i&=~ga,e.suspendedLanes|=i,e.pingedLanes&=~i,o&&(e.warmLanes|=i),o=e.expirationTimes;for(var f=i;0<f;){var d=31-Je(f),y=1<<d;o[d]=-1,f&=~y}r!==0&&Ih(e,r,i)}function rl(){return(jt&6)===0?(gs(0),!1):!0}function pf(){if(Mt!==null){if(Bt===0)var e=Mt.return;else e=Mt,Fn=oa=null,Dc(e),Ia=null,Ir=0,e=Mt;for(;e!==null;)bg(e.alternate,e),e=e.return;Mt=null}}function lr(e,i){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,xw(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),oi=0,pf(),Xt=e,Mt=r=Qn(e.current,null),Dt=i,Bt=0,nn=null,Mi=!1,rr=jr(e,i),uf=!1,sr=an=cf=ga=Ci=ne=0,qe=ms=null,ff=!1,(i&8)!==0&&(i|=i&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=i;0<o;){var f=31-Je(o),d=1<<f;i|=e[f],o&=~d}return si=i,zo(),r}function Gg(e,i){Tt=null,E.H=ss,i===Ja||i===ko?(i=rp(),Bt=3):i===vc?(i=rp(),Bt=4):Bt=i===Xc?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,nn=i,Mt===null&&(ne=1,Qo(e,fn(i,e.current)))}function Yg(){var e=tn.current;return e===null?!0:(Dt&4194048)===Dt?pn===null:(Dt&62914560)===Dt||(Dt&536870912)!==0?e===pn:!1}function qg(){var e=E.H;return E.H=ss,e===null?ss:e}function Xg(){var e=E.A;return E.A=I_,e}function sl(){ne=4,Mi||(Dt&4194048)!==Dt&&tn.current!==null||(rr=!0),(Ci&134217727)===0&&(ga&134217727)===0||Xt===null||Oi(Xt,Dt,an,!1)}function gf(e,i,r){var o=jt;jt|=2;var f=qg(),d=Xg();(Xt!==e||Dt!==i)&&(al=null,lr(e,i)),i=!1;var y=ne;t:do try{if(Bt!==0&&Mt!==null){var x=Mt,D=nn;switch(Bt){case 8:pf(),y=6;break t;case 3:case 2:case 9:case 6:tn.current===null&&(i=!0);var U=Bt;if(Bt=0,nn=null,ur(e,x,D,U),r&&rr){y=0;break t}break;default:U=Bt,Bt=0,nn=null,ur(e,x,D,U)}}ew(),y=ne;break}catch(X){Gg(e,X)}while(!0);return i&&e.shellSuspendCounter++,Fn=oa=null,jt=o,E.H=f,E.A=d,Mt===null&&(Xt=null,Dt=0,zo()),y}function ew(){for(;Mt!==null;)Kg(Mt)}function nw(e,i){var r=jt;jt|=2;var o=qg(),f=Xg();Xt!==e||Dt!==i?(al=null,il=xe()+500,lr(e,i)):rr=jr(e,i);t:do try{if(Bt!==0&&Mt!==null){i=Mt;var d=nn;e:switch(Bt){case 1:Bt=0,nn=null,ur(e,i,d,1);break;case 2:case 9:if(ip(d)){Bt=0,nn=null,Qg(i);break}i=function(){Bt!==2&&Bt!==9||Xt!==e||(Bt=7),Un(e)},d.then(i,i);break t;case 3:Bt=7;break t;case 4:Bt=5;break t;case 7:ip(d)?(Bt=0,nn=null,Qg(i)):(Bt=0,nn=null,ur(e,i,d,7));break;case 5:var y=null;switch(Mt.tag){case 26:y=Mt.memoizedState;case 5:case 27:var x=Mt;if(y?Ry(y):x.stateNode.complete){Bt=0,nn=null;var D=x.sibling;if(D!==null)Mt=D;else{var U=x.return;U!==null?(Mt=U,ol(U)):Mt=null}break e}}Bt=0,nn=null,ur(e,i,d,5);break;case 6:Bt=0,nn=null,ur(e,i,d,6);break;case 8:pf(),ne=6;break t;default:throw Error(s(462))}}iw();break}catch(X){Gg(e,X)}while(!0);return Fn=oa=null,E.H=o,E.A=f,jt=r,Mt!==null?0:(Xt=null,Dt=0,zo(),ne)}function iw(){for(;Mt!==null&&!_n();)Kg(Mt)}function Kg(e){var i=yg(e.alternate,e,si);e.memoizedProps=e.pendingProps,i===null?ol(e):Mt=i}function Qg(e){var i=e,r=i.alternate;switch(i.tag){case 15:case 0:i=fg(r,i,i.pendingProps,i.type,void 0,Dt);break;case 11:i=fg(r,i,i.pendingProps,i.type.render,i.ref,Dt);break;case 5:Dc(i);default:bg(r,i),i=Mt=Xm(i,si),i=yg(r,i,si)}e.memoizedProps=e.pendingProps,i===null?ol(e):Mt=i}function ur(e,i,r,o){Fn=oa=null,Dc(i),Ia=null,Ir=0;var f=i.return;try{if(q_(e,f,i,r,Dt)){ne=1,Qo(e,fn(r,e.current)),Mt=null;return}}catch(d){if(f!==null)throw Mt=f,d;ne=1,Qo(e,fn(r,e.current)),Mt=null;return}i.flags&32768?(Ot||o===1?e=!0:rr||(Dt&536870912)!==0?e=!1:(Mi=e=!0,(o===2||o===9||o===3||o===6)&&(o=tn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Pg(i,e)):ol(i)}function ol(e){var i=e;do{if((i.flags&32768)!==0){Pg(i,Mi);return}e=i.return;var r=Q_(i.alternate,i,si);if(r!==null){Mt=r;return}if(i=i.sibling,i!==null){Mt=i;return}Mt=i=e}while(i!==null);ne===0&&(ne=5)}function Pg(e,i){do{var r=P_(e.alternate,e);if(r!==null){r.flags&=32767,Mt=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!i&&(e=e.sibling,e!==null)){Mt=e;return}Mt=e=r}while(e!==null);ne=6,Mt=null}function Fg(e,i,r,o,f,d,y,x,D){e.cancelPendingCommit=null;do ll();while(me!==0);if((jt&6)!==0)throw Error(s(327));if(i!==null){if(i===e.current)throw Error(s(177));if(d=i.lanes|i.childLanes,d|=ic,VS(e,r,d,y,x,D),e===Xt&&(Mt=Xt=null,Dt=0),or=i,Ni=e,oi=r,df=d,hf=f,Lg=o,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ow(Ii,function(){return ey(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||o){o=E.T,E.T=null,f=$.p,$.p=2,y=jt,jt|=4;try{F_(e,i,r)}finally{jt=y,$.p=f,E.T=o}}me=1,Jg(),Ig(),Wg()}}function Jg(){if(me===1){me=0;var e=Ni,i=or,r=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||r){r=E.T,E.T=null;var o=$.p;$.p=2;var f=jt;jt|=4;try{Ng(i,e);var d=Mf,y=Bm(e.containerInfo),x=d.focusedElem,D=d.selectionRange;if(y!==x&&x&&x.ownerDocument&&Vm(x.ownerDocument.documentElement,x)){if(D!==null&&Iu(x)){var U=D.start,X=D.end;if(X===void 0&&(X=U),"selectionStart"in x)x.selectionStart=U,x.selectionEnd=Math.min(X,x.value.length);else{var F=x.ownerDocument||document,H=F&&F.defaultView||window;if(H.getSelection){var Y=H.getSelection(),ut=x.textContent.length,gt=Math.min(D.start,ut),Yt=D.end===void 0?gt:Math.min(D.end,ut);!Y.extend&>>Yt&&(y=Yt,Yt=gt,gt=y);var j=jm(x,gt),N=jm(x,Yt);if(j&&N&&(Y.rangeCount!==1||Y.anchorNode!==j.node||Y.anchorOffset!==j.offset||Y.focusNode!==N.node||Y.focusOffset!==N.offset)){var B=F.createRange();B.setStart(j.node,j.offset),Y.removeAllRanges(),gt>Yt?(Y.addRange(B),Y.extend(N.node,N.offset)):(B.setEnd(N.node,N.offset),Y.addRange(B))}}}}for(F=[],Y=x;Y=Y.parentNode;)Y.nodeType===1&&F.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<F.length;x++){var Q=F[x];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}xl=!!Ef,Mf=Ef=null}finally{jt=f,$.p=o,E.T=r}}e.current=i,me=2}}function Ig(){if(me===2){me=0;var e=Ni,i=or,r=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||r){r=E.T,E.T=null;var o=$.p;$.p=2;var f=jt;jt|=4;try{zg(e,i.alternate,i)}finally{jt=f,$.p=o,E.T=r}}me=3}}function Wg(){if(me===4||me===3){me=0,Da();var e=Ni,i=or,r=oi,o=Lg;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?me=5:(me=0,or=Ni=null,ty(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Di=null),Ru(r),i=i.stateNode,Fe&&typeof Fe.onCommitFiberRoot=="function")try{Fe.onCommitFiberRoot(kr,i,void 0,(i.current.flags&128)===128)}catch{}if(o!==null){i=E.T,f=$.p,$.p=2,E.T=null;try{for(var d=e.onRecoverableError,y=0;y<o.length;y++){var x=o[y];d(x.value,{componentStack:x.stack})}}finally{E.T=i,$.p=f}}(oi&3)!==0&&ll(),Un(e),f=e.pendingLanes,(r&261930)!==0&&(f&42)!==0?e===mf?ps++:(ps=0,mf=e):ps=0,gs(0)}}function ty(e,i){(e.pooledCacheLanes&=i)===0&&(i=e.pooledCache,i!=null&&(e.pooledCache=null,Fr(i)))}function ll(){return Jg(),Ig(),Wg(),ey()}function ey(){if(me!==5)return!1;var e=Ni,i=df;df=0;var r=Ru(oi),o=E.T,f=$.p;try{$.p=32>r?32:r,E.T=null,r=hf,hf=null;var d=Ni,y=oi;if(me=0,or=Ni=null,oi=0,(jt&6)!==0)throw Error(s(331));var x=jt;if(jt|=4,Vg(d.current),Rg(d,d.current,y,r),jt=x,gs(0,!1),Fe&&typeof Fe.onPostCommitFiberRoot=="function")try{Fe.onPostCommitFiberRoot(kr,d)}catch{}return!0}finally{$.p=f,E.T=o,ty(e,i)}}function ny(e,i,r){i=fn(r,i),i=qc(e.stateNode,i,2),e=Ti(e,i,2),e!==null&&(Vr(e,2),Un(e))}function Ut(e,i,r){if(e.tag===3)ny(e,e,r);else for(;i!==null;){if(i.tag===3){ny(i,e,r);break}else if(i.tag===1){var o=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Di===null||!Di.has(o))){e=fn(r,e),r=ig(2),o=Ti(i,r,2),o!==null&&(ag(r,o,i,e),Vr(o,2),Un(o));break}}i=i.return}}function yf(e,i,r){var o=e.pingCache;if(o===null){o=e.pingCache=new W_;var f=new Set;o.set(i,f)}else f=o.get(i),f===void 0&&(f=new Set,o.set(i,f));f.has(r)||(uf=!0,f.add(r),e=aw.bind(null,e,i,r),i.then(e,e))}function aw(e,i,r){var o=e.pingCache;o!==null&&o.delete(i),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,Xt===e&&(Dt&r)===r&&(ne===4||ne===3&&(Dt&62914560)===Dt&&300>xe()-nl?(jt&2)===0&&lr(e,0):cf|=r,sr===Dt&&(sr=0)),Un(e)}function iy(e,i){i===0&&(i=Jh()),e=aa(e,i),e!==null&&(Vr(e,i),Un(e))}function rw(e){var i=e.memoizedState,r=0;i!==null&&(r=i.retryLane),iy(e,r)}function sw(e,i){var r=0;switch(e.tag){case 31:case 13:var o=e.stateNode,f=e.memoizedState;f!==null&&(r=f.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(s(314))}o!==null&&o.delete(i),iy(e,r)}function ow(e,i){return De(e,i)}var ul=null,cr=null,vf=!1,cl=!1,bf=!1,Ri=0;function Un(e){e!==cr&&e.next===null&&(cr===null?ul=cr=e:cr=cr.next=e),cl=!0,vf||(vf=!0,uw())}function gs(e,i){if(!bf&&cl){bf=!0;do for(var r=!1,o=ul;o!==null;){if(e!==0){var f=o.pendingLanes;if(f===0)var d=0;else{var y=o.suspendedLanes,x=o.pingedLanes;d=(1<<31-Je(42|e)+1)-1,d&=f&~(y&~x),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(r=!0,oy(o,d))}else d=Dt,d=mo(o,o===Xt?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||jr(o,d)||(r=!0,oy(o,d));o=o.next}while(r);bf=!1}}function lw(){ay()}function ay(){cl=vf=!1;var e=0;Ri!==0&&bw()&&(e=Ri);for(var i=xe(),r=null,o=ul;o!==null;){var f=o.next,d=ry(o,i);d===0?(o.next=null,r===null?ul=f:r.next=f,f===null&&(cr=r)):(r=o,(e!==0||(d&3)!==0)&&(cl=!0)),o=f}me!==0&&me!==5||gs(e),Ri!==0&&(Ri=0)}function ry(e,i){for(var r=e.suspendedLanes,o=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-Je(d),x=1<<y,D=f[y];D===-1?((x&r)===0||(x&o)!==0)&&(f[y]=jS(x,i)):D<=i&&(e.expiredLanes|=x),d&=~x}if(i=Xt,r=Dt,r=mo(e,e===i?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,r===0||e===i&&(Bt===2||Bt===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Ne(o),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||jr(e,r)){if(i=r&-r,i===e.callbackPriority)return i;switch(o!==null&&Ne(o),Ru(r)){case 2:case 8:r=lo;break;case 32:r=Ii;break;case 268435456:r=Rr;break;default:r=Ii}return o=sy.bind(null,e),r=De(r,o),e.callbackPriority=i,e.callbackNode=r,i}return o!==null&&o!==null&&Ne(o),e.callbackPriority=2,e.callbackNode=null,2}function sy(e,i){if(me!==0&&me!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(ll()&&e.callbackNode!==r)return null;var o=Dt;return o=mo(e,e===Xt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Hg(e,o,i),ry(e,xe()),e.callbackNode!=null&&e.callbackNode===r?sy.bind(null,e):null)}function oy(e,i){if(ll())return null;Hg(e,i,!0)}function uw(){Sw(function(){(jt&6)!==0?De(on,lw):ay()})}function xf(){if(Ri===0){var e=Pa;e===0&&(e=co,co<<=1,(co&261888)===0&&(co=256)),Ri=e}return Ri}function ly(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vo(""+e)}function uy(e,i){var r=i.ownerDocument.createElement("input");return r.name=i.name,r.value=i.value,e.id&&r.setAttribute("form",e.id),i.parentNode.insertBefore(r,i),e=new FormData(e),r.parentNode.removeChild(r),e}function cw(e,i,r,o,f){if(i==="submit"&&r&&r.stateNode===f){var d=ly((f[Ze]||null).action),y=o.submitter;y&&(i=(i=y[Ze]||null)?ly(i.formAction):y.getAttribute("formAction"),i!==null&&(d=i,y=null));var x=new _o("action","action",null,o,f);e.push({event:x,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ri!==0){var D=y?uy(f,y):new FormData(f);Lc(r,{pending:!0,data:D,method:f.method,action:d},null,D)}}else typeof d=="function"&&(x.preventDefault(),D=y?uy(f,y):new FormData(f),Lc(r,{pending:!0,data:D,method:f.method,action:d},d,D))},currentTarget:f}]})}}for(var Sf=0;Sf<nc.length;Sf++){var _f=nc[Sf],fw=_f.toLowerCase(),dw=_f[0].toUpperCase()+_f.slice(1);wn(fw,"on"+dw)}wn(Zm,"onAnimationEnd"),wn(Hm,"onAnimationIteration"),wn($m,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn(M_,"onTransitionRun"),wn(C_,"onTransitionStart"),wn(D_,"onTransitionCancel"),wn(Gm,"onTransitionEnd"),ja("onMouseEnter",["mouseout","mouseover"]),ja("onMouseLeave",["mouseout","mouseover"]),ja("onPointerEnter",["pointerout","pointerover"]),ja("onPointerLeave",["pointerout","pointerover"]),ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ta("onBeforeInput",["compositionend","keypress","textInput","paste"]),ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ys="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(" "),hw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ys));function cy(e,i){i=(i&4)!==0;for(var r=0;r<e.length;r++){var o=e[r],f=o.event;o=o.listeners;t:{var d=void 0;if(i)for(var y=o.length-1;0<=y;y--){var x=o[y],D=x.instance,U=x.currentTarget;if(x=x.listener,D!==d&&f.isPropagationStopped())break t;d=x,f.currentTarget=U;try{d(f)}catch(X){Ao(X)}f.currentTarget=null,d=D}else for(y=0;y<o.length;y++){if(x=o[y],D=x.instance,U=x.currentTarget,x=x.listener,D!==d&&f.isPropagationStopped())break t;d=x,f.currentTarget=U;try{d(f)}catch(X){Ao(X)}f.currentTarget=null,d=D}}}}function Ct(e,i){var r=i[ku];r===void 0&&(r=i[ku]=new Set);var o=e+"__bubble";r.has(o)||(fy(i,e,2,!1),r.add(o))}function wf(e,i,r){var o=0;i&&(o|=4),fy(r,e,o,i)}var fl="_reactListening"+Math.random().toString(36).slice(2);function Tf(e){if(!e[fl]){e[fl]=!0,am.forEach(function(r){r!=="selectionchange"&&(hw.has(r)||wf(r,!1,e),wf(r,!0,e))});var i=e.nodeType===9?e:e.ownerDocument;i===null||i[fl]||(i[fl]=!0,wf("selectionchange",!1,i))}}function fy(e,i,r,o){switch(Zy(i)){case 2:var f=Hw;break;case 8:f=$w;break;default:f=Lf}r=f.bind(null,i,r,e),f=void 0,!Gu||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(f=!0),o?f!==void 0?e.addEventListener(i,r,{capture:!0,passive:f}):e.addEventListener(i,r,!0):f!==void 0?e.addEventListener(i,r,{passive:f}):e.addEventListener(i,r,!1)}function Af(e,i,r,o,f){var d=o;if((i&1)===0&&(i&2)===0&&o!==null)t:for(;;){if(o===null)return;var y=o.tag;if(y===3||y===4){var x=o.stateNode.containerInfo;if(x===f)break;if(y===4)for(y=o.return;y!==null;){var D=y.tag;if((D===3||D===4)&&y.stateNode.containerInfo===f)return;y=y.return}for(;x!==null;){if(y=Oa(x),y===null)return;if(D=y.tag,D===5||D===6||D===26||D===27){o=d=y;continue t}x=x.parentNode}}o=o.return}gm(function(){var U=d,X=Hu(r),F=[];t:{var H=Ym.get(e);if(H!==void 0){var Y=_o,ut=e;switch(e){case"keypress":if(xo(r)===0)break t;case"keydown":case"keyup":Y=s_;break;case"focusin":ut="focus",Y=Ku;break;case"focusout":ut="blur",Y=Ku;break;case"beforeblur":case"afterblur":Y=Ku;break;case"click":if(r.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=QS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=u_;break;case Zm:case Hm:case $m:Y=JS;break;case Gm:Y=f_;break;case"scroll":case"scrollend":Y=XS;break;case"wheel":Y=h_;break;case"copy":case"cut":case"paste":Y=WS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Sm;break;case"toggle":case"beforetoggle":Y=p_}var gt=(i&4)!==0,Yt=!gt&&(e==="scroll"||e==="scrollend"),j=gt?H!==null?H+"Capture":null:H;gt=[];for(var N=U,B;N!==null;){var Q=N;if(B=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||B===null||j===null||(Q=Lr(N,j),Q!=null&>.push(vs(N,Q,B))),Yt)break;N=N.return}0<gt.length&&(H=new Y(H,ut,null,r,X),F.push({event:H,listeners:gt}))}}if((i&7)===0){t:{if(H=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",H&&r!==Zu&&(ut=r.relatedTarget||r.fromElement)&&(Oa(ut)||ut[Na]))break t;if((Y||H)&&(H=X.window===X?X:(H=X.ownerDocument)?H.defaultView||H.parentWindow:window,Y?(ut=r.relatedTarget||r.toElement,Y=U,ut=ut?Oa(ut):null,ut!==null&&(Yt=c(ut),gt=ut.tag,ut!==Yt||gt!==5&>!==27&>!==6)&&(ut=null)):(Y=null,ut=U),Y!==ut)){if(gt=bm,Q="onMouseLeave",j="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(gt=Sm,Q="onPointerLeave",j="onPointerEnter",N="pointer"),Yt=Y==null?H:Ur(Y),B=ut==null?H:Ur(ut),H=new gt(Q,N+"leave",Y,r,X),H.target=Yt,H.relatedTarget=B,Q=null,Oa(X)===U&&(gt=new gt(j,N+"enter",ut,r,X),gt.target=B,gt.relatedTarget=Yt,Q=gt),Yt=Q,Y&&ut)e:{for(gt=mw,j=Y,N=ut,B=0,Q=j;Q;Q=gt(Q))B++;Q=0;for(var mt=N;mt;mt=gt(mt))Q++;for(;0<B-Q;)j=gt(j),B--;for(;0<Q-B;)N=gt(N),Q--;for(;B--;){if(j===N||N!==null&&j===N.alternate){gt=j;break e}j=gt(j),N=gt(N)}gt=null}else gt=null;Y!==null&&dy(F,H,Y,gt,!1),ut!==null&&Yt!==null&&dy(F,Yt,ut,gt,!0)}}t:{if(H=U?Ur(U):window,Y=H.nodeName&&H.nodeName.toLowerCase(),Y==="select"||Y==="input"&&H.type==="file")var Rt=Cm;else if(Em(H))if(Dm)Rt=A_;else{Rt=w_;var ht=__}else Y=H.nodeName,!Y||Y.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&Lu(U.elementType)&&(Rt=Cm):Rt=T_;if(Rt&&(Rt=Rt(e,U))){Mm(F,Rt,r,X);break t}ht&&ht(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&Uu(H,"number",H.value)}switch(ht=U?Ur(U):window,e){case"focusin":(Em(ht)||ht.contentEditable==="true")&&(Ha=ht,Wu=U,Kr=null);break;case"focusout":Kr=Wu=Ha=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,Um(F,r,X);break;case"selectionchange":if(E_)break;case"keydown":case"keyup":Um(F,r,X)}var At;if(Pu)t:{switch(e){case"compositionstart":var Nt="onCompositionStart";break t;case"compositionend":Nt="onCompositionEnd";break t;case"compositionupdate":Nt="onCompositionUpdate";break t}Nt=void 0}else Za?Am(e,r)&&(Nt="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Nt="onCompositionStart");Nt&&(_m&&r.locale!=="ko"&&(Za||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&Za&&(At=ym()):(yi=X,Yu="value"in yi?yi.value:yi.textContent,Za=!0)),ht=dl(U,Nt),0<ht.length&&(Nt=new xm(Nt,e,null,r,X),F.push({event:Nt,listeners:ht}),At?Nt.data=At:(At=zm(r),At!==null&&(Nt.data=At)))),(At=y_?v_(e,r):b_(e,r))&&(Nt=dl(U,"onBeforeInput"),0<Nt.length&&(ht=new xm("onBeforeInput","beforeinput",null,r,X),F.push({event:ht,listeners:Nt}),ht.data=At)),cw(F,e,U,r,X)}cy(F,i)})}function vs(e,i,r){return{instance:e,listener:i,currentTarget:r}}function dl(e,i){for(var r=i+"Capture",o=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=Lr(e,r),f!=null&&o.unshift(vs(e,f,d)),f=Lr(e,i),f!=null&&o.push(vs(e,f,d))),e.tag===3)return o;e=e.return}return[]}function mw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function dy(e,i,r,o,f){for(var d=i._reactName,y=[];r!==null&&r!==o;){var x=r,D=x.alternate,U=x.stateNode;if(x=x.tag,D!==null&&D===o)break;x!==5&&x!==26&&x!==27||U===null||(D=U,f?(U=Lr(r,d),U!=null&&y.unshift(vs(r,U,D))):f||(U=Lr(r,d),U!=null&&y.push(vs(r,U,D)))),r=r.return}y.length!==0&&e.push({event:i,listeners:y})}var pw=/\r\n?/g,gw=/\u0000|\uFFFD/g;function hy(e){return(typeof e=="string"?e:""+e).replace(pw,`
|
|
9
|
+
`).replace(gw,"")}function my(e,i){return i=hy(i),hy(e)===i}function Gt(e,i,r,o,f,d){switch(r){case"children":typeof o=="string"?i==="body"||i==="textarea"&&o===""||Ba(e,o):(typeof o=="number"||typeof o=="bigint")&&i!=="body"&&Ba(e,""+o);break;case"className":go(e,"class",o);break;case"tabIndex":go(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":go(e,r,o);break;case"style":mm(e,o,d);break;case"data":if(i!=="object"){go(e,"data",o);break}case"src":case"href":if(o===""&&(i!=="a"||r!=="href")){e.removeAttribute(r);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=vo(""+o),e.setAttribute(r,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(r,"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 d=="function"&&(r==="formAction"?(i!=="input"&&Gt(e,i,"name",f.name,f,null),Gt(e,i,"formEncType",f.formEncType,f,null),Gt(e,i,"formMethod",f.formMethod,f,null),Gt(e,i,"formTarget",f.formTarget,f,null)):(Gt(e,i,"encType",f.encType,f,null),Gt(e,i,"method",f.method,f,null),Gt(e,i,"target",f.target,f,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(r);break}o=vo(""+o),e.setAttribute(r,o);break;case"onClick":o!=null&&(e.onclick=Xn);break;case"onScroll":o!=null&&Ct("scroll",e);break;case"onScrollEnd":o!=null&&Ct("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(r=o.__html,r!=null){if(f.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}r=vo(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""+o):e.removeAttribute(r);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":o===!0?e.setAttribute(r,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(r,o):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(r,o):e.removeAttribute(r);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(r):e.setAttribute(r,o);break;case"popover":Ct("beforetoggle",e),Ct("toggle",e),po(e,"popover",o);break;case"xlinkActuate":qn(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":qn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":qn(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":qn(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":qn(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":qn(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":qn(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":qn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":qn(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":po(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=YS.get(r)||r,po(e,r,o))}}function zf(e,i,r,o,f,d){switch(r){case"style":mm(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(s(61));if(r=o.__html,r!=null){if(f.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"children":typeof o=="string"?Ba(e,o):(typeof o=="number"||typeof o=="bigint")&&Ba(e,""+o);break;case"onScroll":o!=null&&Ct("scroll",e);break;case"onScrollEnd":o!=null&&Ct("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rm.hasOwnProperty(r))t:{if(r[0]==="o"&&r[1]==="n"&&(f=r.endsWith("Capture"),i=r.slice(2,f?r.length-7:void 0),d=e[Ze]||null,d=d!=null?d[r]:null,typeof d=="function"&&e.removeEventListener(i,d,f),typeof o=="function")){typeof d!="function"&&d!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(i,o,f);break t}r in e?e[r]=o:o===!0?e.setAttribute(r,""):po(e,r,o)}}}function Ae(e,i,r){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ct("error",e),Ct("load",e);var o=!1,f=!1,d;for(d in r)if(r.hasOwnProperty(d)){var y=r[d];if(y!=null)switch(d){case"src":o=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Gt(e,i,d,y,r,null)}}f&&Gt(e,i,"srcSet",r.srcSet,r,null),o&&Gt(e,i,"src",r.src,r,null);return;case"input":Ct("invalid",e);var x=d=y=f=null,D=null,U=null;for(o in r)if(r.hasOwnProperty(o)){var X=r[o];if(X!=null)switch(o){case"name":f=X;break;case"type":y=X;break;case"checked":D=X;break;case"defaultChecked":U=X;break;case"value":d=X;break;case"defaultValue":x=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(s(137,i));break;default:Gt(e,i,o,X,r,null)}}cm(e,d,x,D,U,y,f,!1);return;case"select":Ct("invalid",e),o=y=d=null;for(f in r)if(r.hasOwnProperty(f)&&(x=r[f],x!=null))switch(f){case"value":d=x;break;case"defaultValue":y=x;break;case"multiple":o=x;default:Gt(e,i,f,x,r,null)}i=d,r=y,e.multiple=!!o,i!=null?Va(e,!!o,i,!1):r!=null&&Va(e,!!o,r,!0);return;case"textarea":Ct("invalid",e),d=f=o=null;for(y in r)if(r.hasOwnProperty(y)&&(x=r[y],x!=null))switch(y){case"value":o=x;break;case"defaultValue":f=x;break;case"children":d=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:Gt(e,i,y,x,r,null)}dm(e,o,f,d);return;case"option":for(D in r)r.hasOwnProperty(D)&&(o=r[D],o!=null)&&(D==="selected"?e.selected=o&&typeof o!="function"&&typeof o!="symbol":Gt(e,i,D,o,r,null));return;case"dialog":Ct("beforetoggle",e),Ct("toggle",e),Ct("cancel",e),Ct("close",e);break;case"iframe":case"object":Ct("load",e);break;case"video":case"audio":for(o=0;o<ys.length;o++)Ct(ys[o],e);break;case"image":Ct("error",e),Ct("load",e);break;case"details":Ct("toggle",e);break;case"embed":case"source":case"link":Ct("error",e),Ct("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(U in r)if(r.hasOwnProperty(U)&&(o=r[U],o!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,i));default:Gt(e,i,U,o,r,null)}return;default:if(Lu(i)){for(X in r)r.hasOwnProperty(X)&&(o=r[X],o!==void 0&&zf(e,i,X,o,r,void 0));return}}for(x in r)r.hasOwnProperty(x)&&(o=r[x],o!=null&&Gt(e,i,x,o,r,null))}function yw(e,i,r,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,y=null,x=null,D=null,U=null,X=null;for(Y in r){var F=r[Y];if(r.hasOwnProperty(Y)&&F!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":D=F;default:o.hasOwnProperty(Y)||Gt(e,i,Y,null,o,F)}}for(var H in o){var Y=o[H];if(F=r[H],o.hasOwnProperty(H)&&(Y!=null||F!=null))switch(H){case"type":d=Y;break;case"name":f=Y;break;case"checked":U=Y;break;case"defaultChecked":X=Y;break;case"value":y=Y;break;case"defaultValue":x=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,i));break;default:Y!==F&&Gt(e,i,H,Y,o,F)}}Bu(e,y,x,D,U,X,d,f);return;case"select":Y=y=x=H=null;for(d in r)if(D=r[d],r.hasOwnProperty(d)&&D!=null)switch(d){case"value":break;case"multiple":Y=D;default:o.hasOwnProperty(d)||Gt(e,i,d,null,o,D)}for(f in o)if(d=o[f],D=r[f],o.hasOwnProperty(f)&&(d!=null||D!=null))switch(f){case"value":H=d;break;case"defaultValue":x=d;break;case"multiple":y=d;default:d!==D&&Gt(e,i,f,d,o,D)}i=x,r=y,o=Y,H!=null?Va(e,!!r,H,!1):!!o!=!!r&&(i!=null?Va(e,!!r,i,!0):Va(e,!!r,r?[]:"",!1));return;case"textarea":Y=H=null;for(x in r)if(f=r[x],r.hasOwnProperty(x)&&f!=null&&!o.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Gt(e,i,x,null,o,f)}for(y in o)if(f=o[y],d=r[y],o.hasOwnProperty(y)&&(f!=null||d!=null))switch(y){case"value":H=f;break;case"defaultValue":Y=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(s(91));break;default:f!==d&&Gt(e,i,y,f,o,d)}fm(e,H,Y);return;case"option":for(var ut in r)H=r[ut],r.hasOwnProperty(ut)&&H!=null&&!o.hasOwnProperty(ut)&&(ut==="selected"?e.selected=!1:Gt(e,i,ut,null,o,H));for(D in o)H=o[D],Y=r[D],o.hasOwnProperty(D)&&H!==Y&&(H!=null||Y!=null)&&(D==="selected"?e.selected=H&&typeof H!="function"&&typeof H!="symbol":Gt(e,i,D,H,o,Y));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var gt in r)H=r[gt],r.hasOwnProperty(gt)&&H!=null&&!o.hasOwnProperty(gt)&&Gt(e,i,gt,null,o,H);for(U in o)if(H=o[U],Y=r[U],o.hasOwnProperty(U)&&H!==Y&&(H!=null||Y!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(s(137,i));break;default:Gt(e,i,U,H,o,Y)}return;default:if(Lu(i)){for(var Yt in r)H=r[Yt],r.hasOwnProperty(Yt)&&H!==void 0&&!o.hasOwnProperty(Yt)&&zf(e,i,Yt,void 0,o,H);for(X in o)H=o[X],Y=r[X],!o.hasOwnProperty(X)||H===Y||H===void 0&&Y===void 0||zf(e,i,X,H,o,Y);return}}for(var j in r)H=r[j],r.hasOwnProperty(j)&&H!=null&&!o.hasOwnProperty(j)&&Gt(e,i,j,null,o,H);for(F in o)H=o[F],Y=r[F],!o.hasOwnProperty(F)||H===Y||H==null&&Y==null||Gt(e,i,F,H,o,Y)}function py(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,i=0,r=performance.getEntriesByType("resource"),o=0;o<r.length;o++){var f=r[o],d=f.transferSize,y=f.initiatorType,x=f.duration;if(d&&x&&py(y)){for(y=0,x=f.responseEnd,o+=1;o<r.length;o++){var D=r[o],U=D.startTime;if(U>x)break;var X=D.transferSize,F=D.initiatorType;X&&py(F)&&(D=D.responseEnd,y+=X*(D<x?1:(x-U)/(D-U)))}if(--o,i+=8*(d+y)/(f.duration/1e3),e++,10<e)break}}if(0<e)return i/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ef=null,Mf=null;function hl(e){return e.nodeType===9?e:e.ownerDocument}function gy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yy(e,i){if(e===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&i==="foreignObject"?0:e}function Cf(e,i){return e==="textarea"||e==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Df=null;function bw(){var e=window.event;return e&&e.type==="popstate"?e===Df?!1:(Df=e,!0):(Df=null,!1)}var vy=typeof setTimeout=="function"?setTimeout:void 0,xw=typeof clearTimeout=="function"?clearTimeout:void 0,by=typeof Promise=="function"?Promise:void 0,Sw=typeof queueMicrotask=="function"?queueMicrotask:typeof by<"u"?function(e){return by.resolve(null).then(e).catch(_w)}:vy;function _w(e){setTimeout(function(){throw e})}function ki(e){return e==="head"}function xy(e,i){var r=i,o=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"||r==="/&"){if(o===0){e.removeChild(f),mr(i);return}o--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")o++;else if(r==="html")bs(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,bs(r);for(var d=r.firstChild;d;){var y=d.nextSibling,x=d.nodeName;d[Br]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&d.rel.toLowerCase()==="stylesheet"||r.removeChild(d),d=y}}else r==="body"&&bs(e.ownerDocument.body);r=f}while(r);mr(i)}function Sy(e,i){var r=e;e=0;do{var o=r.nextSibling;if(r.nodeType===1?i?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(i?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=o}while(r)}function Nf(e){var i=e.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var r=i;switch(i=i.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Nf(r),ju(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function ww(e,i,r,o){for(;e.nodeType===1;){var f=r;if(e.nodeName.toLowerCase()!==i.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Br])switch(i){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(i==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=gn(e.nextSibling),e===null)break}return null}function Tw(e,i,r){if(i==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=gn(e.nextSibling),e===null))return null;return e}function _y(e,i){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=gn(e.nextSibling),e===null))return null;return e}function Of(e){return e.data==="$?"||e.data==="$~"}function Rf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Aw(e,i){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=i;else if(e.data!=="$?"||r.readyState!=="loading")i();else{var o=function(){i(),r.removeEventListener("DOMContentLoaded",o)};r.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function gn(e){for(;e!=null;e=e.nextSibling){var i=e.nodeType;if(i===1||i===3)break;if(i===8){if(i=e.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return e}var kf=null;function wy(e){e=e.nextSibling;for(var i=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(i===0)return gn(e.nextSibling);i--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||i++}e=e.nextSibling}return null}function Ty(e){e=e.previousSibling;for(var i=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(i===0)return e;i--}else r!=="/$"&&r!=="/&"||i++}e=e.previousSibling}return null}function Ay(e,i,r){switch(i=hl(r),e){case"html":if(e=i.documentElement,!e)throw Error(s(452));return e;case"head":if(e=i.head,!e)throw Error(s(453));return e;case"body":if(e=i.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function bs(e){for(var i=e.attributes;i.length;)e.removeAttributeNode(i[0]);ju(e)}var yn=new Map,zy=new Set;function ml(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var li=$.d;$.d={f:zw,r:Ew,D:Mw,C:Cw,L:Dw,m:Nw,X:Rw,S:Ow,M:kw};function zw(){var e=li.f(),i=rl();return e||i}function Ew(e){var i=Ra(e);i!==null&&i.tag===5&&i.type==="form"?Gp(i):li.r(e)}var fr=typeof document>"u"?null:document;function Ey(e,i,r){var o=fr;if(o&&typeof i=="string"&&i){var f=un(i);f='link[rel="'+e+'"][href="'+f+'"]',typeof r=="string"&&(f+='[crossorigin="'+r+'"]'),zy.has(f)||(zy.add(f),e={rel:e,crossOrigin:r,href:i},o.querySelector(f)===null&&(i=o.createElement("link"),Ae(i,"link",e),ve(i),o.head.appendChild(i)))}}function Mw(e){li.D(e),Ey("dns-prefetch",e,null)}function Cw(e,i){li.C(e,i),Ey("preconnect",e,i)}function Dw(e,i,r){li.L(e,i,r);var o=fr;if(o&&e&&i){var f='link[rel="preload"][as="'+un(i)+'"]';i==="image"&&r&&r.imageSrcSet?(f+='[imagesrcset="'+un(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(f+='[imagesizes="'+un(r.imageSizes)+'"]')):f+='[href="'+un(e)+'"]';var d=f;switch(i){case"style":d=dr(e);break;case"script":d=hr(e)}yn.has(d)||(e=b({rel:"preload",href:i==="image"&&r&&r.imageSrcSet?void 0:e,as:i},r),yn.set(d,e),o.querySelector(f)!==null||i==="style"&&o.querySelector(xs(d))||i==="script"&&o.querySelector(Ss(d))||(i=o.createElement("link"),Ae(i,"link",e),ve(i),o.head.appendChild(i)))}}function Nw(e,i){li.m(e,i);var r=fr;if(r&&e){var o=i&&typeof i.as=="string"?i.as:"script",f='link[rel="modulepreload"][as="'+un(o)+'"][href="'+un(e)+'"]',d=f;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=hr(e)}if(!yn.has(d)&&(e=b({rel:"modulepreload",href:e},i),yn.set(d,e),r.querySelector(f)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Ss(d)))return}o=r.createElement("link"),Ae(o,"link",e),ve(o),r.head.appendChild(o)}}}function Ow(e,i,r){li.S(e,i,r);var o=fr;if(o&&e){var f=ka(o).hoistableStyles,d=dr(e);i=i||"default";var y=f.get(d);if(!y){var x={loading:0,preload:null};if(y=o.querySelector(xs(d)))x.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":i},r),(r=yn.get(d))&&jf(e,r);var D=y=o.createElement("link");ve(D),Ae(D,"link",e),D._p=new Promise(function(U,X){D.onload=U,D.onerror=X}),D.addEventListener("load",function(){x.loading|=1}),D.addEventListener("error",function(){x.loading|=2}),x.loading|=4,pl(y,i,o)}y={type:"stylesheet",instance:y,count:1,state:x},f.set(d,y)}}}function Rw(e,i){li.X(e,i);var r=fr;if(r&&e){var o=ka(r).hoistableScripts,f=hr(e),d=o.get(f);d||(d=r.querySelector(Ss(f)),d||(e=b({src:e,async:!0},i),(i=yn.get(f))&&Vf(e,i),d=r.createElement("script"),ve(d),Ae(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(f,d))}}function kw(e,i){li.M(e,i);var r=fr;if(r&&e){var o=ka(r).hoistableScripts,f=hr(e),d=o.get(f);d||(d=r.querySelector(Ss(f)),d||(e=b({src:e,async:!0,type:"module"},i),(i=yn.get(f))&&Vf(e,i),d=r.createElement("script"),ve(d),Ae(d,"link",e),r.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(f,d))}}function My(e,i,r,o){var f=(f=lt.current)?ml(f):null;if(!f)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(i=dr(r.href),r=ka(f).hoistableStyles,o=r.get(i),o||(o={type:"style",instance:null,count:0,state:null},r.set(i,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=dr(r.href);var d=ka(f).hoistableStyles,y=d.get(e);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=f.querySelector(xs(e)))&&!d._p&&(y.instance=d,y.state.loading=5),yn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},yn.set(e,r),d||jw(f,e,r,y.state))),i&&o===null)throw Error(s(528,""));return y}if(i&&o!==null)throw Error(s(529,""));return null;case"script":return i=r.async,r=r.src,typeof r=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=hr(r),r=ka(f).hoistableScripts,o=r.get(i),o||(o={type:"script",instance:null,count:0,state:null},r.set(i,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function dr(e){return'href="'+un(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function Cy(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function jw(e,i,r,o){e.querySelector('link[rel="preload"][as="style"]['+i+"]")?o.loading=1:(i=e.createElement("link"),o.preload=i,i.addEventListener("load",function(){return o.loading|=1}),i.addEventListener("error",function(){return o.loading|=2}),Ae(i,"link",r),ve(i),e.head.appendChild(i))}function hr(e){return'[src="'+un(e)+'"]'}function Ss(e){return"script[async]"+e}function Dy(e,i,r){if(i.count++,i.instance===null)switch(i.type){case"style":var o=e.querySelector('style[data-href~="'+un(r.href)+'"]');if(o)return i.instance=o,ve(o),o;var f=b({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),ve(o),Ae(o,"style",f),pl(o,r.precedence,e),i.instance=o;case"stylesheet":f=dr(r.href);var d=e.querySelector(xs(f));if(d)return i.state.loading|=4,i.instance=d,ve(d),d;o=Cy(r),(f=yn.get(f))&&jf(o,f),d=(e.ownerDocument||e).createElement("link"),ve(d);var y=d;return y._p=new Promise(function(x,D){y.onload=x,y.onerror=D}),Ae(d,"link",o),i.state.loading|=4,pl(d,r.precedence,e),i.instance=d;case"script":return d=hr(r.src),(f=e.querySelector(Ss(d)))?(i.instance=f,ve(f),f):(o=r,(f=yn.get(d))&&(o=b({},r),Vf(o,f)),e=e.ownerDocument||e,f=e.createElement("script"),ve(f),Ae(f,"link",o),e.head.appendChild(f),i.instance=f);case"void":return null;default:throw Error(s(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(o=i.instance,i.state.loading|=4,pl(o,r.precedence,e));return i.instance}function pl(e,i,r){for(var o=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=o.length?o[o.length-1]:null,d=f,y=0;y<o.length;y++){var x=o[y];if(x.dataset.precedence===i)d=x;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(i=r.nodeType===9?r.head:r,i.insertBefore(e,i.firstChild))}function jf(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.title==null&&(e.title=i.title)}function Vf(e,i){e.crossOrigin==null&&(e.crossOrigin=i.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=i.referrerPolicy),e.integrity==null&&(e.integrity=i.integrity)}var gl=null;function Ny(e,i,r){if(gl===null){var o=new Map,f=gl=new Map;f.set(r,o)}else f=gl,o=f.get(r),o||(o=new Map,f.set(r,o));if(o.has(e))return o;for(o.set(e,null),r=r.getElementsByTagName(e),f=0;f<r.length;f++){var d=r[f];if(!(d[Br]||d[Se]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(i)||"";y=e+y;var x=o.get(y);x?x.push(d):o.set(y,[d])}}return o}function Oy(e,i,r){e=e.ownerDocument||e,e.head.insertBefore(r,i==="title"?e.querySelector("head > title"):null)}function Vw(e,i,r){if(r===1||i.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(e=i.disabled,typeof i.precedence=="string"&&e==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function Ry(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Bw(e,i,r,o){if(r.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var f=dr(o.href),d=i.querySelector(xs(f));if(d){i=d._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(e.count++,e=yl.bind(e),i.then(e,e)),r.state.loading|=4,r.instance=d,ve(d);return}d=i.ownerDocument||i,o=Cy(o),(f=yn.get(f))&&jf(o,f),d=d.createElement("link"),ve(d);var y=d;y._p=new Promise(function(x,D){y.onload=x,y.onerror=D}),Ae(d,"link",o),r.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,i),(i=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=yl.bind(e),i.addEventListener("load",r),i.addEventListener("error",r))}}var Bf=0;function Uw(e,i){return e.stylesheets&&e.count===0&&bl(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var o=setTimeout(function(){if(e.stylesheets&&bl(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+i);0<e.imgBytes&&Bf===0&&(Bf=62500*vw());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&bl(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Bf?50:800)+i);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(f)}}:null}function yl(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vl=null;function bl(e,i){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vl=new Map,i.forEach(Lw,e),vl=null,yl.call(e))}function Lw(e,i){if(!(i.state.loading&4)){var r=vl.get(e);if(r)var o=r.get(null);else{r=new Map,vl.set(e,r);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var y=f[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(r.set(y.dataset.precedence,y),o=y)}o&&r.set(null,o)}f=i.instance,y=f.getAttribute("data-precedence"),d=r.get(y)||o,d===o&&r.set(null,f),r.set(y,f),this.count++,o=yl.bind(this),f.addEventListener("load",o),f.addEventListener("error",o),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),i.state.loading|=4}}var _s={$$typeof:O,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Zw(e,i,r,o,f,d,y,x,D){this.tag=1,this.containerInfo=e,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=Nu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nu(0),this.hiddenUpdates=Nu(null),this.identifierPrefix=o,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function ky(e,i,r,o,f,d,y,x,D,U,X,F){return e=new Zw(e,i,r,y,D,U,X,F,x),i=1,d===!0&&(i|=24),d=We(3,null,null,i),e.current=d,d.stateNode=e,i=pc(),i.refCount++,e.pooledCache=i,i.refCount++,d.memoizedState={element:o,isDehydrated:r,cache:i},bc(d),e}function jy(e){return e?(e=Ya,e):Ya}function Vy(e,i,r,o,f,d){f=jy(f),o.context===null?o.context=f:o.pendingContext=f,o=wi(i),o.payload={element:r},d=d===void 0?null:d,d!==null&&(o.callback=d),r=Ti(e,o,i),r!==null&&(Xe(r,e,i),ts(r,e,i))}function By(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<i?r:i}}function Uf(e,i){By(e,i),(e=e.alternate)&&By(e,i)}function Uy(e){if(e.tag===13||e.tag===31){var i=aa(e,67108864);i!==null&&Xe(i,e,67108864),Uf(e,67108864)}}function Ly(e){if(e.tag===13||e.tag===31){var i=rn();i=Ou(i);var r=aa(e,i);r!==null&&Xe(r,e,i),Uf(e,i)}}var xl=!0;function Hw(e,i,r,o){var f=E.T;E.T=null;var d=$.p;try{$.p=2,Lf(e,i,r,o)}finally{$.p=d,E.T=f}}function $w(e,i,r,o){var f=E.T;E.T=null;var d=$.p;try{$.p=8,Lf(e,i,r,o)}finally{$.p=d,E.T=f}}function Lf(e,i,r,o){if(xl){var f=Zf(o);if(f===null)Af(e,i,o,Sl,r),Hy(e,o);else if(Yw(f,e,i,r,o))o.stopPropagation();else if(Hy(e,o),i&4&&-1<Gw.indexOf(e)){for(;f!==null;){var d=Ra(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=Wi(d.pendingLanes);if(y!==0){var x=d;for(x.pendingLanes|=2,x.entangledLanes|=2;y;){var D=1<<31-Je(y);x.entanglements[1]|=D,y&=~D}Un(d),(jt&6)===0&&(il=xe()+500,gs(0))}}break;case 31:case 13:x=aa(d,2),x!==null&&Xe(x,d,2),rl(),Uf(d,2)}if(d=Zf(o),d===null&&Af(e,i,o,Sl,r),d===f)break;f=d}f!==null&&o.stopPropagation()}else Af(e,i,o,null,r)}}function Zf(e){return e=Hu(e),Hf(e)}var Sl=null;function Hf(e){if(Sl=null,e=Oa(e),e!==null){var i=c(e);if(i===null)e=null;else{var r=i.tag;if(r===13){if(e=u(i),e!==null)return e;e=null}else if(r===31){if(e=h(i),e!==null)return e;e=null}else if(r===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;e=null}else i!==e&&(e=null)}}return Sl=e,null}function Zy(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 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(Pe()){case on:return 2;case lo:return 8;case Ii:case Du:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var $f=!1,ji=null,Vi=null,Bi=null,ws=new Map,Ts=new Map,Ui=[],Gw="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 Hy(e,i){switch(e){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":Vi=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":ws.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ts.delete(i.pointerId)}}function As(e,i,r,o,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:i,domEventName:r,eventSystemFlags:o,nativeEvent:d,targetContainers:[f]},i!==null&&(i=Ra(i),i!==null&&Uy(i)),e):(e.eventSystemFlags|=o,i=e.targetContainers,f!==null&&i.indexOf(f)===-1&&i.push(f),e)}function Yw(e,i,r,o,f){switch(i){case"focusin":return ji=As(ji,e,i,r,o,f),!0;case"dragenter":return Vi=As(Vi,e,i,r,o,f),!0;case"mouseover":return Bi=As(Bi,e,i,r,o,f),!0;case"pointerover":var d=f.pointerId;return ws.set(d,As(ws.get(d)||null,e,i,r,o,f)),!0;case"gotpointercapture":return d=f.pointerId,Ts.set(d,As(Ts.get(d)||null,e,i,r,o,f)),!0}return!1}function $y(e){var i=Oa(e.target);if(i!==null){var r=c(i);if(r!==null){if(i=r.tag,i===13){if(i=u(r),i!==null){e.blockedOn=i,nm(e.priority,function(){Ly(r)});return}}else if(i===31){if(i=h(r),i!==null){e.blockedOn=i,nm(e.priority,function(){Ly(r)});return}}else if(i===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _l(e){if(e.blockedOn!==null)return!1;for(var i=e.targetContainers;0<i.length;){var r=Zf(e.nativeEvent);if(r===null){r=e.nativeEvent;var o=new r.constructor(r.type,r);Zu=o,r.target.dispatchEvent(o),Zu=null}else return i=Ra(r),i!==null&&Uy(i),e.blockedOn=r,!1;i.shift()}return!0}function Gy(e,i,r){_l(e)&&r.delete(i)}function qw(){$f=!1,ji!==null&&_l(ji)&&(ji=null),Vi!==null&&_l(Vi)&&(Vi=null),Bi!==null&&_l(Bi)&&(Bi=null),ws.forEach(Gy),Ts.forEach(Gy)}function wl(e,i){e.blockedOn===i&&(e.blockedOn=null,$f||($f=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,qw)))}var Tl=null;function Yy(e){Tl!==e&&(Tl=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Tl===e&&(Tl=null);for(var i=0;i<e.length;i+=3){var r=e[i],o=e[i+1],f=e[i+2];if(typeof o!="function"){if(Hf(o||r)===null)continue;break}var d=Ra(r);d!==null&&(e.splice(i,3),i-=3,Lc(d,{pending:!0,data:f,method:r.method,action:o},o,f))}}))}function mr(e){function i(D){return wl(D,e)}ji!==null&&wl(ji,e),Vi!==null&&wl(Vi,e),Bi!==null&&wl(Bi,e),ws.forEach(i),Ts.forEach(i);for(var r=0;r<Ui.length;r++){var o=Ui[r];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ui.length&&(r=Ui[0],r.blockedOn===null);)$y(r),r.blockedOn===null&&Ui.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(o=0;o<r.length;o+=3){var f=r[o],d=r[o+1],y=f[Ze]||null;if(typeof d=="function")y||Yy(r);else if(y){var x=null;if(d&&d.hasAttribute("formAction")){if(f=d,y=d[Ze]||null)x=y.formAction;else if(Hf(f)!==null)continue}else x=y.action;typeof x=="function"?r[o+1]=x:(r.splice(o,3),o-=3),Yy(r)}}}function qy(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return f=y})},focusReset:"manual",scroll:"manual"})}function i(){f!==null&&(f(),f=null),o||setTimeout(r,20)}function r(){if(!o&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(r,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),f!==null&&(f(),f=null)}}}function Gf(e){this._internalRoot=e}Al.prototype.render=Gf.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(s(409));var r=i.current,o=rn();Vy(r,o,e,i,null,null)},Al.prototype.unmount=Gf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;Vy(e.current,2,null,e,null,null),rl(),i[Na]=null}};function Al(e){this._internalRoot=e}Al.prototype.unstable_scheduleHydration=function(e){if(e){var i=em();e={blockedOn:null,target:e,priority:i};for(var r=0;r<Ui.length&&i!==0&&i<Ui[r].priority;r++);Ui.splice(r,0,e),r===0&&$y(e)}};var Xy=n.version;if(Xy!=="19.2.4")throw Error(s(527,Xy,"19.2.4"));$.findDOMNode=function(e){var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(i),e=e!==null?g(e):null,e=e===null?null:e.stateNode,e};var Xw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:E,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zl.isDisabled&&zl.supportsFiber)try{kr=zl.inject(Xw),Fe=zl}catch{}}return Es.createRoot=function(e,i){if(!l(e))throw Error(s(299));var r=!1,o="",f=Wp,d=tg,y=eg;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(f=i.onUncaughtError),i.onCaughtError!==void 0&&(d=i.onCaughtError),i.onRecoverableError!==void 0&&(y=i.onRecoverableError)),i=ky(e,1,!1,null,null,r,o,null,f,d,y,qy),e[Na]=i.current,Tf(e),new Gf(i)},Es.hydrateRoot=function(e,i,r){if(!l(e))throw Error(s(299));var o=!1,f="",d=Wp,y=tg,x=eg,D=null;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(f=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(x=r.onRecoverableError),r.formState!==void 0&&(D=r.formState)),i=ky(e,1,!0,i,r??null,o,f,D,d,y,x,qy),i.context=jy(null),r=i.current,o=rn(),o=Ou(o),f=wi(o),f.callback=null,Ti(r,f,o),r=o,i.current.lanes=r,Vr(i,r),Un(i),e[Na]=i.current,Tf(e),new Al(i)},Es.version="19.2.4",Es}var n0;function i2(){if(n0)return Xf.exports;n0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Xf.exports=n2(),Xf.exports}var a2=i2();const Yi={critical:"#ff4d4f",major:"#ff9900",minor:"#ffd666",info:"#91d5ff",default:"#97c2fc"},Il={similarity:"#fb7e81",dependency:"#84c1ff",reference:"#ffa500",related:"#6b7280",default:"#848484"},r2={dark:{bg:"#000000",text:"#e2e8f0",textMuted:"#94a3b8",panel:"#020617",panelBorder:"#1e293b",cardBg:"#0f172a",cardBorder:"#1e293b",grid:"rgba(30,41,59,0.3)"},light:{bg:"#ffffff",text:"#1e293b",textMuted:"#64748b",panel:"#ffffff",panelBorder:"#e2e8f0",cardBg:"#f8fafc",cardBorder:"#e2e8f0",grid:"rgba(203,213,225,0.4)"}},ke={maxNodes:400,maxEdges:600,nodeBaseRadius:3,collisionRadius:25,zoomMin:.1,zoomMax:4,edgeDistances:{similarity:80,related:150,dependency:100,reference:120,default:100},edgeStrengths:{similarity:.5,related:.1,dependency:.3,reference:.2,default:.3},edgeOpacities:{similarity:.8,related:.2,dependency:.5,reference:.4,default:.5},simulation:{chargeStrength:-200,centerStrength:.1}};function s2(t){const n=t.toLowerCase();return n==="critical"?Yi.critical:n==="major"?Yi.major:n==="minor"?Yi.minor:n==="info"?Yi.info:Yi.default}function o2(t){const n=t.scoring?.breakdown;if(!n||n.length===0)return{};let a=0,s=0;for(const c of n){const u=c.rawMetrics;u?.estimatedMonthlyCost&&(a+=u.estimatedMonthlyCost),u?.estimatedDeveloperHours&&(s+=u.estimatedDeveloperHours)}let l;if(n.length>=2){let c=.65;for(const u of n)c+=(u.score-50)*.003;l=Math.max(.1,Math.min(.95,c))}return{estimatedMonthlyCost:a>0?a:void 0,estimatedDeveloperHours:s>0?s:void 0,aiAcceptanceRate:l}}function l2(t,n){const a={maxNodes:n?.maxNodes??ke.maxNodes,maxEdges:n?.maxEdges??ke.maxEdges},s=t.patternDetect?.results||t.patterns||[],l=t.patternDetect?.duplicates||t.duplicates||[],c=t.contextAnalyzer?.results||t.context||[],u=[],h=[],m=new Map,p=new Map,g={critical:4,major:3,minor:2,info:1,default:0};for(const _ of s){const w=_.issues?.length||0;if(w>0){let z="info";for(const A of _.issues)(g[A.severity]||0)>(g[z]||0)&&(z=A.severity);p.set(_.fileName,{count:w,severities:new Set,maxSeverity:z})}}for(const _ of c){let w=p.get(_.file);if(!w){const C=(_.file||"").split("/").pop();for(const[L,I]of p.entries())if((L||"").split("/").pop()===C){w=I;break}}const z=w?.maxSeverity||_.severity||"default",A=_.tokenCost||0,R=[`Token Cost: ${A}`,`Lines of Code: ${_.linesOfCode??"n/a"}`,`Dependencies: ${_.dependencyCount??0}`];w&&(R.push(`Issues: ${w.count}`),R.push(`Severity: ${w.maxSeverity}`)),_.issues&&_.issues.length>0&&R.push("",..._.issues.slice(0,3));const O={id:_.file,label:_.file.split("/").pop()||_.file,value:Math.max(10,Math.sqrt(A)*3+(w?.count||0)*10),color:s2(z),title:R.join(`
|
|
10
|
+
`),duplicates:w?.count,tokenCost:A,severity:z};u.push(O),m.set(_.file,O)}const b=Array.from(m.keys());for(const _ of c){const w=_.file.substring(0,_.file.lastIndexOf("/"));for(const z of _.dependencyList||[])if(z.startsWith(".")||z.startsWith("/")){let A;const R=z.replace(/^\.\/?/,""),O=[`${w}/${R}.ts`,`${w}/${R}.tsx`,`${w}/${R}/index.ts`,`${w}/${R}/index.tsx`,`${w}/${R}`];for(const C of O)if(m.has(C)){A=C;break}if(!A){const C=R.split("/").pop()||R;A=b.find(L=>L.endsWith(`/${C}.ts`)||L.endsWith(`/${C}.tsx`)||L.endsWith(`/${C}/index.ts`)||L.endsWith(`/${C}/index.tsx`))}A&&A!==_.file&&h.push({source:_.file,target:A,type:"dependency"})}for(const z of _.relatedFiles||[]){let A=z;if(!m.has(A)){const R=_.file.substring(0,_.file.lastIndexOf("/")),O=z.replace(/^\.\/?/,""),C=[`${R}/${O}.ts`,`${R}/${O}.tsx`,`${R}/${O}/index.ts`,`${R}/${O}/index.tsx`,`${R}/${O}`];for(const L of C)if(m.has(L)){A=L;break}}if(!m.has(A)){const R=(z.split("/").pop()||z).replace(/\.(ts|tsx|js|jsx)$/,"");A=b.find(O=>O.endsWith(`/${R}.ts`)||O.endsWith(`/${R}.tsx`)||O.endsWith(`/${R}/index.ts`)||O.endsWith(`/${R}/index.tsx`)||O.endsWith(`/${R}`))}A&&m.has(A)&&A!==_.file&&(h.some(O=>O.source===_.file&&O.target===A||O.source===A&&O.target===_.file)||h.push({source:_.file,target:A,type:"related"}))}}for(const _ of l)m.has(_.file1)&&m.has(_.file2)&&(h.some(z=>z.source===_.file1&&z.target===_.file2||z.source===_.file2&&z.target===_.file1)||h.push({source:_.file1,target:_.file2,type:"similarity"}));const v={similarity:1,dependency:2,reference:4,related:3},S=[...h].sort((_,w)=>{const z=v[_.type]||99,A=v[w.type]||99;return z-A});return{nodes:u.slice(0,a.maxNodes),edges:S.slice(0,a.maxEdges),truncated:{nodes:u.length>a.maxNodes,edges:S.length>a.maxEdges,nodeCount:u.length,edgeCount:S.length,nodeLimit:a.maxNodes,edgeLimit:a.maxEdges},metadata:o2(t)}}async function u2(){const t=["/report-data.json","./report-data.json","../report-data.json","../../report-data.json"];for(const n of t)try{const a=await fetch(n);if(a.ok)return await a.json()}catch{continue}return null}function c2(t){return ke.edgeDistances[t]??ke.edgeDistances.dependency}function f2(t){return ke.edgeStrengths[t]??ke.edgeStrengths.dependency}function d2(t){return ke.edgeOpacities[t]??ke.edgeOpacities.dependency}function h2(t){return t==="similarity"?2:1}function m2(){const t=P.useRef(null),[n,a]=P.useState({width:0,height:0});return P.useEffect(()=>{if(!t.current)return;const s=()=>{if(t.current){const c=t.current.getBoundingClientRect();a({width:c.width,height:c.height})}};s();const l=new ResizeObserver(s);return l.observe(t.current),()=>{l.disconnect()}},[]),{containerRef:t,dimensions:n}}function p2(){const t=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",[n,a]=P.useState("system"),[s,l]=P.useState(t());return P.useEffect(()=>{const u=window.matchMedia("(prefers-color-scheme: dark)");l(u.matches?"dark":"light");const h=m=>{l(m.matches?"dark":"light")};return u.addEventListener("change",h),()=>u.removeEventListener("change",h)},[]),{theme:n,setTheme:a,effectiveTheme:n==="system"?s:n}}function gb(t){var n,a,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(n=0;n<l;n++)t[n]&&(a=gb(t[n]))&&(s&&(s+=" "),s+=a)}else for(a in t)t[a]&&(s&&(s+=" "),s+=a);return s}function yb(){for(var t,n,a=0,s="",l=arguments.length;a<l;a++)(t=arguments[a])&&(n=gb(t))&&(s&&(s+=" "),s+=n);return s}const i0=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,a0=yb,vb=(t,n)=>a=>{var s;if(n?.variants==null)return a0(t,a?.class,a?.className);const{variants:l,defaultVariants:c}=n,u=Object.keys(l).map(p=>{const g=a?.[p],b=c?.[p];if(g===null)return null;const v=i0(g)||i0(b);return l[p][v]}),h=a&&Object.entries(a).reduce((p,g)=>{let[b,v]=g;return v===void 0||(p[b]=v),p},{}),m=n==null||(s=n.compoundVariants)===null||s===void 0?void 0:s.reduce((p,g)=>{let{class:b,className:v,...S}=g;return Object.entries(S).every(_=>{let[w,z]=_;return Array.isArray(z)?z.includes({...c,...h}[w]):{...c,...h}[w]===z})?[...p,b,v]:p},[]);return a0(t,u,m,a?.class,a?.className)},g2=(t,n)=>{const a=new Array(t.length+n.length);for(let s=0;s<t.length;s++)a[s]=t[s];for(let s=0;s<n.length;s++)a[t.length+s]=n[s];return a},y2=(t,n)=>({classGroupId:t,validator:n}),bb=(t=new Map,n=null,a)=>({nextPart:t,validators:n,classGroupId:a}),Wl="-",r0=[],v2="arbitrary..",b2=t=>{const n=S2(t),{conflictingClassGroups:a,conflictingClassGroupModifiers:s}=t;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return x2(u);const h=u.split(Wl),m=h[0]===""&&h.length>1?1:0;return xb(h,m,n)},getConflictingClassGroupIds:(u,h)=>{if(h){const m=s[u],p=a[u];return m?p?g2(p,m):m:p||r0}return a[u]||r0}}},xb=(t,n,a)=>{if(t.length-n===0)return a.classGroupId;const l=t[n],c=a.nextPart.get(l);if(c){const p=xb(t,n+1,c);if(p)return p}const u=a.validators;if(u===null)return;const h=n===0?t.join(Wl):t.slice(n).join(Wl),m=u.length;for(let p=0;p<m;p++){const g=u[p];if(g.validator(h))return g.classGroupId}},x2=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=t.slice(1,-1),a=n.indexOf(":"),s=n.slice(0,a);return s?v2+s:void 0})(),S2=t=>{const{theme:n,classGroups:a}=t;return _2(a,n)},_2=(t,n)=>{const a=bb();for(const s in t){const l=t[s];ah(l,a,s,n)}return a},ah=(t,n,a,s)=>{const l=t.length;for(let c=0;c<l;c++){const u=t[c];w2(u,n,a,s)}},w2=(t,n,a,s)=>{if(typeof t=="string"){T2(t,n,a);return}if(typeof t=="function"){A2(t,n,a,s);return}z2(t,n,a,s)},T2=(t,n,a)=>{const s=t===""?n:Sb(n,t);s.classGroupId=a},A2=(t,n,a,s)=>{if(E2(t)){ah(t(s),n,a,s);return}n.validators===null&&(n.validators=[]),n.validators.push(y2(a,t))},z2=(t,n,a,s)=>{const l=Object.entries(t),c=l.length;for(let u=0;u<c;u++){const[h,m]=l[u];ah(m,Sb(n,h),a,s)}},Sb=(t,n)=>{let a=t;const s=n.split(Wl),l=s.length;for(let c=0;c<l;c++){const u=s[c];let h=a.nextPart.get(u);h||(h=bb(),a.nextPart.set(u,h)),a=h}return a},E2=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,M2=t=>{if(t<1)return{get:()=>{},set:()=>{}};let n=0,a=Object.create(null),s=Object.create(null);const l=(c,u)=>{a[c]=u,n++,n>t&&(n=0,s=a,a=Object.create(null))};return{get(c){let u=a[c];if(u!==void 0)return u;if((u=s[c])!==void 0)return l(c,u),u},set(c,u){c in a?a[c]=u:l(c,u)}}},_d="!",s0=":",C2=[],o0=(t,n,a,s,l)=>({modifiers:t,hasImportantModifier:n,baseClassName:a,maybePostfixModifierPosition:s,isExternal:l}),D2=t=>{const{prefix:n,experimentalParseClassName:a}=t;let s=l=>{const c=[];let u=0,h=0,m=0,p;const g=l.length;for(let w=0;w<g;w++){const z=l[w];if(u===0&&h===0){if(z===s0){c.push(l.slice(m,w)),m=w+1;continue}if(z==="/"){p=w;continue}}z==="["?u++:z==="]"?u--:z==="("?h++:z===")"&&h--}const b=c.length===0?l:l.slice(m);let v=b,S=!1;b.endsWith(_d)?(v=b.slice(0,-1),S=!0):b.startsWith(_d)&&(v=b.slice(1),S=!0);const _=p&&p>m?p-m:void 0;return o0(c,S,v,_)};if(n){const l=n+s0,c=s;s=u=>u.startsWith(l)?c(u.slice(l.length)):o0(C2,!1,u,void 0,!0)}if(a){const l=s;s=c=>a({className:c,parseClassName:l})}return s},N2=t=>{const n=new Map;return t.orderSensitiveModifiers.forEach((a,s)=>{n.set(a,1e6+s)}),a=>{const s=[];let l=[];for(let c=0;c<a.length;c++){const u=a[c],h=u[0]==="[",m=n.has(u);h||m?(l.length>0&&(l.sort(),s.push(...l),l=[]),s.push(u)):l.push(u)}return l.length>0&&(l.sort(),s.push(...l)),s}},O2=t=>({cache:M2(t.cacheSize),parseClassName:D2(t),sortModifiers:N2(t),...b2(t)}),R2=/\s+/,k2=(t,n)=>{const{parseClassName:a,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:c}=n,u=[],h=t.trim().split(R2);let m="";for(let p=h.length-1;p>=0;p-=1){const g=h[p],{isExternal:b,modifiers:v,hasImportantModifier:S,baseClassName:_,maybePostfixModifierPosition:w}=a(g);if(b){m=g+(m.length>0?" "+m:m);continue}let z=!!w,A=s(z?_.substring(0,w):_);if(!A){if(!z){m=g+(m.length>0?" "+m:m);continue}if(A=s(_),!A){m=g+(m.length>0?" "+m:m);continue}z=!1}const R=v.length===0?"":v.length===1?v[0]:c(v).join(":"),O=S?R+_d:R,C=O+A;if(u.indexOf(C)>-1)continue;u.push(C);const L=l(A,z);for(let I=0;I<L.length;++I){const V=L[I];u.push(O+V)}m=g+(m.length>0?" "+m:m)}return m},j2=(...t)=>{let n=0,a,s,l="";for(;n<t.length;)(a=t[n++])&&(s=_b(a))&&(l&&(l+=" "),l+=s);return l},_b=t=>{if(typeof t=="string")return t;let n,a="";for(let s=0;s<t.length;s++)t[s]&&(n=_b(t[s]))&&(a&&(a+=" "),a+=n);return a},V2=(t,...n)=>{let a,s,l,c;const u=m=>{const p=n.reduce((g,b)=>b(g),t());return a=O2(p),s=a.cache.get,l=a.cache.set,c=h,h(m)},h=m=>{const p=s(m);if(p)return p;const g=k2(m,a);return l(m,g),g};return c=u,(...m)=>c(j2(...m))},B2=[],pe=t=>{const n=a=>a[t]||B2;return n.isThemeGetter=!0,n},wb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,U2=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,L2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Z2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,H2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,$2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,G2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Zi=t=>U2.test(t),Et=t=>!!t&&!Number.isNaN(Number(t)),Hi=t=>!!t&&Number.isInteger(Number(t)),Ff=t=>t.endsWith("%")&&Et(t.slice(0,-1)),ui=t=>L2.test(t),Ab=()=>!0,Y2=t=>Z2.test(t)&&!H2.test(t),rh=()=>!1,q2=t=>$2.test(t),X2=t=>G2.test(t),K2=t=>!ct(t)&&!dt(t),Q2=t=>Qi(t,Mb,rh),ct=t=>wb.test(t),ya=t=>Qi(t,Cb,Y2),l0=t=>Qi(t,nT,Et),P2=t=>Qi(t,Nb,Ab),F2=t=>Qi(t,Db,rh),u0=t=>Qi(t,zb,rh),J2=t=>Qi(t,Eb,X2),Ml=t=>Qi(t,Ob,q2),dt=t=>Tb.test(t),Ms=t=>Ma(t,Cb),I2=t=>Ma(t,Db),c0=t=>Ma(t,zb),W2=t=>Ma(t,Mb),tT=t=>Ma(t,Eb),Cl=t=>Ma(t,Ob,!0),eT=t=>Ma(t,Nb,!0),Qi=(t,n,a)=>{const s=wb.exec(t);return s?s[1]?n(s[1]):a(s[2]):!1},Ma=(t,n,a=!1)=>{const s=Tb.exec(t);return s?s[1]?n(s[1]):a:!1},zb=t=>t==="position"||t==="percentage",Eb=t=>t==="image"||t==="url",Mb=t=>t==="length"||t==="size"||t==="bg-size",Cb=t=>t==="length",nT=t=>t==="number",Db=t=>t==="family-name",Nb=t=>t==="number"||t==="weight",Ob=t=>t==="shadow",iT=()=>{const t=pe("color"),n=pe("font"),a=pe("text"),s=pe("font-weight"),l=pe("tracking"),c=pe("leading"),u=pe("breakpoint"),h=pe("container"),m=pe("spacing"),p=pe("radius"),g=pe("shadow"),b=pe("inset-shadow"),v=pe("text-shadow"),S=pe("drop-shadow"),_=pe("blur"),w=pe("perspective"),z=pe("aspect"),A=pe("ease"),R=pe("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...C(),dt,ct],I=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],k=()=>[dt,ct,m],tt=()=>[Zi,"full","auto",...k()],at=()=>[Hi,"none","subgrid",dt,ct],vt=()=>["auto",{span:["full",Hi,dt,ct]},Hi,dt,ct],St=()=>[Hi,"auto",dt,ct],zt=()=>["auto","min","max","fr",dt,ct],Z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],nt=()=>["start","end","center","stretch","center-safe","end-safe"],E=()=>["auto",...k()],$=()=>[Zi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],K=()=>[Zi,"screen","full","dvw","lvw","svw","min","max","fit",...k()],et=()=>[Zi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],q=()=>[t,dt,ct],T=()=>[...C(),c0,u0,{position:[dt,ct]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",W2,Q2,{size:[dt,ct]}],it=()=>[Ff,Ms,ya],st=()=>["","none","full",p,dt,ct],lt=()=>["",Et,Ms,ya],yt=()=>["solid","dashed","dotted","double"],Vt=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],xt=()=>[Et,Ff,c0,u0],Rn=()=>["","none",_,dt,ct],Sn=()=>["none",Et,dt,ct],kn=()=>["none",Et,dt,ct],ot=()=>[Et,dt,ct],rt=()=>[Zi,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ui],breakpoint:[ui],color:[Ab],container:[ui],"drop-shadow":[ui],ease:["in","out","in-out"],font:[K2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ui],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ui],shadow:[ui],spacing:["px",Et],text:[ui],"text-shadow":[ui],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Zi,ct,dt,z]}],container:["container"],columns:[{columns:[Et,ct,dt,h]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:tt()}],"inset-x":[{"inset-x":tt()}],"inset-y":[{"inset-y":tt()}],start:[{"inset-s":tt(),start:tt()}],end:[{"inset-e":tt(),end:tt()}],"inset-bs":[{"inset-bs":tt()}],"inset-be":[{"inset-be":tt()}],top:[{top:tt()}],right:[{right:tt()}],bottom:[{bottom:tt()}],left:[{left:tt()}],visibility:["visible","invisible","collapse"],z:[{z:[Hi,"auto",dt,ct]}],basis:[{basis:[Zi,"full","auto",h,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Et,Zi,"auto","initial","none",ct]}],grow:[{grow:["",Et,dt,ct]}],shrink:[{shrink:["",Et,dt,ct]}],order:[{order:[Hi,"first","last","none",dt,ct]}],"grid-cols":[{"grid-cols":at()}],"col-start-end":[{col:vt()}],"col-start":[{"col-start":St()}],"col-end":[{"col-end":St()}],"grid-rows":[{"grid-rows":at()}],"row-start-end":[{row:vt()}],"row-start":[{"row-start":St()}],"row-end":[{"row-end":St()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":zt()}],"auto-rows":[{"auto-rows":zt()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...Z(),"normal"]}],"justify-items":[{"justify-items":[...nt(),"normal"]}],"justify-self":[{"justify-self":["auto",...nt()]}],"align-content":[{content:["normal",...Z()]}],"align-items":[{items:[...nt(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...nt(),{baseline:["","last"]}]}],"place-content":[{"place-content":Z()}],"place-items":[{"place-items":[...nt(),"baseline"]}],"place-self":[{"place-self":["auto",...nt()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...K()]}],"min-inline-size":[{"min-inline":["auto",...K()]}],"max-inline-size":[{"max-inline":["none",...K()]}],"block-size":[{block:["auto",...et()]}],"min-block-size":[{"min-block":["auto",...et()]}],"max-block-size":[{"max-block":["none",...et()]}],w:[{w:[h,"screen",...$()]}],"min-w":[{"min-w":[h,"screen","none",...$()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[u]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",a,Ms,ya]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,eT,P2]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ff,ct]}],"font-family":[{font:[I2,F2,n]}],"font-features":[{"font-features":[ct]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,dt,ct]}],"line-clamp":[{"line-clamp":[Et,"none",dt,l0]}],leading:[{leading:[c,...k()]}],"list-image":[{"list-image":["none",dt,ct]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",dt,ct]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:q()}],"text-color":[{text:q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...yt(),"wavy"]}],"text-decoration-thickness":[{decoration:[Et,"from-font","auto",dt,ya]}],"text-decoration-color":[{decoration:q()}],"underline-offset":[{"underline-offset":[Et,"auto",dt,ct]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",dt,ct]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",dt,ct]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Hi,dt,ct],radial:["",dt,ct],conic:[Hi,dt,ct]},tT,J2]}],"bg-color":[{bg:q()}],"gradient-from-pos":[{from:it()}],"gradient-via-pos":[{via:it()}],"gradient-to-pos":[{to:it()}],"gradient-from":[{from:q()}],"gradient-via":[{via:q()}],"gradient-to":[{to:q()}],rounded:[{rounded:st()}],"rounded-s":[{"rounded-s":st()}],"rounded-e":[{"rounded-e":st()}],"rounded-t":[{"rounded-t":st()}],"rounded-r":[{"rounded-r":st()}],"rounded-b":[{"rounded-b":st()}],"rounded-l":[{"rounded-l":st()}],"rounded-ss":[{"rounded-ss":st()}],"rounded-se":[{"rounded-se":st()}],"rounded-ee":[{"rounded-ee":st()}],"rounded-es":[{"rounded-es":st()}],"rounded-tl":[{"rounded-tl":st()}],"rounded-tr":[{"rounded-tr":st()}],"rounded-br":[{"rounded-br":st()}],"rounded-bl":[{"rounded-bl":st()}],"border-w":[{border:lt()}],"border-w-x":[{"border-x":lt()}],"border-w-y":[{"border-y":lt()}],"border-w-s":[{"border-s":lt()}],"border-w-e":[{"border-e":lt()}],"border-w-bs":[{"border-bs":lt()}],"border-w-be":[{"border-be":lt()}],"border-w-t":[{"border-t":lt()}],"border-w-r":[{"border-r":lt()}],"border-w-b":[{"border-b":lt()}],"border-w-l":[{"border-l":lt()}],"divide-x":[{"divide-x":lt()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":lt()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...yt(),"hidden","none"]}],"divide-style":[{divide:[...yt(),"hidden","none"]}],"border-color":[{border:q()}],"border-color-x":[{"border-x":q()}],"border-color-y":[{"border-y":q()}],"border-color-s":[{"border-s":q()}],"border-color-e":[{"border-e":q()}],"border-color-bs":[{"border-bs":q()}],"border-color-be":[{"border-be":q()}],"border-color-t":[{"border-t":q()}],"border-color-r":[{"border-r":q()}],"border-color-b":[{"border-b":q()}],"border-color-l":[{"border-l":q()}],"divide-color":[{divide:q()}],"outline-style":[{outline:[...yt(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Et,dt,ct]}],"outline-w":[{outline:["",Et,Ms,ya]}],"outline-color":[{outline:q()}],shadow:[{shadow:["","none",g,Cl,Ml]}],"shadow-color":[{shadow:q()}],"inset-shadow":[{"inset-shadow":["none",b,Cl,Ml]}],"inset-shadow-color":[{"inset-shadow":q()}],"ring-w":[{ring:lt()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:q()}],"ring-offset-w":[{"ring-offset":[Et,ya]}],"ring-offset-color":[{"ring-offset":q()}],"inset-ring-w":[{"inset-ring":lt()}],"inset-ring-color":[{"inset-ring":q()}],"text-shadow":[{"text-shadow":["none",v,Cl,Ml]}],"text-shadow-color":[{"text-shadow":q()}],opacity:[{opacity:[Et,dt,ct]}],"mix-blend":[{"mix-blend":[...Vt(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Vt()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Et]}],"mask-image-linear-from-pos":[{"mask-linear-from":xt()}],"mask-image-linear-to-pos":[{"mask-linear-to":xt()}],"mask-image-linear-from-color":[{"mask-linear-from":q()}],"mask-image-linear-to-color":[{"mask-linear-to":q()}],"mask-image-t-from-pos":[{"mask-t-from":xt()}],"mask-image-t-to-pos":[{"mask-t-to":xt()}],"mask-image-t-from-color":[{"mask-t-from":q()}],"mask-image-t-to-color":[{"mask-t-to":q()}],"mask-image-r-from-pos":[{"mask-r-from":xt()}],"mask-image-r-to-pos":[{"mask-r-to":xt()}],"mask-image-r-from-color":[{"mask-r-from":q()}],"mask-image-r-to-color":[{"mask-r-to":q()}],"mask-image-b-from-pos":[{"mask-b-from":xt()}],"mask-image-b-to-pos":[{"mask-b-to":xt()}],"mask-image-b-from-color":[{"mask-b-from":q()}],"mask-image-b-to-color":[{"mask-b-to":q()}],"mask-image-l-from-pos":[{"mask-l-from":xt()}],"mask-image-l-to-pos":[{"mask-l-to":xt()}],"mask-image-l-from-color":[{"mask-l-from":q()}],"mask-image-l-to-color":[{"mask-l-to":q()}],"mask-image-x-from-pos":[{"mask-x-from":xt()}],"mask-image-x-to-pos":[{"mask-x-to":xt()}],"mask-image-x-from-color":[{"mask-x-from":q()}],"mask-image-x-to-color":[{"mask-x-to":q()}],"mask-image-y-from-pos":[{"mask-y-from":xt()}],"mask-image-y-to-pos":[{"mask-y-to":xt()}],"mask-image-y-from-color":[{"mask-y-from":q()}],"mask-image-y-to-color":[{"mask-y-to":q()}],"mask-image-radial":[{"mask-radial":[dt,ct]}],"mask-image-radial-from-pos":[{"mask-radial-from":xt()}],"mask-image-radial-to-pos":[{"mask-radial-to":xt()}],"mask-image-radial-from-color":[{"mask-radial-from":q()}],"mask-image-radial-to-color":[{"mask-radial-to":q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":C()}],"mask-image-conic-pos":[{"mask-conic":[Et]}],"mask-image-conic-from-pos":[{"mask-conic-from":xt()}],"mask-image-conic-to-pos":[{"mask-conic-to":xt()}],"mask-image-conic-from-color":[{"mask-conic-from":q()}],"mask-image-conic-to-color":[{"mask-conic-to":q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",dt,ct]}],filter:[{filter:["","none",dt,ct]}],blur:[{blur:Rn()}],brightness:[{brightness:[Et,dt,ct]}],contrast:[{contrast:[Et,dt,ct]}],"drop-shadow":[{"drop-shadow":["","none",S,Cl,Ml]}],"drop-shadow-color":[{"drop-shadow":q()}],grayscale:[{grayscale:["",Et,dt,ct]}],"hue-rotate":[{"hue-rotate":[Et,dt,ct]}],invert:[{invert:["",Et,dt,ct]}],saturate:[{saturate:[Et,dt,ct]}],sepia:[{sepia:["",Et,dt,ct]}],"backdrop-filter":[{"backdrop-filter":["","none",dt,ct]}],"backdrop-blur":[{"backdrop-blur":Rn()}],"backdrop-brightness":[{"backdrop-brightness":[Et,dt,ct]}],"backdrop-contrast":[{"backdrop-contrast":[Et,dt,ct]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Et,dt,ct]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Et,dt,ct]}],"backdrop-invert":[{"backdrop-invert":["",Et,dt,ct]}],"backdrop-opacity":[{"backdrop-opacity":[Et,dt,ct]}],"backdrop-saturate":[{"backdrop-saturate":[Et,dt,ct]}],"backdrop-sepia":[{"backdrop-sepia":["",Et,dt,ct]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",dt,ct]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Et,"initial",dt,ct]}],ease:[{ease:["linear","initial",A,dt,ct]}],delay:[{delay:[Et,dt,ct]}],animate:[{animate:["none",R,dt,ct]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,dt,ct]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:Sn()}],"rotate-x":[{"rotate-x":Sn()}],"rotate-y":[{"rotate-y":Sn()}],"rotate-z":[{"rotate-z":Sn()}],scale:[{scale:kn()}],"scale-x":[{"scale-x":kn()}],"scale-y":[{"scale-y":kn()}],"scale-z":[{"scale-z":kn()}],"scale-3d":["scale-3d"],skew:[{skew:ot()}],"skew-x":[{"skew-x":ot()}],"skew-y":[{"skew-y":ot()}],transform:[{transform:[dt,ct,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:rt()}],"translate-x":[{"translate-x":rt()}],"translate-y":[{"translate-y":rt()}],"translate-z":[{"translate-z":rt()}],"translate-none":["translate-none"],accent:[{accent:q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",dt,ct]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",dt,ct]}],fill:[{fill:["none",...q()]}],"stroke-w":[{stroke:[Et,Ms,ya,l0]}],stroke:[{stroke:["none",...q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},aT=V2(iT),Rb=P.createContext({});function rT(t){const n=P.useRef(null);return n.current===null&&(n.current=t()),n.current}const sT=typeof window<"u",oT=sT?P.useLayoutEffect:P.useEffect,sh=P.createContext(null);function oh(t,n){t.indexOf(n)===-1&&t.push(n)}function tu(t,n){const a=t.indexOf(n);a>-1&&t.splice(a,1)}const Gn=(t,n,a)=>a>n?n:a<t?t:a;let lh=()=>{};const hi={},kb=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function jb(t){return typeof t=="object"&&t!==null}const Vb=t=>/^0[^.\s]+$/u.test(t);function Bb(t){let n;return()=>(n===void 0&&(n=t()),n)}const bn=t=>t,lT=(t,n)=>a=>n(t(a)),to=(...t)=>t.reduce(lT),Zs=(t,n,a)=>{const s=n-t;return s===0?1:(a-t)/s};class uh{constructor(){this.subscriptions=[]}add(n){return oh(this.subscriptions,n),()=>tu(this.subscriptions,n)}notify(n,a,s){const l=this.subscriptions.length;if(l)if(l===1)this.subscriptions[0](n,a,s);else for(let c=0;c<l;c++){const u=this.subscriptions[c];u&&u(n,a,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Dn=t=>t*1e3,vn=t=>t/1e3;function Ub(t,n){return n?t*(1e3/n):0}const Lb=(t,n,a)=>(((1-3*a+3*n)*t+(3*a-6*n))*t+3*n)*t,uT=1e-7,cT=12;function fT(t,n,a,s,l){let c,u,h=0;do u=n+(a-n)/2,c=Lb(u,s,l)-t,c>0?a=u:n=u;while(Math.abs(c)>uT&&++h<cT);return u}function eo(t,n,a,s){if(t===n&&a===s)return bn;const l=c=>fT(c,0,1,t,a);return c=>c===0||c===1?c:Lb(l(c),n,s)}const Zb=t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2,Hb=t=>n=>1-t(1-n),$b=eo(.33,1.53,.69,.99),ch=Hb($b),Gb=Zb(ch),Yb=t=>(t*=2)<1?.5*ch(t):.5*(2-Math.pow(2,-10*(t-1))),fh=t=>1-Math.sin(Math.acos(t)),qb=Hb(fh),Xb=Zb(fh),dT=eo(.42,0,1,1),hT=eo(0,0,.58,1),Kb=eo(.42,0,.58,1),mT=t=>Array.isArray(t)&&typeof t[0]!="number",Qb=t=>Array.isArray(t)&&typeof t[0]=="number",pT={linear:bn,easeIn:dT,easeInOut:Kb,easeOut:hT,circIn:fh,circInOut:Xb,circOut:qb,backIn:ch,backInOut:Gb,backOut:$b,anticipate:Yb},gT=t=>typeof t=="string",f0=t=>{if(Qb(t)){lh(t.length===4);const[n,a,s,l]=t;return eo(n,a,s,l)}else if(gT(t))return pT[t];return t},Dl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yT(t,n){let a=new Set,s=new Set,l=!1,c=!1;const u=new WeakSet;let h={delta:0,timestamp:0,isProcessing:!1};function m(g){u.has(g)&&(p.schedule(g),t()),g(h)}const p={schedule:(g,b=!1,v=!1)=>{const _=v&&l?a:s;return b&&u.add(g),_.has(g)||_.add(g),g},cancel:g=>{s.delete(g),u.delete(g)},process:g=>{if(h=g,l){c=!0;return}l=!0,[a,s]=[s,a],a.forEach(m),a.clear(),l=!1,c&&(c=!1,p.process(g))}};return p}const vT=40;function Pb(t,n){let a=!1,s=!0;const l={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,u=Dl.reduce((O,C)=>(O[C]=yT(c),O),{}),{setup:h,read:m,resolveKeyframes:p,preUpdate:g,update:b,preRender:v,render:S,postRender:_}=u,w=()=>{const O=hi.useManualTiming?l.timestamp:performance.now();a=!1,hi.useManualTiming||(l.delta=s?1e3/60:Math.max(Math.min(O-l.timestamp,vT),1)),l.timestamp=O,l.isProcessing=!0,h.process(l),m.process(l),p.process(l),g.process(l),b.process(l),v.process(l),S.process(l),_.process(l),l.isProcessing=!1,a&&n&&(s=!1,t(w))},z=()=>{a=!0,s=!0,l.isProcessing||t(w)};return{schedule:Dl.reduce((O,C)=>{const L=u[C];return O[C]=(I,V=!1,k=!1)=>(a||z(),L.schedule(I,V,k)),O},{}),cancel:O=>{for(let C=0;C<Dl.length;C++)u[Dl[C]].cancel(O)},state:l,steps:u}}const{schedule:Kt,cancel:Ki,state:ze,steps:Jf}=Pb(typeof requestAnimationFrame<"u"?requestAnimationFrame:bn,!0);let Hl;function bT(){Hl=void 0}const Ve={now:()=>(Hl===void 0&&Ve.set(ze.isProcessing||hi.useManualTiming?ze.timestamp:performance.now()),Hl),set:t=>{Hl=t,queueMicrotask(bT)}},Fb=t=>n=>typeof n=="string"&&n.startsWith(t),Jb=Fb("--"),xT=Fb("var(--"),dh=t=>xT(t)?ST.test(t.split("/*")[0].trim()):!1,ST=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function d0(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Cr={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Hs={...Cr,transform:t=>Gn(0,1,t)},Nl={...Cr,default:1},Vs=t=>Math.round(t*1e5)/1e5,hh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function _T(t){return t==null}const wT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mh=(t,n)=>a=>!!(typeof a=="string"&&wT.test(a)&&a.startsWith(t)||n&&!_T(a)&&Object.prototype.hasOwnProperty.call(a,n)),Ib=(t,n,a)=>s=>{if(typeof s!="string")return s;const[l,c,u,h]=s.match(hh);return{[t]:parseFloat(l),[n]:parseFloat(c),[a]:parseFloat(u),alpha:h!==void 0?parseFloat(h):1}},TT=t=>Gn(0,255,t),If={...Cr,transform:t=>Math.round(TT(t))},xa={test:mh("rgb","red"),parse:Ib("red","green","blue"),transform:({red:t,green:n,blue:a,alpha:s=1})=>"rgba("+If.transform(t)+", "+If.transform(n)+", "+If.transform(a)+", "+Vs(Hs.transform(s))+")"};function AT(t){let n="",a="",s="",l="";return t.length>5?(n=t.substring(1,3),a=t.substring(3,5),s=t.substring(5,7),l=t.substring(7,9)):(n=t.substring(1,2),a=t.substring(2,3),s=t.substring(3,4),l=t.substring(4,5),n+=n,a+=a,s+=s,l+=l),{red:parseInt(n,16),green:parseInt(a,16),blue:parseInt(s,16),alpha:l?parseInt(l,16)/255:1}}const wd={test:mh("#"),parse:AT,transform:xa.transform},no=t=>({test:n=>typeof n=="string"&&n.endsWith(t)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${t}`}),$i=no("deg"),Zn=no("%"),ft=no("px"),zT=no("vh"),ET=no("vw"),h0={...Zn,parse:t=>Zn.parse(t)/100,transform:t=>Zn.transform(t*100)},gr={test:mh("hsl","hue"),parse:Ib("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:a,alpha:s=1})=>"hsla("+Math.round(t)+", "+Zn.transform(Vs(n))+", "+Zn.transform(Vs(a))+", "+Vs(Hs.transform(s))+")"},he={test:t=>xa.test(t)||wd.test(t)||gr.test(t),parse:t=>xa.test(t)?xa.parse(t):gr.test(t)?gr.parse(t):wd.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?xa.transform(t):gr.transform(t),getAnimatableNone:t=>{const n=he.parse(t);return n.alpha=0,he.transform(n)}},MT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function CT(t){return isNaN(t)&&typeof t=="string"&&(t.match(hh)?.length||0)+(t.match(MT)?.length||0)>0}const Wb="number",tx="color",DT="var",NT="var(",m0="${}",OT=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function $s(t){const n=t.toString(),a=[],s={color:[],number:[],var:[]},l=[];let c=0;const h=n.replace(OT,m=>(he.test(m)?(s.color.push(c),l.push(tx),a.push(he.parse(m))):m.startsWith(NT)?(s.var.push(c),l.push(DT),a.push(m)):(s.number.push(c),l.push(Wb),a.push(parseFloat(m))),++c,m0)).split(m0);return{values:a,split:h,indexes:s,types:l}}function ex(t){return $s(t).values}function nx(t){const{split:n,types:a}=$s(t),s=n.length;return l=>{let c="";for(let u=0;u<s;u++)if(c+=n[u],l[u]!==void 0){const h=a[u];h===Wb?c+=Vs(l[u]):h===tx?c+=he.transform(l[u]):c+=l[u]}return c}}const RT=t=>typeof t=="number"?0:he.test(t)?he.getAnimatableNone(t):t;function kT(t){const n=ex(t);return nx(t)(n.map(RT))}const Nn={test:CT,parse:ex,createTransformer:nx,getAnimatableNone:kT};function Wf(t,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?t+(n-t)*6*a:a<1/2?n:a<2/3?t+(n-t)*(2/3-a)*6:t}function jT({hue:t,saturation:n,lightness:a,alpha:s}){t/=360,n/=100,a/=100;let l=0,c=0,u=0;if(!n)l=c=u=a;else{const h=a<.5?a*(1+n):a+n-a*n,m=2*a-h;l=Wf(m,h,t+1/3),c=Wf(m,h,t),u=Wf(m,h,t-1/3)}return{red:Math.round(l*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:s}}function eu(t,n){return a=>a>0?n:t}const Wt=(t,n,a)=>t+(n-t)*a,td=(t,n,a)=>{const s=t*t,l=a*(n*n-s)+s;return l<0?0:Math.sqrt(l)},VT=[wd,xa,gr],BT=t=>VT.find(n=>n.test(t));function p0(t){const n=BT(t);if(!n)return!1;let a=n.parse(t);return n===gr&&(a=jT(a)),a}const g0=(t,n)=>{const a=p0(t),s=p0(n);if(!a||!s)return eu(t,n);const l={...a};return c=>(l.red=td(a.red,s.red,c),l.green=td(a.green,s.green,c),l.blue=td(a.blue,s.blue,c),l.alpha=Wt(a.alpha,s.alpha,c),xa.transform(l))},Td=new Set(["none","hidden"]);function UT(t,n){return Td.has(t)?a=>a<=0?t:n:a=>a>=1?n:t}function LT(t,n){return a=>Wt(t,n,a)}function ph(t){return typeof t=="number"?LT:typeof t=="string"?dh(t)?eu:he.test(t)?g0:$T:Array.isArray(t)?ix:typeof t=="object"?he.test(t)?g0:ZT:eu}function ix(t,n){const a=[...t],s=a.length,l=t.map((c,u)=>ph(c)(c,n[u]));return c=>{for(let u=0;u<s;u++)a[u]=l[u](c);return a}}function ZT(t,n){const a={...t,...n},s={};for(const l in a)t[l]!==void 0&&n[l]!==void 0&&(s[l]=ph(t[l])(t[l],n[l]));return l=>{for(const c in s)a[c]=s[c](l);return a}}function HT(t,n){const a=[],s={color:0,var:0,number:0};for(let l=0;l<n.values.length;l++){const c=n.types[l],u=t.indexes[c][s[c]],h=t.values[u]??0;a[l]=h,s[c]++}return a}const $T=(t,n)=>{const a=Nn.createTransformer(n),s=$s(t),l=$s(n);return s.indexes.var.length===l.indexes.var.length&&s.indexes.color.length===l.indexes.color.length&&s.indexes.number.length>=l.indexes.number.length?Td.has(t)&&!l.values.length||Td.has(n)&&!s.values.length?UT(t,n):to(ix(HT(s,l),l.values),a):eu(t,n)};function ax(t,n,a){return typeof t=="number"&&typeof n=="number"&&typeof a=="number"?Wt(t,n,a):ph(t)(t,n)}const GT=t=>{const n=({timestamp:a})=>t(a);return{start:(a=!0)=>Kt.update(n,a),stop:()=>Ki(n),now:()=>ze.isProcessing?ze.timestamp:Ve.now()}},rx=(t,n,a=10)=>{let s="";const l=Math.max(Math.round(n/a),2);for(let c=0;c<l;c++)s+=Math.round(t(c/(l-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},nu=2e4;function gh(t){let n=0;const a=50;let s=t.next(n);for(;!s.done&&n<nu;)n+=a,s=t.next(n);return n>=nu?1/0:n}function YT(t,n=100,a){const s=a({...t,keyframes:[0,n]}),l=Math.min(gh(s),nu);return{type:"keyframes",ease:c=>s.next(l*c).value/n,duration:vn(l)}}const qT=5;function sx(t,n,a){const s=Math.max(n-qT,0);return Ub(a-t(s),n-s)}const ie={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},ed=.001;function XT({duration:t=ie.duration,bounce:n=ie.bounce,velocity:a=ie.velocity,mass:s=ie.mass}){let l,c,u=1-n;u=Gn(ie.minDamping,ie.maxDamping,u),t=Gn(ie.minDuration,ie.maxDuration,vn(t)),u<1?(l=p=>{const g=p*u,b=g*t,v=g-a,S=Ad(p,u),_=Math.exp(-b);return ed-v/S*_},c=p=>{const b=p*u*t,v=b*a+a,S=Math.pow(u,2)*Math.pow(p,2)*t,_=Math.exp(-b),w=Ad(Math.pow(p,2),u);return(-l(p)+ed>0?-1:1)*((v-S)*_)/w}):(l=p=>{const g=Math.exp(-p*t),b=(p-a)*t+1;return-ed+g*b},c=p=>{const g=Math.exp(-p*t),b=(a-p)*(t*t);return g*b});const h=5/t,m=QT(l,c,h);if(t=Dn(t),isNaN(m))return{stiffness:ie.stiffness,damping:ie.damping,duration:t};{const p=Math.pow(m,2)*s;return{stiffness:p,damping:u*2*Math.sqrt(s*p),duration:t}}}const KT=12;function QT(t,n,a){let s=a;for(let l=1;l<KT;l++)s=s-t(s)/n(s);return s}function Ad(t,n){return t*Math.sqrt(1-n*n)}const PT=["duration","bounce"],FT=["stiffness","damping","mass"];function y0(t,n){return n.some(a=>t[a]!==void 0)}function JT(t){let n={velocity:ie.velocity,stiffness:ie.stiffness,damping:ie.damping,mass:ie.mass,isResolvedFromDuration:!1,...t};if(!y0(t,FT)&&y0(t,PT))if(n.velocity=0,t.visualDuration){const a=t.visualDuration,s=2*Math.PI/(a*1.2),l=s*s,c=2*Gn(.05,1,1-(t.bounce||0))*Math.sqrt(l);n={...n,mass:ie.mass,stiffness:l,damping:c}}else{const a=XT({...t,velocity:0});n={...n,...a,mass:ie.mass},n.isResolvedFromDuration=!0}return n}function iu(t=ie.visualDuration,n=ie.bounce){const a=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:n}:t;let{restSpeed:s,restDelta:l}=a;const c=a.keyframes[0],u=a.keyframes[a.keyframes.length-1],h={done:!1,value:c},{stiffness:m,damping:p,mass:g,duration:b,velocity:v,isResolvedFromDuration:S}=JT({...a,velocity:-vn(a.velocity||0)}),_=v||0,w=p/(2*Math.sqrt(m*g)),z=u-c,A=vn(Math.sqrt(m/g)),R=Math.abs(z)<5;s||(s=R?ie.restSpeed.granular:ie.restSpeed.default),l||(l=R?ie.restDelta.granular:ie.restDelta.default);let O;if(w<1){const L=Ad(A,w);O=I=>{const V=Math.exp(-w*A*I);return u-V*((_+w*A*z)/L*Math.sin(L*I)+z*Math.cos(L*I))}}else if(w===1)O=L=>u-Math.exp(-A*L)*(z+(_+A*z)*L);else{const L=A*Math.sqrt(w*w-1);O=I=>{const V=Math.exp(-w*A*I),k=Math.min(L*I,300);return u-V*((_+w*A*z)*Math.sinh(k)+L*z*Math.cosh(k))/L}}const C={calculatedDuration:S&&b||null,next:L=>{const I=O(L);if(S)h.done=L>=b;else{let V=L===0?_:0;w<1&&(V=L===0?Dn(_):sx(O,L,I));const k=Math.abs(V)<=s,tt=Math.abs(u-I)<=l;h.done=k&&tt}return h.value=h.done?u:I,h},toString:()=>{const L=Math.min(gh(C),nu),I=rx(V=>C.next(L*V).value,L,30);return L+"ms "+I},toTransition:()=>{}};return C}iu.applyToOptions=t=>{const n=YT(t,100,iu);return t.ease=n.ease,t.duration=Dn(n.duration),t.type="keyframes",t};function zd({keyframes:t,velocity:n=0,power:a=.8,timeConstant:s=325,bounceDamping:l=10,bounceStiffness:c=500,modifyTarget:u,min:h,max:m,restDelta:p=.5,restSpeed:g}){const b=t[0],v={done:!1,value:b},S=k=>h!==void 0&&k<h||m!==void 0&&k>m,_=k=>h===void 0?m:m===void 0||Math.abs(h-k)<Math.abs(m-k)?h:m;let w=a*n;const z=b+w,A=u===void 0?z:u(z);A!==z&&(w=A-b);const R=k=>-w*Math.exp(-k/s),O=k=>A+R(k),C=k=>{const tt=R(k),at=O(k);v.done=Math.abs(tt)<=p,v.value=v.done?A:at};let L,I;const V=k=>{S(v.value)&&(L=k,I=iu({keyframes:[v.value,_(v.value)],velocity:sx(O,k,v.value),damping:l,stiffness:c,restDelta:p,restSpeed:g}))};return V(0),{calculatedDuration:null,next:k=>{let tt=!1;return!I&&L===void 0&&(tt=!0,C(k),V(k)),L!==void 0&&k>=L?I.next(k-L):(!tt&&C(k),v)}}}function IT(t,n,a){const s=[],l=a||hi.mix||ax,c=t.length-1;for(let u=0;u<c;u++){let h=l(t[u],t[u+1]);if(n){const m=Array.isArray(n)?n[u]||bn:n;h=to(m,h)}s.push(h)}return s}function WT(t,n,{clamp:a=!0,ease:s,mixer:l}={}){const c=t.length;if(lh(c===n.length),c===1)return()=>n[0];if(c===2&&n[0]===n[1])return()=>n[1];const u=t[0]===t[1];t[0]>t[c-1]&&(t=[...t].reverse(),n=[...n].reverse());const h=IT(n,s,l),m=h.length,p=g=>{if(u&&g<t[0])return n[0];let b=0;if(m>1)for(;b<t.length-2&&!(g<t[b+1]);b++);const v=Zs(t[b],t[b+1],g);return h[b](v)};return a?g=>p(Gn(t[0],t[c-1],g)):p}function tA(t,n){const a=t[t.length-1];for(let s=1;s<=n;s++){const l=Zs(0,n,s);t.push(Wt(a,1,l))}}function eA(t){const n=[0];return tA(n,t.length-1),n}function nA(t,n){return t.map(a=>a*n)}function iA(t,n){return t.map(()=>n||Kb).splice(0,t.length-1)}function Bs({duration:t=300,keyframes:n,times:a,ease:s="easeInOut"}){const l=mT(s)?s.map(f0):f0(s),c={done:!1,value:n[0]},u=nA(a&&a.length===n.length?a:eA(n),t),h=WT(u,n,{ease:Array.isArray(l)?l:iA(n,l)});return{calculatedDuration:t,next:m=>(c.value=h(m),c.done=m>=t,c)}}const aA=t=>t!==null;function yh(t,{repeat:n,repeatType:a="loop"},s,l=1){const c=t.filter(aA),h=l<0||n&&a!=="loop"&&n%2===1?0:c.length-1;return!h||s===void 0?c[h]:s}const rA={decay:zd,inertia:zd,tween:Bs,keyframes:Bs,spring:iu};function ox(t){typeof t.type=="string"&&(t.type=rA[t.type])}class vh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,a){return this.finished.then(n,a)}}const sA=t=>t/100;class bh extends vh{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==Ve.now()&&this.tick(Ve.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;ox(n);const{type:a=Bs,repeat:s=0,repeatDelay:l=0,repeatType:c,velocity:u=0}=n;let{keyframes:h}=n;const m=a||Bs;m!==Bs&&typeof h[0]!="number"&&(this.mixKeyframes=to(sA,ax(h[0],h[1])),h=[0,100]);const p=m({...n,keyframes:h});c==="mirror"&&(this.mirroredGenerator=m({...n,keyframes:[...h].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=gh(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+l,this.totalDuration=this.resolvedDuration*(s+1)-l,this.generator=p}updateTime(n){const a=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(n,a=!1){const{generator:s,totalDuration:l,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:g,repeat:b,repeatType:v,repeatDelay:S,type:_,onUpdate:w,finalKeyframe:z}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-l/this.speed,this.startTime)),a?this.currentTime=n:this.updateTime(n);const A=this.currentTime-p*(this.playbackSpeed>=0?1:-1),R=this.playbackSpeed>=0?A<0:A>l;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=l);let O=this.currentTime,C=s;if(b){const k=Math.min(this.currentTime,l)/h;let tt=Math.floor(k),at=k%1;!at&&k>=1&&(at=1),at===1&&tt--,tt=Math.min(tt,b+1),tt%2&&(v==="reverse"?(at=1-at,S&&(at-=S/h)):v==="mirror"&&(C=u)),O=Gn(0,1,at)*h}const L=R?{done:!1,value:g[0]}:C.next(O);c&&(L.value=c(L.value));let{done:I}=L;!R&&m!==null&&(I=this.playbackSpeed>=0?this.currentTime>=l:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return V&&_!==zd&&(L.value=yh(g,this.options,z,this.speed)),w&&w(L.value),V&&this.finish(),L}then(n,a){return this.finished.then(n,a)}get duration(){return vn(this.calculatedDuration)}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+vn(n)}get time(){return vn(this.currentTime)}set time(n){n=Dn(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(Ve.now());const a=this.playbackSpeed!==n;this.playbackSpeed=n,a&&(this.time=vn(this.currentTime))}play(){if(this.isStopped)return;const{driver:n=GT,startTime:a}=this.options;this.driver||(this.driver=n(l=>this.tick(l))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=a??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ve.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),n.observe(this)}}function oA(t){for(let n=1;n<t.length;n++)t[n]??(t[n]=t[n-1])}const Sa=t=>t*180/Math.PI,Ed=t=>{const n=Sa(Math.atan2(t[1],t[0]));return Md(n)},lA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Ed,rotateZ:Ed,skewX:t=>Sa(Math.atan(t[1])),skewY:t=>Sa(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Md=t=>(t=t%360,t<0&&(t+=360),t),v0=Ed,b0=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),x0=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),uA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:b0,scaleY:x0,scale:t=>(b0(t)+x0(t))/2,rotateX:t=>Md(Sa(Math.atan2(t[6],t[5]))),rotateY:t=>Md(Sa(Math.atan2(-t[2],t[0]))),rotateZ:v0,rotate:v0,skewX:t=>Sa(Math.atan(t[4])),skewY:t=>Sa(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Cd(t){return t.includes("scale")?1:0}function Dd(t,n){if(!t||t==="none")return Cd(n);const a=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,l;if(a)s=uA,l=a;else{const h=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=lA,l=h}if(!l)return Cd(n);const c=s[n],u=l[1].split(",").map(fA);return typeof c=="function"?c(u):u[c]}const cA=(t,n)=>{const{transform:a="none"}=getComputedStyle(t);return Dd(a,n)};function fA(t){return parseFloat(t.trim())}const Dr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Nr=new Set(Dr),S0=t=>t===Cr||t===ft,dA=new Set(["x","y","z"]),hA=Dr.filter(t=>!dA.has(t));function mA(t){const n=[];return hA.forEach(a=>{const s=t.getValue(a);s!==void 0&&(n.push([a,s.get()]),s.set(a.startsWith("scale")?1:0))}),n}const qi={width:({x:t},{paddingLeft:n="0",paddingRight:a="0"})=>t.max-t.min-parseFloat(n)-parseFloat(a),height:({y:t},{paddingTop:n="0",paddingBottom:a="0"})=>t.max-t.min-parseFloat(n)-parseFloat(a),top:(t,{top:n})=>parseFloat(n),left:(t,{left:n})=>parseFloat(n),bottom:({y:t},{top:n})=>parseFloat(n)+(t.max-t.min),right:({x:t},{left:n})=>parseFloat(n)+(t.max-t.min),x:(t,{transform:n})=>Dd(n,"x"),y:(t,{transform:n})=>Dd(n,"y")};qi.translateX=qi.x;qi.translateY=qi.y;const wa=new Set;let Nd=!1,Od=!1,Rd=!1;function lx(){if(Od){const t=Array.from(wa).filter(s=>s.needsMeasurement),n=new Set(t.map(s=>s.element)),a=new Map;n.forEach(s=>{const l=mA(s);l.length&&(a.set(s,l),s.render())}),t.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const l=a.get(s);l&&l.forEach(([c,u])=>{s.getValue(c)?.set(u)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Od=!1,Nd=!1,wa.forEach(t=>t.complete(Rd)),wa.clear()}function ux(){wa.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Od=!0)})}function pA(){Rd=!0,ux(),lx(),Rd=!1}class xh{constructor(n,a,s,l,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=a,this.name=s,this.motionValue=l,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(wa.add(this),Nd||(Nd=!0,Kt.read(ux),Kt.resolveKeyframes(lx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:a,element:s,motionValue:l}=this;if(n[0]===null){const c=l?.get(),u=n[n.length-1];if(c!==void 0)n[0]=c;else if(s&&a){const h=s.readValue(a,u);h!=null&&(n[0]=h)}n[0]===void 0&&(n[0]=u),l&&c===void 0&&l.set(n[0])}oA(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),wa.delete(this)}cancel(){this.state==="scheduled"&&(wa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const gA=t=>t.startsWith("--");function yA(t,n,a){gA(n)?t.style.setProperty(n,a):t.style[n]=a}const vA={};function cx(t,n){const a=Bb(t);return()=>vA[n]??a()}const bA=cx(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),fx=cx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Os=([t,n,a,s])=>`cubic-bezier(${t}, ${n}, ${a}, ${s})`,_0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Os([0,.65,.55,1]),circOut:Os([.55,0,1,.45]),backIn:Os([.31,.01,.66,-.59]),backOut:Os([.33,1.53,.69,.99])};function dx(t,n){if(t)return typeof t=="function"?fx()?rx(t,n):"ease-out":Qb(t)?Os(t):Array.isArray(t)?t.map(a=>dx(a,n)||_0.easeOut):_0[t]}function xA(t,n,a,{delay:s=0,duration:l=300,repeat:c=0,repeatType:u="loop",ease:h="easeOut",times:m}={},p=void 0){const g={[n]:a};m&&(g.offset=m);const b=dx(h,l);Array.isArray(b)&&(g.easing=b);const v={delay:s,duration:l,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return p&&(v.pseudoElement=p),t.animate(g,v)}function hx(t){return typeof t=="function"&&"applyToOptions"in t}function SA({type:t,...n}){return hx(t)&&fx()?t.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class mx extends vh{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!n)return;const{element:a,name:s,keyframes:l,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:h,onComplete:m}=n;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=n,lh(typeof n.type!="string");const p=SA(n);this.animation=xA(a,s,l,p,c),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const g=yh(l,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(g),yA(a,s,g),this.animation.cancel()}m?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const n=this.options?.element;!this.isPseudoElement&&n?.isConnected&&this.animation.commitStyles?.()}get duration(){const n=this.animation.effect?.getComputedTiming?.().duration||0;return vn(Number(n))}get iterationDuration(){const{delay:n=0}=this.options||{};return this.duration+vn(n)}get time(){return vn(Number(this.animation.currentTime)||0)}set time(n){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Dn(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(n){this.manualStartTime=this.animation.startTime=n}attachTimeline({timeline:n,rangeStart:a,rangeEnd:s,observe:l}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,n&&bA()?(this.animation.timeline=n,a&&(this.animation.rangeStart=a),s&&(this.animation.rangeEnd=s),bn):l(this)}}const px={anticipate:Yb,backInOut:Gb,circInOut:Xb};function _A(t){return t in px}function wA(t){typeof t.ease=="string"&&_A(t.ease)&&(t.ease=px[t.ease])}const nd=10;class TA extends mx{constructor(n){wA(n),ox(n),super(n),n.startTime!==void 0&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:a,onUpdate:s,onComplete:l,element:c,...u}=this.options;if(!a)return;if(n!==void 0){a.set(n);return}const h=new bh({...u,autoplay:!1}),m=Math.max(nd,Ve.now()-this.startTime),p=Gn(0,nd,m-nd);a.setWithVelocity(h.sample(Math.max(0,m-p)).value,h.sample(m).value,p),h.stop()}}const w0=(t,n)=>n==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Nn.test(t)||t==="0")&&!t.startsWith("url("));function AA(t){const n=t[0];if(t.length===1)return!0;for(let a=0;a<t.length;a++)if(t[a]!==n)return!0}function zA(t,n,a,s){const l=t[0];if(l===null)return!1;if(n==="display"||n==="visibility")return!0;const c=t[t.length-1],u=w0(l,n),h=w0(c,n);return!u||!h?!1:AA(t)||(a==="spring"||hx(a))&&s}function kd(t){t.duration=0,t.type="keyframes"}const EA=new Set(["opacity","clipPath","filter","transform"]),MA=Bb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function CA(t){const{motionValue:n,name:a,repeatDelay:s,repeatType:l,damping:c,type:u}=t;if(!(n?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:p}=n.owner.getProps();return MA()&&a&&EA.has(a)&&(a!=="transform"||!p)&&!m&&!s&&l!=="mirror"&&c!==0&&u!=="inertia"}const DA=40;class NA extends vh{constructor({autoplay:n=!0,delay:a=0,type:s="keyframes",repeat:l=0,repeatDelay:c=0,repeatType:u="loop",keyframes:h,name:m,motionValue:p,element:g,...b}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ve.now();const v={autoplay:n,delay:a,type:s,repeat:l,repeatDelay:c,repeatType:u,name:m,motionValue:p,element:g,...b},S=g?.KeyframeResolver||xh;this.keyframeResolver=new S(h,(_,w,z)=>this.onKeyframesResolved(_,w,v,!z),m,p,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,a,s,l){this.keyframeResolver=void 0;const{name:c,type:u,velocity:h,delay:m,isHandoff:p,onUpdate:g}=s;this.resolvedAt=Ve.now(),zA(n,c,u,h)||((hi.instantAnimations||!m)&&g?.(yh(n,s,a)),n[0]=n[n.length-1],kd(s),s.repeat=0);const v={startTime:l?this.resolvedAt?this.resolvedAt-this.createdAt>DA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...s,keyframes:n},S=!p&&CA(v),_=v.motionValue?.owner?.current,w=S?new TA({...v,element:_}):new bh(v);w.finished.then(()=>{this.notifyFinished()}).catch(bn),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(n,a){return this.finished.finally(n).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),pA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function gx(t,n,a,s=0,l=1){const c=Array.from(t).sort((p,g)=>p.sortNodePosition(g)).indexOf(n),u=t.size,h=(u-1)*s;return typeof a=="function"?a(c,u):l===1?c*s:h-c*s}const OA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RA(t){const n=OA.exec(t);if(!n)return[,];const[,a,s,l]=n;return[`--${a??s}`,l]}function yx(t,n,a=1){const[s,l]=RA(t);if(!s)return;const c=window.getComputedStyle(n).getPropertyValue(s);if(c){const u=c.trim();return kb(u)?parseFloat(u):u}return dh(l)?yx(l,n,a+1):l}const kA={type:"spring",stiffness:500,damping:25,restSpeed:10},jA=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),VA={type:"keyframes",duration:.8},BA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},UA=(t,{keyframes:n})=>n.length>2?VA:Nr.has(t)?t.startsWith("scale")?jA(n[1]):kA:BA,LA=t=>t!==null;function ZA(t,{repeat:n,repeatType:a="loop"},s){const l=t.filter(LA),c=n&&a!=="loop"&&n%2===1?0:l.length-1;return l[c]}function vx(t,n){if(t?.inherit&&n){const{inherit:a,...s}=t;return{...n,...s}}return t}function Sh(t,n){const a=t?.[n]??t?.default??t;return a!==t?vx(a,t):a}function HA({when:t,delay:n,delayChildren:a,staggerChildren:s,staggerDirection:l,repeat:c,repeatType:u,repeatDelay:h,from:m,elapsed:p,...g}){return!!Object.keys(g).length}const _h=(t,n,a,s={},l,c)=>u=>{const h=Sh(s,t)||{},m=h.delay||s.delay||0;let{elapsed:p=0}=s;p=p-Dn(m);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:n.getVelocity(),...h,delay:-p,onUpdate:v=>{n.set(v),h.onUpdate&&h.onUpdate(v)},onComplete:()=>{u(),h.onComplete&&h.onComplete()},name:t,motionValue:n,element:c?void 0:l};HA(h)||Object.assign(g,UA(t,g)),g.duration&&(g.duration=Dn(g.duration)),g.repeatDelay&&(g.repeatDelay=Dn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let b=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(kd(g),g.delay===0&&(b=!0)),(hi.instantAnimations||hi.skipAnimations||l?.shouldSkipAnimations)&&(b=!0,kd(g),g.delay=0),g.allowFlatten=!h.type&&!h.ease,b&&!c&&n.get()!==void 0){const v=ZA(g.keyframes,h);if(v!==void 0){Kt.update(()=>{g.onUpdate(v),g.onComplete()});return}}return h.isSync?new bh(g):new NA(g)};function T0(t){const n=[{},{}];return t?.values.forEach((a,s)=>{n[0][s]=a.get(),n[1][s]=a.getVelocity()}),n}function wh(t,n,a,s){if(typeof n=="function"){const[l,c]=T0(s);n=n(a!==void 0?a:t.custom,l,c)}if(typeof n=="string"&&(n=t.variants&&t.variants[n]),typeof n=="function"){const[l,c]=T0(s);n=n(a!==void 0?a:t.custom,l,c)}return n}function _r(t,n,a){const s=t.getProps();return wh(s,n,a!==void 0?a:s.custom,t)}const bx=new Set(["width","height","top","left","right","bottom",...Dr]),A0=30,$A=t=>!isNaN(parseFloat(t));class GA{constructor(n,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const l=Ve.now();if(this.updatedAt!==l&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=a.owner}setCurrent(n){this.current=n,this.updatedAt=Ve.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=$A(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,a){this.events[n]||(this.events[n]=new uh);const s=this.events[n].add(a);return n==="change"?()=>{s(),Kt.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,a){this.passiveEffect=n,this.stopPassiveEffect=a}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,a,s){this.set(a),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,a=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=Ve.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>A0)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,A0);return Ub(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(n){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=n(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zr(t,n){return new GA(t,n)}const jd=t=>Array.isArray(t);function YA(t,n,a){t.hasValue(n)?t.getValue(n).set(a):t.addValue(n,zr(a))}function qA(t){return jd(t)?t[t.length-1]||0:t}function XA(t,n){const a=_r(t,n);let{transitionEnd:s={},transition:l={},...c}=a||{};c={...c,...s};for(const u in c){const h=qA(c[u]);YA(t,u,h)}}const Ce=t=>!!(t&&t.getVelocity);function KA(t){return!!(Ce(t)&&t.add)}function Vd(t,n){const a=t.getValue("willChange");if(KA(a))return a.add(n);if(!a&&hi.WillChange){const s=new hi.WillChange("auto");t.addValue("willChange",s),s.add(n)}}function Th(t){return t.replace(/([A-Z])/g,n=>`-${n.toLowerCase()}`)}const QA="framerAppearId",xx="data-"+Th(QA);function Sx(t){return t.props[xx]}function PA({protectedKeys:t,needsAnimating:n},a){const s=t.hasOwnProperty(a)&&n[a]!==!0;return n[a]=!1,s}function _x(t,n,{delay:a=0,transitionOverride:s,type:l}={}){let{transition:c,transitionEnd:u,...h}=n;const m=t.getDefaultTransition();c=c?vx(c,m):m;const p=c?.reduceMotion;s&&(c=s);const g=[],b=l&&t.animationState&&t.animationState.getState()[l];for(const v in h){const S=t.getValue(v,t.latestValues[v]??null),_=h[v];if(_===void 0||b&&PA(b,v))continue;const w={delay:a,...Sh(c||{},v)},z=S.get();if(z!==void 0&&!S.isAnimating&&!Array.isArray(_)&&_===z&&!w.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const C=Sx(t);if(C){const L=window.MotionHandoffAnimation(C,v,Kt);L!==null&&(w.startTime=L,A=!0)}}Vd(t,v);const R=p??t.shouldReduceMotion;S.start(_h(v,S,_,R&&bx.has(v)?{type:!1}:w,t,A));const O=S.animation;O&&g.push(O)}if(u){const v=()=>Kt.update(()=>{u&&XA(t,u)});g.length?Promise.all(g).then(v):v()}return g}function Bd(t,n,a={}){const s=_r(t,n,a.type==="exit"?t.presenceContext?.custom:void 0);let{transition:l=t.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(l=a.transitionOverride);const c=s?()=>Promise.all(_x(t,s,a)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(m=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:b}=l;return FA(t,n,m,p,g,b,a)}:()=>Promise.resolve(),{when:h}=l;if(h){const[m,p]=h==="beforeChildren"?[c,u]:[u,c];return m().then(()=>p())}else return Promise.all([c(),u(a.delay)])}function FA(t,n,a=0,s=0,l=0,c=1,u){const h=[];for(const m of t.variantChildren)m.notify("AnimationStart",n),h.push(Bd(m,n,{...u,delay:a+(typeof s=="function"?0:s)+gx(t.variantChildren,m,s,l,c)}).then(()=>m.notify("AnimationComplete",n)));return Promise.all(h)}function JA(t,n,a={}){t.notify("AnimationStart",n);let s;if(Array.isArray(n)){const l=n.map(c=>Bd(t,c,a));s=Promise.all(l)}else if(typeof n=="string")s=Bd(t,n,a);else{const l=typeof n=="function"?_r(t,n,a.custom):n;s=Promise.all(_x(t,l,a))}return s.then(()=>{t.notify("AnimationComplete",n)})}const IA={test:t=>t==="auto",parse:t=>t},wx=t=>n=>n.test(t),Tx=[Cr,ft,Zn,$i,ET,zT,IA],z0=t=>Tx.find(wx(t));function WA(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Vb(t):!0}const tz=new Set(["brightness","contrast","saturate","opacity"]);function ez(t){const[n,a]=t.slice(0,-1).split("(");if(n==="drop-shadow")return t;const[s]=a.match(hh)||[];if(!s)return t;const l=a.replace(s,"");let c=tz.has(n)?1:0;return s!==a&&(c*=100),n+"("+c+l+")"}const nz=/\b([a-z-]*)\(.*?\)/gu,Ud={...Nn,getAnimatableNone:t=>{const n=t.match(nz);return n?n.map(ez).join(" "):t}},Ld={...Nn,getAnimatableNone:t=>{const n=Nn.parse(t);return Nn.createTransformer(t)(n.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},E0={...Cr,transform:Math.round},iz={rotate:$i,rotateX:$i,rotateY:$i,rotateZ:$i,scale:Nl,scaleX:Nl,scaleY:Nl,scaleZ:Nl,skew:$i,skewX:$i,skewY:$i,distance:ft,translateX:ft,translateY:ft,translateZ:ft,x:ft,y:ft,z:ft,perspective:ft,transformPerspective:ft,opacity:Hs,originX:h0,originY:h0,originZ:ft},Ah={borderWidth:ft,borderTopWidth:ft,borderRightWidth:ft,borderBottomWidth:ft,borderLeftWidth:ft,borderRadius:ft,borderTopLeftRadius:ft,borderTopRightRadius:ft,borderBottomRightRadius:ft,borderBottomLeftRadius:ft,width:ft,maxWidth:ft,height:ft,maxHeight:ft,top:ft,right:ft,bottom:ft,left:ft,inset:ft,insetBlock:ft,insetBlockStart:ft,insetBlockEnd:ft,insetInline:ft,insetInlineStart:ft,insetInlineEnd:ft,padding:ft,paddingTop:ft,paddingRight:ft,paddingBottom:ft,paddingLeft:ft,paddingBlock:ft,paddingBlockStart:ft,paddingBlockEnd:ft,paddingInline:ft,paddingInlineStart:ft,paddingInlineEnd:ft,margin:ft,marginTop:ft,marginRight:ft,marginBottom:ft,marginLeft:ft,marginBlock:ft,marginBlockStart:ft,marginBlockEnd:ft,marginInline:ft,marginInlineStart:ft,marginInlineEnd:ft,fontSize:ft,backgroundPositionX:ft,backgroundPositionY:ft,...iz,zIndex:E0,fillOpacity:Hs,strokeOpacity:Hs,numOctaves:E0},az={...Ah,color:he,backgroundColor:he,outlineColor:he,fill:he,stroke:he,borderColor:he,borderTopColor:he,borderRightColor:he,borderBottomColor:he,borderLeftColor:he,filter:Ud,WebkitFilter:Ud,mask:Ld,WebkitMask:Ld},Ax=t=>az[t],rz=new Set([Ud,Ld]);function zx(t,n){let a=Ax(t);return rz.has(a)||(a=Nn),a.getAnimatableNone?a.getAnimatableNone(n):void 0}const sz=new Set(["auto","none","0"]);function oz(t,n,a){let s=0,l;for(;s<t.length&&!l;){const c=t[s];typeof c=="string"&&!sz.has(c)&&$s(c).values.length&&(l=t[s]),s++}if(l&&a)for(const c of n)t[c]=zx(a,l)}class lz extends xh{constructor(n,a,s,l,c){super(n,a,s,l,c,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:a,name:s}=this;if(!a||!a.current)return;super.readKeyframes();for(let g=0;g<n.length;g++){let b=n[g];if(typeof b=="string"&&(b=b.trim(),dh(b))){const v=yx(b,a.current);v!==void 0&&(n[g]=v),g===n.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!bx.has(s)||n.length!==2)return;const[l,c]=n,u=z0(l),h=z0(c),m=d0(l),p=d0(c);if(m!==p&&qi[s]){this.needsMeasurement=!0;return}if(u!==h)if(S0(u)&&S0(h))for(let g=0;g<n.length;g++){const b=n[g];typeof b=="string"&&(n[g]=parseFloat(b))}else qi[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:a}=this,s=[];for(let l=0;l<n.length;l++)(n[l]===null||WA(n[l]))&&s.push(l);s.length&&oz(n,s,a)}measureInitialState(){const{element:n,unresolvedKeyframes:a,name:s}=this;if(!n||!n.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qi[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a[0]=this.measuredOrigin;const l=a[a.length-1];l!==void 0&&n.getValue(s,l).jump(l,!1)}measureEndState(){const{element:n,name:a,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const l=n.getValue(a);l&&l.jump(this.measuredOrigin,!1);const c=s.length-1,u=s[c];s[c]=qi[a](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([h,m])=>{n.getValue(h).set(m)}),this.resolveNoneKeyframes()}}const uz=new Set(["opacity","clipPath","filter","transform"]);function Ex(t,n,a){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const l=a?.[t]??s.querySelectorAll(t);return l?Array.from(l):[]}return Array.from(t).filter(s=>s!=null)}const Mx=(t,n)=>n&&typeof t=="number"?n.transform(t):t;function cz(t){return jb(t)&&"offsetHeight"in t}const{schedule:zh}=Pb(queueMicrotask,!1),En={x:!1,y:!1};function Cx(){return En.x||En.y}function fz(t){return t==="x"||t==="y"?En[t]?null:(En[t]=!0,()=>{En[t]=!1}):En.x||En.y?null:(En.x=En.y=!0,()=>{En.x=En.y=!1})}function Dx(t,n){const a=Ex(t),s=new AbortController,l={passive:!0,...n,signal:s.signal};return[a,l,()=>s.abort()]}function dz(t){return!(t.pointerType==="touch"||Cx())}function hz(t,n,a={}){const[s,l,c]=Dx(t,a);return s.forEach(u=>{let h=!1,m=!1,p;const g=()=>{u.removeEventListener("pointerleave",_)},b=z=>{p&&(p(z),p=void 0),g()},v=z=>{h=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),m&&(m=!1,b(z))},S=()=>{h=!0,window.addEventListener("pointerup",v,l),window.addEventListener("pointercancel",v,l)},_=z=>{if(z.pointerType!=="touch"){if(h){m=!0;return}b(z)}},w=z=>{if(!dz(z))return;m=!1;const A=n(u,z);typeof A=="function"&&(p=A,u.addEventListener("pointerleave",_,l))};u.addEventListener("pointerenter",w,l),u.addEventListener("pointerdown",S,l)}),c}const Nx=(t,n)=>n?t===n?!0:Nx(t,n.parentElement):!1,Eh=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,mz=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pz(t){return mz.has(t.tagName)||t.isContentEditable===!0}const gz=new Set(["INPUT","SELECT","TEXTAREA"]);function yz(t){return gz.has(t.tagName)||t.isContentEditable===!0}const $l=new WeakSet;function M0(t){return n=>{n.key==="Enter"&&t(n)}}function id(t,n){t.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const vz=(t,n)=>{const a=t.currentTarget;if(!a)return;const s=M0(()=>{if($l.has(a))return;id(a,"down");const l=M0(()=>{id(a,"up")}),c=()=>id(a,"cancel");a.addEventListener("keyup",l,n),a.addEventListener("blur",c,n)});a.addEventListener("keydown",s,n),a.addEventListener("blur",()=>a.removeEventListener("keydown",s),n)};function C0(t){return Eh(t)&&!Cx()}const D0=new WeakSet;function bz(t,n,a={}){const[s,l,c]=Dx(t,a),u=h=>{const m=h.currentTarget;if(!C0(h)||D0.has(h))return;$l.add(m),a.stopPropagation&&D0.add(h);const p=n(m,h),g=(S,_)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",v),$l.has(m)&&$l.delete(m),C0(S)&&typeof p=="function"&&p(S,{success:_})},b=S=>{g(S,m===window||m===document||a.useGlobalTarget||Nx(m,S.target))},v=S=>{g(S,!1)};window.addEventListener("pointerup",b,l),window.addEventListener("pointercancel",v,l)};return s.forEach(h=>{(a.useGlobalTarget?window:h).addEventListener("pointerdown",u,l),cz(h)&&(h.addEventListener("focus",p=>vz(p,l)),!pz(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),c}function Mh(t){return jb(t)&&"ownerSVGElement"in t}const Gl=new WeakMap;let Yl;const Ox=(t,n,a)=>(s,l)=>l&&l[0]?l[0][t+"Size"]:Mh(s)&&"getBBox"in s?s.getBBox()[n]:s[a],xz=Ox("inline","width","offsetWidth"),Sz=Ox("block","height","offsetHeight");function _z({target:t,borderBoxSize:n}){Gl.get(t)?.forEach(a=>{a(t,{get width(){return xz(t,n)},get height(){return Sz(t,n)}})})}function wz(t){t.forEach(_z)}function Tz(){typeof ResizeObserver>"u"||(Yl=new ResizeObserver(wz))}function Az(t,n){Yl||Tz();const a=Ex(t);return a.forEach(s=>{let l=Gl.get(s);l||(l=new Set,Gl.set(s,l)),l.add(n),Yl?.observe(s)}),()=>{a.forEach(s=>{const l=Gl.get(s);l?.delete(n),l?.size||Yl?.unobserve(s)})}}const ql=new Set;let yr;function zz(){yr=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};ql.forEach(n=>n(t))},window.addEventListener("resize",yr)}function Ez(t){return ql.add(t),yr||zz(),()=>{ql.delete(t),!ql.size&&typeof yr=="function"&&(window.removeEventListener("resize",yr),yr=void 0)}}function N0(t,n){return typeof t=="function"?Ez(t):Az(t,n)}function Mz(t){return Mh(t)&&t.tagName==="svg"}const Cz=[...Tx,he,Nn],Dz=t=>Cz.find(wx(t)),O0=()=>({translate:0,scale:1,origin:0,originPoint:0}),vr=()=>({x:O0(),y:O0()}),R0=()=>({min:0,max:0}),ge=()=>({x:R0(),y:R0()}),Nz=new WeakMap;function bu(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Gs(t){return typeof t=="string"||Array.isArray(t)}const Ch=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dh=["initial",...Ch];function xu(t){return bu(t.animate)||Dh.some(n=>Gs(t[n]))}function Rx(t){return!!(xu(t)||t.variants)}function Oz(t,n,a){for(const s in n){const l=n[s],c=a[s];if(Ce(l))t.addValue(s,l);else if(Ce(c))t.addValue(s,zr(l,{owner:t}));else if(c!==l)if(t.hasValue(s)){const u=t.getValue(s);u.liveStyle===!0?u.jump(l):u.hasAnimated||u.set(l)}else{const u=t.getStaticValue(s);t.addValue(s,zr(u!==void 0?u:l,{owner:t}))}}for(const s in a)n[s]===void 0&&t.removeValue(s);return n}const Zd={current:null},kx={current:!1},Rz=typeof window<"u";function kz(){if(kx.current=!0,!!Rz)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),n=()=>Zd.current=t.matches;t.addEventListener("change",n),n()}else Zd.current=!1}const k0=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let au={};function jx(t){au=t}function jz(){return au}class Vz{scrapeMotionValuesFromProps(n,a,s){return{}}constructor({parent:n,props:a,presenceContext:s,reducedMotionConfig:l,skipAnimations:c,blockInitialAnimation:u,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=xh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const S=Ve.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,Kt.render(this.render,!1,!0))};const{latestValues:p,renderState:g}=h;this.latestValues=p,this.baseTarget={...p},this.initialValues=a.initial?{...p}:{},this.renderState=g,this.parent=n,this.props=a,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=l,this.skipAnimationsConfig=c,this.options=m,this.blockInitialAnimation=!!u,this.isControllingVariants=xu(a),this.isVariantNode=Rx(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:b,...v}=this.scrapeMotionValuesFromProps(a,{},this);for(const S in v){const _=v[S];p[S]!==void 0&&Ce(_)&&_.set(p[S])}}mount(n){if(this.hasBeenMounted)for(const a in this.initialValues)this.values.get(a)?.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=n,Nz.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,s)=>this.bindToMotionValue(s,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(kx.current||kz(),this.shouldReduceMotion=Zd.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ki(this.notifyUpdate),Ki(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const a=this.features[n];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,a){if(this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)(),a.accelerate&&uz.has(n)&&this.current instanceof HTMLElement){const{factory:u,keyframes:h,times:m,ease:p,duration:g}=a.accelerate,b=new mx({element:this.current,name:n,keyframes:h,times:m,ease:p,duration:Dn(g)}),v=u(b);this.valueSubscriptions.set(n,()=>{v(),b.cancel()});return}const s=Nr.has(n);s&&this.onBindTransform&&this.onBindTransform();const l=a.on("change",u=>{this.latestValues[n]=u,this.props.onUpdate&&Kt.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,a)),this.valueSubscriptions.set(n,()=>{l(),c&&c(),a.owner&&a.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in au){const a=au[n];if(!a)continue;const{isEnabled:s,Feature:l}=a;if(!this.features[n]&&l&&s(this.props)&&(this.features[n]=new l(this)),this.features[n]){const c=this.features[n];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ge()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,a){this.latestValues[n]=a}update(n,a){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let s=0;s<k0.length;s++){const l=k0[s];this.propEventSubscriptions[l]&&(this.propEventSubscriptions[l](),delete this.propEventSubscriptions[l]);const c="on"+l,u=n[c];u&&(this.propEventSubscriptions[l]=this.on(l,u))}this.prevMotionValues=Oz(this,this.scrapeMotionValuesFromProps(n,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(n){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(n),()=>a.variantChildren.delete(n)}addValue(n,a){const s=this.values.get(n);a!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,a),this.values.set(n,a),this.latestValues[n]=a.get())}removeValue(n){this.values.delete(n);const a=this.valueSubscriptions.get(n);a&&(a(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,a){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&a!==void 0&&(s=zr(a===null?void 0:a,{owner:this}),this.addValue(n,s)),s}readValue(n,a){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(kb(s)||Vb(s))?s=parseFloat(s):!Dz(s)&&Nn.test(a)&&(s=zx(n,a)),this.setBaseTarget(n,Ce(s)?s.get():s)),Ce(s)?s.get():s}setBaseTarget(n,a){this.baseTarget[n]=a}getBaseTarget(n){const{initial:a}=this.props;let s;if(typeof a=="string"||typeof a=="object"){const c=wh(this.props,a,this.presenceContext?.custom);c&&(s=c[n])}if(a&&s!==void 0)return s;const l=this.getBaseTargetFromProps(this.props,n);return l!==void 0&&!Ce(l)?l:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,a){return this.events[n]||(this.events[n]=new uh),this.events[n].add(a)}notify(n,...a){this.events[n]&&this.events[n].notify(...a)}scheduleRenderMicrotask(){zh.render(this.render)}}class Vx extends Vz{constructor(){super(...arguments),this.KeyframeResolver=lz}sortInstanceNodePosition(n,a){return n.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(n,a){const s=n.style;return s?s[a]:void 0}removeValueFromRenderState(n,{vars:a,style:s}){delete a[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;Ce(n)&&(this.childSubscription=n.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class Pi{constructor(n){this.isMounted=!1,this.node=n}update(){}}function Bx({top:t,left:n,right:a,bottom:s}){return{x:{min:n,max:a},y:{min:t,max:s}}}function Bz({x:t,y:n}){return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function Uz(t,n){if(!n)return t;const a=n({x:t.left,y:t.top}),s=n({x:t.right,y:t.bottom});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}function ad(t){return t===void 0||t===1}function Hd({scale:t,scaleX:n,scaleY:a}){return!ad(t)||!ad(n)||!ad(a)}function ba(t){return Hd(t)||Ux(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Ux(t){return j0(t.x)||j0(t.y)}function j0(t){return t&&t!=="0%"}function ru(t,n,a){const s=t-a,l=n*s;return a+l}function V0(t,n,a,s,l){return l!==void 0&&(t=ru(t,l,s)),ru(t,a,s)+n}function $d(t,n=0,a=1,s,l){t.min=V0(t.min,n,a,s,l),t.max=V0(t.max,n,a,s,l)}function Lx(t,{x:n,y:a}){$d(t.x,n.translate,n.scale,n.originPoint),$d(t.y,a.translate,a.scale,a.originPoint)}const B0=.999999999999,U0=1.0000000000001;function Lz(t,n,a,s=!1){const l=a.length;if(!l)return;n.x=n.y=1;let c,u;for(let h=0;h<l;h++){c=a[h],u=c.projectionDelta;const{visualElement:m}=c.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&xr(t,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(n.x*=u.x.scale,n.y*=u.y.scale,Lx(t,u)),s&&ba(c.latestValues)&&xr(t,c.latestValues))}n.x<U0&&n.x>B0&&(n.x=1),n.y<U0&&n.y>B0&&(n.y=1)}function br(t,n){t.min=t.min+n,t.max=t.max+n}function L0(t,n,a,s,l=.5){const c=Wt(t.min,t.max,l);$d(t,n,a,c,s)}function Z0(t,n){return typeof t=="string"?parseFloat(t)/100*(n.max-n.min):t}function xr(t,n){L0(t.x,Z0(n.x,t.x),n.scaleX,n.scale,n.originX),L0(t.y,Z0(n.y,t.y),n.scaleY,n.scale,n.originY)}function Zx(t,n){return Bx(Uz(t.getBoundingClientRect(),n))}function Zz(t,n,a){const s=Zx(t,a),{scroll:l}=n;return l&&(br(s.x,l.offset.x),br(s.y,l.offset.y)),s}const Hz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$z=Dr.length;function Gz(t,n,a){let s="",l=!0;for(let c=0;c<$z;c++){const u=Dr[c],h=t[u];if(h===void 0)continue;let m=!0;if(typeof h=="number")m=h===(u.startsWith("scale")?1:0);else{const p=parseFloat(h);m=u.startsWith("scale")?p===1:p===0}if(!m||a){const p=Mx(h,Ah[u]);if(!m){l=!1;const g=Hz[u]||u;s+=`${g}(${p}) `}a&&(n[u]=p)}}return s=s.trim(),a?s=a(n,l?"":s):l&&(s="none"),s}function Nh(t,n,a){const{style:s,vars:l,transformOrigin:c}=t;let u=!1,h=!1;for(const m in n){const p=n[m];if(Nr.has(m)){u=!0;continue}else if(Jb(m)){l[m]=p;continue}else{const g=Mx(p,Ah[m]);m.startsWith("origin")?(h=!0,c[m]=g):s[m]=g}}if(n.transform||(u||a?s.transform=Gz(n,t.transform,a):s.transform&&(s.transform="none")),h){const{originX:m="50%",originY:p="50%",originZ:g=0}=c;s.transformOrigin=`${m} ${p} ${g}`}}function Hx(t,{style:n,vars:a},s,l){const c=t.style;let u;for(u in n)c[u]=n[u];l?.applyProjectionStyles(c,s);for(u in a)c.setProperty(u,a[u])}function H0(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}const Cs={correct:(t,n)=>{if(!n.target)return t;if(typeof t=="string")if(ft.test(t))t=parseFloat(t);else return t;const a=H0(t,n.target.x),s=H0(t,n.target.y);return`${a}% ${s}%`}},Yz={correct:(t,{treeScale:n,projectionDelta:a})=>{const s=t,l=Nn.parse(t);if(l.length>5)return s;const c=Nn.createTransformer(t),u=typeof l[0]!="number"?1:0,h=a.x.scale*n.x,m=a.y.scale*n.y;l[0+u]/=h,l[1+u]/=m;const p=Wt(h,m,.5);return typeof l[2+u]=="number"&&(l[2+u]/=p),typeof l[3+u]=="number"&&(l[3+u]/=p),c(l)}},Gd={borderRadius:{...Cs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cs,borderTopRightRadius:Cs,borderBottomLeftRadius:Cs,borderBottomRightRadius:Cs,boxShadow:Yz};function $x(t,{layout:n,layoutId:a}){return Nr.has(t)||t.startsWith("origin")||(n||a!==void 0)&&(!!Gd[t]||t==="opacity")}function Oh(t,n,a){const s=t.style,l=n?.style,c={};if(!s)return c;for(const u in s)(Ce(s[u])||l&&Ce(l[u])||$x(u,t)||a?.getValue(u)?.liveStyle!==void 0)&&(c[u]=s[u]);return c}function qz(t){return window.getComputedStyle(t)}class Xz extends Vx{constructor(){super(...arguments),this.type="html",this.renderInstance=Hx}readValueFromInstance(n,a){if(Nr.has(a))return this.projection?.isProjecting?Cd(a):cA(n,a);{const s=qz(n),l=(Jb(a)?s.getPropertyValue(a):s[a])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(n,{transformPagePoint:a}){return Zx(n,a)}build(n,a,s){Nh(n,a,s.transformTemplate)}scrapeMotionValuesFromProps(n,a,s){return Oh(n,a,s)}}const Kz={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qz={offset:"strokeDashoffset",array:"strokeDasharray"};function Pz(t,n,a=1,s=0,l=!0){t.pathLength=1;const c=l?Kz:Qz;t[c.offset]=`${-s}`,t[c.array]=`${n} ${a}`}const Fz=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Gx(t,{attrX:n,attrY:a,attrScale:s,pathLength:l,pathSpacing:c=1,pathOffset:u=0,...h},m,p,g){if(Nh(t,h,p),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:b,style:v}=t;b.transform&&(v.transform=b.transform,delete b.transform),(v.transform||b.transformOrigin)&&(v.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),v.transform&&(v.transformBox=g?.transformBox??"fill-box",delete b.transformBox);for(const S of Fz)b[S]!==void 0&&(v[S]=b[S],delete b[S]);n!==void 0&&(b.x=n),a!==void 0&&(b.y=a),s!==void 0&&(b.scale=s),l!==void 0&&Pz(b,l,c,u,!1)}const Yx=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),qx=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Jz(t,n,a,s){Hx(t,n,void 0,s);for(const l in n.attrs)t.setAttribute(Yx.has(l)?l:Th(l),n.attrs[l])}function Xx(t,n,a){const s=Oh(t,n,a);for(const l in t)if(Ce(t[l])||Ce(n[l])){const c=Dr.indexOf(l)!==-1?"attr"+l.charAt(0).toUpperCase()+l.substring(1):l;s[c]=t[l]}return s}class Iz extends Vx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ge}getBaseTargetFromProps(n,a){return n[a]}readValueFromInstance(n,a){if(Nr.has(a)){const s=Ax(a);return s&&s.default||0}return a=Yx.has(a)?a:Th(a),n.getAttribute(a)}scrapeMotionValuesFromProps(n,a,s){return Xx(n,a,s)}build(n,a,s){Gx(n,a,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,a,s,l){Jz(n,a,s,l)}mount(n){this.isSVGTag=qx(n.tagName),super.mount(n)}}const Wz=Dh.length;function Kx(t){if(!t)return;if(!t.isControllingVariants){const a=t.parent?Kx(t.parent)||{}:{};return t.props.initial!==void 0&&(a.initial=t.props.initial),a}const n={};for(let a=0;a<Wz;a++){const s=Dh[a],l=t.props[s];(Gs(l)||l===!1)&&(n[s]=l)}return n}function Qx(t,n){if(!Array.isArray(n))return!1;const a=n.length;if(a!==t.length)return!1;for(let s=0;s<a;s++)if(n[s]!==t[s])return!1;return!0}const tE=[...Ch].reverse(),eE=Ch.length;function nE(t){return n=>Promise.all(n.map(({animation:a,options:s})=>JA(t,a,s)))}function iE(t){let n=nE(t),a=$0(),s=!0,l=!1;const c=p=>(g,b)=>{const v=_r(t,b,p==="exit"?t.presenceContext?.custom:void 0);if(v){const{transition:S,transitionEnd:_,...w}=v;g={...g,...w,..._}}return g};function u(p){n=p(t)}function h(p){const{props:g}=t,b=Kx(t.parent)||{},v=[],S=new Set;let _={},w=1/0;for(let A=0;A<eE;A++){const R=tE[A],O=a[R],C=g[R]!==void 0?g[R]:b[R],L=Gs(C),I=R===p?O.isActive:null;I===!1&&(w=A);let V=C===b[R]&&C!==g[R]&&L;if(V&&(s||l)&&t.manuallyAnimateOnMount&&(V=!1),O.protectedKeys={..._},!O.isActive&&I===null||!C&&!O.prevProp||bu(C)||typeof C=="boolean")continue;if(R==="exit"&&O.isActive&&I!==!0){O.prevResolvedValues&&(_={..._,...O.prevResolvedValues});continue}const k=aE(O.prevProp,C);let tt=k||R===p&&O.isActive&&!V&&L||A>w&&L,at=!1;const vt=Array.isArray(C)?C:[C];let St=vt.reduce(c(R),{});I===!1&&(St={});const{prevResolvedValues:zt={}}=O,Z={...zt,...St},nt=K=>{tt=!0,S.has(K)&&(at=!0,S.delete(K)),O.needsAnimating[K]=!0;const et=t.getValue(K);et&&(et.liveStyle=!1)};for(const K in Z){const et=St[K],q=zt[K];if(_.hasOwnProperty(K))continue;let T=!1;jd(et)&&jd(q)?T=!Qx(et,q):T=et!==q,T?et!=null?nt(K):S.add(K):et!==void 0&&S.has(K)?nt(K):O.protectedKeys[K]=!0}O.prevProp=C,O.prevResolvedValues=St,O.isActive&&(_={..._,...St}),(s||l)&&t.blockInitialAnimation&&(tt=!1);const E=V&&k;tt&&(!E||at)&&v.push(...vt.map(K=>{const et={type:R};if(typeof K=="string"&&(s||l)&&!E&&t.manuallyAnimateOnMount&&t.parent){const{parent:q}=t,T=_r(q,K);if(q.enteringChildren&&T){const{delayChildren:G}=T.transition||{};et.delay=gx(q.enteringChildren,t,G)}}return{animation:K,options:et}}))}if(S.size){const A={};if(typeof g.initial!="boolean"){const R=_r(t,Array.isArray(g.initial)?g.initial[0]:g.initial);R&&R.transition&&(A.transition=R.transition)}S.forEach(R=>{const O=t.getBaseTarget(R),C=t.getValue(R);C&&(C.liveStyle=!0),A[R]=O??null}),v.push({animation:A})}let z=!!v.length;return s&&(g.initial===!1||g.initial===g.animate)&&!t.manuallyAnimateOnMount&&(z=!1),s=!1,l=!1,z?n(v):Promise.resolve()}function m(p,g){if(a[p].isActive===g)return Promise.resolve();t.variantChildren?.forEach(v=>v.animationState?.setActive(p,g)),a[p].isActive=g;const b=h(p);for(const v in a)a[v].protectedKeys={};return b}return{animateChanges:h,setActive:m,setAnimateFunction:u,getState:()=>a,reset:()=>{a=$0(),l=!0}}}function aE(t,n){return typeof n=="string"?n!==t:Array.isArray(n)?!Qx(n,t):!1}function va(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $0(){return{animate:va(!0),whileInView:va(),whileHover:va(),whileTap:va(),whileDrag:va(),whileFocus:va(),exit:va()}}function G0(t,n){t.min=n.min,t.max=n.max}function zn(t,n){G0(t.x,n.x),G0(t.y,n.y)}function Y0(t,n){t.translate=n.translate,t.scale=n.scale,t.originPoint=n.originPoint,t.origin=n.origin}const Px=1e-4,rE=1-Px,sE=1+Px,Fx=.01,oE=0-Fx,lE=0+Fx;function Be(t){return t.max-t.min}function uE(t,n,a){return Math.abs(t-n)<=a}function q0(t,n,a,s=.5){t.origin=s,t.originPoint=Wt(n.min,n.max,t.origin),t.scale=Be(a)/Be(n),t.translate=Wt(a.min,a.max,t.origin)-t.originPoint,(t.scale>=rE&&t.scale<=sE||isNaN(t.scale))&&(t.scale=1),(t.translate>=oE&&t.translate<=lE||isNaN(t.translate))&&(t.translate=0)}function Us(t,n,a,s){q0(t.x,n.x,a.x,s?s.originX:void 0),q0(t.y,n.y,a.y,s?s.originY:void 0)}function X0(t,n,a){t.min=a.min+n.min,t.max=t.min+Be(n)}function cE(t,n,a){X0(t.x,n.x,a.x),X0(t.y,n.y,a.y)}function K0(t,n,a){t.min=n.min-a.min,t.max=t.min+Be(n)}function su(t,n,a){K0(t.x,n.x,a.x),K0(t.y,n.y,a.y)}function Q0(t,n,a,s,l){return t-=n,t=ru(t,1/a,s),l!==void 0&&(t=ru(t,1/l,s)),t}function fE(t,n=0,a=1,s=.5,l,c=t,u=t){if(Zn.test(n)&&(n=parseFloat(n),n=Wt(u.min,u.max,n/100)-u.min),typeof n!="number")return;let h=Wt(c.min,c.max,s);t===c&&(h-=n),t.min=Q0(t.min,n,a,h,l),t.max=Q0(t.max,n,a,h,l)}function P0(t,n,[a,s,l],c,u){fE(t,n[a],n[s],n[l],n.scale,c,u)}const dE=["x","scaleX","originX"],hE=["y","scaleY","originY"];function F0(t,n,a,s){P0(t.x,n,dE,a?a.x:void 0,s?s.x:void 0),P0(t.y,n,hE,a?a.y:void 0,s?s.y:void 0)}function J0(t){return t.translate===0&&t.scale===1}function Jx(t){return J0(t.x)&&J0(t.y)}function I0(t,n){return t.min===n.min&&t.max===n.max}function mE(t,n){return I0(t.x,n.x)&&I0(t.y,n.y)}function W0(t,n){return Math.round(t.min)===Math.round(n.min)&&Math.round(t.max)===Math.round(n.max)}function Ix(t,n){return W0(t.x,n.x)&&W0(t.y,n.y)}function tv(t){return Be(t.x)/Be(t.y)}function ev(t,n){return t.translate===n.translate&&t.scale===n.scale&&t.originPoint===n.originPoint}function Ln(t){return[t("x"),t("y")]}function pE(t,n,a){let s="";const l=t.x.translate/n.x,c=t.y.translate/n.y,u=a?.z||0;if((l||c||u)&&(s=`translate3d(${l}px, ${c}px, ${u}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),a){const{transformPerspective:p,rotate:g,rotateX:b,rotateY:v,skewX:S,skewY:_}=a;p&&(s=`perspective(${p}px) ${s}`),g&&(s+=`rotate(${g}deg) `),b&&(s+=`rotateX(${b}deg) `),v&&(s+=`rotateY(${v}deg) `),S&&(s+=`skewX(${S}deg) `),_&&(s+=`skewY(${_}deg) `)}const h=t.x.scale*n.x,m=t.y.scale*n.y;return(h!==1||m!==1)&&(s+=`scale(${h}, ${m})`),s||"none"}const Wx=["TopLeft","TopRight","BottomLeft","BottomRight"],gE=Wx.length,nv=t=>typeof t=="string"?parseFloat(t):t,iv=t=>typeof t=="number"||ft.test(t);function yE(t,n,a,s,l,c){l?(t.opacity=Wt(0,a.opacity??1,vE(s)),t.opacityExit=Wt(n.opacity??1,0,bE(s))):c&&(t.opacity=Wt(n.opacity??1,a.opacity??1,s));for(let u=0;u<gE;u++){const h=`border${Wx[u]}Radius`;let m=av(n,h),p=av(a,h);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||iv(m)===iv(p)?(t[h]=Math.max(Wt(nv(m),nv(p),s),0),(Zn.test(p)||Zn.test(m))&&(t[h]+="%")):t[h]=p}(n.rotate||a.rotate)&&(t.rotate=Wt(n.rotate||0,a.rotate||0,s))}function av(t,n){return t[n]!==void 0?t[n]:t.borderRadius}const vE=t1(0,.5,qb),bE=t1(.5,.95,bn);function t1(t,n,a){return s=>s<t?0:s>n?1:a(Zs(t,n,s))}function xE(t,n,a){const s=Ce(t)?t:zr(t);return s.start(_h("",s,n,a)),s.animation}function Ys(t,n,a,s={passive:!0}){return t.addEventListener(n,a,s),()=>t.removeEventListener(n,a)}const SE=(t,n)=>t.depth-n.depth;class _E{constructor(){this.children=[],this.isDirty=!1}add(n){oh(this.children,n),this.isDirty=!0}remove(n){tu(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(SE),this.isDirty=!1,this.children.forEach(n)}}function wE(t,n){const a=Ve.now(),s=({timestamp:l})=>{const c=l-a;c>=n&&(Ki(s),t(c-n))};return Kt.setup(s,!0),()=>Ki(s)}function Xl(t){return Ce(t)?t.get():t}class TE{constructor(){this.members=[]}add(n){oh(this.members,n);for(let a=this.members.length-1;a>=0;a--){const s=this.members[a];if(s===n||s===this.lead||s===this.prevLead)continue;const l=s.instance;(!l||l.isConnected===!1)&&!s.snapshot&&(tu(this.members,s),s.unmount())}n.scheduleRender()}remove(n){if(tu(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(n){for(let a=this.members.indexOf(n)-1;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(n,a){const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.updateSnapshot(),n.scheduleRender();const{layoutDependency:l}=s.options,{layoutDependency:c}=n.options;(l===void 0||l!==c)&&(n.resumeFrom=s,a&&(s.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),n.root?.isUpdating&&(n.isLayoutDirty=!0)),n.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{n.options.onExitComplete?.(),n.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(n=>n.instance&&n.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Kl={hasAnimatedSinceResize:!0,hasEverUpdated:!1},rd=["","X","Y","Z"],AE=1e3;let zE=0;function sd(t,n,a,s){const{latestValues:l}=n;l[t]&&(a[t]=l[t],n.setStaticValue(t,0),s&&(s[t]=0))}function e1(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:n}=t.options;if(!n)return;const a=Sx(n);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:l,layoutId:c}=t.options;window.MotionCancelOptimisedAnimation(a,"transform",Kt,!(l||c))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&e1(s)}function n1({attachResizeListener:t,defaultParent:n,measureScroll:a,checkIsScrollRoot:s,resetTransform:l}){return class{constructor(u={},h=n?.()){this.id=zE++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(CE),this.nodes.forEach(RE),this.nodes.forEach(kE),this.nodes.forEach(DE)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new _E)}addEventListener(u,h){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new uh),this.eventHandlers.get(u).add(h)}notifyListeners(u,...h){const m=this.eventHandlers.get(u);m&&m.notify(...h)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=Mh(u)&&!Mz(u),this.instance=u;const{layoutId:h,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),t){let g,b=0;const v=()=>this.root.updateBlockedByResize=!1;Kt.read(()=>{b=window.innerWidth}),t(u,()=>{const S=window.innerWidth;S!==b&&(b=S,this.root.updateBlockedByResize=!0,g&&g(),g=wE(v,250),Kl.hasAnimatedSinceResize&&(Kl.hasAnimatedSinceResize=!1,this.nodes.forEach(ov)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:b,hasRelativeLayoutChanged:v,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||p.getDefaultTransition()||LE,{onLayoutAnimationStart:w,onLayoutAnimationComplete:z}=p.getProps(),A=!this.targetLayout||!Ix(this.targetLayout,S),R=!b&&v;if(this.options.layoutRoot||this.resumeFrom||R||b&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...Sh(_,"layout"),onPlay:w,onComplete:z};(p.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(g,R)}else b||ov(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ki(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(jE),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&e1(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const b=this.path[g];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rv);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(sv);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(OE),this.nodes.forEach(EE),this.nodes.forEach(ME)):this.nodes.forEach(sv),this.clearAllSnapshots();const h=Ve.now();ze.delta=Gn(0,1e3/60,h-ze.timestamp),ze.timestamp=h,ze.isProcessing=!0,Jf.update.process(ze),Jf.preRender.process(ze),Jf.render.process(ze),ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,zh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(NE),this.sharedNodes.forEach(VE)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Kt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Kt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Be(this.snapshot.measuredBox.x)&&!Be(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=ge(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(h=!1),h&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:m,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!l)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!Jx(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;u&&this.instance&&(h||ba(this.latestValues)||g)&&(l(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return u&&(m=this.removeTransform(m)),ZE(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return ge();const h=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(HE))){const{scroll:p}=this.root;p&&(br(h.x,p.offset.x),br(h.y,p.offset.y))}return h}removeElementScroll(u){const h=ge();if(zn(h,u),this.scroll?.wasRoot)return h;for(let m=0;m<this.path.length;m++){const p=this.path[m],{scroll:g,options:b}=p;p!==this.root&&g&&b.layoutScroll&&(g.wasRoot&&zn(h,u),br(h.x,g.offset.x),br(h.y,g.offset.y))}return h}applyTransform(u,h=!1){const m=ge();zn(m,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];!h&&g.options.layoutScroll&&g.scroll&&g!==g.root&&xr(m,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ba(g.latestValues)&&xr(m,g.latestValues)}return ba(this.latestValues)&&xr(m,this.latestValues),m}removeTransform(u){const h=ge();zn(h,u);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!ba(p.latestValues))continue;Hd(p.latestValues)&&p.updateSnapshot();const g=ge(),b=p.measurePageBox();zn(g,b),F0(h,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return ba(this.latestValues)&&F0(h,this.latestValues),h}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(u||m&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:b}=this.options;if(!this.layout||!(g||b))return;this.resolvedRelativeTargetAt=ze.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ge(),this.targetWithTransforms=ge()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cE(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):zn(this.target,this.layout.layoutBox),Lx(this.target,this.targetDelta)):zn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Hd(this.parent.latestValues)||Ux(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,h,m){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ge(),this.relativeTargetOrigin=ge(),su(this.relativeTargetOrigin,h,m),zn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const u=this.getLead(),h=!!this.resumingFrom||this!==u;let m=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===ze.timestamp&&(m=!1),m)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;zn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,v=this.treeScale.y;Lz(this.layoutCorrected,this.treeScale,this.path,h),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ge());const{target:S}=u;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Y0(this.prevProjectionDelta.x,this.projectionDelta.x),Y0(this.prevProjectionDelta.y,this.projectionDelta.y)),Us(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==v||!ev(this.projectionDelta.x,this.prevProjectionDelta.x)||!ev(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const h=this.getStack();h&&h.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vr(),this.projectionDelta=vr(),this.projectionDeltaWithTransform=vr()}setAnimationOrigin(u,h=!1){const m=this.snapshot,p=m?m.latestValues:{},g={...this.latestValues},b=vr();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const v=ge(),S=m?m.source:void 0,_=this.layout?this.layout.source:void 0,w=S!==_,z=this.getStack(),A=!z||z.members.length<=1,R=!!(w&&!A&&this.options.crossfade===!0&&!this.path.some(UE));this.animationProgress=0;let O;this.mixTargetDelta=C=>{const L=C/1e3;lv(b.x,u.x,L),lv(b.y,u.y,L),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(su(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),BE(this.relativeTarget,this.relativeTargetOrigin,v,L),O&&mE(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=ge()),zn(O,this.relativeTarget)),w&&(this.animationValues=g,yE(g,p,this.latestValues,L,R,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ki(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Kt.update(()=>{Kl.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zr(0)),this.motionValue.jump(0,!1),this.currentAnimation=xE(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:h=>{this.mixTargetDelta(h),u.onUpdate&&u.onUpdate(h)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(AE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:h,target:m,layout:p,latestValues:g}=u;if(!(!h||!m||!p)){if(this!==u&&this.layout&&p&&i1(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||ge();const b=Be(this.layout.layoutBox.x);m.x.min=u.target.x.min,m.x.max=m.x.min+b;const v=Be(this.layout.layoutBox.y);m.y.min=u.target.y.min,m.y.max=m.y.min+v}zn(h,m),xr(h,g),Us(this.projectionDeltaWithTransform,this.layoutCorrected,h,g)}}registerSharedNode(u,h){this.sharedNodes.has(u)||this.sharedNodes.set(u,new TE),this.sharedNodes.get(u).add(h);const p=h.options.initialPromotionConfig;h.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(h):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:h,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let h=!1;const{latestValues:m}=u;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const p={};m.z&&sd("z",u,p,this.animationValues);for(let g=0;g<rd.length;g++)sd(`rotate${rd[g]}`,u,p,this.animationValues),sd(`skew${rd[g]}`,u,p,this.animationValues);u.render();for(const g in p)u.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);u.scheduleRender()}applyProjectionStyles(u,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Xl(h?.pointerEvents)||"",u.transform=m?m(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Xl(h?.pointerEvents)||""),this.hasProjected&&!ba(this.latestValues)&&(u.transform=m?m({},""):"none",this.hasProjected=!1);return}u.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let b=pE(this.projectionDeltaWithTransform,this.treeScale,g);m&&(b=m(g,b)),u.transform=b;const{x:v,y:S}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${S.origin*100}% 0`,p.animationValues?u.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:u.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const _ in Gd){if(g[_]===void 0)continue;const{correct:w,applyTo:z,isCSSVariable:A}=Gd[_],R=b==="none"?g[_]:w(g[_],p);if(z){const O=z.length;for(let C=0;C<O;C++)u[z[C]]=R}else A?this.options.visualElement.renderState.vars[_]=R:u[_]=R}this.options.layoutId&&(u.pointerEvents=p===this?Xl(h?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(rv),this.root.sharedNodes.clear()}}}function EE(t){t.updateLayout()}function ME(t){const n=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:s}=t.layout,{animationType:l}=t.options,c=n.source!==t.layout.source;l==="size"?Ln(g=>{const b=c?n.measuredBox[g]:n.layoutBox[g],v=Be(b);b.min=a[g].min,b.max=b.min+v}):i1(l,n.layoutBox,a)&&Ln(g=>{const b=c?n.measuredBox[g]:n.layoutBox[g],v=Be(a[g]);b.max=b.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[g].max=t.relativeTarget[g].min+v)});const u=vr();Us(u,a,n.layoutBox);const h=vr();c?Us(h,t.applyTransform(s,!0),n.measuredBox):Us(h,a,n.layoutBox);const m=!Jx(u);let p=!1;if(!t.resumeFrom){const g=t.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:b,layout:v}=g;if(b&&v){const S=ge();su(S,n.layoutBox,b.layoutBox);const _=ge();su(_,a,v.layoutBox),Ix(S,_)||(p=!0),g.options.layoutRoot&&(t.relativeTarget=_,t.relativeTargetOrigin=S,t.relativeParent=g)}}}t.notifyListeners("didUpdate",{layout:a,snapshot:n,delta:h,layoutDelta:u,hasLayoutChanged:m,hasRelativeLayoutChanged:p})}else if(t.isLead()){const{onExitComplete:a}=t.options;a&&a()}t.options.transition=void 0}function CE(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function DE(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function NE(t){t.clearSnapshot()}function rv(t){t.clearMeasurements()}function sv(t){t.isLayoutDirty=!1}function OE(t){const{visualElement:n}=t.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),t.resetTransform()}function ov(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function RE(t){t.resolveTargetDelta()}function kE(t){t.calcProjection()}function jE(t){t.resetSkewAndRotation()}function VE(t){t.removeLeadSnapshot()}function lv(t,n,a){t.translate=Wt(n.translate,0,a),t.scale=Wt(n.scale,1,a),t.origin=n.origin,t.originPoint=n.originPoint}function uv(t,n,a,s){t.min=Wt(n.min,a.min,s),t.max=Wt(n.max,a.max,s)}function BE(t,n,a,s){uv(t.x,n.x,a.x,s),uv(t.y,n.y,a.y,s)}function UE(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const LE={duration:.45,ease:[.4,0,.1,1]},cv=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),fv=cv("applewebkit/")&&!cv("chrome/")?Math.round:bn;function dv(t){t.min=fv(t.min),t.max=fv(t.max)}function ZE(t){dv(t.x),dv(t.y)}function i1(t,n,a){return t==="position"||t==="preserve-aspect"&&!uE(tv(n),tv(a),.2)}function HE(t){return t!==t.root&&t.scroll?.wasRoot}const $E=n1({attachResizeListener:(t,n)=>Ys(t,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),od={current:void 0},a1=n1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!od.current){const t=new $E({});t.mount(window),t.setOptions({layoutScroll:!0}),od.current=t}return od.current},resetTransform:(t,n)=>{t.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),r1=P.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function GE(t=!0){const n=P.useContext(sh);if(n===null)return[!0,null];const{isPresent:a,onExitComplete:s,register:l}=n,c=P.useId();P.useEffect(()=>{if(t)return l(c)},[t]);const u=P.useCallback(()=>t&&s&&s(c),[c,s,t]);return!a&&s?[!1,u]:[!0]}const s1=P.createContext({strict:!1}),hv={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let mv=!1;function YE(){if(mv)return;const t={};for(const n in hv)t[n]={isEnabled:a=>hv[n].some(s=>!!a[s])};jx(t),mv=!0}function o1(){return YE(),jz()}function qE(t){const n=o1();for(const a in t)n[a]={...n[a],...t[a]};jx(n)}const XE=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ou(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||XE.has(t)}let l1=t=>!ou(t);function KE(t){typeof t=="function"&&(l1=n=>n.startsWith("on")?!ou(n):t(n))}try{KE(require("@emotion/is-prop-valid").default)}catch{}function QE(t,n,a){const s={};for(const l in t)l==="values"&&typeof t.values=="object"||(l1(l)||a===!0&&ou(l)||!n&&!ou(l)||t.draggable&&l.startsWith("onDrag"))&&(s[l]=t[l]);return s}const Su=P.createContext({});function PE(t,n){if(xu(t)){const{initial:a,animate:s}=t;return{initial:a===!1||Gs(a)?a:void 0,animate:Gs(s)?s:void 0}}return t.inherit!==!1?n:{}}function FE(t){const{initial:n,animate:a}=PE(t,P.useContext(Su));return P.useMemo(()=>({initial:n,animate:a}),[pv(n),pv(a)])}function pv(t){return Array.isArray(t)?t.join(" "):t}const Rh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function u1(t,n,a){for(const s in n)!Ce(n[s])&&!$x(s,a)&&(t[s]=n[s])}function JE({transformTemplate:t},n){return P.useMemo(()=>{const a=Rh();return Nh(a,n,t),Object.assign({},a.vars,a.style)},[n])}function IE(t,n){const a=t.style||{},s={};return u1(s,a,t),Object.assign(s,JE(t,n)),s}function WE(t,n){const a={},s=IE(t,n);return t.drag&&t.dragListener!==!1&&(a.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(a.tabIndex=0),a.style=s,a}const c1=()=>({...Rh(),attrs:{}});function tM(t,n,a,s){const l=P.useMemo(()=>{const c=c1();return Gx(c,n,qx(s),t.transformTemplate,t.style),{...c.attrs,style:{...c.style}}},[n]);if(t.style){const c={};u1(c,t.style,t),l.style={...c,...l.style}}return l}const eM=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function kh(t){return typeof t!="string"||t.includes("-")?!1:!!(eM.indexOf(t)>-1||/[A-Z]/u.test(t))}function nM(t,n,a,{latestValues:s},l,c=!1,u){const m=(u??kh(t)?tM:WE)(n,s,l,t),p=QE(n,typeof t=="string",c),g=t!==P.Fragment?{...p,...m,ref:a}:{},{children:b}=n,v=P.useMemo(()=>Ce(b)?b.get():b,[b]);return P.createElement(t,{...g,children:v})}function iM({scrapeMotionValuesFromProps:t,createRenderState:n},a,s,l){return{latestValues:aM(a,s,l,t),renderState:n()}}function aM(t,n,a,s){const l={},c=s(t,{});for(const v in c)l[v]=Xl(c[v]);let{initial:u,animate:h}=t;const m=xu(t),p=Rx(t);n&&p&&!m&&t.inherit!==!1&&(u===void 0&&(u=n.initial),h===void 0&&(h=n.animate));let g=a?a.initial===!1:!1;g=g||u===!1;const b=g?h:u;if(b&&typeof b!="boolean"&&!bu(b)){const v=Array.isArray(b)?b:[b];for(let S=0;S<v.length;S++){const _=wh(t,v[S]);if(_){const{transitionEnd:w,transition:z,...A}=_;for(const R in A){let O=A[R];if(Array.isArray(O)){const C=g?O.length-1:0;O=O[C]}O!==null&&(l[R]=O)}for(const R in w)l[R]=w[R]}}}return l}const f1=t=>(n,a)=>{const s=P.useContext(Su),l=P.useContext(sh),c=()=>iM(t,n,s,l);return a?c():rT(c)},rM=f1({scrapeMotionValuesFromProps:Oh,createRenderState:Rh}),sM=f1({scrapeMotionValuesFromProps:Xx,createRenderState:c1}),oM=Symbol.for("motionComponentSymbol");function lM(t,n,a){const s=P.useRef(a);P.useInsertionEffect(()=>{s.current=a});const l=P.useRef(null);return P.useCallback(c=>{c&&t.onMount?.(c);const u=s.current;if(typeof u=="function")if(c){const h=u(c);typeof h=="function"&&(l.current=h)}else l.current?(l.current(),l.current=null):u(c);else u&&(u.current=c);n&&(c?n.mount(c):n.unmount())},[n])}const d1=P.createContext({});function pr(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function uM(t,n,a,s,l,c){const{visualElement:u}=P.useContext(Su),h=P.useContext(s1),m=P.useContext(sh),p=P.useContext(r1),g=p.reducedMotion,b=p.skipAnimations,v=P.useRef(null),S=P.useRef(!1);s=s||h.renderer,!v.current&&s&&(v.current=s(t,{visualState:n,parent:u,props:a,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g,skipAnimations:b,isSVG:c}),S.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const _=v.current,w=P.useContext(d1);_&&!_.projection&&l&&(_.type==="html"||_.type==="svg")&&cM(v.current,a,l,w);const z=P.useRef(!1);P.useInsertionEffect(()=>{_&&z.current&&_.update(a,m)});const A=a[xx],R=P.useRef(!!A&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(A)&&window.MotionHasOptimisedAnimation?.(A));return oT(()=>{S.current=!0,_&&(z.current=!0,window.MotionIsMounted=!0,_.updateFeatures(),_.scheduleRenderMicrotask(),R.current&&_.animationState&&_.animationState.animateChanges())}),P.useEffect(()=>{_&&(!R.current&&_.animationState&&_.animationState.animateChanges(),R.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(A)}),R.current=!1),_.enteringChildren=void 0)}),_}function cM(t,n,a,s){const{layoutId:l,layout:c,drag:u,dragConstraints:h,layoutScroll:m,layoutRoot:p,layoutCrossfade:g}=n;t.projection=new a(t.latestValues,n["data-framer-portal-id"]?void 0:h1(t.parent)),t.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:!!u||h&&pr(h),visualElement:t,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:m,layoutRoot:p})}function h1(t){if(t)return t.options.allowProjection!==!1?t.projection:h1(t.parent)}function ld(t,{forwardMotionProps:n=!1,type:a}={},s,l){s&&qE(s);const c=a?a==="svg":kh(t),u=c?sM:rM;function h(p,g){let b;const v={...P.useContext(r1),...p,layoutId:fM(p)},{isStatic:S}=v,_=FE(p),w=u(p,S);if(!S&&typeof window<"u"){dM();const z=hM(v);b=z.MeasureLayout,_.visualElement=uM(t,w,v,l,z.ProjectionNode,c)}return M.jsxs(Su.Provider,{value:_,children:[b&&_.visualElement?M.jsx(b,{visualElement:_.visualElement,...v}):null,nM(t,p,lM(w,_.visualElement,g),w,S,n,c)]})}h.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const m=P.forwardRef(h);return m[oM]=t,m}function fM({layoutId:t}){const n=P.useContext(Rb).id;return n&&t!==void 0?n+"-"+t:t}function dM(t,n){P.useContext(s1).strict}function hM(t){const n=o1(),{drag:a,layout:s}=n;if(!a&&!s)return{};const l={...a,...s};return{MeasureLayout:a?.isEnabled(t)||s?.isEnabled(t)?l.MeasureLayout:void 0,ProjectionNode:l.ProjectionNode}}function mM(t,n){if(typeof Proxy>"u")return ld;const a=new Map,s=(c,u)=>ld(c,u,t,n),l=(c,u)=>s(c,u);return new Proxy(l,{get:(c,u)=>u==="create"?s:(a.has(u)||a.set(u,ld(u,void 0,t,n)),a.get(u))})}const pM=(t,n)=>n.isSVG??kh(t)?new Iz(n):new Xz(n,{allowProjection:t!==P.Fragment});class gM extends Pi{constructor(n){super(n),n.animationState||(n.animationState=iE(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();bu(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:a}=this.node.prevProps||{};n!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let yM=0;class vM extends Pi{constructor(){super(...arguments),this.id=yM++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:a}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;const l=this.node.animationState.setActive("exit",!n);a&&!n&&l.then(()=>{a(this.id)})}mount(){const{register:n,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const bM={animation:{Feature:gM},exit:{Feature:vM}};function io(t){return{point:{x:t.pageX,y:t.pageY}}}const xM=t=>n=>Eh(n)&&t(n,io(n));function Ls(t,n,a,s){return Ys(t,n,xM(a),s)}const m1=({current:t})=>t?t.ownerDocument.defaultView:null,gv=(t,n)=>Math.abs(t-n);function SM(t,n){const a=gv(t.x,n.x),s=gv(t.y,n.y);return Math.sqrt(a**2+s**2)}const yv=new Set(["auto","scroll"]);class p1{constructor(n,a,{transformPagePoint:s,contextWindow:l=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=S=>{this.handleScroll(S.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const S=cd(this.lastMoveEventInfo,this.history),_=this.startEvent!==null,w=SM(S.offset,{x:0,y:0})>=this.distanceThreshold;if(!_&&!w)return;const{point:z}=S,{timestamp:A}=ze;this.history.push({...z,timestamp:A});const{onStart:R,onMove:O}=this.handlers;_||(R&&R(this.lastMoveEvent,S),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,S)},this.handlePointerMove=(S,_)=>{this.lastMoveEvent=S,this.lastMoveEventInfo=ud(_,this.transformPagePoint),Kt.update(this.updatePoint,!0)},this.handlePointerUp=(S,_)=>{this.end();const{onEnd:w,onSessionEnd:z,resumeAnimation:A}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const R=cd(S.type==="pointercancel"?this.lastMoveEventInfo:ud(_,this.transformPagePoint),this.history);this.startEvent&&w&&w(S,R),z&&z(S,R)},!Eh(n))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=s,this.distanceThreshold=u,this.contextWindow=l||window;const m=io(n),p=ud(m,this.transformPagePoint),{point:g}=p,{timestamp:b}=ze;this.history=[{...g,timestamp:b}];const{onSessionStart:v}=a;v&&v(n,cd(p,this.history)),this.removeListeners=to(Ls(this.contextWindow,"pointermove",this.handlePointerMove),Ls(this.contextWindow,"pointerup",this.handlePointerUp),Ls(this.contextWindow,"pointercancel",this.handlePointerUp)),h&&this.startScrollTracking(h)}startScrollTracking(n){let a=n.parentElement;for(;a;){const s=getComputedStyle(a);(yv.has(s.overflowX)||yv.has(s.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(n){const a=this.scrollPositions.get(n);if(!a)return;const s=n===window,l=s?{x:window.scrollX,y:window.scrollY}:{x:n.scrollLeft,y:n.scrollTop},c={x:l.x-a.x,y:l.y-a.y};c.x===0&&c.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(n,l),Kt.update(this.updatePoint,!0))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ki(this.updatePoint)}}function ud(t,n){return n?{point:n(t.point)}:t}function vv(t,n){return{x:t.x-n.x,y:t.y-n.y}}function cd({point:t},n){return{point:t,delta:vv(t,g1(n)),offset:vv(t,_M(n)),velocity:wM(n,.1)}}function _M(t){return t[0]}function g1(t){return t[t.length-1]}function wM(t,n){if(t.length<2)return{x:0,y:0};let a=t.length-1,s=null;const l=g1(t);for(;a>=0&&(s=t[a],!(l.timestamp-s.timestamp>Dn(n)));)a--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&l.timestamp-s.timestamp>Dn(n)*2&&(s=t[1]);const c=vn(l.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const u={x:(l.x-s.x)/c,y:(l.y-s.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function TM(t,{min:n,max:a},s){return n!==void 0&&t<n?t=s?Wt(n,t,s.min):Math.max(t,n):a!==void 0&&t>a&&(t=s?Wt(a,t,s.max):Math.min(t,a)),t}function bv(t,n,a){return{min:n!==void 0?t.min+n:void 0,max:a!==void 0?t.max+a-(t.max-t.min):void 0}}function AM(t,{top:n,left:a,bottom:s,right:l}){return{x:bv(t.x,a,l),y:bv(t.y,n,s)}}function xv(t,n){let a=n.min-t.min,s=n.max-t.max;return n.max-n.min<t.max-t.min&&([a,s]=[s,a]),{min:a,max:s}}function zM(t,n){return{x:xv(t.x,n.x),y:xv(t.y,n.y)}}function EM(t,n){let a=.5;const s=Be(t),l=Be(n);return l>s?a=Zs(n.min,n.max-s,t.min):s>l&&(a=Zs(t.min,t.max-l,n.min)),Gn(0,1,a)}function MM(t,n){const a={};return n.min!==void 0&&(a.min=n.min-t.min),n.max!==void 0&&(a.max=n.max-t.min),a}const Yd=.35;function CM(t=Yd){return t===!1?t=0:t===!0&&(t=Yd),{x:Sv(t,"left","right"),y:Sv(t,"top","bottom")}}function Sv(t,n,a){return{min:_v(t,n),max:_v(t,a)}}function _v(t,n){return typeof t=="number"?t:t[n]||0}const DM=new WeakMap;class NM{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ge(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:a=!1,distanceThreshold:s}={}){const{presenceContext:l}=this.visualElement;if(l&&l.isPresent===!1)return;const c=b=>{a&&this.snapToCursor(io(b).point),this.stopAnimation()},u=(b,v)=>{const{drag:S,dragPropagation:_,onDragStart:w}=this.getProps();if(S&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fz(S),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ln(A=>{let R=this.getAxisMotionValue(A).get()||0;if(Zn.test(R)){const{projection:O}=this.visualElement;if(O&&O.layout){const C=O.layout.layoutBox[A];C&&(R=Be(C)*(parseFloat(R)/100))}}this.originPoint[A]=R}),w&&Kt.update(()=>w(b,v),!1,!0),Vd(this.visualElement,"transform");const{animationState:z}=this.visualElement;z&&z.setActive("whileDrag",!0)},h=(b,v)=>{this.latestPointerEvent=b,this.latestPanInfo=v;const{dragPropagation:S,dragDirectionLock:_,onDirectionLock:w,onDrag:z}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:A}=v;if(_&&this.currentDirection===null){this.currentDirection=RM(A),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",v.point,A),this.updateAxis("y",v.point,A),this.visualElement.render(),z&&Kt.update(()=>z(b,v),!1,!0)},m=(b,v)=>{this.latestPointerEvent=b,this.latestPanInfo=v,this.stop(b,v),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new p1(n,{onSessionStart:c,onStart:u,onMove:h,onSessionEnd:m,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:m1(this.visualElement),element:this.visualElement.current})}stop(n,a){const s=n||this.latestPointerEvent,l=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!l||!s)return;const{velocity:u}=l;this.startAnimation(u);const{onDragEnd:h}=this.getProps();h&&Kt.postRender(()=>h(s,l))}cancel(){this.isDragging=!1;const{projection:n,animationState:a}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(n,a,s){const{drag:l}=this.getProps();if(!s||!Ol(n,l,this.currentDirection))return;const c=this.getAxisMotionValue(n);let u=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(u=TM(u,this.constraints[n],this.elastic[n])),c.set(u)}resolveConstraints(){const{dragConstraints:n,dragElastic:a}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,l=this.constraints;n&&pr(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=AM(s.layoutBox,n):this.constraints=!1,this.elastic=CM(a),l!==this.constraints&&!pr(n)&&s&&this.constraints&&!this.hasMutatedConstraints&&Ln(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=MM(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:a}=this.getProps();if(!n||!pr(n))return!1;const s=n.current,{projection:l}=this.visualElement;if(!l||!l.layout)return!1;const c=Zz(s,l.root,this.visualElement.getTransformPagePoint());let u=zM(l.layout.layoutBox,c);if(a){const h=a(Bz(u));this.hasMutatedConstraints=!!h,h&&(u=Bx(h))}return u}startAnimation(n){const{drag:a,dragMomentum:s,dragElastic:l,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},p=Ln(g=>{if(!Ol(g,a,this.currentDirection))return;let b=m&&m[g]||{};u&&(b={min:0,max:0});const v=l?200:1e6,S=l?40:1e7,_={type:"inertia",velocity:s?n[g]:0,bounceStiffness:v,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...c,...b};return this.startAxisValueAnimation(g,_)});return Promise.all(p).then(h)}startAxisValueAnimation(n,a){const s=this.getAxisMotionValue(n);return Vd(this.visualElement,n),s.start(_h(n,s,0,a,this.visualElement,!1))}stopAnimation(){Ln(n=>this.getAxisMotionValue(n).stop())}getAxisMotionValue(n){const a=`_drag${n.toUpperCase()}`,s=this.visualElement.getProps(),l=s[a];return l||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){Ln(a=>{const{drag:s}=this.getProps();if(!Ol(a,s,this.currentDirection))return;const{projection:l}=this.visualElement,c=this.getAxisMotionValue(a);if(l&&l.layout){const{min:u,max:h}=l.layout.layoutBox[a],m=c.get()||0;c.set(n[a]-Wt(u,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:a}=this.getProps(),{projection:s}=this.visualElement;if(!pr(a)||!s||!this.constraints)return;this.stopAnimation();const l={x:0,y:0};Ln(u=>{const h=this.getAxisMotionValue(u);if(h&&this.constraints!==!1){const m=h.get();l[u]=EM({min:m,max:m},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),Ln(u=>{if(!Ol(u,n,null))return;const h=this.getAxisMotionValue(u),{min:m,max:p}=this.constraints[u];h.set(Wt(m,p,l[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;DM.set(this.visualElement,this);const n=this.visualElement.current,a=Ls(n,"pointerdown",p=>{const{drag:g,dragListener:b=!0}=this.getProps(),v=p.target,S=v!==n&&yz(v);g&&b&&!S&&this.start(p)});let s;const l=()=>{const{dragConstraints:p}=this.getProps();pr(p)&&p.current&&(this.constraints=this.resolveRefConstraints(),s||(s=OM(n,p.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,u=c.addEventListener("measure",l);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Kt.read(l);const h=Ys(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:p,hasLayoutChanged:g})=>{this.isDragging&&g&&(Ln(b=>{const v=this.getAxisMotionValue(b);v&&(this.originPoint[b]+=p[b].translate,v.set(v.get()+p[b].translate))}),this.visualElement.render())}));return()=>{h(),a(),u(),m&&m(),s&&s()}}getProps(){const n=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:s=!1,dragPropagation:l=!1,dragConstraints:c=!1,dragElastic:u=Yd,dragMomentum:h=!0}=n;return{...n,drag:a,dragDirectionLock:s,dragPropagation:l,dragConstraints:c,dragElastic:u,dragMomentum:h}}}function wv(t){let n=!0;return()=>{if(n){n=!1;return}t()}}function OM(t,n,a){const s=N0(t,wv(a)),l=N0(n,wv(a));return()=>{s(),l()}}function Ol(t,n,a){return(n===!0||n===t)&&(a===null||a===t)}function RM(t,n=10){let a=null;return Math.abs(t.y)>n?a="y":Math.abs(t.x)>n&&(a="x"),a}class kM extends Pi{constructor(n){super(n),this.removeGroupControls=bn,this.removeListeners=bn,this.controls=new NM(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||bn}update(){const{dragControls:n}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};n!==a&&(this.removeGroupControls(),n&&(this.removeGroupControls=n.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const fd=t=>(n,a)=>{t&&Kt.update(()=>t(n,a),!1,!0)};class jM extends Pi{constructor(){super(...arguments),this.removePointerDownListener=bn}onPointerDown(n){this.session=new p1(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:m1(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:a,onPan:s,onPanEnd:l}=this.node.getProps();return{onSessionStart:fd(n),onStart:fd(a),onMove:fd(s),onEnd:(c,u)=>{delete this.session,l&&Kt.postRender(()=>l(c,u))}}}mount(){this.removePointerDownListener=Ls(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let dd=!1;class VM extends P.Component{componentDidMount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s,layoutId:l}=this.props,{projection:c}=n;c&&(a.group&&a.group.add(c),s&&s.register&&l&&s.register(c),dd&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Kl.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:a,visualElement:s,drag:l,isPresent:c}=this.props,{projection:u}=s;return u&&(u.isPresent=c,n.layoutDependency!==a&&u.setOptions({...u.options,layoutDependency:a}),dd=!0,l||n.layoutDependency!==a||a===void 0||n.isPresent!==c?u.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?u.promote():u.relegate()||Kt.postRender(()=>{const h=u.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),zh.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s}=this.props,{projection:l}=n;dd=!0,l&&(l.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(l),s&&s.deregister&&s.deregister(l))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function y1(t){const[n,a]=GE(),s=P.useContext(Rb);return M.jsx(VM,{...t,layoutGroup:s,switchLayoutGroup:P.useContext(d1),isPresent:n,safeToRemove:a})}const BM={pan:{Feature:jM},drag:{Feature:kM,ProjectionNode:a1,MeasureLayout:y1}};function Tv(t,n,a){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",a==="Start");const l="onHover"+a,c=s[l];c&&Kt.postRender(()=>c(n,io(n)))}class UM extends Pi{mount(){const{current:n}=this.node;n&&(this.unmount=hz(n,(a,s)=>(Tv(this.node,s,"Start"),l=>Tv(this.node,l,"End"))))}unmount(){}}class LM extends Pi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=to(Ys(this.node.current,"focus",()=>this.onFocus()),Ys(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Av(t,n,a){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",a==="Start");const l="onTap"+(a==="End"?"":a),c=s[l];c&&Kt.postRender(()=>c(n,io(n)))}class ZM extends Pi{mount(){const{current:n}=this.node;if(!n)return;const{globalTapTarget:a,propagate:s}=this.node.props;this.unmount=bz(n,(l,c)=>(Av(this.node,c,"Start"),(u,{success:h})=>Av(this.node,u,h?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:s?.tap===!1})}unmount(){}}const qd=new WeakMap,hd=new WeakMap,HM=t=>{const n=qd.get(t.target);n&&n(t)},$M=t=>{t.forEach(HM)};function GM({root:t,...n}){const a=t||document;hd.has(a)||hd.set(a,{});const s=hd.get(a),l=JSON.stringify(n);return s[l]||(s[l]=new IntersectionObserver($M,{root:t,...n})),s[l]}function YM(t,n,a){const s=GM(n);return qd.set(t,a),s.observe(t),()=>{qd.delete(t),s.unobserve(t)}}const qM={some:0,all:1};class XM extends Pi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:a,margin:s,amount:l="some",once:c}=n,u={root:a?a.current:void 0,rootMargin:s,threshold:typeof l=="number"?l:qM[l]},h=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,c&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:b}=this.node.getProps(),v=p?g:b;v&&v(m)};return YM(this.node.current,u,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:a}=this.node;["amount","margin","root"].some(KM(n,a))&&this.startObserver()}unmount(){}}function KM({viewport:t={}},{viewport:n={}}={}){return a=>t[a]!==n[a]}const QM={inView:{Feature:XM},tap:{Feature:ZM},focus:{Feature:LM},hover:{Feature:UM}},PM={layout:{ProjectionNode:a1,MeasureLayout:y1}},FM={...bM,...QM,...BM,...PM},md=mM(FM,pM);function J(t,n,a){function s(h,m){if(h._zod||Object.defineProperty(h,"_zod",{value:{def:m,constr:u,traits:new Set},enumerable:!1}),h._zod.traits.has(t))return;h._zod.traits.add(t),n(h,m);const p=u.prototype,g=Object.keys(p);for(let b=0;b<g.length;b++){const v=g[b];v in h||(h[v]=p[v].bind(h))}}const l=a?.Parent??Object;class c extends l{}Object.defineProperty(c,"name",{value:t});function u(h){var m;const p=a?.Parent?new c:this;s(p,h),(m=p._zod).deferred??(m.deferred=[]);for(const g of p._zod.deferred)g();return p}return Object.defineProperty(u,"init",{value:s}),Object.defineProperty(u,Symbol.hasInstance,{value:h=>a?.Parent&&h instanceof a.Parent?!0:h?._zod?.traits?.has(t)}),Object.defineProperty(u,"name",{value:t}),u}class wr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class v1 extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}const b1={};function Aa(t){return b1}function x1(t){const n=Object.values(t).filter(s=>typeof s=="number");return Object.entries(t).filter(([s,l])=>n.indexOf(+s)===-1).map(([s,l])=>l)}function Xd(t,n){return typeof n=="bigint"?n.toString():n}function jh(t){return{get value(){{const n=t();return Object.defineProperty(this,"value",{value:n}),n}}}}function Vh(t){return t==null}function Bh(t){const n=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;return t.slice(n,a)}function JM(t,n){const a=(t.toString().split(".")[1]||"").length,s=n.toString();let l=(s.split(".")[1]||"").length;if(l===0&&/\d?e-\d?/.test(s)){const m=s.match(/\d?e-(\d?)/);m?.[1]&&(l=Number.parseInt(m[1]))}const c=a>l?a:l,u=Number.parseInt(t.toFixed(c).replace(".","")),h=Number.parseInt(n.toFixed(c).replace(".",""));return u%h/10**c}const zv=Symbol("evaluating");function Zt(t,n,a){let s;Object.defineProperty(t,n,{get(){if(s!==zv)return s===void 0&&(s=zv,s=a()),s},set(l){Object.defineProperty(t,n,{value:l})},configurable:!0})}function Ca(t,n,a){Object.defineProperty(t,n,{value:a,writable:!0,enumerable:!0,configurable:!0})}function Fi(...t){const n={};for(const a of t){const s=Object.getOwnPropertyDescriptors(a);Object.assign(n,s)}return Object.defineProperties({},n)}function Ev(t){return JSON.stringify(t)}function IM(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const S1="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function lu(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const WM=jh(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function qs(t){if(lu(t)===!1)return!1;const n=t.constructor;if(n===void 0||typeof n!="function")return!0;const a=n.prototype;return!(lu(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function _1(t){return qs(t)?{...t}:Array.isArray(t)?[...t]:t}const tC=new Set(["string","number","symbol"]);function _u(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ji(t,n,a){const s=new t._zod.constr(n??t._zod.def);return(!n||a?.parent)&&(s._zod.parent=t),s}function pt(t){const n=t;if(!n)return{};if(typeof n=="string")return{error:()=>n};if(n?.message!==void 0){if(n?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function eC(t){return Object.keys(t).filter(n=>t[n]._zod.optin==="optional"&&t[n]._zod.optout==="optional")}const nC={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function iC(t,n){const a=t._zod.def,s=a.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const c=Fi(t._zod.def,{get shape(){const u={};for(const h in n){if(!(h in a.shape))throw new Error(`Unrecognized key: "${h}"`);n[h]&&(u[h]=a.shape[h])}return Ca(this,"shape",u),u},checks:[]});return Ji(t,c)}function aC(t,n){const a=t._zod.def,s=a.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const c=Fi(t._zod.def,{get shape(){const u={...t._zod.def.shape};for(const h in n){if(!(h in a.shape))throw new Error(`Unrecognized key: "${h}"`);n[h]&&delete u[h]}return Ca(this,"shape",u),u},checks:[]});return Ji(t,c)}function rC(t,n){if(!qs(n))throw new Error("Invalid input to extend: expected a plain object");const a=t._zod.def.checks;if(a&&a.length>0){const c=t._zod.def.shape;for(const u in n)if(Object.getOwnPropertyDescriptor(c,u)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const l=Fi(t._zod.def,{get shape(){const c={...t._zod.def.shape,...n};return Ca(this,"shape",c),c}});return Ji(t,l)}function sC(t,n){if(!qs(n))throw new Error("Invalid input to safeExtend: expected a plain object");const a=Fi(t._zod.def,{get shape(){const s={...t._zod.def.shape,...n};return Ca(this,"shape",s),s}});return Ji(t,a)}function oC(t,n){const a=Fi(t._zod.def,{get shape(){const s={...t._zod.def.shape,...n._zod.def.shape};return Ca(this,"shape",s),s},get catchall(){return n._zod.def.catchall},checks:[]});return Ji(t,a)}function lC(t,n,a){const l=n._zod.def.checks;if(l&&l.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const u=Fi(n._zod.def,{get shape(){const h=n._zod.def.shape,m={...h};if(a)for(const p in a){if(!(p in h))throw new Error(`Unrecognized key: "${p}"`);a[p]&&(m[p]=t?new t({type:"optional",innerType:h[p]}):h[p])}else for(const p in h)m[p]=t?new t({type:"optional",innerType:h[p]}):h[p];return Ca(this,"shape",m),m},checks:[]});return Ji(n,u)}function uC(t,n,a){const s=Fi(n._zod.def,{get shape(){const l=n._zod.def.shape,c={...l};if(a)for(const u in a){if(!(u in c))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(c[u]=new t({type:"nonoptional",innerType:l[u]}))}else for(const u in l)c[u]=new t({type:"nonoptional",innerType:l[u]});return Ca(this,"shape",c),c}});return Ji(n,s)}function Sr(t,n=0){if(t.aborted===!0)return!0;for(let a=n;a<t.issues.length;a++)if(t.issues[a]?.continue!==!0)return!0;return!1}function w1(t,n){return n.map(a=>{var s;return(s=a).path??(s.path=[]),a.path.unshift(t),a})}function Rl(t){return typeof t=="string"?t:t?.message}function za(t,n,a){const s={...t,path:t.path??[]};if(!t.message){const l=Rl(t.inst?._zod.def?.error?.(t))??Rl(n?.error?.(t))??Rl(a.customError?.(t))??Rl(a.localeError?.(t))??"Invalid input";s.message=l}return delete s.inst,delete s.continue,n?.reportInput||delete s.input,s}function Uh(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function Xs(...t){const[n,a,s]=t;return typeof n=="string"?{message:n,code:"custom",input:a,inst:s}:{...n}}const T1=(t,n)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:n,enumerable:!1}),t.message=JSON.stringify(n,Xd,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},A1=J("$ZodError",T1),z1=J("$ZodError",T1,{Parent:Error});function cC(t,n=a=>a.message){const a={},s=[];for(const l of t.issues)l.path.length>0?(a[l.path[0]]=a[l.path[0]]||[],a[l.path[0]].push(n(l))):s.push(n(l));return{formErrors:s,fieldErrors:a}}function fC(t,n=a=>a.message){const a={_errors:[]},s=l=>{for(const c of l.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>s({issues:u}));else if(c.code==="invalid_key")s({issues:c.issues});else if(c.code==="invalid_element")s({issues:c.issues});else if(c.path.length===0)a._errors.push(n(c));else{let u=a,h=0;for(;h<c.path.length;){const m=c.path[h];h===c.path.length-1?(u[m]=u[m]||{_errors:[]},u[m]._errors.push(n(c))):u[m]=u[m]||{_errors:[]},u=u[m],h++}}};return s(t),a}const Lh=t=>(n,a,s,l)=>{const c=s?Object.assign(s,{async:!1}):{async:!1},u=n._zod.run({value:a,issues:[]},c);if(u instanceof Promise)throw new wr;if(u.issues.length){const h=new(l?.Err??t)(u.issues.map(m=>za(m,c,Aa())));throw S1(h,l?.callee),h}return u.value},Zh=t=>async(n,a,s,l)=>{const c=s?Object.assign(s,{async:!0}):{async:!0};let u=n._zod.run({value:a,issues:[]},c);if(u instanceof Promise&&(u=await u),u.issues.length){const h=new(l?.Err??t)(u.issues.map(m=>za(m,c,Aa())));throw S1(h,l?.callee),h}return u.value},wu=t=>(n,a,s)=>{const l=s?{...s,async:!1}:{async:!1},c=n._zod.run({value:a,issues:[]},l);if(c instanceof Promise)throw new wr;return c.issues.length?{success:!1,error:new(t??A1)(c.issues.map(u=>za(u,l,Aa())))}:{success:!0,data:c.value}},dC=wu(z1),Tu=t=>async(n,a,s)=>{const l=s?Object.assign(s,{async:!0}):{async:!0};let c=n._zod.run({value:a,issues:[]},l);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new t(c.issues.map(u=>za(u,l,Aa())))}:{success:!0,data:c.value}},hC=Tu(z1),mC=t=>(n,a,s)=>{const l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Lh(t)(n,a,l)},pC=t=>(n,a,s)=>Lh(t)(n,a,s),gC=t=>async(n,a,s)=>{const l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Zh(t)(n,a,l)},yC=t=>async(n,a,s)=>Zh(t)(n,a,s),vC=t=>(n,a,s)=>{const l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return wu(t)(n,a,l)},bC=t=>(n,a,s)=>wu(t)(n,a,s),xC=t=>async(n,a,s)=>{const l=s?Object.assign(s,{direction:"backward"}):{direction:"backward"};return Tu(t)(n,a,l)},SC=t=>async(n,a,s)=>Tu(t)(n,a,s),_C=/^[cC][^\s-]{8,}$/,wC=/^[0-9a-z]+$/,TC=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,AC=/^[0-9a-vA-V]{20}$/,zC=/^[A-Za-z0-9]{27}$/,EC=/^[a-zA-Z0-9_-]{21}$/,MC=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,CC=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Mv=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,DC=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,NC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function OC(){return new RegExp(NC,"u")}const RC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,kC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,jC=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,VC=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,BC=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,E1=/^[A-Za-z0-9_-]*$/,UC=/^\+[1-9]\d{6,14}$/,M1="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",LC=new RegExp(`^${M1}$`);function C1(t){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${n}`:t.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${t.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ZC(t){return new RegExp(`^${C1(t)}$`)}function HC(t){const n=C1({precision:t.precision}),a=["Z"];t.local&&a.push(""),t.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${n}(?:${a.join("|")})`;return new RegExp(`^${M1}T(?:${s})$`)}const $C=t=>{const n=t?`[\\s\\S]{${t?.minimum??0},${t?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},GC=/^-?\d+$/,YC=/^-?\d+(?:\.\d+)?$/,qC=/^[^A-Z]*$/,XC=/^[^a-z]*$/,Qe=J("$ZodCheck",(t,n)=>{var a;t._zod??(t._zod={}),t._zod.def=n,(a=t._zod).onattach??(a.onattach=[])}),D1={number:"number",bigint:"bigint",object:"date"},N1=J("$ZodCheckLessThan",(t,n)=>{Qe.init(t,n);const a=D1[typeof n.value];t._zod.onattach.push(s=>{const l=s._zod.bag,c=(n.inclusive?l.maximum:l.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value<c&&(n.inclusive?l.maximum=n.value:l.exclusiveMaximum=n.value)}),t._zod.check=s=>{(n.inclusive?s.value<=n.value:s.value<n.value)||s.issues.push({origin:a,code:"too_big",maximum:typeof n.value=="object"?n.value.getTime():n.value,input:s.value,inclusive:n.inclusive,inst:t,continue:!n.abort})}}),O1=J("$ZodCheckGreaterThan",(t,n)=>{Qe.init(t,n);const a=D1[typeof n.value];t._zod.onattach.push(s=>{const l=s._zod.bag,c=(n.inclusive?l.minimum:l.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>c&&(n.inclusive?l.minimum=n.value:l.exclusiveMinimum=n.value)}),t._zod.check=s=>{(n.inclusive?s.value>=n.value:s.value>n.value)||s.issues.push({origin:a,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:s.value,inclusive:n.inclusive,inst:t,continue:!n.abort})}}),KC=J("$ZodCheckMultipleOf",(t,n)=>{Qe.init(t,n),t._zod.onattach.push(a=>{var s;(s=a._zod.bag).multipleOf??(s.multipleOf=n.value)}),t._zod.check=a=>{if(typeof a.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof a.value=="bigint"?a.value%n.value===BigInt(0):JM(a.value,n.value)===0)||a.issues.push({origin:typeof a.value,code:"not_multiple_of",divisor:n.value,input:a.value,inst:t,continue:!n.abort})}}),QC=J("$ZodCheckNumberFormat",(t,n)=>{Qe.init(t,n),n.format=n.format||"float64";const a=n.format?.includes("int"),s=a?"int":"number",[l,c]=nC[n.format];t._zod.onattach.push(u=>{const h=u._zod.bag;h.format=n.format,h.minimum=l,h.maximum=c,a&&(h.pattern=GC)}),t._zod.check=u=>{const h=u.value;if(a){if(!Number.isInteger(h)){u.issues.push({expected:s,format:n.format,code:"invalid_type",continue:!1,input:h,inst:t});return}if(!Number.isSafeInteger(h)){h>0?u.issues.push({input:h,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:s,inclusive:!0,continue:!n.abort}):u.issues.push({input:h,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:s,inclusive:!0,continue:!n.abort});return}}h<l&&u.issues.push({origin:"number",input:h,code:"too_small",minimum:l,inclusive:!0,inst:t,continue:!n.abort}),h>c&&u.issues.push({origin:"number",input:h,code:"too_big",maximum:c,inclusive:!0,inst:t,continue:!n.abort})}}),PC=J("$ZodCheckMaxLength",(t,n)=>{var a;Qe.init(t,n),(a=t._zod.def).when??(a.when=s=>{const l=s.value;return!Vh(l)&&l.length!==void 0}),t._zod.onattach.push(s=>{const l=s._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum<l&&(s._zod.bag.maximum=n.maximum)}),t._zod.check=s=>{const l=s.value;if(l.length<=n.maximum)return;const u=Uh(l);s.issues.push({origin:u,code:"too_big",maximum:n.maximum,inclusive:!0,input:l,inst:t,continue:!n.abort})}}),FC=J("$ZodCheckMinLength",(t,n)=>{var a;Qe.init(t,n),(a=t._zod.def).when??(a.when=s=>{const l=s.value;return!Vh(l)&&l.length!==void 0}),t._zod.onattach.push(s=>{const l=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>l&&(s._zod.bag.minimum=n.minimum)}),t._zod.check=s=>{const l=s.value;if(l.length>=n.minimum)return;const u=Uh(l);s.issues.push({origin:u,code:"too_small",minimum:n.minimum,inclusive:!0,input:l,inst:t,continue:!n.abort})}}),JC=J("$ZodCheckLengthEquals",(t,n)=>{var a;Qe.init(t,n),(a=t._zod.def).when??(a.when=s=>{const l=s.value;return!Vh(l)&&l.length!==void 0}),t._zod.onattach.push(s=>{const l=s._zod.bag;l.minimum=n.length,l.maximum=n.length,l.length=n.length}),t._zod.check=s=>{const l=s.value,c=l.length;if(c===n.length)return;const u=Uh(l),h=c>n.length;s.issues.push({origin:u,...h?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:s.value,inst:t,continue:!n.abort})}}),Au=J("$ZodCheckStringFormat",(t,n)=>{var a,s;Qe.init(t,n),t._zod.onattach.push(l=>{const c=l._zod.bag;c.format=n.format,n.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(n.pattern))}),n.pattern?(a=t._zod).check??(a.check=l=>{n.pattern.lastIndex=0,!n.pattern.test(l.value)&&l.issues.push({origin:"string",code:"invalid_format",format:n.format,input:l.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:t,continue:!n.abort})}):(s=t._zod).check??(s.check=()=>{})}),IC=J("$ZodCheckRegex",(t,n)=>{Au.init(t,n),t._zod.check=a=>{n.pattern.lastIndex=0,!n.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:n.pattern.toString(),inst:t,continue:!n.abort})}}),WC=J("$ZodCheckLowerCase",(t,n)=>{n.pattern??(n.pattern=qC),Au.init(t,n)}),t4=J("$ZodCheckUpperCase",(t,n)=>{n.pattern??(n.pattern=XC),Au.init(t,n)}),e4=J("$ZodCheckIncludes",(t,n)=>{Qe.init(t,n);const a=_u(n.includes),s=new RegExp(typeof n.position=="number"?`^.{${n.position}}${a}`:a);n.pattern=s,t._zod.onattach.push(l=>{const c=l._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(s)}),t._zod.check=l=>{l.value.includes(n.includes,n.position)||l.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:l.value,inst:t,continue:!n.abort})}}),n4=J("$ZodCheckStartsWith",(t,n)=>{Qe.init(t,n);const a=new RegExp(`^${_u(n.prefix)}.*`);n.pattern??(n.pattern=a),t._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(a)}),t._zod.check=s=>{s.value.startsWith(n.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:s.value,inst:t,continue:!n.abort})}}),i4=J("$ZodCheckEndsWith",(t,n)=>{Qe.init(t,n);const a=new RegExp(`.*${_u(n.suffix)}$`);n.pattern??(n.pattern=a),t._zod.onattach.push(s=>{const l=s._zod.bag;l.patterns??(l.patterns=new Set),l.patterns.add(a)}),t._zod.check=s=>{s.value.endsWith(n.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:s.value,inst:t,continue:!n.abort})}}),a4=J("$ZodCheckOverwrite",(t,n)=>{Qe.init(t,n),t._zod.check=a=>{a.value=n.tx(a.value)}});class r4{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const s=n.split(`
|
|
11
|
+
`).filter(u=>u),l=Math.min(...s.map(u=>u.length-u.trimStart().length)),c=s.map(u=>u.slice(l)).map(u=>" ".repeat(this.indent*2)+u);for(const u of c)this.content.push(u)}compile(){const n=Function,a=this?.args,l=[...(this?.content??[""]).map(c=>` ${c}`)];return new n(...a,l.join(`
|
|
12
|
+
`))}}const s4={major:4,minor:3,patch:6},oe=J("$ZodType",(t,n)=>{var a;t??(t={}),t._zod.def=n,t._zod.bag=t._zod.bag||{},t._zod.version=s4;const s=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&s.unshift(t);for(const l of s)for(const c of l._zod.onattach)c(t);if(s.length===0)(a=t._zod).deferred??(a.deferred=[]),t._zod.deferred?.push(()=>{t._zod.run=t._zod.parse});else{const l=(u,h,m)=>{let p=Sr(u),g;for(const b of h){if(b._zod.def.when){if(!b._zod.def.when(u))continue}else if(p)continue;const v=u.issues.length,S=b._zod.check(u);if(S instanceof Promise&&m?.async===!1)throw new wr;if(g||S instanceof Promise)g=(g??Promise.resolve()).then(async()=>{await S,u.issues.length!==v&&(p||(p=Sr(u,v)))});else{if(u.issues.length===v)continue;p||(p=Sr(u,v))}}return g?g.then(()=>u):u},c=(u,h,m)=>{if(Sr(u))return u.aborted=!0,u;const p=l(h,s,m);if(p instanceof Promise){if(m.async===!1)throw new wr;return p.then(g=>t._zod.parse(g,m))}return t._zod.parse(p,m)};t._zod.run=(u,h)=>{if(h.skipChecks)return t._zod.parse(u,h);if(h.direction==="backward"){const p=t._zod.parse({value:u.value,issues:[]},{...h,skipChecks:!0});return p instanceof Promise?p.then(g=>c(g,u,h)):c(p,u,h)}const m=t._zod.parse(u,h);if(m instanceof Promise){if(h.async===!1)throw new wr;return m.then(p=>l(p,s,h))}return l(m,s,h)}}Zt(t,"~standard",()=>({validate:l=>{try{const c=dC(t,l);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return hC(t,l).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}))}),Hh=J("$ZodString",(t,n)=>{oe.init(t,n),t._zod.pattern=[...t?._zod.bag?.patterns??[]].pop()??$C(t._zod.bag),t._zod.parse=(a,s)=>{if(n.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:t}),a}}),It=J("$ZodStringFormat",(t,n)=>{Au.init(t,n),Hh.init(t,n)}),o4=J("$ZodGUID",(t,n)=>{n.pattern??(n.pattern=CC),It.init(t,n)}),l4=J("$ZodUUID",(t,n)=>{if(n.version){const s={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(s===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Mv(s))}else n.pattern??(n.pattern=Mv());It.init(t,n)}),u4=J("$ZodEmail",(t,n)=>{n.pattern??(n.pattern=DC),It.init(t,n)}),c4=J("$ZodURL",(t,n)=>{It.init(t,n),t._zod.check=a=>{try{const s=a.value.trim(),l=new URL(s);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(l.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:a.value,inst:t,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(l.protocol.endsWith(":")?l.protocol.slice(0,-1):l.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:a.value,inst:t,continue:!n.abort})),n.normalize?a.value=l.href:a.value=s;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:t,continue:!n.abort})}}}),f4=J("$ZodEmoji",(t,n)=>{n.pattern??(n.pattern=OC()),It.init(t,n)}),d4=J("$ZodNanoID",(t,n)=>{n.pattern??(n.pattern=EC),It.init(t,n)}),h4=J("$ZodCUID",(t,n)=>{n.pattern??(n.pattern=_C),It.init(t,n)}),m4=J("$ZodCUID2",(t,n)=>{n.pattern??(n.pattern=wC),It.init(t,n)}),p4=J("$ZodULID",(t,n)=>{n.pattern??(n.pattern=TC),It.init(t,n)}),g4=J("$ZodXID",(t,n)=>{n.pattern??(n.pattern=AC),It.init(t,n)}),y4=J("$ZodKSUID",(t,n)=>{n.pattern??(n.pattern=zC),It.init(t,n)}),v4=J("$ZodISODateTime",(t,n)=>{n.pattern??(n.pattern=HC(n)),It.init(t,n)}),b4=J("$ZodISODate",(t,n)=>{n.pattern??(n.pattern=LC),It.init(t,n)}),x4=J("$ZodISOTime",(t,n)=>{n.pattern??(n.pattern=ZC(n)),It.init(t,n)}),S4=J("$ZodISODuration",(t,n)=>{n.pattern??(n.pattern=MC),It.init(t,n)}),_4=J("$ZodIPv4",(t,n)=>{n.pattern??(n.pattern=RC),It.init(t,n),t._zod.bag.format="ipv4"}),w4=J("$ZodIPv6",(t,n)=>{n.pattern??(n.pattern=kC),It.init(t,n),t._zod.bag.format="ipv6",t._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:t,continue:!n.abort})}}}),T4=J("$ZodCIDRv4",(t,n)=>{n.pattern??(n.pattern=jC),It.init(t,n)}),A4=J("$ZodCIDRv6",(t,n)=>{n.pattern??(n.pattern=VC),It.init(t,n),t._zod.check=a=>{const s=a.value.split("/");try{if(s.length!==2)throw new Error;const[l,c]=s;if(!c)throw new Error;const u=Number(c);if(`${u}`!==c)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${l}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:t,continue:!n.abort})}}});function R1(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const z4=J("$ZodBase64",(t,n)=>{n.pattern??(n.pattern=BC),It.init(t,n),t._zod.bag.contentEncoding="base64",t._zod.check=a=>{R1(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:t,continue:!n.abort})}});function E4(t){if(!E1.test(t))return!1;const n=t.replace(/[-_]/g,s=>s==="-"?"+":"/"),a=n.padEnd(Math.ceil(n.length/4)*4,"=");return R1(a)}const M4=J("$ZodBase64URL",(t,n)=>{n.pattern??(n.pattern=E1),It.init(t,n),t._zod.bag.contentEncoding="base64url",t._zod.check=a=>{E4(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:t,continue:!n.abort})}}),C4=J("$ZodE164",(t,n)=>{n.pattern??(n.pattern=UC),It.init(t,n)});function D4(t,n=null){try{const a=t.split(".");if(a.length!==3)return!1;const[s]=a;if(!s)return!1;const l=JSON.parse(atob(s));return!("typ"in l&&l?.typ!=="JWT"||!l.alg||n&&(!("alg"in l)||l.alg!==n))}catch{return!1}}const N4=J("$ZodJWT",(t,n)=>{It.init(t,n),t._zod.check=a=>{D4(a.value,n.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:t,continue:!n.abort})}}),k1=J("$ZodNumber",(t,n)=>{oe.init(t,n),t._zod.pattern=t._zod.bag.pattern??YC,t._zod.parse=(a,s)=>{if(n.coerce)try{a.value=Number(a.value)}catch{}const l=a.value;if(typeof l=="number"&&!Number.isNaN(l)&&Number.isFinite(l))return a;const c=typeof l=="number"?Number.isNaN(l)?"NaN":Number.isFinite(l)?void 0:"Infinity":void 0;return a.issues.push({expected:"number",code:"invalid_type",input:l,inst:t,...c?{received:c}:{}}),a}}),O4=J("$ZodNumberFormat",(t,n)=>{QC.init(t,n),k1.init(t,n)}),R4=J("$ZodAny",(t,n)=>{oe.init(t,n),t._zod.parse=a=>a}),k4=J("$ZodUnknown",(t,n)=>{oe.init(t,n),t._zod.parse=a=>a}),j4=J("$ZodNever",(t,n)=>{oe.init(t,n),t._zod.parse=(a,s)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:t}),a)});function Cv(t,n,a){t.issues.length&&n.issues.push(...w1(a,t.issues)),n.value[a]=t.value}const V4=J("$ZodArray",(t,n)=>{oe.init(t,n),t._zod.parse=(a,s)=>{const l=a.value;if(!Array.isArray(l))return a.issues.push({expected:"array",code:"invalid_type",input:l,inst:t}),a;a.value=Array(l.length);const c=[];for(let u=0;u<l.length;u++){const h=l[u],m=n.element._zod.run({value:h,issues:[]},s);m instanceof Promise?c.push(m.then(p=>Cv(p,a,u))):Cv(m,a,u)}return c.length?Promise.all(c).then(()=>a):a}});function uu(t,n,a,s,l){if(t.issues.length){if(l&&!(a in s))return;n.issues.push(...w1(a,t.issues))}t.value===void 0?a in s&&(n.value[a]=void 0):n.value[a]=t.value}function j1(t){const n=Object.keys(t.shape);for(const s of n)if(!t.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const a=eC(t.shape);return{...t,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(a)}}function V1(t,n,a,s,l,c){const u=[],h=l.keySet,m=l.catchall._zod,p=m.def.type,g=m.optout==="optional";for(const b in n){if(h.has(b))continue;if(p==="never"){u.push(b);continue}const v=m.run({value:n[b],issues:[]},s);v instanceof Promise?t.push(v.then(S=>uu(S,a,b,n,g))):uu(v,a,b,n,g)}return u.length&&a.issues.push({code:"unrecognized_keys",keys:u,input:n,inst:c}),t.length?Promise.all(t).then(()=>a):a}const B4=J("$ZodObject",(t,n)=>{if(oe.init(t,n),!Object.getOwnPropertyDescriptor(n,"shape")?.get){const h=n.shape;Object.defineProperty(n,"shape",{get:()=>{const m={...h};return Object.defineProperty(n,"shape",{value:m}),m}})}const s=jh(()=>j1(n));Zt(t._zod,"propValues",()=>{const h=n.shape,m={};for(const p in h){const g=h[p]._zod;if(g.values){m[p]??(m[p]=new Set);for(const b of g.values)m[p].add(b)}}return m});const l=lu,c=n.catchall;let u;t._zod.parse=(h,m)=>{u??(u=s.value);const p=h.value;if(!l(p))return h.issues.push({expected:"object",code:"invalid_type",input:p,inst:t}),h;h.value={};const g=[],b=u.shape;for(const v of u.keys){const S=b[v],_=S._zod.optout==="optional",w=S._zod.run({value:p[v],issues:[]},m);w instanceof Promise?g.push(w.then(z=>uu(z,h,v,p,_))):uu(w,h,v,p,_)}return c?V1(g,p,h,m,s.value,t):g.length?Promise.all(g).then(()=>h):h}}),U4=J("$ZodObjectJIT",(t,n)=>{B4.init(t,n);const a=t._zod.parse,s=jh(()=>j1(n)),l=v=>{const S=new r4(["shape","payload","ctx"]),_=s.value,w=O=>{const C=Ev(O);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};S.write("const input = payload.value;");const z=Object.create(null);let A=0;for(const O of _.keys)z[O]=`key_${A++}`;S.write("const newResult = {};");for(const O of _.keys){const C=z[O],L=Ev(O),V=v[O]?._zod?.optout==="optional";S.write(`const ${C} = ${w(O)};`),V?S.write(`
|
|
13
|
+
if (${C}.issues.length) {
|
|
14
|
+
if (${L} in input) {
|
|
15
|
+
payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
|
|
16
|
+
...iss,
|
|
17
|
+
path: iss.path ? [${L}, ...iss.path] : [${L}]
|
|
18
|
+
})));
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (${C}.value === undefined) {
|
|
23
|
+
if (${L} in input) {
|
|
24
|
+
newResult[${L}] = undefined;
|
|
25
|
+
}
|
|
26
|
+
} else {
|
|
27
|
+
newResult[${L}] = ${C}.value;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
`):S.write(`
|
|
31
|
+
if (${C}.issues.length) {
|
|
32
|
+
payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
|
|
33
|
+
...iss,
|
|
34
|
+
path: iss.path ? [${L}, ...iss.path] : [${L}]
|
|
35
|
+
})));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (${C}.value === undefined) {
|
|
39
|
+
if (${L} in input) {
|
|
40
|
+
newResult[${L}] = undefined;
|
|
41
|
+
}
|
|
42
|
+
} else {
|
|
43
|
+
newResult[${L}] = ${C}.value;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
`)}S.write("payload.value = newResult;"),S.write("return payload;");const R=S.compile();return(O,C)=>R(v,O,C)};let c;const u=lu,h=!b1.jitless,p=h&&WM.value,g=n.catchall;let b;t._zod.parse=(v,S)=>{b??(b=s.value);const _=v.value;return u(_)?h&&p&&S?.async===!1&&S.jitless!==!0?(c||(c=l(n.shape)),v=c(v,S),g?V1([],_,v,S,b,t):v):a(v,S):(v.issues.push({expected:"object",code:"invalid_type",input:_,inst:t}),v)}});function Dv(t,n,a,s){for(const c of t)if(c.issues.length===0)return n.value=c.value,n;const l=t.filter(c=>!Sr(c));return l.length===1?(n.value=l[0].value,l[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:a,errors:t.map(c=>c.issues.map(u=>za(u,s,Aa())))}),n)}const L4=J("$ZodUnion",(t,n)=>{oe.init(t,n),Zt(t._zod,"optin",()=>n.options.some(l=>l._zod.optin==="optional")?"optional":void 0),Zt(t._zod,"optout",()=>n.options.some(l=>l._zod.optout==="optional")?"optional":void 0),Zt(t._zod,"values",()=>{if(n.options.every(l=>l._zod.values))return new Set(n.options.flatMap(l=>Array.from(l._zod.values)))}),Zt(t._zod,"pattern",()=>{if(n.options.every(l=>l._zod.pattern)){const l=n.options.map(c=>c._zod.pattern);return new RegExp(`^(${l.map(c=>Bh(c.source)).join("|")})$`)}});const a=n.options.length===1,s=n.options[0]._zod.run;t._zod.parse=(l,c)=>{if(a)return s(l,c);let u=!1;const h=[];for(const m of n.options){const p=m._zod.run({value:l.value,issues:[]},c);if(p instanceof Promise)h.push(p),u=!0;else{if(p.issues.length===0)return p;h.push(p)}}return u?Promise.all(h).then(m=>Dv(m,l,t,c)):Dv(h,l,t,c)}}),Z4=J("$ZodIntersection",(t,n)=>{oe.init(t,n),t._zod.parse=(a,s)=>{const l=a.value,c=n.left._zod.run({value:l,issues:[]},s),u=n.right._zod.run({value:l,issues:[]},s);return c instanceof Promise||u instanceof Promise?Promise.all([c,u]).then(([m,p])=>Nv(a,m,p)):Nv(a,c,u)}});function Kd(t,n){if(t===n)return{valid:!0,data:t};if(t instanceof Date&&n instanceof Date&&+t==+n)return{valid:!0,data:t};if(qs(t)&&qs(n)){const a=Object.keys(n),s=Object.keys(t).filter(c=>a.indexOf(c)!==-1),l={...t,...n};for(const c of s){const u=Kd(t[c],n[c]);if(!u.valid)return{valid:!1,mergeErrorPath:[c,...u.mergeErrorPath]};l[c]=u.data}return{valid:!0,data:l}}if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let s=0;s<t.length;s++){const l=t[s],c=n[s],u=Kd(l,c);if(!u.valid)return{valid:!1,mergeErrorPath:[s,...u.mergeErrorPath]};a.push(u.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function Nv(t,n,a){const s=new Map;let l;for(const h of n.issues)if(h.code==="unrecognized_keys"){l??(l=h);for(const m of h.keys)s.has(m)||s.set(m,{}),s.get(m).l=!0}else t.issues.push(h);for(const h of a.issues)if(h.code==="unrecognized_keys")for(const m of h.keys)s.has(m)||s.set(m,{}),s.get(m).r=!0;else t.issues.push(h);const c=[...s].filter(([,h])=>h.l&&h.r).map(([h])=>h);if(c.length&&l&&t.issues.push({...l,keys:c}),Sr(t))return t;const u=Kd(n.value,a.value);if(!u.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(u.mergeErrorPath)}`);return t.value=u.data,t}const H4=J("$ZodEnum",(t,n)=>{oe.init(t,n);const a=x1(n.entries),s=new Set(a);t._zod.values=s,t._zod.pattern=new RegExp(`^(${a.filter(l=>tC.has(typeof l)).map(l=>typeof l=="string"?_u(l):l.toString()).join("|")})$`),t._zod.parse=(l,c)=>{const u=l.value;return s.has(u)||l.issues.push({code:"invalid_value",values:a,input:u,inst:t}),l}}),$4=J("$ZodTransform",(t,n)=>{oe.init(t,n),t._zod.parse=(a,s)=>{if(s.direction==="backward")throw new v1(t.constructor.name);const l=n.transform(a.value,a);if(s.async)return(l instanceof Promise?l:Promise.resolve(l)).then(u=>(a.value=u,a));if(l instanceof Promise)throw new wr;return a.value=l,a}});function Ov(t,n){return t.issues.length&&n===void 0?{issues:[],value:void 0}:t}const B1=J("$ZodOptional",(t,n)=>{oe.init(t,n),t._zod.optin="optional",t._zod.optout="optional",Zt(t._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),Zt(t._zod,"pattern",()=>{const a=n.innerType._zod.pattern;return a?new RegExp(`^(${Bh(a.source)})?$`):void 0}),t._zod.parse=(a,s)=>{if(n.innerType._zod.optin==="optional"){const l=n.innerType._zod.run(a,s);return l instanceof Promise?l.then(c=>Ov(c,a.value)):Ov(l,a.value)}return a.value===void 0?a:n.innerType._zod.run(a,s)}}),G4=J("$ZodExactOptional",(t,n)=>{B1.init(t,n),Zt(t._zod,"values",()=>n.innerType._zod.values),Zt(t._zod,"pattern",()=>n.innerType._zod.pattern),t._zod.parse=(a,s)=>n.innerType._zod.run(a,s)}),Y4=J("$ZodNullable",(t,n)=>{oe.init(t,n),Zt(t._zod,"optin",()=>n.innerType._zod.optin),Zt(t._zod,"optout",()=>n.innerType._zod.optout),Zt(t._zod,"pattern",()=>{const a=n.innerType._zod.pattern;return a?new RegExp(`^(${Bh(a.source)}|null)$`):void 0}),Zt(t._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),t._zod.parse=(a,s)=>a.value===null?a:n.innerType._zod.run(a,s)}),q4=J("$ZodDefault",(t,n)=>{oe.init(t,n),t._zod.optin="optional",Zt(t._zod,"values",()=>n.innerType._zod.values),t._zod.parse=(a,s)=>{if(s.direction==="backward")return n.innerType._zod.run(a,s);if(a.value===void 0)return a.value=n.defaultValue,a;const l=n.innerType._zod.run(a,s);return l instanceof Promise?l.then(c=>Rv(c,n)):Rv(l,n)}});function Rv(t,n){return t.value===void 0&&(t.value=n.defaultValue),t}const X4=J("$ZodPrefault",(t,n)=>{oe.init(t,n),t._zod.optin="optional",Zt(t._zod,"values",()=>n.innerType._zod.values),t._zod.parse=(a,s)=>(s.direction==="backward"||a.value===void 0&&(a.value=n.defaultValue),n.innerType._zod.run(a,s))}),K4=J("$ZodNonOptional",(t,n)=>{oe.init(t,n),Zt(t._zod,"values",()=>{const a=n.innerType._zod.values;return a?new Set([...a].filter(s=>s!==void 0)):void 0}),t._zod.parse=(a,s)=>{const l=n.innerType._zod.run(a,s);return l instanceof Promise?l.then(c=>kv(c,t)):kv(l,t)}});function kv(t,n){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:n}),t}const Q4=J("$ZodCatch",(t,n)=>{oe.init(t,n),Zt(t._zod,"optin",()=>n.innerType._zod.optin),Zt(t._zod,"optout",()=>n.innerType._zod.optout),Zt(t._zod,"values",()=>n.innerType._zod.values),t._zod.parse=(a,s)=>{if(s.direction==="backward")return n.innerType._zod.run(a,s);const l=n.innerType._zod.run(a,s);return l instanceof Promise?l.then(c=>(a.value=c.value,c.issues.length&&(a.value=n.catchValue({...a,error:{issues:c.issues.map(u=>za(u,s,Aa()))},input:a.value}),a.issues=[]),a)):(a.value=l.value,l.issues.length&&(a.value=n.catchValue({...a,error:{issues:l.issues.map(c=>za(c,s,Aa()))},input:a.value}),a.issues=[]),a)}}),P4=J("$ZodPipe",(t,n)=>{oe.init(t,n),Zt(t._zod,"values",()=>n.in._zod.values),Zt(t._zod,"optin",()=>n.in._zod.optin),Zt(t._zod,"optout",()=>n.out._zod.optout),Zt(t._zod,"propValues",()=>n.in._zod.propValues),t._zod.parse=(a,s)=>{if(s.direction==="backward"){const c=n.out._zod.run(a,s);return c instanceof Promise?c.then(u=>kl(u,n.in,s)):kl(c,n.in,s)}const l=n.in._zod.run(a,s);return l instanceof Promise?l.then(c=>kl(c,n.out,s)):kl(l,n.out,s)}});function kl(t,n,a){return t.issues.length?(t.aborted=!0,t):n._zod.run({value:t.value,issues:t.issues},a)}const F4=J("$ZodReadonly",(t,n)=>{oe.init(t,n),Zt(t._zod,"propValues",()=>n.innerType._zod.propValues),Zt(t._zod,"values",()=>n.innerType._zod.values),Zt(t._zod,"optin",()=>n.innerType?._zod?.optin),Zt(t._zod,"optout",()=>n.innerType?._zod?.optout),t._zod.parse=(a,s)=>{if(s.direction==="backward")return n.innerType._zod.run(a,s);const l=n.innerType._zod.run(a,s);return l instanceof Promise?l.then(jv):jv(l)}});function jv(t){return t.value=Object.freeze(t.value),t}const J4=J("$ZodCustom",(t,n)=>{Qe.init(t,n),oe.init(t,n),t._zod.parse=(a,s)=>a,t._zod.check=a=>{const s=a.value,l=n.fn(s);if(l instanceof Promise)return l.then(c=>Vv(c,a,s,t));Vv(l,a,s,t)}});function Vv(t,n,a,s){if(!t){const l={code:"custom",input:a,inst:s,path:[...s._zod.def.path??[]],continue:!s._zod.def.abort};s._zod.def.params&&(l.params=s._zod.def.params),n.issues.push(Xs(l))}}var Bv;class I4{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...a){const s=a[0];return this._map.set(n,s),s&&typeof s=="object"&&"id"in s&&this._idmap.set(s.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const a=this._map.get(n);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(n),this}get(n){const a=n._zod.parent;if(a){const s={...this.get(a)??{}};delete s.id;const l={...s,...this._map.get(n)};return Object.keys(l).length?l:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function W4(){return new I4}(Bv=globalThis).__zod_globalRegistry??(Bv.__zod_globalRegistry=W4());const Rs=globalThis.__zod_globalRegistry;function tD(t,n){return new t({type:"string",...pt(n)})}function eD(t,n){return new t({type:"string",format:"email",check:"string_format",abort:!1,...pt(n)})}function Uv(t,n){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...pt(n)})}function nD(t,n){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...pt(n)})}function iD(t,n){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...pt(n)})}function aD(t,n){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...pt(n)})}function rD(t,n){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...pt(n)})}function sD(t,n){return new t({type:"string",format:"url",check:"string_format",abort:!1,...pt(n)})}function oD(t,n){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...pt(n)})}function lD(t,n){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...pt(n)})}function uD(t,n){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...pt(n)})}function cD(t,n){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...pt(n)})}function fD(t,n){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...pt(n)})}function dD(t,n){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...pt(n)})}function hD(t,n){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...pt(n)})}function mD(t,n){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...pt(n)})}function pD(t,n){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...pt(n)})}function gD(t,n){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...pt(n)})}function yD(t,n){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...pt(n)})}function vD(t,n){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...pt(n)})}function bD(t,n){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...pt(n)})}function xD(t,n){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...pt(n)})}function SD(t,n){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...pt(n)})}function _D(t,n){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...pt(n)})}function wD(t,n){return new t({type:"string",format:"date",check:"string_format",...pt(n)})}function TD(t,n){return new t({type:"string",format:"time",check:"string_format",precision:null,...pt(n)})}function AD(t,n){return new t({type:"string",format:"duration",check:"string_format",...pt(n)})}function zD(t,n){return new t({type:"number",checks:[],...pt(n)})}function ED(t,n){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...pt(n)})}function MD(t){return new t({type:"any"})}function CD(t){return new t({type:"unknown"})}function DD(t,n){return new t({type:"never",...pt(n)})}function Lv(t,n){return new N1({check:"less_than",...pt(n),value:t,inclusive:!1})}function pd(t,n){return new N1({check:"less_than",...pt(n),value:t,inclusive:!0})}function Zv(t,n){return new O1({check:"greater_than",...pt(n),value:t,inclusive:!1})}function gd(t,n){return new O1({check:"greater_than",...pt(n),value:t,inclusive:!0})}function Hv(t,n){return new KC({check:"multiple_of",...pt(n),value:t})}function U1(t,n){return new PC({check:"max_length",...pt(n),maximum:t})}function cu(t,n){return new FC({check:"min_length",...pt(n),minimum:t})}function L1(t,n){return new JC({check:"length_equals",...pt(n),length:t})}function ND(t,n){return new IC({check:"string_format",format:"regex",...pt(n),pattern:t})}function OD(t){return new WC({check:"string_format",format:"lowercase",...pt(t)})}function RD(t){return new t4({check:"string_format",format:"uppercase",...pt(t)})}function kD(t,n){return new e4({check:"string_format",format:"includes",...pt(n),includes:t})}function jD(t,n){return new n4({check:"string_format",format:"starts_with",...pt(n),prefix:t})}function VD(t,n){return new i4({check:"string_format",format:"ends_with",...pt(n),suffix:t})}function Or(t){return new a4({check:"overwrite",tx:t})}function BD(t){return Or(n=>n.normalize(t))}function UD(){return Or(t=>t.trim())}function LD(){return Or(t=>t.toLowerCase())}function ZD(){return Or(t=>t.toUpperCase())}function HD(){return Or(t=>IM(t))}function $D(t,n,a){return new t({type:"array",element:n,...pt(a)})}function GD(t,n,a){return new t({type:"custom",check:"custom",fn:n,...pt(a)})}function YD(t){const n=qD(a=>(a.addIssue=s=>{if(typeof s=="string")a.issues.push(Xs(s,a.value,n._zod.def));else{const l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=a.value),l.inst??(l.inst=n),l.continue??(l.continue=!n._zod.def.abort),a.issues.push(Xs(l))}},t(a.value,a)));return n}function qD(t,n){const a=new Qe({check:"custom",...pt(n)});return a._zod.check=t,a}function Z1(t){let n=t?.target??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:t.processors??{},metadataRegistry:t?.metadata??Rs,target:n,unrepresentable:t?.unrepresentable??"throw",override:t?.override??(()=>{}),io:t?.io??"output",counter:0,seen:new Map,cycles:t?.cycles??"ref",reused:t?.reused??"inline",external:t?.external??void 0}}function Ee(t,n,a={path:[],schemaPath:[]}){var s;const l=t._zod.def,c=n.seen.get(t);if(c)return c.count++,a.schemaPath.includes(t)&&(c.cycle=a.path),c.schema;const u={schema:{},count:1,cycle:void 0,path:a.path};n.seen.set(t,u);const h=t._zod.toJSONSchema?.();if(h)u.schema=h;else{const g={...a,schemaPath:[...a.schemaPath,t],path:a.path};if(t._zod.processJSONSchema)t._zod.processJSONSchema(n,u.schema,g);else{const v=u.schema,S=n.processors[l.type];if(!S)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${l.type}`);S(t,n,v,g)}const b=t._zod.parent;b&&(u.ref||(u.ref=b),Ee(b,n,g),n.seen.get(b).isParent=!0)}const m=n.metadataRegistry.get(t);return m&&Object.assign(u.schema,m),n.io==="input"&&Re(t)&&(delete u.schema.examples,delete u.schema.default),n.io==="input"&&u.schema._prefault&&((s=u.schema).default??(s.default=u.schema._prefault)),delete u.schema._prefault,n.seen.get(t).schema}function H1(t,n){const a=t.seen.get(n);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=new Map;for(const u of t.seen.entries()){const h=t.metadataRegistry.get(u[0])?.id;if(h){const m=s.get(h);if(m&&m!==u[0])throw new Error(`Duplicate schema id "${h}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);s.set(h,u[0])}}const l=u=>{const h=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const b=t.external.registry.get(u[0])?.id,v=t.external.uri??(_=>_);if(b)return{ref:v(b)};const S=u[1].defId??u[1].schema.id??`schema${t.counter++}`;return u[1].defId=S,{defId:S,ref:`${v("__shared")}#/${h}/${S}`}}if(u[1]===a)return{ref:"#"};const p=`#/${h}/`,g=u[1].schema.id??`__schema${t.counter++}`;return{defId:g,ref:p+g}},c=u=>{if(u[1].schema.$ref)return;const h=u[1],{ref:m,defId:p}=l(u);h.def={...h.schema},p&&(h.defId=p);const g=h.schema;for(const b in g)delete g[b];g.$ref=m};if(t.cycles==="throw")for(const u of t.seen.entries()){const h=u[1];if(h.cycle)throw new Error(`Cycle detected: #/${h.cycle?.join("/")}/<root>
|
|
47
|
+
|
|
48
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const u of t.seen.entries()){const h=u[1];if(n===u[0]){c(u);continue}if(t.external){const p=t.external.registry.get(u[0])?.id;if(n!==u[0]&&p){c(u);continue}}if(t.metadataRegistry.get(u[0])?.id){c(u);continue}if(h.cycle){c(u);continue}if(h.count>1&&t.reused==="ref"){c(u);continue}}}function $1(t,n){const a=t.seen.get(n);if(!a)throw new Error("Unprocessed schema. This is a bug in Zod.");const s=u=>{const h=t.seen.get(u);if(h.ref===null)return;const m=h.def??h.schema,p={...m},g=h.ref;if(h.ref=null,g){s(g);const v=t.seen.get(g),S=v.schema;if(S.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(m.allOf=m.allOf??[],m.allOf.push(S)):Object.assign(m,S),Object.assign(m,p),u._zod.parent===g)for(const w in m)w==="$ref"||w==="allOf"||w in p||delete m[w];if(S.$ref&&v.def)for(const w in m)w==="$ref"||w==="allOf"||w in v.def&&JSON.stringify(m[w])===JSON.stringify(v.def[w])&&delete m[w]}const b=u._zod.parent;if(b&&b!==g){s(b);const v=t.seen.get(b);if(v?.schema.$ref&&(m.$ref=v.schema.$ref,v.def))for(const S in m)S==="$ref"||S==="allOf"||S in v.def&&JSON.stringify(m[S])===JSON.stringify(v.def[S])&&delete m[S]}t.override({zodSchema:u,jsonSchema:m,path:h.path??[]})};for(const u of[...t.seen.entries()].reverse())s(u[0]);const l={};if(t.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?l.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?l.$schema="http://json-schema.org/draft-04/schema#":t.target,t.external?.uri){const u=t.external.registry.get(n)?.id;if(!u)throw new Error("Schema is missing an `id` property");l.$id=t.external.uri(u)}Object.assign(l,a.def??a.schema);const c=t.external?.defs??{};for(const u of t.seen.entries()){const h=u[1];h.def&&h.defId&&(c[h.defId]=h.def)}t.external||Object.keys(c).length>0&&(t.target==="draft-2020-12"?l.$defs=c:l.definitions=c);try{const u=JSON.parse(JSON.stringify(l));return Object.defineProperty(u,"~standard",{value:{...n["~standard"],jsonSchema:{input:fu(n,"input",t.processors),output:fu(n,"output",t.processors)}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function Re(t,n){const a=n??{seen:new Set};if(a.seen.has(t))return!1;a.seen.add(t);const s=t._zod.def;if(s.type==="transform")return!0;if(s.type==="array")return Re(s.element,a);if(s.type==="set")return Re(s.valueType,a);if(s.type==="lazy")return Re(s.getter(),a);if(s.type==="promise"||s.type==="optional"||s.type==="nonoptional"||s.type==="nullable"||s.type==="readonly"||s.type==="default"||s.type==="prefault")return Re(s.innerType,a);if(s.type==="intersection")return Re(s.left,a)||Re(s.right,a);if(s.type==="record"||s.type==="map")return Re(s.keyType,a)||Re(s.valueType,a);if(s.type==="pipe")return Re(s.in,a)||Re(s.out,a);if(s.type==="object"){for(const l in s.shape)if(Re(s.shape[l],a))return!0;return!1}if(s.type==="union"){for(const l of s.options)if(Re(l,a))return!0;return!1}if(s.type==="tuple"){for(const l of s.items)if(Re(l,a))return!0;return!!(s.rest&&Re(s.rest,a))}return!1}const XD=(t,n={})=>a=>{const s=Z1({...a,processors:n});return Ee(t,s),H1(s,t),$1(s,t)},fu=(t,n,a={})=>s=>{const{libraryOptions:l,target:c}=s??{},u=Z1({...l??{},target:c,io:n,processors:a});return Ee(t,u),H1(u,t),$1(u,t)},KD={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},QD=(t,n,a,s)=>{const l=a;l.type="string";const{minimum:c,maximum:u,format:h,patterns:m,contentEncoding:p}=t._zod.bag;if(typeof c=="number"&&(l.minLength=c),typeof u=="number"&&(l.maxLength=u),h&&(l.format=KD[h]??h,l.format===""&&delete l.format,h==="time"&&delete l.format),p&&(l.contentEncoding=p),m&&m.size>0){const g=[...m];g.length===1?l.pattern=g[0].source:g.length>1&&(l.allOf=[...g.map(b=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:b.source}))])}},PD=(t,n,a,s)=>{const l=a,{minimum:c,maximum:u,format:h,multipleOf:m,exclusiveMaximum:p,exclusiveMinimum:g}=t._zod.bag;typeof h=="string"&&h.includes("int")?l.type="integer":l.type="number",typeof g=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(l.minimum=g,l.exclusiveMinimum=!0):l.exclusiveMinimum=g),typeof c=="number"&&(l.minimum=c,typeof g=="number"&&n.target!=="draft-04"&&(g>=c?delete l.minimum:delete l.exclusiveMinimum)),typeof p=="number"&&(n.target==="draft-04"||n.target==="openapi-3.0"?(l.maximum=p,l.exclusiveMaximum=!0):l.exclusiveMaximum=p),typeof u=="number"&&(l.maximum=u,typeof p=="number"&&n.target!=="draft-04"&&(p<=u?delete l.maximum:delete l.exclusiveMaximum)),typeof m=="number"&&(l.multipleOf=m)},FD=(t,n,a,s)=>{a.not={}},JD=(t,n,a,s)=>{},ID=(t,n,a,s)=>{},WD=(t,n,a,s)=>{const l=t._zod.def,c=x1(l.entries);c.every(u=>typeof u=="number")&&(a.type="number"),c.every(u=>typeof u=="string")&&(a.type="string"),a.enum=c},t3=(t,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},e3=(t,n,a,s)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},n3=(t,n,a,s)=>{const l=a,c=t._zod.def,{minimum:u,maximum:h}=t._zod.bag;typeof u=="number"&&(l.minItems=u),typeof h=="number"&&(l.maxItems=h),l.type="array",l.items=Ee(c.element,n,{...s,path:[...s.path,"items"]})},i3=(t,n,a,s)=>{const l=a,c=t._zod.def;l.type="object",l.properties={};const u=c.shape;for(const p in u)l.properties[p]=Ee(u[p],n,{...s,path:[...s.path,"properties",p]});const h=new Set(Object.keys(u)),m=new Set([...h].filter(p=>{const g=c.shape[p]._zod;return n.io==="input"?g.optin===void 0:g.optout===void 0}));m.size>0&&(l.required=Array.from(m)),c.catchall?._zod.def.type==="never"?l.additionalProperties=!1:c.catchall?c.catchall&&(l.additionalProperties=Ee(c.catchall,n,{...s,path:[...s.path,"additionalProperties"]})):n.io==="output"&&(l.additionalProperties=!1)},a3=(t,n,a,s)=>{const l=t._zod.def,c=l.inclusive===!1,u=l.options.map((h,m)=>Ee(h,n,{...s,path:[...s.path,c?"oneOf":"anyOf",m]}));c?a.oneOf=u:a.anyOf=u},r3=(t,n,a,s)=>{const l=t._zod.def,c=Ee(l.left,n,{...s,path:[...s.path,"allOf",0]}),u=Ee(l.right,n,{...s,path:[...s.path,"allOf",1]}),h=p=>"allOf"in p&&Object.keys(p).length===1,m=[...h(c)?c.allOf:[c],...h(u)?u.allOf:[u]];a.allOf=m},s3=(t,n,a,s)=>{const l=t._zod.def,c=Ee(l.innerType,n,s),u=n.seen.get(t);n.target==="openapi-3.0"?(u.ref=l.innerType,a.nullable=!0):a.anyOf=[c,{type:"null"}]},o3=(t,n,a,s)=>{const l=t._zod.def;Ee(l.innerType,n,s);const c=n.seen.get(t);c.ref=l.innerType},l3=(t,n,a,s)=>{const l=t._zod.def;Ee(l.innerType,n,s);const c=n.seen.get(t);c.ref=l.innerType,a.default=JSON.parse(JSON.stringify(l.defaultValue))},u3=(t,n,a,s)=>{const l=t._zod.def;Ee(l.innerType,n,s);const c=n.seen.get(t);c.ref=l.innerType,n.io==="input"&&(a._prefault=JSON.parse(JSON.stringify(l.defaultValue)))},c3=(t,n,a,s)=>{const l=t._zod.def;Ee(l.innerType,n,s);const c=n.seen.get(t);c.ref=l.innerType;let u;try{u=l.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}a.default=u},f3=(t,n,a,s)=>{const l=t._zod.def,c=n.io==="input"?l.in._zod.def.type==="transform"?l.out:l.in:l.out;Ee(c,n,s);const u=n.seen.get(t);u.ref=c},d3=(t,n,a,s)=>{const l=t._zod.def;Ee(l.innerType,n,s);const c=n.seen.get(t);c.ref=l.innerType,a.readOnly=!0},G1=(t,n,a,s)=>{const l=t._zod.def;Ee(l.innerType,n,s);const c=n.seen.get(t);c.ref=l.innerType},h3=J("ZodISODateTime",(t,n)=>{v4.init(t,n),te.init(t,n)});function m3(t){return _D(h3,t)}const p3=J("ZodISODate",(t,n)=>{b4.init(t,n),te.init(t,n)});function g3(t){return wD(p3,t)}const y3=J("ZodISOTime",(t,n)=>{x4.init(t,n),te.init(t,n)});function v3(t){return TD(y3,t)}const b3=J("ZodISODuration",(t,n)=>{S4.init(t,n),te.init(t,n)});function x3(t){return AD(b3,t)}const S3=(t,n)=>{A1.init(t,n),t.name="ZodError",Object.defineProperties(t,{format:{value:a=>fC(t,a)},flatten:{value:a=>cC(t,a)},addIssue:{value:a=>{t.issues.push(a),t.message=JSON.stringify(t.issues,Xd,2)}},addIssues:{value:a=>{t.issues.push(...a),t.message=JSON.stringify(t.issues,Xd,2)}},isEmpty:{get(){return t.issues.length===0}}})},xn=J("ZodError",S3,{Parent:Error}),_3=Lh(xn),w3=Zh(xn),T3=wu(xn),A3=Tu(xn),z3=mC(xn),E3=pC(xn),M3=gC(xn),C3=yC(xn),D3=vC(xn),N3=bC(xn),O3=xC(xn),R3=SC(xn),le=J("ZodType",(t,n)=>(oe.init(t,n),Object.assign(t["~standard"],{jsonSchema:{input:fu(t,"input"),output:fu(t,"output")}}),t.toJSONSchema=XD(t,{}),t.def=n,t.type=n.type,Object.defineProperty(t,"_def",{value:n}),t.check=(...a)=>t.clone(Fi(n,{checks:[...n.checks??[],...a.map(s=>typeof s=="function"?{_zod:{check:s,def:{check:"custom"},onattach:[]}}:s)]}),{parent:!0}),t.with=t.check,t.clone=(a,s)=>Ji(t,a,s),t.brand=()=>t,t.register=((a,s)=>(a.add(t,s),t)),t.parse=(a,s)=>_3(t,a,s,{callee:t.parse}),t.safeParse=(a,s)=>T3(t,a,s),t.parseAsync=async(a,s)=>w3(t,a,s,{callee:t.parseAsync}),t.safeParseAsync=async(a,s)=>A3(t,a,s),t.spa=t.safeParseAsync,t.encode=(a,s)=>z3(t,a,s),t.decode=(a,s)=>E3(t,a,s),t.encodeAsync=async(a,s)=>M3(t,a,s),t.decodeAsync=async(a,s)=>C3(t,a,s),t.safeEncode=(a,s)=>D3(t,a,s),t.safeDecode=(a,s)=>N3(t,a,s),t.safeEncodeAsync=async(a,s)=>O3(t,a,s),t.safeDecodeAsync=async(a,s)=>R3(t,a,s),t.refine=(a,s)=>t.check(AN(a,s)),t.superRefine=a=>t.check(zN(a)),t.overwrite=a=>t.check(Or(a)),t.optional=()=>qv(t),t.exactOptional=()=>dN(t),t.nullable=()=>Xv(t),t.nullish=()=>qv(Xv(t)),t.nonoptional=a=>vN(t,a),t.array=()=>Qs(t),t.or=a=>X1([t,a]),t.and=a=>oN(t,a),t.transform=a=>Kv(t,cN(a)),t.default=a=>pN(t,a),t.prefault=a=>yN(t,a),t.catch=a=>xN(t,a),t.pipe=a=>Kv(t,a),t.readonly=()=>wN(t),t.describe=a=>{const s=t.clone();return Rs.add(s,{description:a}),s},Object.defineProperty(t,"description",{get(){return Rs.get(t)?.description},configurable:!0}),t.meta=(...a)=>{if(a.length===0)return Rs.get(t);const s=t.clone();return Rs.add(s,a[0]),s},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t.apply=a=>a(t),t)),Y1=J("_ZodString",(t,n)=>{Hh.init(t,n),le.init(t,n),t._zod.processJSONSchema=(s,l,c)=>QD(t,s,l);const a=t._zod.bag;t.format=a.format??null,t.minLength=a.minimum??null,t.maxLength=a.maximum??null,t.regex=(...s)=>t.check(ND(...s)),t.includes=(...s)=>t.check(kD(...s)),t.startsWith=(...s)=>t.check(jD(...s)),t.endsWith=(...s)=>t.check(VD(...s)),t.min=(...s)=>t.check(cu(...s)),t.max=(...s)=>t.check(U1(...s)),t.length=(...s)=>t.check(L1(...s)),t.nonempty=(...s)=>t.check(cu(1,...s)),t.lowercase=s=>t.check(OD(s)),t.uppercase=s=>t.check(RD(s)),t.trim=()=>t.check(UD()),t.normalize=(...s)=>t.check(BD(...s)),t.toLowerCase=()=>t.check(LD()),t.toUpperCase=()=>t.check(ZD()),t.slugify=()=>t.check(HD())}),k3=J("ZodString",(t,n)=>{Hh.init(t,n),Y1.init(t,n),t.email=a=>t.check(eD(j3,a)),t.url=a=>t.check(sD(V3,a)),t.jwt=a=>t.check(SD(J3,a)),t.emoji=a=>t.check(oD(B3,a)),t.guid=a=>t.check(Uv($v,a)),t.uuid=a=>t.check(nD(jl,a)),t.uuidv4=a=>t.check(iD(jl,a)),t.uuidv6=a=>t.check(aD(jl,a)),t.uuidv7=a=>t.check(rD(jl,a)),t.nanoid=a=>t.check(lD(U3,a)),t.guid=a=>t.check(Uv($v,a)),t.cuid=a=>t.check(uD(L3,a)),t.cuid2=a=>t.check(cD(Z3,a)),t.ulid=a=>t.check(fD(H3,a)),t.base64=a=>t.check(vD(Q3,a)),t.base64url=a=>t.check(bD(P3,a)),t.xid=a=>t.check(dD($3,a)),t.ksuid=a=>t.check(hD(G3,a)),t.ipv4=a=>t.check(mD(Y3,a)),t.ipv6=a=>t.check(pD(q3,a)),t.cidrv4=a=>t.check(gD(X3,a)),t.cidrv6=a=>t.check(yD(K3,a)),t.e164=a=>t.check(xD(F3,a)),t.datetime=a=>t.check(m3(a)),t.date=a=>t.check(g3(a)),t.time=a=>t.check(v3(a)),t.duration=a=>t.check(x3(a))});function Hn(t){return tD(k3,t)}const te=J("ZodStringFormat",(t,n)=>{It.init(t,n),Y1.init(t,n)}),j3=J("ZodEmail",(t,n)=>{u4.init(t,n),te.init(t,n)}),$v=J("ZodGUID",(t,n)=>{o4.init(t,n),te.init(t,n)}),jl=J("ZodUUID",(t,n)=>{l4.init(t,n),te.init(t,n)}),V3=J("ZodURL",(t,n)=>{c4.init(t,n),te.init(t,n)}),B3=J("ZodEmoji",(t,n)=>{f4.init(t,n),te.init(t,n)}),U3=J("ZodNanoID",(t,n)=>{d4.init(t,n),te.init(t,n)}),L3=J("ZodCUID",(t,n)=>{h4.init(t,n),te.init(t,n)}),Z3=J("ZodCUID2",(t,n)=>{m4.init(t,n),te.init(t,n)}),H3=J("ZodULID",(t,n)=>{p4.init(t,n),te.init(t,n)}),$3=J("ZodXID",(t,n)=>{g4.init(t,n),te.init(t,n)}),G3=J("ZodKSUID",(t,n)=>{y4.init(t,n),te.init(t,n)}),Y3=J("ZodIPv4",(t,n)=>{_4.init(t,n),te.init(t,n)}),q3=J("ZodIPv6",(t,n)=>{w4.init(t,n),te.init(t,n)}),X3=J("ZodCIDRv4",(t,n)=>{T4.init(t,n),te.init(t,n)}),K3=J("ZodCIDRv6",(t,n)=>{A4.init(t,n),te.init(t,n)}),Q3=J("ZodBase64",(t,n)=>{z4.init(t,n),te.init(t,n)}),P3=J("ZodBase64URL",(t,n)=>{M4.init(t,n),te.init(t,n)}),F3=J("ZodE164",(t,n)=>{C4.init(t,n),te.init(t,n)}),J3=J("ZodJWT",(t,n)=>{N4.init(t,n),te.init(t,n)}),q1=J("ZodNumber",(t,n)=>{k1.init(t,n),le.init(t,n),t._zod.processJSONSchema=(s,l,c)=>PD(t,s,l),t.gt=(s,l)=>t.check(Zv(s,l)),t.gte=(s,l)=>t.check(gd(s,l)),t.min=(s,l)=>t.check(gd(s,l)),t.lt=(s,l)=>t.check(Lv(s,l)),t.lte=(s,l)=>t.check(pd(s,l)),t.max=(s,l)=>t.check(pd(s,l)),t.int=s=>t.check(Gv(s)),t.safe=s=>t.check(Gv(s)),t.positive=s=>t.check(Zv(0,s)),t.nonnegative=s=>t.check(gd(0,s)),t.negative=s=>t.check(Lv(0,s)),t.nonpositive=s=>t.check(pd(0,s)),t.multipleOf=(s,l)=>t.check(Hv(s,l)),t.step=(s,l)=>t.check(Hv(s,l)),t.finite=()=>t;const a=t._zod.bag;t.minValue=Math.max(a.minimum??Number.NEGATIVE_INFINITY,a.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(a.maximum??Number.POSITIVE_INFINITY,a.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(a.format??"").includes("int")||Number.isSafeInteger(a.multipleOf??.5),t.isFinite=!0,t.format=a.format??null});function Lt(t){return zD(q1,t)}const I3=J("ZodNumberFormat",(t,n)=>{O4.init(t,n),q1.init(t,n)});function Gv(t){return ED(I3,t)}const W3=J("ZodAny",(t,n)=>{R4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>JD()});function Ks(){return MD(W3)}const tN=J("ZodUnknown",(t,n)=>{k4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>ID()});function Yv(){return CD(tN)}const eN=J("ZodNever",(t,n)=>{j4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>FD(t,a,s)});function nN(t){return DD(eN,t)}const iN=J("ZodArray",(t,n)=>{V4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>n3(t,a,s,l),t.element=n.element,t.min=(a,s)=>t.check(cu(a,s)),t.nonempty=a=>t.check(cu(1,a)),t.max=(a,s)=>t.check(U1(a,s)),t.length=(a,s)=>t.check(L1(a,s)),t.unwrap=()=>t.element});function Qs(t,n){return $D(iN,t,n)}const aN=J("ZodObject",(t,n)=>{U4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>i3(t,a,s,l),Zt(t,"shape",()=>n.shape),t.keyof=()=>lN(Object.keys(t._zod.def.shape)),t.catchall=a=>t.clone({...t._zod.def,catchall:a}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Yv()}),t.loose=()=>t.clone({...t._zod.def,catchall:Yv()}),t.strict=()=>t.clone({...t._zod.def,catchall:nN()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=a=>rC(t,a),t.safeExtend=a=>sC(t,a),t.merge=a=>oC(t,a),t.pick=a=>iC(t,a),t.omit=a=>aC(t,a),t.partial=(...a)=>lC(K1,t,a[0]),t.required=(...a)=>uC(Q1,t,a[0])});function Cn(t,n){const a={type:"object",shape:t??{},...pt(n)};return new aN(a)}const rN=J("ZodUnion",(t,n)=>{L4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>a3(t,a,s,l),t.options=n.options});function X1(t,n){return new rN({type:"union",options:t,...pt(n)})}const sN=J("ZodIntersection",(t,n)=>{Z4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>r3(t,a,s,l)});function oN(t,n){return new sN({type:"intersection",left:t,right:n})}const du=J("ZodEnum",(t,n)=>{H4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(s,l,c)=>WD(t,s,l),t.enum=n.entries,t.options=Object.values(n.entries);const a=new Set(Object.keys(n.entries));t.extract=(s,l)=>{const c={};for(const u of s)if(a.has(u))c[u]=n.entries[u];else throw new Error(`Key ${u} not found in enum`);return new du({...n,checks:[],...pt(l),entries:c})},t.exclude=(s,l)=>{const c={...n.entries};for(const u of s)if(a.has(u))delete c[u];else throw new Error(`Key ${u} not found in enum`);return new du({...n,checks:[],...pt(l),entries:c})}});function lN(t,n){const a=Array.isArray(t)?Object.fromEntries(t.map(s=>[s,s])):t;return new du({type:"enum",entries:a,...pt(n)})}function ao(t,n){return new du({type:"enum",entries:t,...pt(n)})}const uN=J("ZodTransform",(t,n)=>{$4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>e3(t,a),t._zod.parse=(a,s)=>{if(s.direction==="backward")throw new v1(t.constructor.name);a.addIssue=c=>{if(typeof c=="string")a.issues.push(Xs(c,a.value,n));else{const u=c;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=a.value),u.inst??(u.inst=t),a.issues.push(Xs(u))}};const l=n.transform(a.value,a);return l instanceof Promise?l.then(c=>(a.value=c,a)):(a.value=l,a)}});function cN(t){return new uN({type:"transform",transform:t})}const K1=J("ZodOptional",(t,n)=>{B1.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>G1(t,a,s,l),t.unwrap=()=>t._zod.def.innerType});function qv(t){return new K1({type:"optional",innerType:t})}const fN=J("ZodExactOptional",(t,n)=>{G4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>G1(t,a,s,l),t.unwrap=()=>t._zod.def.innerType});function dN(t){return new fN({type:"optional",innerType:t})}const hN=J("ZodNullable",(t,n)=>{Y4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>s3(t,a,s,l),t.unwrap=()=>t._zod.def.innerType});function Xv(t){return new hN({type:"nullable",innerType:t})}const mN=J("ZodDefault",(t,n)=>{q4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>l3(t,a,s,l),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function pN(t,n){return new mN({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():_1(n)}})}const gN=J("ZodPrefault",(t,n)=>{X4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>u3(t,a,s,l),t.unwrap=()=>t._zod.def.innerType});function yN(t,n){return new gN({type:"prefault",innerType:t,get defaultValue(){return typeof n=="function"?n():_1(n)}})}const Q1=J("ZodNonOptional",(t,n)=>{K4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>o3(t,a,s,l),t.unwrap=()=>t._zod.def.innerType});function vN(t,n){return new Q1({type:"nonoptional",innerType:t,...pt(n)})}const bN=J("ZodCatch",(t,n)=>{Q4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>c3(t,a,s,l),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function xN(t,n){return new bN({type:"catch",innerType:t,catchValue:typeof n=="function"?n:()=>n})}const SN=J("ZodPipe",(t,n)=>{P4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>f3(t,a,s,l),t.in=n.in,t.out=n.out});function Kv(t,n){return new SN({type:"pipe",in:t,out:n})}const _N=J("ZodReadonly",(t,n)=>{F4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>d3(t,a,s,l),t.unwrap=()=>t._zod.def.innerType});function wN(t){return new _N({type:"readonly",innerType:t})}const TN=J("ZodCustom",(t,n)=>{J4.init(t,n),le.init(t,n),t._zod.processJSONSchema=(a,s,l)=>t3(t,a)});function AN(t,n={}){return GD(TN,t,n)}function zN(t){return YD(t)}var P1=(t=>(t.Critical="critical",t.Major="major",t.Minor="minor",t.Info="info",t))(P1||{}),EN=ao(P1),F1=(t=>(t.PatternDetect="pattern-detect",t.ContextAnalyzer="context-analyzer",t.NamingConsistency="naming-consistency",t.AiSignalClarity="ai-signal-clarity",t.AgentGrounding="agent-grounding",t.TestabilityIndex="testability-index",t.DocDrift="doc-drift",t.DependencyHealth="dependency-health",t.ChangeAmplification="change-amplification",t.CognitiveLoad="cognitive-load",t.PatternEntropy="pattern-entropy",t.ConceptCohesion="concept-cohesion",t.SemanticDistance="semantic-distance",t))(F1||{}),MN=ao(F1),J1=(t=>(t.DuplicatePattern="duplicate-pattern",t.PatternInconsistency="pattern-inconsistency",t.ContextFragmentation="context-fragmentation",t.DependencyHealth="dependency-health",t.CircularDependency="circular-dependency",t.DocDrift="doc-drift",t.NamingInconsistency="naming-inconsistency",t.NamingQuality="naming-quality",t.ArchitectureInconsistency="architecture-inconsistency",t.DeadCode="dead-code",t.MissingTypes="missing-types",t.MagicLiteral="magic-literal",t.BooleanTrap="boolean-trap",t.AiSignalClarity="ai-signal-clarity",t.LowTestability="low-testability",t.AgentNavigationFailure="agent-navigation-failure",t.AmbiguousApi="ambiguous-api",t.ChangeAmplification="change-amplification",t))(J1||{}),CN=ao(J1),I1=(t=>(t.Processing="processing",t.Completed="completed",t.Failed="failed",t))(I1||{});ao(I1);var W1=(t=>(t.Compact="compact",t.Standard="standard",t.Extended="extended",t.Frontier="frontier",t))(W1||{}),DN=ao(W1),NN=Cn({file:Hn(),line:Lt(),column:Lt().optional(),endLine:Lt().optional(),endColumn:Lt().optional()}),ON=Cn({type:CN,severity:EN,message:Hn(),location:NN,suggestion:Hn().optional()}),RN=Cn({tokenCost:Lt().optional(),complexityScore:Lt().optional(),consistencyScore:Lt().optional(),docFreshnessScore:Lt().optional(),aiSignalClarityScore:Lt().optional(),agentGroundingScore:Lt().optional(),testabilityScore:Lt().optional(),docDriftScore:Lt().optional(),dependencyHealthScore:Lt().optional(),modelContextTier:DN.optional(),estimatedMonthlyCost:Lt().optional(),estimatedDeveloperHours:Lt().optional(),comprehensionDifficultyIndex:Lt().optional(),totalSymbols:Lt().optional(),totalExports:Lt().optional()}),tS=Cn({fileName:Hn(),issues:Qs(ON),metrics:RN}),kN=Cn({totalFiles:Lt().optional(),totalIssues:Lt().optional(),criticalIssues:Lt().optional(),majorIssues:Lt().optional(),score:Lt().optional()}).catchall(Ks());Cn({results:Qs(tS),summary:kN,metadata:Cn({toolName:Hn(),version:Hn().optional(),timestamp:Hn().optional(),config:Ks().optional()}).catchall(Ks()).optional()});Cn({summary:Cn({totalFiles:Lt(),totalIssues:Lt(),criticalIssues:Lt(),majorIssues:Lt()}),results:Qs(tS),scoring:Cn({overall:Lt(),rating:Hn(),timestamp:Hn(),breakdown:Qs(Cn({toolName:X1([MN,Hn()]),score:Lt()}).catchall(Ks()))}).optional()}).catchall(Ks());var jN={value:()=>{}};function ro(){for(var t=0,n=arguments.length,a={},s;t<n;++t){if(!(s=arguments[t]+"")||s in a||/[\s.]/.test(s))throw new Error("illegal type: "+s);a[s]=[]}return new Ql(a)}function Ql(t){this._=t}function VN(t,n){return t.trim().split(/^|\s+/).map(function(a){var s="",l=a.indexOf(".");if(l>=0&&(s=a.slice(l+1),a=a.slice(0,l)),a&&!n.hasOwnProperty(a))throw new Error("unknown type: "+a);return{type:a,name:s}})}Ql.prototype=ro.prototype={constructor:Ql,on:function(t,n){var a=this._,s=VN(t+"",a),l,c=-1,u=s.length;if(arguments.length<2){for(;++c<u;)if((l=(t=s[c]).type)&&(l=BN(a[l],t.name)))return l;return}if(n!=null&&typeof n!="function")throw new Error("invalid callback: "+n);for(;++c<u;)if(l=(t=s[c]).type)a[l]=Qv(a[l],t.name,n);else if(n==null)for(l in a)a[l]=Qv(a[l],t.name,null);return this},copy:function(){var t={},n=this._;for(var a in n)t[a]=n[a].slice();return new Ql(t)},call:function(t,n){if((l=arguments.length-2)>0)for(var a=new Array(l),s=0,l,c;s<l;++s)a[s]=arguments[s+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(c=this._[t],s=0,l=c.length;s<l;++s)c[s].value.apply(n,a)},apply:function(t,n,a){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var s=this._[t],l=0,c=s.length;l<c;++l)s[l].value.apply(n,a)}};function BN(t,n){for(var a=0,s=t.length,l;a<s;++a)if((l=t[a]).name===n)return l.value}function Qv(t,n,a){for(var s=0,l=t.length;s<l;++s)if(t[s].name===n){t[s]=jN,t=t.slice(0,s).concat(t.slice(s+1));break}return a!=null&&t.push({name:n,value:a}),t}var Qd="http://www.w3.org/1999/xhtml";const Pv={svg:"http://www.w3.org/2000/svg",xhtml:Qd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zu(t){var n=t+="",a=n.indexOf(":");return a>=0&&(n=t.slice(0,a))!=="xmlns"&&(t=t.slice(a+1)),Pv.hasOwnProperty(n)?{space:Pv[n],local:t}:t}function UN(t){return function(){var n=this.ownerDocument,a=this.namespaceURI;return a===Qd&&n.documentElement.namespaceURI===Qd?n.createElement(t):n.createElementNS(a,t)}}function LN(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function eS(t){var n=zu(t);return(n.local?LN:UN)(n)}function ZN(){}function $h(t){return t==null?ZN:function(){return this.querySelector(t)}}function HN(t){typeof t!="function"&&(t=$h(t));for(var n=this._groups,a=n.length,s=new Array(a),l=0;l<a;++l)for(var c=n[l],u=c.length,h=s[l]=new Array(u),m,p,g=0;g<u;++g)(m=c[g])&&(p=t.call(m,m.__data__,g,c))&&("__data__"in m&&(p.__data__=m.__data__),h[g]=p);return new sn(s,this._parents)}function $N(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function GN(){return[]}function nS(t){return t==null?GN:function(){return this.querySelectorAll(t)}}function YN(t){return function(){return $N(t.apply(this,arguments))}}function qN(t){typeof t=="function"?t=YN(t):t=nS(t);for(var n=this._groups,a=n.length,s=[],l=[],c=0;c<a;++c)for(var u=n[c],h=u.length,m,p=0;p<h;++p)(m=u[p])&&(s.push(t.call(m,m.__data__,p,u)),l.push(m));return new sn(s,l)}function iS(t){return function(){return this.matches(t)}}function aS(t){return function(n){return n.matches(t)}}var XN=Array.prototype.find;function KN(t){return function(){return XN.call(this.children,t)}}function QN(){return this.firstElementChild}function PN(t){return this.select(t==null?QN:KN(typeof t=="function"?t:aS(t)))}var FN=Array.prototype.filter;function JN(){return Array.from(this.children)}function IN(t){return function(){return FN.call(this.children,t)}}function WN(t){return this.selectAll(t==null?JN:IN(typeof t=="function"?t:aS(t)))}function tO(t){typeof t!="function"&&(t=iS(t));for(var n=this._groups,a=n.length,s=new Array(a),l=0;l<a;++l)for(var c=n[l],u=c.length,h=s[l]=[],m,p=0;p<u;++p)(m=c[p])&&t.call(m,m.__data__,p,c)&&h.push(m);return new sn(s,this._parents)}function rS(t){return new Array(t.length)}function eO(){return new sn(this._enter||this._groups.map(rS),this._parents)}function hu(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}hu.prototype={constructor:hu,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function nO(t){return function(){return t}}function iO(t,n,a,s,l,c){for(var u=0,h,m=n.length,p=c.length;u<p;++u)(h=n[u])?(h.__data__=c[u],s[u]=h):a[u]=new hu(t,c[u]);for(;u<m;++u)(h=n[u])&&(l[u]=h)}function aO(t,n,a,s,l,c,u){var h,m,p=new Map,g=n.length,b=c.length,v=new Array(g),S;for(h=0;h<g;++h)(m=n[h])&&(v[h]=S=u.call(m,m.__data__,h,n)+"",p.has(S)?l[h]=m:p.set(S,m));for(h=0;h<b;++h)S=u.call(t,c[h],h,c)+"",(m=p.get(S))?(s[h]=m,m.__data__=c[h],p.delete(S)):a[h]=new hu(t,c[h]);for(h=0;h<g;++h)(m=n[h])&&p.get(v[h])===m&&(l[h]=m)}function rO(t){return t.__data__}function sO(t,n){if(!arguments.length)return Array.from(this,rO);var a=n?aO:iO,s=this._parents,l=this._groups;typeof t!="function"&&(t=nO(t));for(var c=l.length,u=new Array(c),h=new Array(c),m=new Array(c),p=0;p<c;++p){var g=s[p],b=l[p],v=b.length,S=oO(t.call(g,g&&g.__data__,p,s)),_=S.length,w=h[p]=new Array(_),z=u[p]=new Array(_),A=m[p]=new Array(v);a(g,b,w,z,A,S,n);for(var R=0,O=0,C,L;R<_;++R)if(C=w[R]){for(R>=O&&(O=R+1);!(L=z[O])&&++O<_;);C._next=L||null}}return u=new sn(u,s),u._enter=h,u._exit=m,u}function oO(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function lO(){return new sn(this._exit||this._groups.map(rS),this._parents)}function uO(t,n,a){var s=this.enter(),l=this,c=this.exit();return typeof t=="function"?(s=t(s),s&&(s=s.selection())):s=s.append(t+""),n!=null&&(l=n(l),l&&(l=l.selection())),a==null?c.remove():a(c),s&&l?s.merge(l).order():l}function cO(t){for(var n=t.selection?t.selection():t,a=this._groups,s=n._groups,l=a.length,c=s.length,u=Math.min(l,c),h=new Array(l),m=0;m<u;++m)for(var p=a[m],g=s[m],b=p.length,v=h[m]=new Array(b),S,_=0;_<b;++_)(S=p[_]||g[_])&&(v[_]=S);for(;m<l;++m)h[m]=a[m];return new sn(h,this._parents)}function fO(){for(var t=this._groups,n=-1,a=t.length;++n<a;)for(var s=t[n],l=s.length-1,c=s[l],u;--l>=0;)(u=s[l])&&(c&&u.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(u,c),c=u);return this}function dO(t){t||(t=hO);function n(b,v){return b&&v?t(b.__data__,v.__data__):!b-!v}for(var a=this._groups,s=a.length,l=new Array(s),c=0;c<s;++c){for(var u=a[c],h=u.length,m=l[c]=new Array(h),p,g=0;g<h;++g)(p=u[g])&&(m[g]=p);m.sort(n)}return new sn(l,this._parents).order()}function hO(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function mO(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function pO(){return Array.from(this)}function gO(){for(var t=this._groups,n=0,a=t.length;n<a;++n)for(var s=t[n],l=0,c=s.length;l<c;++l){var u=s[l];if(u)return u}return null}function yO(){let t=0;for(const n of this)++t;return t}function vO(){return!this.node()}function bO(t){for(var n=this._groups,a=0,s=n.length;a<s;++a)for(var l=n[a],c=0,u=l.length,h;c<u;++c)(h=l[c])&&t.call(h,h.__data__,c,l);return this}function xO(t){return function(){this.removeAttribute(t)}}function SO(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _O(t,n){return function(){this.setAttribute(t,n)}}function wO(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function TO(t,n){return function(){var a=n.apply(this,arguments);a==null?this.removeAttribute(t):this.setAttribute(t,a)}}function AO(t,n){return function(){var a=n.apply(this,arguments);a==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,a)}}function zO(t,n){var a=zu(t);if(arguments.length<2){var s=this.node();return a.local?s.getAttributeNS(a.space,a.local):s.getAttribute(a)}return this.each((n==null?a.local?SO:xO:typeof n=="function"?a.local?AO:TO:a.local?wO:_O)(a,n))}function sS(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function EO(t){return function(){this.style.removeProperty(t)}}function MO(t,n,a){return function(){this.style.setProperty(t,n,a)}}function CO(t,n,a){return function(){var s=n.apply(this,arguments);s==null?this.style.removeProperty(t):this.style.setProperty(t,s,a)}}function DO(t,n,a){return arguments.length>1?this.each((n==null?EO:typeof n=="function"?CO:MO)(t,n,a??"")):Er(this.node(),t)}function Er(t,n){return t.style.getPropertyValue(n)||sS(t).getComputedStyle(t,null).getPropertyValue(n)}function NO(t){return function(){delete this[t]}}function OO(t,n){return function(){this[t]=n}}function RO(t,n){return function(){var a=n.apply(this,arguments);a==null?delete this[t]:this[t]=a}}function kO(t,n){return arguments.length>1?this.each((n==null?NO:typeof n=="function"?RO:OO)(t,n)):this.node()[t]}function oS(t){return t.trim().split(/^|\s+/)}function Gh(t){return t.classList||new lS(t)}function lS(t){this._node=t,this._names=oS(t.getAttribute("class")||"")}lS.prototype={add:function(t){var n=this._names.indexOf(t);n<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function uS(t,n){for(var a=Gh(t),s=-1,l=n.length;++s<l;)a.add(n[s])}function cS(t,n){for(var a=Gh(t),s=-1,l=n.length;++s<l;)a.remove(n[s])}function jO(t){return function(){uS(this,t)}}function VO(t){return function(){cS(this,t)}}function BO(t,n){return function(){(n.apply(this,arguments)?uS:cS)(this,t)}}function UO(t,n){var a=oS(t+"");if(arguments.length<2){for(var s=Gh(this.node()),l=-1,c=a.length;++l<c;)if(!s.contains(a[l]))return!1;return!0}return this.each((typeof n=="function"?BO:n?jO:VO)(a,n))}function LO(){this.textContent=""}function ZO(t){return function(){this.textContent=t}}function HO(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function $O(t){return arguments.length?this.each(t==null?LO:(typeof t=="function"?HO:ZO)(t)):this.node().textContent}function GO(){this.innerHTML=""}function YO(t){return function(){this.innerHTML=t}}function qO(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function XO(t){return arguments.length?this.each(t==null?GO:(typeof t=="function"?qO:YO)(t)):this.node().innerHTML}function KO(){this.nextSibling&&this.parentNode.appendChild(this)}function QO(){return this.each(KO)}function PO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function FO(){return this.each(PO)}function JO(t){var n=typeof t=="function"?t:eS(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})}function IO(){return null}function WO(t,n){var a=typeof t=="function"?t:eS(t),s=n==null?IO:typeof n=="function"?n:$h(n);return this.select(function(){return this.insertBefore(a.apply(this,arguments),s.apply(this,arguments)||null)})}function tR(){var t=this.parentNode;t&&t.removeChild(this)}function eR(){return this.each(tR)}function nR(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function iR(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function aR(t){return this.select(t?iR:nR)}function rR(t){return arguments.length?this.property("__data__",t):this.node().__data__}function sR(t){return function(n){t.call(this,n,this.__data__)}}function oR(t){return t.trim().split(/^|\s+/).map(function(n){var a="",s=n.indexOf(".");return s>=0&&(a=n.slice(s+1),n=n.slice(0,s)),{type:n,name:a}})}function lR(t){return function(){var n=this.__on;if(n){for(var a=0,s=-1,l=n.length,c;a<l;++a)c=n[a],(!t.type||c.type===t.type)&&c.name===t.name?this.removeEventListener(c.type,c.listener,c.options):n[++s]=c;++s?n.length=s:delete this.__on}}}function uR(t,n,a){return function(){var s=this.__on,l,c=sR(n);if(s){for(var u=0,h=s.length;u<h;++u)if((l=s[u]).type===t.type&&l.name===t.name){this.removeEventListener(l.type,l.listener,l.options),this.addEventListener(l.type,l.listener=c,l.options=a),l.value=n;return}}this.addEventListener(t.type,c,a),l={type:t.type,name:t.name,value:n,listener:c,options:a},s?s.push(l):this.__on=[l]}}function cR(t,n,a){var s=oR(t+""),l,c=s.length,u;if(arguments.length<2){var h=this.node().__on;if(h){for(var m=0,p=h.length,g;m<p;++m)for(l=0,g=h[m];l<c;++l)if((u=s[l]).type===g.type&&u.name===g.name)return g.value}return}for(h=n?uR:lR,l=0;l<c;++l)this.each(h(s[l],n,a));return this}function fS(t,n,a){var s=sS(t),l=s.CustomEvent;typeof l=="function"?l=new l(n,a):(l=s.document.createEvent("Event"),a?(l.initEvent(n,a.bubbles,a.cancelable),l.detail=a.detail):l.initEvent(n,!1,!1)),t.dispatchEvent(l)}function fR(t,n){return function(){return fS(this,t,n)}}function dR(t,n){return function(){return fS(this,t,n.apply(this,arguments))}}function hR(t,n){return this.each((typeof n=="function"?dR:fR)(t,n))}function*mR(){for(var t=this._groups,n=0,a=t.length;n<a;++n)for(var s=t[n],l=0,c=s.length,u;l<c;++l)(u=s[l])&&(yield u)}var dS=[null];function sn(t,n){this._groups=t,this._parents=n}function so(){return new sn([[document.documentElement]],dS)}function pR(){return this}sn.prototype=so.prototype={constructor:sn,select:HN,selectAll:qN,selectChild:PN,selectChildren:WN,filter:tO,data:sO,enter:eO,exit:lO,join:uO,merge:cO,selection:pR,order:fO,sort:dO,call:mO,nodes:pO,node:gO,size:yO,empty:vO,each:bO,attr:zO,style:DO,property:kO,classed:UO,text:$O,html:XO,raise:QO,lower:FO,append:JO,insert:WO,remove:eR,clone:aR,datum:rR,on:cR,dispatch:hR,[Symbol.iterator]:mR};function ye(t){return typeof t=="string"?new sn([[document.querySelector(t)]],[document.documentElement]):new sn([[t]],dS)}function gR(t){let n;for(;n=t.sourceEvent;)t=n;return t}function fi(t,n){if(t=gR(t),n===void 0&&(n=t.currentTarget),n){var a=n.ownerSVGElement||n;if(a.createSVGPoint){var s=a.createSVGPoint();return s.x=t.clientX,s.y=t.clientY,s=s.matrixTransform(n.getScreenCTM().inverse()),[s.x,s.y]}if(n.getBoundingClientRect){var l=n.getBoundingClientRect();return[t.clientX-l.left-n.clientLeft,t.clientY-l.top-n.clientTop]}}return[t.pageX,t.pageY]}const yR={passive:!1},Ps={capture:!0,passive:!1};function yd(t){t.stopImmediatePropagation()}function Tr(t){t.preventDefault(),t.stopImmediatePropagation()}function hS(t){var n=t.document.documentElement,a=ye(t).on("dragstart.drag",Tr,Ps);"onselectstart"in n?a.on("selectstart.drag",Tr,Ps):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}function mS(t,n){var a=t.document.documentElement,s=ye(t).on("dragstart.drag",null);n&&(s.on("click.drag",Tr,Ps),setTimeout(function(){s.on("click.drag",null)},0)),"onselectstart"in a?s.on("selectstart.drag",null):(a.style.MozUserSelect=a.__noselect,delete a.__noselect)}const Vl=t=>()=>t;function Pd(t,{sourceEvent:n,subject:a,target:s,identifier:l,active:c,x:u,y:h,dx:m,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:a,enumerable:!0,configurable:!0},target:{value:s,enumerable:!0,configurable:!0},identifier:{value:l,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:h,enumerable:!0,configurable:!0},dx:{value:m,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}Pd.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function vR(t){return!t.ctrlKey&&!t.button}function bR(){return this.parentNode}function xR(t,n){return n??{x:t.x,y:t.y}}function SR(){return navigator.maxTouchPoints||"ontouchstart"in this}function pS(){var t=vR,n=bR,a=xR,s=SR,l={},c=ro("start","drag","end"),u=0,h,m,p,g,b=0;function v(C){C.on("mousedown.drag",S).filter(s).on("touchstart.drag",z).on("touchmove.drag",A,yR).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(C,L){if(!(g||!t.call(this,C,L))){var I=O(this,n.call(this,C,L),C,L,"mouse");I&&(ye(C.view).on("mousemove.drag",_,Ps).on("mouseup.drag",w,Ps),hS(C.view),yd(C),p=!1,h=C.clientX,m=C.clientY,I("start",C))}}function _(C){if(Tr(C),!p){var L=C.clientX-h,I=C.clientY-m;p=L*L+I*I>b}l.mouse("drag",C)}function w(C){ye(C.view).on("mousemove.drag mouseup.drag",null),mS(C.view,p),Tr(C),l.mouse("end",C)}function z(C,L){if(t.call(this,C,L)){var I=C.changedTouches,V=n.call(this,C,L),k=I.length,tt,at;for(tt=0;tt<k;++tt)(at=O(this,V,C,L,I[tt].identifier,I[tt]))&&(yd(C),at("start",C,I[tt]))}}function A(C){var L=C.changedTouches,I=L.length,V,k;for(V=0;V<I;++V)(k=l[L[V].identifier])&&(Tr(C),k("drag",C,L[V]))}function R(C){var L=C.changedTouches,I=L.length,V,k;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),V=0;V<I;++V)(k=l[L[V].identifier])&&(yd(C),k("end",C,L[V]))}function O(C,L,I,V,k,tt){var at=c.copy(),vt=fi(tt||I,L),St,zt,Z;if((Z=a.call(C,new Pd("beforestart",{sourceEvent:I,target:v,identifier:k,active:u,x:vt[0],y:vt[1],dx:0,dy:0,dispatch:at}),V))!=null)return St=Z.x-vt[0]||0,zt=Z.y-vt[1]||0,function nt(E,$,K){var et=vt,q;switch(E){case"start":l[k]=nt,q=u++;break;case"end":delete l[k],--u;case"drag":vt=fi(K||$,L),q=u;break}at.call(E,C,new Pd(E,{sourceEvent:$,subject:Z,target:v,identifier:k,active:q,x:vt[0]+St,y:vt[1]+zt,dx:vt[0]-et[0],dy:vt[1]-et[1],dispatch:at}),V)}}return v.filter=function(C){return arguments.length?(t=typeof C=="function"?C:Vl(!!C),v):t},v.container=function(C){return arguments.length?(n=typeof C=="function"?C:Vl(C),v):n},v.subject=function(C){return arguments.length?(a=typeof C=="function"?C:Vl(C),v):a},v.touchable=function(C){return arguments.length?(s=typeof C=="function"?C:Vl(!!C),v):s},v.on=function(){var C=c.on.apply(c,arguments);return C===c?v:C},v.clickDistance=function(C){return arguments.length?(b=(C=+C)*C,v):Math.sqrt(b)},v}function Yh(t,n,a){t.prototype=n.prototype=a,a.constructor=t}function gS(t,n){var a=Object.create(t.prototype);for(var s in n)a[s]=n[s];return a}function oo(){}var Fs=.7,mu=1/Fs,Ar="\\s*([+-]?\\d+)\\s*",Js="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$n="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_R=/^#([0-9a-f]{3,8})$/,wR=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),TR=new RegExp(`^rgb\\(${$n},${$n},${$n}\\)$`),AR=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Js}\\)$`),zR=new RegExp(`^rgba\\(${$n},${$n},${$n},${Js}\\)$`),ER=new RegExp(`^hsl\\(${Js},${$n},${$n}\\)$`),MR=new RegExp(`^hsla\\(${Js},${$n},${$n},${Js}\\)$`),Fv={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yh(oo,Is,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Jv,formatHex:Jv,formatHex8:CR,formatHsl:DR,formatRgb:Iv,toString:Iv});function Jv(){return this.rgb().formatHex()}function CR(){return this.rgb().formatHex8()}function DR(){return yS(this).formatHsl()}function Iv(){return this.rgb().formatRgb()}function Is(t){var n,a;return t=(t+"").trim().toLowerCase(),(n=_R.exec(t))?(a=n[1].length,n=parseInt(n[1],16),a===6?Wv(n):a===3?new Ke(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):a===8?Bl(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):a===4?Bl(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=wR.exec(t))?new Ke(n[1],n[2],n[3],1):(n=TR.exec(t))?new Ke(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=AR.exec(t))?Bl(n[1],n[2],n[3],n[4]):(n=zR.exec(t))?Bl(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=ER.exec(t))?nb(n[1],n[2]/100,n[3]/100,1):(n=MR.exec(t))?nb(n[1],n[2]/100,n[3]/100,n[4]):Fv.hasOwnProperty(t)?Wv(Fv[t]):t==="transparent"?new Ke(NaN,NaN,NaN,0):null}function Wv(t){return new Ke(t>>16&255,t>>8&255,t&255,1)}function Bl(t,n,a,s){return s<=0&&(t=n=a=NaN),new Ke(t,n,a,s)}function NR(t){return t instanceof oo||(t=Is(t)),t?(t=t.rgb(),new Ke(t.r,t.g,t.b,t.opacity)):new Ke}function Fd(t,n,a,s){return arguments.length===1?NR(t):new Ke(t,n,a,s??1)}function Ke(t,n,a,s){this.r=+t,this.g=+n,this.b=+a,this.opacity=+s}Yh(Ke,Fd,gS(oo,{brighter(t){return t=t==null?mu:Math.pow(mu,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Fs:Math.pow(Fs,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ke(Ta(this.r),Ta(this.g),Ta(this.b),pu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tb,formatHex:tb,formatHex8:OR,formatRgb:eb,toString:eb}));function tb(){return`#${_a(this.r)}${_a(this.g)}${_a(this.b)}`}function OR(){return`#${_a(this.r)}${_a(this.g)}${_a(this.b)}${_a((isNaN(this.opacity)?1:this.opacity)*255)}`}function eb(){const t=pu(this.opacity);return`${t===1?"rgb(":"rgba("}${Ta(this.r)}, ${Ta(this.g)}, ${Ta(this.b)}${t===1?")":`, ${t})`}`}function pu(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ta(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function _a(t){return t=Ta(t),(t<16?"0":"")+t.toString(16)}function nb(t,n,a,s){return s<=0?t=n=a=NaN:a<=0||a>=1?t=n=NaN:n<=0&&(t=NaN),new Mn(t,n,a,s)}function yS(t){if(t instanceof Mn)return new Mn(t.h,t.s,t.l,t.opacity);if(t instanceof oo||(t=Is(t)),!t)return new Mn;if(t instanceof Mn)return t;t=t.rgb();var n=t.r/255,a=t.g/255,s=t.b/255,l=Math.min(n,a,s),c=Math.max(n,a,s),u=NaN,h=c-l,m=(c+l)/2;return h?(n===c?u=(a-s)/h+(a<s)*6:a===c?u=(s-n)/h+2:u=(n-a)/h+4,h/=m<.5?c+l:2-c-l,u*=60):h=m>0&&m<1?0:u,new Mn(u,h,m,t.opacity)}function RR(t,n,a,s){return arguments.length===1?yS(t):new Mn(t,n,a,s??1)}function Mn(t,n,a,s){this.h=+t,this.s=+n,this.l=+a,this.opacity=+s}Yh(Mn,RR,gS(oo,{brighter(t){return t=t==null?mu:Math.pow(mu,t),new Mn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Fs:Math.pow(Fs,t),new Mn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,a=this.l,s=a+(a<.5?a:1-a)*n,l=2*a-s;return new Ke(vd(t>=240?t-240:t+120,l,s),vd(t,l,s),vd(t<120?t+240:t-120,l,s),this.opacity)},clamp(){return new Mn(ib(this.h),Ul(this.s),Ul(this.l),pu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=pu(this.opacity);return`${t===1?"hsl(":"hsla("}${ib(this.h)}, ${Ul(this.s)*100}%, ${Ul(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ib(t){return t=(t||0)%360,t<0?t+360:t}function Ul(t){return Math.max(0,Math.min(1,t||0))}function vd(t,n,a){return(t<60?n+(a-n)*t/60:t<180?a:t<240?n+(a-n)*(240-t)/60:n)*255}const vS=t=>()=>t;function kR(t,n){return function(a){return t+a*n}}function jR(t,n,a){return t=Math.pow(t,a),n=Math.pow(n,a)-t,a=1/a,function(s){return Math.pow(t+s*n,a)}}function VR(t){return(t=+t)==1?bS:function(n,a){return a-n?jR(n,a,t):vS(isNaN(n)?a:n)}}function bS(t,n){var a=n-t;return a?kR(t,a):vS(isNaN(t)?n:t)}const ab=(function t(n){var a=VR(n);function s(l,c){var u=a((l=Fd(l)).r,(c=Fd(c)).r),h=a(l.g,c.g),m=a(l.b,c.b),p=bS(l.opacity,c.opacity);return function(g){return l.r=u(g),l.g=h(g),l.b=m(g),l.opacity=p(g),l+""}}return s.gamma=t,s})(1);function Gi(t,n){return t=+t,n=+n,function(a){return t*(1-a)+n*a}}var Jd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,bd=new RegExp(Jd.source,"g");function BR(t){return function(){return t}}function UR(t){return function(n){return t(n)+""}}function LR(t,n){var a=Jd.lastIndex=bd.lastIndex=0,s,l,c,u=-1,h=[],m=[];for(t=t+"",n=n+"";(s=Jd.exec(t))&&(l=bd.exec(n));)(c=l.index)>a&&(c=n.slice(a,c),h[u]?h[u]+=c:h[++u]=c),(s=s[0])===(l=l[0])?h[u]?h[u]+=l:h[++u]=l:(h[++u]=null,m.push({i:u,x:Gi(s,l)})),a=bd.lastIndex;return a<n.length&&(c=n.slice(a),h[u]?h[u]+=c:h[++u]=c),h.length<2?m[0]?UR(m[0].x):BR(n):(n=m.length,function(p){for(var g=0,b;g<n;++g)h[(b=m[g]).i]=b.x(p);return h.join("")})}var rb=180/Math.PI,Id={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xS(t,n,a,s,l,c){var u,h,m;return(u=Math.sqrt(t*t+n*n))&&(t/=u,n/=u),(m=t*a+n*s)&&(a-=t*m,s-=n*m),(h=Math.sqrt(a*a+s*s))&&(a/=h,s/=h,m/=h),t*s<n*a&&(t=-t,n=-n,m=-m,u=-u),{translateX:l,translateY:c,rotate:Math.atan2(n,t)*rb,skewX:Math.atan(m)*rb,scaleX:u,scaleY:h}}var Ll;function ZR(t){const n=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?Id:xS(n.a,n.b,n.c,n.d,n.e,n.f)}function HR(t){return t==null||(Ll||(Ll=document.createElementNS("http://www.w3.org/2000/svg","g")),Ll.setAttribute("transform",t),!(t=Ll.transform.baseVal.consolidate()))?Id:(t=t.matrix,xS(t.a,t.b,t.c,t.d,t.e,t.f))}function SS(t,n,a,s){function l(p){return p.length?p.pop()+" ":""}function c(p,g,b,v,S,_){if(p!==b||g!==v){var w=S.push("translate(",null,n,null,a);_.push({i:w-4,x:Gi(p,b)},{i:w-2,x:Gi(g,v)})}else(b||v)&&S.push("translate("+b+n+v+a)}function u(p,g,b,v){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),v.push({i:b.push(l(b)+"rotate(",null,s)-2,x:Gi(p,g)})):g&&b.push(l(b)+"rotate("+g+s)}function h(p,g,b,v){p!==g?v.push({i:b.push(l(b)+"skewX(",null,s)-2,x:Gi(p,g)}):g&&b.push(l(b)+"skewX("+g+s)}function m(p,g,b,v,S,_){if(p!==b||g!==v){var w=S.push(l(S)+"scale(",null,",",null,")");_.push({i:w-4,x:Gi(p,b)},{i:w-2,x:Gi(g,v)})}else(b!==1||v!==1)&&S.push(l(S)+"scale("+b+","+v+")")}return function(p,g){var b=[],v=[];return p=t(p),g=t(g),c(p.translateX,p.translateY,g.translateX,g.translateY,b,v),u(p.rotate,g.rotate,b,v),h(p.skewX,g.skewX,b,v),m(p.scaleX,p.scaleY,g.scaleX,g.scaleY,b,v),p=g=null,function(S){for(var _=-1,w=v.length,z;++_<w;)b[(z=v[_]).i]=z.x(S);return b.join("")}}}var $R=SS(ZR,"px, ","px)","deg)"),GR=SS(HR,", ",")",")"),YR=1e-12;function sb(t){return((t=Math.exp(t))+1/t)/2}function qR(t){return((t=Math.exp(t))-1/t)/2}function XR(t){return((t=Math.exp(2*t))-1)/(t+1)}const KR=(function t(n,a,s){function l(c,u){var h=c[0],m=c[1],p=c[2],g=u[0],b=u[1],v=u[2],S=g-h,_=b-m,w=S*S+_*_,z,A;if(w<YR)A=Math.log(v/p)/n,z=function(V){return[h+V*S,m+V*_,p*Math.exp(n*V*A)]};else{var R=Math.sqrt(w),O=(v*v-p*p+s*w)/(2*p*a*R),C=(v*v-p*p-s*w)/(2*v*a*R),L=Math.log(Math.sqrt(O*O+1)-O),I=Math.log(Math.sqrt(C*C+1)-C);A=(I-L)/n,z=function(V){var k=V*A,tt=sb(L),at=p/(a*R)*(tt*XR(n*k+L)-qR(L));return[h+at*S,m+at*_,p*tt/sb(n*k+L)]}}return z.duration=A*1e3*n/Math.SQRT2,z}return l.rho=function(c){var u=Math.max(.001,+c),h=u*u,m=h*h;return t(u,h,m)},l})(Math.SQRT2,2,4);var Mr=0,ks=0,Ds=0,_S=1e3,gu,js,yu=0,Ea=0,Eu=0,Ws=typeof performance=="object"&&performance.now?performance:Date,wS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function qh(){return Ea||(wS(QR),Ea=Ws.now()+Eu)}function QR(){Ea=0}function vu(){this._call=this._time=this._next=null}vu.prototype=Xh.prototype={constructor:vu,restart:function(t,n,a){if(typeof t!="function")throw new TypeError("callback is not a function");a=(a==null?qh():+a)+(n==null?0:+n),!this._next&&js!==this&&(js?js._next=this:gu=this,js=this),this._call=t,this._time=a,Wd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wd())}};function Xh(t,n,a){var s=new vu;return s.restart(t,n,a),s}function PR(){qh(),++Mr;for(var t=gu,n;t;)(n=Ea-t._time)>=0&&t._call.call(void 0,n),t=t._next;--Mr}function ob(){Ea=(yu=Ws.now())+Eu,Mr=ks=0;try{PR()}finally{Mr=0,JR(),Ea=0}}function FR(){var t=Ws.now(),n=t-yu;n>_S&&(Eu-=n,yu=t)}function JR(){for(var t,n=gu,a,s=1/0;n;)n._call?(s>n._time&&(s=n._time),t=n,n=n._next):(a=n._next,n._next=null,n=t?t._next=a:gu=a);js=t,Wd(s)}function Wd(t){if(!Mr){ks&&(ks=clearTimeout(ks));var n=t-Ea;n>24?(t<1/0&&(ks=setTimeout(ob,t-Ws.now()-Eu)),Ds&&(Ds=clearInterval(Ds))):(Ds||(yu=Ws.now(),Ds=setInterval(FR,_S)),Mr=1,wS(ob))}}function lb(t,n,a){var s=new vu;return n=n==null?0:+n,s.restart(l=>{s.stop(),t(l+n)},n,a),s}var IR=ro("start","end","cancel","interrupt"),WR=[],TS=0,ub=1,th=2,Pl=3,cb=4,eh=5,Fl=6;function Mu(t,n,a,s,l,c){var u=t.__transition;if(!u)t.__transition={};else if(a in u)return;t5(t,a,{name:n,index:s,group:l,on:IR,tween:WR,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:TS})}function Kh(t,n){var a=On(t,n);if(a.state>TS)throw new Error("too late; already scheduled");return a}function Yn(t,n){var a=On(t,n);if(a.state>Pl)throw new Error("too late; already running");return a}function On(t,n){var a=t.__transition;if(!a||!(a=a[n]))throw new Error("transition not found");return a}function t5(t,n,a){var s=t.__transition,l;s[n]=a,a.timer=Xh(c,0,a.time);function c(p){a.state=ub,a.timer.restart(u,a.delay,a.time),a.delay<=p&&u(p-a.delay)}function u(p){var g,b,v,S;if(a.state!==ub)return m();for(g in s)if(S=s[g],S.name===a.name){if(S.state===Pl)return lb(u);S.state===cb?(S.state=Fl,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete s[g]):+g<n&&(S.state=Fl,S.timer.stop(),S.on.call("cancel",t,t.__data__,S.index,S.group),delete s[g])}if(lb(function(){a.state===Pl&&(a.state=cb,a.timer.restart(h,a.delay,a.time),h(p))}),a.state=th,a.on.call("start",t,t.__data__,a.index,a.group),a.state===th){for(a.state=Pl,l=new Array(v=a.tween.length),g=0,b=-1;g<v;++g)(S=a.tween[g].value.call(t,t.__data__,a.index,a.group))&&(l[++b]=S);l.length=b+1}}function h(p){for(var g=p<a.duration?a.ease.call(null,p/a.duration):(a.timer.restart(m),a.state=eh,1),b=-1,v=l.length;++b<v;)l[b].call(t,g);a.state===eh&&(a.on.call("end",t,t.__data__,a.index,a.group),m())}function m(){a.state=Fl,a.timer.stop(),delete s[n];for(var p in s)return;delete t.__transition}}function Jl(t,n){var a=t.__transition,s,l,c=!0,u;if(a){n=n==null?null:n+"";for(u in a){if((s=a[u]).name!==n){c=!1;continue}l=s.state>th&&s.state<eh,s.state=Fl,s.timer.stop(),s.on.call(l?"interrupt":"cancel",t,t.__data__,s.index,s.group),delete a[u]}c&&delete t.__transition}}function e5(t){return this.each(function(){Jl(this,t)})}function n5(t,n){var a,s;return function(){var l=Yn(this,t),c=l.tween;if(c!==a){s=a=c;for(var u=0,h=s.length;u<h;++u)if(s[u].name===n){s=s.slice(),s.splice(u,1);break}}l.tween=s}}function i5(t,n,a){var s,l;if(typeof a!="function")throw new Error;return function(){var c=Yn(this,t),u=c.tween;if(u!==s){l=(s=u).slice();for(var h={name:n,value:a},m=0,p=l.length;m<p;++m)if(l[m].name===n){l[m]=h;break}m===p&&l.push(h)}c.tween=l}}function a5(t,n){var a=this._id;if(t+="",arguments.length<2){for(var s=On(this.node(),a).tween,l=0,c=s.length,u;l<c;++l)if((u=s[l]).name===t)return u.value;return null}return this.each((n==null?n5:i5)(a,t,n))}function Qh(t,n,a){var s=t._id;return t.each(function(){var l=Yn(this,s);(l.value||(l.value={}))[n]=a.apply(this,arguments)}),function(l){return On(l,s).value[n]}}function AS(t,n){var a;return(typeof n=="number"?Gi:n instanceof Is?ab:(a=Is(n))?(n=a,ab):LR)(t,n)}function r5(t){return function(){this.removeAttribute(t)}}function s5(t){return function(){this.removeAttributeNS(t.space,t.local)}}function o5(t,n,a){var s,l=a+"",c;return function(){var u=this.getAttribute(t);return u===l?null:u===s?c:c=n(s=u,a)}}function l5(t,n,a){var s,l=a+"",c;return function(){var u=this.getAttributeNS(t.space,t.local);return u===l?null:u===s?c:c=n(s=u,a)}}function u5(t,n,a){var s,l,c;return function(){var u,h=a(this),m;return h==null?void this.removeAttribute(t):(u=this.getAttribute(t),m=h+"",u===m?null:u===s&&m===l?c:(l=m,c=n(s=u,h)))}}function c5(t,n,a){var s,l,c;return function(){var u,h=a(this),m;return h==null?void this.removeAttributeNS(t.space,t.local):(u=this.getAttributeNS(t.space,t.local),m=h+"",u===m?null:u===s&&m===l?c:(l=m,c=n(s=u,h)))}}function f5(t,n){var a=zu(t),s=a==="transform"?GR:AS;return this.attrTween(t,typeof n=="function"?(a.local?c5:u5)(a,s,Qh(this,"attr."+t,n)):n==null?(a.local?s5:r5)(a):(a.local?l5:o5)(a,s,n))}function d5(t,n){return function(a){this.setAttribute(t,n.call(this,a))}}function h5(t,n){return function(a){this.setAttributeNS(t.space,t.local,n.call(this,a))}}function m5(t,n){var a,s;function l(){var c=n.apply(this,arguments);return c!==s&&(a=(s=c)&&h5(t,c)),a}return l._value=n,l}function p5(t,n){var a,s;function l(){var c=n.apply(this,arguments);return c!==s&&(a=(s=c)&&d5(t,c)),a}return l._value=n,l}function g5(t,n){var a="attr."+t;if(arguments.length<2)return(a=this.tween(a))&&a._value;if(n==null)return this.tween(a,null);if(typeof n!="function")throw new Error;var s=zu(t);return this.tween(a,(s.local?m5:p5)(s,n))}function y5(t,n){return function(){Kh(this,t).delay=+n.apply(this,arguments)}}function v5(t,n){return n=+n,function(){Kh(this,t).delay=n}}function b5(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?y5:v5)(n,t)):On(this.node(),n).delay}function x5(t,n){return function(){Yn(this,t).duration=+n.apply(this,arguments)}}function S5(t,n){return n=+n,function(){Yn(this,t).duration=n}}function _5(t){var n=this._id;return arguments.length?this.each((typeof t=="function"?x5:S5)(n,t)):On(this.node(),n).duration}function w5(t,n){if(typeof n!="function")throw new Error;return function(){Yn(this,t).ease=n}}function T5(t){var n=this._id;return arguments.length?this.each(w5(n,t)):On(this.node(),n).ease}function A5(t,n){return function(){var a=n.apply(this,arguments);if(typeof a!="function")throw new Error;Yn(this,t).ease=a}}function z5(t){if(typeof t!="function")throw new Error;return this.each(A5(this._id,t))}function E5(t){typeof t!="function"&&(t=iS(t));for(var n=this._groups,a=n.length,s=new Array(a),l=0;l<a;++l)for(var c=n[l],u=c.length,h=s[l]=[],m,p=0;p<u;++p)(m=c[p])&&t.call(m,m.__data__,p,c)&&h.push(m);return new mi(s,this._parents,this._name,this._id)}function M5(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,a=t._groups,s=n.length,l=a.length,c=Math.min(s,l),u=new Array(s),h=0;h<c;++h)for(var m=n[h],p=a[h],g=m.length,b=u[h]=new Array(g),v,S=0;S<g;++S)(v=m[S]||p[S])&&(b[S]=v);for(;h<s;++h)u[h]=n[h];return new mi(u,this._parents,this._name,this._id)}function C5(t){return(t+"").trim().split(/^|\s+/).every(function(n){var a=n.indexOf(".");return a>=0&&(n=n.slice(0,a)),!n||n==="start"})}function D5(t,n,a){var s,l,c=C5(n)?Kh:Yn;return function(){var u=c(this,t),h=u.on;h!==s&&(l=(s=h).copy()).on(n,a),u.on=l}}function N5(t,n){var a=this._id;return arguments.length<2?On(this.node(),a).on.on(t):this.each(D5(a,t,n))}function O5(t){return function(){var n=this.parentNode;for(var a in this.__transition)if(+a!==t)return;n&&n.removeChild(this)}}function R5(){return this.on("end.remove",O5(this._id))}function k5(t){var n=this._name,a=this._id;typeof t!="function"&&(t=$h(t));for(var s=this._groups,l=s.length,c=new Array(l),u=0;u<l;++u)for(var h=s[u],m=h.length,p=c[u]=new Array(m),g,b,v=0;v<m;++v)(g=h[v])&&(b=t.call(g,g.__data__,v,h))&&("__data__"in g&&(b.__data__=g.__data__),p[v]=b,Mu(p[v],n,a,v,p,On(g,a)));return new mi(c,this._parents,n,a)}function j5(t){var n=this._name,a=this._id;typeof t!="function"&&(t=nS(t));for(var s=this._groups,l=s.length,c=[],u=[],h=0;h<l;++h)for(var m=s[h],p=m.length,g,b=0;b<p;++b)if(g=m[b]){for(var v=t.call(g,g.__data__,b,m),S,_=On(g,a),w=0,z=v.length;w<z;++w)(S=v[w])&&Mu(S,n,a,w,v,_);c.push(v),u.push(g)}return new mi(c,u,n,a)}var V5=so.prototype.constructor;function B5(){return new V5(this._groups,this._parents)}function U5(t,n){var a,s,l;return function(){var c=Er(this,t),u=(this.style.removeProperty(t),Er(this,t));return c===u?null:c===a&&u===s?l:l=n(a=c,s=u)}}function zS(t){return function(){this.style.removeProperty(t)}}function L5(t,n,a){var s,l=a+"",c;return function(){var u=Er(this,t);return u===l?null:u===s?c:c=n(s=u,a)}}function Z5(t,n,a){var s,l,c;return function(){var u=Er(this,t),h=a(this),m=h+"";return h==null&&(m=h=(this.style.removeProperty(t),Er(this,t))),u===m?null:u===s&&m===l?c:(l=m,c=n(s=u,h))}}function H5(t,n){var a,s,l,c="style."+n,u="end."+c,h;return function(){var m=Yn(this,t),p=m.on,g=m.value[c]==null?h||(h=zS(n)):void 0;(p!==a||l!==g)&&(s=(a=p).copy()).on(u,l=g),m.on=s}}function $5(t,n,a){var s=(t+="")=="transform"?$R:AS;return n==null?this.styleTween(t,U5(t,s)).on("end.style."+t,zS(t)):typeof n=="function"?this.styleTween(t,Z5(t,s,Qh(this,"style."+t,n))).each(H5(this._id,t)):this.styleTween(t,L5(t,s,n),a).on("end.style."+t,null)}function G5(t,n,a){return function(s){this.style.setProperty(t,n.call(this,s),a)}}function Y5(t,n,a){var s,l;function c(){var u=n.apply(this,arguments);return u!==l&&(s=(l=u)&&G5(t,u,a)),s}return c._value=n,c}function q5(t,n,a){var s="style."+(t+="");if(arguments.length<2)return(s=this.tween(s))&&s._value;if(n==null)return this.tween(s,null);if(typeof n!="function")throw new Error;return this.tween(s,Y5(t,n,a??""))}function X5(t){return function(){this.textContent=t}}function K5(t){return function(){var n=t(this);this.textContent=n??""}}function Q5(t){return this.tween("text",typeof t=="function"?K5(Qh(this,"text",t)):X5(t==null?"":t+""))}function P5(t){return function(n){this.textContent=t.call(this,n)}}function F5(t){var n,a;function s(){var l=t.apply(this,arguments);return l!==a&&(n=(a=l)&&P5(l)),n}return s._value=t,s}function J5(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,F5(t))}function I5(){for(var t=this._name,n=this._id,a=ES(),s=this._groups,l=s.length,c=0;c<l;++c)for(var u=s[c],h=u.length,m,p=0;p<h;++p)if(m=u[p]){var g=On(m,n);Mu(m,t,a,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new mi(s,this._parents,t,a)}function W5(){var t,n,a=this,s=a._id,l=a.size();return new Promise(function(c,u){var h={value:u},m={value:function(){--l===0&&c()}};a.each(function(){var p=Yn(this,s),g=p.on;g!==t&&(n=(t=g).copy(),n._.cancel.push(h),n._.interrupt.push(h),n._.end.push(m)),p.on=n}),l===0&&c()})}var t6=0;function mi(t,n,a,s){this._groups=t,this._parents=n,this._name=a,this._id=s}function ES(){return++t6}var ci=so.prototype;mi.prototype={constructor:mi,select:k5,selectAll:j5,selectChild:ci.selectChild,selectChildren:ci.selectChildren,filter:E5,merge:M5,selection:B5,transition:I5,call:ci.call,nodes:ci.nodes,node:ci.node,size:ci.size,empty:ci.empty,each:ci.each,on:N5,attr:f5,attrTween:g5,style:$5,styleTween:q5,text:Q5,textTween:J5,remove:R5,tween:a5,delay:b5,duration:_5,ease:T5,easeVarying:z5,end:W5,[Symbol.iterator]:ci[Symbol.iterator]};function e6(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var n6={time:null,delay:0,duration:250,ease:e6};function i6(t,n){for(var a;!(a=t.__transition)||!(a=a[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return a}function a6(t){var n,a;t instanceof mi?(n=t._id,t=t._name):(n=ES(),(a=n6).time=qh(),t=t==null?null:t+"");for(var s=this._groups,l=s.length,c=0;c<l;++c)for(var u=s[c],h=u.length,m,p=0;p<h;++p)(m=u[p])&&Mu(m,t,n,p,u,a||i6(m,n));return new mi(s,this._parents,t,n)}so.prototype.interrupt=e5;so.prototype.transition=a6;function r6(t,n){var a,s=1;t==null&&(t=0),n==null&&(n=0);function l(){var c,u=a.length,h,m=0,p=0;for(c=0;c<u;++c)h=a[c],m+=h.x,p+=h.y;for(m=(m/u-t)*s,p=(p/u-n)*s,c=0;c<u;++c)h=a[c],h.x-=m,h.y-=p}return l.initialize=function(c){a=c},l.x=function(c){return arguments.length?(t=+c,l):t},l.y=function(c){return arguments.length?(n=+c,l):n},l.strength=function(c){return arguments.length?(s=+c,l):s},l}function s6(t){const n=+this._x.call(null,t),a=+this._y.call(null,t);return MS(this.cover(n,a),n,a,t)}function MS(t,n,a,s){if(isNaN(n)||isNaN(a))return t;var l,c=t._root,u={data:s},h=t._x0,m=t._y0,p=t._x1,g=t._y1,b,v,S,_,w,z,A,R;if(!c)return t._root=u,t;for(;c.length;)if((w=n>=(b=(h+p)/2))?h=b:p=b,(z=a>=(v=(m+g)/2))?m=v:g=v,l=c,!(c=c[A=z<<1|w]))return l[A]=u,t;if(S=+t._x.call(null,c.data),_=+t._y.call(null,c.data),n===S&&a===_)return u.next=c,l?l[A]=u:t._root=u,t;do l=l?l[A]=new Array(4):t._root=new Array(4),(w=n>=(b=(h+p)/2))?h=b:p=b,(z=a>=(v=(m+g)/2))?m=v:g=v;while((A=z<<1|w)===(R=(_>=v)<<1|S>=b));return l[R]=c,l[A]=u,t}function o6(t){var n,a,s=t.length,l,c,u=new Array(s),h=new Array(s),m=1/0,p=1/0,g=-1/0,b=-1/0;for(a=0;a<s;++a)isNaN(l=+this._x.call(null,n=t[a]))||isNaN(c=+this._y.call(null,n))||(u[a]=l,h[a]=c,l<m&&(m=l),l>g&&(g=l),c<p&&(p=c),c>b&&(b=c));if(m>g||p>b)return this;for(this.cover(m,p).cover(g,b),a=0;a<s;++a)MS(this,u[a],h[a],t[a]);return this}function l6(t,n){if(isNaN(t=+t)||isNaN(n=+n))return this;var a=this._x0,s=this._y0,l=this._x1,c=this._y1;if(isNaN(a))l=(a=Math.floor(t))+1,c=(s=Math.floor(n))+1;else{for(var u=l-a||1,h=this._root,m,p;a>t||t>=l||s>n||n>=c;)switch(p=(n<s)<<1|t<a,m=new Array(4),m[p]=h,h=m,u*=2,p){case 0:l=a+u,c=s+u;break;case 1:a=l-u,c=s+u;break;case 2:l=a+u,s=c-u;break;case 3:a=l-u,s=c-u;break}this._root&&this._root.length&&(this._root=h)}return this._x0=a,this._y0=s,this._x1=l,this._y1=c,this}function u6(){var t=[];return this.visit(function(n){if(!n.length)do t.push(n.data);while(n=n.next)}),t}function c6(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function je(t,n,a,s,l){this.node=t,this.x0=n,this.y0=a,this.x1=s,this.y1=l}function f6(t,n,a){var s,l=this._x0,c=this._y0,u,h,m,p,g=this._x1,b=this._y1,v=[],S=this._root,_,w;for(S&&v.push(new je(S,l,c,g,b)),a==null?a=1/0:(l=t-a,c=n-a,g=t+a,b=n+a,a*=a);_=v.pop();)if(!(!(S=_.node)||(u=_.x0)>g||(h=_.y0)>b||(m=_.x1)<l||(p=_.y1)<c))if(S.length){var z=(u+m)/2,A=(h+p)/2;v.push(new je(S[3],z,A,m,p),new je(S[2],u,A,z,p),new je(S[1],z,h,m,A),new je(S[0],u,h,z,A)),(w=(n>=A)<<1|t>=z)&&(_=v[v.length-1],v[v.length-1]=v[v.length-1-w],v[v.length-1-w]=_)}else{var R=t-+this._x.call(null,S.data),O=n-+this._y.call(null,S.data),C=R*R+O*O;if(C<a){var L=Math.sqrt(a=C);l=t-L,c=n-L,g=t+L,b=n+L,s=S.data}}return s}function d6(t){if(isNaN(g=+this._x.call(null,t))||isNaN(b=+this._y.call(null,t)))return this;var n,a=this._root,s,l,c,u=this._x0,h=this._y0,m=this._x1,p=this._y1,g,b,v,S,_,w,z,A;if(!a)return this;if(a.length)for(;;){if((_=g>=(v=(u+m)/2))?u=v:m=v,(w=b>=(S=(h+p)/2))?h=S:p=S,n=a,!(a=a[z=w<<1|_]))return this;if(!a.length)break;(n[z+1&3]||n[z+2&3]||n[z+3&3])&&(s=n,A=z)}for(;a.data!==t;)if(l=a,!(a=a.next))return this;return(c=a.next)&&delete a.next,l?(c?l.next=c:delete l.next,this):n?(c?n[z]=c:delete n[z],(a=n[0]||n[1]||n[2]||n[3])&&a===(n[3]||n[2]||n[1]||n[0])&&!a.length&&(s?s[A]=a:this._root=a),this):(this._root=c,this)}function h6(t){for(var n=0,a=t.length;n<a;++n)this.remove(t[n]);return this}function m6(){return this._root}function p6(){var t=0;return this.visit(function(n){if(!n.length)do++t;while(n=n.next)}),t}function g6(t){var n=[],a,s=this._root,l,c,u,h,m;for(s&&n.push(new je(s,this._x0,this._y0,this._x1,this._y1));a=n.pop();)if(!t(s=a.node,c=a.x0,u=a.y0,h=a.x1,m=a.y1)&&s.length){var p=(c+h)/2,g=(u+m)/2;(l=s[3])&&n.push(new je(l,p,g,h,m)),(l=s[2])&&n.push(new je(l,c,g,p,m)),(l=s[1])&&n.push(new je(l,p,u,h,g)),(l=s[0])&&n.push(new je(l,c,u,p,g))}return this}function y6(t){var n=[],a=[],s;for(this._root&&n.push(new je(this._root,this._x0,this._y0,this._x1,this._y1));s=n.pop();){var l=s.node;if(l.length){var c,u=s.x0,h=s.y0,m=s.x1,p=s.y1,g=(u+m)/2,b=(h+p)/2;(c=l[0])&&n.push(new je(c,u,h,g,b)),(c=l[1])&&n.push(new je(c,g,h,m,b)),(c=l[2])&&n.push(new je(c,u,b,g,p)),(c=l[3])&&n.push(new je(c,g,b,m,p))}a.push(s)}for(;s=a.pop();)t(s.node,s.x0,s.y0,s.x1,s.y1);return this}function v6(t){return t[0]}function b6(t){return arguments.length?(this._x=t,this):this._x}function x6(t){return t[1]}function S6(t){return arguments.length?(this._y=t,this):this._y}function Ph(t,n,a){var s=new Fh(n??v6,a??x6,NaN,NaN,NaN,NaN);return t==null?s:s.addAll(t)}function Fh(t,n,a,s,l,c){this._x=t,this._y=n,this._x0=a,this._y0=s,this._x1=l,this._y1=c,this._root=void 0}function fb(t){for(var n={data:t.data},a=n;t=t.next;)a=a.next={data:t.data};return n}var Le=Ph.prototype=Fh.prototype;Le.copy=function(){var t=new Fh(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,a,s;if(!n)return t;if(!n.length)return t._root=fb(n),t;for(a=[{source:n,target:t._root=new Array(4)}];n=a.pop();)for(var l=0;l<4;++l)(s=n.source[l])&&(s.length?a.push({source:s,target:n.target[l]=new Array(4)}):n.target[l]=fb(s));return t};Le.add=s6;Le.addAll=o6;Le.cover=l6;Le.data=u6;Le.extent=c6;Le.find=f6;Le.remove=d6;Le.removeAll=h6;Le.root=m6;Le.size=p6;Le.visit=g6;Le.visitAfter=y6;Le.x=b6;Le.y=S6;function Ue(t){return function(){return t}}function Xi(t){return(t()-.5)*1e-6}function _6(t){return t.x+t.vx}function w6(t){return t.y+t.vy}function T6(t){var n,a,s,l=1,c=1;typeof t!="function"&&(t=Ue(t==null?1:+t));function u(){for(var p,g=n.length,b,v,S,_,w,z,A=0;A<c;++A)for(b=Ph(n,_6,w6).visitAfter(h),p=0;p<g;++p)v=n[p],w=a[v.index],z=w*w,S=v.x+v.vx,_=v.y+v.vy,b.visit(R);function R(O,C,L,I,V){var k=O.data,tt=O.r,at=w+tt;if(k){if(k.index>v.index){var vt=S-k.x-k.vx,St=_-k.y-k.vy,zt=vt*vt+St*St;zt<at*at&&(vt===0&&(vt=Xi(s),zt+=vt*vt),St===0&&(St=Xi(s),zt+=St*St),zt=(at-(zt=Math.sqrt(zt)))/zt*l,v.vx+=(vt*=zt)*(at=(tt*=tt)/(z+tt)),v.vy+=(St*=zt)*at,k.vx-=vt*(at=1-at),k.vy-=St*at)}return}return C>S+at||I<S-at||L>_+at||V<_-at}}function h(p){if(p.data)return p.r=a[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function m(){if(n){var p,g=n.length,b;for(a=new Array(g),p=0;p<g;++p)b=n[p],a[b.index]=+t(b,p,n)}}return u.initialize=function(p,g){n=p,s=g,m()},u.iterations=function(p){return arguments.length?(c=+p,u):c},u.strength=function(p){return arguments.length?(l=+p,u):l},u.radius=function(p){return arguments.length?(t=typeof p=="function"?p:Ue(+p),m(),u):t},u}function A6(t){return t.index}function db(t,n){var a=t.get(n);if(!a)throw new Error("node not found: "+n);return a}function z6(t){var n=A6,a=b,s,l=Ue(30),c,u,h,m,p,g=1;t==null&&(t=[]);function b(z){return 1/Math.min(h[z.source.index],h[z.target.index])}function v(z){for(var A=0,R=t.length;A<g;++A)for(var O=0,C,L,I,V,k,tt,at;O<R;++O)C=t[O],L=C.source,I=C.target,V=I.x+I.vx-L.x-L.vx||Xi(p),k=I.y+I.vy-L.y-L.vy||Xi(p),tt=Math.sqrt(V*V+k*k),tt=(tt-c[O])/tt*z*s[O],V*=tt,k*=tt,I.vx-=V*(at=m[O]),I.vy-=k*at,L.vx+=V*(at=1-at),L.vy+=k*at}function S(){if(u){var z,A=u.length,R=t.length,O=new Map(u.map((L,I)=>[n(L,I,u),L])),C;for(z=0,h=new Array(A);z<R;++z)C=t[z],C.index=z,typeof C.source!="object"&&(C.source=db(O,C.source)),typeof C.target!="object"&&(C.target=db(O,C.target)),h[C.source.index]=(h[C.source.index]||0)+1,h[C.target.index]=(h[C.target.index]||0)+1;for(z=0,m=new Array(R);z<R;++z)C=t[z],m[z]=h[C.source.index]/(h[C.source.index]+h[C.target.index]);s=new Array(R),_(),c=new Array(R),w()}}function _(){if(u)for(var z=0,A=t.length;z<A;++z)s[z]=+a(t[z],z,t)}function w(){if(u)for(var z=0,A=t.length;z<A;++z)c[z]=+l(t[z],z,t)}return v.initialize=function(z,A){u=z,p=A,S()},v.links=function(z){return arguments.length?(t=z,S(),v):t},v.id=function(z){return arguments.length?(n=z,v):n},v.iterations=function(z){return arguments.length?(g=+z,v):g},v.strength=function(z){return arguments.length?(a=typeof z=="function"?z:Ue(+z),_(),v):a},v.distance=function(z){return arguments.length?(l=typeof z=="function"?z:Ue(+z),w(),v):l},v}const E6=1664525,M6=1013904223,hb=4294967296;function C6(){let t=1;return()=>(t=(E6*t+M6)%hb)/hb}function D6(t){return t.x}function N6(t){return t.y}var O6=10,R6=Math.PI*(3-Math.sqrt(5));function k6(t){var n,a=1,s=.001,l=1-Math.pow(s,1/300),c=0,u=.6,h=new Map,m=Xh(b),p=ro("tick","end"),g=C6();t==null&&(t=[]);function b(){v(),p.call("tick",n),a<s&&(m.stop(),p.call("end",n))}function v(w){var z,A=t.length,R;w===void 0&&(w=1);for(var O=0;O<w;++O)for(a+=(c-a)*l,h.forEach(function(C){C(a)}),z=0;z<A;++z)R=t[z],R.fx==null?R.x+=R.vx*=u:(R.x=R.fx,R.vx=0),R.fy==null?R.y+=R.vy*=u:(R.y=R.fy,R.vy=0);return n}function S(){for(var w=0,z=t.length,A;w<z;++w){if(A=t[w],A.index=w,A.fx!=null&&(A.x=A.fx),A.fy!=null&&(A.y=A.fy),isNaN(A.x)||isNaN(A.y)){var R=O6*Math.sqrt(.5+w),O=w*R6;A.x=R*Math.cos(O),A.y=R*Math.sin(O)}(isNaN(A.vx)||isNaN(A.vy))&&(A.vx=A.vy=0)}}function _(w){return w.initialize&&w.initialize(t,g),w}return S(),n={tick:v,restart:function(){return m.restart(b),n},stop:function(){return m.stop(),n},nodes:function(w){return arguments.length?(t=w,S(),h.forEach(_),n):t},alpha:function(w){return arguments.length?(a=+w,n):a},alphaMin:function(w){return arguments.length?(s=+w,n):s},alphaDecay:function(w){return arguments.length?(l=+w,n):+l},alphaTarget:function(w){return arguments.length?(c=+w,n):c},velocityDecay:function(w){return arguments.length?(u=1-w,n):1-u},randomSource:function(w){return arguments.length?(g=w,h.forEach(_),n):g},force:function(w,z){return arguments.length>1?(z==null?h.delete(w):h.set(w,_(z)),n):h.get(w)},find:function(w,z,A){var R=0,O=t.length,C,L,I,V,k;for(A==null?A=1/0:A*=A,R=0;R<O;++R)V=t[R],C=w-V.x,L=z-V.y,I=C*C+L*L,I<A&&(k=V,A=I);return k},on:function(w,z){return arguments.length>1?(p.on(w,z),n):p.on(w)}}}function j6(){var t,n,a,s,l=Ue(-30),c,u=1,h=1/0,m=.81;function p(S){var _,w=t.length,z=Ph(t,D6,N6).visitAfter(b);for(s=S,_=0;_<w;++_)n=t[_],z.visit(v)}function g(){if(t){var S,_=t.length,w;for(c=new Array(_),S=0;S<_;++S)w=t[S],c[w.index]=+l(w,S,t)}}function b(S){var _=0,w,z,A=0,R,O,C;if(S.length){for(R=O=C=0;C<4;++C)(w=S[C])&&(z=Math.abs(w.value))&&(_+=w.value,A+=z,R+=z*w.x,O+=z*w.y);S.x=R/A,S.y=O/A}else{w=S,w.x=w.data.x,w.y=w.data.y;do _+=c[w.data.index];while(w=w.next)}S.value=_}function v(S,_,w,z){if(!S.value)return!0;var A=S.x-n.x,R=S.y-n.y,O=z-_,C=A*A+R*R;if(O*O/m<C)return C<h&&(A===0&&(A=Xi(a),C+=A*A),R===0&&(R=Xi(a),C+=R*R),C<u&&(C=Math.sqrt(u*C)),n.vx+=A*S.value*s/C,n.vy+=R*S.value*s/C),!0;if(S.length||C>=h)return;(S.data!==n||S.next)&&(A===0&&(A=Xi(a),C+=A*A),R===0&&(R=Xi(a),C+=R*R),C<u&&(C=Math.sqrt(u*C)));do S.data!==n&&(O=c[S.data.index]*s/C,n.vx+=A*O,n.vy+=R*O);while(S=S.next)}return p.initialize=function(S,_){t=S,a=_,g()},p.strength=function(S){return arguments.length?(l=typeof S=="function"?S:Ue(+S),g(),p):l},p.distanceMin=function(S){return arguments.length?(u=S*S,p):Math.sqrt(u)},p.distanceMax=function(S){return arguments.length?(h=S*S,p):Math.sqrt(h)},p.theta=function(S){return arguments.length?(m=S*S,p):Math.sqrt(m)},p}function V6(t){var n=Ue(.1),a,s,l;typeof t!="function"&&(t=Ue(t==null?0:+t));function c(h){for(var m=0,p=a.length,g;m<p;++m)g=a[m],g.vx+=(l[m]-g.x)*s[m]*h}function u(){if(a){var h,m=a.length;for(s=new Array(m),l=new Array(m),h=0;h<m;++h)s[h]=isNaN(l[h]=+t(a[h],h,a))?0:+n(a[h],h,a)}}return c.initialize=function(h){a=h,u()},c.strength=function(h){return arguments.length?(n=typeof h=="function"?h:Ue(+h),u(),c):n},c.x=function(h){return arguments.length?(t=typeof h=="function"?h:Ue(+h),u(),c):t},c}function B6(t){var n=Ue(.1),a,s,l;typeof t!="function"&&(t=Ue(t==null?0:+t));function c(h){for(var m=0,p=a.length,g;m<p;++m)g=a[m],g.vy+=(l[m]-g.y)*s[m]*h}function u(){if(a){var h,m=a.length;for(s=new Array(m),l=new Array(m),h=0;h<m;++h)s[h]=isNaN(l[h]=+t(a[h],h,a))?0:+n(a[h],h,a)}}return c.initialize=function(h){a=h,u()},c.strength=function(h){return arguments.length?(n=typeof h=="function"?h:Ue(+h),u(),c):n},c.y=function(h){return arguments.length?(t=typeof h=="function"?h:Ue(+h),u(),c):t},c}const Zl=t=>()=>t;function U6(t,{sourceEvent:n,target:a,transform:s,dispatch:l}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},transform:{value:s,enumerable:!0,configurable:!0},_:{value:l}})}function di(t,n,a){this.k=t,this.x=n,this.y=a}di.prototype={constructor:di,scale:function(t){return t===1?this:new di(this.k*t,this.x,this.y)},translate:function(t,n){return t===0&n===0?this:new di(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Cu=new di(1,0,0);di.prototype;function xd(t){t.stopImmediatePropagation()}function Ns(t){t.preventDefault(),t.stopImmediatePropagation()}function L6(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Z6(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function mb(){return this.__zoom||Cu}function H6(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function $6(){return navigator.maxTouchPoints||"ontouchstart"in this}function G6(t,n,a){var s=t.invertX(n[0][0])-a[0][0],l=t.invertX(n[1][0])-a[1][0],c=t.invertY(n[0][1])-a[0][1],u=t.invertY(n[1][1])-a[1][1];return t.translate(l>s?(s+l)/2:Math.min(0,s)||Math.max(0,l),u>c?(c+u)/2:Math.min(0,c)||Math.max(0,u))}function nh(){var t=L6,n=Z6,a=G6,s=H6,l=$6,c=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],h=250,m=KR,p=ro("start","zoom","end"),g,b,v,S=500,_=150,w=0,z=10;function A(Z){Z.property("__zoom",mb).on("wheel.zoom",k,{passive:!1}).on("mousedown.zoom",tt).on("dblclick.zoom",at).filter(l).on("touchstart.zoom",vt).on("touchmove.zoom",St).on("touchend.zoom touchcancel.zoom",zt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}A.transform=function(Z,nt,E,$){var K=Z.selection?Z.selection():Z;K.property("__zoom",mb),Z!==K?L(Z,nt,E,$):K.interrupt().each(function(){I(this,arguments).event($).start().zoom(null,typeof nt=="function"?nt.apply(this,arguments):nt).end()})},A.scaleBy=function(Z,nt,E,$){A.scaleTo(Z,function(){var K=this.__zoom.k,et=typeof nt=="function"?nt.apply(this,arguments):nt;return K*et},E,$)},A.scaleTo=function(Z,nt,E,$){A.transform(Z,function(){var K=n.apply(this,arguments),et=this.__zoom,q=E==null?C(K):typeof E=="function"?E.apply(this,arguments):E,T=et.invert(q),G=typeof nt=="function"?nt.apply(this,arguments):nt;return a(O(R(et,G),q,T),K,u)},E,$)},A.translateBy=function(Z,nt,E,$){A.transform(Z,function(){return a(this.__zoom.translate(typeof nt=="function"?nt.apply(this,arguments):nt,typeof E=="function"?E.apply(this,arguments):E),n.apply(this,arguments),u)},null,$)},A.translateTo=function(Z,nt,E,$,K){A.transform(Z,function(){var et=n.apply(this,arguments),q=this.__zoom,T=$==null?C(et):typeof $=="function"?$.apply(this,arguments):$;return a(Cu.translate(T[0],T[1]).scale(q.k).translate(typeof nt=="function"?-nt.apply(this,arguments):-nt,typeof E=="function"?-E.apply(this,arguments):-E),et,u)},$,K)};function R(Z,nt){return nt=Math.max(c[0],Math.min(c[1],nt)),nt===Z.k?Z:new di(nt,Z.x,Z.y)}function O(Z,nt,E){var $=nt[0]-E[0]*Z.k,K=nt[1]-E[1]*Z.k;return $===Z.x&&K===Z.y?Z:new di(Z.k,$,K)}function C(Z){return[(+Z[0][0]+ +Z[1][0])/2,(+Z[0][1]+ +Z[1][1])/2]}function L(Z,nt,E,$){Z.on("start.zoom",function(){I(this,arguments).event($).start()}).on("interrupt.zoom end.zoom",function(){I(this,arguments).event($).end()}).tween("zoom",function(){var K=this,et=arguments,q=I(K,et).event($),T=n.apply(K,et),G=E==null?C(T):typeof E=="function"?E.apply(K,et):E,W=Math.max(T[1][0]-T[0][0],T[1][1]-T[0][1]),it=K.__zoom,st=typeof nt=="function"?nt.apply(K,et):nt,lt=m(it.invert(G).concat(W/it.k),st.invert(G).concat(W/st.k));return function(yt){if(yt===1)yt=st;else{var Vt=lt(yt),xt=W/Vt[2];yt=new di(xt,G[0]-Vt[0]*xt,G[1]-Vt[1]*xt)}q.zoom(null,yt)}})}function I(Z,nt,E){return!E&&Z.__zooming||new V(Z,nt)}function V(Z,nt){this.that=Z,this.args=nt,this.active=0,this.sourceEvent=null,this.extent=n.apply(Z,nt),this.taps=0}V.prototype={event:function(Z){return Z&&(this.sourceEvent=Z),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(Z,nt){return this.mouse&&Z!=="mouse"&&(this.mouse[1]=nt.invert(this.mouse[0])),this.touch0&&Z!=="touch"&&(this.touch0[1]=nt.invert(this.touch0[0])),this.touch1&&Z!=="touch"&&(this.touch1[1]=nt.invert(this.touch1[0])),this.that.__zoom=nt,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(Z){var nt=ye(this.that).datum();p.call(Z,this.that,new U6(Z,{sourceEvent:this.sourceEvent,target:A,transform:this.that.__zoom,dispatch:p}),nt)}};function k(Z,...nt){if(!t.apply(this,arguments))return;var E=I(this,nt).event(Z),$=this.__zoom,K=Math.max(c[0],Math.min(c[1],$.k*Math.pow(2,s.apply(this,arguments)))),et=fi(Z);if(E.wheel)(E.mouse[0][0]!==et[0]||E.mouse[0][1]!==et[1])&&(E.mouse[1]=$.invert(E.mouse[0]=et)),clearTimeout(E.wheel);else{if($.k===K)return;E.mouse=[et,$.invert(et)],Jl(this),E.start()}Ns(Z),E.wheel=setTimeout(q,_),E.zoom("mouse",a(O(R($,K),E.mouse[0],E.mouse[1]),E.extent,u));function q(){E.wheel=null,E.end()}}function tt(Z,...nt){if(v||!t.apply(this,arguments))return;var E=Z.currentTarget,$=I(this,nt,!0).event(Z),K=ye(Z.view).on("mousemove.zoom",G,!0).on("mouseup.zoom",W,!0),et=fi(Z,E),q=Z.clientX,T=Z.clientY;hS(Z.view),xd(Z),$.mouse=[et,this.__zoom.invert(et)],Jl(this),$.start();function G(it){if(Ns(it),!$.moved){var st=it.clientX-q,lt=it.clientY-T;$.moved=st*st+lt*lt>w}$.event(it).zoom("mouse",a(O($.that.__zoom,$.mouse[0]=fi(it,E),$.mouse[1]),$.extent,u))}function W(it){K.on("mousemove.zoom mouseup.zoom",null),mS(it.view,$.moved),Ns(it),$.event(it).end()}}function at(Z,...nt){if(t.apply(this,arguments)){var E=this.__zoom,$=fi(Z.changedTouches?Z.changedTouches[0]:Z,this),K=E.invert($),et=E.k*(Z.shiftKey?.5:2),q=a(O(R(E,et),$,K),n.apply(this,nt),u);Ns(Z),h>0?ye(this).transition().duration(h).call(L,q,$,Z):ye(this).call(A.transform,q,$,Z)}}function vt(Z,...nt){if(t.apply(this,arguments)){var E=Z.touches,$=E.length,K=I(this,nt,Z.changedTouches.length===$).event(Z),et,q,T,G;for(xd(Z),q=0;q<$;++q)T=E[q],G=fi(T,this),G=[G,this.__zoom.invert(G),T.identifier],K.touch0?!K.touch1&&K.touch0[2]!==G[2]&&(K.touch1=G,K.taps=0):(K.touch0=G,et=!0,K.taps=1+!!g);g&&(g=clearTimeout(g)),et&&(K.taps<2&&(b=G[0],g=setTimeout(function(){g=null},S)),Jl(this),K.start())}}function St(Z,...nt){if(this.__zooming){var E=I(this,nt).event(Z),$=Z.changedTouches,K=$.length,et,q,T,G;for(Ns(Z),et=0;et<K;++et)q=$[et],T=fi(q,this),E.touch0&&E.touch0[2]===q.identifier?E.touch0[0]=T:E.touch1&&E.touch1[2]===q.identifier&&(E.touch1[0]=T);if(q=E.that.__zoom,E.touch1){var W=E.touch0[0],it=E.touch0[1],st=E.touch1[0],lt=E.touch1[1],yt=(yt=st[0]-W[0])*yt+(yt=st[1]-W[1])*yt,Vt=(Vt=lt[0]-it[0])*Vt+(Vt=lt[1]-it[1])*Vt;q=R(q,Math.sqrt(yt/Vt)),T=[(W[0]+st[0])/2,(W[1]+st[1])/2],G=[(it[0]+lt[0])/2,(it[1]+lt[1])/2]}else if(E.touch0)T=E.touch0[0],G=E.touch0[1];else return;E.zoom("touch",a(O(q,T,G),E.extent,u))}}function zt(Z,...nt){if(this.__zooming){var E=I(this,nt).event(Z),$=Z.changedTouches,K=$.length,et,q;for(xd(Z),v&&clearTimeout(v),v=setTimeout(function(){v=null},S),et=0;et<K;++et)q=$[et],E.touch0&&E.touch0[2]===q.identifier?delete E.touch0:E.touch1&&E.touch1[2]===q.identifier&&delete E.touch1;if(E.touch1&&!E.touch0&&(E.touch0=E.touch1,delete E.touch1),E.touch0)E.touch0[1]=this.__zoom.invert(E.touch0[0]);else if(E.end(),E.taps===2&&(q=fi(q,this),Math.hypot(b[0]-q[0],b[1]-q[1])<z)){var T=ye(this).on("dblclick.zoom");T&&T.apply(this,arguments)}}}return A.wheelDelta=function(Z){return arguments.length?(s=typeof Z=="function"?Z:Zl(+Z),A):s},A.filter=function(Z){return arguments.length?(t=typeof Z=="function"?Z:Zl(!!Z),A):t},A.touchable=function(Z){return arguments.length?(l=typeof Z=="function"?Z:Zl(!!Z),A):l},A.extent=function(Z){return arguments.length?(n=typeof Z=="function"?Z:Zl([[+Z[0][0],+Z[0][1]],[+Z[1][0],+Z[1][1]]]),A):n},A.scaleExtent=function(Z){return arguments.length?(c[0]=+Z[0],c[1]=+Z[1],A):[c[0],c[1]]},A.translateExtent=function(Z){return arguments.length?(u[0][0]=+Z[0][0],u[1][0]=+Z[1][0],u[0][1]=+Z[0][1],u[1][1]=+Z[1][1],A):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},A.constrain=function(Z){return arguments.length?(a=Z,A):a},A.duration=function(Z){return arguments.length?(h=+Z,A):h},A.interpolate=function(Z){return arguments.length?(m=Z,A):m},A.on=function(){var Z=p.on.apply(p,arguments);return Z===p?A:Z},A.clickDistance=function(Z){return arguments.length?(w=(Z=+Z)*Z,A):Math.sqrt(w)},A.tapDistance=function(Z){return arguments.length?(z=+Z,A):z},A}function Qt(...t){return aT(yb(t))}var Y6=vb("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",glow:"bg-gradient-to-r from-cyan-600 to-blue-600 text-white shadow-lg shadow-cyan-500/20 hover:shadow-cyan-500/40 hover:scale-[1.02] active:scale-[0.98]",glass:"bg-slate-800/50 backdrop-blur-sm border border-slate-700 text-slate-200 hover:bg-slate-700/50 hover:text-white",accent:"bg-cyan-500/10 text-cyan-400 border border-cyan-500/20 hover:bg-cyan-500/20"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10",xs:"h-7 rounded-md px-2 text-[10px] font-bold uppercase tracking-wider"}},defaultVariants:{variant:"default",size:"default"}}),q6=P.forwardRef(({className:t,variant:n,size:a,...s},l)=>M.jsx("button",{className:Qt(Y6({variant:n,size:a,className:t})),ref:l,...s}));q6.displayName="Button";var X6=P.forwardRef(({className:t,...n},a)=>M.jsx("div",{ref:a,className:Qt("rounded-lg border bg-card text-card-foreground shadow-sm",t),...n}));X6.displayName="Card";var K6=P.forwardRef(({className:t,...n},a)=>M.jsx("div",{ref:a,className:Qt("flex flex-col space-y-1.5 p-6",t),...n}));K6.displayName="CardHeader";var Q6=P.forwardRef(({className:t,...n},a)=>M.jsx("h3",{ref:a,className:Qt("text-2xl font-semibold leading-none tracking-tight",t),...n}));Q6.displayName="CardTitle";var P6=P.forwardRef(({className:t,...n},a)=>M.jsx("p",{ref:a,className:Qt("text-sm text-muted-foreground",t),...n}));P6.displayName="CardDescription";var F6=P.forwardRef(({className:t,...n},a)=>M.jsx("div",{ref:a,className:Qt("p-6 pt-0",t),...n}));F6.displayName="CardContent";var J6=P.forwardRef(({className:t,...n},a)=>M.jsx("div",{ref:a,className:Qt("flex items-center p-6 pt-0",t),...n}));J6.displayName="CardFooter";var CS=P.forwardRef(({className:t,...n},a)=>M.jsx("div",{ref:a,className:Qt("rounded-2xl border border-indigo-500/20 bg-slate-900/40 backdrop-blur-md shadow-xl transition-all hover:border-indigo-500/30",t),...n}));CS.displayName="GlassCard";var I6=P.forwardRef(({className:t,...n},a)=>M.jsx("div",{ref:a,className:Qt("flex flex-col space-y-1.5 p-6 border-b border-indigo-500/10",t),...n}));I6.displayName="GlassCardHeader";var DS=P.forwardRef(({className:t,...n},a)=>M.jsx("div",{ref:a,className:Qt("p-6",t),...n}));DS.displayName="GlassCardContent";var W6=P.forwardRef(({className:t,type:n,...a},s)=>M.jsx("input",{type:n,className:Qt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...a}));W6.displayName="Input";var tk=vb("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ek=P.forwardRef(({className:t,...n},a)=>M.jsx("label",{ref:a,className:Qt(tk(),t),...n}));ek.displayName="Label";var nk=P.forwardRef(({className:t,size:n="lg",...a},s)=>M.jsx("div",{ref:s,className:Qt("mx-auto w-full px-4 sm:px-6 lg:px-8",{"max-w-screen-sm":n==="sm","max-w-screen-md":n==="md","max-w-screen-lg":n==="lg","max-w-screen-xl":n==="xl","max-w-full":n==="full"},t),...a}));nk.displayName="Container";var ik=P.forwardRef(({className:t,cols:n=3,gap:a="md",...s},l)=>M.jsx("div",{ref:l,className:Qt("grid",{"grid-cols-1":n===1,"grid-cols-1 sm:grid-cols-2":n===2,"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":n===3,"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4":n===4,"grid-cols-1 sm:grid-cols-2 lg:grid-cols-5":n===5,"grid-cols-1 sm:grid-cols-2 lg:grid-cols-6":n===6,"grid-cols-1 sm:grid-cols-2 lg:grid-cols-12":n===12},{"gap-2":a==="sm","gap-4":a==="md","gap-6":a==="lg","gap-8":a==="xl"},t),...s}));ik.displayName="Grid";var ak=P.forwardRef(({className:t,direction:n="vertical",spacing:a="md",align:s="stretch",justify:l="start",...c},u)=>M.jsx("div",{ref:u,className:Qt("flex",{"flex-col":n==="vertical","flex-row":n==="horizontal"},{"gap-1":a==="xs","gap-2":a==="sm","gap-4":a==="md","gap-6":a==="lg","gap-8":a==="xl"},{"items-start":s==="start","items-center":s==="center","items-end":s==="end","items-stretch":s==="stretch"},{"justify-start":l==="start","justify-center":l==="center","justify-end":l==="end","justify-between":l==="between","justify-around":l==="around"},t),...c}));ak.displayName="Stack";var rk=P.forwardRef(({className:t,orientation:n="horizontal",decorative:a=!0,...s},l)=>M.jsx("div",{ref:l,role:a?"none":"separator","aria-orientation":n,className:Qt("shrink-0 bg-border",n==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t),...s}));rk.displayName="Separator";var sk=P.forwardRef(({className:t,label:n,id:a,...s},l)=>{const c=a||P.useId();return M.jsxs("div",{className:"flex items-center",children:[M.jsx("input",{type:"checkbox",id:c,ref:l,className:Qt("h-4 w-4 rounded border-gray-300 text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...s}),n&&M.jsx("label",{htmlFor:c,className:"ml-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:n})]})});sk.displayName="Checkbox";var ok=P.forwardRef(({className:t,options:n,value:a,onChange:s,name:l,orientation:c="vertical",...u},h)=>M.jsx("div",{ref:h,className:Qt("flex",c==="vertical"?"flex-col gap-2":"flex-row gap-4",t),...u,children:n.map(m=>{const p=`${l}-${m.value}`;return M.jsxs("div",{className:"flex items-center",children:[M.jsx("input",{type:"radio",id:p,name:l,value:m.value,checked:a===m.value,disabled:m.disabled,onChange:g=>s?.(g.target.value),className:"h-4 w-4 border-gray-300 text-primary focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"}),M.jsx("label",{htmlFor:p,className:"ml-2 text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",children:m.label})]},m.value)})}));ok.displayName="RadioGroup";var lk=P.forwardRef(({className:t,label:n,id:a,checked:s,onCheckedChange:l,onChange:c,...u},h)=>{const m=a||P.useId(),p=g=>{c?.(g),l?.(g.target.checked)};return M.jsxs("div",{className:"flex items-center",children:[M.jsxs("label",{htmlFor:m,className:"relative inline-flex cursor-pointer items-center",children:[M.jsx("input",{type:"checkbox",id:m,ref:h,checked:s,onChange:p,className:"peer sr-only",...u}),M.jsx("div",{className:Qt('peer h-6 w-11 rounded-full bg-gray-200 after:absolute after:left-[2px] after:top-[2px] after:h-5 after:w-5 after:rounded-full after:border after:border-gray-300 after:bg-white after:transition-all after:content-[""] peer-checked:bg-primary peer-checked:after:translate-x-full peer-checked:after:border-white peer-focus:outline-none peer-focus:ring-2 peer-focus:ring-ring peer-focus:ring-offset-2 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',t)})]}),n&&M.jsx("span",{className:"ml-3 text-sm font-medium text-foreground",children:n})]})});lk.displayName="Switch";var uk=P.forwardRef(({className:t,...n},a)=>M.jsx("textarea",{className:Qt("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:a,...n}));uk.displayName="Textarea";var ck=P.forwardRef(({className:t,options:n,placeholder:a,onChange:s,...l},c)=>{const u=h=>{s?.(h.target.value)};return M.jsxs("select",{ref:c,className:Qt("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),onChange:u,...l,children:[a&&M.jsx("option",{value:"",disabled:!0,children:a}),n.map(h=>M.jsx("option",{value:h.value,disabled:h.disabled,children:h.label},h.value))]})});ck.displayName="Select";function fk({score:t,progress:n,isInView:a=!0,size:s="md",showLabel:l=!0,className:c}){const u=n??t,m=t>=80?{stroke:"#10b981",glow:"rgba(16, 185, 129, 0.3)"}:t>=60?{stroke:"#eab308",glow:"rgba(234, 179, 8, 0.3)"}:{stroke:"#ef4444",glow:"rgba(239, 68, 68, 0.3)"},p={sm:"w-32 h-32",md:"w-48 h-48",lg:"w-64 h-64",xl:"w-80 h-80"},g={sm:{score:"text-3xl",label:"text-[8px]",title:"text-sm"},md:{score:"text-5xl",label:"text-[10px]",title:"text-lg"},lg:{score:"text-6xl",label:"text-xs",title:"text-xl"},xl:{score:"text-7xl",label:"text-sm",title:"text-2xl"}},b=p[s],v=g[s];return M.jsxs("div",{className:Qt("relative",b,c),children:[M.jsx("div",{className:"absolute inset-0 rounded-full blur-2xl opacity-50 transition-all duration-500",style:{backgroundColor:m.glow}}),M.jsx("svg",{className:"w-full h-full transform -rotate-90 relative z-10",viewBox:"0 0 100 100",children:Array.from({length:20}).map((S,_)=>{const z=_*360/20-85,A=42,R=6,O=4,C=50+A*Math.cos(z*Math.PI/180),L=50+A*Math.sin(z*Math.PI/180),I=50+A*Math.cos((z+360/20-O)*Math.PI/180),V=50+A*Math.sin((z+360/20-O)*Math.PI/180),k=_/20*100<=u;return M.jsx(md.line,{x1:`${C}`,y1:`${L}`,x2:`${I}`,y2:`${V}`,stroke:k?m.stroke:"#334155",strokeWidth:R,strokeLinecap:"round",initial:{opacity:.3},animate:{opacity:k?1:.3,filter:k?`drop-shadow(0 0 2px ${m.stroke})`:"none"},transition:{duration:.3}},_)})}),M.jsx("div",{className:"absolute inset-0 flex flex-col items-center justify-center z-20",children:M.jsxs(md.div,{initial:{scale:0},animate:a?{scale:1}:{scale:0},transition:{duration:.5,delay:.3},className:"text-center",children:[M.jsx(md.div,{className:Qt("font-black mb-1",v.score),style:{color:m.stroke},animate:{textShadow:`0 0 20px ${m.glow}, 0 0 40px ${m.glow}`},children:t}),l&&M.jsxs(M.Fragment,{children:[M.jsx("div",{className:Qt("font-bold uppercase tracking-wider text-slate-400 mb-0.5",v.label),children:"AI Readiness"}),M.jsx("div",{className:Qt("font-black tracking-tight",v.title),style:{color:m.stroke},children:"SCORE"})]})]})})]})}var dk={sm:"h-4 w-4",md:"h-8 w-8",lg:"h-12 w-12"};function hk({size:t="md",className:n=""}){return M.jsx("div",{className:`flex items-center justify-center ${n}`,children:M.jsx("div",{className:`${dk[t]} animate-spin rounded-full border-2 border-slate-300 border-t-blue-600`})})}function mk({title:t="Something went wrong",message:n,retry:a,retryLabel:s="Try again"}){return M.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[200px] gap-4 p-8",children:[M.jsx("div",{className:"rounded-full bg-red-100 p-3",children:M.jsx("svg",{className:"h-6 w-6 text-red-600",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:M.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"})})}),M.jsxs("div",{className:"text-center",children:[M.jsx("h3",{className:"text-lg font-semibold text-slate-900",children:t}),M.jsx("p",{className:"mt-2 text-sm text-slate-500",children:n})]}),a&&M.jsxs("button",{onClick:a,className:"mt-2 inline-flex items-center gap-2 rounded-lg bg-blue-600 px-4 py-2 text-sm font-medium text-white hover:bg-blue-700 transition-colors",children:[M.jsx("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",children:M.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"})}),s]})]})}P.createContext(void 0);var pk=({node:t,isSelected:n,isHovered:a,pinned:s,defaultNodeSize:l,defaultNodeColor:c,showLabel:u=!0,onClick:h,onDoubleClick:m,onMouseEnter:p,onMouseLeave:g,onMouseDown:b})=>{const v=t.size||l,S=t.color||c,_=t.x??0,w=t.y??0;return M.jsxs("g",{className:"cursor-pointer node","data-id":t.id,transform:`translate(${_},${w})`,onClick:()=>h?.(t),onDoubleClick:z=>m?.(z,t),onMouseEnter:()=>p?.(t),onMouseLeave:()=>g?.(),onMouseDown:z=>b?.(z,t),children:[M.jsx("circle",{r:v,fill:S,stroke:n?"#000":a?"#666":"none",strokeWidth:s?3:n?2.5:a?2:1.5,opacity:a||n?1:.9}),s&&M.jsx("circle",{r:v+4,fill:"none",stroke:"#ff6b6b",strokeWidth:1,opacity:.5,className:"pointer-events-none"}),u&&t.label&&M.jsx("text",{y:v+15,fill:"#333",fontSize:"12",textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none",className:"select-none",children:t.label})]},t.id)},gk=pk,yk=({link:t,onClick:n,defaultWidth:a,showLabel:s=!0,nodes:l=[]})=>{const c=t.source?.id??(typeof t.source=="string"?t.source:void 0),u=t.target?.id??(typeof t.target=="string"?t.target:void 0),h=v=>{if(typeof v=="object"&&v!==null){const S=v;return{x:S.x??0,y:S.y??0}}else if(typeof v=="string"){const S=l.find(_=>_.id===v);if(S)return{x:S.x??0,y:S.y??0}}return null},m=h(t.source),p=h(t.target);if(!m||!p)return null;const g=(m.x+p.x)/2,b=(m.y+p.y)/2;return M.jsxs("g",{children:[M.jsx("line",{x1:m.x,y1:m.y,x2:p.x,y2:p.y,"data-source":c,"data-target":u,stroke:t.color,strokeWidth:t.width??a??1,opacity:.6,className:"cursor-pointer transition-opacity hover:opacity-100",onClick:()=>n?.(t)}),s&&t.label&&M.jsx("text",{x:g,y:b,fill:"#666",fontSize:"10",textAnchor:"middle",dominantBaseline:"middle",pointerEvents:"none",children:t.label})]})},vk=yk,bk=P.forwardRef(({nodes:t,links:n,width:a,height:s,enableZoom:l=!0,enableDrag:c=!0,onNodeClick:u,onNodeHover:h,onLinkClick:m,selectedNodeId:p,hoveredNodeId:g,defaultNodeColor:b="#69b3a2",defaultNodeSize:v=10,defaultLinkColor:S="#999",defaultLinkWidth:_=1,showNodeLabels:w=!0,showLinkLabels:z=!1,className:A,manualLayout:R=!1,onManualLayoutChange:O,packageBounds:C,layout:L,onLayoutChange:I},V)=>{const k=P.useRef(null),tt=P.useRef(null),[at,vt]=P.useState({k:1,x:0,y:0}),St=P.useRef(at),zt=P.useRef(null),Z=P.useRef(!1),[nt,E]=P.useState(new Set),$=P.useRef(c),[K,et]=P.useState(L||"force");P.useEffect(()=>{L&&L!==K&&et(L)},[L]);const q=P.useCallback(ot=>{et(ot),I?.(ot)},[I]);P.useEffect(()=>{$.current=c},[c]);const T=El.useMemo(()=>{if(!t||!t.length)return t;const ot=a/2,rt=s/2;if(K==="force")return t.map(bt=>({...bt,x:Math.random()*a,y:Math.random()*s}));if(K==="circular"){const bt=Math.min(a,s)*.35;return t.map((wt,qt)=>({...wt,x:ot+Math.cos(2*Math.PI*qt/t.length)*bt,y:rt+Math.sin(2*Math.PI*qt/t.length)*bt}))}if(K==="hierarchical"){const bt=Math.ceil(Math.sqrt(t.length)),wt=a/(bt+1),qt=s/(Math.ceil(t.length/bt)+1);return t.map((ae,Ht)=>({...ae,x:wt*(Ht%bt+1),y:qt*(Math.floor(Ht/bt)+1)}))}return t},[t,a,s,K]),G=n,W=El.useCallback(()=>{},[]),it=El.useCallback(()=>{},[]),st=El.useCallback(ot=>{},[]);P.useEffect(()=>{if(!T||T.length===0)return;(()=>{const rt=a/2,bt=s/2;if(K==="circular"){const wt=Math.min(a,s)*.35;T.forEach((qt,ae)=>{const Ht=2*Math.PI*ae/T.length;qt.fx=rt+Math.cos(Ht)*wt,qt.fy=bt+Math.sin(Ht)*wt})}else if(K==="hierarchical"){const wt=new Map;T.forEach(Ne=>{const _n=Ne.packageGroup||Ne.group||"root";wt.has(_n)||wt.set(_n,[]),wt.get(_n).push(Ne)});const qt=Array.from(wt.entries()),ae=Math.ceil(Math.sqrt(qt.length)),Ht=a*.8/ae,De=s*.8/Math.ceil(qt.length/ae);qt.forEach(([Ne,_n],Da)=>{const xe=Da%ae,Pe=Math.floor(Da/ae),on=(xe+.5)*Ht,lo=(Pe+.5)*De;(Ne.startsWith("pkg:")||Ne===Ne)&&_n.forEach((Ii,Du)=>{const Rr=2*Math.PI*Du/_n.length,uo=Math.min(80,20+_n.length*8);Ii.fx=on+Math.cos(Rr)*uo,Ii.fy=lo+Math.sin(Rr)*uo})})}try{W()}catch{}})()},[K,T,a,s,W]),P.useEffect(()=>{try{R||nt.size>0?st(!1):st(!0)}catch{}},[R,nt,st]),P.useImperativeHandle(V,()=>({pinAll:()=>{const ot=new Set;T.forEach(rt=>{rt.fx=rt.x,rt.fy=rt.y,ot.add(rt.id)}),E(ot),W()},unpinAll:()=>{T.forEach(ot=>{ot.fx=null,ot.fy=null}),E(new Set),W()},resetLayout:()=>{T.forEach(ot=>{ot.fx=null,ot.fy=null}),E(new Set),W()},fitView:()=>{if(!k.current||!T.length)return;let ot=1/0,rt=-1/0,bt=1/0,wt=-1/0;if(T.forEach(Pe=>{if(Pe.x!==void 0&&Pe.y!==void 0){const on=Pe.size||10;ot=Math.min(ot,Pe.x-on),rt=Math.max(rt,Pe.x+on),bt=Math.min(bt,Pe.y-on),wt=Math.max(wt,Pe.y+on)}}),!isFinite(ot))return;const qt=40,ae=rt-ot,Ht=wt-bt,De=Math.min((a-qt*2)/ae,(s-qt*2)/Ht,10),Ne=(ot+rt)/2,_n=(bt+wt)/2,Da=a/2-Ne*De,xe=s/2-_n*De;if(tt.current&&k.current){const Pe=ye(k.current),on=Cu.translate(Da,xe).scale(De);Pe.transition().duration(300).call(nh().transform,on),vt(on)}},getPinnedNodes:()=>Array.from(nt),setDragMode:ot=>{$.current=ot},setLayout:ot=>{q(ot)},getLayout:()=>K}),[T,nt,W,a,s,K,q]),P.useEffect(()=>{try{typeof O=="function"&&O(R)}catch{}},[R,O]),P.useEffect(()=>{if(!l||!k.current||!tt.current)return;const ot=ye(k.current),rt=ye(tt.current),bt=nh().scaleExtent([.1,10]).on("zoom",wt=>{rt.attr("transform",wt.transform),St.current=wt.transform,vt(wt.transform)});return ot.call(bt),()=>{ot.on(".zoom",null)}},[l]),P.useEffect(()=>{if(tt.current)try{const ot=ye(tt.current);ot.selectAll("g.node").each(function(){const rt=ye(this).datum();rt&&ye(this).attr("transform",`translate(${rt.x||0},${rt.y||0})`)}),ot.selectAll("line").each(function(){const rt=ye(this).datum();if(!rt)return;const bt=typeof rt.source=="object"?rt.source:T.find(qt=>qt.id===rt.source)||rt.source,wt=typeof rt.target=="object"?rt.target:T.find(qt=>qt.id===rt.target)||rt.target;!bt||!wt||ye(this).attr("x1",bt.x).attr("y1",bt.y).attr("x2",wt.x).attr("y2",wt.y)})}catch{}},[T,G]);const lt=P.useCallback((ot,rt)=>{if(c){ot.preventDefault(),ot.stopPropagation(),Z.current=!0,zt.current=rt,rt.fx=rt.x,rt.fy=rt.y,E(bt=>new Set([...bt,rt.id]));try{it()}catch{}}},[c,W]);P.useEffect(()=>{if(!c)return;const ot=wt=>{if(!Z.current||!zt.current)return;const qt=k.current;if(!qt)return;const ae=qt.getBoundingClientRect(),Ht=St.current,De=(wt.clientX-ae.left-Ht.x)/Ht.k,Ne=(wt.clientY-ae.top-Ht.y)/Ht.k;zt.current.fx=De,zt.current.fy=Ne},rt=()=>{if(Z.current){try{st(!0),W()}catch{}zt.current=null,Z.current=!1}},bt=wt=>{wt.relatedTarget===null&&rt()};return window.addEventListener("mousemove",ot),window.addEventListener("mouseup",rt),window.addEventListener("mouseout",bt),window.addEventListener("blur",rt),()=>{window.removeEventListener("mousemove",ot),window.removeEventListener("mouseup",rt),window.removeEventListener("mouseout",bt),window.removeEventListener("blur",rt)}},[c]),P.useEffect(()=>{if(!tt.current||!c)return;const ot=ye(tt.current),rt=pS().on("start",function(bt){try{const ae=(bt.sourceEvent&&bt.sourceEvent.target||bt.target).closest?.("g.node")?.getAttribute("data-id");if(!ae)return;const Ht=T.find(De=>De.id===ae);if(!Ht||!$.current)return;bt.active||W(),Z.current=!0,zt.current=Ht,Ht.fx=Ht.x,Ht.fy=Ht.y,E(De=>new Set([...De,Ht.id]))}catch{}}).on("drag",function(bt){if(!Z.current||!zt.current)return;const wt=k.current;if(!wt)return;const qt=wt.getBoundingClientRect(),ae=(bt.sourceEvent.clientX-qt.left-at.x)/at.k,Ht=(bt.sourceEvent.clientY-qt.top-at.y)/at.k;zt.current.fx=ae,zt.current.fy=Ht}).on("end",function(){try{st(!0),W()}catch{}});try{ot.selectAll("g.node").call(rt)}catch{}return()=>{try{ot.selectAll("g.node").on(".drag",null)}catch{}}},[tt,c,T,at,W]);const yt=P.useCallback(ot=>{u?.(ot)},[u]),Vt=P.useCallback((ot,rt)=>{ot.stopPropagation(),c&&(rt.fx===null||rt.fx===void 0?(rt.fx=rt.x,rt.fy=rt.y,E(bt=>new Set([...bt,rt.id]))):(rt.fx=null,rt.fy=null,E(bt=>{const wt=new Set(bt);return wt.delete(rt.id),wt})),W())},[c,W]),xt=P.useCallback(()=>{T.forEach(ot=>{ot.fx=null,ot.fy=null}),E(new Set),W()},[T,W]),Rn=P.useCallback(ot=>{h?.(ot)},[h]),Sn=P.useCallback(()=>{h?.(null)},[h]),kn=P.useCallback(ot=>{m?.(ot)},[m]);return M.jsxs("svg",{ref:k,width:a,height:s,className:Qt("bg-white dark:bg-gray-900",A),onDoubleClick:xt,children:[M.jsx("defs",{children:M.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"20",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto",children:M.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:S})})}),M.jsxs("g",{ref:tt,children:[G.map((ot,rt)=>M.jsx(vk,{link:ot,onClick:kn,defaultWidth:_,showLabel:z,nodes:T},`link-${rt}`)),T.map(ot=>M.jsx(gk,{node:ot,isSelected:p===ot.id,isHovered:g===ot.id,pinned:nt.has(ot.id),defaultNodeSize:v,defaultNodeColor:b,showLabel:w,onClick:yt,onDoubleClick:Vt,onMouseEnter:Rn,onMouseLeave:Sn,onMouseDown:lt},ot.id)),C&&Object.keys(C).length>0&&M.jsx("g",{className:"package-boundaries",pointerEvents:"none",children:Object.entries(C).map(([ot,rt])=>M.jsxs("g",{children:[M.jsx("circle",{cx:rt.x,cy:rt.y,r:rt.r,fill:"rgba(148,163,184,0.06)",stroke:"#475569",strokeWidth:2,strokeDasharray:"6 6",opacity:.9}),M.jsx("text",{x:rt.x,y:Math.max(12,rt.y-rt.r+14),fill:"#475569",fontSize:11,textAnchor:"middle",pointerEvents:"none",children:ot.replace(/^pkg:/,"")})]},ot))})]})]})});bk.displayName="ForceDirectedGraph";const xk=({className:t,style:n})=>M.jsxs("svg",{className:t,style:n,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("circle",{cx:"12",cy:"12",r:"4"}),M.jsx("path",{d:"M12 2v2"}),M.jsx("path",{d:"M12 20v2"}),M.jsx("path",{d:"m4.93 4.93 1.41 1.41"}),M.jsx("path",{d:"m17.66 17.66 1.41 1.41"}),M.jsx("path",{d:"M2 12h2"}),M.jsx("path",{d:"M20 12h2"}),M.jsx("path",{d:"m6.34 17.66-1.41 1.41"}),M.jsx("path",{d:"m19.07 4.93-1.41 1.41"})]}),Sk=({className:t,style:n})=>M.jsx("svg",{className:t,style:n,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:M.jsx("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),_k=({className:t,style:n})=>M.jsxs("svg",{className:t,style:n,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[M.jsx("rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}),M.jsx("path",{d:"M8 21h8"}),M.jsx("path",{d:"M12 17v4"})]});function wk({colors:t,theme:n,setTheme:a,data:s,metadata:l}){return M.jsxs("nav",{className:"h-16 backdrop-blur-md border-b flex items-center justify-between px-6 z-50 relative",style:{backgroundColor:`${t.panel}f5`,borderColor:t.panelBorder},children:[M.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{background:`linear-gradient(90deg, ${t.panel}80 0%, transparent 50%, ${t.panel}80 100%)`}}),M.jsxs("div",{className:"flex items-center gap-5 relative z-10",children:[M.jsx("div",{className:"flex items-center justify-center",children:M.jsx("img",{src:"/logo-transparent-bg.png",alt:"AIReady",className:"h-9 w-auto"})}),M.jsx("div",{className:"h-7 w-px",style:{backgroundColor:t.panelBorder}}),M.jsx("h1",{className:"text-sm font-semibold tracking-wide uppercase",style:{color:t.textMuted},children:"Codebase"})]}),M.jsxs("div",{className:"flex items-center gap-6 relative z-10",children:[M.jsx("div",{className:"flex items-center rounded-lg border px-4 py-3",style:{borderColor:t.panelBorder,backgroundColor:`${t.panel}80`,gap:"12px"},children:[{key:"dark",icon:Sk,label:"Dark"},{key:"light",icon:xk,label:"Light"},{key:"system",icon:_k,label:"System"}].map(({key:c,icon:u,label:h})=>M.jsxs("button",{onClick:()=>a(c),className:"group flex items-center rounded-md text-xs font-medium transition-all duration-200",style:{backgroundColor:n===c?t.cardBg:"transparent",color:n===c?t.text:t.textMuted,border:`1px solid ${n===c?t.cardBorder:"transparent"}`,padding:"8px 16px",gap:"8px"},title:`Switch to ${h} theme`,children:[M.jsx(u,{className:"transition-transform duration-200",style:{transform:n===c?"scale(1.1)":"scale(1)"}}),M.jsx("span",{children:h})]},c))}),s&&M.jsxs("div",{className:"flex items-center",style:{gap:"12px"},children:[M.jsxs("div",{className:"rounded-lg border text-xs font-medium flex items-center",style:{backgroundColor:`${t.cardBg}cc`,borderColor:t.cardBorder,padding:"8px 14px",gap:"8px"},children:[M.jsx("span",{className:"w-2 h-2 rounded-full bg-cyan-400 animate-pulse"}),M.jsx("span",{style:{color:t.textMuted},children:"Files"}),M.jsx("span",{style:{color:t.text},children:s.nodes.length})]}),M.jsxs("div",{className:"rounded-lg border text-xs font-medium flex items-center",style:{backgroundColor:`${t.cardBg}cc`,borderColor:t.cardBorder,padding:"8px 14px",gap:"8px"},children:[M.jsx("span",{className:"w-2 h-2 rounded-full bg-purple-400"}),M.jsx("span",{style:{color:t.textMuted},children:"Links"}),M.jsx("span",{style:{color:t.text},children:s.edges.length})]}),l?.estimatedMonthlyCost!==void 0&&M.jsxs("div",{className:"rounded-lg border text-xs font-medium flex items-center",style:{backgroundColor:`${t.cardBg}cc`,borderColor:t.cardBorder,padding:"8px 14px",gap:"8px"},title:"Estimated monthly AI token cost from wasted context",children:[M.jsx("span",{style:{fontSize:"10px"},children:"💰"}),M.jsx("span",{style:{color:t.textMuted},children:"Cost"}),M.jsxs("span",{style:{color:"#f59e0b",fontWeight:600},children:[l.estimatedMonthlyCost>=1e3?`$${(l.estimatedMonthlyCost/1e3).toFixed(1)}k`:`$${l.estimatedMonthlyCost.toFixed(0)}`,"/mo"]})]})]})]})]})}function pb({color:t,label:n,isGlow:a=!1,isLine:s=!1,colors:l,isVisible:c,onToggle:u}){return M.jsxs("button",{onClick:u,className:"group cursor-pointer transition-all hover:bg-white/5 w-full",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 8px",borderRadius:"8px",opacity:c?1:.4},title:c?`Click to hide ${n}`:`Click to show ${n}`,children:[M.jsx("div",{className:"flex-shrink-0 w-5 h-5 rounded border-2 flex items-center justify-center transition-colors",style:{borderColor:c?"#10b981":l.panelBorder,backgroundColor:c?`${t}20`:"transparent"},children:c&&M.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:t,strokeWidth:"3",children:M.jsx("path",{d:"M20 6L9 17l-5-5",strokeLinecap:"round",strokeLinejoin:"round"})})}),s?M.jsx("span",{className:"w-10 h-1 rounded-full flex-shrink-0",style:{backgroundColor:t}}):M.jsx("span",{className:`w-4 h-4 rounded-full flex-shrink-0 ${a?"shadow-lg":""}`,style:{backgroundColor:t,boxShadow:a&&c?`0 0 10px ${t}90`:"none"}}),M.jsx("span",{className:"text-sm font-medium transition-colors leading-tight",style:{color:l.textMuted},children:n})]})}function Tk({colors:t,visibleSeverities:n,visibleEdgeTypes:a,onToggleSeverity:s,onToggleEdgeType:l,metadata:c}){const u=n.size,h=Object.keys(Yi).length-1,m=a.size,p=Object.keys(Il).filter(g=>g!=="default"&&g!=="reference").length;return M.jsx("div",{style:{padding:"16px 16px",animation:"fadeIn 0.2s ease-in"},children:M.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px"},children:[c&&c.aiReadinessScore!==void 0&&M.jsx("div",{className:"flex flex-col items-center justify-center p-4 border-b",style:{borderColor:t.panelBorder},children:M.jsx(fk,{score:Math.round(c.aiReadinessScore*100),size:"md",className:"mb-2"})}),M.jsx("div",{style:{paddingBottom:"16px",borderBottom:`1px solid ${t.cardBorder}`},children:M.jsx("h2",{className:"text-base font-bold tracking-wide",style:{color:t.text},children:"Legend"})}),M.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[M.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[M.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest",style:{color:t.textMuted},children:"Severity"}),M.jsxs("span",{className:"text-xs font-medium",style:{color:u===h?"#10b981":"#f59e0b"},children:[u,"/",h]})]}),M.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:Object.entries(Yi).filter(([g])=>g!=="default").map(([g,b])=>M.jsx(pb,{color:b,label:g.charAt(0).toUpperCase()+g.slice(1),isGlow:g!=="default",colors:t,isVisible:n.has(g),onToggle:()=>s(g)},g))})]}),M.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[M.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[M.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest",style:{color:t.textMuted},children:"Connections"}),M.jsxs("span",{className:"text-xs font-medium",style:{color:m===p?"#10b981":"#f59e0b"},children:[m,"/",p]})]}),M.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:Object.entries(Il).filter(([g])=>g!=="default"&&g!=="reference").map(([g,b])=>M.jsx(pb,{color:b,label:g.charAt(0).toUpperCase()+g.slice(1),isLine:!0,colors:t,isVisible:a.has(g),onToggle:()=>l(g)},g))})]}),M.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[M.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest",style:{color:t.textMuted,marginBottom:"4px"},children:"Node Size"}),M.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"12px"},children:[M.jsxs("p",{className:"text-xs leading-relaxed",style:{color:t.textMuted},children:["Larger nodes indicate higher"," ",M.jsx("span",{className:"text-cyan-400 font-medium",children:"token cost"})," and more ",M.jsx("span",{className:"text-purple-400 font-medium",children:"issues"}),"."]}),M.jsxs("div",{className:"flex items-center gap-3",children:[M.jsxs("div",{className:"flex -space-x-2",children:[M.jsx("span",{className:"w-3 h-3 rounded-full bg-cyan-400 border-2",style:{borderColor:t.panel}}),M.jsx("span",{className:"w-5 h-5 rounded-full bg-cyan-400 border-2",style:{borderColor:t.panel}}),M.jsx("span",{className:"w-7 h-7 rounded-full bg-cyan-400 border-2",style:{borderColor:t.panel}})]}),M.jsx("span",{className:"text-xs",style:{color:t.textMuted},children:"→"}),M.jsx("span",{className:"text-xs font-medium",style:{color:t.text},children:"More Impact"})]})]})]}),c&&(c.estimatedMonthlyCost||c.estimatedDeveloperHours||c.aiAcceptanceRate)&&M.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[M.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest",style:{color:t.textMuted,marginBottom:"4px"},children:"Business Impact"}),M.jsx(CS,{className:"border-indigo-500/10",children:M.jsxs(DS,{className:"p-3 flex flex-col gap-2",children:[c.estimatedMonthlyCost!==void 0&&M.jsxs("div",{className:"flex justify-between items-center py-1 px-2 rounded-lg hover:bg-white/5 transition-colors",children:[M.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",style:{color:t.textMuted},children:"Monthly Cost"}),M.jsx("span",{className:"text-xs font-black text-amber-500",children:c.estimatedMonthlyCost>=1e3?`$${(c.estimatedMonthlyCost/1e3).toFixed(1)}k`:`$${c.estimatedMonthlyCost.toFixed(0)}`})]}),c.estimatedDeveloperHours!==void 0&&M.jsxs("div",{className:"flex justify-between items-center py-1 px-2 rounded-lg hover:bg-white/5 transition-colors",children:[M.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",style:{color:t.textMuted},children:"Fix Time"}),M.jsx("span",{className:"text-xs font-black text-cyan-400",children:c.estimatedDeveloperHours>=40?`${(c.estimatedDeveloperHours/40).toFixed(1)}w`:`${c.estimatedDeveloperHours.toFixed(1)}h`})]}),c.aiAcceptanceRate!==void 0&&M.jsxs("div",{className:"flex justify-between items-center py-1 px-2 rounded-lg hover:bg-white/5 transition-colors",children:[M.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider",style:{color:t.textMuted},children:"AI Accuracy"}),M.jsxs("span",{className:"text-xs font-black",style:{color:c.aiAcceptanceRate>=.7?"#10b981":c.aiAcceptanceRate>=.5?"#f59e0b":"#ef4444"},children:[Math.round(c.aiAcceptanceRate*100),"%"]})]})]})})]}),M.jsx("div",{className:"p-4 rounded-xl",style:{backgroundColor:`${t.cardBg}80`},children:M.jsxs("p",{className:"text-xs leading-relaxed",style:{color:t.textMuted},children:[M.jsx("span",{className:"font-semibold text-amber-400",children:"💡 Tip:"})," Click and drag nodes to rearrange. Scroll to zoom. Toggle items above to filter."]})})]})})}function Sd({label:t,value:n,valueColor:a="inherit",highlight:s=!1,colors:l}){return M.jsxs("div",{className:"flex justify-between items-center py-2.5 px-3 rounded-lg transition-colors hover:bg-white/5",children:[M.jsx("span",{className:"text-xs font-medium",style:{color:l.textMuted},children:t}),M.jsx("span",{className:`text-xs font-semibold ${s?"px-3 py-1 rounded-full":""}`,style:{color:a,backgroundColor:s?`${a}25`:"transparent"},children:n})]})}function Ak({colors:t,selectedNode:n,onClose:a}){return M.jsxs("div",{style:{padding:"16px 16px",height:"100%",overflowY:"auto",overflowX:"hidden",animation:"fadeIn 0.2s ease-in"},children:[M.jsxs("div",{className:"flex justify-between items-center",style:{marginBottom:"16px"},children:[M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("div",{className:"w-2 h-2 rounded-full bg-cyan-400 animate-pulse"}),M.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest",style:{color:t.textMuted},children:"Selected Node"})]}),a&&M.jsx("button",{onClick:a,className:"p-2 rounded-lg hover:bg-white/10 transition-colors",style:{color:t.textMuted},title:"Close details",children:M.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:M.jsx("path",{d:"M18 6L6 18M6 6l12 12"})})})]}),n?M.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:[M.jsxs("div",{className:"p-4 rounded-xl",style:{backgroundColor:`${t.cardBg}80`},children:[M.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[M.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"text-amber-400",children:[M.jsx("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),M.jsx("polyline",{points:"14,2 14,8 20,8"})]}),M.jsx("h4",{className:"font-semibold text-sm truncate",style:{color:t.text},children:n.label})]}),M.jsx("p",{className:"text-xs break-all truncate",style:{color:t.textMuted},title:n.id,children:n.label})]}),M.jsxs("div",{className:"rounded-xl p-1",children:[M.jsx("div",{className:"px-3 py-2",children:M.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:t.textMuted},children:"Metrics"})}),M.jsxs("div",{className:"p-1",children:[M.jsx(Sd,{label:"Severity",value:n.severity||"none",valueColor:n.color,highlight:!0,colors:t}),M.jsx(Sd,{label:"Token Cost",value:n.tokenCost?.toLocaleString()||"0",valueColor:"#22d3ee",colors:t}),n.duplicates!==void 0&&M.jsx(Sd,{label:"Issues Found",value:n.duplicates,valueColor:"#c084fc",colors:t})]})]}),n.title&&M.jsxs("div",{className:"rounded-xl p-4",style:{backgroundColor:`${t.cardBg}80`},children:[M.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[M.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",style:{color:t.textMuted},children:[M.jsx("circle",{cx:"12",cy:"12",r:"10"}),M.jsx("path",{d:"M12 16v-4M12 8h.01"})]}),M.jsx("h5",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:t.textMuted},children:"Details"})]}),M.jsx("pre",{className:"text-xs whitespace-pre-wrap font-mono leading-relaxed p-3 rounded-lg",style:{color:t.textMuted,backgroundColor:t.panel,overflow:"auto"},children:n.title})]})]}):M.jsxs("div",{className:"flex flex-col items-center justify-center py-10 text-center rounded-xl",style:{backgroundColor:`${t.cardBg}50`},children:[M.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"mb-3 opacity-40",style:{color:t.textMuted},children:[M.jsx("circle",{cx:"11",cy:"11",r:"8"}),M.jsx("path",{d:"m21 21-4.3-4.3"})]}),M.jsx("p",{className:"text-sm font-medium",style:{color:t.textMuted},children:"Click a node to view details"})]})]})}function zk({data:t,dimensions:n,colors:a,effectiveTheme:s,onNodeClick:l}){const c=P.useRef(null),u=P.useRef(Cu);return P.useEffect(()=>{if(!t||!c.current||!t.nodes.length)return;const h=ye(c.current),m=c.current.getBoundingClientRect(),p=m.width,g=m.height;h.selectAll("*").remove();const b=h.append("g"),v=nh().scaleExtent([ke.zoomMin,ke.zoomMax]).on("zoom",V=>{b.attr("transform",V.transform),u.current=V.transform});h.call(v),h.call(v.transform,u.current);const S=t.nodes.map((V,k)=>{const tt=k/t.nodes.length*Math.PI*2,at=50+Math.random()*30;return{...V,x:p/2+Math.cos(tt)*at,y:g/2+Math.sin(tt)*at}}),_=t.edges.map(V=>({...V})),w=k6(S).force("link",z6(_).id(V=>V.id).distance(V=>c2(V.type)).strength(V=>f2(V.type))).force("charge",j6().strength(ke.simulation.chargeStrength)).force("center",r6(p/2,g/2)).force("collision",T6().radius(ke.collisionRadius)).force("x",V6(p/2).strength(ke.simulation.centerStrength)).force("y",B6(g/2).strength(ke.simulation.centerStrength)),A=b.append("g").attr("class","links").selectAll("line").data(_).enter().append("line").attr("stroke",V=>Il[V.type]||Il.default).attr("stroke-opacity",V=>d2(V.type)).attr("stroke-width",V=>h2(V.type)),O=b.append("g").attr("class","nodes").selectAll("g").data(S).enter().append("g").attr("cursor","pointer").call(pS().on("start",C).on("drag",L).on("end",I));O.append("circle").attr("r",V=>Math.sqrt(V.value||10)+ke.nodeBaseRadius).attr("fill",V=>V.color||Yi.default).attr("stroke",s==="dark"?"#fff":"#000").attr("stroke-width",1.5),O.append("text").text(V=>V.label.split("/").pop()||V.label).attr("x",0).attr("y",V=>Math.sqrt(V.value||10)+12).attr("text-anchor","middle").attr("fill",s==="dark"?"#e2e8f0":"#1e293b").attr("font-size","9px").attr("font-family","system-ui, sans-serif").attr("pointer-events","none"),O.append("title").text(V=>V.title),O.on("click",(V,k)=>{V.stopPropagation(),l(k)}),h.on("click",()=>l(null)),w.on("tick",()=>{A.attr("x1",V=>V.source.x).attr("y1",V=>V.source.y).attr("x2",V=>V.target.x).attr("y2",V=>V.target.y),O.attr("transform",V=>`translate(${V.x},${V.y})`)});function C(V,k){V.active||w.alphaTarget(.3).restart(),k.fx=k.x,k.fy=k.y}function L(V,k){k.fx=V.x,k.fy=V.y}function I(V,k){V.active||w.alphaTarget(0),k.fx=null,k.fy=null}return()=>{w.stop()}},[t,n,s,l]),M.jsxs("div",{className:"flex-1 relative w-full h-full",children:[M.jsx("div",{className:"absolute inset-0 pointer-events-none z-0",style:{backgroundImage:`linear-gradient(${a.grid} 1px, transparent 1px), linear-gradient(90deg, ${a.grid} 1px, transparent 1px)`,backgroundSize:"40px 40px"}}),M.jsx("svg",{ref:c,width:"100%",height:"100%",style:{display:"block",backgroundColor:"transparent",zIndex:10,position:"absolute",top:0,left:0}}),M.jsx("div",{className:"absolute bottom-6 left-6 z-20",children:M.jsxs("div",{className:"px-4 py-2.5 rounded-lg backdrop-blur-sm border text-xs flex items-center gap-2",style:{backgroundColor:`${a.panel}ee`,borderColor:a.panelBorder,color:a.textMuted},children:[M.jsx("svg",{width:"16",height:"16",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:M.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 11.5V14m0-2.5v-6a1.5 1.5 0 113 0m-3 6a1.5 1.5 0 00-3 0v2a7.5 7.5 0 0015 0v-5a1.5 1.5 0 00-3 0m-6-3V11m0-5.5v-1a1.5 1.5 0 013 0v1m0 0V11m0-5.5a1.5 1.5 0 013 0v3m0 0V11"})}),M.jsx("span",{children:"Drag to move • Scroll to zoom • Click for details"})]})})]})}const Ek=["critical","major","minor","info"],Mk=["similarity","dependency","related"];function Ck(){const[t,n]=P.useState(null),[a,s]=P.useState(null),[l,c]=P.useState(!0),[u,h]=P.useState(null),[m,p]=P.useState(null),[g,b]=P.useState(new Set(Ek)),[v,S]=P.useState(new Set(Mk)),{containerRef:_,dimensions:w}=m2(),{theme:z,setTheme:A,effectiveTheme:R}=p2(),O=r2[R];P.useEffect(()=>{(async()=>{try{const k=await u2();if(!k){h('No scan data found. Run "pnpm aiready scan ." then copy to public/report-data.json'),c(!1);return}const tt=k.visualizerConfig,at=l2(k,tt);n(at),(at.truncated?.nodes||at.truncated?.edges)&&p({nodes:at.truncated.nodes,edges:at.truncated.edges})}catch(k){console.error("Failed to load or transform report data:",k),h(`Failed to load visualization: ${k.message||"Unknown error"}`)}finally{c(!1)}})()},[]);const C=V=>{b(k=>{const tt=new Set(k);return tt.has(V)?tt.delete(V):tt.add(V),tt})},L=V=>{S(k=>{const tt=new Set(k);return tt.has(V)?tt.delete(V):tt.add(V),tt})},I=P.useMemo(()=>{if(!t)return null;const V=new Set(t.nodes.filter(at=>{const vt=at.severity||"default";return g.has(vt)}).map(at=>at.id)),k=t.nodes.filter(at=>{const vt=at.severity||"default";return g.has(vt)}),tt=t.edges.filter(at=>{const vt=at.type||"default";if(!v.has(vt))return!1;const St=typeof at.source=="string"?at.source:at.source.id,zt=typeof at.target=="string"?at.target:at.target.id;return V.has(St)&&V.has(zt)});return{nodes:k,edges:tt}},[t,g,v]);return l?M.jsx(hk,{}):u?M.jsx(mk,{message:u}):M.jsxs("div",{className:"flex flex-col h-screen font-sans",style:{backgroundColor:O.bg,color:O.text},children:[M.jsx(wk,{colors:O,theme:z,setTheme:A,data:I,metadata:t?.metadata}),m&&(m.nodes||m.edges)&&M.jsxs("div",{className:"px-4 py-3 bg-yellow-50 border-b flex items-center justify-between",style:{borderColor:O.panelBorder},children:[M.jsxs("div",{className:"flex-1",children:[M.jsxs("p",{className:"text-sm text-yellow-800 font-medium",children:["⚠️ Graph visualization truncated at display limits.",m.nodes&&" Too many nodes.",m.edges&&" Too many edges."]}),M.jsxs("p",{className:"text-xs text-yellow-700 mt-1",children:["To show more data, increase graph limits in aiready.json:",M.jsx("code",{className:"bg-yellow-100 px-1 rounded",style:{marginLeft:"4px"},children:'"visualizer": { "graph": { "maxNodes": 2000, "maxEdges": 5000 } }'})]})]}),M.jsx("button",{onClick:()=>p(null),className:"text-yellow-600 hover:text-yellow-800 ml-4 flex-shrink-0",children:"✕"})]}),M.jsxs("div",{className:"flex flex-1 overflow-hidden",children:[M.jsx("div",{ref:_,className:"flex-1 relative",children:I&&M.jsx(zk,{data:I,dimensions:w,colors:O,effectiveTheme:R,onNodeClick:s})}),M.jsx("div",{className:"w-80 border-l flex flex-col h-full",style:{backgroundColor:O.panel,borderColor:O.panelBorder},children:a?M.jsx(Ak,{colors:O,selectedNode:a,onClose:()=>s(null)}):M.jsx("div",{className:"flex-1 overflow-y-auto",children:M.jsx(Tk,{colors:O,visibleSeverities:g,visibleEdgeTypes:v,onToggleSeverity:C,onToggleEdgeType:L,metadata:t?.metadata})})})]})]})}const Dk=document.getElementById("root");a2.createRoot(Dk).render(M.jsx(P.StrictMode,{children:M.jsx(Ck,{})}));
|