@ssot-registry/lineage-graph 0.2.25-dev.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/README.md +15 -0
  2. package/dist/LineageGraph.d.ts +2 -0
  3. package/dist/LineageGraphApp.d.ts +1 -0
  4. package/dist/components/ConnectedEdgesPanel.d.ts +9 -0
  5. package/dist/components/FamilyFilters.d.ts +6 -0
  6. package/dist/components/Legend.d.ts +4 -0
  7. package/dist/components/LineageGraphCanvas.d.ts +40 -0
  8. package/dist/components/PackageSummary.d.ts +6 -0
  9. package/dist/components/ResultsList.d.ts +8 -0
  10. package/dist/components/SelectedNodePanel.d.ts +8 -0
  11. package/dist/components/ViewControls.d.ts +33 -0
  12. package/dist/constants.d.ts +6 -0
  13. package/dist/html.d.ts +2 -0
  14. package/dist/index.d.ts +5 -0
  15. package/dist/layout.d.ts +12 -0
  16. package/dist/lineage-graph.cjs +95 -0
  17. package/dist/lineage-graph.css +1 -0
  18. package/dist/lineage-graph.js +9267 -0
  19. package/dist/standalone/ssot-lineage-graph.css +1 -0
  20. package/dist/standalone/ssot-lineage-graph.js +84 -0
  21. package/dist/standalone.d.ts +6 -0
  22. package/dist/subcomponents/KeyValue.d.ts +5 -0
  23. package/dist/subcomponents/Section.d.ts +8 -0
  24. package/dist/subcomponents/StatCard.d.ts +5 -0
  25. package/dist/subcomponents/format.d.ts +1 -0
  26. package/dist/types.d.ts +179 -0
  27. package/dist/views/LineageGraphAppView.d.ts +18 -0
  28. package/dist/workspace/App.d.ts +5 -0
  29. package/dist/workspace/components/LeftSidebar.d.ts +35 -0
  30. package/dist/workspace/components/LineageGraphApp.d.ts +26 -0
  31. package/dist/workspace/components/LineageGraphCanvas.d.ts +48 -0
  32. package/dist/workspace/components/RightInspector.d.ts +18 -0
  33. package/dist/workspace/components/StorybookDocs.d.ts +6 -0
  34. package/dist/workspace/main.d.ts +1 -0
  35. package/dist/workspace/types.d.ts +190 -0
  36. package/dist/workspace/utils/graphHelpers.d.ts +21 -0
  37. package/dist/workspace/utils/indexedDbHelper.d.ts +45 -0
  38. package/dist/workspace/utils/mockData.d.ts +10 -0
  39. package/package.json +54 -0
@@ -0,0 +1,84 @@
1
+ function mv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Ac={exports:{}},ol={};var Om;function pv(){if(Om)return ol;Om=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function o(r,c,m){var f=null;if(m!==void 0&&(f=""+m),c.key!==void 0&&(f=""+c.key),"key"in c){m={};for(var p in c)p!=="key"&&(m[p]=c[p])}else m=c;return c=m.ref,{$$typeof:a,type:r,key:f,ref:c!==void 0?c:null,props:m}}return ol.Fragment=s,ol.jsx=o,ol.jsxs=o,ol}var Vm;function gv(){return Vm||(Vm=1,Ac.exports=pv()),Ac.exports}var h=gv(),Mc={exports:{}},rl={},Ec={exports:{}},wc={};var _m;function yv(){return _m||(_m=1,(function(a){function s(N,nt){var et=N.length;N.push(nt);t:for(;0<et;){var pt=et-1>>>1,C=N[pt];if(0<c(C,nt))N[pt]=nt,N[et]=C,et=pt;else break t}}function o(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var nt=N[0],et=N.pop();if(et!==nt){N[0]=et;t:for(var pt=0,C=N.length,T=C>>>1;pt<T;){var L=2*(pt+1)-1,at=N[L],ot=L+1,Tt=N[ot];if(0>c(at,et))ot<C&&0>c(Tt,at)?(N[pt]=Tt,N[ot]=et,pt=ot):(N[pt]=at,N[L]=et,pt=L);else if(ot<C&&0>c(Tt,et))N[pt]=Tt,N[ot]=et,pt=ot;else break t}}return nt}function c(N,nt){var et=N.sortIndex-nt.sortIndex;return et!==0?et:N.id-nt.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;a.unstable_now=function(){return m.now()}}else{var f=Date,p=f.now();a.unstable_now=function(){return f.now()-p}}var v=[],g=[],b=1,x=null,A=3,E=!1,O=!1,_=!1,U=!1,Q=typeof setTimeout=="function"?setTimeout:null,B=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function X(N){for(var nt=o(g);nt!==null;){if(nt.callback===null)r(g);else if(nt.startTime<=N)r(g),nt.sortIndex=nt.expirationTime,s(v,nt);else break;nt=o(g)}}function st(N){if(_=!1,X(N),!O)if(o(v)!==null)O=!0,Y||(Y=!0,ft());else{var nt=o(g);nt!==null&&jt(st,nt.startTime-N)}}var Y=!1,F=-1,K=5,W=-1;function I(){return U?!0:!(a.unstable_now()-W<K)}function lt(){if(U=!1,Y){var N=a.unstable_now();W=N;var nt=!0;try{t:{O=!1,_&&(_=!1,B(F),F=-1),E=!0;var et=A;try{e:{for(X(N),x=o(v);x!==null&&!(x.expirationTime>N&&I());){var pt=x.callback;if(typeof pt=="function"){x.callback=null,A=x.priorityLevel;var C=pt(x.expirationTime<=N);if(N=a.unstable_now(),typeof C=="function"){x.callback=C,X(N),nt=!0;break e}x===o(v)&&r(v),X(N)}else r(v);x=o(v)}if(x!==null)nt=!0;else{var T=o(g);T!==null&&jt(st,T.startTime-N),nt=!1}}break t}finally{x=null,A=et,E=!1}nt=void 0}}finally{nt?ft():Y=!1}}}var ft;if(typeof z=="function")ft=function(){z(lt)};else if(typeof MessageChannel<"u"){var Ot=new MessageChannel,Et=Ot.port2;Ot.port1.onmessage=lt,ft=function(){Et.postMessage(null)}}else ft=function(){Q(lt,0)};function jt(N,nt){F=Q(function(){N(a.unstable_now())},nt)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(N){N.callback=null},a.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<N?Math.floor(1e3/N):5},a.unstable_getCurrentPriorityLevel=function(){return A},a.unstable_next=function(N){switch(A){case 1:case 2:case 3:var nt=3;break;default:nt=A}var et=A;A=nt;try{return N()}finally{A=et}},a.unstable_requestPaint=function(){U=!0},a.unstable_runWithPriority=function(N,nt){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var et=A;A=N;try{return nt()}finally{A=et}},a.unstable_scheduleCallback=function(N,nt,et){var pt=a.unstable_now();switch(typeof et=="object"&&et!==null?(et=et.delay,et=typeof et=="number"&&0<et?pt+et:pt):et=pt,N){case 1:var C=-1;break;case 2:C=250;break;case 5:C=1073741823;break;case 4:C=1e4;break;default:C=5e3}return C=et+C,N={id:b++,callback:nt,priorityLevel:N,startTime:et,expirationTime:C,sortIndex:-1},et>pt?(N.sortIndex=et,s(g,N),o(v)===null&&N===o(g)&&(_?(B(F),F=-1):_=!0,jt(st,et-pt))):(N.sortIndex=C,s(v,N),O||E||(O=!0,Y||(Y=!0,ft()))),N},a.unstable_shouldYield=I,a.unstable_wrapCallback=function(N){var nt=A;return function(){var et=A;A=nt;try{return N.apply(this,arguments)}finally{A=et}}}})(wc)),wc}var km;function xv(){return km||(km=1,Ec.exports=yv()),Ec.exports}var jc={exports:{}},Ct={};var Lm;function vv(){if(Lm)return Ct;Lm=1;var a=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),A=Symbol.iterator;function E(T){return T===null||typeof T!="object"?null:(T=A&&T[A]||T["@@iterator"],typeof T=="function"?T:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,U={};function Q(T,L,at){this.props=T,this.context=L,this.refs=U,this.updater=at||O}Q.prototype.isReactComponent={},Q.prototype.setState=function(T,L){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,L,"setState")},Q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function B(){}B.prototype=Q.prototype;function z(T,L,at){this.props=T,this.context=L,this.refs=U,this.updater=at||O}var X=z.prototype=new B;X.constructor=z,_(X,Q.prototype),X.isPureReactComponent=!0;var st=Array.isArray;function Y(){}var F={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function W(T,L,at){var ot=at.ref;return{$$typeof:a,type:T,key:L,ref:ot!==void 0?ot:null,props:at}}function I(T,L){return W(T.type,L,T.props)}function lt(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function ft(T){var L={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(at){return L[at]})}var Ot=/\/+/g;function Et(T,L){return typeof T=="object"&&T!==null&&T.key!=null?ft(""+T.key):L.toString(36)}function jt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(Y,Y):(T.status="pending",T.then(function(L){T.status==="pending"&&(T.status="fulfilled",T.value=L)},function(L){T.status==="pending"&&(T.status="rejected",T.reason=L)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function N(T,L,at,ot,Tt){var dt=typeof T;(dt==="undefined"||dt==="boolean")&&(T=null);var Bt=!1;if(T===null)Bt=!0;else switch(dt){case"bigint":case"string":case"number":Bt=!0;break;case"object":switch(T.$$typeof){case a:case s:Bt=!0;break;case b:return Bt=T._init,N(Bt(T._payload),L,at,ot,Tt)}}if(Bt)return Tt=Tt(T),Bt=ot===""?"."+Et(T,0):ot,st(Tt)?(at="",Bt!=null&&(at=Bt.replace(Ot,"$&/")+"/"),N(Tt,L,at,"",function(qe){return qe})):Tt!=null&&(lt(Tt)&&(Tt=I(Tt,at+(Tt.key==null||T&&T.key===Tt.key?"":(""+Tt.key).replace(Ot,"$&/")+"/")+Bt)),L.push(Tt)),1;Bt=0;var Kt=ot===""?".":ot+":";if(st(T))for(var At=0;At<T.length;At++)ot=T[At],dt=Kt+Et(ot,At),Bt+=N(ot,L,at,dt,Tt);else if(At=E(T),typeof At=="function")for(T=At.call(T),At=0;!(ot=T.next()).done;)ot=ot.value,dt=Kt+Et(ot,At++),Bt+=N(ot,L,at,dt,Tt);else if(dt==="object"){if(typeof T.then=="function")return N(jt(T),L,at,ot,Tt);throw L=String(T),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return Bt}function nt(T,L,at){if(T==null)return T;var ot=[],Tt=0;return N(T,ot,"","",function(dt){return L.call(at,dt,Tt++)}),ot}function et(T){if(T._status===-1){var L=T._result;L=L(),L.then(function(at){(T._status===0||T._status===-1)&&(T._status=1,T._result=at)},function(at){(T._status===0||T._status===-1)&&(T._status=2,T._result=at)}),T._status===-1&&(T._status=0,T._result=L)}if(T._status===1)return T._result.default;throw T._result}var pt=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=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(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},C={map:nt,forEach:function(T,L,at){nt(T,function(){L.apply(this,arguments)},at)},count:function(T){var L=0;return nt(T,function(){L++}),L},toArray:function(T){return nt(T,function(L){return L})||[]},only:function(T){if(!lt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Ct.Activity=x,Ct.Children=C,Ct.Component=Q,Ct.Fragment=o,Ct.Profiler=c,Ct.PureComponent=z,Ct.StrictMode=r,Ct.Suspense=v,Ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=F,Ct.__COMPILER_RUNTIME={__proto__:null,c:function(T){return F.H.useMemoCache(T)}},Ct.cache=function(T){return function(){return T.apply(null,arguments)}},Ct.cacheSignal=function(){return null},Ct.cloneElement=function(T,L,at){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ot=_({},T.props),Tt=T.key;if(L!=null)for(dt in L.key!==void 0&&(Tt=""+L.key),L)!K.call(L,dt)||dt==="key"||dt==="__self"||dt==="__source"||dt==="ref"&&L.ref===void 0||(ot[dt]=L[dt]);var dt=arguments.length-2;if(dt===1)ot.children=at;else if(1<dt){for(var Bt=Array(dt),Kt=0;Kt<dt;Kt++)Bt[Kt]=arguments[Kt+2];ot.children=Bt}return W(T.type,Tt,ot)},Ct.createContext=function(T){return T={$$typeof:f,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:m,_context:T},T},Ct.createElement=function(T,L,at){var ot,Tt={},dt=null;if(L!=null)for(ot in L.key!==void 0&&(dt=""+L.key),L)K.call(L,ot)&&ot!=="key"&&ot!=="__self"&&ot!=="__source"&&(Tt[ot]=L[ot]);var Bt=arguments.length-2;if(Bt===1)Tt.children=at;else if(1<Bt){for(var Kt=Array(Bt),At=0;At<Bt;At++)Kt[At]=arguments[At+2];Tt.children=Kt}if(T&&T.defaultProps)for(ot in Bt=T.defaultProps,Bt)Tt[ot]===void 0&&(Tt[ot]=Bt[ot]);return W(T,dt,Tt)},Ct.createRef=function(){return{current:null}},Ct.forwardRef=function(T){return{$$typeof:p,render:T}},Ct.isValidElement=lt,Ct.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:et}},Ct.memo=function(T,L){return{$$typeof:g,type:T,compare:L===void 0?null:L}},Ct.startTransition=function(T){var L=F.T,at={};F.T=at;try{var ot=T(),Tt=F.S;Tt!==null&&Tt(at,ot),typeof ot=="object"&&ot!==null&&typeof ot.then=="function"&&ot.then(Y,pt)}catch(dt){pt(dt)}finally{L!==null&&at.types!==null&&(L.types=at.types),F.T=L}},Ct.unstable_useCacheRefresh=function(){return F.H.useCacheRefresh()},Ct.use=function(T){return F.H.use(T)},Ct.useActionState=function(T,L,at){return F.H.useActionState(T,L,at)},Ct.useCallback=function(T,L){return F.H.useCallback(T,L)},Ct.useContext=function(T){return F.H.useContext(T)},Ct.useDebugValue=function(){},Ct.useDeferredValue=function(T,L){return F.H.useDeferredValue(T,L)},Ct.useEffect=function(T,L){return F.H.useEffect(T,L)},Ct.useEffectEvent=function(T){return F.H.useEffectEvent(T)},Ct.useId=function(){return F.H.useId()},Ct.useImperativeHandle=function(T,L,at){return F.H.useImperativeHandle(T,L,at)},Ct.useInsertionEffect=function(T,L){return F.H.useInsertionEffect(T,L)},Ct.useLayoutEffect=function(T,L){return F.H.useLayoutEffect(T,L)},Ct.useMemo=function(T,L){return F.H.useMemo(T,L)},Ct.useOptimistic=function(T,L){return F.H.useOptimistic(T,L)},Ct.useReducer=function(T,L,at){return F.H.useReducer(T,L,at)},Ct.useRef=function(T){return F.H.useRef(T)},Ct.useState=function(T){return F.H.useState(T)},Ct.useSyncExternalStore=function(T,L,at){return F.H.useSyncExternalStore(T,L,at)},Ct.useTransition=function(){return F.H.useTransition()},Ct.version="19.2.6",Ct}var Bm;function bf(){return Bm||(Bm=1,jc.exports=vv()),jc.exports}var Cc={exports:{}},Ye={};var Um;function bv(){if(Um)return Ye;Um=1;var a=bf();function s(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var r={d:{f:o,r:function(){throw Error(s(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function m(v,g,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:v,containerInfo:g,implementation:b}}var f=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Ye.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ye.createPortal=function(v,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return m(v,g,null,b)},Ye.flushSync=function(v){var g=f.T,b=r.p;try{if(f.T=null,r.p=2,v)return v()}finally{f.T=g,r.p=b,r.d.f()}},Ye.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(v,g))},Ye.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},Ye.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var b=g.as,x=p(b,g.crossOrigin),A=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:A,fetchPriority:E}):b==="script"&&r.d.X(v,{crossOrigin:x,integrity:A,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Ye.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=p(g.as,g.crossOrigin);r.d.M(v,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(v)},Ye.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,x=p(b,g.crossOrigin);r.d.L(v,b,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Ye.preloadModule=function(v,g){if(typeof v=="string")if(g){var b=p(g.as,g.crossOrigin);r.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(v)},Ye.requestFormReset=function(v){r.d.r(v)},Ye.unstable_batchedUpdates=function(v,g){return v(g)},Ye.useFormState=function(v,g,b){return f.H.useFormState(v,g,b)},Ye.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ye.version="19.2.6",Ye}var Hm;function Sv(){if(Hm)return Cc.exports;Hm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Cc.exports=bv(),Cc.exports}var qm;function Tv(){if(qm)return rl;qm=1;var a=xv(),s=bf(),o=Sv();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function m(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function f(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(m(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=m(t),e===null)throw Error(r(188));return e!==t?null:t}for(var n=t,i=e;;){var l=n.return;if(l===null)break;var u=l.alternate;if(u===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===u.child){for(u=l.child;u;){if(u===n)return v(l),t;if(u===i)return v(l),e;u=u.sibling}throw Error(r(188))}if(n.return!==i.return)n=l,i=u;else{for(var d=!1,y=l.child;y;){if(y===n){d=!0,n=l,i=u;break}if(y===i){d=!0,i=l,n=u;break}y=y.sibling}if(!d){for(y=u.child;y;){if(y===n){d=!0,n=u,i=l;break}if(y===i){d=!0,i=u,n=l;break}y=y.sibling}if(!d)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var x=Object.assign,A=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),z=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),st=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),I=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function ft(t){return t===null||typeof t!="object"?null:(t=lt&&t[lt]||t["@@iterator"],typeof t=="function"?t:null)}var Ot=Symbol.for("react.client.reference");function Et(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Ot?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case Q:return"Profiler";case U:return"StrictMode";case st:return"Suspense";case Y:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case O:return"Portal";case z:return t.displayName||"Context";case B:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return e=t.displayName||null,e!==null?e:Et(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return Et(t(e))}catch{}}return null}var jt=Array.isArray,N=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,et={pending:!1,data:null,method:null,action:null},pt=[],C=-1;function T(t){return{current:t}}function L(t){0>C||(t.current=pt[C],pt[C]=null,C--)}function at(t,e){C++,pt[C]=t.current,t.current=e}var ot=T(null),Tt=T(null),dt=T(null),Bt=T(null);function Kt(t,e){switch(at(dt,e),at(Tt,t),at(ot,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?nm(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=nm(e),t=am(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}L(ot),at(ot,t)}function At(){L(ot),L(Tt),L(dt)}function qe(t){t.memoizedState!==null&&at(Bt,t);var e=ot.current,n=am(e,t.type);e!==n&&(at(Tt,t),at(ot,n))}function Ln(t){Tt.current===t&&(L(ot),L(Tt)),Bt.current===t&&(L(Bt),al._currentValue=et)}var Bn,je;function Nn(t){if(Bn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Bn=e&&e[1]||"",je=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Bn+t+je}var Ka=!1;function Za(t,e){if(!t||Ka)return"";Ka=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(e){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(k){var V=k}Reflect.construct(t,[],P)}else{try{P.call()}catch(k){V=k}t.call(P.prototype)}}else{try{throw Error()}catch(k){V=k}(P=t())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(k){if(k&&V&&typeof k.stack=="string")return[k.stack,V.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=i.DetermineComponentFrameRoot(),d=u[0],y=u[1];if(d&&y){var M=d.split(`
4
+ `),R=y.split(`
5
+ `);for(l=i=0;i<M.length&&!M[i].includes("DetermineComponentFrameRoot");)i++;for(;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;if(i===M.length||l===R.length)for(i=M.length-1,l=R.length-1;1<=i&&0<=l&&M[i]!==R[l];)l--;for(;1<=i&&0<=l;i--,l--)if(M[i]!==R[l]){if(i!==1||l!==1)do if(i--,l--,0>l||M[i]!==R[l]){var G=`
6
+ `+M[i].replace(" at new "," at ");return t.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",t.displayName)),G}while(1<=i&&0<=l);break}}}finally{Ka=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Nn(n):""}function hs(t,e){switch(t.tag){case 26:case 27:case 5:return Nn(t.type);case 16:return Nn("Lazy");case 13:return t.child!==e&&e!==null?Nn("Suspense Fallback"):Nn("Suspense");case 19:return Nn("SuspenseList");case 0:case 15:return Za(t.type,!1);case 11:return Za(t.type.render,!1);case 1:return Za(t.type,!0);case 31:return Nn("Activity");default:return""}}function Un(t){try{var e="",n=null;do e+=hs(t,n),n=t,t=t.return;while(t);return e}catch(i){return`
7
+ Error generating stack: `+i.message+`
8
+ `+i.stack}}var pn=Object.prototype.hasOwnProperty,Qa=a.unstable_scheduleCallback,gn=a.unstable_cancelCallback,Dn=a.unstable_shouldYield,Hn=a.unstable_requestPaint,Ce=a.unstable_now,ms=a.unstable_getCurrentPriorityLevel,$a=a.unstable_ImmediatePriority,Oe=a.unstable_UserBlockingPriority,yn=a.unstable_NormalPriority,tt=a.unstable_LowPriority,Mt=a.unstable_IdlePriority,yt=a.log,Zt=a.unstable_setDisableYieldValue,re=null,ae=null;function Ne(t){if(typeof yt=="function"&&Zt(t),ae&&typeof ae.setStrictMode=="function")try{ae.setStrictMode(re,t)}catch{}}var Qt=Math.clz32?Math.clz32:Fn,oe=Math.log,qn=Math.LN2;function Fn(t){return t>>>=0,t===0?32:31-(oe(t)/qn|0)|0}var en=256,nn=262144,an=4194304;function me(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Si(t,e,n){var i=t.pendingLanes;if(i===0)return 0;var l=0,u=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var y=i&134217727;return y!==0?(i=y&~u,i!==0?l=me(i):(d&=y,d!==0?l=me(d):n||(n=y&~t,n!==0&&(l=me(n))))):(y=i&~u,y!==0?l=me(y):d!==0?l=me(d):n||(n=i&~t,n!==0&&(l=me(n)))),l===0?0:e!==0&&e!==l&&(e&u)===0&&(u=l&-l,n=e&-e,u>=n||u===32&&(n&4194048)!==0)?e:l}function Pa(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function gr(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Fa(){var t=an;return an<<=1,(an&62914560)===0&&(an=4194304),t}function Ti(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function ga(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Al(t,e,n,i,l,u){var d=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var y=t.entanglements,M=t.expirationTimes,R=t.hiddenUpdates;for(n=d&~n;0<n;){var G=31-Qt(n),P=1<<G;y[G]=0,M[G]=-1;var V=R[G];if(V!==null)for(R[G]=null,G=0;G<V.length;G++){var k=V[G];k!==null&&(k.lane&=-536870913)}n&=~P}i!==0&&Ml(t,i,0),u!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=u&~(d&~e))}function Ml(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var i=31-Qt(e);t.entangledLanes|=e,t.entanglements[i]=t.entanglements[i]|1073741824|n&261930}function El(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var i=31-Qt(n),l=1<<i;l&e|t[i]&e&&(t[i]|=e),n&=~l}}function ps(t,e){var n=e&-e;return n=(n&42)!==0?1:gs(n),(n&(t.suspendedLanes|e))!==0?0:n}function gs(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ys(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function wl(){var t=nt.p;return t!==0?t:(t=window.event,t===void 0?32:wm(t.type))}function jl(t,e){var n=nt.p;try{return nt.p=t,e()}finally{nt.p=n}}var S=Math.random().toString(36).slice(2),q="__reactFiber$"+S,$="__reactProps$"+S,J="__reactContainer$"+S,it="__reactEvents$"+S,vt="__reactListeners$"+S,St="__reactHandles$"+S,zt="__reactResources$"+S,wt="__reactMarker$"+S;function Xt(t){delete t[q],delete t[$],delete t[it],delete t[vt],delete t[St]}function Ht(t){var e=t[q];if(e)return e;for(var n=t.parentNode;n;){if(e=n[J]||n[q]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=cm(t);t!==null;){if(n=t[q])return n;t=cm(t)}return e}t=n,n=t.parentNode}return null}function $t(t){if(t=t[q]||t[J]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function It(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function mt(t){var e=t[zt];return e||(e=t[zt]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function gt(t){t[wt]=!0}var Pt=new Set,Ft={};function ct(t,e){fe(t,e),fe(t+"Capture",e)}function fe(t,e){for(Ft[t]=e,t=0;t<e.length;t++)Pt.add(e[t])}var De=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]*$"),Ve={},Ge={};function $e(t){return pn.call(Ge,t)?!0:pn.call(Ve,t)?!1:De.test(t)?Ge[t]=!0:(Ve[t]=!0,!1)}function he(t,e,n){if($e(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var i=e.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function ya(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function sn(t,e,n,i){if(i===null)t.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+i)}}function Xe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function xs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Cl(t,e,n){var i=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,u=i.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(d){n=""+d,u.call(this,d)}}),Object.defineProperty(t,e,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ai(t){if(!t._valueTracker){var e=xs(t)?"checked":"value";t._valueTracker=Cl(t,e,""+t[e])}}function vs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=xs(t)?t.checked?"true":"false":t.value),t=i,t!==n?(e.setValue(t),!0):!1}function Ja(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ln=/[\n"\\]/g;function xn(t){return t.replace(ln,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yr(t,e,n,i,l,u,d,y){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Xe(e)):t.value!==""+Xe(e)&&(t.value=""+Xe(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?xr(t,d,Xe(e)):n!=null?xr(t,d,Xe(n)):i!=null&&t.removeAttribute("value"),l==null&&u!=null&&(t.defaultChecked=!!u),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.name=""+Xe(y):t.removeAttribute("name")}function Ff(t,e,n,i,l,u,d,y){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(t.type=u),e!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||e!=null)){Ai(t);return}n=n!=null?""+Xe(n):"",e=e!=null?""+Xe(e):n,y||e===t.value||(t.value=e),t.defaultValue=e}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,t.checked=y?t.checked:!!i,t.defaultChecked=!!i,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),Ai(t)}function xr(t,e,n){e==="number"&&Ja(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Mi(t,e,n,i){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&i&&(t[n].defaultSelected=!0)}else{for(n=""+Xe(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,i&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function Jf(t,e,n){if(e!=null&&(e=""+Xe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Xe(n):""}function Wf(t,e,n,i){if(e==null){if(i!=null){if(n!=null)throw Error(r(92));if(jt(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),e=n}n=Xe(e),t.defaultValue=n,i=t.textContent,i===n&&i!==""&&i!==null&&(t.value=i),Ai(t)}function Ei(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var u1=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 If(t,e,n){var i=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":i?t.setProperty(e,n):typeof n!="number"||n===0||u1.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function td(t,e,n){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||e!=null&&e.hasOwnProperty(i)||(i.indexOf("--")===0?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="");for(var l in e)i=e[l],e.hasOwnProperty(l)&&n[l]!==i&&If(t,l,i)}else for(var u in e)e.hasOwnProperty(u)&&If(t,u,e[u])}function vr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var c1=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"]]),f1=/^[\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 Nl(t){return f1.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Jn(){}var br=null;function Sr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var wi=null,ji=null;function ed(t){var e=$t(t);if(e&&(t=e.stateNode)){var n=t[$]||null;t:switch(t=e.stateNode,e.type){case"input":if(yr(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+xn(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var l=i[$]||null;if(!l)throw Error(r(90));yr(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)i=n[e],i.form===t.form&&vs(i)}break t;case"textarea":Jf(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Mi(t,!!n.multiple,e,!1)}}}var Tr=!1;function nd(t,e,n){if(Tr)return t(e,n);Tr=!0;try{var i=t(e);return i}finally{if(Tr=!1,(wi!==null||ji!==null)&&(yo(),wi&&(e=wi,t=ji,ji=wi=null,ed(e),t)))for(e=0;e<t.length;e++)ed(t[e])}}function bs(t,e){var n=t.stateNode;if(n===null)return null;var i=n[$]||null;if(i===null)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(t=t.type,i=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!i;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(r(231,e,typeof n));return n}var Wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ar=!1;if(Wn)try{var Ss={};Object.defineProperty(Ss,"passive",{get:function(){Ar=!0}}),window.addEventListener("test",Ss,Ss),window.removeEventListener("test",Ss,Ss)}catch{Ar=!1}var xa=null,Mr=null,Dl=null;function ad(){if(Dl)return Dl;var t,e=Mr,n=e.length,i,l="value"in xa?xa.value:xa.textContent,u=l.length;for(t=0;t<n&&e[t]===l[t];t++);var d=n-t;for(i=1;i<=d&&e[n-i]===l[u-i];i++);return Dl=l.slice(t,1<i?1-i:void 0)}function zl(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Rl(){return!0}function id(){return!1}function Pe(t){function e(n,i,l,u,d){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var y in t)t.hasOwnProperty(y)&&(n=t[y],this[y]=n?n(u):u[y]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Rl:id,this.isPropagationStopped=id,this}return x(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rl)},persist:function(){},isPersistent:Rl}),e}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ol=Pe(Wa),Ts=x({},Wa,{view:0,detail:0}),d1=Pe(Ts),Er,wr,As,Vl=x({},Ts,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==As&&(As&&t.type==="mousemove"?(Er=t.screenX-As.screenX,wr=t.screenY-As.screenY):wr=Er=0,As=t),Er)},movementY:function(t){return"movementY"in t?t.movementY:wr}}),sd=Pe(Vl),h1=x({},Vl,{dataTransfer:0}),m1=Pe(h1),p1=x({},Ts,{relatedTarget:0}),jr=Pe(p1),g1=x({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),y1=Pe(g1),x1=x({},Wa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),v1=Pe(x1),b1=x({},Wa,{data:0}),ld=Pe(b1),S1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},T1={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"},A1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=A1[t])?!!e[t]:!1}function Cr(){return M1}var E1=x({},Ts,{key:function(t){if(t.key){var e=S1[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=zl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?T1[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cr,charCode:function(t){return t.type==="keypress"?zl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?zl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),w1=Pe(E1),j1=x({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),od=Pe(j1),C1=x({},Ts,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cr}),N1=Pe(C1),D1=x({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),z1=Pe(D1),R1=x({},Vl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),O1=Pe(R1),V1=x({},Wa,{newState:0,oldState:0}),_1=Pe(V1),k1=[9,13,27,32],Nr=Wn&&"CompositionEvent"in window,Ms=null;Wn&&"documentMode"in document&&(Ms=document.documentMode);var L1=Wn&&"TextEvent"in window&&!Ms,rd=Wn&&(!Nr||Ms&&8<Ms&&11>=Ms),ud=" ",cd=!1;function fd(t,e){switch(t){case"keyup":return k1.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ci=!1;function B1(t,e){switch(t){case"compositionend":return dd(e);case"keypress":return e.which!==32?null:(cd=!0,ud);case"textInput":return t=e.data,t===ud&&cd?null:t;default:return null}}function U1(t,e){if(Ci)return t==="compositionend"||!Nr&&fd(t,e)?(t=ad(),Dl=Mr=xa=null,Ci=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return rd&&e.locale!=="ko"?null:e.data;default:return null}}var H1={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 hd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!H1[t.type]:e==="textarea"}function md(t,e,n,i){wi?ji?ji.push(i):ji=[i]:wi=i,e=Mo(e,"onChange"),0<e.length&&(n=new Ol("onChange","change",null,n,i),t.push({event:n,listeners:e}))}var Es=null,ws=null;function q1(t){F0(t,0)}function _l(t){var e=It(t);if(vs(e))return t}function pd(t,e){if(t==="change")return e}var gd=!1;if(Wn){var Dr;if(Wn){var zr="oninput"in document;if(!zr){var yd=document.createElement("div");yd.setAttribute("oninput","return;"),zr=typeof yd.oninput=="function"}Dr=zr}else Dr=!1;gd=Dr&&(!document.documentMode||9<document.documentMode)}function xd(){Es&&(Es.detachEvent("onpropertychange",vd),ws=Es=null)}function vd(t){if(t.propertyName==="value"&&_l(ws)){var e=[];md(e,ws,t,Sr(t)),nd(q1,e)}}function Y1(t,e,n){t==="focusin"?(xd(),Es=e,ws=n,Es.attachEvent("onpropertychange",vd)):t==="focusout"&&xd()}function G1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return _l(ws)}function X1(t,e){if(t==="click")return _l(e)}function K1(t,e){if(t==="input"||t==="change")return _l(e)}function Z1(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var on=typeof Object.is=="function"?Object.is:Z1;function js(t,e){if(on(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!pn.call(e,l)||!on(t[l],e[l]))return!1}return!0}function bd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Sd(t,e){var n=bd(t);t=0;for(var i;n;){if(n.nodeType===3){if(i=t+n.textContent.length,t<=e&&i>=e)return{node:n,offset:e-t};t=i}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=bd(n)}}function Td(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Td(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Ad(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ja(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ja(t.document)}return e}function Rr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Q1=Wn&&"documentMode"in document&&11>=document.documentMode,Ni=null,Or=null,Cs=null,Vr=!1;function Md(t,e,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vr||Ni==null||Ni!==Ja(i)||(i=Ni,"selectionStart"in i&&Rr(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Cs&&js(Cs,i)||(Cs=i,i=Mo(Or,"onSelect"),0<i.length&&(e=new Ol("onSelect","select",null,e,n),t.push({event:e,listeners:i}),e.target=Ni)))}function Ia(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Di={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},_r={},Ed={};Wn&&(Ed=document.createElement("div").style,"AnimationEvent"in window||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),"TransitionEvent"in window||delete Di.transitionend.transition);function ti(t){if(_r[t])return _r[t];if(!Di[t])return t;var e=Di[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Ed)return _r[t]=e[n];return t}var wd=ti("animationend"),jd=ti("animationiteration"),Cd=ti("animationstart"),$1=ti("transitionrun"),P1=ti("transitionstart"),F1=ti("transitioncancel"),Nd=ti("transitionend"),Dd=new Map,kr="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(" ");kr.push("scrollEnd");function zn(t,e){Dd.set(t,e),ct(e,[t])}var kl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=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(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},vn=[],zi=0,Lr=0;function Ll(){for(var t=zi,e=Lr=zi=0;e<t;){var n=vn[e];vn[e++]=null;var i=vn[e];vn[e++]=null;var l=vn[e];vn[e++]=null;var u=vn[e];if(vn[e++]=null,i!==null&&l!==null){var d=i.pending;d===null?l.next=l:(l.next=d.next,d.next=l),i.pending=l}u!==0&&zd(n,l,u)}}function Bl(t,e,n,i){vn[zi++]=t,vn[zi++]=e,vn[zi++]=n,vn[zi++]=i,Lr|=i,t.lanes|=i,t=t.alternate,t!==null&&(t.lanes|=i)}function Br(t,e,n,i){return Bl(t,e,n,i),Ul(t)}function ei(t,e){return Bl(t,null,null,e),Ul(t)}function zd(t,e,n){t.lanes|=n;var i=t.alternate;i!==null&&(i.lanes|=n);for(var l=!1,u=t.return;u!==null;)u.childLanes|=n,i=u.alternate,i!==null&&(i.childLanes|=n),u.tag===22&&(t=u.stateNode,t===null||t._visibility&1||(l=!0)),t=u,u=u.return;return t.tag===3?(u=t.stateNode,l&&e!==null&&(l=31-Qt(n),t=u.hiddenUpdates,i=t[l],i===null?t[l]=[e]:i.push(e),e.lane=n|536870912),u):null}function Ul(t){if(50<Fs)throw Fs=0,Qu=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ri={};function J1(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(t,e,n,i){return new J1(t,e,n,i)}function Ur(t){return t=t.prototype,!(!t||!t.isReactComponent)}function In(t,e){var n=t.alternate;return n===null?(n=rn(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Rd(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Hl(t,e,n,i,l,u){var d=0;if(i=t,typeof t=="function")Ur(t)&&(d=1);else if(typeof t=="string")d=nv(t,n,ot.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=rn(31,n,e,l),t.elementType=W,t.lanes=u,t;case _:return ni(n.children,l,u,e);case U:d=8,l|=24;break;case Q:return t=rn(12,n,e,l|2),t.elementType=Q,t.lanes=u,t;case st:return t=rn(13,n,e,l),t.elementType=st,t.lanes=u,t;case Y:return t=rn(19,n,e,l),t.elementType=Y,t.lanes=u,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case z:d=10;break t;case B:d=9;break t;case X:d=11;break t;case F:d=14;break t;case K:d=16,i=null;break t}d=29,n=Error(r(130,t===null?"null":typeof t,"")),i=null}return e=rn(d,n,e,l),e.elementType=t,e.type=i,e.lanes=u,e}function ni(t,e,n,i){return t=rn(7,t,i,e),t.lanes=n,t}function Hr(t,e,n){return t=rn(6,t,null,e),t.lanes=n,t}function Od(t){var e=rn(18,null,null,0);return e.stateNode=t,e}function qr(t,e,n){return e=rn(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Vd=new WeakMap;function bn(t,e){if(typeof t=="object"&&t!==null){var n=Vd.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Un(e)},Vd.set(t,e),e)}return{value:t,source:e,stack:Un(e)}}var Oi=[],Vi=0,ql=null,Ns=0,Sn=[],Tn=0,va=null,Yn=1,Gn="";function ta(t,e){Oi[Vi++]=Ns,Oi[Vi++]=ql,ql=t,Ns=e}function _d(t,e,n){Sn[Tn++]=Yn,Sn[Tn++]=Gn,Sn[Tn++]=va,va=t;var i=Yn;t=Gn;var l=32-Qt(i)-1;i&=~(1<<l),n+=1;var u=32-Qt(e)+l;if(30<u){var d=l-l%5;u=(i&(1<<d)-1).toString(32),i>>=d,l-=d,Yn=1<<32-Qt(e)+l|n<<l|i,Gn=u+t}else Yn=1<<u|n<<l|i,Gn=t}function Yr(t){t.return!==null&&(ta(t,1),_d(t,1,0))}function Gr(t){for(;t===ql;)ql=Oi[--Vi],Oi[Vi]=null,Ns=Oi[--Vi],Oi[Vi]=null;for(;t===va;)va=Sn[--Tn],Sn[Tn]=null,Gn=Sn[--Tn],Sn[Tn]=null,Yn=Sn[--Tn],Sn[Tn]=null}function kd(t,e){Sn[Tn++]=Yn,Sn[Tn++]=Gn,Sn[Tn++]=va,Yn=e.id,Gn=e.overflow,va=t}var _e=null,ue=null,Ut=!1,ba=null,An=!1,Xr=Error(r(519));function Sa(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ds(bn(e,t)),Xr}function Ld(t){var e=t.stateNode,n=t.type,i=t.memoizedProps;switch(e[q]=t,e[$]=i,n){case"dialog":_t("cancel",e),_t("close",e);break;case"iframe":case"object":case"embed":_t("load",e);break;case"video":case"audio":for(n=0;n<Ws.length;n++)_t(Ws[n],e);break;case"source":_t("error",e);break;case"img":case"image":case"link":_t("error",e),_t("load",e);break;case"details":_t("toggle",e);break;case"input":_t("invalid",e),Ff(e,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":_t("invalid",e);break;case"textarea":_t("invalid",e),Wf(e,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||i.suppressHydrationWarning===!0||tm(e.textContent,n)?(i.popover!=null&&(_t("beforetoggle",e),_t("toggle",e)),i.onScroll!=null&&_t("scroll",e),i.onScrollEnd!=null&&_t("scrollend",e),i.onClick!=null&&(e.onclick=Jn),e=!0):e=!1,e||Sa(t,!0)}function Bd(t){for(_e=t.return;_e;)switch(_e.tag){case 5:case 31:case 13:An=!1;return;case 27:case 3:An=!0;return;default:_e=_e.return}}function _i(t){if(t!==_e)return!1;if(!Ut)return Bd(t),Ut=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||rc(t.type,t.memoizedProps)),n=!n),n&&ue&&Sa(t),Bd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));ue=um(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));ue=um(t)}else e===27?(e=ue,_a(t.type)?(t=hc,hc=null,ue=t):ue=e):ue=_e?En(t.stateNode.nextSibling):null;return!0}function ai(){ue=_e=null,Ut=!1}function Kr(){var t=ba;return t!==null&&(Ie===null?Ie=t:Ie.push.apply(Ie,t),ba=null),t}function Ds(t){ba===null?ba=[t]:ba.push(t)}var Zr=T(null),ii=null,ea=null;function Ta(t,e,n){at(Zr,e._currentValue),e._currentValue=n}function na(t){t._currentValue=Zr.current,L(Zr)}function Qr(t,e,n){for(;t!==null;){var i=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),t===n)break;t=t.return}}function $r(t,e,n,i){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){var d=l.child;u=u.firstContext;t:for(;u!==null;){var y=u;u=l;for(var M=0;M<e.length;M++)if(y.context===e[M]){u.lanes|=n,y=u.alternate,y!==null&&(y.lanes|=n),Qr(u.return,n,t),i||(d=null);break t}u=y.next}}else if(l.tag===18){if(d=l.return,d===null)throw Error(r(341));d.lanes|=n,u=d.alternate,u!==null&&(u.lanes|=n),Qr(d,n,t),d=null}else d=l.child;if(d!==null)d.return=l;else for(d=l;d!==null;){if(d===t){d=null;break}if(l=d.sibling,l!==null){l.return=d.return,d=l;break}d=d.return}l=d}}function ki(t,e,n,i){t=null;for(var l=e,u=!1;l!==null;){if(!u){if((l.flags&524288)!==0)u=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var d=l.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var y=l.type;on(l.pendingProps.value,d.value)||(t!==null?t.push(y):t=[y])}}else if(l===Bt.current){if(d=l.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(al):t=[al])}l=l.return}t!==null&&$r(e,t,n,i),e.flags|=262144}function Yl(t){for(t=t.firstContext;t!==null;){if(!on(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function si(t){ii=t,ea=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ke(t){return Ud(ii,t)}function Gl(t,e){return ii===null&&si(t),Ud(t,e)}function Ud(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},ea===null){if(t===null)throw Error(r(308));ea=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ea=ea.next=e;return n}var W1=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,i){t.push(i)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},I1=a.unstable_scheduleCallback,tx=a.unstable_NormalPriority,be={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pr(){return{controller:new W1,data:new Map,refCount:0}}function zs(t){t.refCount--,t.refCount===0&&I1(tx,function(){t.controller.abort()})}var Rs=null,Fr=0,Li=0,Bi=null;function ex(t,e){if(Rs===null){var n=Rs=[];Fr=0,Li=Iu(),Bi={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Fr++,e.then(Hd,Hd),e}function Hd(){if(--Fr===0&&Rs!==null){Bi!==null&&(Bi.status="fulfilled");var t=Rs;Rs=null,Li=0,Bi=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function nx(t,e){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){i.status="fulfilled",i.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}var qd=N.S;N.S=function(t,e){M0=Ce(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&ex(t,e),qd!==null&&qd(t,e)};var li=T(null);function Jr(){var t=li.current;return t!==null?t:ie.pooledCache}function Xl(t,e){e===null?at(li,li.current):at(li,e.pool)}function Yd(){var t=Jr();return t===null?null:{parent:be._currentValue,pool:t}}var Ui=Error(r(460)),Wr=Error(r(474)),Kl=Error(r(542)),Zl={then:function(){}};function Gd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Xd(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Jn,Jn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Zd(t),t;default:if(typeof e.status=="string")e.then(Jn,Jn);else{if(t=ie,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(i){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=i}},function(i){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=i}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Zd(t),t}throw ri=e,Ui}}function oi(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ri=n,Ui):n}}var ri=null;function Kd(){if(ri===null)throw Error(r(459));var t=ri;return ri=null,t}function Zd(t){if(t===Ui||t===Kl)throw Error(r(483))}var Hi=null,Os=0;function Ql(t){var e=Os;return Os+=1,Hi===null&&(Hi=[]),Xd(Hi,t,e)}function Vs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function $l(t,e){throw e.$$typeof===A?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Qd(t){function e(j,w){if(t){var D=j.deletions;D===null?(j.deletions=[w],j.flags|=16):D.push(w)}}function n(j,w){if(!t)return null;for(;w!==null;)e(j,w),w=w.sibling;return null}function i(j){for(var w=new Map;j!==null;)j.key!==null?w.set(j.key,j):w.set(j.index,j),j=j.sibling;return w}function l(j,w){return j=In(j,w),j.index=0,j.sibling=null,j}function u(j,w,D){return j.index=D,t?(D=j.alternate,D!==null?(D=D.index,D<w?(j.flags|=67108866,w):D):(j.flags|=67108866,w)):(j.flags|=1048576,w)}function d(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function y(j,w,D,Z){return w===null||w.tag!==6?(w=Hr(D,j.mode,Z),w.return=j,w):(w=l(w,D),w.return=j,w)}function M(j,w,D,Z){var xt=D.type;return xt===_?G(j,w,D.props.children,Z,D.key):w!==null&&(w.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===K&&oi(xt)===w.type)?(w=l(w,D.props),Vs(w,D),w.return=j,w):(w=Hl(D.type,D.key,D.props,null,j.mode,Z),Vs(w,D),w.return=j,w)}function R(j,w,D,Z){return w===null||w.tag!==4||w.stateNode.containerInfo!==D.containerInfo||w.stateNode.implementation!==D.implementation?(w=qr(D,j.mode,Z),w.return=j,w):(w=l(w,D.children||[]),w.return=j,w)}function G(j,w,D,Z,xt){return w===null||w.tag!==7?(w=ni(D,j.mode,Z,xt),w.return=j,w):(w=l(w,D),w.return=j,w)}function P(j,w,D){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=Hr(""+w,j.mode,D),w.return=j,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case E:return D=Hl(w.type,w.key,w.props,null,j.mode,D),Vs(D,w),D.return=j,D;case O:return w=qr(w,j.mode,D),w.return=j,w;case K:return w=oi(w),P(j,w,D)}if(jt(w)||ft(w))return w=ni(w,j.mode,D,null),w.return=j,w;if(typeof w.then=="function")return P(j,Ql(w),D);if(w.$$typeof===z)return P(j,Gl(j,w),D);$l(j,w)}return null}function V(j,w,D,Z){var xt=w!==null?w.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return xt!==null?null:y(j,w,""+D,Z);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case E:return D.key===xt?M(j,w,D,Z):null;case O:return D.key===xt?R(j,w,D,Z):null;case K:return D=oi(D),V(j,w,D,Z)}if(jt(D)||ft(D))return xt!==null?null:G(j,w,D,Z,null);if(typeof D.then=="function")return V(j,w,Ql(D),Z);if(D.$$typeof===z)return V(j,w,Gl(j,D),Z);$l(j,D)}return null}function k(j,w,D,Z,xt){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return j=j.get(D)||null,y(w,j,""+Z,xt);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case E:return j=j.get(Z.key===null?D:Z.key)||null,M(w,j,Z,xt);case O:return j=j.get(Z.key===null?D:Z.key)||null,R(w,j,Z,xt);case K:return Z=oi(Z),k(j,w,D,Z,xt)}if(jt(Z)||ft(Z))return j=j.get(D)||null,G(w,j,Z,xt,null);if(typeof Z.then=="function")return k(j,w,D,Ql(Z),xt);if(Z.$$typeof===z)return k(j,w,D,Gl(w,Z),xt);$l(w,Z)}return null}function rt(j,w,D,Z){for(var xt=null,qt=null,ht=w,Dt=w=0,Lt=null;ht!==null&&Dt<D.length;Dt++){ht.index>Dt?(Lt=ht,ht=null):Lt=ht.sibling;var Yt=V(j,ht,D[Dt],Z);if(Yt===null){ht===null&&(ht=Lt);break}t&&ht&&Yt.alternate===null&&e(j,ht),w=u(Yt,w,Dt),qt===null?xt=Yt:qt.sibling=Yt,qt=Yt,ht=Lt}if(Dt===D.length)return n(j,ht),Ut&&ta(j,Dt),xt;if(ht===null){for(;Dt<D.length;Dt++)ht=P(j,D[Dt],Z),ht!==null&&(w=u(ht,w,Dt),qt===null?xt=ht:qt.sibling=ht,qt=ht);return Ut&&ta(j,Dt),xt}for(ht=i(ht);Dt<D.length;Dt++)Lt=k(ht,j,Dt,D[Dt],Z),Lt!==null&&(t&&Lt.alternate!==null&&ht.delete(Lt.key===null?Dt:Lt.key),w=u(Lt,w,Dt),qt===null?xt=Lt:qt.sibling=Lt,qt=Lt);return t&&ht.forEach(function(Ha){return e(j,Ha)}),Ut&&ta(j,Dt),xt}function bt(j,w,D,Z){if(D==null)throw Error(r(151));for(var xt=null,qt=null,ht=w,Dt=w=0,Lt=null,Yt=D.next();ht!==null&&!Yt.done;Dt++,Yt=D.next()){ht.index>Dt?(Lt=ht,ht=null):Lt=ht.sibling;var Ha=V(j,ht,Yt.value,Z);if(Ha===null){ht===null&&(ht=Lt);break}t&&ht&&Ha.alternate===null&&e(j,ht),w=u(Ha,w,Dt),qt===null?xt=Ha:qt.sibling=Ha,qt=Ha,ht=Lt}if(Yt.done)return n(j,ht),Ut&&ta(j,Dt),xt;if(ht===null){for(;!Yt.done;Dt++,Yt=D.next())Yt=P(j,Yt.value,Z),Yt!==null&&(w=u(Yt,w,Dt),qt===null?xt=Yt:qt.sibling=Yt,qt=Yt);return Ut&&ta(j,Dt),xt}for(ht=i(ht);!Yt.done;Dt++,Yt=D.next())Yt=k(ht,j,Dt,Yt.value,Z),Yt!==null&&(t&&Yt.alternate!==null&&ht.delete(Yt.key===null?Dt:Yt.key),w=u(Yt,w,Dt),qt===null?xt=Yt:qt.sibling=Yt,qt=Yt);return t&&ht.forEach(function(hv){return e(j,hv)}),Ut&&ta(j,Dt),xt}function ne(j,w,D,Z){if(typeof D=="object"&&D!==null&&D.type===_&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case E:t:{for(var xt=D.key;w!==null;){if(w.key===xt){if(xt=D.type,xt===_){if(w.tag===7){n(j,w.sibling),Z=l(w,D.props.children),Z.return=j,j=Z;break t}}else if(w.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===K&&oi(xt)===w.type){n(j,w.sibling),Z=l(w,D.props),Vs(Z,D),Z.return=j,j=Z;break t}n(j,w);break}else e(j,w);w=w.sibling}D.type===_?(Z=ni(D.props.children,j.mode,Z,D.key),Z.return=j,j=Z):(Z=Hl(D.type,D.key,D.props,null,j.mode,Z),Vs(Z,D),Z.return=j,j=Z)}return d(j);case O:t:{for(xt=D.key;w!==null;){if(w.key===xt)if(w.tag===4&&w.stateNode.containerInfo===D.containerInfo&&w.stateNode.implementation===D.implementation){n(j,w.sibling),Z=l(w,D.children||[]),Z.return=j,j=Z;break t}else{n(j,w);break}else e(j,w);w=w.sibling}Z=qr(D,j.mode,Z),Z.return=j,j=Z}return d(j);case K:return D=oi(D),ne(j,w,D,Z)}if(jt(D))return rt(j,w,D,Z);if(ft(D)){if(xt=ft(D),typeof xt!="function")throw Error(r(150));return D=xt.call(D),bt(j,w,D,Z)}if(typeof D.then=="function")return ne(j,w,Ql(D),Z);if(D.$$typeof===z)return ne(j,w,Gl(j,D),Z);$l(j,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,w!==null&&w.tag===6?(n(j,w.sibling),Z=l(w,D),Z.return=j,j=Z):(n(j,w),Z=Hr(D,j.mode,Z),Z.return=j,j=Z),d(j)):n(j,w)}return function(j,w,D,Z){try{Os=0;var xt=ne(j,w,D,Z);return Hi=null,xt}catch(ht){if(ht===Ui||ht===Kl)throw ht;var qt=rn(29,ht,null,j.mode);return qt.lanes=Z,qt.return=j,qt}}}var ui=Qd(!0),$d=Qd(!1),Aa=!1;function Ir(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tu(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ma(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ea(t,e,n){var i=t.updateQueue;if(i===null)return null;if(i=i.shared,(Gt&2)!==0){var l=i.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),i.pending=e,e=Ul(t),zd(t,null,n),e}return Bl(t,i,e,n),Ul(t)}function _s(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,El(t,n)}}function eu(t,e){var n=t.updateQueue,i=t.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?l=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?l=u=e:u=u.next=e}else l=u=e;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:i.shared,callbacks:i.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var nu=!1;function ks(){if(nu){var t=Bi;if(t!==null)throw t}}function Ls(t,e,n,i){nu=!1;var l=t.updateQueue;Aa=!1;var u=l.firstBaseUpdate,d=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var M=y,R=M.next;M.next=null,d===null?u=R:d.next=R,d=M;var G=t.alternate;G!==null&&(G=G.updateQueue,y=G.lastBaseUpdate,y!==d&&(y===null?G.firstBaseUpdate=R:y.next=R,G.lastBaseUpdate=M))}if(u!==null){var P=l.baseState;d=0,G=R=M=null,y=u;do{var V=y.lane&-536870913,k=V!==y.lane;if(k?(kt&V)===V:(i&V)===V){V!==0&&V===Li&&(nu=!0),G!==null&&(G=G.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});t:{var rt=t,bt=y;V=e;var ne=n;switch(bt.tag){case 1:if(rt=bt.payload,typeof rt=="function"){P=rt.call(ne,P,V);break t}P=rt;break t;case 3:rt.flags=rt.flags&-65537|128;case 0:if(rt=bt.payload,V=typeof rt=="function"?rt.call(ne,P,V):rt,V==null)break t;P=x({},P,V);break t;case 2:Aa=!0}}V=y.callback,V!==null&&(t.flags|=64,k&&(t.flags|=8192),k=l.callbacks,k===null?l.callbacks=[V]:k.push(V))}else k={lane:V,tag:y.tag,payload:y.payload,callback:y.callback,next:null},G===null?(R=G=k,M=P):G=G.next=k,d|=V;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;k=y,y=k.next,k.next=null,l.lastBaseUpdate=k,l.shared.pending=null}}while(!0);G===null&&(M=P),l.baseState=M,l.firstBaseUpdate=R,l.lastBaseUpdate=G,u===null&&(l.shared.lanes=0),Da|=d,t.lanes=d,t.memoizedState=P}}function Pd(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function Fd(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Pd(n[t],e)}var qi=T(null),Pl=T(0);function Jd(t,e){t=fa,at(Pl,t),at(qi,e),fa=t|e.baseLanes}function au(){at(Pl,fa),at(qi,qi.current)}function iu(){fa=Pl.current,L(qi),L(Pl)}var un=T(null),Mn=null;function wa(t){var e=t.alternate;at(xe,xe.current&1),at(un,t),Mn===null&&(e===null||qi.current!==null||e.memoizedState!==null)&&(Mn=t)}function su(t){at(xe,xe.current),at(un,t),Mn===null&&(Mn=t)}function Wd(t){t.tag===22?(at(xe,xe.current),at(un,t),Mn===null&&(Mn=t)):ja()}function ja(){at(xe,xe.current),at(un,un.current)}function cn(t){L(un),Mn===t&&(Mn=null),L(xe)}var xe=T(0);function Fl(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||fc(n)||dc(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var aa=0,Nt=null,te=null,Se=null,Jl=!1,Yi=!1,ci=!1,Wl=0,Bs=0,Gi=null,ax=0;function pe(){throw Error(r(321))}function lu(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!on(t[n],e[n]))return!1;return!0}function ou(t,e,n,i,l,u){return aa=u,Nt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,N.H=t===null||t.memoizedState===null?_h:Tu,ci=!1,u=n(i,l),ci=!1,Yi&&(u=th(e,n,i,l)),Id(t),u}function Id(t){N.H=qs;var e=te!==null&&te.next!==null;if(aa=0,Se=te=Nt=null,Jl=!1,Bs=0,Gi=null,e)throw Error(r(300));t===null||Te||(t=t.dependencies,t!==null&&Yl(t)&&(Te=!0))}function th(t,e,n,i){Nt=t;var l=0;do{if(Yi&&(Gi=null),Bs=0,Yi=!1,25<=l)throw Error(r(301));if(l+=1,Se=te=null,t.updateQueue!=null){var u=t.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}N.H=kh,u=e(n,i)}while(Yi);return u}function ix(){var t=N.H,e=t.useState()[0];return e=typeof e.then=="function"?Us(e):e,t=t.useState()[0],(te!==null?te.memoizedState:null)!==t&&(Nt.flags|=1024),e}function ru(){var t=Wl!==0;return Wl=0,t}function uu(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function cu(t){if(Jl){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Jl=!1}aa=0,Se=te=Nt=null,Yi=!1,Bs=Wl=0,Gi=null}function Ke(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Se===null?Nt.memoizedState=Se=t:Se=Se.next=t,Se}function ve(){if(te===null){var t=Nt.alternate;t=t!==null?t.memoizedState:null}else t=te.next;var e=Se===null?Nt.memoizedState:Se.next;if(e!==null)Se=e,te=t;else{if(t===null)throw Nt.alternate===null?Error(r(467)):Error(r(310));te=t,t={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},Se===null?Nt.memoizedState=Se=t:Se=Se.next=t}return Se}function Il(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Us(t){var e=Bs;return Bs+=1,Gi===null&&(Gi=[]),t=Xd(Gi,t,e),e=Nt,(Se===null?e.memoizedState:Se.next)===null&&(e=e.alternate,N.H=e===null||e.memoizedState===null?_h:Tu),t}function to(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Us(t);if(t.$$typeof===z)return ke(t)}throw Error(r(438,String(t)))}function fu(t){var e=null,n=Nt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var i=Nt.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(e={data:i.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Il(),Nt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),i=0;i<t;i++)n[i]=I;return e.index++,n}function ia(t,e){return typeof e=="function"?e(t):e}function eo(t){var e=ve();return du(e,te,t)}function du(t,e,n){var i=t.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var l=t.baseQueue,u=i.pending;if(u!==null){if(l!==null){var d=l.next;l.next=u.next,u.next=d}e.baseQueue=l=u,i.pending=null}if(u=t.baseState,l===null)t.memoizedState=u;else{e=l.next;var y=d=null,M=null,R=e,G=!1;do{var P=R.lane&-536870913;if(P!==R.lane?(kt&P)===P:(aa&P)===P){var V=R.revertLane;if(V===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null}),P===Li&&(G=!0);else if((aa&V)===V){R=R.next,V===Li&&(G=!0);continue}else P={lane:0,revertLane:R.revertLane,gesture:null,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},M===null?(y=M=P,d=u):M=M.next=P,Nt.lanes|=V,Da|=V;P=R.action,ci&&n(u,P),u=R.hasEagerState?R.eagerState:n(u,P)}else V={lane:P,revertLane:R.revertLane,gesture:R.gesture,action:R.action,hasEagerState:R.hasEagerState,eagerState:R.eagerState,next:null},M===null?(y=M=V,d=u):M=M.next=V,Nt.lanes|=P,Da|=P;R=R.next}while(R!==null&&R!==e);if(M===null?d=u:M.next=y,!on(u,t.memoizedState)&&(Te=!0,G&&(n=Bi,n!==null)))throw n;t.memoizedState=u,t.baseState=d,t.baseQueue=M,i.lastRenderedState=u}return l===null&&(i.lanes=0),[t.memoizedState,i.dispatch]}function hu(t){var e=ve(),n=e.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=t;var i=n.dispatch,l=n.pending,u=e.memoizedState;if(l!==null){n.pending=null;var d=l=l.next;do u=t(u,d.action),d=d.next;while(d!==l);on(u,e.memoizedState)||(Te=!0),e.memoizedState=u,e.baseQueue===null&&(e.baseState=u),n.lastRenderedState=u}return[u,i]}function eh(t,e,n){var i=Nt,l=ve(),u=Ut;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=e();var d=!on((te||l).memoizedState,n);if(d&&(l.memoizedState=n,Te=!0),l=l.queue,gu(ih.bind(null,i,l,t),[t]),l.getSnapshot!==e||d||Se!==null&&Se.memoizedState.tag&1){if(i.flags|=2048,Xi(9,{destroy:void 0},ah.bind(null,i,l,n,e),null),ie===null)throw Error(r(349));u||(aa&127)!==0||nh(i,e,n)}return n}function nh(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Nt.updateQueue,e===null?(e=Il(),Nt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function ah(t,e,n,i){e.value=n,e.getSnapshot=i,sh(e)&&lh(t)}function ih(t,e,n){return n(function(){sh(e)&&lh(t)})}function sh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!on(t,n)}catch{return!0}}function lh(t){var e=ei(t,2);e!==null&&tn(e,t,2)}function mu(t){var e=Ke();if(typeof t=="function"){var n=t;if(t=n(),ci){Ne(!0);try{n()}finally{Ne(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:t},e}function oh(t,e,n,i){return t.baseState=n,du(t,te,typeof i=="function"?i:ia)}function sx(t,e,n,i,l){if(io(t))throw Error(r(485));if(t=e.action,t!==null){var u={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){u.listeners.push(d)}};N.T!==null?n(!0):u.isTransition=!1,i(u),n=e.pending,n===null?(u.next=e.pending=u,rh(e,u)):(u.next=n.next,e.pending=n.next=u)}}function rh(t,e){var n=e.action,i=e.payload,l=t.state;if(e.isTransition){var u=N.T,d={};N.T=d;try{var y=n(l,i),M=N.S;M!==null&&M(d,y),uh(t,e,y)}catch(R){pu(t,e,R)}finally{u!==null&&d.types!==null&&(u.types=d.types),N.T=u}}else try{u=n(l,i),uh(t,e,u)}catch(R){pu(t,e,R)}}function uh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){ch(t,e,i)},function(i){return pu(t,e,i)}):ch(t,e,n)}function ch(t,e,n){e.status="fulfilled",e.value=n,fh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,rh(t,n)))}function pu(t,e,n){var i=t.pending;if(t.pending=null,i!==null){i=i.next;do e.status="rejected",e.reason=n,fh(e),e=e.next;while(e!==i)}t.action=null}function fh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function dh(t,e){return e}function hh(t,e){if(Ut){var n=ie.formState;if(n!==null){t:{var i=Nt;if(Ut){if(ue){e:{for(var l=ue,u=An;l.nodeType!==8;){if(!u){l=null;break e}if(l=En(l.nextSibling),l===null){l=null;break e}}u=l.data,l=u==="F!"||u==="F"?l:null}if(l){ue=En(l.nextSibling),i=l.data==="F!";break t}}Sa(i)}i=!1}i&&(e=n[0])}}return n=Ke(),n.memoizedState=n.baseState=e,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:e},n.queue=i,n=Rh.bind(null,Nt,i),i.dispatch=n,i=mu(!1),u=Su.bind(null,Nt,!1,i.queue),i=Ke(),l={state:e,dispatch:null,action:t,pending:null},i.queue=l,n=sx.bind(null,Nt,l,u,n),l.dispatch=n,i.memoizedState=t,[e,n,!1]}function mh(t){var e=ve();return ph(e,te,t)}function ph(t,e,n){if(e=du(t,e,dh)[0],t=eo(ia)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var i=Us(e)}catch(d){throw d===Ui?Kl:d}else i=e;e=ve();var l=e.queue,u=l.dispatch;return n!==e.memoizedState&&(Nt.flags|=2048,Xi(9,{destroy:void 0},lx.bind(null,l,n),null)),[i,u,t]}function lx(t,e){t.action=e}function gh(t){var e=ve(),n=te;if(n!==null)return ph(e,n,t);ve(),e=e.memoizedState,n=ve();var i=n.queue.dispatch;return n.memoizedState=t,[e,i,!1]}function Xi(t,e,n,i){return t={tag:t,create:n,deps:i,inst:e,next:null},e=Nt.updateQueue,e===null&&(e=Il(),Nt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function yh(){return ve().memoizedState}function no(t,e,n,i){var l=Ke();Nt.flags|=t,l.memoizedState=Xi(1|e,{destroy:void 0},n,i===void 0?null:i)}function ao(t,e,n,i){var l=ve();i=i===void 0?null:i;var u=l.memoizedState.inst;te!==null&&i!==null&&lu(i,te.memoizedState.deps)?l.memoizedState=Xi(e,u,n,i):(Nt.flags|=t,l.memoizedState=Xi(1|e,u,n,i))}function xh(t,e){no(8390656,8,t,e)}function gu(t,e){ao(2048,8,t,e)}function ox(t){Nt.flags|=4;var e=Nt.updateQueue;if(e===null)e=Il(),Nt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function vh(t){var e=ve().memoizedState;return ox({ref:e,nextImpl:t}),function(){if((Gt&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function bh(t,e){return ao(4,2,t,e)}function Sh(t,e){return ao(4,4,t,e)}function Th(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Ah(t,e,n){n=n!=null?n.concat([t]):null,ao(4,4,Th.bind(null,e,t),n)}function yu(){}function Mh(t,e){var n=ve();e=e===void 0?null:e;var i=n.memoizedState;return e!==null&&lu(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function Eh(t,e){var n=ve();e=e===void 0?null:e;var i=n.memoizedState;if(e!==null&&lu(e,i[1]))return i[0];if(i=t(),ci){Ne(!0);try{t()}finally{Ne(!1)}}return n.memoizedState=[i,e],i}function xu(t,e,n){return n===void 0||(aa&1073741824)!==0&&(kt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=w0(),Nt.lanes|=t,Da|=t,n)}function wh(t,e,n,i){return on(n,e)?n:qi.current!==null?(t=xu(t,n,i),on(t,e)||(Te=!0),t):(aa&42)===0||(aa&1073741824)!==0&&(kt&261930)===0?(Te=!0,t.memoizedState=n):(t=w0(),Nt.lanes|=t,Da|=t,e)}function jh(t,e,n,i,l){var u=nt.p;nt.p=u!==0&&8>u?u:8;var d=N.T,y={};N.T=y,Su(t,!1,e,n);try{var M=l(),R=N.S;if(R!==null&&R(y,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var G=nx(M,i);Hs(t,e,G,hn(t))}else Hs(t,e,i,hn(t))}catch(P){Hs(t,e,{then:function(){},status:"rejected",reason:P},hn())}finally{nt.p=u,d!==null&&y.types!==null&&(d.types=y.types),N.T=d}}function rx(){}function vu(t,e,n,i){if(t.tag!==5)throw Error(r(476));var l=Ch(t).queue;jh(t,l,e,et,n===null?rx:function(){return Nh(t),n(i)})}function Ch(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:et,baseState:et,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:et},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Nh(t){var e=Ch(t);e.next===null&&(e=t.alternate.memoizedState),Hs(t,e.next.queue,{},hn())}function bu(){return ke(al)}function Dh(){return ve().memoizedState}function zh(){return ve().memoizedState}function ux(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=hn();t=Ma(n);var i=Ea(e,t,n);i!==null&&(tn(i,e,n),_s(i,e,n)),e={cache:Pr()},t.payload=e;return}e=e.return}}function cx(t,e,n){var i=hn();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},io(t)?Oh(e,n):(n=Br(t,e,n,i),n!==null&&(tn(n,t,i),Vh(n,e,i)))}function Rh(t,e,n){var i=hn();Hs(t,e,n,i)}function Hs(t,e,n,i){var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(io(t))Oh(e,l);else{var u=t.alternate;if(t.lanes===0&&(u===null||u.lanes===0)&&(u=e.lastRenderedReducer,u!==null))try{var d=e.lastRenderedState,y=u(d,n);if(l.hasEagerState=!0,l.eagerState=y,on(y,d))return Bl(t,e,l,0),ie===null&&Ll(),!1}catch{}if(n=Br(t,e,l,i),n!==null)return tn(n,t,i),Vh(n,e,i),!0}return!1}function Su(t,e,n,i){if(i={lane:2,revertLane:Iu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},io(t)){if(e)throw Error(r(479))}else e=Br(t,n,i,2),e!==null&&tn(e,t,2)}function io(t){var e=t.alternate;return t===Nt||e!==null&&e===Nt}function Oh(t,e){Yi=Jl=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vh(t,e,n){if((n&4194048)!==0){var i=e.lanes;i&=t.pendingLanes,n|=i,e.lanes=n,El(t,n)}}var qs={readContext:ke,use:to,useCallback:pe,useContext:pe,useEffect:pe,useImperativeHandle:pe,useLayoutEffect:pe,useInsertionEffect:pe,useMemo:pe,useReducer:pe,useRef:pe,useState:pe,useDebugValue:pe,useDeferredValue:pe,useTransition:pe,useSyncExternalStore:pe,useId:pe,useHostTransitionStatus:pe,useFormState:pe,useActionState:pe,useOptimistic:pe,useMemoCache:pe,useCacheRefresh:pe};qs.useEffectEvent=pe;var _h={readContext:ke,use:to,useCallback:function(t,e){return Ke().memoizedState=[t,e===void 0?null:e],t},useContext:ke,useEffect:xh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,no(4194308,4,Th.bind(null,e,t),n)},useLayoutEffect:function(t,e){return no(4194308,4,t,e)},useInsertionEffect:function(t,e){no(4,2,t,e)},useMemo:function(t,e){var n=Ke();e=e===void 0?null:e;var i=t();if(ci){Ne(!0);try{t()}finally{Ne(!1)}}return n.memoizedState=[i,e],i},useReducer:function(t,e,n){var i=Ke();if(n!==void 0){var l=n(e);if(ci){Ne(!0);try{n(e)}finally{Ne(!1)}}}else l=e;return i.memoizedState=i.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},i.queue=t,t=t.dispatch=cx.bind(null,Nt,t),[i.memoizedState,t]},useRef:function(t){var e=Ke();return t={current:t},e.memoizedState=t},useState:function(t){t=mu(t);var e=t.queue,n=Rh.bind(null,Nt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:yu,useDeferredValue:function(t,e){var n=Ke();return xu(n,t,e)},useTransition:function(){var t=mu(!1);return t=jh.bind(null,Nt,t.queue,!0,!1),Ke().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var i=Nt,l=Ke();if(Ut){if(n===void 0)throw Error(r(407));n=n()}else{if(n=e(),ie===null)throw Error(r(349));(kt&127)!==0||nh(i,e,n)}l.memoizedState=n;var u={value:n,getSnapshot:e};return l.queue=u,xh(ih.bind(null,i,u,t),[t]),i.flags|=2048,Xi(9,{destroy:void 0},ah.bind(null,i,u,n,e),null),n},useId:function(){var t=Ke(),e=ie.identifierPrefix;if(Ut){var n=Gn,i=Yn;n=(i&~(1<<32-Qt(i)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Wl++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=ax++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:bu,useFormState:hh,useActionState:hh,useOptimistic:function(t){var e=Ke();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Su.bind(null,Nt,!0,n),n.dispatch=e,[t,e]},useMemoCache:fu,useCacheRefresh:function(){return Ke().memoizedState=ux.bind(null,Nt)},useEffectEvent:function(t){var e=Ke(),n={impl:t};return e.memoizedState=n,function(){if((Gt&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Tu={readContext:ke,use:to,useCallback:Mh,useContext:ke,useEffect:gu,useImperativeHandle:Ah,useInsertionEffect:bh,useLayoutEffect:Sh,useMemo:Eh,useReducer:eo,useRef:yh,useState:function(){return eo(ia)},useDebugValue:yu,useDeferredValue:function(t,e){var n=ve();return wh(n,te.memoizedState,t,e)},useTransition:function(){var t=eo(ia)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:Us(t),e]},useSyncExternalStore:eh,useId:Dh,useHostTransitionStatus:bu,useFormState:mh,useActionState:mh,useOptimistic:function(t,e){var n=ve();return oh(n,te,t,e)},useMemoCache:fu,useCacheRefresh:zh};Tu.useEffectEvent=vh;var kh={readContext:ke,use:to,useCallback:Mh,useContext:ke,useEffect:gu,useImperativeHandle:Ah,useInsertionEffect:bh,useLayoutEffect:Sh,useMemo:Eh,useReducer:hu,useRef:yh,useState:function(){return hu(ia)},useDebugValue:yu,useDeferredValue:function(t,e){var n=ve();return te===null?xu(n,t,e):wh(n,te.memoizedState,t,e)},useTransition:function(){var t=hu(ia)[0],e=ve().memoizedState;return[typeof t=="boolean"?t:Us(t),e]},useSyncExternalStore:eh,useId:Dh,useHostTransitionStatus:bu,useFormState:gh,useActionState:gh,useOptimistic:function(t,e){var n=ve();return te!==null?oh(n,te,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:fu,useCacheRefresh:zh};kh.useEffectEvent=vh;function Au(t,e,n,i){e=t.memoizedState,n=n(i,e),n=n==null?e:x({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Mu={enqueueSetState:function(t,e,n){t=t._reactInternals;var i=hn(),l=Ma(i);l.payload=e,n!=null&&(l.callback=n),e=Ea(t,l,i),e!==null&&(tn(e,t,i),_s(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var i=hn(),l=Ma(i);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=Ea(t,l,i),e!==null&&(tn(e,t,i),_s(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=hn(),i=Ma(n);i.tag=2,e!=null&&(i.callback=e),e=Ea(t,i,n),e!==null&&(tn(e,t,n),_s(e,t,n))}};function Lh(t,e,n,i,l,u,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(i,u,d):e.prototype&&e.prototype.isPureReactComponent?!js(n,i)||!js(l,u):!0}function Bh(t,e,n,i){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&Mu.enqueueReplaceState(e,e.state,null)}function fi(t,e){var n=e;if("ref"in e){n={};for(var i in e)i!=="ref"&&(n[i]=e[i])}if(t=t.defaultProps){n===e&&(n=x({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}function Uh(t){kl(t)}function Hh(t){console.error(t)}function qh(t){kl(t)}function so(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(i){setTimeout(function(){throw i})}}function Yh(t,e,n){try{var i=t.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Eu(t,e,n){return n=Ma(n),n.tag=3,n.payload={element:null},n.callback=function(){so(t,e)},n}function Gh(t){return t=Ma(t),t.tag=3,t}function Xh(t,e,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var u=i.value;t.payload=function(){return l(u)},t.callback=function(){Yh(e,n,i)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Yh(e,n,i),typeof l!="function"&&(za===null?za=new Set([this]):za.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})})}function fx(t,e,n,i,l){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(e=n.alternate,e!==null&&ki(e,n,l,!0),n=un.current,n!==null){switch(n.tag){case 31:case 13:return Mn===null?xo():n.alternate===null&&ge===0&&(ge=3),n.flags&=-257,n.flags|=65536,n.lanes=l,i===Zl?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([i]):e.add(i),Fu(t,i,l)),!1;case 22:return n.flags|=65536,i===Zl?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([i]):n.add(i)),Fu(t,i,l)),!1}throw Error(r(435,n.tag))}return Fu(t,i,l),xo(),!1}if(Ut)return e=un.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=l,i!==Xr&&(t=Error(r(422),{cause:i}),Ds(bn(t,n)))):(i!==Xr&&(e=Error(r(423),{cause:i}),Ds(bn(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,i=bn(i,n),l=Eu(t.stateNode,i,l),eu(t,l),ge!==4&&(ge=2)),!1;var u=Error(r(520),{cause:i});if(u=bn(u,n),Ps===null?Ps=[u]:Ps.push(u),ge!==4&&(ge=2),e===null)return!0;i=bn(i,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=Eu(n.stateNode,i,t),eu(n,t),!1;case 1:if(e=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(za===null||!za.has(u))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Gh(l),Xh(l,t,n,i),eu(n,l),!1}n=n.return}while(n!==null);return!1}var wu=Error(r(461)),Te=!1;function Le(t,e,n,i){e.child=t===null?$d(e,null,n,i):ui(e,t.child,n,i)}function Kh(t,e,n,i,l){n=n.render;var u=e.ref;if("ref"in i){var d={};for(var y in i)y!=="ref"&&(d[y]=i[y])}else d=i;return si(e),i=ou(t,e,n,d,u,l),y=ru(),t!==null&&!Te?(uu(t,e,l),sa(t,e,l)):(Ut&&y&&Yr(e),e.flags|=1,Le(t,e,i,l),e.child)}function Zh(t,e,n,i,l){if(t===null){var u=n.type;return typeof u=="function"&&!Ur(u)&&u.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=u,Qh(t,e,u,i,l)):(t=Hl(n.type,null,i,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(u=t.child,!Vu(t,l)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:js,n(d,i)&&t.ref===e.ref)return sa(t,e,l)}return e.flags|=1,t=In(u,i),t.ref=e.ref,t.return=e,e.child=t}function Qh(t,e,n,i,l){if(t!==null){var u=t.memoizedProps;if(js(u,i)&&t.ref===e.ref)if(Te=!1,e.pendingProps=i=u,Vu(t,l))(t.flags&131072)!==0&&(Te=!0);else return e.lanes=t.lanes,sa(t,e,l)}return ju(t,e,n,i,l)}function $h(t,e,n,i){var l=i.children,u=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((e.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,t!==null){for(i=e.child=t.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~u}else i=0,e.child=null;return Ph(t,e,u,n,i)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Xl(e,u!==null?u.cachePool:null),u!==null?Jd(e,u):au(),Wd(e);else return i=e.lanes=536870912,Ph(t,e,u!==null?u.baseLanes|n:n,n,i)}else u!==null?(Xl(e,u.cachePool),Jd(e,u),ja(),e.memoizedState=null):(t!==null&&Xl(e,null),au(),ja());return Le(t,e,l,n),e.child}function Ys(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Ph(t,e,n,i,l){var u=Jr();return u=u===null?null:{parent:be._currentValue,pool:u},e.memoizedState={baseLanes:n,cachePool:u},t!==null&&Xl(e,null),au(),Wd(e),t!==null&&ki(t,e,i,!0),e.childLanes=l,null}function lo(t,e){return e=ro({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Fh(t,e,n){return ui(e,t.child,null,n),t=lo(e,e.pendingProps),t.flags|=2,cn(e),e.memoizedState=null,t}function dx(t,e,n){var i=e.pendingProps,l=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Ut){if(i.mode==="hidden")return t=lo(e,i),e.lanes=536870912,Ys(null,t);if(su(e),(t=ue)?(t=rm(t,An),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:va!==null?{id:Yn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},n=Od(t),n.return=e,e.child=n,_e=e,ue=null)):t=null,t===null)throw Sa(e);return e.lanes=536870912,null}return lo(e,i)}var u=t.memoizedState;if(u!==null){var d=u.dehydrated;if(su(e),l)if(e.flags&256)e.flags&=-257,e=Fh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(Te||ki(t,e,n,!1),l=(n&t.childLanes)!==0,Te||l){if(i=ie,i!==null&&(d=ps(i,n),d!==0&&d!==u.retryLane))throw u.retryLane=d,ei(t,d),tn(i,t,d),wu;xo(),e=Fh(t,e,n)}else t=u.treeContext,ue=En(d.nextSibling),_e=e,Ut=!0,ba=null,An=!1,t!==null&&kd(e,t),e=lo(e,i),e.flags|=4096;return e}return t=In(t.child,{mode:i.mode,children:i.children}),t.ref=e.ref,e.child=t,t.return=e,t}function oo(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ju(t,e,n,i,l){return si(e),n=ou(t,e,n,i,void 0,l),i=ru(),t!==null&&!Te?(uu(t,e,l),sa(t,e,l)):(Ut&&i&&Yr(e),e.flags|=1,Le(t,e,n,l),e.child)}function Jh(t,e,n,i,l,u){return si(e),e.updateQueue=null,n=th(e,i,n,l),Id(t),i=ru(),t!==null&&!Te?(uu(t,e,u),sa(t,e,u)):(Ut&&i&&Yr(e),e.flags|=1,Le(t,e,n,u),e.child)}function Wh(t,e,n,i,l){if(si(e),e.stateNode===null){var u=Ri,d=n.contextType;typeof d=="object"&&d!==null&&(u=ke(d)),u=new n(i,u),e.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Mu,e.stateNode=u,u._reactInternals=e,u=e.stateNode,u.props=i,u.state=e.memoizedState,u.refs={},Ir(e),d=n.contextType,u.context=typeof d=="object"&&d!==null?ke(d):Ri,u.state=e.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Au(e,n,d,i),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&Mu.enqueueReplaceState(u,u.state,null),Ls(e,i,u,l),ks(),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!0}else if(t===null){u=e.stateNode;var y=e.memoizedProps,M=fi(n,y);u.props=M;var R=u.context,G=n.contextType;d=Ri,typeof G=="object"&&G!==null&&(d=ke(G));var P=n.getDerivedStateFromProps;G=typeof P=="function"||typeof u.getSnapshotBeforeUpdate=="function",y=e.pendingProps!==y,G||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(y||R!==d)&&Bh(e,u,i,d),Aa=!1;var V=e.memoizedState;u.state=V,Ls(e,i,u,l),ks(),R=e.memoizedState,y||V!==R||Aa?(typeof P=="function"&&(Au(e,n,P,i),R=e.memoizedState),(M=Aa||Lh(e,n,M,i,V,R,d))?(G||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(e.flags|=4194308)):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=R),u.props=i,u.state=R,u.context=d,i=M):(typeof u.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{u=e.stateNode,tu(t,e),d=e.memoizedProps,G=fi(n,d),u.props=G,P=e.pendingProps,V=u.context,R=n.contextType,M=Ri,typeof R=="object"&&R!==null&&(M=ke(R)),y=n.getDerivedStateFromProps,(R=typeof y=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==P||V!==M)&&Bh(e,u,i,M),Aa=!1,V=e.memoizedState,u.state=V,Ls(e,i,u,l),ks();var k=e.memoizedState;d!==P||V!==k||Aa||t!==null&&t.dependencies!==null&&Yl(t.dependencies)?(typeof y=="function"&&(Au(e,n,y,i),k=e.memoizedState),(G=Aa||Lh(e,n,G,i,V,k,M)||t!==null&&t.dependencies!==null&&Yl(t.dependencies))?(R||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(i,k,M),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(i,k,M)),typeof u.componentDidUpdate=="function"&&(e.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=k),u.props=i,u.state=k,u.context=M,i=G):(typeof u.componentDidUpdate!="function"||d===t.memoizedProps&&V===t.memoizedState||(e.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&V===t.memoizedState||(e.flags|=1024),i=!1)}return u=i,oo(t,e),i=(e.flags&128)!==0,u||i?(u=e.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:u.render(),e.flags|=1,t!==null&&i?(e.child=ui(e,t.child,null,l),e.child=ui(e,null,n,l)):Le(t,e,n,l),e.memoizedState=u.state,t=e.child):t=sa(t,e,l),t}function Ih(t,e,n,i){return ai(),e.flags|=256,Le(t,e,n,i),e.child}var Cu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nu(t){return{baseLanes:t,cachePool:Yd()}}function Du(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=dn),t}function t0(t,e,n){var i=e.pendingProps,l=!1,u=(e.flags&128)!==0,d;if((d=u)||(d=t!==null&&t.memoizedState===null?!1:(xe.current&2)!==0),d&&(l=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(Ut){if(l?wa(e):ja(),(t=ue)?(t=rm(t,An),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:va!==null?{id:Yn,overflow:Gn}:null,retryLane:536870912,hydrationErrors:null},n=Od(t),n.return=e,e.child=n,_e=e,ue=null)):t=null,t===null)throw Sa(e);return dc(t)?e.lanes=32:e.lanes=536870912,null}var y=i.children;return i=i.fallback,l?(ja(),l=e.mode,y=ro({mode:"hidden",children:y},l),i=ni(i,l,n,null),y.return=e,i.return=e,y.sibling=i,e.child=y,i=e.child,i.memoizedState=Nu(n),i.childLanes=Du(t,d,n),e.memoizedState=Cu,Ys(null,i)):(wa(e),zu(e,y))}var M=t.memoizedState;if(M!==null&&(y=M.dehydrated,y!==null)){if(u)e.flags&256?(wa(e),e.flags&=-257,e=Ru(t,e,n)):e.memoizedState!==null?(ja(),e.child=t.child,e.flags|=128,e=null):(ja(),y=i.fallback,l=e.mode,i=ro({mode:"visible",children:i.children},l),y=ni(y,l,n,null),y.flags|=2,i.return=e,y.return=e,i.sibling=y,e.child=i,ui(e,t.child,null,n),i=e.child,i.memoizedState=Nu(n),i.childLanes=Du(t,d,n),e.memoizedState=Cu,e=Ys(null,i));else if(wa(e),dc(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var R=d.dgst;d=R,i=Error(r(419)),i.stack="",i.digest=d,Ds({value:i,source:null,stack:null}),e=Ru(t,e,n)}else if(Te||ki(t,e,n,!1),d=(n&t.childLanes)!==0,Te||d){if(d=ie,d!==null&&(i=ps(d,n),i!==0&&i!==M.retryLane))throw M.retryLane=i,ei(t,i),tn(d,t,i),wu;fc(y)||xo(),e=Ru(t,e,n)}else fc(y)?(e.flags|=192,e.child=t.child,e=null):(t=M.treeContext,ue=En(y.nextSibling),_e=e,Ut=!0,ba=null,An=!1,t!==null&&kd(e,t),e=zu(e,i.children),e.flags|=4096);return e}return l?(ja(),y=i.fallback,l=e.mode,M=t.child,R=M.sibling,i=In(M,{mode:"hidden",children:i.children}),i.subtreeFlags=M.subtreeFlags&65011712,R!==null?y=In(R,y):(y=ni(y,l,n,null),y.flags|=2),y.return=e,i.return=e,i.sibling=y,e.child=i,Ys(null,i),i=e.child,y=t.child.memoizedState,y===null?y=Nu(n):(l=y.cachePool,l!==null?(M=be._currentValue,l=l.parent!==M?{parent:M,pool:M}:l):l=Yd(),y={baseLanes:y.baseLanes|n,cachePool:l}),i.memoizedState=y,i.childLanes=Du(t,d,n),e.memoizedState=Cu,Ys(t.child,i)):(wa(e),n=t.child,t=n.sibling,n=In(n,{mode:"visible",children:i.children}),n.return=e,n.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=n,e.memoizedState=null,n)}function zu(t,e){return e=ro({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ro(t,e){return t=rn(22,t,null,e),t.lanes=0,t}function Ru(t,e,n){return ui(e,t.child,null,n),t=zu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function e0(t,e,n){t.lanes|=e;var i=t.alternate;i!==null&&(i.lanes|=e),Qr(t.return,e,n)}function Ou(t,e,n,i,l,u){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l,treeForkCount:u}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=n,d.tailMode=l,d.treeForkCount=u)}function n0(t,e,n){var i=e.pendingProps,l=i.revealOrder,u=i.tail;i=i.children;var d=xe.current,y=(d&2)!==0;if(y?(d=d&1|2,e.flags|=128):d&=1,at(xe,d),Le(t,e,i,n),i=Ut?Ns:0,!y&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&e0(t,n,e);else if(t.tag===19)e0(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(l){case"forwards":for(n=e.child,l=null;n!==null;)t=n.alternate,t!==null&&Fl(t)===null&&(l=n),n=n.sibling;n=l,n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),Ou(e,!1,l,n,u,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&Fl(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}Ou(e,!0,n,null,u,i);break;case"together":Ou(e,!1,null,null,void 0,i);break;default:e.memoizedState=null}return e.child}function sa(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Da|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(ki(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,n=In(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=In(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Vu(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Yl(t)))}function hx(t,e,n){switch(e.tag){case 3:Kt(e,e.stateNode.containerInfo),Ta(e,be,t.memoizedState.cache),ai();break;case 27:case 5:qe(e);break;case 4:Kt(e,e.stateNode.containerInfo);break;case 10:Ta(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,su(e),null;break;case 13:var i=e.memoizedState;if(i!==null)return i.dehydrated!==null?(wa(e),e.flags|=128,null):(n&e.child.childLanes)!==0?t0(t,e,n):(wa(e),t=sa(t,e,n),t!==null?t.sibling:null);wa(e);break;case 19:var l=(t.flags&128)!==0;if(i=(n&e.childLanes)!==0,i||(ki(t,e,n,!1),i=(n&e.childLanes)!==0),l){if(i)return n0(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),at(xe,xe.current),i)break;return null;case 22:return e.lanes=0,$h(t,e,n,e.pendingProps);case 24:Ta(e,be,t.memoizedState.cache)}return sa(t,e,n)}function a0(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Te=!0;else{if(!Vu(t,n)&&(e.flags&128)===0)return Te=!1,hx(t,e,n);Te=(t.flags&131072)!==0}else Te=!1,Ut&&(e.flags&1048576)!==0&&_d(e,Ns,e.index);switch(e.lanes=0,e.tag){case 16:t:{var i=e.pendingProps;if(t=oi(e.elementType),e.type=t,typeof t=="function")Ur(t)?(i=fi(t,i),e.tag=1,e=Wh(null,e,t,i,n)):(e.tag=0,e=ju(null,e,t,i,n));else{if(t!=null){var l=t.$$typeof;if(l===X){e.tag=11,e=Kh(null,e,t,i,n);break t}else if(l===F){e.tag=14,e=Zh(null,e,t,i,n);break t}}throw e=Et(t)||t,Error(r(306,e,""))}}return e;case 0:return ju(t,e,e.type,e.pendingProps,n);case 1:return i=e.type,l=fi(i,e.pendingProps),Wh(t,e,i,l,n);case 3:t:{if(Kt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));i=e.pendingProps;var u=e.memoizedState;l=u.element,tu(t,e),Ls(e,i,null,n);var d=e.memoizedState;if(i=d.cache,Ta(e,be,i),i!==u.cache&&$r(e,[be],n,!0),ks(),i=d.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=u,e.memoizedState=u,e.flags&256){e=Ih(t,e,i,n);break t}else if(i!==l){l=bn(Error(r(424)),e),Ds(l),e=Ih(t,e,i,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,ue=En(t.firstChild),_e=e,Ut=!0,ba=null,An=!0,n=$d(e,null,i,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ai(),i===l){e=sa(t,e,n);break t}Le(t,e,i,n)}e=e.child}return e;case 26:return oo(t,e),t===null?(n=mm(e.type,null,e.pendingProps,null))?e.memoizedState=n:Ut||(n=e.type,t=e.pendingProps,i=Eo(dt.current).createElement(n),i[q]=e,i[$]=t,Be(i,n,t),gt(i),e.stateNode=i):e.memoizedState=mm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return qe(e),t===null&&Ut&&(i=e.stateNode=fm(e.type,e.pendingProps,dt.current),_e=e,An=!0,l=ue,_a(e.type)?(hc=l,ue=En(i.firstChild)):ue=l),Le(t,e,e.pendingProps.children,n),oo(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Ut&&((l=i=ue)&&(i=Gx(i,e.type,e.pendingProps,An),i!==null?(e.stateNode=i,_e=e,ue=En(i.firstChild),An=!1,l=!0):l=!1),l||Sa(e)),qe(e),l=e.type,u=e.pendingProps,d=t!==null?t.memoizedProps:null,i=u.children,rc(l,u)?i=null:d!==null&&rc(l,d)&&(e.flags|=32),e.memoizedState!==null&&(l=ou(t,e,ix,null,null,n),al._currentValue=l),oo(t,e),Le(t,e,i,n),e.child;case 6:return t===null&&Ut&&((t=n=ue)&&(n=Xx(n,e.pendingProps,An),n!==null?(e.stateNode=n,_e=e,ue=null,t=!0):t=!1),t||Sa(e)),null;case 13:return t0(t,e,n);case 4:return Kt(e,e.stateNode.containerInfo),i=e.pendingProps,t===null?e.child=ui(e,null,i,n):Le(t,e,i,n),e.child;case 11:return Kh(t,e,e.type,e.pendingProps,n);case 7:return Le(t,e,e.pendingProps,n),e.child;case 8:return Le(t,e,e.pendingProps.children,n),e.child;case 12:return Le(t,e,e.pendingProps.children,n),e.child;case 10:return i=e.pendingProps,Ta(e,e.type,i.value),Le(t,e,i.children,n),e.child;case 9:return l=e.type._context,i=e.pendingProps.children,si(e),l=ke(l),i=i(l),e.flags|=1,Le(t,e,i,n),e.child;case 14:return Zh(t,e,e.type,e.pendingProps,n);case 15:return Qh(t,e,e.type,e.pendingProps,n);case 19:return n0(t,e,n);case 31:return dx(t,e,n);case 22:return $h(t,e,n,e.pendingProps);case 24:return si(e),i=ke(be),t===null?(l=Jr(),l===null&&(l=ie,u=Pr(),l.pooledCache=u,u.refCount++,u!==null&&(l.pooledCacheLanes|=n),l=u),e.memoizedState={parent:i,cache:l},Ir(e),Ta(e,be,l)):((t.lanes&n)!==0&&(tu(t,e),Ls(e,null,null,n),ks()),l=t.memoizedState,u=e.memoizedState,l.parent!==i?(l={parent:i,cache:i},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),Ta(e,be,i)):(i=u.cache,Ta(e,be,i),i!==l.cache&&$r(e,[be],n,!0))),Le(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function la(t){t.flags|=4}function _u(t,e,n,i,l){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(l&335544128)===l)if(t.stateNode.complete)t.flags|=8192;else if(D0())t.flags|=8192;else throw ri=Zl,Wr}else t.flags&=-16777217}function i0(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!vm(e))if(D0())t.flags|=8192;else throw ri=Zl,Wr}function uo(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Fa():536870912,t.lanes|=e,$i|=e)}function Gs(t,e){if(!Ut)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:i.sibling=null}}function ce(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,i=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&65011712,i|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=i,t.childLanes=n,e}function mx(t,e,n){var i=e.pendingProps;switch(Gr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ce(e),null;case 1:return ce(e),null;case 3:return n=e.stateNode,i=null,t!==null&&(i=t.memoizedState.cache),e.memoizedState.cache!==i&&(e.flags|=2048),na(be),At(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(_i(e)?la(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Kr())),ce(e),null;case 26:var l=e.type,u=e.memoizedState;return t===null?(la(e),u!==null?(ce(e),i0(e,u)):(ce(e),_u(e,l,null,i,n))):u?u!==t.memoizedState?(la(e),ce(e),i0(e,u)):(ce(e),e.flags&=-16777217):(t=t.memoizedProps,t!==i&&la(e),ce(e),_u(e,l,t,i,n)),null;case 27:if(Ln(e),n=dt.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&la(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return ce(e),null}t=ot.current,_i(e)?Ld(e):(t=fm(l,i,n),e.stateNode=t,la(e))}return ce(e),null;case 5:if(Ln(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==i&&la(e);else{if(!i){if(e.stateNode===null)throw Error(r(166));return ce(e),null}if(u=ot.current,_i(e))Ld(e);else{var d=Eo(dt.current);switch(u){case 1:u=d.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:u=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":u=d.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":u=d.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":u=d.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof i.is=="string"?d.createElement("select",{is:i.is}):d.createElement("select"),i.multiple?u.multiple=!0:i.size&&(u.size=i.size);break;default:u=typeof i.is=="string"?d.createElement(l,{is:i.is}):d.createElement(l)}}u[q]=e,u[$]=i;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=u;t:switch(Be(u,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break t;case"img":i=!0;break t;default:i=!1}i&&la(e)}}return ce(e),_u(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==i&&la(e);else{if(typeof i!="string"&&e.stateNode===null)throw Error(r(166));if(t=dt.current,_i(e)){if(t=e.stateNode,n=e.memoizedProps,i=null,l=_e,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}t[q]=e,t=!!(t.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||tm(t.nodeValue,n)),t||Sa(e,!0)}else t=Eo(t).createTextNode(i),t[q]=e,e.stateNode=t}return ce(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(i=_i(e),n!==null){if(t===null){if(!i)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[q]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ce(e),t=!1}else n=Kr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(cn(e),e):(cn(e),null);if((e.flags&128)!==0)throw Error(r(558))}return ce(e),null;case 13:if(i=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=_i(e),i!==null&&i.dehydrated!==null){if(t===null){if(!l)throw Error(r(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(r(317));l[q]=e}else ai(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;ce(e),l=!1}else l=Kr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(cn(e),e):(cn(e),null)}return cn(e),(e.flags&128)!==0?(e.lanes=n,e):(n=i!==null,t=t!==null&&t.memoizedState!==null,n&&(i=e.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),uo(e,e.updateQueue),ce(e),null);case 4:return At(),t===null&&ac(e.stateNode.containerInfo),ce(e),null;case 10:return na(e.type),ce(e),null;case 19:if(L(xe),i=e.memoizedState,i===null)return ce(e),null;if(l=(e.flags&128)!==0,u=i.rendering,u===null)if(l)Gs(i,!1);else{if(ge!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(u=Fl(t),u!==null){for(e.flags|=128,Gs(i,!1),t=u.updateQueue,e.updateQueue=t,uo(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Rd(n,t),n=n.sibling;return at(xe,xe.current&1|2),Ut&&ta(e,i.treeForkCount),e.child}t=t.sibling}i.tail!==null&&Ce()>po&&(e.flags|=128,l=!0,Gs(i,!1),e.lanes=4194304)}else{if(!l)if(t=Fl(u),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,uo(e,t),Gs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!Ut)return ce(e),null}else 2*Ce()-i.renderingStartTime>po&&n!==536870912&&(e.flags|=128,l=!0,Gs(i,!1),e.lanes=4194304);i.isBackwards?(u.sibling=e.child,e.child=u):(t=i.last,t!==null?t.sibling=u:e.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ce(),t.sibling=null,n=xe.current,at(xe,l?n&1|2:n&1),Ut&&ta(e,i.treeForkCount),t):(ce(e),null);case 22:case 23:return cn(e),iu(),i=e.memoizedState!==null,t!==null?t.memoizedState!==null!==i&&(e.flags|=8192):i&&(e.flags|=8192),i?(n&536870912)!==0&&(e.flags&128)===0&&(ce(e),e.subtreeFlags&6&&(e.flags|=8192)):ce(e),n=e.updateQueue,n!==null&&uo(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),i=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),i!==n&&(e.flags|=2048),t!==null&&L(li),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),na(be),ce(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function px(t,e){switch(Gr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return na(be),At(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ln(e),null;case 31:if(e.memoizedState!==null){if(cn(e),e.alternate===null)throw Error(r(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(cn(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));ai()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return L(xe),null;case 4:return At(),null;case 10:return na(e.type),null;case 22:case 23:return cn(e),iu(),t!==null&&L(li),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return na(be),null;case 25:return null;default:return null}}function s0(t,e){switch(Gr(e),e.tag){case 3:na(be),At();break;case 26:case 27:case 5:Ln(e);break;case 4:At();break;case 31:e.memoizedState!==null&&cn(e);break;case 13:cn(e);break;case 19:L(xe);break;case 10:na(e.type);break;case 22:case 23:cn(e),iu(),t!==null&&L(li);break;case 24:na(be)}}function Xs(t,e){try{var n=e.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&t)===t){i=void 0;var u=n.create,d=n.inst;i=u(),d.destroy=i}n=n.next}while(n!==l)}}catch(y){Wt(e,e.return,y)}}function Ca(t,e,n){try{var i=e.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var u=l.next;i=u;do{if((i.tag&t)===t){var d=i.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,l=e;var M=n,R=y;try{R()}catch(G){Wt(l,M,G)}}}i=i.next}while(i!==u)}}catch(G){Wt(e,e.return,G)}}function l0(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Fd(e,n)}catch(i){Wt(t,t.return,i)}}}function o0(t,e,n){n.props=fi(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(i){Wt(t,e,i)}}function Ks(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var i=t.stateNode;break;case 30:i=t.stateNode;break;default:i=t.stateNode}typeof n=="function"?t.refCleanup=n(i):n.current=i}}catch(l){Wt(t,e,l)}}function Xn(t,e){var n=t.ref,i=t.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(l){Wt(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){Wt(t,e,l)}else n.current=null}function r0(t){var e=t.type,n=t.memoizedProps,i=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break t;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(l){Wt(t,t.return,l)}}function ku(t,e,n){try{var i=t.stateNode;Lx(i,t.type,n,e),i[$]=e}catch(l){Wt(t,t.return,l)}}function u0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&_a(t.type)||t.tag===4}function Lu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||u0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&_a(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Bu(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Jn));else if(i!==4&&(i===27&&_a(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Bu(t,e,n),t=t.sibling;t!==null;)Bu(t,e,n),t=t.sibling}function co(t,e,n){var i=t.tag;if(i===5||i===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(i!==4&&(i===27&&_a(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(co(t,e,n),t=t.sibling;t!==null;)co(t,e,n),t=t.sibling}function c0(t){var e=t.stateNode,n=t.memoizedProps;try{for(var i=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);Be(e,i,n),e[q]=t,e[$]=n}catch(u){Wt(t,t.return,u)}}var oa=!1,Ae=!1,Uu=!1,f0=typeof WeakSet=="function"?WeakSet:Set,ze=null;function gx(t,e){if(t=t.containerInfo,lc=Ro,t=Ad(t),Rr(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var l=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break t}var d=0,y=-1,M=-1,R=0,G=0,P=t,V=null;e:for(;;){for(var k;P!==n||l!==0&&P.nodeType!==3||(y=d+l),P!==u||i!==0&&P.nodeType!==3||(M=d+i),P.nodeType===3&&(d+=P.nodeValue.length),(k=P.firstChild)!==null;)V=P,P=k;for(;;){if(P===t)break e;if(V===n&&++R===l&&(y=d),V===u&&++G===i&&(M=d),(k=P.nextSibling)!==null)break;P=V,V=P.parentNode}P=k}n=y===-1||M===-1?null:{start:y,end:M}}else n=null}n=n||{start:0,end:0}}else n=null;for(oc={focusedElem:t,selectionRange:n},Ro=!1,ze=e;ze!==null;)if(e=ze,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ze=t;else for(;ze!==null;){switch(e=ze,u=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)l=t[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&u!==null){t=void 0,n=e,l=u.memoizedProps,u=u.memoizedState,i=n.stateNode;try{var rt=fi(n.type,l);t=i.getSnapshotBeforeUpdate(rt,u),i.__reactInternalSnapshotBeforeUpdate=t}catch(bt){Wt(n,n.return,bt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)cc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":cc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ze=t;break}ze=e.return}}function d0(t,e,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:ua(t,n),i&4&&Xs(5,n);break;case 1:if(ua(t,n),i&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(d){Wt(n,n.return,d)}else{var l=fi(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Wt(n,n.return,d)}}i&64&&l0(n),i&512&&Ks(n,n.return);break;case 3:if(ua(t,n),i&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{Fd(t,e)}catch(d){Wt(n,n.return,d)}}break;case 27:e===null&&i&4&&c0(n);case 26:case 5:ua(t,n),e===null&&i&4&&r0(n),i&512&&Ks(n,n.return);break;case 12:ua(t,n);break;case 31:ua(t,n),i&4&&p0(t,n);break;case 13:ua(t,n),i&4&&g0(t,n),i&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Ex.bind(null,n),Kx(t,n))));break;case 22:if(i=n.memoizedState!==null||oa,!i){e=e!==null&&e.memoizedState!==null||Ae,l=oa;var u=Ae;oa=i,(Ae=e)&&!u?ca(t,n,(n.subtreeFlags&8772)!==0):ua(t,n),oa=l,Ae=u}break;case 30:break;default:ua(t,n)}}function h0(t){var e=t.alternate;e!==null&&(t.alternate=null,h0(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Xt(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var de=null,Fe=!1;function ra(t,e,n){for(n=n.child;n!==null;)m0(t,e,n),n=n.sibling}function m0(t,e,n){if(ae&&typeof ae.onCommitFiberUnmount=="function")try{ae.onCommitFiberUnmount(re,n)}catch{}switch(n.tag){case 26:Ae||Xn(n,e),ra(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ae||Xn(n,e);var i=de,l=Fe;_a(n.type)&&(de=n.stateNode,Fe=!1),ra(t,e,n),tl(n.stateNode),de=i,Fe=l;break;case 5:Ae||Xn(n,e);case 6:if(i=de,l=Fe,de=null,ra(t,e,n),de=i,Fe=l,de!==null)if(Fe)try{(de.nodeType===9?de.body:de.nodeName==="HTML"?de.ownerDocument.body:de).removeChild(n.stateNode)}catch(u){Wt(n,e,u)}else try{de.removeChild(n.stateNode)}catch(u){Wt(n,e,u)}break;case 18:de!==null&&(Fe?(t=de,lm(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ns(t)):lm(de,n.stateNode));break;case 4:i=de,l=Fe,de=n.stateNode.containerInfo,Fe=!0,ra(t,e,n),de=i,Fe=l;break;case 0:case 11:case 14:case 15:Ca(2,n,e),Ae||Ca(4,n,e),ra(t,e,n);break;case 1:Ae||(Xn(n,e),i=n.stateNode,typeof i.componentWillUnmount=="function"&&o0(n,e,i)),ra(t,e,n);break;case 21:ra(t,e,n);break;case 22:Ae=(i=Ae)||n.memoizedState!==null,ra(t,e,n),Ae=i;break;default:ra(t,e,n)}}function p0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ns(t)}catch(n){Wt(e,e.return,n)}}}function g0(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ns(t)}catch(n){Wt(e,e.return,n)}}function yx(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new f0),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new f0),e;default:throw Error(r(435,t.tag))}}function fo(t,e){var n=yx(t);e.forEach(function(i){if(!n.has(i)){n.add(i);var l=wx.bind(null,t,i);i.then(l,l)}})}function Je(t,e){var n=e.deletions;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i],u=t,d=e,y=d;t:for(;y!==null;){switch(y.tag){case 27:if(_a(y.type)){de=y.stateNode,Fe=!1;break t}break;case 5:de=y.stateNode,Fe=!1;break t;case 3:case 4:de=y.stateNode.containerInfo,Fe=!0;break t}y=y.return}if(de===null)throw Error(r(160));m0(u,d,l),de=null,Fe=!1,u=l.alternate,u!==null&&(u.return=null),l.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)y0(e,t),e=e.sibling}var Rn=null;function y0(t,e){var n=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Je(e,t),We(t),i&4&&(Ca(3,t,t.return),Xs(3,t),Ca(5,t,t.return));break;case 1:Je(e,t),We(t),i&512&&(Ae||n===null||Xn(n,n.return)),i&64&&oa&&(t=t.updateQueue,t!==null&&(i=t.callbacks,i!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var l=Rn;if(Je(e,t),We(t),i&512&&(Ae||n===null||Xn(n,n.return)),i&4){var u=n!==null?n.memoizedState:null;if(i=t.memoizedState,n===null)if(i===null)if(t.stateNode===null){t:{i=t.type,n=t.memoizedProps,l=l.ownerDocument||l;e:switch(i){case"title":u=l.getElementsByTagName("title")[0],(!u||u[wt]||u[q]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=l.createElement(i),l.head.insertBefore(u,l.querySelector("head > title"))),Be(u,i,n),u[q]=t,gt(u),i=u;break t;case"link":var d=ym("link","href",l).get(i+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(u=d[y],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break e}}u=l.createElement(i),Be(u,i,n),l.head.appendChild(u);break;case"meta":if(d=ym("meta","content",l).get(i+(n.content||""))){for(y=0;y<d.length;y++)if(u=d[y],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break e}}u=l.createElement(i),Be(u,i,n),l.head.appendChild(u);break;default:throw Error(r(468,i))}u[q]=t,gt(u),i=u}t.stateNode=i}else xm(l,t.type,t.stateNode);else t.stateNode=gm(l,i,t.memoizedProps);else u!==i?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,i===null?xm(l,t.type,t.stateNode):gm(l,i,t.memoizedProps)):i===null&&t.stateNode!==null&&ku(t,t.memoizedProps,n.memoizedProps)}break;case 27:Je(e,t),We(t),i&512&&(Ae||n===null||Xn(n,n.return)),n!==null&&i&4&&ku(t,t.memoizedProps,n.memoizedProps);break;case 5:if(Je(e,t),We(t),i&512&&(Ae||n===null||Xn(n,n.return)),t.flags&32){l=t.stateNode;try{Ei(l,"")}catch(rt){Wt(t,t.return,rt)}}i&4&&t.stateNode!=null&&(l=t.memoizedProps,ku(t,l,n!==null?n.memoizedProps:l)),i&1024&&(Uu=!0);break;case 6:if(Je(e,t),We(t),i&4){if(t.stateNode===null)throw Error(r(162));i=t.memoizedProps,n=t.stateNode;try{n.nodeValue=i}catch(rt){Wt(t,t.return,rt)}}break;case 3:if(Co=null,l=Rn,Rn=wo(e.containerInfo),Je(e,t),Rn=l,We(t),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ns(e.containerInfo)}catch(rt){Wt(t,t.return,rt)}Uu&&(Uu=!1,x0(t));break;case 4:i=Rn,Rn=wo(t.stateNode.containerInfo),Je(e,t),We(t),Rn=i;break;case 12:Je(e,t),We(t);break;case 31:Je(e,t),We(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,fo(t,i)));break;case 13:Je(e,t),We(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(mo=Ce()),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,fo(t,i)));break;case 22:l=t.memoizedState!==null;var M=n!==null&&n.memoizedState!==null,R=oa,G=Ae;if(oa=R||l,Ae=G||M,Je(e,t),Ae=G,oa=R,We(t),i&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(n===null||M||oa||Ae||di(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){M=n=e;try{if(u=M.stateNode,l)d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=M.stateNode;var P=M.memoizedProps.style,V=P!=null&&P.hasOwnProperty("display")?P.display:null;y.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(rt){Wt(M,M.return,rt)}}}else if(e.tag===6){if(n===null){M=e;try{M.stateNode.nodeValue=l?"":M.memoizedProps}catch(rt){Wt(M,M.return,rt)}}}else if(e.tag===18){if(n===null){M=e;try{var k=M.stateNode;l?om(k,!0):om(M.stateNode,!1)}catch(rt){Wt(M,M.return,rt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}i&4&&(i=t.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,fo(t,n))));break;case 19:Je(e,t),We(t),i&4&&(i=t.updateQueue,i!==null&&(t.updateQueue=null,fo(t,i)));break;case 30:break;case 21:break;default:Je(e,t),We(t)}}function We(t){var e=t.flags;if(e&2){try{for(var n,i=t.return;i!==null;){if(u0(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var l=n.stateNode,u=Lu(t);co(t,u,l);break;case 5:var d=n.stateNode;n.flags&32&&(Ei(d,""),n.flags&=-33);var y=Lu(t);co(t,y,d);break;case 3:case 4:var M=n.stateNode.containerInfo,R=Lu(t);Bu(t,R,M);break;default:throw Error(r(161))}}catch(G){Wt(t,t.return,G)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function x0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;x0(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ua(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)d0(t,e.alternate,e),e=e.sibling}function di(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Ca(4,e,e.return),di(e);break;case 1:Xn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&o0(e,e.return,n),di(e);break;case 27:tl(e.stateNode);case 26:case 5:Xn(e,e.return),di(e);break;case 22:e.memoizedState===null&&di(e);break;case 30:di(e);break;default:di(e)}t=t.sibling}}function ca(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var i=e.alternate,l=t,u=e,d=u.flags;switch(u.tag){case 0:case 11:case 15:ca(l,u,n),Xs(4,u);break;case 1:if(ca(l,u,n),i=u,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(R){Wt(i,i.return,R)}if(i=u,l=i.updateQueue,l!==null){var y=i.stateNode;try{var M=l.shared.hiddenCallbacks;if(M!==null)for(l.shared.hiddenCallbacks=null,l=0;l<M.length;l++)Pd(M[l],y)}catch(R){Wt(i,i.return,R)}}n&&d&64&&l0(u),Ks(u,u.return);break;case 27:c0(u);case 26:case 5:ca(l,u,n),n&&i===null&&d&4&&r0(u),Ks(u,u.return);break;case 12:ca(l,u,n);break;case 31:ca(l,u,n),n&&d&4&&p0(l,u);break;case 13:ca(l,u,n),n&&d&4&&g0(l,u);break;case 22:u.memoizedState===null&&ca(l,u,n),Ks(u,u.return);break;case 30:break;default:ca(l,u,n)}e=e.sibling}}function Hu(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&zs(n))}function qu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zs(t))}function On(t,e,n,i){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)v0(t,e,n,i),e=e.sibling}function v0(t,e,n,i){var l=e.flags;switch(e.tag){case 0:case 11:case 15:On(t,e,n,i),l&2048&&Xs(9,e);break;case 1:On(t,e,n,i);break;case 3:On(t,e,n,i),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&zs(t)));break;case 12:if(l&2048){On(t,e,n,i),t=e.stateNode;try{var u=e.memoizedProps,d=u.id,y=u.onPostCommit;typeof y=="function"&&y(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(M){Wt(e,e.return,M)}}else On(t,e,n,i);break;case 31:On(t,e,n,i);break;case 13:On(t,e,n,i);break;case 23:break;case 22:u=e.stateNode,d=e.alternate,e.memoizedState!==null?u._visibility&2?On(t,e,n,i):Zs(t,e):u._visibility&2?On(t,e,n,i):(u._visibility|=2,Ki(t,e,n,i,(e.subtreeFlags&10256)!==0||!1)),l&2048&&Hu(d,e);break;case 24:On(t,e,n,i),l&2048&&qu(e.alternate,e);break;default:On(t,e,n,i)}}function Ki(t,e,n,i,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var u=t,d=e,y=n,M=i,R=d.flags;switch(d.tag){case 0:case 11:case 15:Ki(u,d,y,M,l),Xs(8,d);break;case 23:break;case 22:var G=d.stateNode;d.memoizedState!==null?G._visibility&2?Ki(u,d,y,M,l):Zs(u,d):(G._visibility|=2,Ki(u,d,y,M,l)),l&&R&2048&&Hu(d.alternate,d);break;case 24:Ki(u,d,y,M,l),l&&R&2048&&qu(d.alternate,d);break;default:Ki(u,d,y,M,l)}e=e.sibling}}function Zs(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,i=e,l=i.flags;switch(i.tag){case 22:Zs(n,i),l&2048&&Hu(i.alternate,i);break;case 24:Zs(n,i),l&2048&&qu(i.alternate,i);break;default:Zs(n,i)}e=e.sibling}}var Qs=8192;function Zi(t,e,n){if(t.subtreeFlags&Qs)for(t=t.child;t!==null;)b0(t,e,n),t=t.sibling}function b0(t,e,n){switch(t.tag){case 26:Zi(t,e,n),t.flags&Qs&&t.memoizedState!==null&&av(n,Rn,t.memoizedState,t.memoizedProps);break;case 5:Zi(t,e,n);break;case 3:case 4:var i=Rn;Rn=wo(t.stateNode.containerInfo),Zi(t,e,n),Rn=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Qs,Qs=16777216,Zi(t,e,n),Qs=i):Zi(t,e,n));break;default:Zi(t,e,n)}}function S0(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function $s(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ze=i,A0(i,t)}S0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)T0(t),t=t.sibling}function T0(t){switch(t.tag){case 0:case 11:case 15:$s(t),t.flags&2048&&Ca(9,t,t.return);break;case 3:$s(t);break;case 12:$s(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ho(t)):$s(t);break;default:$s(t)}}function ho(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var i=e[n];ze=i,A0(i,t)}S0(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Ca(8,e,e.return),ho(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,ho(e));break;default:ho(e)}t=t.sibling}}function A0(t,e){for(;ze!==null;){var n=ze;switch(n.tag){case 0:case 11:case 15:Ca(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:zs(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,ze=i;else t:for(n=t;ze!==null;){i=ze;var l=i.sibling,u=i.return;if(h0(i),i===n){ze=null;break t}if(l!==null){l.return=u,ze=l;break t}ze=u}}}var xx={getCacheForType:function(t){var e=ke(be),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ke(be).controller.signal}},vx=typeof WeakMap=="function"?WeakMap:Map,Gt=0,ie=null,Vt=null,kt=0,Jt=0,fn=null,Na=!1,Qi=!1,Yu=!1,fa=0,ge=0,Da=0,hi=0,Gu=0,dn=0,$i=0,Ps=null,Ie=null,Xu=!1,mo=0,M0=0,po=1/0,go=null,za=null,Ee=0,Ra=null,Pi=null,da=0,Ku=0,Zu=null,E0=null,Fs=0,Qu=null;function hn(){return(Gt&2)!==0&&kt!==0?kt&-kt:N.T!==null?Iu():wl()}function w0(){if(dn===0)if((kt&536870912)===0||Ut){var t=nn;nn<<=1,(nn&3932160)===0&&(nn=262144),dn=t}else dn=536870912;return t=un.current,t!==null&&(t.flags|=32),dn}function tn(t,e,n){(t===ie&&(Jt===2||Jt===9)||t.cancelPendingCommit!==null)&&(Fi(t,0),Oa(t,kt,dn,!1)),ga(t,n),((Gt&2)===0||t!==ie)&&(t===ie&&((Gt&2)===0&&(hi|=n),ge===4&&Oa(t,kt,dn,!1)),Kn(t))}function j0(t,e,n){if((Gt&6)!==0)throw Error(r(327));var i=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Pa(t,e),l=i?Tx(t,e):Pu(t,e,!0),u=i;do{if(l===0){Qi&&!i&&Oa(t,e,0,!1);break}else{if(n=t.current.alternate,u&&!bx(n)){l=Pu(t,e,!1),u=!1;continue}if(l===2){if(u=e,t.errorRecoveryDisabledLanes&u)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var y=t;l=Ps;var M=y.current.memoizedState.isDehydrated;if(M&&(Fi(y,d).flags|=256),d=Pu(y,d,!1),d!==2){if(Yu&&!M){y.errorRecoveryDisabledLanes|=u,hi|=u,l=4;break t}u=Ie,Ie=l,u!==null&&(Ie===null?Ie=u:Ie.push.apply(Ie,u))}l=d}if(u=!1,l!==2)continue}}if(l===1){Fi(t,0),Oa(t,e,0,!0);break}t:{switch(i=t,u=l,u){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:Oa(i,e,dn,!Na);break t;case 2:Ie=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(l=mo+300-Ce(),10<l)){if(Oa(i,e,dn,!Na),Si(i,0,!0)!==0)break t;da=e,i.timeoutHandle=im(C0.bind(null,i,n,Ie,go,Xu,e,dn,hi,$i,Na,u,"Throttled",-0,0),l);break t}C0(i,n,Ie,go,Xu,e,dn,hi,$i,Na,u,null,-0,0)}}break}while(!0);Kn(t)}function C0(t,e,n,i,l,u,d,y,M,R,G,P,V,k){if(t.timeoutHandle=-1,P=e.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jn},b0(e,u,P);var rt=(u&62914560)===u?mo-Ce():(u&4194048)===u?M0-Ce():0;if(rt=iv(P,rt),rt!==null){da=u,t.cancelPendingCommit=rt(k0.bind(null,t,e,u,n,i,l,d,y,M,G,P,null,V,k)),Oa(t,u,d,!R);return}}k0(t,e,u,n,i,l,d,y,M)}function bx(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],u=l.getSnapshot;l=l.value;try{if(!on(u(),l))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Oa(t,e,n,i){e&=~Gu,e&=~hi,t.suspendedLanes|=e,t.pingedLanes&=~e,i&&(t.warmLanes|=e),i=t.expirationTimes;for(var l=e;0<l;){var u=31-Qt(l),d=1<<u;i[u]=-1,l&=~d}n!==0&&Ml(t,n,e)}function yo(){return(Gt&6)===0?(Js(0),!1):!0}function $u(){if(Vt!==null){if(Jt===0)var t=Vt.return;else t=Vt,ea=ii=null,cu(t),Hi=null,Os=0,t=Vt;for(;t!==null;)s0(t.alternate,t),t=t.return;Vt=null}}function Fi(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Hx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),da=0,$u(),ie=t,Vt=n=In(t.current,null),kt=e,Jt=0,fn=null,Na=!1,Qi=Pa(t,e),Yu=!1,$i=dn=Gu=hi=Da=ge=0,Ie=Ps=null,Xu=!1,(e&8)!==0&&(e|=e&32);var i=t.entangledLanes;if(i!==0)for(t=t.entanglements,i&=e;0<i;){var l=31-Qt(i),u=1<<l;e|=t[l],i&=~u}return fa=e,Ll(),n}function N0(t,e){Nt=null,N.H=qs,e===Ui||e===Kl?(e=Kd(),Jt=3):e===Wr?(e=Kd(),Jt=4):Jt=e===wu?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,fn=e,Vt===null&&(ge=1,so(t,bn(e,t.current)))}function D0(){var t=un.current;return t===null?!0:(kt&4194048)===kt?Mn===null:(kt&62914560)===kt||(kt&536870912)!==0?t===Mn:!1}function z0(){var t=N.H;return N.H=qs,t===null?qs:t}function R0(){var t=N.A;return N.A=xx,t}function xo(){ge=4,Na||(kt&4194048)!==kt&&un.current!==null||(Qi=!0),(Da&134217727)===0&&(hi&134217727)===0||ie===null||Oa(ie,kt,dn,!1)}function Pu(t,e,n){var i=Gt;Gt|=2;var l=z0(),u=R0();(ie!==t||kt!==e)&&(go=null,Fi(t,e)),e=!1;var d=ge;t:do try{if(Jt!==0&&Vt!==null){var y=Vt,M=fn;switch(Jt){case 8:$u(),d=6;break t;case 3:case 2:case 9:case 6:un.current===null&&(e=!0);var R=Jt;if(Jt=0,fn=null,Ji(t,y,M,R),n&&Qi){d=0;break t}break;default:R=Jt,Jt=0,fn=null,Ji(t,y,M,R)}}Sx(),d=ge;break}catch(G){N0(t,G)}while(!0);return e&&t.shellSuspendCounter++,ea=ii=null,Gt=i,N.H=l,N.A=u,Vt===null&&(ie=null,kt=0,Ll()),d}function Sx(){for(;Vt!==null;)O0(Vt)}function Tx(t,e){var n=Gt;Gt|=2;var i=z0(),l=R0();ie!==t||kt!==e?(go=null,po=Ce()+500,Fi(t,e)):Qi=Pa(t,e);t:do try{if(Jt!==0&&Vt!==null){e=Vt;var u=fn;e:switch(Jt){case 1:Jt=0,fn=null,Ji(t,e,u,1);break;case 2:case 9:if(Gd(u)){Jt=0,fn=null,V0(e);break}e=function(){Jt!==2&&Jt!==9||ie!==t||(Jt=7),Kn(t)},u.then(e,e);break t;case 3:Jt=7;break t;case 4:Jt=5;break t;case 7:Gd(u)?(Jt=0,fn=null,V0(e)):(Jt=0,fn=null,Ji(t,e,u,7));break;case 5:var d=null;switch(Vt.tag){case 26:d=Vt.memoizedState;case 5:case 27:var y=Vt;if(d?vm(d):y.stateNode.complete){Jt=0,fn=null;var M=y.sibling;if(M!==null)Vt=M;else{var R=y.return;R!==null?(Vt=R,vo(R)):Vt=null}break e}}Jt=0,fn=null,Ji(t,e,u,5);break;case 6:Jt=0,fn=null,Ji(t,e,u,6);break;case 8:$u(),ge=6;break t;default:throw Error(r(462))}}Ax();break}catch(G){N0(t,G)}while(!0);return ea=ii=null,N.H=i,N.A=l,Gt=n,Vt!==null?0:(ie=null,kt=0,Ll(),ge)}function Ax(){for(;Vt!==null&&!Dn();)O0(Vt)}function O0(t){var e=a0(t.alternate,t,fa);t.memoizedProps=t.pendingProps,e===null?vo(t):Vt=e}function V0(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Jh(n,e,e.pendingProps,e.type,void 0,kt);break;case 11:e=Jh(n,e,e.pendingProps,e.type.render,e.ref,kt);break;case 5:cu(e);default:s0(n,e),e=Vt=Rd(e,fa),e=a0(n,e,fa)}t.memoizedProps=t.pendingProps,e===null?vo(t):Vt=e}function Ji(t,e,n,i){ea=ii=null,cu(e),Hi=null,Os=0;var l=e.return;try{if(fx(t,l,e,n,kt)){ge=1,so(t,bn(n,t.current)),Vt=null;return}}catch(u){if(l!==null)throw Vt=l,u;ge=1,so(t,bn(n,t.current)),Vt=null;return}e.flags&32768?(Ut||i===1?t=!0:Qi||(kt&536870912)!==0?t=!1:(Na=t=!0,(i===2||i===9||i===3||i===6)&&(i=un.current,i!==null&&i.tag===13&&(i.flags|=16384))),_0(e,t)):vo(e)}function vo(t){var e=t;do{if((e.flags&32768)!==0){_0(e,Na);return}t=e.return;var n=mx(e.alternate,e,fa);if(n!==null){Vt=n;return}if(e=e.sibling,e!==null){Vt=e;return}Vt=e=t}while(e!==null);ge===0&&(ge=5)}function _0(t,e){do{var n=px(t.alternate,t);if(n!==null){n.flags&=32767,Vt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Vt=t;return}Vt=t=n}while(t!==null);ge=6,Vt=null}function k0(t,e,n,i,l,u,d,y,M){t.cancelPendingCommit=null;do bo();while(Ee!==0);if((Gt&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(u=e.lanes|e.childLanes,u|=Lr,Al(t,n,u,d,y,M),t===ie&&(Vt=ie=null,kt=0),Pi=e,Ra=t,da=n,Ku=u,Zu=l,E0=i,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,jx(yn,function(){return q0(),null})):(t.callbackNode=null,t.callbackPriority=0),i=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||i){i=N.T,N.T=null,l=nt.p,nt.p=2,d=Gt,Gt|=4;try{gx(t,e,n)}finally{Gt=d,nt.p=l,N.T=i}}Ee=1,L0(),B0(),U0()}}function L0(){if(Ee===1){Ee=0;var t=Ra,e=Pi,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=N.T,N.T=null;var i=nt.p;nt.p=2;var l=Gt;Gt|=4;try{y0(e,t);var u=oc,d=Ad(t.containerInfo),y=u.focusedElem,M=u.selectionRange;if(d!==y&&y&&y.ownerDocument&&Td(y.ownerDocument.documentElement,y)){if(M!==null&&Rr(y)){var R=M.start,G=M.end;if(G===void 0&&(G=R),"selectionStart"in y)y.selectionStart=R,y.selectionEnd=Math.min(G,y.value.length);else{var P=y.ownerDocument||document,V=P&&P.defaultView||window;if(V.getSelection){var k=V.getSelection(),rt=y.textContent.length,bt=Math.min(M.start,rt),ne=M.end===void 0?bt:Math.min(M.end,rt);!k.extend&&bt>ne&&(d=ne,ne=bt,bt=d);var j=Sd(y,bt),w=Sd(y,ne);if(j&&w&&(k.rangeCount!==1||k.anchorNode!==j.node||k.anchorOffset!==j.offset||k.focusNode!==w.node||k.focusOffset!==w.offset)){var D=P.createRange();D.setStart(j.node,j.offset),k.removeAllRanges(),bt>ne?(k.addRange(D),k.extend(w.node,w.offset)):(D.setEnd(w.node,w.offset),k.addRange(D))}}}}for(P=[],k=y;k=k.parentNode;)k.nodeType===1&&P.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<P.length;y++){var Z=P[y];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Ro=!!lc,oc=lc=null}finally{Gt=l,nt.p=i,N.T=n}}t.current=e,Ee=2}}function B0(){if(Ee===2){Ee=0;var t=Ra,e=Pi,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=N.T,N.T=null;var i=nt.p;nt.p=2;var l=Gt;Gt|=4;try{d0(t,e.alternate,e)}finally{Gt=l,nt.p=i,N.T=n}}Ee=3}}function U0(){if(Ee===4||Ee===3){Ee=0,Hn();var t=Ra,e=Pi,n=da,i=E0;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Ee=5:(Ee=0,Pi=Ra=null,H0(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(za=null),ys(n),e=e.stateNode,ae&&typeof ae.onCommitFiberRoot=="function")try{ae.onCommitFiberRoot(re,e,void 0,(e.current.flags&128)===128)}catch{}if(i!==null){e=N.T,l=nt.p,nt.p=2,N.T=null;try{for(var u=t.onRecoverableError,d=0;d<i.length;d++){var y=i[d];u(y.value,{componentStack:y.stack})}}finally{N.T=e,nt.p=l}}(da&3)!==0&&bo(),Kn(t),l=t.pendingLanes,(n&261930)!==0&&(l&42)!==0?t===Qu?Fs++:(Fs=0,Qu=t):Fs=0,Js(0)}}function H0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,zs(e)))}function bo(){return L0(),B0(),U0(),q0()}function q0(){if(Ee!==5)return!1;var t=Ra,e=Ku;Ku=0;var n=ys(da),i=N.T,l=nt.p;try{nt.p=32>n?32:n,N.T=null,n=Zu,Zu=null;var u=Ra,d=da;if(Ee=0,Pi=Ra=null,da=0,(Gt&6)!==0)throw Error(r(331));var y=Gt;if(Gt|=4,T0(u.current),v0(u,u.current,d,n),Gt=y,Js(0,!1),ae&&typeof ae.onPostCommitFiberRoot=="function")try{ae.onPostCommitFiberRoot(re,u)}catch{}return!0}finally{nt.p=l,N.T=i,H0(t,e)}}function Y0(t,e,n){e=bn(n,e),e=Eu(t.stateNode,e,2),t=Ea(t,e,2),t!==null&&(ga(t,2),Kn(t))}function Wt(t,e,n){if(t.tag===3)Y0(t,t,n);else for(;e!==null;){if(e.tag===3){Y0(e,t,n);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(za===null||!za.has(i))){t=bn(n,t),n=Gh(2),i=Ea(e,n,2),i!==null&&(Xh(n,i,e,t),ga(i,2),Kn(i));break}}e=e.return}}function Fu(t,e,n){var i=t.pingCache;if(i===null){i=t.pingCache=new vx;var l=new Set;i.set(e,l)}else l=i.get(e),l===void 0&&(l=new Set,i.set(e,l));l.has(n)||(Yu=!0,l.add(n),t=Mx.bind(null,t,e,n),e.then(t,t))}function Mx(t,e,n){var i=t.pingCache;i!==null&&i.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,ie===t&&(kt&n)===n&&(ge===4||ge===3&&(kt&62914560)===kt&&300>Ce()-mo?(Gt&2)===0&&Fi(t,0):Gu|=n,$i===kt&&($i=0)),Kn(t)}function G0(t,e){e===0&&(e=Fa()),t=ei(t,e),t!==null&&(ga(t,e),Kn(t))}function Ex(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),G0(t,n)}function wx(t,e){var n=0;switch(t.tag){case 31:case 13:var i=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=t.stateNode;break;case 22:i=t.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(e),G0(t,n)}function jx(t,e){return Qa(t,e)}var So=null,Wi=null,Ju=!1,To=!1,Wu=!1,Va=0;function Kn(t){t!==Wi&&t.next===null&&(Wi===null?So=Wi=t:Wi=Wi.next=t),To=!0,Ju||(Ju=!0,Nx())}function Js(t,e){if(!Wu&&To){Wu=!0;do for(var n=!1,i=So;i!==null;){if(t!==0){var l=i.pendingLanes;if(l===0)var u=0;else{var d=i.suspendedLanes,y=i.pingedLanes;u=(1<<31-Qt(42|t)+1)-1,u&=l&~(d&~y),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Q0(i,u))}else u=kt,u=Si(i,i===ie?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(u&3)===0||Pa(i,u)||(n=!0,Q0(i,u));i=i.next}while(n);Wu=!1}}function Cx(){X0()}function X0(){To=Ju=!1;var t=0;Va!==0&&Ux()&&(t=Va);for(var e=Ce(),n=null,i=So;i!==null;){var l=i.next,u=K0(i,e);u===0?(i.next=null,n===null?So=l:n.next=l,l===null&&(Wi=n)):(n=i,(t!==0||(u&3)!==0)&&(To=!0)),i=l}Ee!==0&&Ee!==5||Js(t),Va!==0&&(Va=0)}function K0(t,e){for(var n=t.suspendedLanes,i=t.pingedLanes,l=t.expirationTimes,u=t.pendingLanes&-62914561;0<u;){var d=31-Qt(u),y=1<<d,M=l[d];M===-1?((y&n)===0||(y&i)!==0)&&(l[d]=gr(y,e)):M<=e&&(t.expiredLanes|=y),u&=~y}if(e=ie,n=kt,n=Si(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i=t.callbackNode,n===0||t===e&&(Jt===2||Jt===9)||t.cancelPendingCommit!==null)return i!==null&&i!==null&&gn(i),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Pa(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(i!==null&&gn(i),ys(n)){case 2:case 8:n=Oe;break;case 32:n=yn;break;case 268435456:n=Mt;break;default:n=yn}return i=Z0.bind(null,t),n=Qa(n,i),t.callbackPriority=e,t.callbackNode=n,e}return i!==null&&i!==null&&gn(i),t.callbackPriority=2,t.callbackNode=null,2}function Z0(t,e){if(Ee!==0&&Ee!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(bo()&&t.callbackNode!==n)return null;var i=kt;return i=Si(t,t===ie?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),i===0?null:(j0(t,i,e),K0(t,Ce()),t.callbackNode!=null&&t.callbackNode===n?Z0.bind(null,t):null)}function Q0(t,e){if(bo())return null;j0(t,e,!0)}function Nx(){qx(function(){(Gt&6)!==0?Qa($a,Cx):X0()})}function Iu(){if(Va===0){var t=Li;t===0&&(t=en,en<<=1,(en&261888)===0&&(en=256)),Va=t}return Va}function $0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Nl(""+t)}function P0(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Dx(t,e,n,i,l){if(e==="submit"&&n&&n.stateNode===l){var u=$0((l[$]||null).action),d=i.submitter;d&&(e=(e=d[$]||null)?$0(e.formAction):d.getAttribute("formAction"),e!==null&&(u=e,d=null));var y=new Ol("action","action",null,i,l);t.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Va!==0){var M=d?P0(l,d):new FormData(l);vu(n,{pending:!0,data:M,method:l.method,action:u},null,M)}}else typeof u=="function"&&(y.preventDefault(),M=d?P0(l,d):new FormData(l),vu(n,{pending:!0,data:M,method:l.method,action:u},u,M))},currentTarget:l}]})}}for(var tc=0;tc<kr.length;tc++){var ec=kr[tc],zx=ec.toLowerCase(),Rx=ec[0].toUpperCase()+ec.slice(1);zn(zx,"on"+Rx)}zn(wd,"onAnimationEnd"),zn(jd,"onAnimationIteration"),zn(Cd,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn($1,"onTransitionRun"),zn(P1,"onTransitionStart"),zn(F1,"onTransitionCancel"),zn(Nd,"onTransitionEnd"),fe("onMouseEnter",["mouseout","mouseover"]),fe("onMouseLeave",["mouseout","mouseover"]),fe("onPointerEnter",["pointerout","pointerover"]),fe("onPointerLeave",["pointerout","pointerover"]),ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ws="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(" "),Ox=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ws));function F0(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var i=t[n],l=i.event;i=i.listeners;t:{var u=void 0;if(e)for(var d=i.length-1;0<=d;d--){var y=i[d],M=y.instance,R=y.currentTarget;if(y=y.listener,M!==u&&l.isPropagationStopped())break t;u=y,l.currentTarget=R;try{u(l)}catch(G){kl(G)}l.currentTarget=null,u=M}else for(d=0;d<i.length;d++){if(y=i[d],M=y.instance,R=y.currentTarget,y=y.listener,M!==u&&l.isPropagationStopped())break t;u=y,l.currentTarget=R;try{u(l)}catch(G){kl(G)}l.currentTarget=null,u=M}}}}function _t(t,e){var n=e[it];n===void 0&&(n=e[it]=new Set);var i=t+"__bubble";n.has(i)||(J0(e,t,2,!1),n.add(i))}function nc(t,e,n){var i=0;e&&(i|=4),J0(n,t,i,e)}var Ao="_reactListening"+Math.random().toString(36).slice(2);function ac(t){if(!t[Ao]){t[Ao]=!0,Pt.forEach(function(n){n!=="selectionchange"&&(Ox.has(n)||nc(n,!1,t),nc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ao]||(e[Ao]=!0,nc("selectionchange",!1,e))}}function J0(t,e,n,i){switch(wm(e)){case 2:var l=ov;break;case 8:l=rv;break;default:l=xc}n=l.bind(null,e,n,t),l=void 0,!Ar||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),i?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function ic(t,e,n,i,l){var u=i;if((e&1)===0&&(e&2)===0&&i!==null)t:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var y=i.stateNode.containerInfo;if(y===l)break;if(d===4)for(d=i.return;d!==null;){var M=d.tag;if((M===3||M===4)&&d.stateNode.containerInfo===l)return;d=d.return}for(;y!==null;){if(d=Ht(y),d===null)return;if(M=d.tag,M===5||M===6||M===26||M===27){i=u=d;continue t}y=y.parentNode}}i=i.return}nd(function(){var R=u,G=Sr(n),P=[];t:{var V=Dd.get(t);if(V!==void 0){var k=Ol,rt=t;switch(t){case"keypress":if(zl(n)===0)break t;case"keydown":case"keyup":k=w1;break;case"focusin":rt="focus",k=jr;break;case"focusout":rt="blur",k=jr;break;case"beforeblur":case"afterblur":k=jr;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=m1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=N1;break;case wd:case jd:case Cd:k=y1;break;case Nd:k=z1;break;case"scroll":case"scrollend":k=d1;break;case"wheel":k=O1;break;case"copy":case"cut":case"paste":k=v1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=od;break;case"toggle":case"beforetoggle":k=_1}var bt=(e&4)!==0,ne=!bt&&(t==="scroll"||t==="scrollend"),j=bt?V!==null?V+"Capture":null:V;bt=[];for(var w=R,D;w!==null;){var Z=w;if(D=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||D===null||j===null||(Z=bs(w,j),Z!=null&&bt.push(Is(w,Z,D))),ne)break;w=w.return}0<bt.length&&(V=new k(V,rt,null,n,G),P.push({event:V,listeners:bt}))}}if((e&7)===0){t:{if(V=t==="mouseover"||t==="pointerover",k=t==="mouseout"||t==="pointerout",V&&n!==br&&(rt=n.relatedTarget||n.fromElement)&&(Ht(rt)||rt[J]))break t;if((k||V)&&(V=G.window===G?G:(V=G.ownerDocument)?V.defaultView||V.parentWindow:window,k?(rt=n.relatedTarget||n.toElement,k=R,rt=rt?Ht(rt):null,rt!==null&&(ne=m(rt),bt=rt.tag,rt!==ne||bt!==5&&bt!==27&&bt!==6)&&(rt=null)):(k=null,rt=R),k!==rt)){if(bt=sd,Z="onMouseLeave",j="onMouseEnter",w="mouse",(t==="pointerout"||t==="pointerover")&&(bt=od,Z="onPointerLeave",j="onPointerEnter",w="pointer"),ne=k==null?V:It(k),D=rt==null?V:It(rt),V=new bt(Z,w+"leave",k,n,G),V.target=ne,V.relatedTarget=D,Z=null,Ht(G)===R&&(bt=new bt(j,w+"enter",rt,n,G),bt.target=D,bt.relatedTarget=ne,Z=bt),ne=Z,k&&rt)e:{for(bt=Vx,j=k,w=rt,D=0,Z=j;Z;Z=bt(Z))D++;Z=0;for(var xt=w;xt;xt=bt(xt))Z++;for(;0<D-Z;)j=bt(j),D--;for(;0<Z-D;)w=bt(w),Z--;for(;D--;){if(j===w||w!==null&&j===w.alternate){bt=j;break e}j=bt(j),w=bt(w)}bt=null}else bt=null;k!==null&&W0(P,V,k,bt,!1),rt!==null&&ne!==null&&W0(P,ne,rt,bt,!0)}}t:{if(V=R?It(R):window,k=V.nodeName&&V.nodeName.toLowerCase(),k==="select"||k==="input"&&V.type==="file")var qt=pd;else if(hd(V))if(gd)qt=K1;else{qt=G1;var ht=Y1}else k=V.nodeName,!k||k.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?R&&vr(R.elementType)&&(qt=pd):qt=X1;if(qt&&(qt=qt(t,R))){md(P,qt,n,G);break t}ht&&ht(t,V,R),t==="focusout"&&R&&V.type==="number"&&R.memoizedProps.value!=null&&xr(V,"number",V.value)}switch(ht=R?It(R):window,t){case"focusin":(hd(ht)||ht.contentEditable==="true")&&(Ni=ht,Or=R,Cs=null);break;case"focusout":Cs=Or=Ni=null;break;case"mousedown":Vr=!0;break;case"contextmenu":case"mouseup":case"dragend":Vr=!1,Md(P,n,G);break;case"selectionchange":if(Q1)break;case"keydown":case"keyup":Md(P,n,G)}var Dt;if(Nr)t:{switch(t){case"compositionstart":var Lt="onCompositionStart";break t;case"compositionend":Lt="onCompositionEnd";break t;case"compositionupdate":Lt="onCompositionUpdate";break t}Lt=void 0}else Ci?fd(t,n)&&(Lt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(Lt="onCompositionStart");Lt&&(rd&&n.locale!=="ko"&&(Ci||Lt!=="onCompositionStart"?Lt==="onCompositionEnd"&&Ci&&(Dt=ad()):(xa=G,Mr="value"in xa?xa.value:xa.textContent,Ci=!0)),ht=Mo(R,Lt),0<ht.length&&(Lt=new ld(Lt,t,null,n,G),P.push({event:Lt,listeners:ht}),Dt?Lt.data=Dt:(Dt=dd(n),Dt!==null&&(Lt.data=Dt)))),(Dt=L1?B1(t,n):U1(t,n))&&(Lt=Mo(R,"onBeforeInput"),0<Lt.length&&(ht=new ld("onBeforeInput","beforeinput",null,n,G),P.push({event:ht,listeners:Lt}),ht.data=Dt)),Dx(P,t,R,n,G)}F0(P,e)})}function Is(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Mo(t,e){for(var n=e+"Capture",i=[];t!==null;){var l=t,u=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||u===null||(l=bs(t,n),l!=null&&i.unshift(Is(t,l,u)),l=bs(t,e),l!=null&&i.push(Is(t,l,u))),t.tag===3)return i;t=t.return}return[]}function Vx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function W0(t,e,n,i,l){for(var u=e._reactName,d=[];n!==null&&n!==i;){var y=n,M=y.alternate,R=y.stateNode;if(y=y.tag,M!==null&&M===i)break;y!==5&&y!==26&&y!==27||R===null||(M=R,l?(R=bs(n,u),R!=null&&d.unshift(Is(n,R,M))):l||(R=bs(n,u),R!=null&&d.push(Is(n,R,M)))),n=n.return}d.length!==0&&t.push({event:e,listeners:d})}var _x=/\r\n?/g,kx=/\u0000|\uFFFD/g;function I0(t){return(typeof t=="string"?t:""+t).replace(_x,`
9
+ `).replace(kx,"")}function tm(t,e){return e=I0(e),I0(t)===e}function ee(t,e,n,i,l,u){switch(n){case"children":typeof i=="string"?e==="body"||e==="textarea"&&i===""||Ei(t,i):(typeof i=="number"||typeof i=="bigint")&&e!=="body"&&Ei(t,""+i);break;case"className":ya(t,"class",i);break;case"tabIndex":ya(t,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ya(t,n,i);break;case"style":td(t,i,u);break;case"data":if(e!=="object"){ya(t,"data",i);break}case"src":case"href":if(i===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Nl(""+i),t.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof u=="function"&&(n==="formAction"?(e!=="input"&&ee(t,e,"name",l.name,l,null),ee(t,e,"formEncType",l.formEncType,l,null),ee(t,e,"formMethod",l.formMethod,l,null),ee(t,e,"formTarget",l.formTarget,l,null)):(ee(t,e,"encType",l.encType,l,null),ee(t,e,"method",l.method,l,null),ee(t,e,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){t.removeAttribute(n);break}i=Nl(""+i),t.setAttribute(n,i);break;case"onClick":i!=null&&(t.onclick=Jn);break;case"onScroll":i!=null&&_t("scroll",t);break;case"onScrollEnd":i!=null&&_t("scrollend",t);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"multiple":t.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":t.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){t.removeAttribute("xlink:href");break}n=Nl(""+i),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""+i):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":i===!0?t.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?t.setAttribute(n,i):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?t.setAttribute(n,i):t.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?t.removeAttribute(n):t.setAttribute(n,i);break;case"popover":_t("beforetoggle",t),_t("toggle",t),he(t,"popover",i);break;case"xlinkActuate":sn(t,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":sn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":sn(t,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":sn(t,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":sn(t,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":sn(t,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":sn(t,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":sn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":sn(t,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":he(t,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=c1.get(n)||n,he(t,n,i))}}function sc(t,e,n,i,l,u){switch(n){case"style":td(t,i,u);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(r(60));t.innerHTML=n}}break;case"children":typeof i=="string"?Ei(t,i):(typeof i=="number"||typeof i=="bigint")&&Ei(t,""+i);break;case"onScroll":i!=null&&_t("scroll",t);break;case"onScrollEnd":i!=null&&_t("scrollend",t);break;case"onClick":i!=null&&(t.onclick=Jn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ft.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),e=n.slice(2,l?n.length-7:void 0),u=t[$]||null,u=u!=null?u[n]:null,typeof u=="function"&&t.removeEventListener(e,u,l),typeof i=="function")){typeof u!="function"&&u!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,i,l);break t}n in t?t[n]=i:i===!0?t.setAttribute(n,""):he(t,n,i)}}}function Be(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",t),_t("load",t);var i=!1,l=!1,u;for(u in n)if(n.hasOwnProperty(u)){var d=n[u];if(d!=null)switch(u){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:ee(t,e,u,d,n,null)}}l&&ee(t,e,"srcSet",n.srcSet,n,null),i&&ee(t,e,"src",n.src,n,null);return;case"input":_t("invalid",t);var y=u=d=l=null,M=null,R=null;for(i in n)if(n.hasOwnProperty(i)){var G=n[i];if(G!=null)switch(i){case"name":l=G;break;case"type":d=G;break;case"checked":M=G;break;case"defaultChecked":R=G;break;case"value":u=G;break;case"defaultValue":y=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,e));break;default:ee(t,e,i,G,n,null)}}Ff(t,u,y,M,R,d,l,!1);return;case"select":_t("invalid",t),i=d=u=null;for(l in n)if(n.hasOwnProperty(l)&&(y=n[l],y!=null))switch(l){case"value":u=y;break;case"defaultValue":d=y;break;case"multiple":i=y;default:ee(t,e,l,y,n,null)}e=u,n=d,t.multiple=!!i,e!=null?Mi(t,!!i,e,!1):n!=null&&Mi(t,!!i,n,!0);return;case"textarea":_t("invalid",t),u=l=i=null;for(d in n)if(n.hasOwnProperty(d)&&(y=n[d],y!=null))switch(d){case"value":i=y;break;case"defaultValue":l=y;break;case"children":u=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:ee(t,e,d,y,n,null)}Wf(t,i,l,u);return;case"option":for(M in n)n.hasOwnProperty(M)&&(i=n[M],i!=null)&&(M==="selected"?t.selected=i&&typeof i!="function"&&typeof i!="symbol":ee(t,e,M,i,n,null));return;case"dialog":_t("beforetoggle",t),_t("toggle",t),_t("cancel",t),_t("close",t);break;case"iframe":case"object":_t("load",t);break;case"video":case"audio":for(i=0;i<Ws.length;i++)_t(Ws[i],t);break;case"image":_t("error",t),_t("load",t);break;case"details":_t("toggle",t);break;case"embed":case"source":case"link":_t("error",t),_t("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(R in n)if(n.hasOwnProperty(R)&&(i=n[R],i!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:ee(t,e,R,i,n,null)}return;default:if(vr(e)){for(G in n)n.hasOwnProperty(G)&&(i=n[G],i!==void 0&&sc(t,e,G,i,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(i=n[y],i!=null&&ee(t,e,y,i,n,null))}function Lx(t,e,n,i){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,u=null,d=null,y=null,M=null,R=null,G=null;for(k in n){var P=n[k];if(n.hasOwnProperty(k)&&P!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":M=P;default:i.hasOwnProperty(k)||ee(t,e,k,null,i,P)}}for(var V in i){var k=i[V];if(P=n[V],i.hasOwnProperty(V)&&(k!=null||P!=null))switch(V){case"type":u=k;break;case"name":l=k;break;case"checked":R=k;break;case"defaultChecked":G=k;break;case"value":d=k;break;case"defaultValue":y=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,e));break;default:k!==P&&ee(t,e,V,k,i,P)}}yr(t,d,y,M,R,G,u,l);return;case"select":k=d=y=V=null;for(u in n)if(M=n[u],n.hasOwnProperty(u)&&M!=null)switch(u){case"value":break;case"multiple":k=M;default:i.hasOwnProperty(u)||ee(t,e,u,null,i,M)}for(l in i)if(u=i[l],M=n[l],i.hasOwnProperty(l)&&(u!=null||M!=null))switch(l){case"value":V=u;break;case"defaultValue":y=u;break;case"multiple":d=u;default:u!==M&&ee(t,e,l,u,i,M)}e=y,n=d,i=k,V!=null?Mi(t,!!n,V,!1):!!i!=!!n&&(e!=null?Mi(t,!!n,e,!0):Mi(t,!!n,n?[]:"",!1));return;case"textarea":k=V=null;for(y in n)if(l=n[y],n.hasOwnProperty(y)&&l!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:ee(t,e,y,null,i,l)}for(d in i)if(l=i[d],u=n[d],i.hasOwnProperty(d)&&(l!=null||u!=null))switch(d){case"value":V=l;break;case"defaultValue":k=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(r(91));break;default:l!==u&&ee(t,e,d,l,i,u)}Jf(t,V,k);return;case"option":for(var rt in n)V=n[rt],n.hasOwnProperty(rt)&&V!=null&&!i.hasOwnProperty(rt)&&(rt==="selected"?t.selected=!1:ee(t,e,rt,null,i,V));for(M in i)V=i[M],k=n[M],i.hasOwnProperty(M)&&V!==k&&(V!=null||k!=null)&&(M==="selected"?t.selected=V&&typeof V!="function"&&typeof V!="symbol":ee(t,e,M,V,i,k));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var bt in n)V=n[bt],n.hasOwnProperty(bt)&&V!=null&&!i.hasOwnProperty(bt)&&ee(t,e,bt,null,i,V);for(R in i)if(V=i[R],k=n[R],i.hasOwnProperty(R)&&V!==k&&(V!=null||k!=null))switch(R){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,e));break;default:ee(t,e,R,V,i,k)}return;default:if(vr(e)){for(var ne in n)V=n[ne],n.hasOwnProperty(ne)&&V!==void 0&&!i.hasOwnProperty(ne)&&sc(t,e,ne,void 0,i,V);for(G in i)V=i[G],k=n[G],!i.hasOwnProperty(G)||V===k||V===void 0&&k===void 0||sc(t,e,G,V,i,k);return}}for(var j in n)V=n[j],n.hasOwnProperty(j)&&V!=null&&!i.hasOwnProperty(j)&&ee(t,e,j,null,i,V);for(P in i)V=i[P],k=n[P],!i.hasOwnProperty(P)||V===k||V==null&&k==null||ee(t,e,P,V,i,k)}function em(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Bx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var l=n[i],u=l.transferSize,d=l.initiatorType,y=l.duration;if(u&&y&&em(d)){for(d=0,y=l.responseEnd,i+=1;i<n.length;i++){var M=n[i],R=M.startTime;if(R>y)break;var G=M.transferSize,P=M.initiatorType;G&&em(P)&&(M=M.responseEnd,d+=G*(M<y?1:(y-R)/(M-R)))}if(--i,e+=8*(u+d)/(l.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var lc=null,oc=null;function Eo(t){return t.nodeType===9?t:t.ownerDocument}function nm(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function am(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function rc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var uc=null;function Ux(){var t=window.event;return t&&t.type==="popstate"?t===uc?!1:(uc=t,!0):(uc=null,!1)}var im=typeof setTimeout=="function"?setTimeout:void 0,Hx=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,qx=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(t){return sm.resolve(null).then(t).catch(Yx)}:im;function Yx(t){setTimeout(function(){throw t})}function _a(t){return t==="head"}function lm(t,e){var n=e,i=0;do{var l=n.nextSibling;if(t.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(i===0){t.removeChild(l),ns(e);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")tl(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,tl(n);for(var u=n.firstChild;u;){var d=u.nextSibling,y=u.nodeName;u[wt]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=d}}else n==="body"&&tl(t.ownerDocument.body);n=l}while(n);ns(e)}function om(t,e){var n=t;t=0;do{var i=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=i}while(n)}function cc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":cc(n),Xt(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Gx(t,e,n,i){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!i&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(i){if(!t[wt])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(u=t.getAttribute("rel"),u==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(u!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(u=t.getAttribute("src"),(u!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&u&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var u=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===u)return t}else return t;if(t=En(t.nextSibling),t===null)break}return null}function Xx(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=En(t.nextSibling),t===null))return null;return t}function rm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=En(t.nextSibling),t===null))return null;return t}function fc(t){return t.data==="$?"||t.data==="$~"}function dc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Kx(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var i=function(){e(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),t._reactRetry=i}}function En(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var hc=null;function um(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return En(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function cm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function fm(t,e,n){switch(e=Eo(n),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function tl(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Xt(t)}var wn=new Map,dm=new Set;function wo(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ha=nt.d;nt.d={f:Zx,r:Qx,D:$x,C:Px,L:Fx,m:Jx,X:Ix,S:Wx,M:tv};function Zx(){var t=ha.f(),e=yo();return t||e}function Qx(t){var e=$t(t);e!==null&&e.tag===5&&e.type==="form"?Nh(e):ha.r(t)}var Ii=typeof document>"u"?null:document;function hm(t,e,n){var i=Ii;if(i&&typeof e=="string"&&e){var l=xn(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),dm.has(l)||(dm.add(l),t={rel:t,crossOrigin:n,href:e},i.querySelector(l)===null&&(e=i.createElement("link"),Be(e,"link",t),gt(e),i.head.appendChild(e)))}}function $x(t){ha.D(t),hm("dns-prefetch",t,null)}function Px(t,e){ha.C(t,e),hm("preconnect",t,e)}function Fx(t,e,n){ha.L(t,e,n);var i=Ii;if(i&&t&&e){var l='link[rel="preload"][as="'+xn(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+xn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+xn(n.imageSizes)+'"]')):l+='[href="'+xn(t)+'"]';var u=l;switch(e){case"style":u=ts(t);break;case"script":u=es(t)}wn.has(u)||(t=x({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),wn.set(u,t),i.querySelector(l)!==null||e==="style"&&i.querySelector(el(u))||e==="script"&&i.querySelector(nl(u))||(e=i.createElement("link"),Be(e,"link",t),gt(e),i.head.appendChild(e)))}}function Jx(t,e){ha.m(t,e);var n=Ii;if(n&&t){var i=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+xn(i)+'"][href="'+xn(t)+'"]',u=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=es(t)}if(!wn.has(u)&&(t=x({rel:"modulepreload",href:t},e),wn.set(u,t),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(nl(u)))return}i=n.createElement("link"),Be(i,"link",t),gt(i),n.head.appendChild(i)}}}function Wx(t,e,n){ha.S(t,e,n);var i=Ii;if(i&&t){var l=mt(i).hoistableStyles,u=ts(t);e=e||"default";var d=l.get(u);if(!d){var y={loading:0,preload:null};if(d=i.querySelector(el(u)))y.loading=5;else{t=x({rel:"stylesheet",href:t,"data-precedence":e},n),(n=wn.get(u))&&mc(t,n);var M=d=i.createElement("link");gt(M),Be(M,"link",t),M._p=new Promise(function(R,G){M.onload=R,M.onerror=G}),M.addEventListener("load",function(){y.loading|=1}),M.addEventListener("error",function(){y.loading|=2}),y.loading|=4,jo(d,e,i)}d={type:"stylesheet",instance:d,count:1,state:y},l.set(u,d)}}}function Ix(t,e){ha.X(t,e);var n=Ii;if(n&&t){var i=mt(n).hoistableScripts,l=es(t),u=i.get(l);u||(u=n.querySelector(nl(l)),u||(t=x({src:t,async:!0},e),(e=wn.get(l))&&pc(t,e),u=n.createElement("script"),gt(u),Be(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(l,u))}}function tv(t,e){ha.M(t,e);var n=Ii;if(n&&t){var i=mt(n).hoistableScripts,l=es(t),u=i.get(l);u||(u=n.querySelector(nl(l)),u||(t=x({src:t,async:!0,type:"module"},e),(e=wn.get(l))&&pc(t,e),u=n.createElement("script"),gt(u),Be(u,"link",t),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},i.set(l,u))}}function mm(t,e,n,i){var l=(l=dt.current)?wo(l):null;if(!l)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ts(n.href),n=mt(l).hoistableStyles,i=n.get(e),i||(i={type:"style",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=ts(n.href);var u=mt(l).hoistableStyles,d=u.get(t);if(d||(l=l.ownerDocument||l,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(t,d),(u=l.querySelector(el(t)))&&!u._p&&(d.instance=u,d.state.loading=5),wn.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},wn.set(t,n),u||ev(l,t,n,d.state))),e&&i===null)throw Error(r(528,""));return d}if(e&&i!==null)throw Error(r(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=es(n),n=mt(l).hoistableScripts,i=n.get(e),i||(i={type:"script",instance:null,count:0,state:null},n.set(e,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ts(t){return'href="'+xn(t)+'"'}function el(t){return'link[rel="stylesheet"]['+t+"]"}function pm(t){return x({},t,{"data-precedence":t.precedence,precedence:null})}function ev(t,e,n,i){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?i.loading=1:(e=t.createElement("link"),i.preload=e,e.addEventListener("load",function(){return i.loading|=1}),e.addEventListener("error",function(){return i.loading|=2}),Be(e,"link",n),gt(e),t.head.appendChild(e))}function es(t){return'[src="'+xn(t)+'"]'}function nl(t){return"script[async]"+t}function gm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var i=t.querySelector('style[data-href~="'+xn(n.href)+'"]');if(i)return e.instance=i,gt(i),i;var l=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(t.ownerDocument||t).createElement("style"),gt(i),Be(i,"style",l),jo(i,n.precedence,t),e.instance=i;case"stylesheet":l=ts(n.href);var u=t.querySelector(el(l));if(u)return e.state.loading|=4,e.instance=u,gt(u),u;i=pm(n),(l=wn.get(l))&&mc(i,l),u=(t.ownerDocument||t).createElement("link"),gt(u);var d=u;return d._p=new Promise(function(y,M){d.onload=y,d.onerror=M}),Be(u,"link",i),e.state.loading|=4,jo(u,n.precedence,t),e.instance=u;case"script":return u=es(n.src),(l=t.querySelector(nl(u)))?(e.instance=l,gt(l),l):(i=n,(l=wn.get(u))&&(i=x({},n),pc(i,l)),t=t.ownerDocument||t,l=t.createElement("script"),gt(l),Be(l,"link",i),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(i=e.instance,e.state.loading|=4,jo(i,n.precedence,t));return e.instance}function jo(t,e,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,u=l,d=0;d<i.length;d++){var y=i[d];if(y.dataset.precedence===e)u=y;else if(u!==l)break}u?u.parentNode.insertBefore(t,u.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function mc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function pc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Co=null;function ym(t,e,n){if(Co===null){var i=new Map,l=Co=new Map;l.set(n,i)}else l=Co,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(t))return i;for(i.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var u=n[l];if(!(u[wt]||u[q]||t==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(e)||"";d=t+d;var y=i.get(d);y?y.push(u):i.set(d,[u])}}return i}function xm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function nv(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function vm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function av(t,e,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=ts(i.href),u=e.querySelector(el(l));if(u){e=u._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=No.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=u,gt(u);return}u=e.ownerDocument||e,i=pm(i),(l=wn.get(l))&&mc(i,l),u=u.createElement("link"),gt(u);var d=u;d._p=new Promise(function(y,M){d.onload=y,d.onerror=M}),Be(u,"link",i),n.instance=u}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=No.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var gc=0;function iv(t,e){return t.stylesheets&&t.count===0&&zo(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var i=setTimeout(function(){if(t.stylesheets&&zo(t,t.stylesheets),t.unsuspend){var u=t.unsuspend;t.unsuspend=null,u()}},6e4+e);0<t.imgBytes&&gc===0&&(gc=62500*Bx());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&zo(t,t.stylesheets),t.unsuspend)){var u=t.unsuspend;t.unsuspend=null,u()}},(t.imgBytes>gc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function No(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zo(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Do=null;function zo(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Do=new Map,e.forEach(sv,t),Do=null,No.call(t))}function sv(t,e){if(!(e.state.loading&4)){var n=Do.get(t);if(n)var i=n.get(null);else{n=new Map,Do.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<l.length;u++){var d=l[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),i=d)}i&&n.set(null,i)}l=e.instance,d=l.getAttribute("data-precedence"),u=n.get(d)||i,u===i&&n.set(null,l),n.set(d,l),this.count++,i=No.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),u?u.parentNode.insertBefore(l,u.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var al={$$typeof:z,Provider:null,Consumer:null,_currentValue:et,_currentValue2:et,_threadCount:0};function lv(t,e,n,i,l,u,d,y,M){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ti(0),this.hiddenUpdates=Ti(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function bm(t,e,n,i,l,u,d,y,M,R,G,P){return t=new lv(t,e,n,d,M,R,G,P,y),e=1,u===!0&&(e|=24),u=rn(3,null,null,e),t.current=u,u.stateNode=t,e=Pr(),e.refCount++,t.pooledCache=e,e.refCount++,u.memoizedState={element:i,isDehydrated:n,cache:e},Ir(u),t}function Sm(t){return t?(t=Ri,t):Ri}function Tm(t,e,n,i,l,u){l=Sm(l),i.context===null?i.context=l:i.pendingContext=l,i=Ma(e),i.payload={element:n},u=u===void 0?null:u,u!==null&&(i.callback=u),n=Ea(t,i,e),n!==null&&(tn(n,t,e),_s(n,t,e))}function Am(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function yc(t,e){Am(t,e),(t=t.alternate)&&Am(t,e)}function Mm(t){if(t.tag===13||t.tag===31){var e=ei(t,67108864);e!==null&&tn(e,t,67108864),yc(t,67108864)}}function Em(t){if(t.tag===13||t.tag===31){var e=hn();e=gs(e);var n=ei(t,e);n!==null&&tn(n,t,e),yc(t,e)}}var Ro=!0;function ov(t,e,n,i){var l=N.T;N.T=null;var u=nt.p;try{nt.p=2,xc(t,e,n,i)}finally{nt.p=u,N.T=l}}function rv(t,e,n,i){var l=N.T;N.T=null;var u=nt.p;try{nt.p=8,xc(t,e,n,i)}finally{nt.p=u,N.T=l}}function xc(t,e,n,i){if(Ro){var l=vc(i);if(l===null)ic(t,e,i,Oo,n),jm(t,i);else if(cv(l,t,e,n,i))i.stopPropagation();else if(jm(t,i),e&4&&-1<uv.indexOf(t)){for(;l!==null;){var u=$t(l);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=me(u.pendingLanes);if(d!==0){var y=u;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var M=1<<31-Qt(d);y.entanglements[1]|=M,d&=~M}Kn(u),(Gt&6)===0&&(po=Ce()+500,Js(0))}}break;case 31:case 13:y=ei(u,2),y!==null&&tn(y,u,2),yo(),yc(u,2)}if(u=vc(i),u===null&&ic(t,e,i,Oo,n),u===l)break;l=u}l!==null&&i.stopPropagation()}else ic(t,e,i,null,n)}}function vc(t){return t=Sr(t),bc(t)}var Oo=null;function bc(t){if(Oo=null,t=Ht(t),t!==null){var e=m(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=f(e),t!==null)return t;t=null}else if(n===31){if(t=p(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Oo=t,null}function wm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ms()){case $a:return 2;case Oe:return 8;case yn:case tt:return 32;case Mt:return 268435456;default:return 32}default:return 32}}var Sc=!1,ka=null,La=null,Ba=null,il=new Map,sl=new Map,Ua=[],uv="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 jm(t,e){switch(t){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":La=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":il.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(e.pointerId)}}function ll(t,e,n,i,l,u){return t===null||t.nativeEvent!==u?(t={blockedOn:e,domEventName:n,eventSystemFlags:i,nativeEvent:u,targetContainers:[l]},e!==null&&(e=$t(e),e!==null&&Mm(e)),t):(t.eventSystemFlags|=i,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function cv(t,e,n,i,l){switch(e){case"focusin":return ka=ll(ka,t,e,n,i,l),!0;case"dragenter":return La=ll(La,t,e,n,i,l),!0;case"mouseover":return Ba=ll(Ba,t,e,n,i,l),!0;case"pointerover":var u=l.pointerId;return il.set(u,ll(il.get(u)||null,t,e,n,i,l)),!0;case"gotpointercapture":return u=l.pointerId,sl.set(u,ll(sl.get(u)||null,t,e,n,i,l)),!0}return!1}function Cm(t){var e=Ht(t.target);if(e!==null){var n=m(e);if(n!==null){if(e=n.tag,e===13){if(e=f(n),e!==null){t.blockedOn=e,jl(t.priority,function(){Em(n)});return}}else if(e===31){if(e=p(n),e!==null){t.blockedOn=e,jl(t.priority,function(){Em(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Vo(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=vc(t.nativeEvent);if(n===null){n=t.nativeEvent;var i=new n.constructor(n.type,n);br=i,n.target.dispatchEvent(i),br=null}else return e=$t(n),e!==null&&Mm(e),t.blockedOn=n,!1;e.shift()}return!0}function Nm(t,e,n){Vo(t)&&n.delete(e)}function fv(){Sc=!1,ka!==null&&Vo(ka)&&(ka=null),La!==null&&Vo(La)&&(La=null),Ba!==null&&Vo(Ba)&&(Ba=null),il.forEach(Nm),sl.forEach(Nm)}function _o(t,e){t.blockedOn===e&&(t.blockedOn=null,Sc||(Sc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,fv)))}var ko=null;function Dm(t){ko!==t&&(ko=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){ko===t&&(ko=null);for(var e=0;e<t.length;e+=3){var n=t[e],i=t[e+1],l=t[e+2];if(typeof i!="function"){if(bc(i||n)===null)continue;break}var u=$t(n);u!==null&&(t.splice(e,3),e-=3,vu(u,{pending:!0,data:l,method:n.method,action:i},i,l))}}))}function ns(t){function e(M){return _o(M,t)}ka!==null&&_o(ka,t),La!==null&&_o(La,t),Ba!==null&&_o(Ba,t),il.forEach(e),sl.forEach(e);for(var n=0;n<Ua.length;n++){var i=Ua[n];i.blockedOn===t&&(i.blockedOn=null)}for(;0<Ua.length&&(n=Ua[0],n.blockedOn===null);)Cm(n),n.blockedOn===null&&Ua.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],u=n[i+1],d=l[$]||null;if(typeof u=="function")d||Dm(n);else if(d){var y=null;if(u&&u.hasAttribute("formAction")){if(l=u,d=u[$]||null)y=d.formAction;else if(bc(l)!==null)continue}else y=d.action;typeof y=="function"?n[i+1]=y:(n.splice(i,3),i-=3),Dm(n)}}}function zm(){function t(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(d){return l=d})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,l=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),l!==null&&(l(),l=null)}}}function Tc(t){this._internalRoot=t}Lo.prototype.render=Tc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var n=e.current,i=hn();Tm(n,i,t,e,null,null)},Lo.prototype.unmount=Tc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Tm(t.current,2,null,t,null,null),yo(),e[J]=null}};function Lo(t){this._internalRoot=t}Lo.prototype.unstable_scheduleHydration=function(t){if(t){var e=wl();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Ua.length&&e!==0&&e<Ua[n].priority;n++);Ua.splice(n,0,t),n===0&&Cm(t)}};var Rm=s.version;if(Rm!=="19.2.6")throw Error(r(527,Rm,"19.2.6"));nt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var dv={bundleType:0,version:"19.2.6",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.6"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bo.isDisabled&&Bo.supportsFiber)try{re=Bo.inject(dv),ae=Bo}catch{}}return rl.createRoot=function(t,e){if(!c(t))throw Error(r(299));var n=!1,i="",l=Uh,u=Hh,d=qh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(u=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError)),e=bm(t,1,!1,null,null,n,i,null,l,u,d,zm),t[J]=e.current,ac(t),new Tc(e)},rl.hydrateRoot=function(t,e,n){if(!c(t))throw Error(r(299));var i=!1,l="",u=Uh,d=Hh,y=qh,M=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(M=n.formState)),e=bm(t,1,!0,e,n??null,i,l,M,u,d,y,zm),e.context=Sm(null),n=e.current,i=hn(),i=gs(i),l=Ma(i),l.callback=null,Ea(n,l,i),n=i,e.current.lanes=n,ga(e,n),Kn(e),t[J]=e.current,ac(t),new Lo(e)},rl.version="19.2.6",rl}var Ym;function Av(){if(Ym)return Mc.exports;Ym=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(s){console.error(s)}}return a(),Mc.exports=Tv(),Mc.exports}var Mv=Av(),H=bf();const Re=mv(H);const Ev=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),wv=a=>a.replace(/^([A-Z])|[\s-_]+(\w)/g,(s,o,r)=>r?r.toUpperCase():o.toLowerCase()),Gm=a=>{const s=wv(a);return s.charAt(0).toUpperCase()+s.slice(1)},xg=(...a)=>a.filter((s,o,r)=>!!s&&s.trim()!==""&&r.indexOf(s)===o).join(" ").trim(),jv=a=>{for(const s in a)if(s.startsWith("aria-")||s==="role"||s==="title")return!0};var Cv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Nv=H.forwardRef(({color:a="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:r,className:c="",children:m,iconNode:f,...p},v)=>H.createElement("svg",{ref:v,...Cv,width:s,height:s,stroke:a,strokeWidth:r?Number(o)*24/Number(s):o,className:xg("lucide",c),...!m&&!jv(p)&&{"aria-hidden":"true"},...p},[...f.map(([g,b])=>H.createElement(g,b)),...Array.isArray(m)?m:[m]]));const Rt=(a,s)=>{const o=H.forwardRef(({className:r,...c},m)=>H.createElement(Nv,{ref:m,iconNode:s,className:xg(`lucide-${Ev(Gm(a))}`,`lucide-${a}`,r),...c}));return o.displayName=Gm(a),o};const Dv=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Io=Rt("activity",Dv);const zv=[["path",{d:"M12 22V8",key:"qkxhtm"}],["path",{d:"M5 12H2a10 10 0 0 0 20 0h-3",key:"1hv3nh"}],["circle",{cx:"12",cy:"5",r:"3",key:"rqqgnr"}]],Xm=Rt("anchor",zv);const Rv=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],vg=Rt("book-open",Rv);const Ov=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Km=Rt("check",Ov);const Vv=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],bg=Rt("chevron-left",Vv);const _v=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Zc=Rt("chevron-right",_v);const kv=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Lv=Rt("circle-question-mark",kv);const Bv=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],Uv=Rt("code",Bv);const Hv=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],os=Rt("copy",Hv);const qv=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Yv=Rt("cpu",qv);const Gv=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Zm=Rt("database",Gv);const Xv=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Sg=Rt("eye-off",Xv);const Kv=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Zv=Rt("eye",Kv);const Qv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]],$v=Rt("file-down",Qv);const Pv=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Fv=Rt("file-text",Pv);const Jv=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Qm=Rt("folder",Jv);const Wv=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],tr=Rt("layers",Wv);const Iv=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Tg=Rt("map",Iv);const tb=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],eb=Rt("maximize",tb);const nb=[["path",{d:"M5 12h14",key:"1ays0h"}]],ab=Rt("minus",nb);const ib=[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]],sb=Rt("network",ib);const lb=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],$m=Rt("package",lb);const ob=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]],rb=Rt("pin-off",ob);const ub=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],cb=Rt("pin",ub);const fb=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],db=Rt("play",fb);const hb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mb=Rt("plus",hb);const pb=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],Pm=Rt("refresh-ccw",pb);const gb=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],yb=Rt("refresh-cw",gb);const xb=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Fm=Rt("rocket",xb);const vb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],bb=Rt("search",vb);const Sb=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Tb=Rt("settings",Sb);const Ab=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],Mb=Rt("shield-alert",Ab);const Eb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jm=Rt("shield-check",Eb);const wb=[["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M12 21v-9",key:"17s77i"}],["path",{d:"M12 8V3",key:"13r4qs"}],["path",{d:"M17 16h4",key:"h1uq16"}],["path",{d:"M19 12V3",key:"o1uvq1"}],["path",{d:"M19 21v-5",key:"qua636"}],["path",{d:"M3 14h4",key:"bcjad9"}],["path",{d:"M5 10V3",key:"cb8scm"}],["path",{d:"M5 21v-7",key:"1w1uti"}]],Qc=Rt("sliders-vertical",wb);const jb=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Cb=Rt("trash",jb);const Nb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],xi=Rt("x",Nb);const Db=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Wm=Rt("zap",Db);const zb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Rb=Rt("zoom-in",zb);const Ob=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],Vb=Rt("zoom-out",Ob),Sf=H.createContext({});function Tf(a){const s=H.useRef(null);return s.current===null&&(s.current=a()),s.current}const _b=typeof window<"u",Ag=_b?H.useLayoutEffect:H.useEffect,fr=H.createContext(null);function Af(a,s){a.indexOf(s)===-1&&a.push(s)}function er(a,s){const o=a.indexOf(s);o>-1&&a.splice(o,1)}const Pn=(a,s,o)=>o>s?s:o<a?a:o;let Mf=()=>{};const Ya={},Mg=a=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(a),Eg=a=>typeof a=="object"&&a!==null,wg=a=>/^0[^.\s]+$/u.test(a);function jg(a){let s;return()=>(s===void 0&&(s=a()),s)}const Cn=a=>a,vl=(...a)=>a.reduce((s,o)=>r=>o(s(r))),pl=(a,s,o)=>{const r=s-a;return r?(o-a)/r:1};class Ef{constructor(){this.subscriptions=[]}add(s){return Af(this.subscriptions,s),()=>er(this.subscriptions,s)}notify(s,o,r){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](s,o,r);else for(let m=0;m<c;m++){const f=this.subscriptions[m];f&&f(s,o,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mn=a=>a*1e3,jn=a=>a/1e3,Cg=(a,s)=>s?a*(1e3/s):0,Ng=(a,s,o)=>(((1-3*o+3*s)*a+(3*o-6*s))*a+3*s)*a,kb=1e-7,Lb=12;function Bb(a,s,o,r,c){let m,f,p=0;do f=s+(o-s)/2,m=Ng(f,r,c)-a,m>0?o=f:s=f;while(Math.abs(m)>kb&&++p<Lb);return f}function bl(a,s,o,r){if(a===s&&o===r)return Cn;const c=m=>Bb(m,0,1,a,o);return m=>m===0||m===1?m:Ng(c(m),s,r)}const Dg=a=>s=>s<=.5?a(2*s)/2:(2-a(2*(1-s)))/2,zg=a=>s=>1-a(1-s),Rg=bl(.33,1.53,.69,.99),wf=zg(Rg),Og=Dg(wf),Vg=a=>a>=1?1:(a*=2)<1?.5*wf(a):.5*(2-Math.pow(2,-10*(a-1))),jf=a=>1-Math.sin(Math.acos(a)),_g=zg(jf),kg=Dg(jf),Ub=bl(.42,0,1,1),Hb=bl(0,0,.58,1),Lg=bl(.42,0,.58,1),qb=a=>Array.isArray(a)&&typeof a[0]!="number",Bg=a=>Array.isArray(a)&&typeof a[0]=="number",Yb={linear:Cn,easeIn:Ub,easeInOut:Lg,easeOut:Hb,circIn:jf,circInOut:kg,circOut:_g,backIn:wf,backInOut:Og,backOut:Rg,anticipate:Vg},Gb=a=>typeof a=="string",Im=a=>{if(Bg(a)){Mf(a.length===4);const[s,o,r,c]=a;return bl(s,o,r,c)}else if(Gb(a))return Yb[a];return a},Uo=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Xb(a,s){let o=new Set,r=new Set,c=!1,m=!1;const f=new WeakSet;let p={delta:0,timestamp:0,isProcessing:!1};function v(b){f.has(b)&&(g.schedule(b),a()),b(p)}const g={schedule:(b,x=!1,A=!1)=>{const O=A&&c?o:r;return x&&f.add(b),O.add(b),b},cancel:b=>{r.delete(b),f.delete(b)},process:b=>{if(p=b,c){m=!0;return}c=!0;const x=o;o=r,r=x,o.forEach(v),o.clear(),c=!1,m&&(m=!1,g.process(b))}};return g}const Kb=40;function Ug(a,s){let o=!1,r=!0;const c={delta:0,timestamp:0,isProcessing:!1},m=()=>o=!0,f=Uo.reduce((z,X)=>(z[X]=Xb(m),z),{}),{setup:p,read:v,resolveKeyframes:g,preUpdate:b,update:x,preRender:A,render:E,postRender:O}=f,_=()=>{const z=Ya.useManualTiming,X=z?c.timestamp:performance.now();o=!1,z||(c.delta=r?1e3/60:Math.max(Math.min(X-c.timestamp,Kb),1)),c.timestamp=X,c.isProcessing=!0,p.process(c),v.process(c),g.process(c),b.process(c),x.process(c),A.process(c),E.process(c),O.process(c),c.isProcessing=!1,o&&s&&(r=!1,a(_))},U=()=>{o=!0,r=!0,c.isProcessing||a(_)};return{schedule:Uo.reduce((z,X)=>{const st=f[X];return z[X]=(Y,F=!1,K=!1)=>(o||U(),st.schedule(Y,F,K)),z},{}),cancel:z=>{for(let X=0;X<Uo.length;X++)f[Uo[X]].cancel(z)},state:c,steps:f}}const{schedule:le,cancel:Ga,state:Ue,steps:Nc}=Ug(typeof requestAnimationFrame<"u"?requestAnimationFrame:Cn,!0);let Xo;function Zb(){Xo=void 0}const Ze={now:()=>(Xo===void 0&&Ze.set(Ue.isProcessing||Ya.useManualTiming?Ue.timestamp:performance.now()),Xo),set:a=>{Xo=a,queueMicrotask(Zb)}},Hg=a=>s=>typeof s=="string"&&s.startsWith(a),qg=Hg("--"),Qb=Hg("var(--"),Cf=a=>Qb(a)?$b.test(a.split("/*")[0].trim()):!1,$b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function tp(a){return typeof a!="string"?!1:a.split("/*")[0].includes("var(--")}const cs={test:a=>typeof a=="number",parse:parseFloat,transform:a=>a},gl={...cs,transform:a=>Pn(0,1,a)},Ho={...cs,default:1},fl=a=>Math.round(a*1e5)/1e5,Nf=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Pb(a){return a==null}const Fb=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Df=(a,s)=>o=>!!(typeof o=="string"&&Fb.test(o)&&o.startsWith(a)||s&&!Pb(o)&&Object.prototype.hasOwnProperty.call(o,s)),Yg=(a,s,o)=>r=>{if(typeof r!="string")return r;const[c,m,f,p]=r.match(Nf);return{[a]:parseFloat(c),[s]:parseFloat(m),[o]:parseFloat(f),alpha:p!==void 0?parseFloat(p):1}},Jb=a=>Pn(0,255,a),Dc={...cs,transform:a=>Math.round(Jb(a))},gi={test:Df("rgb","red"),parse:Yg("red","green","blue"),transform:({red:a,green:s,blue:o,alpha:r=1})=>"rgba("+Dc.transform(a)+", "+Dc.transform(s)+", "+Dc.transform(o)+", "+fl(gl.transform(r))+")"};function Wb(a){let s="",o="",r="",c="";return a.length>5?(s=a.substring(1,3),o=a.substring(3,5),r=a.substring(5,7),c=a.substring(7,9)):(s=a.substring(1,2),o=a.substring(2,3),r=a.substring(3,4),c=a.substring(4,5),s+=s,o+=o,r+=r,c+=c),{red:parseInt(s,16),green:parseInt(o,16),blue:parseInt(r,16),alpha:c?parseInt(c,16)/255:1}}const $c={test:Df("#"),parse:Wb,transform:gi.transform},Sl=a=>({test:s=>typeof s=="string"&&s.endsWith(a)&&s.split(" ").length===1,parse:parseFloat,transform:s=>`${s}${a}`}),ma=Sl("deg"),$n=Sl("%"),ut=Sl("px"),Ib=Sl("vh"),t2=Sl("vw"),ep={...$n,parse:a=>$n.parse(a)/100,transform:a=>$n.transform(a*100)},is={test:Df("hsl","hue"),parse:Yg("hue","saturation","lightness"),transform:({hue:a,saturation:s,lightness:o,alpha:r=1})=>"hsla("+Math.round(a)+", "+$n.transform(fl(s))+", "+$n.transform(fl(o))+", "+fl(gl.transform(r))+")"},Me={test:a=>gi.test(a)||$c.test(a)||is.test(a),parse:a=>gi.test(a)?gi.parse(a):is.test(a)?is.parse(a):$c.parse(a),transform:a=>typeof a=="string"?a:a.hasOwnProperty("red")?gi.transform(a):is.transform(a),getAnimatableNone:a=>{const s=Me.parse(a);return s.alpha=0,Me.transform(s)}},e2=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function n2(a){return isNaN(a)&&typeof a=="string"&&(a.match(Nf)?.length||0)+(a.match(e2)?.length||0)>0}const Gg="number",Xg="color",a2="var",i2="var(",np="${}",s2=/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 rs(a){const s=a.toString(),o=[],r={color:[],number:[],var:[]},c=[];let m=0;const p=s.replace(s2,v=>(Me.test(v)?(r.color.push(m),c.push(Xg),o.push(Me.parse(v))):v.startsWith(i2)?(r.var.push(m),c.push(a2),o.push(v)):(r.number.push(m),c.push(Gg),o.push(parseFloat(v))),++m,np)).split(np);return{values:o,split:p,indexes:r,types:c}}function l2(a){return rs(a).values}function Kg({split:a,types:s}){const o=a.length;return r=>{let c="";for(let m=0;m<o;m++)if(c+=a[m],r[m]!==void 0){const f=s[m];f===Gg?c+=fl(r[m]):f===Xg?c+=Me.transform(r[m]):c+=r[m]}return c}}function o2(a){return Kg(rs(a))}const r2=a=>typeof a=="number"?0:Me.test(a)?Me.getAnimatableNone(a):a,u2=(a,s)=>typeof a=="number"?s?.trim().endsWith("/")?a:0:r2(a);function c2(a){const s=rs(a);return Kg(s)(s.values.map((r,c)=>u2(r,s.split[c])))}const kn={test:n2,parse:l2,createTransformer:o2,getAnimatableNone:c2};function zc(a,s,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?a+(s-a)*6*o:o<1/2?s:o<2/3?a+(s-a)*(2/3-o)*6:a}function f2({hue:a,saturation:s,lightness:o,alpha:r}){a/=360,s/=100,o/=100;let c=0,m=0,f=0;if(!s)c=m=f=o;else{const p=o<.5?o*(1+s):o+s-o*s,v=2*o-p;c=zc(v,p,a+1/3),m=zc(v,p,a),f=zc(v,p,a-1/3)}return{red:Math.round(c*255),green:Math.round(m*255),blue:Math.round(f*255),alpha:r}}function nr(a,s){return o=>o>0?s:a}const se=(a,s,o)=>a+(s-a)*o,Rc=(a,s,o)=>{const r=a*a,c=o*(s*s-r)+r;return c<0?0:Math.sqrt(c)},d2=[$c,gi,is],h2=a=>d2.find(s=>s.test(a));function ap(a){const s=h2(a);if(!s)return!1;let o=s.parse(a);return s===is&&(o=f2(o)),o}const ip=(a,s)=>{const o=ap(a),r=ap(s);if(!o||!r)return nr(a,s);const c={...o};return m=>(c.red=Rc(o.red,r.red,m),c.green=Rc(o.green,r.green,m),c.blue=Rc(o.blue,r.blue,m),c.alpha=se(o.alpha,r.alpha,m),gi.transform(c))},Pc=new Set(["none","hidden"]);function m2(a,s){return Pc.has(a)?o=>o<=0?a:s:o=>o>=1?s:a}function p2(a,s){return o=>se(a,s,o)}function zf(a){return typeof a=="number"?p2:typeof a=="string"?Cf(a)?nr:Me.test(a)?ip:x2:Array.isArray(a)?Zg:typeof a=="object"?Me.test(a)?ip:g2:nr}function Zg(a,s){const o=[...a],r=o.length,c=a.map((m,f)=>zf(m)(m,s[f]));return m=>{for(let f=0;f<r;f++)o[f]=c[f](m);return o}}function g2(a,s){const o={...a,...s},r={};for(const c in o)a[c]!==void 0&&s[c]!==void 0&&(r[c]=zf(a[c])(a[c],s[c]));return c=>{for(const m in r)o[m]=r[m](c);return o}}function y2(a,s){const o=[],r={color:0,var:0,number:0};for(let c=0;c<s.values.length;c++){const m=s.types[c],f=a.indexes[m][r[m]],p=a.values[f]??0;o[c]=p,r[m]++}return o}const x2=(a,s)=>{const o=kn.createTransformer(s),r=rs(a),c=rs(s);return r.indexes.var.length===c.indexes.var.length&&r.indexes.color.length===c.indexes.color.length&&r.indexes.number.length>=c.indexes.number.length?Pc.has(a)&&!c.values.length||Pc.has(s)&&!r.values.length?m2(a,s):vl(Zg(y2(r,c),c.values),o):nr(a,s)};function Qg(a,s,o){return typeof a=="number"&&typeof s=="number"&&typeof o=="number"?se(a,s,o):zf(a)(a,s)}const v2=a=>{const s=({timestamp:o})=>a(o);return{start:(o=!0)=>le.update(s,o),stop:()=>Ga(s),now:()=>Ue.isProcessing?Ue.timestamp:Ze.now()}},$g=(a,s,o=10)=>{let r="";const c=Math.max(Math.round(s/o),2);for(let m=0;m<c;m++)r+=Math.round(a(m/(c-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},ar=2e4;function Rf(a){let s=0;const o=50;let r=a.next(s);for(;!r.done&&s<ar;)s+=o,r=a.next(s);return s>=ar?1/0:s}function b2(a,s=100,o){const r=o({...a,keyframes:[0,s]}),c=Math.min(Rf(r),ar);return{type:"keyframes",ease:m=>r.next(c*m).value/s,duration:jn(c)}}const ye={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};function Fc(a,s){return a*Math.sqrt(1-s*s)}const S2=12;function T2(a,s,o){let r=o;for(let c=1;c<S2;c++)r=r-a(r)/s(r);return r}const Oc=.001;function A2({duration:a=ye.duration,bounce:s=ye.bounce,velocity:o=ye.velocity,mass:r=ye.mass}){let c,m,f=1-s;f=Pn(ye.minDamping,ye.maxDamping,f),a=Pn(ye.minDuration,ye.maxDuration,jn(a)),f<1?(c=g=>{const b=g*f,x=b*a,A=b-o,E=Fc(g,f),O=Math.exp(-x);return Oc-A/E*O},m=g=>{const x=g*f*a,A=x*o+o,E=Math.pow(f,2)*Math.pow(g,2)*a,O=Math.exp(-x),_=Fc(Math.pow(g,2),f);return(-c(g)+Oc>0?-1:1)*((A-E)*O)/_}):(c=g=>{const b=Math.exp(-g*a),x=(g-o)*a+1;return-Oc+b*x},m=g=>{const b=Math.exp(-g*a),x=(o-g)*(a*a);return b*x});const p=5/a,v=T2(c,m,p);if(a=mn(a),isNaN(v))return{stiffness:ye.stiffness,damping:ye.damping,duration:a};{const g=Math.pow(v,2)*r;return{stiffness:g,damping:f*2*Math.sqrt(r*g),duration:a}}}const M2=["duration","bounce"],E2=["stiffness","damping","mass"];function sp(a,s){return s.some(o=>a[o]!==void 0)}function w2(a){let s={velocity:ye.velocity,stiffness:ye.stiffness,damping:ye.damping,mass:ye.mass,isResolvedFromDuration:!1,...a};if(!sp(a,E2)&&sp(a,M2))if(s.velocity=0,a.visualDuration){const o=a.visualDuration,r=2*Math.PI/(o*1.2),c=r*r,m=2*Pn(.05,1,1-(a.bounce||0))*Math.sqrt(c);s={...s,mass:ye.mass,stiffness:c,damping:m}}else{const o=A2({...a,velocity:0});s={...s,...o,mass:ye.mass},s.isResolvedFromDuration=!0}return s}function ir(a=ye.visualDuration,s=ye.bounce){const o=typeof a!="object"?{visualDuration:a,keyframes:[0,1],bounce:s}:a;let{restSpeed:r,restDelta:c}=o;const m=o.keyframes[0],f=o.keyframes[o.keyframes.length-1],p={done:!1,value:m},{stiffness:v,damping:g,mass:b,duration:x,velocity:A,isResolvedFromDuration:E}=w2({...o,velocity:-jn(o.velocity||0)}),O=A||0,_=g/(2*Math.sqrt(v*b)),U=f-m,Q=jn(Math.sqrt(v/b)),B=Math.abs(U)<5;r||(r=B?ye.restSpeed.granular:ye.restSpeed.default),c||(c=B?ye.restDelta.granular:ye.restDelta.default);let z,X,st,Y,F,K;if(_<1)st=Fc(Q,_),Y=(O+_*Q*U)/st,z=I=>{const lt=Math.exp(-_*Q*I);return f-lt*(Y*Math.sin(st*I)+U*Math.cos(st*I))},F=_*Q*Y+U*st,K=_*Q*U-Y*st,X=I=>Math.exp(-_*Q*I)*(F*Math.sin(st*I)+K*Math.cos(st*I));else if(_===1){z=lt=>f-Math.exp(-Q*lt)*(U+(O+Q*U)*lt);const I=O+Q*U;X=lt=>Math.exp(-Q*lt)*(Q*I*lt-O)}else{const I=Q*Math.sqrt(_*_-1);z=Et=>{const jt=Math.exp(-_*Q*Et),N=Math.min(I*Et,300);return f-jt*((O+_*Q*U)*Math.sinh(N)+I*U*Math.cosh(N))/I};const lt=(O+_*Q*U)/I,ft=_*Q*lt-U*I,Ot=_*Q*U-lt*I;X=Et=>{const jt=Math.exp(-_*Q*Et),N=Math.min(I*Et,300);return jt*(ft*Math.sinh(N)+Ot*Math.cosh(N))}}const W={calculatedDuration:E&&x||null,velocity:I=>mn(X(I)),next:I=>{if(!E&&_<1){const ft=Math.exp(-_*Q*I),Ot=Math.sin(st*I),Et=Math.cos(st*I),jt=f-ft*(Y*Ot+U*Et),N=mn(ft*(F*Ot+K*Et));return p.done=Math.abs(N)<=r&&Math.abs(f-jt)<=c,p.value=p.done?f:jt,p}const lt=z(I);if(E)p.done=I>=x;else{const ft=mn(X(I));p.done=Math.abs(ft)<=r&&Math.abs(f-lt)<=c}return p.value=p.done?f:lt,p},toString:()=>{const I=Math.min(Rf(W),ar),lt=$g(ft=>W.next(I*ft).value,I,30);return I+"ms "+lt},toTransition:()=>{}};return W}ir.applyToOptions=a=>{const s=b2(a,100,ir);return a.ease=s.ease,a.duration=mn(s.duration),a.type="keyframes",a};const j2=5;function Pg(a,s,o){const r=Math.max(s-j2,0);return Cg(o-a(r),s-r)}function Jc({keyframes:a,velocity:s=0,power:o=.8,timeConstant:r=325,bounceDamping:c=10,bounceStiffness:m=500,modifyTarget:f,min:p,max:v,restDelta:g=.5,restSpeed:b}){const x=a[0],A={done:!1,value:x},E=K=>p!==void 0&&K<p||v!==void 0&&K>v,O=K=>p===void 0?v:v===void 0||Math.abs(p-K)<Math.abs(v-K)?p:v;let _=o*s;const U=x+_,Q=f===void 0?U:f(U);Q!==U&&(_=Q-x);const B=K=>-_*Math.exp(-K/r),z=K=>Q+B(K),X=K=>{const W=B(K),I=z(K);A.done=Math.abs(W)<=g,A.value=A.done?Q:I};let st,Y;const F=K=>{E(A.value)&&(st=K,Y=ir({keyframes:[A.value,O(A.value)],velocity:Pg(z,K,A.value),damping:c,stiffness:m,restDelta:g,restSpeed:b}))};return F(0),{calculatedDuration:null,next:K=>{let W=!1;return!Y&&st===void 0&&(W=!0,X(K),F(K)),st!==void 0&&K>=st?Y.next(K-st):(!W&&X(K),A)}}}function C2(a,s,o){const r=[],c=o||Ya.mix||Qg,m=a.length-1;for(let f=0;f<m;f++){let p=c(a[f],a[f+1]);if(s){const v=Array.isArray(s)?s[f]||Cn:s;p=vl(v,p)}r.push(p)}return r}function N2(a,s,{clamp:o=!0,ease:r,mixer:c}={}){const m=a.length;if(Mf(m===s.length),m===1)return()=>s[0];if(m===2&&s[0]===s[1])return()=>s[1];const f=a[0]===a[1];a[0]>a[m-1]&&(a=[...a].reverse(),s=[...s].reverse());const p=C2(s,r,c),v=p.length,g=b=>{if(f&&b<a[0])return s[0];let x=0;if(v>1)for(;x<a.length-2&&!(b<a[x+1]);x++);const A=pl(a[x],a[x+1],b);return p[x](A)};return o?b=>g(Pn(a[0],a[m-1],b)):g}function D2(a,s){const o=a[a.length-1];for(let r=1;r<=s;r++){const c=pl(0,s,r);a.push(se(o,1,c))}}function z2(a){const s=[0];return D2(s,a.length-1),s}function R2(a,s){return a.map(o=>o*s)}function O2(a,s){return a.map(()=>s||Lg).splice(0,a.length-1)}function dl({duration:a=300,keyframes:s,times:o,ease:r="easeInOut"}){const c=qb(r)?r.map(Im):Im(r),m={done:!1,value:s[0]},f=R2(o&&o.length===s.length?o:z2(s),a),p=N2(f,s,{ease:Array.isArray(c)?c:O2(s,c)});return{calculatedDuration:a,next:v=>(m.value=p(v),m.done=v>=a,m)}}const V2=a=>a!==null;function dr(a,{repeat:s,repeatType:o="loop"},r,c=1){const m=a.filter(V2),p=c<0||s&&o!=="loop"&&s%2===1?0:m.length-1;return!p||r===void 0?m[p]:r}const _2={decay:Jc,inertia:Jc,tween:dl,keyframes:dl,spring:ir};function Fg(a){typeof a.type=="string"&&(a.type=_2[a.type])}class Of{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(s=>{this.resolve=s})}notifyFinished(){this.resolve()}then(s,o){return this.finished.then(s,o)}}const k2=a=>a/100;class sr extends Of{constructor(s){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:o}=this.options;o&&o.updatedAt!==Ze.now()&&this.tick(Ze.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=s,this.initAnimation(),this.play(),s.autoplay===!1&&this.pause()}initAnimation(){const{options:s}=this;Fg(s);const{type:o=dl,repeat:r=0,repeatDelay:c=0,repeatType:m,velocity:f=0}=s;let{keyframes:p}=s;const v=o||dl;v!==dl&&typeof p[0]!="number"&&(this.mixKeyframes=vl(k2,Qg(p[0],p[1])),p=[0,100]);const g=v({...s,keyframes:p});m==="mirror"&&(this.mirroredGenerator=v({...s,keyframes:[...p].reverse(),velocity:-f})),g.calculatedDuration===null&&(g.calculatedDuration=Rf(g));const{calculatedDuration:b}=g;this.calculatedDuration=b,this.resolvedDuration=b+c,this.totalDuration=this.resolvedDuration*(r+1)-c,this.generator=g}updateTime(s){const o=Math.round(s-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=o}tick(s,o=!1){const{generator:r,totalDuration:c,mixKeyframes:m,mirroredGenerator:f,resolvedDuration:p,calculatedDuration:v}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:b,repeat:x,repeatType:A,repeatDelay:E,type:O,onUpdate:_,finalKeyframe:U}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,s):this.speed<0&&(this.startTime=Math.min(s-c/this.speed,this.startTime)),o?this.currentTime=s:this.updateTime(s);const Q=this.currentTime-g*(this.playbackSpeed>=0?1:-1),B=this.playbackSpeed>=0?Q<0:Q>c;this.currentTime=Math.max(Q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let z=this.currentTime,X=r;if(x){const K=Math.min(this.currentTime,c)/p;let W=Math.floor(K),I=K%1;!I&&K>=1&&(I=1),I===1&&W--,W=Math.min(W,x+1),W%2&&(A==="reverse"?(I=1-I,E&&(I-=E/p)):A==="mirror"&&(X=f)),z=Pn(0,1,I)*p}let st;B?(this.delayState.value=b[0],st=this.delayState):st=X.next(z),m&&!B&&(st.value=m(st.value));let{done:Y}=st;!B&&v!==null&&(Y=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Y);return F&&O!==Jc&&(st.value=dr(b,this.options,U,this.speed)),_&&_(st.value),F&&this.finish(),st}then(s,o){return this.finished.then(s,o)}get duration(){return jn(this.calculatedDuration)}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+jn(s)}get time(){return jn(this.currentTime)}set time(s){s=mn(s),this.currentTime=s,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=s:this.driver&&(this.startTime=this.driver.now()-s/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=s,this.tick(s))}getGeneratorVelocity(){const s=this.currentTime;if(s<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(s);const o=this.generator.next(s).value;return Pg(r=>this.generator.next(r).value,s,o)}get speed(){return this.playbackSpeed}set speed(s){const o=this.playbackSpeed!==s;o&&this.driver&&this.updateTime(Ze.now()),this.playbackSpeed=s,o&&this.driver&&(this.time=jn(this.currentTime))}play(){if(this.isStopped)return;const{driver:s=v2,startTime:o}=this.options;this.driver||(this.driver=s(c=>this.tick(c))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=o??r),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(Ze.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(s){return this.startTime=0,this.tick(s,!0)}attachTimeline(s){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),s.observe(this)}}function L2(a){for(let s=1;s<a.length;s++)a[s]??(a[s]=a[s-1])}const yi=a=>a*180/Math.PI,Wc=a=>{const s=yi(Math.atan2(a[1],a[0]));return Ic(s)},B2={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:a=>(Math.abs(a[0])+Math.abs(a[3]))/2,rotate:Wc,rotateZ:Wc,skewX:a=>yi(Math.atan(a[1])),skewY:a=>yi(Math.atan(a[2])),skew:a=>(Math.abs(a[1])+Math.abs(a[2]))/2},Ic=a=>(a=a%360,a<0&&(a+=360),a),lp=Wc,op=a=>Math.sqrt(a[0]*a[0]+a[1]*a[1]),rp=a=>Math.sqrt(a[4]*a[4]+a[5]*a[5]),U2={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:op,scaleY:rp,scale:a=>(op(a)+rp(a))/2,rotateX:a=>Ic(yi(Math.atan2(a[6],a[5]))),rotateY:a=>Ic(yi(Math.atan2(-a[2],a[0]))),rotateZ:lp,rotate:lp,skewX:a=>yi(Math.atan(a[4])),skewY:a=>yi(Math.atan(a[1])),skew:a=>(Math.abs(a[1])+Math.abs(a[4]))/2};function tf(a){return a.includes("scale")?1:0}function ef(a,s){if(!a||a==="none")return tf(s);const o=a.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,c;if(o)r=U2,c=o;else{const p=a.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=B2,c=p}if(!c)return tf(s);const m=r[s],f=c[1].split(",").map(q2);return typeof m=="function"?m(f):f[m]}const H2=(a,s)=>{const{transform:o="none"}=getComputedStyle(a);return ef(o,s)};function q2(a){return parseFloat(a.trim())}const fs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ds=new Set([...fs,"pathRotation"]),up=a=>a===cs||a===ut,Y2=new Set(["x","y","z"]),G2=fs.filter(a=>!Y2.has(a));function X2(a){const s=[];return G2.forEach(o=>{const r=a.getValue(o);r!==void 0&&(s.push([o,r.get()]),r.set(o.startsWith("scale")?1:0))}),s}const qa={width:({x:a},{paddingLeft:s="0",paddingRight:o="0",boxSizing:r})=>{const c=a.max-a.min;return r==="border-box"?c:c-parseFloat(s)-parseFloat(o)},height:({y:a},{paddingTop:s="0",paddingBottom:o="0",boxSizing:r})=>{const c=a.max-a.min;return r==="border-box"?c:c-parseFloat(s)-parseFloat(o)},top:(a,{top:s})=>parseFloat(s),left:(a,{left:s})=>parseFloat(s),bottom:({y:a},{top:s})=>parseFloat(s)+(a.max-a.min),right:({x:a},{left:s})=>parseFloat(s)+(a.max-a.min),x:(a,{transform:s})=>ef(s,"x"),y:(a,{transform:s})=>ef(s,"y")};qa.translateX=qa.x;qa.translateY=qa.y;const vi=new Set;let nf=!1,af=!1,sf=!1;function Jg(){if(af){const a=Array.from(vi).filter(r=>r.needsMeasurement),s=new Set(a.map(r=>r.element)),o=new Map;s.forEach(r=>{const c=X2(r);c.length&&(o.set(r,c),r.render())}),a.forEach(r=>r.measureInitialState()),s.forEach(r=>{r.render();const c=o.get(r);c&&c.forEach(([m,f])=>{r.getValue(m)?.set(f)})}),a.forEach(r=>r.measureEndState()),a.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}af=!1,nf=!1,vi.forEach(a=>a.complete(sf)),vi.clear()}function Wg(){vi.forEach(a=>{a.readKeyframes(),a.needsMeasurement&&(af=!0)})}function K2(){sf=!0,Wg(),Jg(),sf=!1}class Vf{constructor(s,o,r,c,m,f=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...s],this.onComplete=o,this.name=r,this.motionValue=c,this.element=m,this.isAsync=f}scheduleResolve(){this.state="scheduled",this.isAsync?(vi.add(this),nf||(nf=!0,le.read(Wg),le.resolveKeyframes(Jg))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:s,name:o,element:r,motionValue:c}=this;if(s[0]===null){const m=c?.get(),f=s[s.length-1];if(m!==void 0)s[0]=m;else if(r&&o){const p=r.readValue(o,f);p!=null&&(s[0]=p)}s[0]===void 0&&(s[0]=f),c&&m===void 0&&c.set(s[0])}L2(s)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(s=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,s),vi.delete(this)}cancel(){this.state==="scheduled"&&(vi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Z2=a=>a.startsWith("--");function Ig(a,s,o){Z2(s)?a.style.setProperty(s,o):a.style[s]=o}const Q2={};function ty(a,s){const o=jg(a);return()=>Q2[s]??o()}const $2=ty(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ey=ty(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cl=([a,s,o,r])=>`cubic-bezier(${a}, ${s}, ${o}, ${r})`,cp={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cl([0,.65,.55,1]),circOut:cl([.55,0,1,.45]),backIn:cl([.31,.01,.66,-.59]),backOut:cl([.33,1.53,.69,.99])};function ny(a,s){if(a)return typeof a=="function"?ey()?$g(a,s):"ease-out":Bg(a)?cl(a):Array.isArray(a)?a.map(o=>ny(o,s)||cp.easeOut):cp[a]}function P2(a,s,o,{delay:r=0,duration:c=300,repeat:m=0,repeatType:f="loop",ease:p="easeOut",times:v}={},g=void 0){const b={[s]:o};v&&(b.offset=v);const x=ny(p,c);Array.isArray(x)&&(b.easing=x);const A={delay:r,duration:c,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:m+1,direction:f==="reverse"?"alternate":"normal"};return g&&(A.pseudoElement=g),a.animate(b,A)}function ay(a){return typeof a=="function"&&"applyToOptions"in a}function F2({type:a,...s}){return ay(a)&&ey()?a.applyToOptions(s):(s.duration??(s.duration=300),s.ease??(s.ease="easeOut"),s)}class iy extends Of{constructor(s){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!s)return;const{element:o,name:r,keyframes:c,pseudoElement:m,allowFlatten:f=!1,finalKeyframe:p,onComplete:v}=s;this.isPseudoElement=!!m,this.allowFlatten=f,this.options=s,Mf(typeof s.type!="string");const g=F2(s);this.animation=P2(o,r,c,g,m),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!m){const b=dr(c,this.options,p,this.speed);this.updateMotionValue&&this.updateMotionValue(b),Ig(o,r,b),this.animation.cancel()}v?.(),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:s}=this;s==="idle"||s==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const s=this.options?.element;!this.isPseudoElement&&s?.isConnected&&this.animation.commitStyles?.()}get duration(){const s=this.animation.effect?.getComputedTiming?.().duration||0;return jn(Number(s))}get iterationDuration(){const{delay:s=0}=this.options||{};return this.duration+jn(s)}get time(){return jn(Number(this.animation.currentTime)||0)}set time(s){const o=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=mn(s),o&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(s){s<0&&(this.finishedTime=null),this.animation.playbackRate=s}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(s){this.manualStartTime=this.animation.startTime=s}attachTimeline({timeline:s,rangeStart:o,rangeEnd:r,observe:c}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,s&&$2()?(this.animation.timeline=s,o&&(this.animation.rangeStart=o),r&&(this.animation.rangeEnd=r),Cn):c(this)}}const sy={anticipate:Vg,backInOut:Og,circInOut:kg};function J2(a){return a in sy}function W2(a){typeof a.ease=="string"&&J2(a.ease)&&(a.ease=sy[a.ease])}const Vc=10;class I2 extends iy{constructor(s){W2(s),Fg(s),super(s),s.startTime!==void 0&&s.autoplay!==!1&&(this.startTime=s.startTime),this.options=s}updateMotionValue(s){const{motionValue:o,onUpdate:r,onComplete:c,element:m,...f}=this.options;if(!o)return;if(s!==void 0){o.set(s);return}const p=new sr({...f,autoplay:!1}),v=Math.max(Vc,Ze.now()-this.startTime),g=Pn(0,Vc,v-Vc),b=p.sample(v).value,{name:x}=this.options;m&&x&&Ig(m,x,b),o.setWithVelocity(p.sample(Math.max(0,v-g)).value,b,g),p.stop()}}const fp=(a,s)=>s==="zIndex"?!1:!!(typeof a=="number"||Array.isArray(a)||typeof a=="string"&&(kn.test(a)||a==="0")&&!a.startsWith("url("));function tS(a){const s=a[0];if(a.length===1)return!0;for(let o=0;o<a.length;o++)if(a[o]!==s)return!0}function eS(a,s,o,r){const c=a[0];if(c===null)return!1;if(s==="display"||s==="visibility")return!0;const m=a[a.length-1],f=fp(c,s),p=fp(m,s);return!f||!p?!1:tS(a)||(o==="spring"||ay(o))&&r}function lf(a){a.duration=0,a.type="keyframes"}const ly=new Set(["opacity","clipPath","filter","transform"]),nS=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function aS(a){for(let s=0;s<a.length;s++)if(typeof a[s]=="string"&&nS.test(a[s]))return!0;return!1}const iS=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sS=jg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function lS(a){const{motionValue:s,name:o,repeatDelay:r,repeatType:c,damping:m,type:f,keyframes:p}=a;if(!(s?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:b}=s.owner.getProps();return sS()&&o&&(ly.has(o)||iS.has(o)&&aS(p))&&(o!=="transform"||!b)&&!g&&!r&&c!=="mirror"&&m!==0&&f!=="inertia"}const oS=40;class rS extends Of{constructor({autoplay:s=!0,delay:o=0,type:r="keyframes",repeat:c=0,repeatDelay:m=0,repeatType:f="loop",keyframes:p,name:v,motionValue:g,element:b,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ze.now();const A={autoplay:s,delay:o,type:r,repeat:c,repeatDelay:m,repeatType:f,name:v,motionValue:g,element:b,...x},E=b?.KeyframeResolver||Vf;this.keyframeResolver=new E(p,(O,_,U)=>this.onKeyframesResolved(O,_,A,!U),v,g,b),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(s,o,r,c){this.keyframeResolver=void 0;const{name:m,type:f,velocity:p,delay:v,isHandoff:g,onUpdate:b}=r;this.resolvedAt=Ze.now();let x=!0;eS(s,m,f,p)||(x=!1,(Ya.instantAnimations||!v)&&b?.(dr(s,r,o)),s[0]=s[s.length-1],lf(r),r.repeat=0);const E={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>oS?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:o,...r,keyframes:s},O=x&&!g&&lS(E),_=E.motionValue?.owner?.current;let U;if(O)try{U=new I2({...E,element:_})}catch{U=new sr(E)}else U=new sr(E);U.finished.then(()=>{this.notifyFinished()}).catch(Cn),this.pendingTimeline&&(this.stopTimeline=U.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=U}get finished(){return this._animation?this.animation.finished:this._finished}then(s,o){return this.finished.finally(s).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),K2()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(s){this.animation.time=s}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(s){this.animation.speed=s}get startTime(){return this.animation.startTime}attachTimeline(s){return this._animation?this.stopTimeline=this.animation.attachTimeline(s):this.pendingTimeline=s,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function oy(a,s,o,r=0,c=1){const m=Array.from(a).sort((g,b)=>g.sortNodePosition(b)).indexOf(s),f=a.size,p=(f-1)*r;return typeof o=="function"?o(m,f):c===1?m*r:p-m*r}const dp=30,uS=a=>!isNaN(parseFloat(a));class cS{constructor(s,o={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const c=Ze.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const m of this.dependents)m.dirty()},this.hasAnimated=!1,this.setCurrent(s),this.owner=o.owner}setCurrent(s){this.current=s,this.updatedAt=Ze.now(),this.canTrackVelocity===null&&s!==void 0&&(this.canTrackVelocity=uS(this.current))}setPrevFrameValue(s=this.current){this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt}onChange(s){return this.on("change",s)}on(s,o){this.events[s]||(this.events[s]=new Ef);const r=this.events[s].add(o);return s==="change"?()=>{r(),le.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const s in this.events)this.events[s].clear()}attach(s,o){this.passiveEffect=s,this.stopPassiveEffect=o}set(s){this.passiveEffect?this.passiveEffect(s,this.updateAndNotify):this.updateAndNotify(s)}setWithVelocity(s,o,r){this.set(o),this.prev=void 0,this.prevFrameValue=s,this.prevUpdatedAt=this.updatedAt-r}jump(s,o=!0){this.updateAndNotify(s),this.prev=s,this.prevUpdatedAt=this.prevFrameValue=void 0,o&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(s){this.dependents||(this.dependents=new Set),this.dependents.add(s)}removeDependent(s){this.dependents&&this.dependents.delete(s)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const s=Ze.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||s-this.updatedAt>dp)return 0;const o=Math.min(this.updatedAt-this.prevUpdatedAt,dp);return Cg(parseFloat(this.current)-parseFloat(this.prevFrameValue),o)}start(s){return this.stop(),new Promise(o=>{this.hasAnimated=!0,this.animation=s(o),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 us(a,s){return new cS(a,s)}function ry(a,s){if(a?.inherit&&s){const{inherit:o,...r}=a;return{...s,...r}}return a}function _f(a,s){const o=a?.[s]??a?.default??a;return o!==a?ry(o,a):o}const fS={type:"spring",stiffness:500,damping:25,restSpeed:10},dS=a=>({type:"spring",stiffness:550,damping:a===0?2*Math.sqrt(550):30,restSpeed:10}),hS={type:"keyframes",duration:.8},mS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pS=(a,{keyframes:s})=>s.length>2?hS:ds.has(a)?a.startsWith("scale")?dS(s[1]):fS:mS,gS=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function yS(a){for(const s in a)if(!gS.has(s))return!0;return!1}const kf=(a,s,o,r={},c,m)=>f=>{const p=_f(r,a)||{},v=p.delay||r.delay||0;let{elapsed:g=0}=r;g=g-mn(v);const b={keyframes:Array.isArray(o)?o:[null,o],ease:"easeOut",velocity:s.getVelocity(),...p,delay:-g,onUpdate:A=>{s.set(A),p.onUpdate&&p.onUpdate(A)},onComplete:()=>{f(),p.onComplete&&p.onComplete()},name:a,motionValue:s,element:m?void 0:c};yS(p)||Object.assign(b,pS(a,b)),b.duration&&(b.duration=mn(b.duration)),b.repeatDelay&&(b.repeatDelay=mn(b.repeatDelay)),b.from!==void 0&&(b.keyframes[0]=b.from);let x=!1;if((b.type===!1||b.duration===0&&!b.repeatDelay)&&(lf(b),b.delay===0&&(x=!0)),(Ya.instantAnimations||Ya.skipAnimations||c?.shouldSkipAnimations||p.skipAnimations)&&(x=!0,lf(b),b.delay=0),b.allowFlatten=!p.type&&!p.ease,x&&!m&&s.get()!==void 0){const A=dr(b.keyframes,p);if(A!==void 0){le.update(()=>{b.onUpdate(A),b.onComplete()});return}}return p.isSync?new sr(b):new rS(b)},xS=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function vS(a){const s=xS.exec(a);if(!s)return[,];const[,o,r,c]=s;return[`--${o??r}`,c]}function uy(a,s,o=1){const[r,c]=vS(a);if(!r)return;const m=window.getComputedStyle(s).getPropertyValue(r);if(m){const f=m.trim();return Mg(f)?parseFloat(f):f}return Cf(c)?uy(c,s,o+1):c}function hp(a){const s=[{},{}];return a?.values.forEach((o,r)=>{s[0][r]=o.get(),s[1][r]=o.getVelocity()}),s}function Lf(a,s,o,r){if(typeof s=="function"){const[c,m]=hp(r);s=s(o!==void 0?o:a.custom,c,m)}if(typeof s=="string"&&(s=a.variants&&a.variants[s]),typeof s=="function"){const[c,m]=hp(r);s=s(o!==void 0?o:a.custom,c,m)}return s}function bi(a,s,o){const r=a.getProps();return Lf(r,s,o!==void 0?o:r.custom,a)}const cy=new Set(["width","height","top","left","right","bottom",...fs]),of=a=>Array.isArray(a);function bS(a,s,o){a.hasValue(s)?a.getValue(s).set(o):a.addValue(s,us(o))}function SS(a){return of(a)?a[a.length-1]||0:a}function TS(a,s){const o=bi(a,s);let{transitionEnd:r={},transition:c={},...m}=o||{};m={...m,...r};for(const f in m){const p=SS(m[f]);bS(a,f,p)}}const He=a=>!!(a&&a.getVelocity);function AS(a){return!!(He(a)&&a.add)}function rf(a,s){const o=a.getValue("willChange");if(AS(o))return o.add(s);if(!o&&Ya.WillChange){const r=new Ya.WillChange("auto");a.addValue("willChange",r),r.add(s)}}function Bf(a){return a.replace(/([A-Z])/g,s=>`-${s.toLowerCase()}`)}const MS="framerAppearId",fy="data-"+Bf(MS);function dy(a){return a.props[fy]}function ES({protectedKeys:a,needsAnimating:s},o){const r=a.hasOwnProperty(o)&&s[o]!==!0;return s[o]=!1,r}function hy(a,s,{delay:o=0,transitionOverride:r,type:c}={}){let{transition:m,transitionEnd:f,...p}=s;const v=a.getDefaultTransition();m=m?ry(m,v):v;const g=m?.reduceMotion,b=m?.skipAnimations;r&&(m=r);const x=[],A=c&&a.animationState&&a.animationState.getState()[c],E=m?.path;E&&E.animateVisualElement(a,p,m,o,x);for(const O in p){const _=a.getValue(O,a.latestValues[O]??null),U=p[O];if(U===void 0||A&&ES(A,O))continue;const Q={delay:o,..._f(m||{},O)};b&&(Q.skipAnimations=!0);const B=_.get();if(B!==void 0&&!_.isAnimating()&&!Array.isArray(U)&&U===B&&!Q.velocity){le.update(()=>_.set(U));continue}let z=!1;if(window.MotionHandoffAnimation){const Y=dy(a);if(Y){const F=window.MotionHandoffAnimation(Y,O,le);F!==null&&(Q.startTime=F,z=!0)}}rf(a,O);const X=g??a.shouldReduceMotion;_.start(kf(O,_,U,X&&cy.has(O)?{type:!1}:Q,a,z));const st=_.animation;st&&x.push(st)}if(f){const O=()=>le.update(()=>{f&&TS(a,f)});x.length?Promise.all(x).then(O):O()}return x}function uf(a,s,o={}){const r=bi(a,s,o.type==="exit"?a.presenceContext?.custom:void 0);let{transition:c=a.getDefaultTransition()||{}}=r||{};o.transitionOverride&&(c=o.transitionOverride);const m=r?()=>Promise.all(hy(a,r,o)):()=>Promise.resolve(),f=a.variantChildren&&a.variantChildren.size?(v=0)=>{const{delayChildren:g=0,staggerChildren:b,staggerDirection:x}=c;return wS(a,s,v,g,b,x,o)}:()=>Promise.resolve(),{when:p}=c;if(p){const[v,g]=p==="beforeChildren"?[m,f]:[f,m];return v().then(()=>g())}else return Promise.all([m(),f(o.delay)])}function wS(a,s,o=0,r=0,c=0,m=1,f){const p=[];for(const v of a.variantChildren)v.notify("AnimationStart",s),p.push(uf(v,s,{...f,delay:o+(typeof r=="function"?0:r)+oy(a.variantChildren,v,r,c,m)}).then(()=>v.notify("AnimationComplete",s)));return Promise.all(p)}function jS(a,s,o={}){a.notify("AnimationStart",s);let r;if(Array.isArray(s)){const c=s.map(m=>uf(a,m,o));r=Promise.all(c)}else if(typeof s=="string")r=uf(a,s,o);else{const c=typeof s=="function"?bi(a,s,o.custom):s;r=Promise.all(hy(a,c,o))}return r.then(()=>{a.notify("AnimationComplete",s)})}const CS={test:a=>a==="auto",parse:a=>a},my=a=>s=>s.test(a),py=[cs,ut,$n,ma,t2,Ib,CS],mp=a=>py.find(my(a));function NS(a){return typeof a=="number"?a===0:a!==null?a==="none"||a==="0"||wg(a):!0}const DS=new Set(["brightness","contrast","saturate","opacity"]);function zS(a){const[s,o]=a.slice(0,-1).split("(");if(s==="drop-shadow")return a;const[r]=o.match(Nf)||[];if(!r)return a;const c=o.replace(r,"");let m=DS.has(s)?1:0;return r!==o&&(m*=100),s+"("+m+c+")"}const RS=/\b([a-z-]*)\(.*?\)/gu,cf={...kn,getAnimatableNone:a=>{const s=a.match(RS);return s?s.map(zS).join(" "):a}},ff={...kn,getAnimatableNone:a=>{const s=kn.parse(a);return kn.createTransformer(a)(s.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},pp={...cs,transform:Math.round},OS={rotate:ma,pathRotation:ma,rotateX:ma,rotateY:ma,rotateZ:ma,scale:Ho,scaleX:Ho,scaleY:Ho,scaleZ:Ho,skew:ma,skewX:ma,skewY:ma,distance:ut,translateX:ut,translateY:ut,translateZ:ut,x:ut,y:ut,z:ut,perspective:ut,transformPerspective:ut,opacity:gl,originX:ep,originY:ep,originZ:ut},lr={borderWidth:ut,borderTopWidth:ut,borderRightWidth:ut,borderBottomWidth:ut,borderLeftWidth:ut,borderRadius:ut,borderTopLeftRadius:ut,borderTopRightRadius:ut,borderBottomRightRadius:ut,borderBottomLeftRadius:ut,width:ut,maxWidth:ut,height:ut,maxHeight:ut,top:ut,right:ut,bottom:ut,left:ut,inset:ut,insetBlock:ut,insetBlockStart:ut,insetBlockEnd:ut,insetInline:ut,insetInlineStart:ut,insetInlineEnd:ut,padding:ut,paddingTop:ut,paddingRight:ut,paddingBottom:ut,paddingLeft:ut,paddingBlock:ut,paddingBlockStart:ut,paddingBlockEnd:ut,paddingInline:ut,paddingInlineStart:ut,paddingInlineEnd:ut,margin:ut,marginTop:ut,marginRight:ut,marginBottom:ut,marginLeft:ut,marginBlock:ut,marginBlockStart:ut,marginBlockEnd:ut,marginInline:ut,marginInlineStart:ut,marginInlineEnd:ut,fontSize:ut,backgroundPositionX:ut,backgroundPositionY:ut,...OS,zIndex:pp,fillOpacity:gl,strokeOpacity:gl,numOctaves:pp},VS={...lr,color:Me,backgroundColor:Me,outlineColor:Me,fill:Me,stroke:Me,borderColor:Me,borderTopColor:Me,borderRightColor:Me,borderBottomColor:Me,borderLeftColor:Me,filter:cf,WebkitFilter:cf,mask:ff,WebkitMask:ff},gy=a=>VS[a],_S=new Set([cf,ff]);function yy(a,s){let o=gy(a);return _S.has(o)||(o=kn),o.getAnimatableNone?o.getAnimatableNone(s):void 0}const kS=new Set(["auto","none","0"]);function LS(a,s,o){let r=0,c;for(;r<a.length&&!c;){const m=a[r];typeof m=="string"&&!kS.has(m)&&rs(m).values.length&&(c=a[r]),r++}if(c&&o)for(const m of s)a[m]=yy(o,c)}class BS extends Vf{constructor(s,o,r,c,m){super(s,o,r,c,m,!0)}readKeyframes(){const{unresolvedKeyframes:s,element:o,name:r}=this;if(!o||!o.current)return;super.readKeyframes();for(let b=0;b<s.length;b++){let x=s[b];if(typeof x=="string"&&(x=x.trim(),Cf(x))){const A=uy(x,o.current);A!==void 0&&(s[b]=A),b===s.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!cy.has(r)||s.length!==2)return;const[c,m]=s,f=mp(c),p=mp(m),v=tp(c),g=tp(m);if(v!==g&&qa[r]){this.needsMeasurement=!0;return}if(f!==p)if(up(f)&&up(p))for(let b=0;b<s.length;b++){const x=s[b];typeof x=="string"&&(s[b]=parseFloat(x))}else qa[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:s,name:o}=this,r=[];for(let c=0;c<s.length;c++)(s[c]===null||NS(s[c]))&&r.push(c);r.length&&LS(s,r,o)}measureInitialState(){const{element:s,unresolvedKeyframes:o,name:r}=this;if(!s||!s.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=qa[r](s.measureViewportBox(),window.getComputedStyle(s.current)),o[0]=this.measuredOrigin;const c=o[o.length-1];c!==void 0&&s.getValue(r,c).jump(c,!1)}measureEndState(){const{element:s,name:o,unresolvedKeyframes:r}=this;if(!s||!s.current)return;const c=s.getValue(o);c&&c.jump(this.measuredOrigin,!1);const m=r.length-1,f=r[m];r[m]=qa[o](s.measureViewportBox(),window.getComputedStyle(s.current)),f!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=f),this.removedTransforms?.length&&this.removedTransforms.forEach(([p,v])=>{s.getValue(p).set(v)}),this.resolveNoneKeyframes()}}function xy(a,s,o){if(a==null)return[];if(a instanceof EventTarget)return[a];if(typeof a=="string"){let r=document;const c=o?.[a]??r.querySelectorAll(a);return c?Array.from(c):[]}return Array.from(a).filter(r=>r!=null)}const df=(a,s)=>s&&typeof a=="number"?s.transform(a):a;function Ko(a){return Eg(a)&&"offsetHeight"in a&&!("ownerSVGElement"in a)}const{schedule:Uf}=Ug(queueMicrotask,!1),_n={x:!1,y:!1};function vy(){return _n.x||_n.y}function US(a){return a==="x"||a==="y"?_n[a]?null:(_n[a]=!0,()=>{_n[a]=!1}):_n.x||_n.y?null:(_n.x=_n.y=!0,()=>{_n.x=_n.y=!1})}function by(a,s){const o=xy(a),r=new AbortController,c={passive:!0,...s,signal:r.signal};return[o,c,()=>r.abort()]}function HS(a){return!(a.pointerType==="touch"||vy())}function qS(a,s,o={}){const[r,c,m]=by(a,o);return r.forEach(f=>{let p=!1,v=!1,g;const b=()=>{f.removeEventListener("pointerleave",O)},x=U=>{g&&(g(U),g=void 0),b()},A=U=>{p=!1,window.removeEventListener("pointerup",A),window.removeEventListener("pointercancel",A),v&&(v=!1,x(U))},E=()=>{p=!0,window.addEventListener("pointerup",A,c),window.addEventListener("pointercancel",A,c)},O=U=>{if(U.pointerType!=="touch"){if(p){v=!0;return}x(U)}},_=U=>{if(!HS(U))return;v=!1;const Q=s(f,U);typeof Q=="function"&&(g=Q,f.addEventListener("pointerleave",O,c))};f.addEventListener("pointerenter",_,c),f.addEventListener("pointerdown",E,c)}),m}const Sy=(a,s)=>s?a===s?!0:Sy(a,s.parentElement):!1,Hf=a=>a.pointerType==="mouse"?typeof a.button!="number"||a.button<=0:a.isPrimary!==!1,YS=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function GS(a){return YS.has(a.tagName)||a.isContentEditable===!0}const XS=new Set(["INPUT","SELECT","TEXTAREA"]);function KS(a){return XS.has(a.tagName)||a.isContentEditable===!0}const Zo=new WeakSet;function gp(a){return s=>{s.key==="Enter"&&a(s)}}function _c(a,s){a.dispatchEvent(new PointerEvent("pointer"+s,{isPrimary:!0,bubbles:!0}))}const ZS=(a,s)=>{const o=a.currentTarget;if(!o)return;const r=gp(()=>{if(Zo.has(o))return;_c(o,"down");const c=gp(()=>{_c(o,"up")}),m=()=>_c(o,"cancel");o.addEventListener("keyup",c,s),o.addEventListener("blur",m,s)});o.addEventListener("keydown",r,s),o.addEventListener("blur",()=>o.removeEventListener("keydown",r),s)};function yp(a){return Hf(a)&&!vy()}const xp=new WeakSet;function QS(a,s,o={}){const[r,c,m]=by(a,o),f=p=>{const v=p.currentTarget;if(!yp(p)||xp.has(p))return;Zo.add(v),o.stopPropagation&&xp.add(p);const g=s(v,p),b=(E,O)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",A),Zo.has(v)&&Zo.delete(v),yp(E)&&typeof g=="function"&&g(E,{success:O})},x=E=>{b(E,v===window||v===document||o.useGlobalTarget||Sy(v,E.target))},A=E=>{b(E,!1)};window.addEventListener("pointerup",x,c),window.addEventListener("pointercancel",A,c)};return r.forEach(p=>{(o.useGlobalTarget?window:p).addEventListener("pointerdown",f,c),Ko(p)&&(p.addEventListener("focus",g=>ZS(g,c)),!GS(p)&&!p.hasAttribute("tabindex")&&(p.tabIndex=0))}),m}function qf(a){return Eg(a)&&"ownerSVGElement"in a}const Qo=new WeakMap;let $o;const Ty=(a,s,o)=>(r,c)=>c&&c[0]?c[0][a+"Size"]:qf(r)&&"getBBox"in r?r.getBBox()[s]:r[o],$S=Ty("inline","width","offsetWidth"),PS=Ty("block","height","offsetHeight");function FS({target:a,borderBoxSize:s}){Qo.get(a)?.forEach(o=>{o(a,{get width(){return $S(a,s)},get height(){return PS(a,s)}})})}function JS(a){a.forEach(FS)}function WS(){typeof ResizeObserver>"u"||($o=new ResizeObserver(JS))}function IS(a,s){$o||WS();const o=xy(a);return o.forEach(r=>{let c=Qo.get(r);c||(c=new Set,Qo.set(r,c)),c.add(s),$o?.observe(r)}),()=>{o.forEach(r=>{const c=Qo.get(r);c?.delete(s),c?.size||$o?.unobserve(r)})}}const Po=new Set;let ss;function t5(){ss=()=>{const a={get width(){return window.innerWidth},get height(){return window.innerHeight}};Po.forEach(s=>s(a))},window.addEventListener("resize",ss)}function e5(a){return Po.add(a),ss||t5(),()=>{Po.delete(a),!Po.size&&typeof ss=="function"&&(window.removeEventListener("resize",ss),ss=void 0)}}function vp(a,s){return typeof a=="function"?e5(a):IS(a,s)}function n5(a){return qf(a)&&a.tagName==="svg"}const a5=[...py,Me,kn],i5=a=>a5.find(my(a)),bp=()=>({translate:0,scale:1,origin:0,originPoint:0}),ls=()=>({x:bp(),y:bp()}),Sp=()=>({min:0,max:0}),we=()=>({x:Sp(),y:Sp()}),s5=new WeakMap;function hr(a){return a!==null&&typeof a=="object"&&typeof a.start=="function"}function yl(a){return typeof a=="string"||Array.isArray(a)}const Yf=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gf=["initial",...Yf];function mr(a){return hr(a.animate)||Gf.some(s=>yl(a[s]))}function Ay(a){return!!(mr(a)||a.variants)}function l5(a,s,o){for(const r in s){const c=s[r],m=o[r];if(He(c))a.addValue(r,c);else if(He(m))a.addValue(r,us(c,{owner:a}));else if(m!==c)if(a.hasValue(r)){const f=a.getValue(r);f.liveStyle===!0?f.jump(c):f.hasAnimated||f.set(c)}else{const f=a.getStaticValue(r);a.addValue(r,us(f!==void 0?f:c,{owner:a}))}}for(const r in o)s[r]===void 0&&a.removeValue(r);return s}const hf={current:null},My={current:!1},o5=typeof window<"u";function r5(){if(My.current=!0,!!o5)if(window.matchMedia){const a=window.matchMedia("(prefers-reduced-motion)"),s=()=>hf.current=a.matches;a.addEventListener("change",s),s()}else hf.current=!1}const Tp=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let or={};function Ey(a){or=a}function u5(){return or}class c5{scrapeMotionValuesFromProps(s,o,r){return{}}constructor({parent:s,props:o,presenceContext:r,reducedMotionConfig:c,skipAnimations:m,blockInitialAnimation:f,visualState:p},v={}){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=Vf,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 E=Ze.now();this.renderScheduledAt<E&&(this.renderScheduledAt=E,le.render(this.render,!1,!0))};const{latestValues:g,renderState:b}=p;this.latestValues=g,this.baseTarget={...g},this.initialValues=o.initial?{...g}:{},this.renderState=b,this.parent=s,this.props=o,this.presenceContext=r,this.depth=s?s.depth+1:0,this.reducedMotionConfig=c,this.skipAnimationsConfig=m,this.options=v,this.blockInitialAnimation=!!f,this.isControllingVariants=mr(o),this.isVariantNode=Ay(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(s&&s.current);const{willChange:x,...A}=this.scrapeMotionValuesFromProps(o,{},this);for(const E in A){const O=A[E];g[E]!==void 0&&He(O)&&O.set(g[E])}}mount(s){if(this.hasBeenMounted)for(const o in this.initialValues)this.values.get(o)?.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=s,s5.set(s,this),this.projection&&!this.projection.instance&&this.projection.mount(s),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,r)=>this.bindToMotionValue(r,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(My.current||r5(),this.shouldReduceMotion=hf.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(),Ga(this.notifyUpdate),Ga(this.render),this.valueSubscriptions.forEach(s=>s()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const s in this.events)this.events[s].clear();for(const s in this.features){const o=this.features[s];o&&(o.unmount(),o.isMounted=!1)}this.current=null}addChild(s){this.children.add(s),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(s)}removeChild(s){this.children.delete(s),this.enteringChildren&&this.enteringChildren.delete(s)}bindToMotionValue(s,o){if(this.valueSubscriptions.has(s)&&this.valueSubscriptions.get(s)(),o.accelerate&&ly.has(s)&&this.current instanceof HTMLElement){const{factory:f,keyframes:p,times:v,ease:g,duration:b}=o.accelerate,x=new iy({element:this.current,name:s,keyframes:p,times:v,ease:g,duration:mn(b)}),A=f(x);this.valueSubscriptions.set(s,()=>{A(),x.cancel()});return}const r=ds.has(s);r&&this.onBindTransform&&this.onBindTransform();const c=o.on("change",f=>{this.latestValues[s]=f,this.props.onUpdate&&le.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let m;typeof window<"u"&&window.MotionCheckAppearSync&&(m=window.MotionCheckAppearSync(this,s,o)),this.valueSubscriptions.set(s,()=>{c(),m&&m()})}sortNodePosition(s){return!this.current||!this.sortInstanceNodePosition||this.type!==s.type?0:this.sortInstanceNodePosition(this.current,s.current)}updateFeatures(){let s="animation";for(s in or){const o=or[s];if(!o)continue;const{isEnabled:r,Feature:c}=o;if(!this.features[s]&&c&&r(this.props)&&(this.features[s]=new c(this)),this.features[s]){const m=this.features[s];m.isMounted?m.update():(m.mount(),m.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):we()}getStaticValue(s){return this.latestValues[s]}setStaticValue(s,o){this.latestValues[s]=o}update(s,o){(s.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=s,this.prevPresenceContext=this.presenceContext,this.presenceContext=o;for(let r=0;r<Tp.length;r++){const c=Tp[r];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const m="on"+c,f=s[m];f&&(this.propEventSubscriptions[c]=this.on(c,f))}this.prevMotionValues=l5(this,this.scrapeMotionValuesFromProps(s,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(s){return this.props.variants?this.props.variants[s]: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(s){const o=this.getClosestVariantNode();if(o)return o.variantChildren&&o.variantChildren.add(s),()=>o.variantChildren.delete(s)}addValue(s,o){const r=this.values.get(s);o!==r&&(r&&this.removeValue(s),this.bindToMotionValue(s,o),this.values.set(s,o),this.latestValues[s]=o.get())}removeValue(s){this.values.delete(s);const o=this.valueSubscriptions.get(s);o&&(o(),this.valueSubscriptions.delete(s)),delete this.latestValues[s],this.removeValueFromRenderState(s,this.renderState)}hasValue(s){return this.values.has(s)}getValue(s,o){if(this.props.values&&this.props.values[s])return this.props.values[s];let r=this.values.get(s);return r===void 0&&o!==void 0&&(r=us(o===null?void 0:o,{owner:this}),this.addValue(s,r)),r}readValue(s,o){let r=this.latestValues[s]!==void 0||!this.current?this.latestValues[s]:this.getBaseTargetFromProps(this.props,s)??this.readValueFromInstance(this.current,s,this.options);return r!=null&&(typeof r=="string"&&(Mg(r)||wg(r))?r=parseFloat(r):!i5(r)&&kn.test(o)&&(r=yy(s,o)),this.setBaseTarget(s,He(r)?r.get():r)),He(r)?r.get():r}setBaseTarget(s,o){this.baseTarget[s]=o}getBaseTarget(s){const{initial:o}=this.props;let r;if(typeof o=="string"||typeof o=="object"){const m=Lf(this.props,o,this.presenceContext?.custom);m&&(r=m[s])}if(o&&r!==void 0)return r;const c=this.getBaseTargetFromProps(this.props,s);return c!==void 0&&!He(c)?c:this.initialValues[s]!==void 0&&r===void 0?void 0:this.baseTarget[s]}on(s,o){return this.events[s]||(this.events[s]=new Ef),this.events[s].add(o)}notify(s,...o){this.events[s]&&this.events[s].notify(...o)}scheduleRenderMicrotask(){Uf.render(this.render)}}class wy extends c5{constructor(){super(...arguments),this.KeyframeResolver=BS}sortInstanceNodePosition(s,o){return s.compareDocumentPosition(o)&2?1:-1}getBaseTargetFromProps(s,o){const r=s.style;return r?r[o]:void 0}removeValueFromRenderState(s,{vars:o,style:r}){delete o[s],delete r[s]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:s}=this.props;He(s)&&(this.childSubscription=s.on("change",o=>{this.current&&(this.current.textContent=`${o}`)}))}}class Xa{constructor(s){this.isMounted=!1,this.node=s}update(){}}function jy({top:a,left:s,right:o,bottom:r}){return{x:{min:s,max:o},y:{min:a,max:r}}}function f5({x:a,y:s}){return{top:s.min,right:a.max,bottom:s.max,left:a.min}}function d5(a,s){if(!s)return a;const o=s({x:a.left,y:a.top}),r=s({x:a.right,y:a.bottom});return{top:o.y,left:o.x,bottom:r.y,right:r.x}}function kc(a){return a===void 0||a===1}function mf({scale:a,scaleX:s,scaleY:o}){return!kc(a)||!kc(s)||!kc(o)}function pi(a){return mf(a)||Cy(a)||a.z||a.rotate||a.rotateX||a.rotateY||a.skewX||a.skewY}function Cy(a){return Ap(a.x)||Ap(a.y)}function Ap(a){return a&&a!=="0%"}function rr(a,s,o){const r=a-o,c=s*r;return o+c}function Mp(a,s,o,r,c){return c!==void 0&&(a=rr(a,c,r)),rr(a,o,r)+s}function pf(a,s=0,o=1,r,c){a.min=Mp(a.min,s,o,r,c),a.max=Mp(a.max,s,o,r,c)}function Ny(a,{x:s,y:o}){pf(a.x,s.translate,s.scale,s.originPoint),pf(a.y,o.translate,o.scale,o.originPoint)}const Ep=.999999999999,wp=1.0000000000001;function h5(a,s,o,r=!1){const c=o.length;if(!c)return;s.x=s.y=1;let m,f;for(let p=0;p<c;p++){m=o[p],f=m.projectionDelta;const{visualElement:v}=m.options;v&&v.props.style&&v.props.style.display==="contents"||(r&&m.options.layoutScroll&&m.scroll&&m!==m.root&&(Qn(a.x,-m.scroll.offset.x),Qn(a.y,-m.scroll.offset.y)),f&&(s.x*=f.x.scale,s.y*=f.y.scale,Ny(a,f)),r&&pi(m.latestValues)&&Fo(a,m.latestValues,m.layout?.layoutBox))}s.x<wp&&s.x>Ep&&(s.x=1),s.y<wp&&s.y>Ep&&(s.y=1)}function Qn(a,s){a.min+=s,a.max+=s}function jp(a,s,o,r,c=.5){const m=se(a.min,a.max,c);pf(a,s,o,m,r)}function Cp(a,s){return typeof a=="string"?parseFloat(a)/100*(s.max-s.min):a}function Fo(a,s,o){const r=o??a;jp(a.x,Cp(s.x,r.x),s.scaleX,s.scale,s.originX),jp(a.y,Cp(s.y,r.y),s.scaleY,s.scale,s.originY)}function Dy(a,s){return jy(d5(a.getBoundingClientRect(),s))}function m5(a,s,o){const r=Dy(a,o),{scroll:c}=s;return c&&(Qn(r.x,c.offset.x),Qn(r.y,c.offset.y)),r}const p5={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g5=fs.length;function y5(a,s,o){let r="",c=!0;for(let f=0;f<g5;f++){const p=fs[f],v=a[p];if(v===void 0)continue;let g=!0;if(typeof v=="number")g=v===(p.startsWith("scale")?1:0);else{const b=parseFloat(v);g=p.startsWith("scale")?b===1:b===0}if(!g||o){const b=df(v,lr[p]);if(!g){c=!1;const x=p5[p]||p;r+=`${x}(${b}) `}o&&(s[p]=b)}}const m=a.pathRotation;return m&&(c=!1,r+=`rotate(${df(m,lr.pathRotation)}) `),r=r.trim(),o?r=o(s,c?"":r):c&&(r="none"),r}function Xf(a,s,o){const{style:r,vars:c,transformOrigin:m}=a;let f=!1,p=!1;for(const v in s){const g=s[v];if(ds.has(v)){f=!0;continue}else if(qg(v)){c[v]=g;continue}else{const b=df(g,lr[v]);v.startsWith("origin")?(p=!0,m[v]=b):r[v]=b}}if(s.transform||(f||o?r.transform=y5(s,a.transform,o):r.transform&&(r.transform="none")),p){const{originX:v="50%",originY:g="50%",originZ:b=0}=m;r.transformOrigin=`${v} ${g} ${b}`}}function zy(a,{style:s,vars:o},r,c){const m=a.style;let f;for(f in s)m[f]=s[f];c?.applyProjectionStyles(m,r);for(f in o)m.setProperty(f,o[f])}function Np(a,s){return s.max===s.min?0:a/(s.max-s.min)*100}const ul={correct:(a,s)=>{if(!s.target)return a;if(typeof a=="string")if(ut.test(a))a=parseFloat(a);else return a;const o=Np(a,s.target.x),r=Np(a,s.target.y);return`${o}% ${r}%`}},x5={correct:(a,{treeScale:s,projectionDelta:o})=>{const r=a,c=kn.parse(a);if(c.length>5)return r;const m=kn.createTransformer(a),f=typeof c[0]!="number"?1:0,p=o.x.scale*s.x,v=o.y.scale*s.y;c[0+f]/=p,c[1+f]/=v;const g=se(p,v,.5);return typeof c[2+f]=="number"&&(c[2+f]/=g),typeof c[3+f]=="number"&&(c[3+f]/=g),m(c)}},gf={borderRadius:{...ul,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ul,borderTopRightRadius:ul,borderBottomLeftRadius:ul,borderBottomRightRadius:ul,boxShadow:x5};function Ry(a,{layout:s,layoutId:o}){return ds.has(a)||a.startsWith("origin")||(s||o!==void 0)&&(!!gf[a]||a==="opacity")}function Kf(a,s,o){const r=a.style,c=s?.style,m={};if(!r)return m;for(const f in r)(He(r[f])||c&&He(c[f])||Ry(f,a)||o?.getValue(f)?.liveStyle!==void 0)&&(m[f]=r[f]);return m}function v5(a){return window.getComputedStyle(a)}class b5 extends wy{constructor(){super(...arguments),this.type="html",this.renderInstance=zy}readValueFromInstance(s,o){if(ds.has(o))return this.projection?.isProjecting?tf(o):H2(s,o);{const r=v5(s),c=(qg(o)?r.getPropertyValue(o):r[o])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(s,{transformPagePoint:o}){return Dy(s,o)}build(s,o,r){Xf(s,o,r.transformTemplate)}scrapeMotionValuesFromProps(s,o,r){return Kf(s,o,r)}}const S5={offset:"stroke-dashoffset",array:"stroke-dasharray"},T5={offset:"strokeDashoffset",array:"strokeDasharray"};function A5(a,s,o=1,r=0,c=!0){a.pathLength=1;const m=c?S5:T5;a[m.offset]=`${-r}`,a[m.array]=`${s} ${o}`}const M5=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Oy(a,{attrX:s,attrY:o,attrScale:r,pathLength:c,pathSpacing:m=1,pathOffset:f=0,...p},v,g,b){if(Xf(a,p,g),v){a.style.viewBox&&(a.attrs.viewBox=a.style.viewBox);return}a.attrs=a.style,a.style={};const{attrs:x,style:A}=a;x.transform&&(A.transform=x.transform,delete x.transform),(A.transform||x.transformOrigin)&&(A.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),A.transform&&(A.transformBox=b?.transformBox??"fill-box",delete x.transformBox);for(const E of M5)x[E]!==void 0&&(A[E]=x[E],delete x[E]);s!==void 0&&(x.x=s),o!==void 0&&(x.y=o),r!==void 0&&(x.scale=r),c!==void 0&&A5(x,c,m,f,!1)}const Vy=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"]),_y=a=>typeof a=="string"&&a.toLowerCase()==="svg";function E5(a,s,o,r){zy(a,s,void 0,r);for(const c in s.attrs)a.setAttribute(Vy.has(c)?c:Bf(c),s.attrs[c])}function ky(a,s,o){const r=Kf(a,s,o);for(const c in a)if(He(a[c])||He(s[c])){const m=fs.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;r[m]=a[c]}return r}class w5 extends wy{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=we}getBaseTargetFromProps(s,o){return s[o]}readValueFromInstance(s,o){if(ds.has(o)){const r=gy(o);return r&&r.default||0}return o=Vy.has(o)?o:Bf(o),s.getAttribute(o)}scrapeMotionValuesFromProps(s,o,r){return ky(s,o,r)}build(s,o,r){Oy(s,o,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(s,o,r,c){E5(s,o,r,c)}mount(s){this.isSVGTag=_y(s.tagName),super.mount(s)}}const j5=Gf.length;function Ly(a){if(!a)return;if(!a.isControllingVariants){const o=a.parent?Ly(a.parent)||{}:{};return a.props.initial!==void 0&&(o.initial=a.props.initial),o}const s={};for(let o=0;o<j5;o++){const r=Gf[o],c=a.props[r];(yl(c)||c===!1)&&(s[r]=c)}return s}function By(a,s){if(!Array.isArray(s))return!1;const o=s.length;if(o!==a.length)return!1;for(let r=0;r<o;r++)if(s[r]!==a[r])return!1;return!0}const C5=[...Yf].reverse(),N5=Yf.length;function D5(a){return s=>Promise.all(s.map(({animation:o,options:r})=>jS(a,o,r)))}function z5(a){let s=D5(a),o=Dp(),r=!0,c=!1;const m=g=>(b,x)=>{const A=bi(a,x,g==="exit"?a.presenceContext?.custom:void 0);if(A){const{transition:E,transitionEnd:O,..._}=A;b={...b,..._,...O}}return b};function f(g){s=g(a)}function p(g){const{props:b}=a,x=Ly(a.parent)||{},A=[],E=new Set;let O={},_=1/0;for(let Q=0;Q<N5;Q++){const B=C5[Q],z=o[B],X=b[B]!==void 0?b[B]:x[B],st=yl(X),Y=B===g?z.isActive:null;Y===!1&&(_=Q);let F=X===x[B]&&X!==b[B]&&st;if(F&&(r||c)&&a.manuallyAnimateOnMount&&(F=!1),z.protectedKeys={...O},!z.isActive&&Y===null||!X&&!z.prevProp||hr(X)||typeof X=="boolean")continue;if(B==="exit"&&z.isActive&&Y!==!0){z.prevResolvedValues&&(O={...O,...z.prevResolvedValues});continue}const K=R5(z.prevProp,X);let W=K||B===g&&z.isActive&&!F&&st||Q>_&&st,I=!1;const lt=Array.isArray(X)?X:[X];let ft=lt.reduce(m(B),{});Y===!1&&(ft={});const{prevResolvedValues:Ot={}}=z,Et={...Ot,...ft},jt=et=>{W=!0,E.has(et)&&(I=!0,E.delete(et)),z.needsAnimating[et]=!0;const pt=a.getValue(et);pt&&(pt.liveStyle=!1)};for(const et in Et){const pt=ft[et],C=Ot[et];if(O.hasOwnProperty(et))continue;let T=!1;of(pt)&&of(C)?T=!By(pt,C)||K:T=pt!==C,T?pt!=null?jt(et):E.add(et):pt!==void 0&&E.has(et)?jt(et):z.protectedKeys[et]=!0}z.prevProp=X,z.prevResolvedValues=ft,z.isActive&&(O={...O,...ft}),(r||c)&&a.blockInitialAnimation&&(W=!1);const N=F&&K;W&&(!N||I)&&A.push(...lt.map(et=>{const pt={type:B};if(typeof et=="string"&&(r||c)&&!N&&a.manuallyAnimateOnMount&&a.parent){const{parent:C}=a,T=bi(C,et);if(C.enteringChildren&&T){const{delayChildren:L}=T.transition||{};pt.delay=oy(C.enteringChildren,a,L)}}return{animation:et,options:pt}}))}if(E.size){const Q={};if(typeof b.initial!="boolean"){const B=bi(a,Array.isArray(b.initial)?b.initial[0]:b.initial);B&&B.transition&&(Q.transition=B.transition)}E.forEach(B=>{const z=a.getBaseTarget(B),X=a.getValue(B);X&&(X.liveStyle=!0),Q[B]=z??null}),A.push({animation:Q})}let U=!!A.length;return r&&(b.initial===!1||b.initial===b.animate)&&!a.manuallyAnimateOnMount&&(U=!1),r=!1,c=!1,U?s(A):Promise.resolve()}function v(g,b){if(o[g].isActive===b)return Promise.resolve();a.variantChildren?.forEach(A=>A.animationState?.setActive(g,b)),o[g].isActive=b;const x=p(g);for(const A in o)o[A].protectedKeys={};return x}return{animateChanges:p,setActive:v,setAnimateFunction:f,getState:()=>o,reset:()=>{o=Dp(),c=!0}}}function R5(a,s){return typeof s=="string"?s!==a:Array.isArray(s)?!By(s,a):!1}function mi(a=!1){return{isActive:a,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Dp(){return{animate:mi(!0),whileInView:mi(),whileHover:mi(),whileTap:mi(),whileDrag:mi(),whileFocus:mi(),exit:mi()}}function yf(a,s){a.min=s.min,a.max=s.max}function Vn(a,s){yf(a.x,s.x),yf(a.y,s.y)}function zp(a,s){a.translate=s.translate,a.scale=s.scale,a.originPoint=s.originPoint,a.origin=s.origin}const Uy=1e-4,O5=1-Uy,V5=1+Uy,Hy=.01,_5=0-Hy,k5=0+Hy;function Qe(a){return a.max-a.min}function L5(a,s,o){return Math.abs(a-s)<=o}function Rp(a,s,o,r=.5){a.origin=r,a.originPoint=se(s.min,s.max,a.origin),a.scale=Qe(o)/Qe(s),a.translate=se(o.min,o.max,a.origin)-a.originPoint,(a.scale>=O5&&a.scale<=V5||isNaN(a.scale))&&(a.scale=1),(a.translate>=_5&&a.translate<=k5||isNaN(a.translate))&&(a.translate=0)}function hl(a,s,o,r){Rp(a.x,s.x,o.x,r?r.originX:void 0),Rp(a.y,s.y,o.y,r?r.originY:void 0)}function Op(a,s,o,r=0){const c=r?se(o.min,o.max,r):o.min;a.min=c+s.min,a.max=a.min+Qe(s)}function B5(a,s,o,r){Op(a.x,s.x,o.x,r?.x),Op(a.y,s.y,o.y,r?.y)}function Vp(a,s,o,r=0){const c=r?se(o.min,o.max,r):o.min;a.min=s.min-c,a.max=a.min+Qe(s)}function ur(a,s,o,r){Vp(a.x,s.x,o.x,r?.x),Vp(a.y,s.y,o.y,r?.y)}function _p(a,s,o,r,c){return a-=s,a=rr(a,1/o,r),c!==void 0&&(a=rr(a,1/c,r)),a}function U5(a,s=0,o=1,r=.5,c,m=a,f=a){if($n.test(s)&&(s=parseFloat(s),s=se(f.min,f.max,s/100)-f.min),typeof s!="number")return;let p=se(m.min,m.max,r);a===m&&(p-=s),a.min=_p(a.min,s,o,p,c),a.max=_p(a.max,s,o,p,c)}function kp(a,s,[o,r,c],m,f){U5(a,s[o],s[r],s[c],s.scale,m,f)}const H5=["x","scaleX","originX"],q5=["y","scaleY","originY"];function Lp(a,s,o,r){kp(a.x,s,H5,o?o.x:void 0,r?r.x:void 0),kp(a.y,s,q5,o?o.y:void 0,r?r.y:void 0)}function Bp(a){return a.translate===0&&a.scale===1}function qy(a){return Bp(a.x)&&Bp(a.y)}function Up(a,s){return a.min===s.min&&a.max===s.max}function Y5(a,s){return Up(a.x,s.x)&&Up(a.y,s.y)}function Hp(a,s){return Math.round(a.min)===Math.round(s.min)&&Math.round(a.max)===Math.round(s.max)}function Yy(a,s){return Hp(a.x,s.x)&&Hp(a.y,s.y)}function qp(a){return Qe(a.x)/Qe(a.y)}function Yp(a,s){return a.translate===s.translate&&a.scale===s.scale&&a.originPoint===s.originPoint}function Zn(a){return[a("x"),a("y")]}function G5(a,s,o){let r="";const c=a.x.translate/s.x,m=a.y.translate/s.y,f=o?.z||0;if((c||m||f)&&(r=`translate3d(${c}px, ${m}px, ${f}px) `),(s.x!==1||s.y!==1)&&(r+=`scale(${1/s.x}, ${1/s.y}) `),o){const{transformPerspective:g,rotate:b,pathRotation:x,rotateX:A,rotateY:E,skewX:O,skewY:_}=o;g&&(r=`perspective(${g}px) ${r}`),b&&(r+=`rotate(${b}deg) `),x&&(r+=`rotate(${x}deg) `),A&&(r+=`rotateX(${A}deg) `),E&&(r+=`rotateY(${E}deg) `),O&&(r+=`skewX(${O}deg) `),_&&(r+=`skewY(${_}deg) `)}const p=a.x.scale*s.x,v=a.y.scale*s.y;return(p!==1||v!==1)&&(r+=`scale(${p}, ${v})`),r||"none"}const Gy=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],X5=Gy.length,Gp=a=>typeof a=="string"?parseFloat(a):a,Xp=a=>typeof a=="number"||ut.test(a);function K5(a,s,o,r,c,m){c?(a.opacity=se(0,o.opacity??1,Z5(r)),a.opacityExit=se(s.opacity??1,0,Q5(r))):m&&(a.opacity=se(s.opacity??1,o.opacity??1,r));for(let f=0;f<X5;f++){const p=Gy[f];let v=Kp(s,p),g=Kp(o,p);if(v===void 0&&g===void 0)continue;v||(v=0),g||(g=0),v===0||g===0||Xp(v)===Xp(g)?(a[p]=Math.max(se(Gp(v),Gp(g),r),0),($n.test(g)||$n.test(v))&&(a[p]+="%")):a[p]=g}(s.rotate||o.rotate)&&(a.rotate=se(s.rotate||0,o.rotate||0,r))}function Kp(a,s){return a[s]!==void 0?a[s]:a.borderRadius}const Z5=Xy(0,.5,_g),Q5=Xy(.5,.95,Cn);function Xy(a,s,o){return r=>r<a?0:r>s?1:o(pl(a,s,r))}function $5(a,s,o){const r=He(a)?a:us(a);return r.start(kf("",r,s,o)),r.animation}function xl(a,s,o,r={passive:!0}){return a.addEventListener(s,o,r),()=>a.removeEventListener(s,o)}const P5=(a,s)=>a.depth-s.depth;class F5{constructor(){this.children=[],this.isDirty=!1}add(s){Af(this.children,s),this.isDirty=!0}remove(s){er(this.children,s),this.isDirty=!0}forEach(s){this.isDirty&&this.children.sort(P5),this.isDirty=!1,this.children.forEach(s)}}function J5(a,s){const o=Ze.now(),r=({timestamp:c})=>{const m=c-o;m>=s&&(Ga(r),a(m-s))};return le.setup(r,!0),()=>Ga(r)}function Jo(a){return He(a)?a.get():a}class W5{constructor(){this.members=[]}add(s){Af(this.members,s);for(let o=this.members.length-1;o>=0;o--){const r=this.members[o];if(r===s||r===this.lead||r===this.prevLead)continue;const c=r.instance;(!c||c.isConnected===!1)&&!r.snapshot&&(er(this.members,r),r.unmount())}s.scheduleRender()}remove(s){if(er(this.members,s),s===this.prevLead&&(this.prevLead=void 0),s===this.lead){const o=this.members[this.members.length-1];o&&this.promote(o)}}relegate(s){for(let o=this.members.indexOf(s)-1;o>=0;o--){const r=this.members[o];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(s,o){const r=this.lead;if(s!==r&&(this.prevLead=r,this.lead=s,s.show(),r)){r.updateSnapshot(),s.scheduleRender();const{layoutDependency:c}=r.options,{layoutDependency:m}=s.options;(c===void 0||c!==m)&&(s.resumeFrom=r,o&&(r.preserveOpacity=!0),r.snapshot&&(s.snapshot=r.snapshot,s.snapshot.latestValues=r.animationValues||r.latestValues),s.root?.isUpdating&&(s.isLayoutDirty=!0)),s.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(s=>{s.options.onExitComplete?.(),s.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(s=>s.instance&&s.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Wo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Lc=["","X","Y","Z"],I5=1e3;let tT=0;function Bc(a,s,o,r){const{latestValues:c}=s;c[a]&&(o[a]=c[a],s.setStaticValue(a,0),r&&(r[a]=0))}function Ky(a){if(a.hasCheckedOptimisedAppear=!0,a.root===a)return;const{visualElement:s}=a.options;if(!s)return;const o=dy(s);if(window.MotionHasOptimisedAnimation(o,"transform")){const{layout:c,layoutId:m}=a.options;window.MotionCancelOptimisedAnimation(o,"transform",le,!(c||m))}const{parent:r}=a;r&&!r.hasCheckedOptimisedAppear&&Ky(r)}function Zy({attachResizeListener:a,defaultParent:s,measureScroll:o,checkIsScrollRoot:r,resetTransform:c}){return class{constructor(f={},p=s?.()){this.id=tT++,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(aT),this.nodes.forEach(uT),this.nodes.forEach(cT),this.nodes.forEach(iT)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=f,this.root=p?p.root||p:this,this.path=p?[...p.path,p]:[],this.parent=p,this.depth=p?p.depth+1:0;for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new F5)}addEventListener(f,p){return this.eventHandlers.has(f)||this.eventHandlers.set(f,new Ef),this.eventHandlers.get(f).add(p)}notifyListeners(f,...p){const v=this.eventHandlers.get(f);v&&v.notify(...p)}hasListeners(f){return this.eventHandlers.has(f)}mount(f){if(this.instance)return;this.isSVG=qf(f)&&!n5(f),this.instance=f;const{layoutId:p,layout:v,visualElement:g}=this.options;if(g&&!g.current&&g.mount(f),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(v||p)&&(this.isLayoutDirty=!0),a){let b,x=0;const A=()=>this.root.updateBlockedByResize=!1;le.read(()=>{x=window.innerWidth}),a(f,()=>{const E=window.innerWidth;E!==x&&(x=E,this.root.updateBlockedByResize=!0,b&&b(),b=J5(A,250),Wo.hasAnimatedSinceResize&&(Wo.hasAnimatedSinceResize=!1,this.nodes.forEach($p)))})}p&&this.root.registerSharedNode(p,this),this.options.animate!==!1&&g&&(p||v)&&this.addEventListener("didUpdate",({delta:b,hasLayoutChanged:x,hasRelativeLayoutChanged:A,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const O=this.options.transition||g.getDefaultTransition()||pT,{onLayoutAnimationStart:_,onLayoutAnimationComplete:U}=g.getProps(),Q=!this.targetLayout||!Yy(this.targetLayout,E),B=!x&&A;if(this.options.layoutRoot||this.resumeFrom||B||x&&(Q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const z={..._f(O,"layout"),onPlay:_,onComplete:U};(g.shouldReduceMotion||this.options.layoutRoot)&&(z.delay=0,z.type=!1),this.startAnimation(z),this.setAnimationOrigin(b,B,z.path)}else x||$p(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const f=this.getStack();f&&f.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ga(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(fT),this.animationId++)}getTransformTemplate(){const{visualElement:f}=this.options;return f&&f.getProps().transformTemplate}willUpdate(f=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ky(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let b=0;b<this.path.length;b++){const x=this.path[b];x.shouldResetTransform=!0,(typeof x.latestValues.x=="string"||typeof x.latestValues.y=="string")&&(x.isLayoutDirty=!0),x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:p,layout:v}=this.options;if(p===void 0&&!v)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),f&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const v=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),v&&this.nodes.forEach(lT),this.nodes.forEach(Zp);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Qp);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oT),this.nodes.forEach(rT),this.nodes.forEach(eT),this.nodes.forEach(nT)):this.nodes.forEach(Qp),this.clearAllSnapshots();const p=Ze.now();Ue.delta=Pn(0,1e3/60,p-Ue.timestamp),Ue.timestamp=p,Ue.isProcessing=!0,Nc.update.process(Ue),Nc.preRender.process(Ue),Nc.render.process(Ue),Ue.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Uf.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sT),this.sharedNodes.forEach(dT)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,le.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){le.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Qe(this.snapshot.measuredBox.x)&&!Qe(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 v=0;v<this.path.length;v++)this.path[v].updateScroll();const f=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=we()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:p}=this.options;p&&p.notify("LayoutMeasure",this.layout.layoutBox,f?f.layoutBox:void 0)}updateScroll(f="measure"){let p=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===f&&(p=!1),p&&this.instance){const v=r(this.instance);this.scroll={animationId:this.root.animationId,phase:f,isRoot:v,offset:o(this.instance),wasRoot:this.scroll?this.scroll.isRoot:v}}}resetTransform(){if(!c)return;const f=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,p=this.projectionDelta&&!qy(this.projectionDelta),v=this.getTransformTemplate(),g=v?v(this.latestValues,""):void 0,b=g!==this.prevTransformTemplateValue;f&&this.instance&&(p||pi(this.latestValues)||b)&&(c(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(f=!0){const p=this.measurePageBox();let v=this.removeElementScroll(p);return f&&(v=this.removeTransform(v)),gT(v),{animationId:this.root.animationId,measuredBox:p,layoutBox:v,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:f}=this.options;if(!f)return we();const p=f.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(yT))){const{scroll:g}=this.root;g&&(Qn(p.x,g.offset.x),Qn(p.y,g.offset.y))}return p}removeElementScroll(f){const p=we();if(Vn(p,f),this.scroll?.wasRoot)return p;for(let v=0;v<this.path.length;v++){const g=this.path[v],{scroll:b,options:x}=g;g!==this.root&&b&&x.layoutScroll&&(b.wasRoot&&Vn(p,f),Qn(p.x,b.offset.x),Qn(p.y,b.offset.y))}return p}applyTransform(f,p=!1,v){const g=v||we();Vn(g,f);for(let b=0;b<this.path.length;b++){const x=this.path[b];!p&&x.options.layoutScroll&&x.scroll&&x!==x.root&&(Qn(g.x,-x.scroll.offset.x),Qn(g.y,-x.scroll.offset.y)),pi(x.latestValues)&&Fo(g,x.latestValues,x.layout?.layoutBox)}return pi(this.latestValues)&&Fo(g,this.latestValues,this.layout?.layoutBox),g}removeTransform(f){const p=we();Vn(p,f);for(let v=0;v<this.path.length;v++){const g=this.path[v];if(!pi(g.latestValues))continue;let b;g.instance&&(mf(g.latestValues)&&g.updateSnapshot(),b=we(),Vn(b,g.measurePageBox())),Lp(p,g.latestValues,g.snapshot?.layoutBox,b)}return pi(this.latestValues)&&Lp(p,this.latestValues),p}setTargetDelta(f){this.targetDelta=f,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(f){this.options={...this.options,...f,crossfade:f.crossfade!==void 0?f.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!==Ue.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(f=!1){const p=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=p.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=p.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=p.isSharedProjectionDirty);const v=!!this.resumingFrom||this!==p;if(!(f||v&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:b,layoutId:x}=this.options;if(!this.layout||!(b||x))return;this.resolvedRelativeTargetAt=Ue.timestamp;const A=this.getClosestProjectingParent();A&&this.linkedParentVersion!==A.layoutVersion&&!A.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&A&&A.layout?this.createRelativeTarget(A,this.layout.layoutBox,A.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=we(),this.targetWithTransforms=we()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),B5(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Vn(this.target,this.layout.layoutBox),Ny(this.target,this.targetDelta)):Vn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&A&&!!A.resumingFrom==!!this.resumingFrom&&!A.options.layoutScroll&&A.target&&this.animationProgress!==1?this.createRelativeTarget(A,this.target,A.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||mf(this.parent.latestValues)||Cy(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(f,p,v){this.relativeParent=f,this.linkedParentVersion=f.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=we(),this.relativeTargetOrigin=we(),ur(this.relativeTargetOrigin,p,v,this.options.layoutAnchor||void 0),Vn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const f=this.getLead(),p=!!this.resumingFrom||this!==f;let v=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(v=!1),p&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(v=!1),this.resolvedRelativeTargetAt===Ue.timestamp&&(v=!1),v)return;const{layout:g,layoutId:b}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||b))return;Vn(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,A=this.treeScale.y;h5(this.layoutCorrected,this.treeScale,this.path,p),f.layout&&!f.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(f.target=f.layout.layoutBox,f.targetWithTransforms=we());const{target:E}=f;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(zp(this.prevProjectionDelta.x,this.projectionDelta.x),zp(this.prevProjectionDelta.y,this.projectionDelta.y)),hl(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==A||!Yp(this.projectionDelta.x,this.prevProjectionDelta.x)||!Yp(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(f=!0){if(this.options.visualElement?.scheduleRender(),f){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ls(),this.projectionDelta=ls(),this.projectionDeltaWithTransform=ls()}setAnimationOrigin(f,p=!1,v){const g=this.snapshot,b=g?g.latestValues:{},x={...this.latestValues},A=ls();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!p;const E=we(),O=g?g.source:void 0,_=this.layout?this.layout.source:void 0,U=O!==_,Q=this.getStack(),B=!Q||Q.members.length<=1,z=!!(U&&!B&&this.options.crossfade===!0&&!this.path.some(mT));this.animationProgress=0;let X;const st=v?.interpolateProjection(f);this.mixTargetDelta=Y=>{const F=Y/1e3,K=st?.(F);K?(A.x.translate=K.x,A.x.scale=se(f.x.scale,1,F),A.x.origin=f.x.origin,A.x.originPoint=f.x.originPoint,A.y.translate=K.y,A.y.scale=se(f.y.scale,1,F),A.y.origin=f.y.origin,A.y.originPoint=f.y.originPoint):(Pp(A.x,f.x,F),Pp(A.y,f.y,F)),this.setTargetDelta(A),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ur(E,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),hT(this.relativeTarget,this.relativeTargetOrigin,E,F),X&&Y5(this.relativeTarget,X)&&(this.isProjectionDirty=!1),X||(X=we()),Vn(X,this.relativeTarget)),U&&(this.animationValues=x,K5(x,b,this.latestValues,F,z,B)),K&&K.rotate!==void 0&&(this.animationValues||(this.animationValues=x),this.animationValues.pathRotation=K.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=F},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(f){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ga(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=le.update(()=>{Wo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=us(0)),this.motionValue.jump(0,!1),this.currentAnimation=$5(this.motionValue,[0,1e3],{...f,velocity:0,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),f.onUpdate&&f.onUpdate(p)},onStop:()=>{},onComplete:()=>{f.onComplete&&f.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 f=this.getStack();f&&f.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(I5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const f=this.getLead();let{targetWithTransforms:p,target:v,layout:g,latestValues:b}=f;if(!(!p||!v||!g)){if(this!==f&&this.layout&&g&&Qy(this.options.animationType,this.layout.layoutBox,g.layoutBox)){v=this.target||we();const x=Qe(this.layout.layoutBox.x);v.x.min=f.target.x.min,v.x.max=v.x.min+x;const A=Qe(this.layout.layoutBox.y);v.y.min=f.target.y.min,v.y.max=v.y.min+A}Vn(p,v),Fo(p,b),hl(this.projectionDeltaWithTransform,this.layoutCorrected,p,b)}}registerSharedNode(f,p){this.sharedNodes.has(f)||this.sharedNodes.set(f,new W5),this.sharedNodes.get(f).add(p);const g=p.options.initialPromotionConfig;p.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(p):void 0})}isLead(){const f=this.getStack();return f?f.lead===this:!0}getLead(){const{layoutId:f}=this.options;return f?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:f}=this.options;return f?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:f}=this.options;if(f)return this.root.sharedNodes.get(f)}promote({needsReset:f,transition:p,preserveFollowOpacity:v}={}){const g=this.getStack();g&&g.promote(this,v),f&&(this.projectionDelta=void 0,this.needsReset=!0),p&&this.setOptions({transition:p})}relegate(){const f=this.getStack();return f?f.relegate(this):!1}resetSkewAndRotation(){const{visualElement:f}=this.options;if(!f)return;let p=!1;const{latestValues:v}=f;if((v.z||v.rotate||v.rotateX||v.rotateY||v.rotateZ||v.skewX||v.skewY)&&(p=!0),!p)return;const g={};v.z&&Bc("z",f,g,this.animationValues);for(let b=0;b<Lc.length;b++)Bc(`rotate${Lc[b]}`,f,g,this.animationValues),Bc(`skew${Lc[b]}`,f,g,this.animationValues);f.render();for(const b in g)f.setStaticValue(b,g[b]),this.animationValues&&(this.animationValues[b]=g[b]);f.scheduleRender()}applyProjectionStyles(f,p){if(!this.instance||this.isSVG)return;if(!this.isVisible){f.visibility="hidden";return}const v=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,f.visibility="",f.opacity="",f.pointerEvents=Jo(p?.pointerEvents)||"",f.transform=v?v(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(f.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,f.pointerEvents=Jo(p?.pointerEvents)||""),this.hasProjected&&!pi(this.latestValues)&&(f.transform=v?v({},""):"none",this.hasProjected=!1);return}f.visibility="";const b=g.animationValues||g.latestValues;this.applyTransformsToTarget();let x=G5(this.projectionDeltaWithTransform,this.treeScale,b);v&&(x=v(b,x)),f.transform=x;const{x:A,y:E}=this.projectionDelta;f.transformOrigin=`${A.origin*100}% ${E.origin*100}% 0`,g.animationValues?f.opacity=g===this?b.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:b.opacityExit:f.opacity=g===this?b.opacity!==void 0?b.opacity:"":b.opacityExit!==void 0?b.opacityExit:0;for(const O in gf){if(b[O]===void 0)continue;const{correct:_,applyTo:U,isCSSVariable:Q}=gf[O],B=x==="none"?b[O]:_(b[O],g);if(U){const z=U.length;for(let X=0;X<z;X++)f[U[X]]=B}else Q?this.options.visualElement.renderState.vars[O]=B:f[O]=B}this.options.layoutId&&(f.pointerEvents=g===this?Jo(p?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(f=>f.currentAnimation?.stop()),this.root.nodes.forEach(Zp),this.root.sharedNodes.clear()}}}function eT(a){a.updateLayout()}function nT(a){const s=a.resumeFrom?.snapshot||a.snapshot;if(a.isLead()&&a.layout&&s&&a.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:r}=a.layout,{animationType:c}=a.options,m=s.source!==a.layout.source;if(c==="size")Zn(b=>{const x=m?s.measuredBox[b]:s.layoutBox[b],A=Qe(x);x.min=o[b].min,x.max=x.min+A});else if(c==="x"||c==="y"){const b=c==="x"?"y":"x";yf(m?s.measuredBox[b]:s.layoutBox[b],o[b])}else Qy(c,s.layoutBox,o)&&Zn(b=>{const x=m?s.measuredBox[b]:s.layoutBox[b],A=Qe(o[b]);x.max=x.min+A,a.relativeTarget&&!a.currentAnimation&&(a.isProjectionDirty=!0,a.relativeTarget[b].max=a.relativeTarget[b].min+A)});const f=ls();hl(f,o,s.layoutBox);const p=ls();m?hl(p,a.applyTransform(r,!0),s.measuredBox):hl(p,o,s.layoutBox);const v=!qy(f);let g=!1;if(!a.resumeFrom){const b=a.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:x,layout:A}=b;if(x&&A){const E=a.options.layoutAnchor||void 0,O=we();ur(O,s.layoutBox,x.layoutBox,E);const _=we();ur(_,o,A.layoutBox,E),Yy(O,_)||(g=!0),b.options.layoutRoot&&(a.relativeTarget=_,a.relativeTargetOrigin=O,a.relativeParent=b)}}}a.notifyListeners("didUpdate",{layout:o,snapshot:s,delta:p,layoutDelta:f,hasLayoutChanged:v,hasRelativeLayoutChanged:g})}else if(a.isLead()){const{onExitComplete:o}=a.options;o&&o()}a.options.transition=void 0}function aT(a){a.parent&&(a.isProjecting()||(a.isProjectionDirty=a.parent.isProjectionDirty),a.isSharedProjectionDirty||(a.isSharedProjectionDirty=!!(a.isProjectionDirty||a.parent.isProjectionDirty||a.parent.isSharedProjectionDirty)),a.isTransformDirty||(a.isTransformDirty=a.parent.isTransformDirty))}function iT(a){a.isProjectionDirty=a.isSharedProjectionDirty=a.isTransformDirty=!1}function sT(a){a.clearSnapshot()}function Zp(a){a.clearMeasurements()}function lT(a){a.isLayoutDirty=!0,a.updateLayout()}function Qp(a){a.isLayoutDirty=!1}function oT(a){a.isAnimationBlocked&&a.layout&&!a.isLayoutDirty&&(a.snapshot=a.layout,a.isLayoutDirty=!0)}function rT(a){const{visualElement:s}=a.options;s&&s.getProps().onBeforeLayoutMeasure&&s.notify("BeforeLayoutMeasure"),a.resetTransform()}function $p(a){a.finishAnimation(),a.targetDelta=a.relativeTarget=a.target=void 0,a.isProjectionDirty=!0}function uT(a){a.resolveTargetDelta()}function cT(a){a.calcProjection()}function fT(a){a.resetSkewAndRotation()}function dT(a){a.removeLeadSnapshot()}function Pp(a,s,o){a.translate=se(s.translate,0,o),a.scale=se(s.scale,1,o),a.origin=s.origin,a.originPoint=s.originPoint}function Fp(a,s,o,r){a.min=se(s.min,o.min,r),a.max=se(s.max,o.max,r)}function hT(a,s,o,r){Fp(a.x,s.x,o.x,r),Fp(a.y,s.y,o.y,r)}function mT(a){return a.animationValues&&a.animationValues.opacityExit!==void 0}const pT={duration:.45,ease:[.4,0,.1,1]},Jp=a=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(a),Wp=Jp("applewebkit/")&&!Jp("chrome/")?Math.round:Cn;function Ip(a){a.min=Wp(a.min),a.max=Wp(a.max)}function gT(a){Ip(a.x),Ip(a.y)}function Qy(a,s,o){return a==="position"||a==="preserve-aspect"&&!L5(qp(s),qp(o),.2)}function yT(a){return a!==a.root&&a.scroll?.wasRoot}const xT=Zy({attachResizeListener:(a,s)=>xl(a,"resize",s),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Uc={current:void 0},$y=Zy({measureScroll:a=>({x:a.scrollLeft,y:a.scrollTop}),defaultParent:()=>{if(!Uc.current){const a=new xT({});a.mount(window),a.setOptions({layoutScroll:!0}),Uc.current=a}return Uc.current},resetTransform:(a,s)=>{a.style.transform=s!==void 0?s:"none"},checkIsScrollRoot:a=>window.getComputedStyle(a).position==="fixed"}),Zf=H.createContext({transformPagePoint:a=>a,isStatic:!1,reducedMotion:"never"});function tg(a,s){if(typeof a=="function")return a(s);a!=null&&(a.current=s)}function vT(...a){return s=>{let o=!1;const r=a.map(c=>{const m=tg(c,s);return!o&&typeof m=="function"&&(o=!0),m});if(o)return()=>{for(let c=0;c<r.length;c++){const m=r[c];typeof m=="function"?m():tg(a[c],null)}}}}function bT(...a){return H.useCallback(vT(...a),a)}class ST extends H.Component{getSnapshotBeforeUpdate(s){const o=this.props.childRef.current;if(Ko(o)&&s.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=o.offsetParent,c=Ko(r)&&r.offsetWidth||0,m=Ko(r)&&r.offsetHeight||0,f=getComputedStyle(o),p=this.props.sizeRef.current;p.height=parseFloat(f.height),p.width=parseFloat(f.width),p.top=o.offsetTop,p.left=o.offsetLeft,p.right=c-p.width-p.left,p.bottom=m-p.height-p.top,p.direction=f.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function TT({children:a,isPresent:s,anchorX:o,anchorY:r,root:c,pop:m}){const f=H.useId(),p=H.useRef(null),v=H.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=H.useContext(Zf),b=a.props?.ref??a?.ref,x=bT(p,b);return H.useInsertionEffect(()=>{const{width:A,height:E,top:O,left:_,right:U,bottom:Q,direction:B}=v.current;if(s||m===!1||!p.current||!A||!E)return;const z=B==="rtl",X=o==="left"?z?`right: ${U}`:`left: ${_}`:z?`left: ${_}`:`right: ${U}`,st=r==="bottom"?`bottom: ${Q}`:`top: ${O}`;p.current.dataset.motionPopId=f;const Y=document.createElement("style");g&&(Y.nonce=g);const F=c??document.head;return F.appendChild(Y),Y.sheet&&Y.sheet.insertRule(`
10
+ [data-motion-pop-id="${f}"] {
11
+ position: absolute !important;
12
+ width: ${A}px !important;
13
+ height: ${E}px !important;
14
+ ${X}px !important;
15
+ ${st}px !important;
16
+ }
17
+ `),()=>{p.current?.removeAttribute("data-motion-pop-id"),F.contains(Y)&&F.removeChild(Y)}},[s]),h.jsx(ST,{isPresent:s,childRef:p,sizeRef:v,pop:m,children:m===!1?a:H.cloneElement(a,{ref:x})})}const AT=({children:a,initial:s,isPresent:o,onExitComplete:r,custom:c,presenceAffectsLayout:m,mode:f,anchorX:p,anchorY:v,root:g})=>{const b=Tf(MT),x=H.useId();let A=!0,E=H.useMemo(()=>(A=!1,{id:x,initial:s,isPresent:o,custom:c,onExitComplete:O=>{b.set(O,!0);for(const _ of b.values())if(!_)return;r&&r()},register:O=>(b.set(O,!1),()=>b.delete(O))}),[o,b,r]);return m&&A&&(E={...E}),H.useMemo(()=>{b.forEach((O,_)=>b.set(_,!1))},[o]),H.useEffect(()=>{!o&&!b.size&&r&&r()},[o]),a=h.jsx(TT,{pop:f==="popLayout",isPresent:o,anchorX:p,anchorY:v,root:g,children:a}),h.jsx(fr.Provider,{value:E,children:a})};function MT(){return new Map}function Py(a=!0){const s=H.useContext(fr);if(s===null)return[!0,null];const{isPresent:o,onExitComplete:r,register:c}=s,m=H.useId();H.useEffect(()=>{if(a)return c(m)},[a]);const f=H.useCallback(()=>a&&r&&r(m),[m,r,a]);return!o&&r?[!1,f]:[!0]}const qo=a=>a.key||"";function eg(a){const s=[];return H.Children.forEach(a,o=>{H.isValidElement(o)&&s.push(o)}),s}const ET=({children:a,custom:s,initial:o=!0,onExitComplete:r,presenceAffectsLayout:c=!0,mode:m="sync",propagate:f=!1,anchorX:p="left",anchorY:v="top",root:g})=>{const[b,x]=Py(f),A=H.useMemo(()=>eg(a),[a]),E=f&&!b?[]:A.map(qo),O=H.useRef(!0),_=H.useRef(A),U=Tf(()=>new Map),Q=H.useRef(new Set),[B,z]=H.useState(A),[X,st]=H.useState(A);Ag(()=>{O.current=!1,_.current=A;for(let K=0;K<X.length;K++){const W=qo(X[K]);E.includes(W)?(U.delete(W),Q.current.delete(W)):U.get(W)!==!0&&U.set(W,!1)}},[X,E.length,E.join("-")]);const Y=[];if(A!==B){let K=[...A];for(let W=0;W<X.length;W++){const I=X[W],lt=qo(I);E.includes(lt)||(K.splice(W,0,I),Y.push(I))}return m==="wait"&&Y.length&&(K=Y),st(eg(K)),z(A),null}const{forceRender:F}=H.useContext(Sf);return h.jsx(h.Fragment,{children:X.map(K=>{const W=qo(K),I=f&&!b?!1:A===X||E.includes(W),lt=()=>{if(Q.current.has(W))return;if(U.has(W))Q.current.add(W),U.set(W,!0);else return;let ft=!0;U.forEach(Ot=>{Ot||(ft=!1)}),ft&&(F?.(),st(_.current),f&&x?.(),r&&r())};return h.jsx(AT,{isPresent:I,initial:!O.current||o?void 0:!1,custom:s,presenceAffectsLayout:c,mode:m,root:g,onExitComplete:I?void 0:lt,anchorX:p,anchorY:v,children:K},W)})})},Fy=H.createContext({strict:!1}),ng={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 ag=!1;function wT(){if(ag)return;const a={};for(const s in ng)a[s]={isEnabled:o=>ng[s].some(r=>!!o[r])};Ey(a),ag=!0}function Jy(){return wT(),u5()}function jT(a){const s=Jy();for(const o in a)s[o]={...s[o],...a[o]};Ey(s)}const CT=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 cr(a){return a.startsWith("while")||a.startsWith("drag")&&a!=="draggable"||a.startsWith("layout")||a.startsWith("onTap")||a.startsWith("onPan")||a.startsWith("onLayout")||CT.has(a)}let Wy=a=>!cr(a);function NT(a){typeof a=="function"&&(Wy=s=>s.startsWith("on")?!cr(s):a(s))}try{NT(require("@emotion/is-prop-valid").default)}catch{}function DT(a,s,o){const r={};for(const c in a)c==="values"&&typeof a.values=="object"||He(a[c])||(Wy(c)||o===!0&&cr(c)||!s&&!cr(c)||a.draggable&&c.startsWith("onDrag"))&&(r[c]=a[c]);return r}const pr=H.createContext({});function zT(a,s){if(mr(a)){const{initial:o,animate:r}=a;return{initial:o===!1||yl(o)?o:void 0,animate:yl(r)?r:void 0}}return a.inherit!==!1?s:{}}function RT(a){const{initial:s,animate:o}=zT(a,H.useContext(pr));return H.useMemo(()=>({initial:s,animate:o}),[ig(s),ig(o)])}function ig(a){return Array.isArray(a)?a.join(" "):a}const Qf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Iy(a,s,o){for(const r in s)!He(s[r])&&!Ry(r,o)&&(a[r]=s[r])}function OT({transformTemplate:a},s){return H.useMemo(()=>{const o=Qf();return Xf(o,s,a),Object.assign({},o.vars,o.style)},[s])}function VT(a,s){const o=a.style||{},r={};return Iy(r,o,a),Object.assign(r,OT(a,s)),r}function _T(a,s){const o={},r=VT(a,s);return a.drag&&a.dragListener!==!1&&(o.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=a.drag===!0?"none":`pan-${a.drag==="x"?"y":"x"}`),a.tabIndex===void 0&&(a.onTap||a.onTapStart||a.whileTap)&&(o.tabIndex=0),o.style=r,o}const t1=()=>({...Qf(),attrs:{}});function kT(a,s,o,r){const c=H.useMemo(()=>{const m=t1();return Oy(m,s,_y(r),a.transformTemplate,a.style),{...m.attrs,style:{...m.style}}},[s]);if(a.style){const m={};Iy(m,a.style,a),c.style={...m,...c.style}}return c}const LT=["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 $f(a){return typeof a!="string"||a.includes("-")?!1:!!(LT.indexOf(a)>-1||/[A-Z]/u.test(a))}function BT(a,s,o,{latestValues:r},c,m=!1,f){const v=(f??$f(a)?kT:_T)(s,r,c,a),g=DT(s,typeof a=="string",m),b=a!==H.Fragment?{...g,...v,ref:o}:{},{children:x}=s,A=H.useMemo(()=>He(x)?x.get():x,[x]);return H.createElement(a,{...b,children:A})}function UT({scrapeMotionValuesFromProps:a,createRenderState:s},o,r,c){return{latestValues:HT(o,r,c,a),renderState:s()}}function HT(a,s,o,r){const c={},m=r(a,{});for(const A in m)c[A]=Jo(m[A]);let{initial:f,animate:p}=a;const v=mr(a),g=Ay(a);s&&g&&!v&&a.inherit!==!1&&(f===void 0&&(f=s.initial),p===void 0&&(p=s.animate));let b=o?o.initial===!1:!1;b=b||f===!1;const x=b?p:f;if(x&&typeof x!="boolean"&&!hr(x)){const A=Array.isArray(x)?x:[x];for(let E=0;E<A.length;E++){const O=Lf(a,A[E]);if(O){const{transitionEnd:_,transition:U,...Q}=O;for(const B in Q){let z=Q[B];if(Array.isArray(z)){const X=b?z.length-1:0;z=z[X]}z!==null&&(c[B]=z)}for(const B in _)c[B]=_[B]}}}return c}const e1=a=>(s,o)=>{const r=H.useContext(pr),c=H.useContext(fr),m=()=>UT(a,s,r,c);return o?m():Tf(m)},qT=e1({scrapeMotionValuesFromProps:Kf,createRenderState:Qf}),YT=e1({scrapeMotionValuesFromProps:ky,createRenderState:t1}),GT=Symbol.for("motionComponentSymbol");function XT(a,s,o){const r=H.useRef(o);H.useInsertionEffect(()=>{r.current=o});const c=H.useRef(null);return H.useCallback(m=>{m&&a.onMount?.(m),s&&(m?s.mount(m):s.unmount());const f=r.current;if(typeof f=="function")if(m){const p=f(m);typeof p=="function"&&(c.current=p)}else c.current?(c.current(),c.current=null):f(m);else f&&(f.current=m)},[s])}const n1=H.createContext({});function as(a){return a&&typeof a=="object"&&Object.prototype.hasOwnProperty.call(a,"current")}function KT(a,s,o,r,c,m){const{visualElement:f}=H.useContext(pr),p=H.useContext(Fy),v=H.useContext(fr),g=H.useContext(Zf),b=g.reducedMotion,x=g.skipAnimations,A=H.useRef(null),E=H.useRef(!1);r=r||p.renderer,!A.current&&r&&(A.current=r(a,{visualState:s,parent:f,props:o,presenceContext:v,blockInitialAnimation:v?v.initial===!1:!1,reducedMotionConfig:b,skipAnimations:x,isSVG:m}),E.current&&A.current&&(A.current.manuallyAnimateOnMount=!0));const O=A.current,_=H.useContext(n1);O&&!O.projection&&c&&(O.type==="html"||O.type==="svg")&&ZT(A.current,o,c,_);const U=H.useRef(!1);H.useInsertionEffect(()=>{O&&U.current&&O.update(o,v)});const Q=o[fy],B=H.useRef(!!Q&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(Q)&&window.MotionHasOptimisedAnimation?.(Q));return Ag(()=>{E.current=!0,O&&(U.current=!0,window.MotionIsMounted=!0,O.updateFeatures(),O.scheduleRenderMicrotask(),B.current&&O.animationState&&O.animationState.animateChanges())}),H.useEffect(()=>{O&&(!B.current&&O.animationState&&O.animationState.animateChanges(),B.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(Q)}),B.current=!1),O.enteringChildren=void 0)}),O}function ZT(a,s,o,r){const{layoutId:c,layout:m,drag:f,dragConstraints:p,layoutScroll:v,layoutRoot:g,layoutAnchor:b,layoutCrossfade:x}=s;a.projection=new o(a.latestValues,s["data-framer-portal-id"]?void 0:a1(a.parent)),a.projection.setOptions({layoutId:c,layout:m,alwaysMeasureLayout:!!f||p&&as(p),visualElement:a,animationType:typeof m=="string"?m:"both",initialPromotionConfig:r,crossfade:x,layoutScroll:v,layoutRoot:g,layoutAnchor:b})}function a1(a){if(a)return a.options.allowProjection!==!1?a.projection:a1(a.parent)}function Hc(a,{forwardMotionProps:s=!1,type:o}={},r,c){r&&jT(r);const m=o?o==="svg":$f(a),f=m?YT:qT;function p(g,b){let x;const A={...H.useContext(Zf),...g,layoutId:QT(g)},{isStatic:E}=A,O=RT(g),_=f(g,E);if(!E&&typeof window<"u"){$T();const U=PT(A);x=U.MeasureLayout,O.visualElement=KT(a,_,A,c,U.ProjectionNode,m)}return h.jsxs(pr.Provider,{value:O,children:[x&&O.visualElement?h.jsx(x,{visualElement:O.visualElement,...A}):null,BT(a,g,XT(_,O.visualElement,b),_,E,s,m)]})}p.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const v=H.forwardRef(p);return v[GT]=a,v}function QT({layoutId:a}){const s=H.useContext(Sf).id;return s&&a!==void 0?s+"-"+a:a}function $T(a,s){H.useContext(Fy).strict}function PT(a){const s=Jy(),{drag:o,layout:r}=s;if(!o&&!r)return{};const c={...o,...r};return{MeasureLayout:o?.isEnabled(a)||r?.isEnabled(a)?c.MeasureLayout:void 0,ProjectionNode:c.ProjectionNode}}function FT(a,s){if(typeof Proxy>"u")return Hc;const o=new Map,r=(m,f)=>Hc(m,f,a,s),c=(m,f)=>r(m,f);return new Proxy(c,{get:(m,f)=>f==="create"?r:(o.has(f)||o.set(f,Hc(f,void 0,a,s)),o.get(f))})}const JT=(a,s)=>s.isSVG??$f(a)?new w5(s):new b5(s,{allowProjection:a!==H.Fragment});class WT extends Xa{constructor(s){super(s),s.animationState||(s.animationState=z5(s))}updateAnimationControlsSubscription(){const{animate:s}=this.node.getProps();hr(s)&&(this.unmountControls=s.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:s}=this.node.getProps(),{animate:o}=this.node.prevProps||{};s!==o&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let IT=0;class t3 extends Xa{constructor(){super(...arguments),this.id=IT++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:s,onExitComplete:o}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||s===r)return;if(s&&r===!1){if(this.isExitComplete){const{initial:m,custom:f}=this.node.getProps();if(typeof m=="string"||typeof m=="object"&&m!==null&&!Array.isArray(m)){const p=bi(this.node,m,f);if(p){const{transition:v,transitionEnd:g,...b}=p;for(const x in b)this.node.getValue(x)?.jump(b[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const c=this.node.animationState.setActive("exit",!s);o&&!s&&c.then(()=>{this.isExitComplete=!0,o(this.id)})}mount(){const{register:s,onExitComplete:o}=this.node.presenceContext||{};o&&o(this.id),s&&(this.unmount=s(this.id))}unmount(){}}const e3={animation:{Feature:WT},exit:{Feature:t3}};function Tl(a){return{point:{x:a.pageX,y:a.pageY}}}const n3=a=>s=>Hf(s)&&a(s,Tl(s));function ml(a,s,o,r){return xl(a,s,n3(o),r)}const i1=({current:a})=>a?a.ownerDocument.defaultView:null,sg=(a,s)=>Math.abs(a-s);function a3(a,s){const o=sg(a.x,s.x),r=sg(a.y,s.y);return Math.sqrt(o**2+r**2)}const lg=new Set(["auto","scroll"]);class s1{constructor(s,o,{transformPagePoint:r,contextWindow:c=window,dragSnapToOrigin:m=!1,distanceThreshold:f=3,element:p}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=E=>{this.handleScroll(E.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Yo(this.lastRawMoveEventInfo,this.transformPagePoint));const E=qc(this.lastMoveEventInfo,this.history),O=this.startEvent!==null,_=a3(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!O&&!_)return;const{point:U}=E,{timestamp:Q}=Ue;this.history.push({...U,timestamp:Q});const{onStart:B,onMove:z}=this.handlers;O||(B&&B(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,E)},this.handlePointerMove=(E,O)=>{this.lastMoveEvent=E,this.lastRawMoveEventInfo=O,this.lastMoveEventInfo=Yo(O,this.transformPagePoint),le.update(this.updatePoint,!0)},this.handlePointerUp=(E,O)=>{this.end();const{onEnd:_,onSessionEnd:U,resumeAnimation:Q}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&Q&&Q(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=qc(E.type==="pointercancel"?this.lastMoveEventInfo:Yo(O,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,B),U&&U(E,B)},!Hf(s))return;this.dragSnapToOrigin=m,this.handlers=o,this.transformPagePoint=r,this.distanceThreshold=f,this.contextWindow=c||window;const v=Tl(s),g=Yo(v,this.transformPagePoint),{point:b}=g,{timestamp:x}=Ue;this.history=[{...b,timestamp:x}];const{onSessionStart:A}=o;A&&A(s,qc(g,this.history)),this.removeListeners=vl(ml(this.contextWindow,"pointermove",this.handlePointerMove),ml(this.contextWindow,"pointerup",this.handlePointerUp),ml(this.contextWindow,"pointercancel",this.handlePointerUp)),p&&this.startScrollTracking(p)}startScrollTracking(s){let o=s.parentElement;for(;o;){const r=getComputedStyle(o);(lg.has(r.overflowX)||lg.has(r.overflowY))&&this.scrollPositions.set(o,{x:o.scrollLeft,y:o.scrollTop}),o=o.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(s){const o=this.scrollPositions.get(s);if(!o)return;const r=s===window,c=r?{x:window.scrollX,y:window.scrollY}:{x:s.scrollLeft,y:s.scrollTop},m={x:c.x-o.x,y:c.y-o.y};m.x===0&&m.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=m.x,this.lastMoveEventInfo.point.y+=m.y):this.history.length>0&&(this.history[0].x-=m.x,this.history[0].y-=m.y),this.scrollPositions.set(s,c),le.update(this.updatePoint,!0))}updateHandlers(s){this.handlers=s}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ga(this.updatePoint)}}function Yo(a,s){return s?{point:s(a.point)}:a}function og(a,s){return{x:a.x-s.x,y:a.y-s.y}}function qc({point:a},s){return{point:a,delta:og(a,l1(s)),offset:og(a,i3(s)),velocity:s3(s,.1)}}function i3(a){return a[0]}function l1(a){return a[a.length-1]}function s3(a,s){if(a.length<2)return{x:0,y:0};let o=a.length-1,r=null;const c=l1(a);for(;o>=0&&(r=a[o],!(c.timestamp-r.timestamp>mn(s)));)o--;if(!r)return{x:0,y:0};r===a[0]&&a.length>2&&c.timestamp-r.timestamp>mn(s)*2&&(r=a[1]);const m=jn(c.timestamp-r.timestamp);if(m===0)return{x:0,y:0};const f={x:(c.x-r.x)/m,y:(c.y-r.y)/m};return f.x===1/0&&(f.x=0),f.y===1/0&&(f.y=0),f}function l3(a,{min:s,max:o},r){return s!==void 0&&a<s?a=r?se(s,a,r.min):Math.max(a,s):o!==void 0&&a>o&&(a=r?se(o,a,r.max):Math.min(a,o)),a}function rg(a,s,o){return{min:s!==void 0?a.min+s:void 0,max:o!==void 0?a.max+o-(a.max-a.min):void 0}}function o3(a,{top:s,left:o,bottom:r,right:c}){return{x:rg(a.x,o,c),y:rg(a.y,s,r)}}function ug(a,s){let o=s.min-a.min,r=s.max-a.max;return s.max-s.min<a.max-a.min&&([o,r]=[r,o]),{min:o,max:r}}function r3(a,s){return{x:ug(a.x,s.x),y:ug(a.y,s.y)}}function u3(a,s){let o=.5;const r=Qe(a),c=Qe(s);return c>r?o=pl(s.min,s.max-r,a.min):r>c&&(o=pl(a.min,a.max-c,s.min)),Pn(0,1,o)}function c3(a,s){const o={};return s.min!==void 0&&(o.min=s.min-a.min),s.max!==void 0&&(o.max=s.max-a.min),o}const xf=.35;function f3(a=xf){return a===!1?a=0:a===!0&&(a=xf),{x:cg(a,"left","right"),y:cg(a,"top","bottom")}}function cg(a,s,o){return{min:fg(a,s),max:fg(a,o)}}function fg(a,s){return typeof a=="number"?a:a[s]||0}const d3=new WeakMap;class h3{constructor(s){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=we(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=s}start(s,{snapToCursor:o=!1,distanceThreshold:r}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const m=x=>{o&&this.snapToCursor(Tl(x).point),this.stopAnimation()},f=(x,A)=>{const{drag:E,dragPropagation:O,onDragStart:_}=this.getProps();if(E&&!O&&(this.openDragLock&&this.openDragLock(),this.openDragLock=US(E),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=A,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Zn(Q=>{let B=this.getAxisMotionValue(Q).get()||0;if($n.test(B)){const{projection:z}=this.visualElement;if(z&&z.layout){const X=z.layout.layoutBox[Q];X&&(B=Qe(X)*(parseFloat(B)/100))}}this.originPoint[Q]=B}),_&&le.update(()=>_(x,A),!1,!0),rf(this.visualElement,"transform");const{animationState:U}=this.visualElement;U&&U.setActive("whileDrag",!0)},p=(x,A)=>{this.latestPointerEvent=x,this.latestPanInfo=A;const{dragPropagation:E,dragDirectionLock:O,onDirectionLock:_,onDrag:U}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:Q}=A;if(O&&this.currentDirection===null){this.currentDirection=p3(Q),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",A.point,Q),this.updateAxis("y",A.point,Q),this.visualElement.render(),U&&le.update(()=>U(x,A),!1,!0)},v=(x,A)=>{this.latestPointerEvent=x,this.latestPanInfo=A,this.stop(x,A),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:b}=this.getProps();this.panSession=new s1(s,{onSessionStart:m,onStart:f,onMove:p,onSessionEnd:v,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:b,distanceThreshold:r,contextWindow:i1(this.visualElement),element:this.visualElement.current})}stop(s,o){const r=s||this.latestPointerEvent,c=o||this.latestPanInfo,m=this.isDragging;if(this.cancel(),!m||!c||!r)return;const{velocity:f}=c;this.startAnimation(f);const{onDragEnd:p}=this.getProps();p&&le.postRender(()=>p(r,c))}cancel(){this.isDragging=!1;const{projection:s,animationState:o}=this.visualElement;s&&(s.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),o&&o.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(s,o,r){const{drag:c}=this.getProps();if(!r||!Go(s,c,this.currentDirection))return;const m=this.getAxisMotionValue(s);let f=this.originPoint[s]+r[s];this.constraints&&this.constraints[s]&&(f=l3(f,this.constraints[s],this.elastic[s])),m.set(f)}resolveConstraints(){const{dragConstraints:s,dragElastic:o}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;s&&as(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&r?this.constraints=o3(r.layoutBox,s):this.constraints=!1,this.elastic=f3(o),c!==this.constraints&&!as(s)&&r&&this.constraints&&!this.hasMutatedConstraints&&Zn(m=>{this.constraints!==!1&&this.getAxisMotionValue(m)&&(this.constraints[m]=c3(r.layoutBox[m],this.constraints[m]))})}resolveRefConstraints(){const{dragConstraints:s,onMeasureDragConstraints:o}=this.getProps();if(!s||!as(s))return!1;const r=s.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;c.root&&(c.root.scroll=void 0,c.root.updateScroll());const m=m5(r,c.root,this.visualElement.getTransformPagePoint());let f=r3(c.layout.layoutBox,m);if(o){const p=o(f5(f));this.hasMutatedConstraints=!!p,p&&(f=jy(p))}return f}startAnimation(s){const{drag:o,dragMomentum:r,dragElastic:c,dragTransition:m,dragSnapToOrigin:f,onDragTransitionEnd:p}=this.getProps(),v=this.constraints||{},g=Zn(b=>{if(!Go(b,o,this.currentDirection))return;let x=v&&v[b]||{};(f===!0||f===b)&&(x={min:0,max:0});const A=c?200:1e6,E=c?40:1e7,O={type:"inertia",velocity:r?s[b]:0,bounceStiffness:A,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...m,...x};return this.startAxisValueAnimation(b,O)});return Promise.all(g).then(p)}startAxisValueAnimation(s,o){const r=this.getAxisMotionValue(s);return rf(this.visualElement,s),r.start(kf(s,r,0,o,this.visualElement,!1))}stopAnimation(){Zn(s=>this.getAxisMotionValue(s).stop())}getAxisMotionValue(s){const o=`_drag${s.toUpperCase()}`,c=this.visualElement.getProps()[o];return c||this.visualElement.getValue(s,this.visualElement.latestValues[s]??0)}snapToCursor(s){Zn(o=>{const{drag:r}=this.getProps();if(!Go(o,r,this.currentDirection))return;const{projection:c}=this.visualElement,m=this.getAxisMotionValue(o);if(c&&c.layout){const{min:f,max:p}=c.layout.layoutBox[o],v=m.get()||0;m.set(s[o]-se(f,p,.5)+v)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:s,dragConstraints:o}=this.getProps(),{projection:r}=this.visualElement;if(!as(o)||!r||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Zn(f=>{const p=this.getAxisMotionValue(f);if(p&&this.constraints!==!1){const v=p.get();c[f]=u3({min:v,max:v},this.constraints[f])}});const{transformTemplate:m}=this.visualElement.getProps();this.visualElement.current.style.transform=m?m({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Zn(f=>{if(!Go(f,s,null))return;const p=this.getAxisMotionValue(f),{min:v,max:g}=this.constraints[f];p.set(se(v,g,c[f]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;d3.set(this.visualElement,this);const s=this.visualElement.current,o=ml(s,"pointerdown",g=>{const{drag:b,dragListener:x=!0}=this.getProps(),A=g.target,E=A!==s&&KS(A);b&&x&&!E&&this.start(g)});let r;const c=()=>{const{dragConstraints:g}=this.getProps();as(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=m3(s,g.current,()=>this.scalePositionWithinConstraints())))},{projection:m}=this.visualElement,f=m.addEventListener("measure",c);m&&!m.layout&&(m.root&&m.root.updateScroll(),m.updateLayout()),le.read(c);const p=xl(window,"resize",()=>this.scalePositionWithinConstraints()),v=m.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:b})=>{this.isDragging&&b&&(Zn(x=>{const A=this.getAxisMotionValue(x);A&&(this.originPoint[x]+=g[x].translate,A.set(A.get()+g[x].translate))}),this.visualElement.render())}));return()=>{p(),o(),f(),v&&v(),r&&r()}}getProps(){const s=this.visualElement.getProps(),{drag:o=!1,dragDirectionLock:r=!1,dragPropagation:c=!1,dragConstraints:m=!1,dragElastic:f=xf,dragMomentum:p=!0}=s;return{...s,drag:o,dragDirectionLock:r,dragPropagation:c,dragConstraints:m,dragElastic:f,dragMomentum:p}}}function dg(a){let s=!0;return()=>{if(s){s=!1;return}a()}}function m3(a,s,o){const r=vp(a,dg(o)),c=vp(s,dg(o));return()=>{r(),c()}}function Go(a,s,o){return(s===!0||s===a)&&(o===null||o===a)}function p3(a,s=10){let o=null;return Math.abs(a.y)>s?o="y":Math.abs(a.x)>s&&(o="x"),o}class g3 extends Xa{constructor(s){super(s),this.removeGroupControls=Cn,this.removeListeners=Cn,this.controls=new h3(s)}mount(){const{dragControls:s}=this.node.getProps();s&&(this.removeGroupControls=s.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Cn}update(){const{dragControls:s}=this.node.getProps(),{dragControls:o}=this.node.prevProps||{};s!==o&&(this.removeGroupControls(),s&&(this.removeGroupControls=s.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Yc=a=>(s,o)=>{a&&le.update(()=>a(s,o),!1,!0)};class y3 extends Xa{constructor(){super(...arguments),this.removePointerDownListener=Cn}onPointerDown(s){this.session=new s1(s,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i1(this.node)})}createPanHandlers(){const{onPanSessionStart:s,onPanStart:o,onPan:r,onPanEnd:c}=this.node.getProps();return{onSessionStart:Yc(s),onStart:Yc(o),onMove:Yc(r),onEnd:(m,f)=>{delete this.session,c&&le.postRender(()=>c(m,f))}}}mount(){this.removePointerDownListener=ml(this.node.current,"pointerdown",s=>this.onPointerDown(s))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Gc=!1;class x3 extends H.Component{componentDidMount(){const{visualElement:s,layoutGroup:o,switchLayoutGroup:r,layoutId:c}=this.props,{projection:m}=s;m&&(o.group&&o.group.add(m),r&&r.register&&c&&r.register(m),Gc&&m.root.didUpdate(),m.addEventListener("animationComplete",()=>{this.safeToRemove()}),m.setOptions({...m.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Wo.hasEverUpdated=!0}getSnapshotBeforeUpdate(s){const{layoutDependency:o,visualElement:r,drag:c,isPresent:m}=this.props,{projection:f}=r;return f&&(f.isPresent=m,s.layoutDependency!==o&&f.setOptions({...f.options,layoutDependency:o}),Gc=!0,c||s.layoutDependency!==o||o===void 0||s.isPresent!==m?f.willUpdate():this.safeToRemove(),s.isPresent!==m&&(m?f.promote():f.relegate()||le.postRender(()=>{const p=f.getStack();(!p||!p.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:s,layoutAnchor:o}=this.props,{projection:r}=s;r&&(r.options.layoutAnchor=o,r.root.didUpdate(),Uf.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:s,layoutGroup:o,switchLayoutGroup:r}=this.props,{projection:c}=s;Gc=!0,c&&(c.scheduleCheckAfterUnmount(),o&&o.group&&o.group.remove(c),r&&r.deregister&&r.deregister(c))}safeToRemove(){const{safeToRemove:s}=this.props;s&&s()}render(){return null}}function o1(a){const[s,o]=Py(),r=H.useContext(Sf);return h.jsx(x3,{...a,layoutGroup:r,switchLayoutGroup:H.useContext(n1),isPresent:s,safeToRemove:o})}const v3={pan:{Feature:y3},drag:{Feature:g3,ProjectionNode:$y,MeasureLayout:o1}};function hg(a,s,o){const{props:r}=a;a.animationState&&r.whileHover&&a.animationState.setActive("whileHover",o==="Start");const c="onHover"+o,m=r[c];m&&le.postRender(()=>m(s,Tl(s)))}class b3 extends Xa{mount(){const{current:s}=this.node;s&&(this.unmount=qS(s,(o,r)=>(hg(this.node,r,"Start"),c=>hg(this.node,c,"End"))))}unmount(){}}class S3 extends Xa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let s=!1;try{s=this.node.current.matches(":focus-visible")}catch{s=!0}!s||!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=vl(xl(this.node.current,"focus",()=>this.onFocus()),xl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mg(a,s,o){const{props:r}=a;if(a.current instanceof HTMLButtonElement&&a.current.disabled)return;a.animationState&&r.whileTap&&a.animationState.setActive("whileTap",o==="Start");const c="onTap"+(o==="End"?"":o),m=r[c];m&&le.postRender(()=>m(s,Tl(s)))}class T3 extends Xa{mount(){const{current:s}=this.node;if(!s)return;const{globalTapTarget:o,propagate:r}=this.node.props;this.unmount=QS(s,(c,m)=>(mg(this.node,m,"Start"),(f,{success:p})=>mg(this.node,f,p?"End":"Cancel")),{useGlobalTarget:o,stopPropagation:r?.tap===!1})}unmount(){}}const vf=new WeakMap,Xc=new WeakMap,A3=a=>{const s=vf.get(a.target);s&&s(a)},M3=a=>{a.forEach(A3)};function E3({root:a,...s}){const o=a||document;Xc.has(o)||Xc.set(o,{});const r=Xc.get(o),c=JSON.stringify(s);return r[c]||(r[c]=new IntersectionObserver(M3,{root:a,...s})),r[c]}function w3(a,s,o){const r=E3(s);return vf.set(a,o),r.observe(a),()=>{vf.delete(a),r.unobserve(a)}}const j3={some:0,all:1};class C3 extends Xa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:s={}}=this.node.getProps(),{root:o,margin:r,amount:c="some",once:m}=s,f={root:o?o.current:void 0,rootMargin:r,threshold:typeof c=="number"?c:j3[c]},p=v=>{const{isIntersecting:g}=v;if(this.isInView===g||(this.isInView=g,m&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:b,onViewportLeave:x}=this.node.getProps(),A=g?b:x;A&&A(v)};this.stopObserver=w3(this.node.current,f,p)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:s,prevProps:o}=this.node;["amount","margin","root"].some(N3(s,o))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function N3({viewport:a={}},{viewport:s={}}={}){return o=>a[o]!==s[o]}const D3={inView:{Feature:C3},tap:{Feature:T3},focus:{Feature:S3},hover:{Feature:b3}},z3={layout:{ProjectionNode:$y,MeasureLayout:o1}},R3={...e3,...D3,...v3,...z3},pg=FT(R3,JT),O3={ADR:0,Spec:1,SPEC:1,Feature:2,Claim:3,Test:4,Evidence:5,Release:6,Boundary:1,Profile:1,Risk:3,Issue:4};function Pf(a,s){let o=O3[a.family]??3;if(s==="packs"){const r=a.governancePacks&&a.governancePacks.length>0||a.packs&&a.packs.some(f=>f.includes("governance")||f.includes("core")),c=a.contractPacks&&a.contractPacks.length>0||a.packs&&a.packs.some(f=>f.includes("contract")),m=a.packs&&a.packs.length>0;r?o=1:c?o=2:m?o=3:o=0}else if(s==="validation"){const r=a.validation?.status||(a.status==="certified"?"pass":"unknown");r==="pass"?o=0:r==="warn"?o=1:r==="fail"?o=2:o=3}else if(s==="release"){const r=a.family==="Release",c=a.status||"active";r?o=3:c==="certified"?o=2:c==="active"?o=1:o=0}else if(s==="origins"){const r=a.originKind||"unknown";r==="ssot-core"?o=0:r==="ssot-origin"?o=1:r==="repo-local"?o=2:r==="extension-pack"||r==="generated"?o=3:o=4}else s==="proof"&&(a.family==="ADR"||a.family==="Spec"||a.family==="SPEC"?o=0:a.family==="Feature"?o=1:a.family==="Claim"?o=2:a.family==="Test"||a.family==="Evidence"?o=3:o=4);return o}function r1(a){const s=new Map;a.nodes.forEach(m=>s.set(m.id,m));const o=new Map,r=new Map,c=new Map;return a.edges.forEach(m=>{const f=r.get(m.from)||[];f.push(m.to),r.set(m.from,f);const p=o.get(m.to)||[];p.push(m.from),o.set(m.to,p);const v=c.get(m.from)||[];v.push(m),c.set(m.from,v);const g=c.get(m.to)||[];g.push(m),c.set(m.to,g)}),{nodeMap:s,incoming:o,outgoing:r,edgeMap:c}}function Kc(a,s,o){let r=a;const c=new Set;for(;r;){if(c.has(r))return!1;c.add(r);const m=s.get(r);if(!m||m.length===0)return!1;const f=m[0];if(o.has(f))return!0;r=f}return!1}function gg(a,s,o,r,c=220,m=90,f=1e3,p=600,v,g){const b={},x={};for(let Y=0;Y<=6;Y++)x[Y]=[];const A=new Set;g&&g.forEach(Y=>A.add(Y));const E=Array.from(r),O=new Set;for(;E.length>0;){const Y=E.shift();if(O.has(Y))continue;O.add(Y);const F=o.get(Y)||[];for(const K of F)A.add(K),O.has(K)||E.push(K)}const _=a.length>5e3;a.forEach((Y,F)=>{if(_){const W=Y.id.match(/-(\d+)$/),I=W?parseInt(W[1],10):-1;if(I!==-1){if(I>150&&I%500!==0)return}else if(F%50!==0)return}if(A.has(Y.id))return;const K=Pf(Y,v);x[K]||(x[K]=[]),x[K].push(Y.id)});const U=60,Q=120,B=200,z=52,X=32;let st=U;return Object.entries(x).forEach(([,Y])=>{const F=Y.length;if(F===0)return;let K=Math.min(4,Math.ceil(F/15));if(F>60){const Et=Math.max(12,Math.ceil(Math.sqrt(F)*1.5));K=Math.min(X,Math.max(4,Math.ceil(F/Et)))}const I=(Math.ceil(F/K)-1)*m,lt=Math.max(90,(p-I)/2),ft=Math.max(B,(K-1)*z+120),Ot=st+ft/2;Y.forEach((Et,jt)=>{const N=jt%K,nt=Math.floor(jt/K),et=(N-(K-1)/2)*z;b[Et]={x:Ot+et,y:lt+nt*m}}),st+=ft+Q}),b}function V3(a,s,o,r,c=1e3,m=600,f=.05,p=3200,v=.06,g=130,b){const x={...o};a.forEach(B=>{r.has(B.id)||(x[B.id]?(x[B.id].vx===void 0&&(x[B.id].vx=0),x[B.id].vy===void 0&&(x[B.id].vy=0)):x[B.id]={x:c/2+(Math.random()-.5)*200,y:m/2+(Math.random()-.5)*200,vx:0,vy:0})});const A=a.filter(B=>!r.has(B.id)).map(B=>B.id),E=A.length;if(E>100){const z=new Map;A.forEach(st=>{const Y=x[st];if(!Y)return;const F=Math.floor(Y.x/250),K=Math.floor(Y.y/250),W=`${F},${K}`;z.has(W)||z.set(W,[]),z.get(W).push(st)});const X=new Set;A.forEach(st=>{const Y=x[st];if(!Y)return;const F=Math.floor(Y.x/250),K=Math.floor(Y.y/250);for(let W=-1;W<=1;W++)for(let I=-1;I<=1;I++){const lt=`${F+W},${K+I}`,ft=z.get(lt);if(ft)for(const Ot of ft){if(st===Ot)continue;const Et=st<Ot?`${st}:${Ot}`:`${Ot}:${st}`;if(X.has(Et))continue;X.add(Et);const jt=x[Ot];if(!jt)continue;const N=Y.x-jt.x,nt=Y.y-jt.y,et=N*N+nt*nt+.1,pt=Math.sqrt(et);if(pt<450){const C=Math.min(8,p/(et+400)),T=N/pt*C,L=nt/pt*C;(Y.fx===void 0||Y.fx===null)&&(Y.vx=(Y.vx||0)+T,Y.vy=(Y.vy||0)+L),(jt.fx===void 0||jt.fx===null)&&(jt.vx=(jt.vx||0)-T,jt.vy=(jt.vy||0)-L)}}}})}else for(let B=0;B<E;B++){const z=A[B],X=x[z];if(X)for(let st=B+1;st<E;st++){const Y=A[st],F=x[Y];if(!F)continue;const K=X.x-F.x,W=X.y-F.y,I=K*K+W*W+.1,lt=Math.sqrt(I);if(lt<450){const ft=Math.min(8,p/(I+400)),Ot=K/lt*ft,Et=W/lt*ft;(X.fx===void 0||X.fx===null)&&(X.vx=(X.vx||0)+Ot,X.vy=(X.vy||0)+Et),(F.fx===void 0||F.fx===null)&&(F.vx=(F.vx||0)-Ot,F.vy=(F.vy||0)-Et)}}}s.forEach(B=>{if(r.has(B.from)||r.has(B.to))return;const z=x[B.from],X=x[B.to];if(!z||!X)return;const st=X.x-z.x,Y=X.y-z.y,F=Math.sqrt(st*st+Y*Y)||1,K=F-g,W=Math.max(-12,Math.min(12,v*K)),I=st/F*W,lt=Y/F*W;(z.fx===void 0||z.fx===null)&&(z.vx=(z.vx||0)+I,z.vy=(z.vy||0)+lt),(X.fx===void 0||X.fx===null)&&(X.vx=(X.vx||0)-I,X.vy=(X.vy||0)-lt)});const O=c/2,_=m/2,U=b==="flow-force"?.72:.62,Q=new Map;return a.forEach(B=>Q.set(B.id,B)),A.forEach(B=>{const z=x[B];if(!z)return;if(z.fx!==void 0&&z.fx!==null&&z.fy!==void 0&&z.fy!==null){z.x=z.fx,z.y=z.fy,z.vx=0,z.vy=0;return}if(b==="flow-force"){const st=Q.get(B),Y=st?Pf(st):3,F=60+Y*220;let K=.28;(Y===0||Y===6)&&(K=.85);const W=(F-z.x)*K;z.vx=(z.vx||0)+W;const I=(_-z.y)*.075;z.vy=(z.vy||0)+I}else{const st=O-z.x,Y=_-z.y;z.vx=(z.vx||0)+st*f,z.vy=(z.vy||0)+Y*f}z.x+=(z.vx||0)*U,z.y+=(z.vy||0)*U,z.vx*=U,z.vy*=U;const X=40;z.x<X&&(z.x=X,z.vx=0),z.x>c-X&&(z.x=c-X,z.vx=0),z.y<X&&(z.y=X,z.vy=0),z.y>m-X&&(z.y=m-X,z.vy=0)}),x}function _3(a,s,o,r,c){if(c==="lineage"||c==="proof"||c==="packs"){const x=(a+o)/2;return`M ${a} ${s} C ${x} ${s}, ${x} ${r}, ${o} ${r}`}const m=o-a,f=r-s,p=Math.sqrt(m*m+f*f);if(p<40)return`M ${a} ${s} L ${o} ${r}`;const v=25,g=(a+o)/2-f/p*v,b=(s+r)/2+m/p*v;return`M ${a} ${s} Q ${g} ${b}, ${o} ${r}`}const pa={ADR:{bg:"bg-amber-100",text:"text-amber-800",border:"border-amber-300",glow:"shadow-amber-200"},Spec:{bg:"bg-blue-100",text:"text-blue-800",border:"border-blue-300",glow:"shadow-blue-200"},SPEC:{bg:"bg-blue-100",text:"text-blue-800",border:"border-blue-300",glow:"shadow-blue-200"},Feature:{bg:"bg-indigo-100",text:"text-indigo-800",border:"border-indigo-300",glow:"shadow-indigo-200"},Claim:{bg:"bg-purple-100",text:"text-purple-800",border:"border-purple-300",glow:"shadow-purple-200"},Test:{bg:"bg-rose-100",text:"text-rose-800",border:"border-rose-300",glow:"shadow-rose-200"},Evidence:{bg:"bg-emerald-100",text:"text-emerald-800",border:"border-emerald-300",glow:"shadow-emerald-200"},Release:{bg:"bg-teal-100",text:"text-teal-800",border:"border-teal-300",glow:"shadow-teal-200"},Boundary:{bg:"bg-slate-100",text:"text-slate-800",border:"border-slate-300",glow:"shadow-slate-200"},Profile:{bg:"bg-gray-100",text:"text-gray-800",border:"border-gray-300",glow:"shadow-gray-200"},Risk:{bg:"bg-orange-100",text:"text-orange-800",border:"border-orange-300",glow:"shadow-orange-200"},Issue:{bg:"bg-red-100",text:"text-red-800",border:"border-red-300",glow:"shadow-red-200"}};function yg(a,s,o,r,c,m){if(c==="lineage"||c==="proof"||c==="packs"){const E=(a+o)/2;return`M ${a} ${s+m} C ${E} ${s+m}, ${E} ${r+m}, ${o} ${r+m}`}const f=o-a,p=r-s,v=Math.sqrt(f*f+p*p)||1,g=-p/v,b=f/v,x=g*m,A=b*m;return`M ${a+x} ${s+A} L ${o+x} ${r+A}`}const k3=({payload:a,positions:s,mode:o,selectedNodeId:r,selectedNodeIds:c=new Set,focusNodeId:m,collapsedNodeIds:f,hiddenNodeIds:p,onSelectNode:v,onToggleCollapse:g,onToggleHideNode:b,onClearHiddenNodes:x,onUpdatePositions:A,viewSettings:E,precomputedIndices:O,egoHops:_=1,onAddGroup:U,onBulkHideNodes:Q,onBulkHighlightNodes:B,highlightedNodeIds:z=new Set,customGroups:X=[],isolateEgo:st=!1})=>{const Y=H.useRef(null),K=o==="network"||o==="flow-force"?"":"transition-all duration-300",[W,I]=H.useState({x:50,y:50}),[lt,ft]=H.useState(.85),[Ot,Et]=H.useState(!1),jt=H.useRef({x:0,y:0}),[N,nt]=H.useState(!1),[et,pt]=H.useState(null),[C,T]=H.useState(null),L=H.useRef({x:0,y:0}),at=H.useRef({x:0,y:0}),ot=H.useRef(!1),Tt=H.useRef(null);H.useEffect(()=>{const S=q=>{const $=q.target;if($&&($.tagName==="INPUT"||$.tagName==="TEXTAREA"||$.isContentEditable))return;const J=35/lt;q.key==="ArrowUp"?(q.preventDefault(),I(it=>({...it,y:it.y+J}))):q.key==="ArrowDown"?(q.preventDefault(),I(it=>({...it,y:it.y-J}))):q.key==="ArrowLeft"?(q.preventDefault(),I(it=>({...it,x:it.x+J}))):q.key==="ArrowRight"?(q.preventDefault(),I(it=>({...it,x:it.x-J}))):q.key==="+"||q.key==="="?(q.preventDefault(),ft(it=>Math.min(it*1.15,3))):q.key==="-"&&(q.preventDefault(),ft(it=>Math.max(it/1.15,.15)))};return window.addEventListener("keydown",S),()=>{window.removeEventListener("keydown",S)}},[lt]);const[dt,Bt]=H.useState(()=>{const S=-58.82352941176471,q=-50/.85,$=1050/.85,J=570/.85;return{left:S,right:$,top:q,bottom:J,zoom:.85}});H.useEffect(()=>{const $=setTimeout(()=>{const J=Y.current?.clientWidth||1100,it=Y.current?.clientHeight||620,vt=(0-W.x)/(lt||1),St=(0-W.y)/(lt||1),zt=(J-W.x)/(lt||1),wt=(it-W.y)/(lt||1);Bt({left:vt,right:zt,top:St,bottom:wt,zoom:lt})},Ot||C!==null?55:0);return()=>{clearTimeout($)}},[W.x,W.y,lt,Ot,C]);const Kt=Re.useMemo(()=>O||r1(a),[a,O]),At=et||r;H.useEffect(()=>{if(m&&s[m]&&Y.current){const S=s[m],q=Y.current,{width:$,height:J}=q.getBoundingClientRect(),it=Math.max(lt,1);ft(it),I({x:$/2-S.x*it,y:J/2-S.y*it})}},[m]),H.useEffect(()=>{if(Object.keys(s).length>0&&a!==Tt.current){if(Tt.current=a,a.nodes.length>1500)return;setTimeout(()=>{pn()},50)}},[a,s]);const qe=S=>{const q=S.target;q.closest(".graph-node-avatar")||q.closest(".canvas-button")||(Et(!0),S.currentTarget.setPointerCapture(S.pointerId),jt.current={x:S.clientX-W.x,y:S.clientY-W.y})},Ln=S=>{Ot&&I({x:S.clientX-jt.current.x,y:S.clientY-jt.current.y})},Bn=S=>{Ot&&(S.currentTarget.releasePointerCapture(S.pointerId),Et(!1))},je=(S,q)=>{q.stopPropagation(),q.currentTarget.setPointerCapture(q.pointerId),T(S),ot.current=!1;const $=s[S]||{x:0,y:0};L.current={x:q.clientX,y:q.clientY},at.current={x:$.x,y:$.y}},Nn=(S,q)=>{if(C!==S)return;q.stopPropagation();const $=q.clientX-L.current.x,J=q.clientY-L.current.y;(Math.abs($)>3||Math.abs(J)>3)&&(ot.current=!0);const it=$/lt,vt=J/lt,St={...s};if(St[S]){const zt=at.current.x+it,wt=at.current.y+vt;St[S]={...St[S],fx:zt,fy:wt,x:zt,y:wt},A(St)}},Ka=(S,q)=>{if(C!==S)return;q.stopPropagation(),q.currentTarget.releasePointerCapture(q.pointerId);const $=q.clientX-L.current.x,J=q.clientY-L.current.y,it=$/lt,vt=J/lt,St=at.current.x+it,zt=at.current.y+vt,wt={...s};wt[S]&&(o==="network"?wt[S]={...wt[S],fx:St,fy:zt,x:St,y:zt}:wt[S]={...wt[S],fx:null,fy:null,x:St,y:zt},A(wt)),T(null)},Za=(S,q)=>{if(q.stopPropagation(),o!=="network")return;const $={...s};$[S]&&($[S]={...$[S],fx:null,fy:null},A($))},hs=(S,q)=>{q.stopPropagation();const $={...s},J=$[S];if(J){const it=J.fx!==null&&J.fx!==void 0;$[S]={...J,fx:it?null:J.x,fy:it?null:J.y},A($)}},Un=S=>{S.preventDefault();const q=1.1,$=Y.current;if(!$)return;const J=$.getBoundingClientRect(),it=S.clientX-J.left,vt=S.clientY-J.top,St=(it-W.x)/lt,zt=(vt-W.y)/lt;let wt=lt;S.deltaY<0?wt=Math.min(lt*q,3):wt=Math.max(lt/q,.15),ft(wt),I({x:it-St*wt,y:vt-zt*wt})},pn=()=>{const S=Object.values(s);if(S.length===0)return;const q=S.map(mt=>mt.x),$=S.map(mt=>mt.y),J=Math.min(...q),it=Math.max(...q),vt=Math.min(...$),St=Math.max(...$),zt=it-J+200,wt=St-vt+200,Xt=Y.current;if(!Xt)return;const{width:Ht,height:$t}=Xt.getBoundingClientRect(),It=Math.min(Ht/zt,$t/wt,1.2);ft(It),I({x:(Ht-(it+J)*It)/2,y:($t-(St+vt)*It)/2})},Qa=()=>{ft(.85),I({x:80,y:70})},gn=Re.useMemo(()=>{const S=new Set;if(f.size===0)return S;const q=Array.from(f),$=new Set;for(;q.length>0;){const J=q.shift();if($.has(J))continue;$.add(J);const it=Kt.outgoing.get(J)||[];for(const vt of it)S.add(vt),$.has(vt)||q.push(vt)}return S},[f,Kt.outgoing]),Dn=Re.useCallback(S=>gn.has(S),[gn]),Hn=Re.useCallback(S=>f.has(S.from)||f.has(S.to)?!0:gn.has(S.from)||gn.has(S.to),[f,gn]),Ce=S=>{if(o==="validation")switch(S.validation?.status){case"fail":return{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"};case"warn":return{className:"bg-amber-500 text-white",icon:"warn",label:"Warning"};default:return{className:"bg-emerald-500 text-white",icon:"verified",label:"Verified Proof"}}if(o==="proof"){if(S.proof?.testStatus==="failed")return{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"};if(S.proof?.testStatus==="passed")return{className:"bg-indigo-500 text-white",icon:"pass",label:"Active Layer Node"}}return S.validation?.status==="fail"||S.proof?.testStatus==="failed"?{className:"bg-rose-500 text-white animate-pulse",icon:"fail",label:"ValidationError"}:S.proof?.testStatus==="passed"?{className:"bg-indigo-500 text-white",icon:"pass",label:"Active Layer Node"}:S.validation?.status==="pass"||S.status==="certified"?{className:"bg-emerald-500 text-white",icon:"verified",label:"Verified Proof"}:S.validation?.status==="warn"?{className:"bg-amber-500 text-white",icon:"warn",label:"Warning"}:null},ms=Re.useMemo(()=>{switch(o){case"lineage":case"flow-force":return[{col:0,title:"ADR Setup"},{col:1,title:"Specification"},{col:2,title:"Core Features"},{col:3,title:"Claims"},{col:4,title:"Verifications"},{col:5,title:"Certificates"},{col:6,title:"Releases"}];case"proof":return[{col:0,title:"Specifications"},{col:1,title:"Implementations"},{col:2,title:"Claims assertions"},{col:3,title:"Verification Tests"},{col:4,title:"Target Releases/Risks"}];case"origins":return[{col:0,title:"Core Rules"},{col:1,title:"Specification Registry"},{col:2,title:"Local Repo Implementations"},{col:3,title:"Custom Extensions"},{col:4,title:"External Dependencies"}];case"packs":return[{col:0,title:"Core Registry (General)"},{col:1,title:"Governance Standards"},{col:2,title:"Contract Packs"},{col:3,title:"Extension Packs"}];case"validation":return[{col:0,title:"Passing (No Drift)"},{col:1,title:"Warnings (Drift Risk)"},{col:2,title:"Failures (Blockers)"},{col:3,title:"Draft / Unknown"}];case"release":return[{col:0,title:"Planned Backlog"},{col:1,title:"Active Development"},{col:2,title:"Certified Checked"},{col:3,title:"Official Release checkpoints"}];default:return[]}},[o]),$a=Re.useMemo(()=>{const S=new Map;return a.nodes.forEach(q=>{if(p.has(q.id)||Dn(q.id))return;const $=s[q.id];if(!$)return;const J=Pf(q,o),it=S.get(J);it?(it.left=Math.min(it.left,$.x),it.width=Math.max(it.width,$.x)):S.set(J,{left:$.x,center:$.x,width:$.x})}),S.forEach((q,$)=>{const J=q.left,it=q.width;S.set($,{left:J-70,center:(J+it)/2,width:Math.max(200,it-J+140)})}),S},[a.nodes,s,o,p,Dn]),Oe=180,yn=110,{minX:tt,maxX:Mt,minY:yt,maxY:Zt,mapScale:re,offsetX:ae,offsetY:Ne,visibleNodes:Qt}=Re.useMemo(()=>{const q=a.nodes.length>5e3?a.nodes.filter((Ft,ct)=>{if(p.has(Ft.id)||Dn(Ft.id))return!1;const fe=Ft.id.match(/-(\d+)$/),De=fe?parseInt(fe[1],10):-1;return De!==-1?De<=150||De%500===0:ct%50===0}):a.nodes.filter(Ft=>!p.has(Ft.id)&&!Dn(Ft.id)),$=new Set,J=q.filter(Ft=>$.has(Ft.id)?!1:($.add(Ft.id),!0));let it=1/0,vt=-1/0,St=1/0,zt=-1/0;J.forEach(Ft=>{const ct=s[Ft.id];ct&&(ct.x<it&&(it=ct.x),ct.x>vt&&(vt=ct.x),ct.y<St&&(St=ct.y),ct.y>zt&&(zt=ct.y))}),(it===1/0||vt===-1/0)&&(it=0,vt=1100),(St===1/0||zt===-1/0)&&(St=0,zt=620);const wt=100;it-=wt,vt+=wt,St-=wt,zt+=wt;const Xt=Math.max(1,vt-it),Ht=Math.max(1,zt-St),$t=(Oe-12)/Xt,It=(yn-12)/Ht,mt=Math.max(.001,Math.min($t,It)),gt=(Oe-Xt*mt)/2,Pt=(yn-Ht*mt)/2;return{minX:it,maxX:vt,minY:St,maxY:zt,mapScale:mt,offsetX:gt,offsetY:Pt,visibleNodes:J}},[a.nodes,s,p,f]),oe=Re.useMemo(()=>{if(!At)return null;const S=new Set([At]),q=new Set(Qt.map(it=>it.id));let $=new Set([At]);const J=_||1;for(let it=0;it<J;it++){const vt=new Set;$.forEach(St=>{const zt=new Set([St]),wt=[{id:St,d:0}];for(;wt.length>0;){const{id:Xt,d:Ht}=wt.shift(),$t=Kt.incoming.get(Xt)||[],It=Kt.outgoing.get(Xt)||[],mt=[...$t,...It];for(const gt of mt)zt.has(gt)||(zt.add(gt),q.has(gt)?S.has(gt)||(S.add(gt),vt.add(gt)):Ht<3&&wt.push({id:gt,d:Ht+1}))}}),$=vt}return S},[At,Kt,_,Qt]),qn=(S,q)=>({x:(S-tt)*re+ae,y:(q-yt)*re+Ne}),Fn=Re.useMemo(()=>{if(a.nodes.length>5e3){const q=new Set(Qt.map($=>$.id));return a.edges.filter($=>q.has($.from)&&q.has($.to)&&!Hn($))}return a.edges.filter(q=>!Hn(q))},[a.edges,Qt,Hn]);Y.current?.clientWidth,Y.current?.clientHeight;const en=dt.left,nn=dt.top,an=dt.right,me=dt.bottom,{renderedNodes:Si,renderedEdges:Pa}=Re.useMemo(()=>{const S=250/Math.max(.1,dt.zoom),q=en-S,$=an+S,J=nn-S,it=me+S,vt=[],St=new Set;Qt.forEach(mt=>{const gt=s[mt.id];gt&&gt.x>=q&&gt.x<=$&&gt.y>=J&&gt.y<=it&&(St.has(mt.id)||(vt.push(mt),St.add(mt.id)))});const zt=[r,m,C].filter(mt=>!!mt);zt.forEach(mt=>{if(!St.has(mt)){const gt=Kt.nodeMap.get(mt);gt&&!p.has(mt)&&!Dn(mt)&&(vt.push(gt),St.add(mt))}});const wt=[],Xt=new Set,Ht=new Set(vt.map(mt=>mt.id)),$t=new Set(zt),It=a.edges.length>2e3?900:2e3;for(const mt of Fn){const gt=$t.has(mt.from)||$t.has(mt.to);if(wt.length>=It&&!gt)continue;const Pt=`${mt.from}->${mt.to}:${mt.type||""}`;if(Xt.has(Pt)||p.has(mt.from)||p.has(mt.to)||Hn(mt)||(!Ht.has(mt.from)||!Ht.has(mt.to))&&!gt)continue;const Ft=s[mt.from],ct=s[mt.to];if(!Ft||!ct)continue;const fe=180/Math.max(.05,dt.zoom),De=Math.min(Ft.x,ct.x)-fe,Ve=Math.max(Ft.x,ct.x)+fe,Ge=Math.min(Ft.y,ct.y)-fe,$e=Math.max(Ft.y,ct.y)+fe;!(Ve>=en&&De<=an&&$e>=nn&&Ge<=me)&&!gt||(wt.push(mt),Xt.add(Pt))}return{renderedNodes:vt,renderedEdges:wt}},[Qt,Fn,s,en,an,nn,me,dt.zoom,r,m,C,Kt.nodeMap,p,f,Hn]),gr=Re.useMemo(()=>{const S=[],q=new Set,$=new Set(Qt.map(J=>J.id));return Qt.forEach(J=>{const it=(vt,St,zt)=>{(Kt.edgeMap.get(vt)||[]).forEach(Xt=>{if(Xt.from!==vt)return;const Ht=Xt.to;if(Ht!==J.id)if($.has(Ht)){if(St.length>0){const $t=`${J.id}->${Ht}`;q.has($t)||(q.add($t),S.push({from:J.id,to:Ht,type:[...zt,Xt].map(It=>It.type||It.label||"link").join(" -> "),originalEdges:[...zt,Xt],ghostNodeIds:St,isGhost:!0}))}}else St.length<3&&!St.includes(Ht)&&it(Ht,[...St,Ht],[...zt,Xt])})};it(J.id,[],[])}),S},[Qt,Kt.edgeMap]),Fa=qn(en,nn),Ti=qn(an,me),ga=Math.max(0,Math.min(Oe,Fa.x)),Al=Math.max(0,Math.min(yn,Fa.y)),Ml=Math.max(4,Math.min(Oe-ga,Ti.x-Fa.x)),El=Math.max(4,Math.min(yn-Al,Ti.y-Fa.y)),ps=S=>{if(!Y.current)return;const q=S.currentTarget.getBoundingClientRect(),$=S.clientX-q.left,J=S.clientY-q.top,it=($-ae)/(re||1)+tt,vt=(J-Ne)/(re||1)+yt,St=Y.current.clientWidth,zt=Y.current.clientHeight;I({x:St/2-it*lt,y:zt/2-vt*lt})},gs=S=>{S.stopPropagation(),S.preventDefault(),nt(!0),S.currentTarget.setPointerCapture(S.pointerId),ps(S)},ys=S=>{N&&(S.stopPropagation(),ps(S))},wl=S=>{N&&(S.stopPropagation(),nt(!1),S.currentTarget.releasePointerCapture(S.pointerId))},jl=S=>{switch(S){case"ADR":return"#d97706";case"SPEC":return"#2563eb";case"Feature":return"#4f46e5";case"Claim":return"#9333ea";case"Test":return"#e11d48";case"Evidence":return"#059669";case"Release":return"#0d9488";case"Boundary":return"#475569";case"Risk":return"#ea580c";case"Issue":return"#dc2626";default:return"#4b5563"}};return h.jsxs("div",{ref:Y,id:"lineage-graph-viewport",className:`relative w-full h-full overflow-hidden select-none cursor-grab active:cursor-grabbing transition-colors duration-300 ${E.theme==="steel-dark"?"bg-slate-900 border border-slate-800":"bg-slate-50/50 border border-slate-200"}`,onPointerDown:qe,onPointerMove:Ln,onPointerUp:Bn,onPointerLeave:Bn,onWheel:Un,children:[h.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-40",style:{backgroundImage:`radial-gradient(${E.theme==="steel-dark"?"#ffffff33":"#00000018"} 1px, transparent 1px)`,backgroundSize:"24px 24px",transform:`translate(${W.x}px, ${W.y}px)`}}),h.jsx("div",{className:"absolute top-4 left-4 pointer-events-none z-10 hidden sm:block",children:h.jsxs("span",{className:"text-[10px] font-mono tracking-wider text-slate-400 uppercase bg-slate-800/80 px-2 py-0.5 rounded border border-slate-700/80",children:[o.slice(0,1).toUpperCase()+o.slice(1)," Mode"]})}),h.jsxs("div",{className:`absolute w-0 h-0 origin-top-left ${Ot||C!==null?"":"transition-transform duration-300 ease-out"}`,style:{transform:`translate(${W.x}px, ${W.y}px) scale(${lt})`},children:[o!=="network"&&ms.map(S=>{const q=$a.get(S.col),$=q?.center??60+S.col*210;return h.jsxs("div",{className:"absolute pointer-events-none flex flex-col items-center",style:{left:q?.left??$-100,top:-30,width:q?.width??200,height:1200},children:[h.jsx("div",{className:`w-0 h-[850px] border-l border-dashed my-8 opacity-20 ${E.theme==="steel-dark"?"border-slate-500":"border-indigo-400"}`}),h.jsx("div",{className:`absolute top-0 px-2.5 py-1 rounded-full text-[9px] font-bold font-mono tracking-wider uppercase border shadow-sm backdrop-blur-md transition-colors ${E.theme==="steel-dark"?"bg-slate-800/90 text-slate-300 border-slate-700/80":"bg-white/95 text-indigo-800 border-indigo-100"}`,children:S.title})]},S.col)}),h.jsxs("svg",{className:"absolute overflow-visible pointer-events-none z-0",style:{width:1,height:1},children:[h.jsx("style",{children:`
18
+ @keyframes line-flow-active {
19
+ to {
20
+ stroke-dashoffset: -20;
21
+ }
22
+ }
23
+ .flow-active-dash {
24
+ animation: line-flow-active 0.85s linear infinite;
25
+ }
26
+ `}),h.jsxs("defs",{children:[h.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#94a3b8"})}),h.jsx("marker",{id:"arrow-selected",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#6366f1"})}),h.jsx("marker",{id:"arrow-error",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#ef4444"})}),h.jsx("marker",{id:"arrow-success",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#10b981"})}),h.jsx("marker",{id:"arrow-incoming",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#06b6d4"})}),h.jsx("marker",{id:"arrow-outgoing",viewBox:"0 0 10 10",refX:"18",refY:"5",markerWidth:"7",markerHeight:"7",orient:"auto-start-reverse",children:h.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",fill:"#ec4899"})})]}),Pa.map((S,q)=>{const $=s[S.from],J=s[S.to];if(!$||!J||p.has(S.from)||p.has(S.to)||Hn(S)||st&&oe&&(!oe.has(S.from)||!oe.has(S.to)))return null;const it=180/Math.max(.05,lt),vt=Math.min($.x,J.x)-it,St=Math.max($.x,J.x)+it,zt=Math.min($.y,J.y)-it,wt=Math.max($.y,J.y)+it,Xt=St>=en&&vt<=an&&wt>=nn&&zt<=me,Ht=r===S.from||r===S.to,$t=m===S.from||m===S.to,It=C===S.from||C===S.to;if(!Xt&&!Ht&&!$t&&!It)return null;const mt=et===S.from||et===S.to,gt=$t,Pt=At===S.to,Ft=At===S.from,ct=Pt||Ft,fe=!!(At&&oe&&oe.has(S.from)&&oe.has(S.to));let De="#94a3b8",Ve=E.edgeWidth,Ge=E.edgeOpacity,$e="url(#arrow)";o==="validation"&&(S.status==="stale"||S.status==="missing"||S.proof?.blocker)?(De="#ef4444",Ve=E.edgeWidth+1.2,$e="url(#arrow-error)"):o==="proof"&&(S.status==="active"?(De="#10b981",$e="url(#arrow-success)"):(De="#f59e0b",$e="url(#arrow-error)")),(Ht||gt||It)&&(De="#6366f1",Ve=E.edgeWidth+2.5,Ge=1,$e="url(#arrow-selected)"),At?ct?(Ge=1,Ve=E.edgeWidth+2,De=Pt?"#06b6d4":"#ec4899",$e=Pt?"url(#arrow-incoming)":"url(#arrow-outgoing)"):fe?(Ge=1,Ve=E.edgeWidth+1.2,De="#818cf8",$e="url(#arrow-selected)"):(Ge=.1,Ve=Math.max(1,E.edgeWidth-.5)):et&&(mt?(Ge=1,Ve=E.edgeWidth+1.5):Ge=.12);const he=_3($.x,$.y,J.x,J.y,o);return h.jsxs("g",{className:K,children:[h.jsx("path",{d:he,fill:"none",stroke:"transparent",strokeWidth:14,className:"cursor-pointer pointer-events-auto"}),At&&(ct||fe)&&h.jsx("path",{d:he,fill:"none",stroke:ct?Pt?"#06b6d4":"#ec4899":"#818cf8",strokeWidth:Ve+5,opacity:.16,className:`${K} blur-[2px]`}),At&&(ct||fe)&&h.jsx("path",{d:he,fill:"none",stroke:ct?Pt?"#06b6d4":"#ec4899":"#818cf8",strokeWidth:Ve,strokeDasharray:"6,6",opacity:.8,className:`flow-active-dash ${K}`}),h.jsx("path",{d:he,fill:"none",stroke:De,strokeWidth:Ve,strokeDasharray:At&&(ct||fe)?void 0:S.status==="planned"||S.status==="stale"?"5,5":void 0,opacity:Ge,markerEnd:$e,className:K}),E.showLabels&&S.type&&h.jsx("text",{x:($.x+J.x)/2,y:($.y+J.y)/2-4,fill:E.theme==="steel-dark"?"#94a3b8":"#475569",fontSize:9,fontFamily:"monospace",textAnchor:"middle",opacity:Ge,children:S.type})]},`${S.from}-${S.to}-${q}`)}),gr.map((S,q)=>{const $=s[S.from],J=s[S.to];if(!$||!J||st&&oe&&(!oe.has(S.from)||!oe.has(S.to)))return null;const it=r===S.from||r===S.to,vt=m===S.from||m===S.to,St=C===S.from||C===S.to,zt=et===S.from||et===S.to,wt=vt,Xt=At===S.to,Ht=At===S.from,$t=Xt||Ht,It=!!(At&&oe&&oe.has(S.from)&&oe.has(S.to));let mt=E.theme==="steel-dark"?"#a78bfa":"#8b5cf6",gt=E.edgeWidth||2,Pt=(E.edgeOpacity||.6)*.95,Ft="url(#arrow-selected)";(it||wt||St)&&(mt="#7c3aed",gt=(E.edgeWidth||2)+2,Pt=1),At?$t?(Pt=1,gt=(E.edgeWidth||2)+1.5,mt=Xt?"#06b6d4":"#ec4899",Ft=Xt?"url(#arrow-incoming)":"url(#arrow-outgoing)"):It?(Pt=1,gt=(E.edgeWidth||2)+1,mt="#818cf8"):Pt=.1:et&&(zt?(Pt=1,gt=(E.edgeWidth||2)+1.2):Pt=.12);const ct=($.x+J.x)/2,fe=($.y+J.y)/2,De=4,Ve=yg($.x,$.y,J.x,J.y,o,-De),Ge=yg($.x,$.y,J.x,J.y,o,De),$e=Kt.nodeMap.get(S.ghostNodeIds[0]);let he="G";if($e){const ln=($e.family||"").toUpperCase();ln.startsWith("SPEC")?he="S":ln.startsWith("ADR")?he="A":ln.startsWith("FEAT")?he="F":ln.startsWith("CLAIM")?he="C":ln.startsWith("TEST")?he="T":ln.startsWith("EVID")?he="E":ln.startsWith("RELE")||ln.startsWith("RISK")?he="R":ln.startsWith("BOU")?he="B":ln.startsWith("ISS")?he="I":he=ln.charAt(0)||"G"}const ya=S.originalEdges[0]?.type||S.originalEdges[0]?.label||"link",sn=S.originalEdges[S.originalEdges.length-1]?.type||S.originalEdges[S.originalEdges.length-1]?.label||"link",Xe=($.x+ct)/2,xs=($.y+fe)/2-8,Cl=(ct+J.x)/2,Ai=(fe+J.y)/2-8,vs=ya.length*5.2,Ja=sn.length*5.2;return h.jsxs("g",{className:K,children:[h.jsx("path",{d:Ve,fill:"none",stroke:mt,strokeWidth:gt-.5,strokeDasharray:"4,4",opacity:Pt,markerEnd:Ft,className:K}),h.jsx("path",{d:Ge,fill:"none",stroke:mt,strokeWidth:gt-.5,strokeDasharray:"4,4",opacity:Pt,markerEnd:Ft,className:K}),At&&($t||It)&&h.jsx("path",{d:Ve,fill:"none",stroke:$t?Xt?"#06b6d4":"#ec4899":"#818cf8",strokeWidth:gt+4,opacity:.14,className:`${K} blur-[2px]`}),h.jsx("circle",{cx:ct,cy:fe,r:12,fill:E.theme==="steel-dark"?"#1e293b":"#f8fafc",stroke:mt,strokeWidth:2,strokeDasharray:"3,2",opacity:Pt}),h.jsx("text",{x:ct,y:fe+3.5,fill:mt,fontSize:10,fontWeight:"bold",fontFamily:"monospace",textAnchor:"middle",opacity:Pt,children:he}),E.showLabels&&ya&&h.jsxs("g",{opacity:Pt,children:[h.jsx("rect",{x:Xe-vs/2-2,y:xs-7,width:vs+4,height:11,rx:2,fill:E.theme==="steel-dark"?"#111827":"#ffffff",stroke:mt,strokeWidth:.5,strokeOpacity:.4,opacity:.9}),h.jsx("text",{x:Xe,y:xs+1,fill:E.theme==="steel-dark"?"#cbd5e1":"#1e293b",fontSize:8,fontFamily:"monospace",textAnchor:"middle",children:ya})]}),E.showLabels&&sn&&h.jsxs("g",{opacity:Pt,children:[h.jsx("rect",{x:Cl-Ja/2-2,y:Ai-7,width:Ja+4,height:11,rx:2,fill:E.theme==="steel-dark"?"#111827":"#ffffff",stroke:mt,strokeWidth:.5,strokeOpacity:.4,opacity:.9}),h.jsx("text",{x:Cl,y:Ai+1,fill:E.theme==="steel-dark"?"#cbd5e1":"#1e293b",fontSize:8,fontFamily:"monospace",textAnchor:"middle",children:sn})]})]},`ghost-${S.from}-${S.to}-${q}`)})]}),Si.map(S=>{if(p.has(S.id))return null;const q=s[S.id];if(!q||Dn(S.id))return null;const $=150/Math.max(.05,lt),J=q.x>=en-$&&q.x<=an+$&&q.y>=nn-$&&q.y<=me+$,it=r===S.id||c&&c.has(S.id),vt=m===S.id,St=z&&z.has(S.id),wt=z&&z.size>0&&!St?"opacity-35 grayscale":"opacity-100";if(!J&&!it&&!vt&&C!==S.id&&!St)return null;const Xt=oe===null||oe.has(S.id);if(st&&oe&&!oe.has(S.id))return null;const Ht=(Kt.outgoing.get(S.id)||[]).length>0,$t=f.has(S.id),It=!!(At&&oe&&oe.has(S.id)&&S.id!==At),mt=At===S.id;let gt=pa[S.family]||pa.Profile;It&&(gt={bg:S.family==="ADR"?"bg-amber-200/95":S.family==="SPEC"?"bg-blue-200/95":S.family==="Feature"?"bg-indigo-200/95":S.family==="Claim"?"bg-purple-200/95":S.family==="Test"?"bg-rose-200/95":S.family==="Evidence"?"bg-emerald-200/95":S.family==="Release"?"bg-teal-200/95":S.family==="Boundary"?"bg-slate-200/95":S.family==="Risk"?"bg-orange-200/95":S.family==="Issue"?"bg-red-200/95":"bg-slate-300",text:S.family==="ADR"?"text-amber-950 font-extrabold":S.family==="SPEC"?"text-blue-950 font-extrabold":S.family==="Feature"?"text-indigo-950 font-extrabold":S.family==="Claim"?"text-purple-950 font-extrabold":S.family==="Test"?"text-rose-950 font-extrabold":S.family==="Evidence"?"text-emerald-950 font-extrabold":S.family==="Release"?"text-teal-950 font-extrabold":S.family==="Boundary"?"text-slate-950 font-extrabold":S.family==="Risk"?"text-orange-950 font-extrabold":S.family==="Issue"?"text-red-950 font-extrabold":"text-black",border:S.family==="ADR"?"border-amber-600":S.family==="SPEC"?"border-blue-600":S.family==="Feature"?"border-indigo-600":S.family==="Claim"?"border-purple-600":S.family==="Test"?"border-rose-600":S.family==="Evidence"?"border-emerald-600":S.family==="Release"?"border-teal-600":S.family==="Boundary"?"border-slate-700":S.family==="Risk"?"border-orange-600":S.family==="Issue"?"border-red-600":"border-slate-800",glow:"shadow-lg shadow-slate-350/50"});let Pt=it?"ring-4 ring-offset-2 ring-indigo-500 scale-105 z-40 shadow-indigo-400":vt?"ring-4 ring-offset-2 ring-teal-500 scale-105 z-40 shadow-teal-300":mt?"ring-4 ring-offset-2 ring-indigo-600 scale-110 z-50 shadow-indigo-500 shadow-2xl font-black":It?`${gt.border} border-[3.5px] scale-105 z-30 shadow-xl`:St?"ring-4 ring-offset-1 ring-amber-500 shadow-amber-300 scale-105 animate-pulse z-35":"border-slate-300 border-2";E.theme==="steel-dark"&&!it&&!vt&&!mt&&!It&&!St&&(Pt="border-slate-600 border");const Ft=X?.find(ct=>ct.nodeIds.includes(S.id));return h.jsxs(pg.div,{id:`node-${S.id}`,className:`absolute graph-node-avatar group flex flex-col items-center justify-center ${K} ${Xt?"scale-100":"opacity-25 scale-90 blur-[1px]"} ${wt}`,style:{left:q.x-30,top:q.y-30,width:60,height:60},onMouseEnter:()=>pt(S.id),onMouseLeave:()=>pt(null),onClick:ct=>{ct.stopPropagation(),!ot.current&&v(S.id,ct.shiftKey)},onPointerDown:ct=>je(S.id,ct),onPointerMove:ct=>Nn(S.id,ct),onPointerUp:ct=>Ka(S.id,ct),onDoubleClick:ct=>Za(S.id,ct),title:o==="network"?"Drag to place - Double-click to unpin":"Drag to reposition",children:[Ft&&h.jsxs("span",{className:"absolute -top-3 bg-slate-900 border border-slate-700 text-amber-300 font-extrabold px-1.5 py-0.2 rounded text-[7.5px] font-mono tracking-wider shadow z-50 whitespace-nowrap uppercase select-none",children:["* ",Ft.label]}),h.jsxs("div",{className:`w-12 h-12 rounded-full flex items-center justify-center font-bold text-xs shadow-md transition-transform duration-200 relative ${C===S.id?"cursor-grabbing scale-110 shadow-2xl ring-4 ring-indigo-500":"cursor-grab hover:cursor-grab active:cursor-grabbing hover:scale-115 active:scale-95"} ${gt.bg} ${gt.text} ${Pt} ${gt.glow}`,children:[h.jsx("span",{className:"text-[10px] font-mono select-none pointer-events-none",children:S.family.substring(0,3).toUpperCase()}),Ht&&h.jsx("button",{className:"absolute -bottom-1 -right-1 w-5 h-5 rounded-full bg-slate-800 text-white flex items-center justify-center border border-slate-600 hover:bg-slate-700 pointer-events-auto shadow-sm transition-colors z-20",onClick:ct=>{ct.stopPropagation(),g(S.id)},title:$t?"Expand Subtree":"Collapse Subtree",children:$t?h.jsx(mb,{size:10,className:"stroke-[3] text-emerald-400"}):h.jsx(ab,{size:10,className:"stroke-[3] text-slate-300"})}),h.jsx("button",{className:`absolute -top-1.5 -left-1.5 rounded-full w-5 h-5 flex items-center justify-center border shadow-sm transition-all pointer-events-auto z-30 ${q.fx!==null&&q.fx!==void 0?"bg-indigo-600 border-indigo-500 text-white hover:bg-indigo-700 scale-100 opacity-100":"bg-white border-slate-300 text-slate-400 opacity-0 group-hover:opacity-100 hover:text-slate-600 hover:bg-slate-50 scale-90 group-hover:scale-100"}`,onClick:ct=>hs(S.id,ct),title:q.fx!==null&&q.fx!==void 0?"Click to unpin node (Release physics)":"Click to pin node in current position",children:h.jsx(cb,{size:9,className:q.fx!==null&&q.fx!==void 0?"rotate-45 fill-white":"rotate-45"})}),Ce(S)&&(()=>{const ct=Ce(S);return h.jsxs("div",{className:`absolute -top-1.5 -right-1.5 rounded-full w-5 h-5 flex items-center justify-center border border-white shadow-md z-30 pointer-events-none ${ct.className}`,title:ct.label,children:[ct.icon==="fail"&&h.jsx(xi,{size:10,className:"stroke-[4] text-white"}),ct.icon==="warn"&&h.jsx(Lv,{size:10,className:"stroke-[3] text-white"}),ct.icon==="verified"&&h.jsx(Km,{size:10,className:"stroke-[4] text-white"}),ct.icon==="pass"&&h.jsx(Km,{size:10,className:"stroke-[4] text-white"})]})})(),h.jsx("button",{className:"absolute -bottom-1.5 -left-1.5 rounded-full w-5 h-5 bg-white border border-slate-300 text-slate-400 hover:text-rose-500 hover:border-rose-300 flex items-center justify-center shadow-sm transition-all pointer-events-auto z-30 scale-90 group-hover:scale-100 opacity-0 group-hover:opacity-100 hover:bg-rose-50 cursor-pointer",onClick:ct=>{ct.stopPropagation(),b(S.id)},title:"Hide this node from view",children:h.jsx(Sg,{size:9,className:"stroke-[2.5]"})})]}),E.showLabels&&h.jsx("div",{className:`absolute top-13 pointer-events-none text-[10px] font-medium tracking-tight truncate max-w-[120px] text-center px-1.5 py-0.5 rounded shadow-sm border ${E.theme==="steel-dark"?"bg-slate-800 text-slate-200 border-slate-700":"bg-white text-slate-700 border-slate-200"}`,children:S.label||S.id})]},S.id)})]}),h.jsxs("div",{className:"absolute bottom-4 right-4 flex items-center gap-1.5 bg-slate-900/90 border border-slate-700/80 rounded-lg p-1.5 shadow-xl backdrop-blur-md z-10",children:[h.jsx("button",{onClick:()=>ft(S=>Math.max(S/1.25,.15)),className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Zoom Out",children:h.jsx(Vb,{size:16})}),h.jsx("button",{onClick:()=>ft(S=>Math.min(S*1.25,3)),className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Zoom In",children:h.jsx(Rb,{size:16})}),h.jsx("button",{onClick:pn,className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-800 transition",title:"Fit Viewport on Nodes",children:h.jsx(eb,{size:16})}),h.jsx("button",{onClick:Qa,className:"canvas-button p-2 text-slate-300 hover:text-white rounded hover:bg-slate-850 transition",title:"Reset Zoom to 100%",children:h.jsx(yb,{size:16})}),o==="network"&&h.jsx("button",{onClick:()=>{const S={...s};Object.keys(S).forEach(q=>{S[q]={...S[q],fx:null,fy:null}}),A(S)},className:"canvas-button p-2 text-slate-300 hover:text-indigo-400 rounded hover:bg-slate-800 transition border-l border-slate-700 pl-2",title:"Unpin All Anchors (Release Physics)",children:h.jsx(rb,{size:16})}),p.size>0&&h.jsxs("button",{onClick:x,className:"canvas-button p-2 text-rose-400 hover:text-white rounded hover:bg-slate-800 transition border-l border-slate-700 pl-2 flex items-center gap-1 text-xs font-bold",title:`Reveal all ${p.size} hidden nodes`,children:[h.jsx(Zv,{size:15}),h.jsxs("span",{children:["Show All (",p.size,")"]})]})]}),h.jsxs("div",{className:`absolute bottom-4 left-4 pointer-events-none hidden lg:flex items-center gap-4 px-3 py-2 rounded-lg border shadow-lg z-10 font-sans backdrop-blur-md ${E.theme==="steel-dark"?"bg-slate-900/90 border-slate-700/80 text-slate-300":"bg-white/95 border-slate-200 text-slate-600"}`,children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-indigo-500 shadow-sm"}),h.jsx("span",{className:"text-[10px] font-semibold",children:"Active Layer Node"})]}),h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-emerald-500 shadow-sm"}),h.jsx("span",{className:"text-[10px] font-semibold",children:"Verified Proof"})]}),h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-rose-500 animate-pulse"}),h.jsx("span",{className:"text-[10px] font-semibold",children:"ValidationError"})]})]}),h.jsx(ET,{children:E.showMinimap&&h.jsxs(pg.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.18,ease:"easeOut"},className:`absolute top-4 right-4 rounded-xl border overflow-hidden shadow-2xl backdrop-blur-md z-30 transition-shadow duration-300 ${E.theme==="steel-dark"?"bg-slate-900/90 border-slate-800 shadow-indigo-950/25":"bg-white/95 border-slate-200/90 shadow-slate-200/40"}`,children:[h.jsxs("div",{className:`px-2.5 py-1.5 border-b flex items-center justify-between text-[9px] font-bold tracking-wider uppercase select-none ${E.theme==="steel-dark"?"border-slate-800 text-slate-400 bg-slate-950/40":"border-slate-100 text-slate-500 bg-slate-50/50"}`,children:[h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx(Tg,{size:10,className:"text-indigo-500"}),h.jsx("span",{children:"Navigation Overview"})]}),h.jsxs("span",{className:"font-mono text-[8px] opacity-75",children:[Math.round(lt*100),"%"]})]}),h.jsxs("div",{className:"relative cursor-crosshair overflow-hidden",style:{width:Oe,height:yn},onPointerDown:gs,onPointerMove:ys,onPointerUp:wl,children:[h.jsx("div",{className:"absolute inset-0 pointer-events-none opacity-[0.12]",style:{backgroundImage:`radial-gradient(${E.theme==="steel-dark"?"#ffffff":"#000000"} 1px, transparent 1px)`,backgroundSize:"12px 12px"}}),h.jsxs("svg",{width:"100%",height:"100%",className:"absolute inset-0 pointer-events-none",children:[Fn.length<=400&&Fn.map((S,q)=>{const $=s[S.from],J=s[S.to];if(!$||!J)return null;const it=qn($.x,$.y),vt=qn(J.x,J.y);return h.jsx("line",{x1:it.x,y1:it.y,x2:vt.x,y2:vt.y,stroke:E.theme==="steel-dark"?"rgba(100, 116, 139, 0.3)":"rgba(148, 163, 184, 0.45)",strokeWidth:1},`mini-edge-${q}`)}),Qt.map(S=>{const q=s[S.id];if(!q)return null;const $=qn(q.x,q.y),J=r===S.id,it=m===S.id,vt=jl(S.family);return h.jsxs("g",{children:[(J||it)&&h.jsx("circle",{cx:$.x,cy:$.y,r:J?5.5:4.5,fill:"none",stroke:J?"#6366f1":"#14b8a6",strokeWidth:1.5}),h.jsx("circle",{cx:$.x,cy:$.y,r:J?3.2:it?2.5:2,fill:vt,opacity:J||it?1:.8})]},`mini-node-${S.id}`)})]}),h.jsx("div",{className:"absolute border border-indigo-500 bg-indigo-500/10 pointer-events-none transition-all duration-75",style:{left:ga,top:Al,width:Ml,height:El,boxShadow:"0 0 8px rgba(99, 102, 241, 0.25)"}})]})]})})]})},L3=["ADR","Spec","SPEC","Feature","Claim","Test","Evidence","Release","Boundary","Profile","Risk","Issue"],B3=["ssot-core","ssot-origin","repo-local","extension-pack","generated","unknown"],U3=({payload:a,filters:s,onUpdateFilters:o,viewMode:r,onChangeViewMode:c,selectedRegistryKey:m,onChangeRegistry:f,registryOptions:p=[],allPacks:v,allTiers:g,allOriginKinds:b,filteredNodes:x,isCollapsed:A,onToggleCollapse:E,onSelectNode:O,onFocusNode:_,nodeLimit:U=300,onUpdateNodeLimit:Q,egoHops:B=1,onUpdateEgoHops:z,isolateEgo:X=!1,onUpdateIsolateEgo:st})=>{const[Y,F]=H.useState("search"),K=Re.useMemo(()=>Array.from(new Set([...L3,...a.nodes.map(C=>C.family)])),[a.nodes]),W=Re.useMemo(()=>Array.from(new Set([...B3,...b])),[b]),I=p.find(C=>C.key===m)?.label||a.package?.name||m,lt=()=>{o({search:"",families:new Set(K),statuses:new Set,originKinds:new Set(W),tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set})},ft=()=>{o({search:"",families:new Set,statuses:new Set,originKinds:new Set,tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set})},Ot=C=>{const T=new Set(s.families);T.has(C)?T.delete(C):T.add(C),o({...s,families:T})},Et=C=>{const T=new Set(s.originKinds);T.has(C)?T.delete(C):T.add(C),o({...s,originKinds:T})},jt=C=>{const T=new Set(s.tiers);T.has(C)?T.delete(C):T.add(C),o({...s,tiers:T})},N=C=>{const T=new Set(s.packs);T.has(C)?T.delete(C):T.add(C),o({...s,packs:T})},nt=C=>{const T=new Set(s.validationStatuses);T.has(C)?T.delete(C):T.add(C),o({...s,validationStatuses:T})},et=C=>{const T=new Set(s.statuses);T.has(C)?T.delete(C):T.add(C),o({...s,statuses:T})},pt=Re.useMemo(()=>{let C=0;return s.search&&C++,s.families.size<K.length&&(C+=K.length-s.families.size),s.originKinds.size<W.length&&(C+=W.length-s.originKinds.size),s.tiers.size>0&&(C+=s.tiers.size),s.packs.size>0&&(C+=s.packs.size),s.validationStatuses.size>0&&(C+=s.validationStatuses.size),s.statuses.size>0&&(C+=s.statuses.size),C},[s,K,W]);return A?h.jsxs("div",{className:"w-12 h-full border-r border-slate-200 bg-white flex flex-col items-center py-4 gap-4 shrink-0 overflow-hidden font-sans select-none shadow-[1px_0_6px_-2px_rgba(0,0,0,0.05)] z-10 animate-fadeIn",children:[h.jsx("button",{onClick:E,className:"p-1.5 hover:bg-slate-100 rounded-lg text-slate-500 hover:text-slate-800 transition",title:"Expand left sidebar",children:h.jsx(Zc,{size:18})}),h.jsx("div",{className:"w-6 border-b border-slate-100 my-1"}),h.jsxs("div",{className:"p-2 text-indigo-600 rounded-lg hover:bg-indigo-50/50 cursor-pointer transition relative group",onClick:E,title:`Active registry: ${I}. Click to expand and change.`,children:[h.jsx(Zm,{size:16}),h.jsxs("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:["Active Registry: ",I]})]}),h.jsx("div",{className:"w-6 border-b border-slate-100 my-1"}),h.jsx("div",{className:"flex flex-col items-center gap-1",children:[{mode:"lineage",label:"Lineage Flow",icon:tr},{mode:"proof",label:"Proof Chain",icon:Jm},{mode:"origins",label:"Origins Mode",icon:Qm},{mode:"packs",label:"Packs Lineage",icon:$m},{mode:"release",label:"Release Board",icon:Fm},{mode:"validation",label:"Validation",icon:Io}].map(C=>{const T=C.icon,L=r===C.mode;return h.jsxs("button",{onClick:()=>c(C.mode),className:`p-2 rounded-lg transition relative group ${L?"bg-indigo-50 text-indigo-600":"text-slate-400 hover:text-slate-600 hover:bg-slate-50"}`,children:[h.jsx(T,{size:16}),h.jsx("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:C.label})]},C.mode)})}),h.jsx("div",{className:"flex-1"}),pt>0&&h.jsxs("button",{onClick:lt,className:"p-2 bg-amber-50 hover:bg-amber-100 text-amber-600 rounded-lg transition relative group",title:"Reset active filters",children:[h.jsx(Pm,{size:14,className:"animate-spin-hover"}),h.jsx("span",{className:"absolute -top-1 -right-1 bg-amber-600 text-white text-[8px] font-bold w-4 h-4 rounded-full flex items-center justify-center border border-white",children:pt}),h.jsxs("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2 py-1 rounded shadow opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:["Reset ",pt," filters"]})]})]}):h.jsxs("div",{className:"w-80 h-full border-r border-slate-200 bg-white flex flex-col shrink-0 overflow-hidden font-sans select-none shadow-[2px_0_12px_-4px_rgba(0,0,0,0.06)] z-10",children:[h.jsxs("div",{className:"p-4 border-b border-slate-100 bg-slate-50/70",children:[h.jsxs("div",{className:"flex items-center justify-between mb-2",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Zm,{size:18,className:"text-indigo-600"}),h.jsx("h2",{className:"text-sm font-bold tracking-tight text-slate-800",children:"SSOT Registry Scope"})]}),h.jsx("button",{onClick:E,className:"p-1 hover:bg-slate-200/60 rounded text-slate-400 hover:text-slate-600 transition",title:"Collapse left sidebar",children:h.jsx(bg,{size:16})})]}),h.jsx("select",{value:m,onChange:C=>f(C.target.value),className:"w-full bg-white border border-slate-200 rounded-md py-1.5 px-2.5 text-xs text-slate-700 font-medium focus:ring-1 focus:ring-indigo-500 focus:outline-none",children:p.length>0?p.map(C=>h.jsx("option",{value:C.key,children:C.label},C.key)):h.jsx("option",{value:m,children:I})})]}),h.jsxs("div",{className:"flex border-b border-slate-100 text-xs font-semibold text-slate-500 bg-white",children:[h.jsx("button",{onClick:()=>F("search"),className:`flex-1 py-3 text-center border-b-2 transition ${Y==="search"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:"Index & Search"}),h.jsxs("button",{onClick:()=>F("filters"),className:`flex-1 py-3 text-center border-b-2 transition flex items-center justify-center gap-1.5 ${Y==="filters"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:["Filters",pt>0&&h.jsx("span",{className:"bg-indigo-100 text-indigo-700 text-[10px] px-1.5 py-0.2 rounded-full font-bold",children:pt})]}),h.jsx("button",{onClick:()=>F("limits"),className:`flex-1 py-3 text-center border-b-2 transition flex items-center justify-center gap-1.5 ${Y==="limits"?"border-indigo-600 text-indigo-600 bg-slate-50/20 font-bold":"border-transparent hover:text-slate-800"}`,children:"Limits"})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[Y==="search"&&h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"relative",children:[h.jsx("span",{className:"absolute inset-y-0 left-3 flex items-center pointer-events-none text-slate-400",children:h.jsx(bb,{size:14})}),h.jsx("input",{type:"text",placeholder:"Search IDs, labels, files, summaries...",value:s.search,onChange:C=>o({...s,search:C.target.value}),className:"w-full bg-slate-50 border border-slate-200 rounded-lg py-2 pl-9 pr-8 text-xs text-slate-700 focus:bg-white focus:outline-none focus:ring-1 focus:ring-indigo-500 transition-all font-mono"}),s.search&&h.jsx("button",{onClick:()=>o({...s,search:""}),className:"absolute inset-y-0 right-2.5 flex items-center text-slate-400 hover:text-slate-600",children:h.jsx(xi,{size:14})})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 mb-2 font-mono",children:"Lineage View Modes"}),h.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:[{mode:"network",label:"Network Force",icon:sb},{mode:"lineage",label:"Lineage Flow",icon:tr},{mode:"flow-force",label:"Flow Force",icon:Pm},{mode:"proof",label:"Proof Chain",icon:Jm},{mode:"origins",label:"Origins Mode",icon:Qm},{mode:"packs",label:"Packs Lineage",icon:$m},{mode:"release",label:"Release Board",icon:Fm},{mode:"validation",label:"Validation",icon:Io}].map(C=>{const T=C.icon,L=r===C.mode;return h.jsxs("button",{onClick:()=>c(C.mode),className:`flex items-center gap-1.5 px-2.5 py-2 rounded-md text-left text-xs transition border ${L?"bg-indigo-50 text-indigo-700 border-indigo-200 font-semibold":"bg-white text-slate-600 border-slate-100 hover:bg-slate-50"}`,children:[h.jsx(T,{size:12,className:L?"text-indigo-600":"text-slate-400"}),h.jsx("span",{children:C.label})]},C.mode)})})]}),h.jsxs("div",{children:[h.jsx("div",{className:"flex items-center justify-between mb-2",children:h.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Registry Index (",x.length,")"]})}),x.length===0?h.jsx("div",{className:"text-center py-6 bg-slate-50 rounded-lg border border-slate-100",children:h.jsx("span",{className:"text-[11px] text-slate-500 font-mono",children:"No registry nodes match filters."})}):h.jsxs("div",{className:"space-y-1.5 max-h-[280px] overflow-y-auto pr-1",children:[x.slice(0,250).map((C,T)=>{const L=pa[C.family];return h.jsxs("div",{onClick:()=>{O&&O(C.id),_&&_(C.id);const at=document.getElementById(`node-${C.id}`);at&&(at.click(),at.scrollIntoView({behavior:"smooth",block:"center"}))},className:"p-2 border border-slate-100 rounded-md hover:bg-slate-50 hover:border-slate-200 cursor-pointer transition flex items-center justify-between",children:[h.jsxs("div",{className:"truncate pr-2",children:[h.jsxs("div",{className:"flex items-center gap-1.5 mb-0.5",children:[h.jsx("span",{className:`text-[8px] font-mono font-bold px-1 rounded-sm uppercase ${L?.bg||"bg-slate-100"} ${L?.text||"text-slate-700"}`,children:C.family}),h.jsx("span",{className:"text-[10px] font-bold text-slate-700 font-mono truncate",children:C.id})]}),h.jsx("p",{className:"text-[10px] text-slate-500 truncate max-w-[200px]",children:C.label||C.title})]}),h.jsxs("span",{className:"text-[9px] text-slate-400 font-mono shrink-0 font-bold bg-slate-50 px-1 py-0.5 rounded border border-slate-100",children:["dg:",C.degree||0]})]},`${C.id}-${T}`)}),x.length>250&&h.jsxs("div",{className:"text-center py-2 bg-indigo-50/40 rounded border border-dashed border-indigo-100/50 mt-1",children:[h.jsxs("p",{className:"text-[9px] text-indigo-700 font-mono font-medium",children:["Showing first 250 of ",x.length," matches."]}),h.jsx("p",{className:"text-[8px] text-slate-400",children:"Type in search box to filter details further."})]})]})]})]}),Y==="filters"&&h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:[h.jsxs("span",{className:"text-xs font-bold text-slate-700 flex items-center gap-1",children:[h.jsx(Qc,{size:12,className:"text-indigo-600"}),"Active Filters"]}),h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("button",{onClick:ft,className:"text-[10px] text-slate-400 hover:text-rose-600 font-mono font-bold flex items-center gap-0.5 transition cursor-pointer",title:"Uncheck all checkboxes",children:"Clear"}),h.jsx("span",{className:"text-[10px] text-slate-300 font-mono font-bold select-none",children:"|"}),h.jsx("button",{onClick:lt,className:"text-[10px] text-slate-400 hover:text-indigo-600 font-mono font-bold flex items-center gap-0.5 transition cursor-pointer",title:"Default checkboxes state",children:"Reset"})]})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Entity Family Filters"}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:K.map(C=>{const T=s.families.has(C),L=pa[C];return h.jsxs("button",{onClick:()=>Ot(C),className:`text-[10px] font-medium px-2 py-1 rounded transition border flex items-center gap-1 ${T?`${L?.bg||"bg-slate-100"} ${L?.text||"text-slate-700"} ${L?.border||"border-slate-300"} border-2 font-bold`:"bg-white text-slate-500 border-slate-200 hover:bg-slate-50"}`,children:[h.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${L?.bg||"bg-slate-400"}`}),C]},C)})})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Provenance Origin Kind"}),h.jsx("div",{className:"space-y-1",children:W.map(C=>{const T=s.originKinds.has(C);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>Et(C),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsx("span",{className:"font-mono text-[11px] truncate capitalize",children:C.replace("-"," ")})]},C)})})]}),g.length>0&&h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"SLA Compliance Tiers"}),h.jsx("div",{className:"space-y-1",children:g.map(C=>{const T=s.tiers.has(C);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>jt(C),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsx("span",{className:"font-mono text-[11px]",children:C})]},C)})})]}),v.length>0&&h.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Governance Registry Packs"}),h.jsx("div",{className:"space-y-1 max-h-[140px] overflow-y-auto pr-1",children:v.map(C=>{const T=s.packs.has(C);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>N(C),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsx("span",{className:"font-mono text-[11px] truncate flex-1",title:C,children:C})]},C)})})]}),h.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Validation Outcome Filters"}),h.jsx("div",{className:"space-y-1",children:[{key:"pass",label:"Pass (Certified No Drift)",color:"text-emerald-600 bg-emerald-50"},{key:"warn",label:"Warn (Minor Compliance Gaps)",color:"text-amber-600 bg-amber-50"},{key:"fail",label:"Fail (Critical Blockers)",color:"text-red-600 bg-red-50"},{key:"unknown",label:"Unvalidated Entries",color:"text-slate-500 bg-slate-50"}].map(C=>{const T=s.validationStatuses.has(C.key);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>nt(C.key),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsxs("span",{className:"font-mono text-[11px] flex-1 flex items-center justify-between",children:[h.jsx("span",{children:C.key.toUpperCase()}),h.jsx("span",{className:`text-[9px] px-1 py-0.2 rounded scale-90 ${C.color}`,children:C.label})]})]},C.key)})})]}),h.jsxs("div",{className:"space-y-1.5 border-t border-slate-100 pt-3",children:[h.jsx("h4",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Lifecycle Compliance Status"}),h.jsx("div",{className:"space-y-1",children:["active","certified","deprecated","experimental"].map(C=>{const T=s.statuses.has(C);return h.jsxs("label",{className:"flex items-center gap-2 text-xs text-slate-600 cursor-pointer hover:text-slate-800",children:[h.jsx("input",{type:"checkbox",checked:T,onChange:()=>et(C),className:"rounded text-indigo-600 focus:ring-indigo-500 w-3.5 h-3.5 border-slate-300"}),h.jsx("span",{className:"font-mono text-[11px] capitalize",children:C})]},C)})})]})]}),Y==="limits"&&h.jsxs("div",{className:"space-y-4",children:[h.jsx("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2",children:h.jsxs("span",{className:"text-xs font-bold text-slate-700 flex items-center gap-1",children:[h.jsx(Qc,{size:12,className:"text-indigo-600"}),"Workspace Limits"]})}),h.jsxs("div",{className:"bg-slate-50 rounded-lg p-3 border border-slate-150 space-y-4",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[h.jsx("span",{className:"text-slate-600 font-medium",children:"Render Node Limit"}),h.jsx("span",{className:"font-mono text-indigo-600 font-bold whitespace-nowrap",children:U>5e3?"Unlimited":`${U} Nodes`})]}),h.jsx("input",{type:"range",min:"50",max:"500",step:"50",value:U>5e3?500:U,onChange:C=>{const T=parseInt(C.target.value);Q?.(T===500?999999:T)},className:"w-full accent-indigo-600 cursor-pointer h-1 bg-slate-200 rounded-lg focus:outline-none"}),h.jsxs("div",{className:"flex justify-between text-[8px] text-slate-400 font-mono",children:[h.jsx("span",{children:"50"}),h.jsx("span",{children:"150"}),h.jsx("span",{children:"300"}),h.jsx("span",{children:"Unlimited"})]})]}),h.jsxs("div",{className:"space-y-1.5 pt-3 border-t border-slate-200/50",children:[h.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[h.jsx("span",{className:"text-slate-600 font-medium",children:"Ego-Focus Hops Limit"}),h.jsxs("span",{className:"font-mono text-indigo-600 font-bold",children:[B," ",B===1?"Hop":"Hops"]})]}),h.jsx("div",{className:"flex gap-1.5",children:[1,2,3,4].map(C=>h.jsx("button",{onClick:()=>z?.(C),className:`flex-1 py-1 rounded text-xs font-mono transition font-bold border cursor-pointer ${B===C?"bg-indigo-600 border-indigo-750 text-white":"bg-white border-slate-200 text-slate-600 hover:bg-slate-50"}`,children:C},C))}),h.jsx("p",{className:"text-[10px] text-slate-400 mt-1 leading-relaxed",children:"Deepens or constrains the neighbor-traversal range (hops) when filtering the central active ego node."})]}),h.jsxs("div",{className:"space-y-1.5 pt-3 border-t border-slate-200/50",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-[11px] text-slate-600 font-medium",children:"Isolate Active Focus"}),h.jsx("button",{onClick:()=>st?.(!X),className:`relative inline-flex h-5 w-9 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ${X?"bg-indigo-600":"bg-slate-200"}`,children:h.jsx("span",{"aria-hidden":"true",className:`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out ${X?"translate-x-4":"translate-x-0"}`})})]}),h.jsx("p",{className:"text-[10px] text-slate-400 leading-relaxed",children:"When enabled, completely hides any nodes and ribbons outside of the active focus neighborhood."})]})]})]})]}),h.jsxs("div",{className:"p-4 border-t border-slate-100 bg-slate-50",children:[h.jsxs("div",{className:"flex items-center justify-between text-[11px] text-slate-500 font-mono mb-2",children:[h.jsxs("span",{children:["Schema: v",a.schemaVersion||"2.4.0"]}),h.jsxs("span",{children:["Edges: ",a.edges.length||0]})]}),h.jsxs("div",{className:"flex items-center gap-2 text-[11px] text-slate-500 font-mono",children:[h.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500 animate-pulse"}),h.jsx("span",{children:"Registry Status: 100% VALIDATED"})]})]})]})},H3=({payload:a,selectedNodeId:s,focusNodeId:o,onSelectNode:r,onSetFocusNode:c,onClearFocusNode:m,isCollapsed:f,onToggleCollapse:p})=>{const[v,g]=Re.useState(null),b=Re.useMemo(()=>{const _=new Map;return a.nodes.forEach(U=>_.set(U.id,U)),_},[a.nodes]),x=Re.useMemo(()=>s&&b.get(s)||null,[s,b]),A=Re.useMemo(()=>{if(!s)return{incoming:[],outgoing:[]};const _=[],U=[];return a.edges.forEach(Q=>{if(Q.to===s){const B=b.get(Q.from);B&&_.push({node:B,edge:Q})}if(Q.from===s){const B=b.get(Q.to);B&&U.push({node:B,edge:Q})}}),{incoming:_,outgoing:U}},[s,b,a.edges]),E=(_,U)=>{navigator.clipboard.writeText(_),g(U),setTimeout(()=>g(null),2e3)};if(f)return h.jsxs("div",{className:"w-12 h-full border-l border-slate-200 bg-slate-50 flex flex-col items-center py-4 gap-4 shrink-0 overflow-hidden font-sans select-none shadow-[-1px_0_6px_-2px_rgba(0,0,0,0.05)] z-10 animate-fadeIn",children:[h.jsx("button",{onClick:p,className:"p-1.5 hover:bg-slate-200 rounded-lg text-slate-500 hover:text-slate-800 transition",title:"Expand inspector panel",children:h.jsx(bg,{size:18})}),h.jsx("div",{className:"w-6 border-b border-slate-200/60 my-1"}),x?h.jsxs("div",{className:"flex flex-col items-center gap-4 flex-1 w-full relative",children:[h.jsx("div",{className:`w-3.5 h-3.5 rounded-full relative group cursor-pointer shadow-sm border border-slate-200 ${pa[x.family]?.bg||"bg-indigo-400"}`,onClick:p,children:h.jsxs("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans font-medium",children:[x.family,": ",x.id]})}),h.jsxs("button",{onClick:()=>E(x.id,"ID"),className:"p-2 text-slate-400 hover:text-slate-600 hover:bg-slate-200/50 rounded-lg transition relative group",children:[h.jsx(os,{size:14}),h.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:v==="ID"?"Copied!":"Copy Node ID"})]}),x.id!==o?h.jsxs("button",{onClick:()=>c(x.id),className:"p-2 text-teal-600 hover:text-teal-800 hover:bg-teal-50 rounded-lg transition relative group",children:[h.jsx(Xm,{size:14}),h.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Focus Node"})]}):h.jsxs("button",{onClick:m,className:"p-2 text-amber-600 hover:text-amber-800 hover:bg-amber-50 rounded-lg transition relative group",children:[h.jsx(xi,{size:14}),h.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Unfocus"})]}),h.jsx("div",{className:"flex-1"}),h.jsxs("button",{onClick:()=>r(null),className:"p-2 text-slate-400 hover:text-rose-600 hover:bg-rose-50 rounded-lg transition relative group",children:[h.jsx(Cb,{size:14}),h.jsx("div",{className:"absolute right-14 top-1/2 -translate-y-1/2 bg-slate-800 text-white text-[10px] px-2.5 py-1 rounded-md shadow-lg opacity-0 pointer-events-none group-hover:opacity-100 transition duration-150 whitespace-nowrap z-50 font-sans",children:"Deselect Node"})]})]}):h.jsxs("div",{className:"flex flex-col items-center gap-4 flex-1 justify-center opacity-45",children:[h.jsx(Io,{size:16,className:"text-slate-400 animate-pulse"}),h.jsx("span",{className:"text-[9px] text-slate-400 font-extrabold tracking-widest uppercase pointer-events-none select-none [writing-mode:vertical-lr] my-auto rotate-180",children:"Inspector Empty"})]})]});if(!x)return h.jsxs("div",{className:"w-80 h-full border-l border-slate-200 bg-slate-50 flex flex-col items-center justify-center p-6 text-center select-none shrink-0 shadow-[-2px_0_12px_-4px_rgba(0,0,0,0.04)] relative",children:[h.jsx("button",{onClick:p,className:"absolute top-4 right-4 p-1.5 hover:bg-slate-200/60 text-slate-400 hover:text-slate-600 rounded-lg transition",title:"Collapse inspector",children:h.jsx(Zc,{size:16})}),h.jsx(Io,{size:32,className:"text-slate-300 mb-2 animate-pulse"}),h.jsx("p",{className:"text-xs font-semibold text-slate-500",children:"No Element Selected"}),h.jsx("p",{className:"text-[10px] text-slate-400 max-w-[200px] mt-1",children:"Click any circular node in the lineage graph to view source provenance, tests, claims, and relations."})]});const O=pa[x.family]||pa.Profile;return h.jsxs("div",{className:"w-80 h-full border-l border-slate-200 bg-white flex flex-col shrink-0 overflow-hidden font-sans shadow-[-2px_0_12px_-4px_rgba(0,0,0,0.06)] z-10 animate-slideIn",children:[h.jsxs("div",{className:"p-4 border-b border-slate-100 flex items-center justify-between bg-slate-50/40",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("span",{className:`text-[9px] font-mono font-extrabold px-1.5 py-0.5 rounded uppercase ${O.bg} ${O.text} border ${O.border}`,children:x.family}),h.jsx("span",{className:"text-xs font-bold text-slate-800 font-mono truncate max-w-[125px]",children:x.id})]}),h.jsxs("div",{className:"flex items-center gap-1",children:[h.jsx("button",{onClick:p,className:"text-slate-400 hover:text-slate-600 p-1 hover:bg-slate-100 rounded-lg transition",title:"Collapse inspector",children:h.jsx(Zc,{size:15})}),h.jsx("button",{onClick:()=>r(null),className:"text-slate-400 hover:text-slate-600 p-1 hover:bg-slate-100 rounded-full transition",title:"Close Inspector",children:h.jsx(xi,{size:15})})]})]}),h.jsxs("div",{className:"px-4 py-2 bg-slate-50 border-b border-slate-100 flex items-center gap-1.5",children:[h.jsxs("button",{onClick:()=>E(x.id,"ID"),className:"flex-1 py-1 px-2.5 text-[9px] font-mono font-bold text-slate-600 bg-white border border-slate-200 rounded hover:bg-slate-100 hover:text-slate-800 transition flex items-center justify-center gap-1",title:"Copy node ID to clipboard",children:[h.jsx(os,{size:10}),h.jsx("span",{children:v==="ID"?"Copied!":"Copy Node ID"})]}),x.id!==o?h.jsxs("button",{onClick:()=>c(x.id),className:"flex-1 py-1 px-2.5 text-[9px] font-bold text-teal-700 bg-teal-50/60 border border-teal-200 rounded hover:bg-teal-100 hover:text-teal-900 transition flex items-center justify-center gap-1",title:"Focus graph layout center around this node",children:[h.jsx(Xm,{size:11}),h.jsx("span",{children:"Focus Node"})]}):h.jsxs("button",{onClick:m,className:"flex-1 py-1 px-2.5 text-[9px] font-bold text-amber-700 bg-amber-50/60 border border-amber-200 rounded hover:bg-amber-100 hover:text-amber-900 transition flex items-center justify-center gap-1",title:"Clear manual layout focus center",children:[h.jsx(xi,{size:10}),h.jsx("span",{children:"Unfocus"})]})]}),h.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h1",{className:"text-xs font-bold text-slate-800",children:x.title||x.label||x.id}),x.body?h.jsx("div",{className:"bg-slate-50/80 border border-slate-200/60 rounded-lg p-3 text-[10.5px] leading-relaxed text-slate-600 font-mono whitespace-pre-wrap max-h-48 overflow-y-auto shadow-inner",children:x.body}):h.jsx("p",{className:"text-[11px] leading-relaxed text-slate-500",children:x.description||x.summary||"No description document supplied in registry payload definition."})]}),h.jsxs("div",{className:"bg-slate-50/70 border border-slate-100 rounded-lg p-2.5 space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[h.jsx("span",{className:"text-slate-400 font-medium",children:"Compliance status"}),h.jsx("span",{className:"font-mono uppercase font-bold text-indigo-600 bg-indigo-50 px-1.5 py-0.5 rounded text-[9px]",children:x.status||"active"})]}),x.tier&&h.jsxs("div",{className:"flex items-center justify-between text-[11px]",children:[h.jsx("span",{className:"text-slate-400 font-medium",children:"SLA Tier level"}),h.jsx("span",{className:"font-mono text-[9px] text-slate-600 font-semibold",children:x.tier})]}),x.proof?.completeness!==void 0&&h.jsxs("div",{className:"space-y-1 pt-1.5 border-t border-slate-200/50",children:[h.jsxs("div",{className:"flex items-center justify-between text-[10px] font-mono",children:[h.jsx("span",{className:"text-slate-500 font-bold",children:"Proof Progress"}),h.jsxs("span",{className:"text-slate-700 font-black",children:[x.proof.completeness,"%"]})]}),h.jsx("div",{className:"w-full bg-slate-200 h-1 rounded-full overflow-hidden",children:h.jsx("div",{className:`h-full rounded-full transition-all duration-500 ${x.proof.completeness===100?"bg-emerald-500":"bg-indigo-500"}`,style:{width:`${x.proof.completeness}%`}})})]})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:"Origin Provenance"}),h.jsxs("div",{className:"text-xs border border-slate-100 rounded-lg p-2.5 space-y-1 bg-white",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-slate-400 text-[10px]",children:"Registry package:"}),h.jsx("span",{className:"font-mono text-[10px] text-slate-600 capitalize",children:x.originKind||"Local"})]}),x.path&&h.jsxs("div",{className:"space-y-1 pt-1",children:[h.jsx("div",{className:"text-slate-400 text-[10px]",children:"File path:"}),h.jsxs("div",{className:"flex items-center gap-1 bg-slate-50 hover:bg-slate-100 p-1 rounded border border-slate-200/50",children:[h.jsx(Fv,{size:10,className:"text-slate-400"}),h.jsx("span",{className:"font-mono text-[10px] text-slate-700 truncate select-all flex-1",children:x.path}),h.jsx("button",{onClick:()=>E(x.path||"","FilePath"),className:"p-0.5 text-slate-400 hover:text-slate-700",title:"Copy relative file coordinate path",children:h.jsx(os,{size:9})})]})]})]})]}),x.validation&&x.validation.status!=="pass"&&h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-red-500 font-mono flex items-center gap-1",children:[h.jsx(Mb,{size:12}),"Validation Warnings"]}),h.jsx("div",{className:"bg-red-50/50 border border-red-100 rounded-lg p-2.5 space-y-1.5 max-h-[140px] overflow-y-auto",children:(x.validation.issues||[]).map((_,U)=>h.jsxs("div",{className:"text-[10px] text-red-700 leading-relaxed font-mono flex items-start gap-1",children:[h.jsx("span",{children:"-"}),h.jsx("span",{children:_})]},U))})]}),h.jsxs("div",{className:"space-y-3 pt-1 border-t border-slate-100",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Upstream Ancestors (",A.incoming.length,")"]}),A.incoming.length===0?h.jsx("p",{className:"text-[10px] text-slate-400 italic",children:"No incoming connections."}):h.jsx("div",{className:"space-y-1",children:A.incoming.map(({node:_,edge:U},Q)=>{const B=pa[_.family];return h.jsxs("div",{onClick:()=>r(_.id),className:"p-1 px-2 border border-slate-100 rounded hover:bg-slate-50 cursor-pointer flex items-center justify-between text-[11px] transition",children:[h.jsxs("div",{className:"flex items-center gap-1.5 truncate max-w-[160px]",children:[h.jsx("span",{className:`text-[8px] font-mono px-1 rounded uppercase ${B?.bg} ${B?.text}`,children:_.family.substring(0,3)}),h.jsx("span",{className:"font-mono text-[10px] font-semibold text-slate-700 truncate",children:_.id})]}),h.jsx("span",{className:"text-[9px] text-indigo-500 font-mono font-bold lowercase",children:U.type||"drives"})]},`${_.id}-${U.type||"incoming"}-${Q}`)})})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("h3",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-400 font-mono",children:["Downstream Relations (",A.outgoing.length,")"]}),A.outgoing.length===0?h.jsx("p",{className:"text-[10px] text-slate-400 italic",children:"No outgoing connections."}):h.jsx("div",{className:"space-y-1",children:A.outgoing.map(({node:_,edge:U},Q)=>{const B=pa[_.family];return h.jsxs("div",{onClick:()=>r(_.id),className:"p-1 px-2 border border-slate-100 rounded hover:bg-slate-50 cursor-pointer flex items-center justify-between text-[11px] transition",children:[h.jsxs("div",{className:"flex items-center gap-1.5 truncate max-w-[160px]",children:[h.jsx("span",{className:`text-[8px] font-mono px-1 rounded uppercase ${B?.bg} ${B?.text}`,children:_.family.substring(0,3)}),h.jsx("span",{className:"font-mono text-[10px] font-semibold text-slate-700 truncate",children:_.id})]}),h.jsx("span",{className:"text-[9px] text-slate-400 font-mono font-bold lowercase",children:U.type||"triggers"})]},`${_.id}-${U.type||"outgoing"}-${Q}`)})})]})]})]})]})},q3=()=>{const[a,s]=H.useState("api"),[o,r]=H.useState(null),c=(v,g)=>{navigator.clipboard.writeText(v),r(g),setTimeout(()=>r(null),2e3)},m=`import { LineageGraphApp } from "@ssot-registry/lineage-graph";
27
+ import { LineagePayload } from "./types";
28
+
29
+ const payload: LineagePayload = {
30
+ schemaVersion: "2.4.0",
31
+ generatedAt: "2026-06-21T21:00:00-07:00",
32
+ nodes: [
33
+ { id: "adr:01", family: "ADR", label: "ADR-01: Offline Portability", status: "active" },
34
+ { id: "spec:01", family: "SPEC", label: "SPEC: Schema v2", status: "certified" }
35
+ ],
36
+ edges: [
37
+ { from: "adr:01", to: "spec:01", type: "defines" }
38
+ ]
39
+ };
40
+
41
+ export default function App() {
42
+ return (
43
+ <div className="w-screen h-screen">
44
+ <LineageGraphApp
45
+ payload={payload}
46
+ defaultMode="lineage"
47
+ theme="light"
48
+ />
49
+ </div>
50
+ );
51
+ }`,f=`def _lineage_payload(self) -> dict:
52
+ """
53
+ Python backend generator mapping active compliance records
54
+ into standard LineagePayload JSON contracts.
55
+ """
56
+ nodes = []
57
+ edges = []
58
+
59
+ # Trace ADRs, SPECs, Features, and releases to build proof chains
60
+ for entity in self.registry.get_entities():
61
+ nodes.append({
62
+ "id": entity.id,
63
+ "family": entity.family,
64
+ "label": entity.label,
65
+ "status": entity.status,
66
+ "originKind": "repo-local" if entity.is_local else "ssot-origin",
67
+ "path": entity.relative_path
68
+ })
69
+
70
+ for link in self.registry.get_links():
71
+ edges.append({
72
+ "from": link.source_id,
73
+ "to": link.target_id,
74
+ "type": link.relationship_type,
75
+ "status": "active"
76
+ })
77
+
78
+ return {
79
+ "schemaVersion": "2.4.0",
80
+ "generatedAt": "2026-06-21T22:20:00-07:00",
81
+ "nodes": nodes,
82
+ "edges": edges,
83
+ "registry": { "validationStatus": "valid" }
84
+ }`,p="uv run ssot graph lineage . --output .ssot/graphs/registry.lineage.html";return h.jsxs("div",{className:"flex-1 bg-slate-50 overflow-y-auto font-sans p-6",children:[h.jsxs("div",{className:"max-w-4xl mx-auto mb-8 bg-gradient-to-r from-indigo-700 to-indigo-900 border border-indigo-950 p-6 rounded-2xl shadow-xl text-white",children:[h.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[h.jsx(vg,{className:"text-indigo-200 animate-pulse",size:24}),h.jsx("span",{className:"text-[10px] font-mono tracking-widest text-indigo-200 uppercase bg-indigo-800/80 px-2.5 py-0.5 rounded-full font-bold",children:"Interactive Documentation System"})]}),h.jsx("h1",{className:"text-xl sm:text-2xl font-extrabold tracking-tight",children:"@ssot-registry/lineage-graph"}),h.jsx("p",{className:"text-sm text-indigo-100 max-w-2xl mt-1.5 leading-relaxed",children:"The canonical visual React workspace for proving, validating, and explaining how Single Source of Truth repositories release certified products. Fully typed, offline capable, rendering with high-speed coordinate canvas bounds."}),h.jsxs("div",{className:"flex bg-indigo-950/40 p-1 rounded-lg mt-6 max-w-md border border-indigo-800/40",children:[h.jsx("button",{onClick:()=>s("api"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="api"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"React API Reference"}),h.jsx("button",{onClick:()=>s("stories"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="stories"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"Interactive Stories"}),h.jsx("button",{onClick:()=>s("cli"),className:`flex-1 py-1.5 px-3 rounded text-xs font-semibold select-none transition ${a==="cli"?"bg-indigo-600 text-white shadow":"text-indigo-200 hover:text-white"}`,children:"SSOT CLI Exports"})]})]}),h.jsxs("div",{className:"max-w-4xl mx-auto bg-white border border-slate-200 rounded-xl shadow-md p-6",children:[a==="api"&&h.jsxs("div",{className:"space-y-6",children:[h.jsxs("div",{children:[h.jsxs("h2",{className:"text-base font-bold text-slate-800 mb-1 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[h.jsx(Uv,{size:18,className:"text-indigo-600"})," Component Signatures"]}),h.jsxs("p",{className:"text-xs text-slate-500 leading-relaxed mt-2",children:["The visual widget package exports a main application workspace wrapper ",h.jsx("strong",{className:"font-mono text-[11px] bg-slate-100 p-0.5 rounded text-slate-800",children:"LineageGraphApp"})," that houses all coordinate math, filter buttons, searches, legends, and sidebars."]})]}),h.jsxs("div",{className:"space-y-4",children:[h.jsx("h3",{className:"text-xs font-bold text-slate-700 uppercase tracking-wider font-mono",children:"LineageGraphApp Props Layout"}),h.jsx("div",{className:"overflow-x-auto border border-slate-100 rounded-lg",children:h.jsxs("table",{className:"w-full text-left border-collapse text-xs",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 font-mono text-slate-500",children:[h.jsx("th",{className:"p-2.5 font-bold",children:"Prop Name"}),h.jsx("th",{className:"p-2.5 font-bold",children:"Type"}),h.jsx("th",{className:"p-2.5 font-bold",children:"Required"}),h.jsx("th",{className:"p-2.5 font-bold",children:"Description"})]})}),h.jsxs("tbody",{className:"divide-y divide-slate-100 text-[11px] font-mono text-slate-600",children:[h.jsxs("tr",{children:[h.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"payload"}),h.jsx("td",{className:"p-2.5",children:"LineagePayload"}),h.jsx("td",{className:"p-2.5 text-rose-500 font-bold",children:"Yes"}),h.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:"The complete typed SSOT registry JSON payload structure."})]}),h.jsxs("tr",{children:[h.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"defaultMode"}),h.jsx("td",{className:"p-2.5",children:'"network" | "lineage" | "proof" | "origins"'}),h.jsx("td",{className:"p-2.5 text-slate-400",children:"No"}),h.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:'Initial render mode. Defaults to "lineage".'})]}),h.jsxs("tr",{children:[h.jsx("td",{className:"p-2.5 font-bold text-indigo-600",children:"theme"}),h.jsx("td",{className:"p-2.5",children:'"light" | "steel-dark"'}),h.jsx("td",{className:"p-2.5 text-slate-400",children:"No"}),h.jsx("td",{className:"p-2.5 text-slate-500 font-sans",children:'Color theme preset. Defaults to "light".'})]})]})]})})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs font-bold text-slate-700",children:"React Embed Code Example"}),h.jsxs("button",{onClick:()=>c(m,"react"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[h.jsx(os,{size:11})," ",o==="react"?"Copied!":"Copy Code"]})]}),h.jsx("pre",{className:"bg-slate-900 text-slate-100 p-4 rounded-xl text-[10px] font-mono overflow-x-auto leading-relaxed border border-slate-950",children:m})]})]}),a==="stories"&&h.jsxs("div",{className:"space-y-6",children:[h.jsxs("h2",{className:"text-base font-bold text-slate-800 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[h.jsx(db,{size:18,className:"text-indigo-600"})," Live Visual Testing Stories"]}),h.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[h.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[h.jsx("span",{className:"text-[9px] font-mono font-bold bg-amber-50 text-amber-700 px-2 py-0.5 rounded border border-amber-200",children:"Story #1: Tree Structure Collapse"}),h.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Recursive Sub-tree Collapsible Nodes"}),h.jsxs("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:["Clicking the circle expansion badge ",h.jsx("strong",{className:"font-mono text-slate-800",children:"[+]"})," or ",h.jsx("strong",{className:"font-mono text-slate-800",children:"[-]"})," at the base of the circular nodes dynamically hides or reveals children subtrees cleanly. Perfect for reducing visual noise in deep registries."]})]}),h.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[h.jsx("span",{className:"text-[9px] font-mono font-bold bg-emerald-50 text-emerald-700 px-2 py-0.5 rounded border border-emerald-200",children:"Story #2: Ego-Centric Filtering Triggers"}),h.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Instant Ego Neighborhood Hover Analysis"}),h.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"Hovering over any node dynamically highlights connected outgoing specifications and upstream ADR ancestors while executing a fluid, 60fps linear opacity fade on unrelated components."})]}),h.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[h.jsx("span",{className:"text-[9px] font-mono font-bold bg-indigo-50 text-indigo-700 px-2 py-0.5 rounded border border-indigo-200",children:"Story #3: Draggable Reposition Node Locking"}),h.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Frictionless Free-form Layout Repositioning"}),h.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"At any point, grab and slide circular elements manually to alter connections. Layout positions are computed dividing coordinate movements by scale coefficients, ensuring zero drifting under variable zoom viewports."})]}),h.jsxs("div",{className:"p-4 border border-slate-150 rounded-xl hover:shadow-md transition",children:[h.jsx("span",{className:"text-[9px] font-mono font-bold bg-red-50 text-red-700 px-2 py-0.5 rounded border border-red-200",children:"Story #4: Validation Drift Spotlighting"}),h.jsx("h3",{className:"text-xs font-bold text-slate-800 mt-2",children:"Dotted Stale Link Warning Metrics"}),h.jsx("p",{className:"text-[11px] text-slate-500 mt-1 leading-relaxed",children:"Validation drifts trigger color alerts on the canvas node rims (red alerts) and draw invalid links with dotted ruby traces. The right inspector immediately lists failure issue lines."})]})]})]}),a==="cli"&&h.jsxs("div",{className:"space-y-6",children:[h.jsxs("h2",{className:"text-base font-bold text-slate-800 flex items-center gap-1.5 border-b border-slate-100 pb-2",children:[h.jsx(Yv,{size:18,className:"text-indigo-600"})," CLI Standalone Exporters"]}),h.jsxs("div",{className:"space-y-4 text-xs text-slate-600",children:[h.jsx("p",{className:"leading-relaxed",children:"The visual React package compiles directly to an inline static single-page viewer containing no external runtime CDN links or package dependencies. PyPI users invoke this build engine via the Python command-line utility to generate completely offline *.html assets."}),h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Python CLI trigger terminal snip"}),h.jsxs("button",{onClick:()=>c(p,"cli"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[h.jsx(os,{size:11})," ",o==="cli"?"Copied!":"Copy Command"]})]}),h.jsxs("pre",{className:"bg-slate-900 text-slate-100 p-3 rounded-xl font-mono text-[10.5px] border border-slate-950 overflow-x-auto select-all",children:["$ ",p]})]}),h.jsxs("div",{className:"space-y-2",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs font-bold text-slate-700",children:"Primary Python payload producer schema mapping"}),h.jsxs("button",{onClick:()=>c(f,"python"),className:"text-[10px] text-slate-500 hover:text-indigo-600 flex items-center gap-1 font-mono hover:underline",children:[h.jsx(os,{size:11})," ","Copy Code"]})]}),h.jsx("pre",{className:"bg-slate-900 text-slate-100 p-4 rounded-xl text-[10px] font-mono overflow-x-auto leading-relaxed border border-slate-950",children:f})]})]})]})]})]})},Y3=({payload:a,selectedRegistryKey:s=a.package?.id||a.package?.name||"current",onChangeRegistry:o=()=>{},registryOptions:r=[],defaultMode:c="lineage",theme:m="light",showDocumentation:f=!1,precomputedIndices:p})=>{const[v,g]=H.useState("workspace"),[b,x]=H.useState(null),[A,E]=H.useState(new Set),[O,_]=H.useState(new Set),[U,Q]=H.useState([]),[B,z]=H.useState(300),[X,st]=H.useState(1),[Y,F]=H.useState(!1),[K,W]=H.useState(null),[I,lt]=H.useState([]),[ft,Ot]=H.useState(new Set),[Et,jt]=H.useState(new Set),[N,nt]=H.useState(c),[et,pt]=H.useState({showLabels:!0,edgeWidth:2,edgeOpacity:.6,showMinimap:!1,theme:m}),[C,T]=H.useState(!1),[L,at]=H.useState(!1),ot=H.useMemo(()=>Array.from(new Set(["ADR","Spec","SPEC","Feature","Claim","Test","Evidence","Release","Boundary","Profile","Risk","Issue",...a.nodes.map(tt=>tt.family)])),[a.nodes]),Tt=H.useMemo(()=>Array.from(new Set(["ssot-core","ssot-origin","repo-local","extension-pack","generated","unknown",...a.nodes.map(tt=>tt.originKind).filter(tt=>!!tt)])),[a.nodes]),[dt,Bt]=H.useState({search:"",families:new Set(ot),statuses:new Set,originKinds:new Set(Tt),tiers:new Set,packs:new Set,validationStatuses:new Set,edgeTypes:new Set}),[Kt,At]=H.useState({}),qe=H.useRef(null),Ln=1100,Bn=620;H.useEffect(()=>{console.log("[LineageGraphApp] Ready! Graph initialized successfully")},[]),H.useEffect(()=>{console.log(`[LineageGraphApp] View Mode changed to: ${N.toUpperCase()}`)},[N]),H.useEffect(()=>{b?(console.log(`[LineageGraphApp] Node Selected: ${b}`),at(!1)):(console.log("[LineageGraphApp] Node Selection Cleared"),at(!0))},[b]),H.useEffect(()=>{K&&console.log(`[LineageGraphApp] Viewport camera locked onto focus node: ${K}`)},[K]),H.useEffect(()=>{!f&&v==="storybook"&&g("workspace")},[v,f]),H.useEffect(()=>{Bt(tt=>({...tt,families:new Set([...ot,...tt.families]),originKinds:new Set([...Tt,...tt.originKinds])}))},[ot,Tt]);const je=H.useMemo(()=>p||r1(a),[a,p]);H.useMemo(()=>b&&a.nodes.find(tt=>tt.id===b)||null,[b,a.nodes]);const{allPacks:Nn,allTiers:Ka,allOriginKinds:Za}=H.useMemo(()=>{const tt=new Set,Mt=new Set,yt=new Set,Zt=a.nodes.length>5e3;return a.nodes.forEach((re,ae)=>{Zt&&ae%10!==0||(re.packs&&re.packs.forEach(Ne=>tt.add(Ne)),re.tier&&Mt.add(re.tier),re.originKind&&yt.add(re.originKind))}),{allPacks:Array.from(tt).sort(),allTiers:Array.from(Mt).sort(),allOriginKinds:Array.from(yt).sort()}},[a.nodes]),hs=tt=>{Ot(Mt=>{const yt=new Set(Mt);return yt.has(tt)?yt.delete(tt):yt.add(tt),yt})},Un=H.useMemo(()=>a.nodes.filter(tt=>{if(dt.search){const Mt=dt.search.toLowerCase(),yt=tt.id.toLowerCase().includes(Mt),Zt=(tt.label||"").toLowerCase().includes(Mt),re=(tt.title||"").toLowerCase().includes(Mt),ae=(tt.description||"").toLowerCase().includes(Mt),Ne=(tt.path||"").toLowerCase().includes(Mt),Qt=(tt.tags||[]).some(oe=>oe.toLowerCase().includes(Mt));if(!yt&&!Zt&&!re&&!ae&&!Ne&&!Qt)return!1}if(!dt.families.has(tt.family)||dt.statuses.size>0&&tt.status&&!dt.statuses.has(tt.status)||tt.originKind&&!dt.originKinds.has(tt.originKind)||dt.tiers.size>0&&tt.tier&&!dt.tiers.has(tt.tier)||dt.packs&&dt.packs.size>0&&(!tt.packs||!tt.packs.some(Mt=>dt.packs.has(Mt))))return!1;if(dt.validationStatuses&&dt.validationStatuses.size>0){const Mt=tt.validation?.status||"unknown";if(!dt.validationStatuses.has(Mt))return!1}return!0}),[a.nodes,dt]),pn=H.useMemo(()=>B&&Un.length>B?Un.slice(0,B):Un,[Un,B]),Qa=H.useMemo(()=>({...a,nodes:pn}),[a,pn]),gn=(tt,Mt)=>{if(!tt){x(null),E(new Set);return}Mt?E(yt=>{const Zt=new Set(yt);return Zt.has(tt)?(Zt.delete(tt),b===tt&&x(Zt.size>0?Array.from(Zt)[Zt.size-1]:null)):(Zt.add(tt),x(tt)),Zt}):(x(tt),E(new Set([tt])))},Dn=tt=>{W(tt),tt&&lt(Mt=>[...Mt,tt])},Hn=()=>{W(null)},Ce=tt=>{jt(Mt=>{const yt=new Set(Mt);return yt.has(tt)?yt.delete(tt):(yt.add(tt),b===tt&&x(null),K===tt&&W(null)),yt})},ms=()=>{jt(new Set)},$a=H.useMemo(()=>{const Mt=a.nodes.length>5e3?pn.filter((yt,Zt)=>{if(Et.has(yt.id)||Kc(yt.id,je.incoming,ft))return!1;const re=yt.id.match(/-(\d+)$/),ae=re?parseInt(re[1],10):-1;return ae!==-1?ae<=150||ae%500===0:Zt%50===0}):pn.filter(yt=>Et.has(yt.id)?!1:!Kc(yt.id,je.incoming,ft));return new Set(Mt.map(yt=>yt.id))},[pn,Et,ft,je]),Oe=H.useMemo(()=>{const tt=K||b;if(!Y||!tt)return null;const Mt=new Set([tt]);let yt=new Set([tt]);const Zt=X||1;for(let re=0;re<Zt;re++){const ae=new Set;yt.forEach(Ne=>{const Qt=new Set([Ne]),oe=[{id:Ne,d:0}];for(;oe.length>0;){const{id:qn,d:Fn}=oe.shift(),en=je.incoming.get(qn)||[],nn=je.outgoing.get(qn)||[],an=[...en,...nn];for(const me of an)Qt.has(me)||(Qt.add(me),$a.has(me)?Mt.has(me)||(Mt.add(me),ae.add(me)):Fn<3&&oe.push({id:me,d:Fn+1}))}}),yt=ae}return Mt},[Y,K,b,X,$a,je]);H.useEffect(()=>{if(N!=="network"&&N!=="flow-force"){qe.current!==null&&(cancelAnimationFrame(qe.current),qe.current=null);const tt=new Set(Et);Y&&Oe&&a.nodes.forEach(yt=>{Oe.has(yt.id)||tt.add(yt.id)});const Mt=gg(a.nodes,je.incoming,je.outgoing,ft,210,90,Ln,Bn,N,tt);At(Mt)}else{const tt=new Set(Et);Y&&Oe&&a.nodes.forEach(yt=>{Oe.has(yt.id)||tt.add(yt.id)});const Mt=gg(a.nodes,je.incoming,je.outgoing,ft,210,90,Ln,Bn,N,tt);At(Mt)}},[N,a,ft,Et,Y,Oe,je]),H.useEffect(()=>{if(N==="network"||N==="flow-force"){if(a.nodes.length>1500)return;const tt=new Set;a.nodes.forEach(yt=>{if(Et.has(yt.id)){tt.add(yt.id);return}if(Y&&Oe&&!Oe.has(yt.id)){tt.add(yt.id);return}Kc(yt.id,je.incoming,ft)&&tt.add(yt.id)});const Mt=()=>{At(yt=>{const Zt=N==="flow-force";return V3(a.nodes,a.edges,yt,tt,Ln,Bn,Zt?.015:.012,Zt?12e3:25e3,Zt?.08:.03,Zt?130:220,N)}),qe.current=requestAnimationFrame(Mt)};return qe.current=requestAnimationFrame(Mt),()=>{qe.current!==null&&(cancelAnimationFrame(qe.current),qe.current=null)}}},[N,a,ft,Et,Y,Oe,je]);const yn=()=>{const tt=JSON.stringify(a,null,2),Mt=new Blob([tt],{type:"application/json"}),yt=URL.createObjectURL(Mt),Zt=document.createElement("a");Zt.href=yt,Zt.download=`${a.package?.id?.replace(/[\\/]/g,"_")||"registry"}_lineage_payload.json`,document.body.appendChild(Zt),Zt.click(),document.body.removeChild(Zt),URL.revokeObjectURL(yt)};return h.jsxs("div",{id:"graph-application-shell",className:"h-full w-full flex flex-col bg-slate-50 select-none overflow-hidden font-sans",children:[h.jsxs("header",{className:"h-14 border-b border-slate-200 bg-white flex items-center justify-between px-6 shrink-0 shadow-sm z-30",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-8 h-8 rounded-lg bg-indigo-600 flex items-center justify-center text-white font-bold shadow-md shadow-indigo-100 shrink-0",children:h.jsx(Wm,{size:16,className:"animate-pulse"})}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx("h1",{className:"text-xs font-black text-slate-800 tracking-tight",children:"SSOT Lineage"}),h.jsx("span",{className:"bg-slate-100 text-slate-500 text-[8px] font-extrabold px-1 py-0.2 rounded font-mono uppercase",children:"Interactive Viewer"})]}),h.jsxs("p",{className:"text-[10px] text-slate-400 font-medium truncate max-w-[180px] sm:max-w-none",children:[a.package?.name||"SSOT-Registry"," - v",a.package?.version||"0.0.1"]})]})]}),f&&h.jsxs("div",{className:"flex bg-slate-100 p-1 rounded-md border border-slate-200/50 text-xs font-medium",children:[h.jsxs("button",{onClick:()=>g("workspace"),className:`flex items-center gap-1.5 px-3 py-1 rounded transition select-none ${v==="workspace"?"bg-white text-slate-800 font-bold shadow-sm":"text-slate-500 hover:text-slate-800"}`,children:[h.jsx(tr,{size:13}),h.jsx("span",{children:"Interactive Graph"})]}),h.jsxs("button",{onClick:()=>g("storybook"),className:`flex items-center gap-1.5 px-3 py-1 rounded transition select-none ${v==="storybook"?"bg-white text-slate-800 font-bold shadow-sm":"text-slate-500 hover:text-slate-800"}`,children:[h.jsx(vg,{size:13}),h.jsx("span",{children:"Storybook Docs"})]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs("button",{onClick:()=>pt(tt=>({...tt,showLabels:!tt.showLabels})),className:`p-2 border rounded-lg transition flex items-center gap-1.5 text-xs font-semibold select-none ${et.showLabels?"bg-indigo-50 border-indigo-200 text-indigo-700 hover:bg-indigo-100":"border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50"}`,title:"Toggle displaying descriptive connection labels directly on graph edges (show/hide)",children:[h.jsx(Qc,{size:14,className:et.showLabels?"text-indigo-600 stroke-[2.5]":""}),h.jsx("span",{className:"hidden md:inline",children:"Connection Labels"}),h.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${et.showLabels?"bg-indigo-600 animate-pulse":"bg-slate-300"}`})]}),h.jsxs("button",{onClick:()=>pt(tt=>({...tt,showMinimap:!tt.showMinimap})),className:`p-2 border rounded-lg transition flex items-center gap-1.5 text-xs font-semibold select-none ${et.showMinimap?"bg-indigo-50 border-indigo-200 text-indigo-700 hover:bg-indigo-100":"border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50"}`,title:"Toggle Minimap navigation overview (show/hide)",children:[h.jsx(Tg,{size:14,className:et.showMinimap?"stroke-[2.5]":""}),h.jsx("span",{className:"hidden md:inline",children:"Minimap"}),h.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${et.showMinimap?"bg-indigo-600":"bg-slate-300"}`})]}),h.jsx("button",{onClick:()=>pt(tt=>({...tt,theme:tt.theme==="light"?"steel-dark":"light"})),className:"p-2 border border-slate-200 text-slate-500 hover:text-slate-800 hover:bg-slate-50 rounded-lg transition",title:"Toggle canvas color scheme",children:h.jsx(Tb,{size:14})}),h.jsxs("button",{onClick:yn,className:"flex items-center gap-1.5 px-3 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-lg text-xs font-extrabold transition shadow-lg shadow-indigo-100 hover:shadow-indigo-200",title:"Download the current lineage payload JSON",children:[h.jsx($v,{size:13}),h.jsx("span",{className:"hidden sm:inline",children:"Export Payload JSON"})]})]})]}),f&&v==="storybook"?h.jsx(q3,{}):h.jsxs("div",{className:"flex-1 flex overflow-hidden",children:[h.jsx(U3,{payload:a,filters:dt,onUpdateFilters:Bt,viewMode:N,onChangeViewMode:nt,selectedRegistryKey:s,onChangeRegistry:o,registryOptions:r,allPacks:Nn,allTiers:Ka,allOriginKinds:Za,filteredNodes:Un,isCollapsed:C,onToggleCollapse:()=>T(!C),onSelectNode:gn,onFocusNode:Dn,nodeLimit:B,onUpdateNodeLimit:z,egoHops:X,onUpdateEgoHops:st,isolateEgo:Y,onUpdateIsolateEgo:F}),h.jsx("div",{className:"flex-1 h-full flex flex-col overflow-hidden bg-slate-100",children:h.jsxs("div",{className:"flex-1 relative overflow-hidden",children:[h.jsx(k3,{payload:Qa,positions:Kt,mode:N,selectedNodeId:b,selectedNodeIds:A,focusNodeId:K,collapsedNodeIds:ft,hiddenNodeIds:Et,onSelectNode:gn,onToggleCollapse:hs,onToggleHideNode:Ce,onClearHiddenNodes:ms,onUpdatePositions:At,viewSettings:et,precomputedIndices:p,egoHops:X,highlightedNodeIds:O,customGroups:U,isolateEgo:Y}),A.size>1&&h.jsxs("div",{id:"multi-select-actions-bar",className:"absolute bottom-6 left-1/2 -translate-x-1/2 bg-slate-900/95 backdrop-blur border border-slate-800 text-white px-5 py-3 rounded-full flex items-center gap-4 shadow-2xl z-50 transition-all duration-300",children:[h.jsxs("div",{className:"flex items-center gap-2 pr-3 border-r border-slate-800",children:[h.jsx("span",{className:"w-2.5 h-2.5 rounded-full bg-indigo-500 animate-pulse"}),h.jsxs("span",{className:"text-xs font-mono font-bold text-slate-300",children:[A.size," NODES SELECTED"]})]}),h.jsxs("button",{onClick:()=>{_(new Set(A)),console.log("[LineageGraphApp] Highlighted nodes:",Array.from(A))},className:"px-3.5 py-1.5 bg-amber-500 hover:bg-amber-600 text-slate-950 rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Highlight all multi-selected nodes",children:[h.jsx(Wm,{size:13}),h.jsx("span",{children:"Highlight"})]}),h.jsxs("button",{onClick:()=>{const tt=prompt("Enter a label/contract zone name for this node group:",`Module Spec Group ${U.length+1}`)||`Group ${U.length+1}`,Mt={id:`group-custom-${Date.now()}`,label:tt,nodeIds:Array.from(A)};Q(yt=>[...yt,Mt]),E(new Set),x(null),console.log("[LineageGraphApp] Created custom group:",Mt)},className:"px-3.5 py-1.5 bg-indigo-600 hover:bg-indigo-700 text-white rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Group selected nodes into a custom boundary zone",children:[h.jsx(tr,{size:13}),h.jsx("span",{children:"Group"})]}),h.jsxs("button",{onClick:()=>{jt(tt=>{const Mt=new Set(tt);return A.forEach(yt=>Mt.add(yt)),Mt}),E(new Set),x(null),console.log("[LineageGraphApp] Bulk-hid nodes:",Array.from(A))},className:"px-3.5 py-1.5 bg-rose-600 hover:bg-rose-700 text-white rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Deselect and bulk-hide selected nodes from view",children:[h.jsx(Sg,{size:13,className:"text-rose-100"}),h.jsx("span",{children:"Bulk-Hide"})]}),O.size>0&&h.jsxs("button",{onClick:()=>{_(new Set)},className:"px-3.5 py-1.5 bg-slate-800 hover:bg-slate-700 text-slate-300 rounded-full font-bold text-xs flex items-center gap-1.5 transition-all active:scale-95 cursor-pointer",title:"Clear all highlights",children:[h.jsx(xi,{size:13}),h.jsx("span",{children:"Clear Highlights"})]}),h.jsx("button",{onClick:()=>{E(new Set),x(null)},className:"text-slate-400 hover:text-white p-1 rounded-full hover:bg-slate-800 transition cursor-pointer",title:"Deselect all nodes",children:h.jsx(xi,{size:15})})]})]})}),h.jsx(H3,{payload:a,selectedNodeId:b,focusNodeId:K,onSelectNode:x,onSetFocusNode:Dn,onClearFocusNode:Hn,isCollapsed:L,onToggleCollapse:()=>at(!L)})]})]})};function G3(a){return h.jsx(Y3,{...a})}const X3=window.__SSOT_LINEAGE_PAYLOAD__||{nodes:[],edges:[],summary:{nodeCount:0,edgeCount:0}},K3=document.getElementById("ssot-lineage-root")||document.body.appendChild(document.createElement("div"));Mv.createRoot(K3).render(h.jsx(G3,{payload:X3}));