@dhzh/foundry 6.2.1 → 6.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,105 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MenuBottomSheet-CIOl4-qj.js","assets/BottomSheet-BFGTK8Fb.js"])))=>i.map(i=>d[i]);
2
+ function u7(e,t){for(var a=0;a<t.length;a++){const s=t[a];if(typeof s!="string"&&!Array.isArray(s)){for(const i in s)if(i!=="default"&&!(i in e)){const c=Object.getOwnPropertyDescriptor(s,i);c&&Object.defineProperty(e,i,c.get?c:{enumerable:!0,get:()=>s[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const c of i)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function a(i){const c={};return i.integrity&&(c.integrity=i.integrity),i.referrerPolicy&&(c.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?c.credentials="include":i.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(i){if(i.ep)return;i.ep=!0;const c=a(i);fetch(i.href,c)}})();var sp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function b3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fy={exports:{}},Sd={};var Uw;function d7(){if(Uw)return Sd;Uw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(s,i,c){var u=null;if(c!==void 0&&(u=""+c),i.key!==void 0&&(u=""+i.key),"key"in i){c={};for(var d in i)d!=="key"&&(c[d]=i[d])}else c=i;return i=c.ref,{$$typeof:e,type:s,key:u,ref:i!==void 0?i:null,props:c}}return Sd.Fragment=t,Sd.jsx=a,Sd.jsxs=a,Sd}var Vw;function f7(){return Vw||(Vw=1,Fy.exports=d7()),Fy.exports}var p=f7(),qy={exports:{}},$t={};var Gw;function h7(){if(Gw)return $t;Gw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),k=Symbol.for("react.view_transition"),C=Symbol.iterator;function w(B){return B===null||typeof B!="object"?null:(B=C&&B[C]||B["@@iterator"],typeof B=="function"?B:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function E(B,ee,me){this.props=B,this.context=ee,this.refs=T,this.updater=me||v}E.prototype.isReactComponent={},E.prototype.setState=function(B,ee){if(typeof B!="object"&&typeof B!="function"&&B!=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,B,ee,"setState")},E.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function j(){}j.prototype=E.prototype;function $(B,ee,me){this.props=B,this.context=ee,this.refs=T,this.updater=me||v}var z=$.prototype=new j;z.constructor=$,S(z,E.prototype),z.isPureReactComponent=!0;var L=Array.isArray;function I(){}var N={H:null,A:null,T:null,S:null},D=Object.prototype.hasOwnProperty;function P(B,ee,me){var pe=me.ref;return{$$typeof:e,type:B,key:ee,ref:pe!==void 0?pe:null,props:me}}function K(B,ee){return P(B.type,ee,B.props)}function oe(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function V(B){var ee={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(me){return ee[me]})}var H=/\/+/g;function Z(B,ee){return typeof B=="object"&&B!==null&&B.key!=null?V(""+B.key):ee.toString(36)}function F(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(I,I):(B.status="pending",B.then(function(ee){B.status==="pending"&&(B.status="fulfilled",B.value=ee)},function(ee){B.status==="pending"&&(B.status="rejected",B.reason=ee)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function q(B,ee,me,pe,ve){var ye=typeof B;(ye==="undefined"||ye==="boolean")&&(B=null);var Oe=!1;if(B===null)Oe=!0;else switch(ye){case"bigint":case"string":case"number":Oe=!0;break;case"object":switch(B.$$typeof){case e:case t:Oe=!0;break;case y:return Oe=B._init,q(Oe(B._payload),ee,me,pe,ve)}}if(Oe)return ve=ve(B),Oe=pe===""?"."+Z(B,0):pe,L(ve)?(me="",Oe!=null&&(me=Oe.replace(H,"$&/")+"/"),q(ve,ee,me,"",function(Pe){return Pe})):ve!=null&&(oe(ve)&&(ve=K(ve,me+(ve.key==null||B&&B.key===ve.key?"":(""+ve.key).replace(H,"$&/")+"/")+Oe)),ee.push(ve)),1;Oe=0;var ie=pe===""?".":pe+":";if(L(B))for(var $e=0;$e<B.length;$e++)pe=B[$e],ye=ie+Z(pe,$e),Oe+=q(pe,ee,me,ye,ve);else if($e=w(B),typeof $e=="function")for(B=$e.call(B),$e=0;!(pe=B.next()).done;)pe=pe.value,ye=ie+Z(pe,$e++),Oe+=q(pe,ee,me,ye,ve);else if(ye==="object"){if(typeof B.then=="function")return q(F(B),ee,me,pe,ve);throw ee=String(B),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return Oe}function Q(B,ee,me){if(B==null)return B;var pe=[],ve=0;return q(B,pe,"","",function(ye){return ee.call(me,ye,ve++)}),pe}function ae(B){if(B._status===-1){var ee=B._result,me=ee();me.then(function(pe){(B._status===0||B._status===-1)&&(B._status=1,B._result=pe,me.status===void 0&&(me.status="fulfilled",me.value=pe))},function(pe){(B._status===0||B._status===-1)&&(B._status=2,B._result=pe,me.status===void 0&&(me.status="rejected",me.reason=pe))}),B._status===-1&&(B._status=0,B._result=me)}if(B._status===1)return B._result.default;throw B._result}var J=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)};function se(B){var ee=N.T,me={};me.types=ee!==null?ee.types:null,N.T=me;try{var pe=B(),ve=N.S;ve!==null&&ve(me,pe),typeof pe=="object"&&pe!==null&&typeof pe.then=="function"&&pe.then(I,J)}catch(ye){J(ye)}finally{ee!==null&&me.types!==null&&(ee.types=me.types),N.T=ee}}function te(B){var ee=N.T;if(ee!==null){var me=ee.types;me===null?ee.types=[B]:me.indexOf(B)===-1&&me.push(B)}else se(te.bind(null,B))}var fe={map:Q,forEach:function(B,ee,me){Q(B,function(){ee.apply(this,arguments)},me)},count:function(B){var ee=0;return Q(B,function(){ee++}),ee},toArray:function(B){return Q(B,function(ee){return ee})||[]},only:function(B){if(!oe(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return $t.Activity=b,$t.Children=fe,$t.Component=E,$t.Fragment=a,$t.Profiler=i,$t.PureComponent=$,$t.StrictMode=s,$t.Suspense=f,$t.ViewTransition=k,$t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,$t.__COMPILER_RUNTIME={__proto__:null,c:function(B){return N.H.useMemoCache(B)}},$t.addTransitionType=te,$t.cache=function(B){return function(){return B.apply(null,arguments)}},$t.cacheSignal=function(){return null},$t.cloneElement=function(B,ee,me){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var pe=S({},B.props),ve=B.key;if(ee!=null)for(ye in ee.key!==void 0&&(ve=""+ee.key),ee)!D.call(ee,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&ee.ref===void 0||(pe[ye]=ee[ye]);var ye=arguments.length-2;if(ye===1)pe.children=me;else if(1<ye){for(var Oe=Array(ye),ie=0;ie<ye;ie++)Oe[ie]=arguments[ie+2];pe.children=Oe}return P(B.type,ve,pe)},$t.createContext=function(B){return B={$$typeof:u,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:c,_context:B},B},$t.createElement=function(B,ee,me){var pe,ve={},ye=null;if(ee!=null)for(pe in ee.key!==void 0&&(ye=""+ee.key),ee)D.call(ee,pe)&&pe!=="key"&&pe!=="__self"&&pe!=="__source"&&(ve[pe]=ee[pe]);var Oe=arguments.length-2;if(Oe===1)ve.children=me;else if(1<Oe){for(var ie=Array(Oe),$e=0;$e<Oe;$e++)ie[$e]=arguments[$e+2];ve.children=ie}if(B&&B.defaultProps)for(pe in Oe=B.defaultProps,Oe)ve[pe]===void 0&&(ve[pe]=Oe[pe]);return P(B,ye,ve)},$t.createRef=function(){return{current:null}},$t.forwardRef=function(B){return{$$typeof:d,render:B}},$t.isValidElement=oe,$t.lazy=function(B){return{$$typeof:y,_payload:{_status:-1,_result:B},_init:ae}},$t.memo=function(B,ee){return{$$typeof:g,type:B,compare:ee===void 0?null:ee}},$t.startTransition=se,$t.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},$t.use=function(B){return N.H.use(B)},$t.useActionState=function(B,ee,me){return N.H.useActionState(B,ee,me)},$t.useCallback=function(B,ee){return N.H.useCallback(B,ee)},$t.useContext=function(B){return N.H.useContext(B)},$t.useDebugValue=function(){},$t.useDeferredValue=function(B,ee){return N.H.useDeferredValue(B,ee)},$t.useEffect=function(B,ee){return N.H.useEffect(B,ee)},$t.useEffectEvent=function(B){return N.H.useEffectEvent(B)},$t.useId=function(){return N.H.useId()},$t.useImperativeHandle=function(B,ee,me){return N.H.useImperativeHandle(B,ee,me)},$t.useInsertionEffect=function(B,ee){return N.H.useInsertionEffect(B,ee)},$t.useLayoutEffect=function(B,ee){return N.H.useLayoutEffect(B,ee)},$t.useMemo=function(B,ee){return N.H.useMemo(B,ee)},$t.useOptimistic=function(B,ee){return N.H.useOptimistic(B,ee)},$t.useReducer=function(B,ee,me){return N.H.useReducer(B,ee,me)},$t.useRef=function(B){return N.H.useRef(B)},$t.useState=function(B){return N.H.useState(B)},$t.useSyncExternalStore=function(B,ee,me){return N.H.useSyncExternalStore(B,ee,me)},$t.useTransition=function(){return N.H.useTransition()},$t.version="19.3.1",$t}var Kw;function df(){return Kw||(Kw=1,qy.exports=h7()),qy.exports}var x=df();const Nx=b3(x),p7=u7({__proto__:null,default:Nx},[x]);var Hy={exports:{}},Ed={},Uy={exports:{}},Vy={};var Ww;function x7(){return Ww||(Ww=1,(function(e){function t(F,q){var Q=F.length;F.push(q);e:for(;0<Q;){var ae=Q-1>>>1,J=F[ae];if(0<i(J,q))F[ae]=q,F[Q]=J,Q=ae;else break e}}function a(F){return F.length===0?null:F[0]}function s(F){if(F.length===0)return null;var q=F[0],Q=F.pop();if(Q!==q){F[0]=Q;e:for(var ae=0,J=F.length,se=J>>>1;ae<se;){var te=2*(ae+1)-1,fe=F[te],B=te+1,ee=F[B];if(0>i(fe,Q))B<J&&0>i(ee,fe)?(F[ae]=ee,F[B]=Q,ae=B):(F[ae]=fe,F[te]=Q,ae=te);else if(B<J&&0>i(ee,Q))F[ae]=ee,F[B]=Q,ae=B;else break e}}return q}function i(F,q){var Q=F.sortIndex-q.sortIndex;return Q!==0?Q:F.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],g=[],y=1,b=null,k=3,C=!1,w=!1,v=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function $(F){for(var q=a(g);q!==null;){if(q.callback===null)s(g);else if(q.startTime<=F)s(g),q.sortIndex=q.expirationTime,t(f,q);else break;q=a(g)}}function z(F){if(v=!1,$(F),!w)if(a(f)!==null)w=!0,L||(L=!0,oe());else{var q=a(g);q!==null&&Z(z,q.startTime-F)}}var L=!1,I=-1,N=5,D=-1;function P(){return S?!0:!(e.unstable_now()-D<N)}function K(){if(S=!1,L){var F=e.unstable_now();D=F;var q=!0;try{e:{w=!1,v&&(v=!1,E(I),I=-1),C=!0;var Q=k;try{t:{for($(F),b=a(f);b!==null&&!(b.expirationTime>F&&P());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,k=b.priorityLevel;var J=ae(b.expirationTime<=F);if(F=e.unstable_now(),typeof J=="function"){b.callback=J,$(F),q=!0;break t}b===a(f)&&s(f),$(F)}else s(f);b=a(f)}if(b!==null)q=!0;else{var se=a(g);se!==null&&Z(z,se.startTime-F),q=!1}}break e}finally{b=null,k=Q,C=!1}q=void 0}}finally{q?oe():L=!1}}}var oe;if(typeof j=="function")oe=function(){j(K)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,H=V.port2;V.port1.onmessage=K,oe=function(){H.postMessage(null)}}else oe=function(){T(K,0)};function Z(F,q){I=T(function(){F(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<F?Math.floor(1e3/F):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_next=function(F){switch(k){case 1:case 2:case 3:var q=3;break;default:q=k}var Q=k;k=q;try{return F()}finally{k=Q}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(F,q){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var Q=k;k=F;try{return q()}finally{k=Q}},e.unstable_scheduleCallback=function(F,q,Q){var ae=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ae+Q:ae):Q=ae,F){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=Q+J,F={id:y++,callback:q,priorityLevel:F,startTime:Q,expirationTime:J,sortIndex:-1},Q>ae?(F.sortIndex=Q,t(g,F),a(f)===null&&F===a(g)&&(v?(E(I),I=-1):v=!0,Z(z,Q-ae))):(F.sortIndex=J,t(f,F),w||C||(w=!0,L||(L=!0,oe()))),F},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(F){var q=k;return function(){var Q=k;k=q;try{return F.apply(this,arguments)}finally{k=Q}}}})(Vy)),Vy}var Yw;function m7(){return Yw||(Yw=1,Uy.exports=x7()),Uy.exports}var Gy={exports:{}},Ur={};var Xw;function g7(){if(Xw)return Ur;Xw=1;var e=df();function t(y){var b="https://react.dev/errors/"+y;if(1<arguments.length){b+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)b+="&args[]="+encodeURIComponent(arguments[k])}return"Minified React error #"+y+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},i=Symbol.for("react.portal"),c=Symbol.for("react.recoverable"),u=Symbol.for("react.optimistic_key");function d(y,b,k){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:C==null?null:C===u?u:""+C,children:y,containerInfo:b,implementation:k}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(y,b){if(y==="font")return"";if(typeof b=="string")return b==="use-credentials"?b:""}return Ur.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ur.browser=function(y){return{$$typeof:c,_reason:y}},Ur.createPortal=function(y,b){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b||b.nodeType!==1&&b.nodeType!==9&&b.nodeType!==11)throw Error(t(299));return d(y,b,null,k)},Ur.flushSync=function(y){var b=f.T,k=s.p;try{if(f.T=null,s.p=2,y)return y()}finally{f.T=b,s.p=k,s.d.f()}},Ur.preconnect=function(y,b){typeof y=="string"&&(b?(b=b.crossOrigin,b=typeof b=="string"?b==="use-credentials"?b:"":void 0):b=null,s.d.C(y,b))},Ur.prefetchDNS=function(y){typeof y=="string"&&s.d.D(y)},Ur.preinit=function(y,b){if(typeof y=="string"&&b&&typeof b.as=="string"){var k=b.as,C=g(k,b.crossOrigin),w=typeof b.integrity=="string"?b.integrity:void 0,v=typeof b.fetchPriority=="string"?b.fetchPriority:void 0;k==="style"?s.d.S(y,typeof b.precedence=="string"?b.precedence:void 0,{crossOrigin:C,integrity:w,fetchPriority:v}):k==="script"&&s.d.X(y,{crossOrigin:C,integrity:w,fetchPriority:v,nonce:typeof b.nonce=="string"?b.nonce:void 0})}},Ur.preinitModule=function(y,b){if(typeof y=="string")if(typeof b=="object"&&b!==null){if(b.as==null||b.as==="script"){var k=g(b.as,b.crossOrigin);s.d.M(y,{crossOrigin:k,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0})}}else b==null&&s.d.M(y)},Ur.preload=function(y,b){if(typeof y=="string"&&typeof b=="object"&&b!==null&&typeof b.as=="string"){var k=b.as,C=g(k,b.crossOrigin);s.d.L(y,k,{crossOrigin:C,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,type:typeof b.type=="string"?b.type:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0,referrerPolicy:typeof b.referrerPolicy=="string"?b.referrerPolicy:void 0,imageSrcSet:typeof b.imageSrcSet=="string"?b.imageSrcSet:void 0,imageSizes:typeof b.imageSizes=="string"?b.imageSizes:void 0,media:typeof b.media=="string"?b.media:void 0})}},Ur.preloadModule=function(y,b){if(typeof y=="string")if(b){var k=g(b.as,b.crossOrigin);s.d.m(y,{as:typeof b.as=="string"&&b.as!=="script"?b.as:void 0,crossOrigin:k,integrity:typeof b.integrity=="string"?b.integrity:void 0,nonce:typeof b.nonce=="string"?b.nonce:void 0,fetchPriority:typeof b.fetchPriority=="string"?b.fetchPriority:void 0})}else s.d.m(y)},Ur.requestFormReset=function(y){s.d.r(y)},Ur.unstable_batchedUpdates=function(y,b){return y(b)},Ur.useFormState=function(y,b,k){return f.H.useFormState(y,b,k)},Ur.useFormStatus=function(){return f.H.useHostTransitionStatus()},Ur.version="19.3.1",Ur}var Zw;function v3(){if(Zw)return Gy.exports;Zw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Gy.exports=g7(),Gy.exports}var Qw;function y7(){if(Qw)return Ed;Qw=1;var e=m7(),t=df(),a=v3();function s(n){var r="https://react.dev/errors/"+n;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){for(var r=n,o=r;o&&!o.alternate;)r=o,(r.flags&4098)!==0&&(n=r.return),o=r.return;for(;r.return;)r=r.return;return r.tag===3?n:null}function u(n){if(n.tag===13){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function d(n){if(n.tag===31){var r=n.memoizedState;if(r===null&&(n=n.alternate,n!==null&&(r=n.memoizedState)),r!==null)return r.dehydrated}return null}function f(n){if(c(n)!==n)throw Error(s(188))}function g(n){var r=n.alternate;if(!r){if(r=c(n),r===null)throw Error(s(188));return r!==n?null:n}for(var o=n,l=r;;){var h=o.return;if(h===null)break;var m=h.alternate;if(m===null){if(l=h.return,l!==null){o=l;continue}break}if(h.child===m.child){for(m=h.child;m;){if(m===o)return f(h),n;if(m===l)return f(h),r;m=m.sibling}throw Error(s(188))}if(o.return!==l.return)o=h,l=m;else{for(var R=!1,_=h.child;_;){if(_===o){R=!0,o=h,l=m;break}if(_===l){R=!0,l=h,o=m;break}_=_.sibling}if(!R){for(_=m.child;_;){if(_===o){R=!0,o=m,l=h;break}if(_===l){R=!0,l=m,o=h;break}_=_.sibling}if(!R)throw Error(s(189))}}if(o.alternate!==l)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?n:r}function y(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n;for(n=n.child;n!==null;){if(r=y(n),r!==null)return r;n=n.sibling}return null}function b(n,r,o,l,h,m){for(;n!==null;){if((n.tag===5||n.tag===27||n.tag===6)&&o(n,l,h,m)||(n.tag!==22||n.memoizedState===null)&&(r||n.tag!==5&&n.tag!==27)&&b(n.child,r,o,l,h,m))return!0;n=n.sibling}return!1}function k(n){for(n=n.return;n!==null;){if(n.tag===3||n.tag===5||n.tag===27)return n;n=n.return}return null}function C(n){var r=!1;for(n=n.return;n!==null&&(n.tag===4&&(r=!0),!(n.tag===3||n.tag===5||n.tag===27));)n=n.return;return r}function w(n){var r=[null,null],o=k(n);return o===null||v(r,n,o.child,{foundSelf:!1}),r}function v(n,r,o,l){for(;o!==null;){if(o===r)l.foundSelf=!0;else if(o.tag===5||o.tag===27||o.tag===6){if(l.foundSelf)return n[1]=o,!0;n[0]=o}else if((o.tag!==22||o.memoizedState===null)&&v(n,r,o.child,l))return!0;o=o.sibling}return!1}function S(n){switch(n.tag){case 5:case 27:case 6:return n.stateNode;case 3:return n.stateNode.containerInfo;default:throw Error(s(559))}}var T=null,E=null;function j(n,r,o){return n===o?!0:n===r?(T=n,!0):!1}function $(n,r,o){return n===o?(E=n,!1):n===r?(E!==null&&(T=n),!0):!1}function z(n){if(n===null)return null;do n=n===null?null:n.return;while(n&&n.tag!==5&&n.tag!==27&&n.tag!==3);return n||null}function L(n,r,o){for(var l=0,h=n;h;h=o(h))l++;h=0;for(var m=r;m;m=o(m))h++;for(;0<l-h;)n=o(n),l--;for(;0<h-l;)r=o(r),h--;for(;l--;){if(n===r||r!==null&&n===r.alternate)return n;n=o(n),r=o(r)}return null}var I=Object.assign,N=Symbol.for("react.element"),D=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),oe=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),Q=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),te=Symbol.for("react.legacy_hidden"),fe=Symbol.for("react.memo_cache_sentinel"),B=Symbol.for("react.view_transition"),ee=Symbol.for("react.recoverable"),me=Symbol.iterator;function pe(n){return n===null||typeof n!="object"?null:(n=me&&n[me]||n["@@iterator"],typeof n=="function"?n:null)}var ve=Symbol.for("react.client.reference");function ye(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ve?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case K:return"Fragment";case V:return"Profiler";case oe:return"StrictMode";case q:return"Suspense";case Q:return"SuspenseList";case se:return"Activity";case B:return"ViewTransition"}if(typeof n=="object")switch(n.$$typeof){case P:return"Portal";case Z:return n.displayName||"Context";case H:return(n._context.displayName||"Context")+".Consumer";case F:var r=n.render;return n=n.displayName,n||(n=r.displayName||r.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case ae:return r=n.displayName||null,r!==null?r:ye(n.type)||"Memo";case J:r=n._payload,n=n._init;try{return ye(n(r))}catch{}}return null}var Oe=Array.isArray,ie=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$e=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pe={pending:!1,data:null,method:null,action:null},He=[],Ze=-1;function Fe(n){return{current:n}}function Ie(n){0>Ze||(n.current=He[Ze],He[Ze]=null,Ze--)}function at(n,r){Ze++,He[Ze]=n.current,n.current=r}var wt=Fe(null),Nt=Fe(null),gt=Fe(null),st=Fe(null);function Lt(n,r){switch(at(gt,r),at(Nt,n),at(wt,null),r.nodeType){case 9:case 11:n=(n=r.documentElement)&&(n=n.namespaceURI)?J2(n):0;break;default:if(n=r.tagName,r=r.namespaceURI)r=J2(r),n=ew(r,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}Ie(wt),at(wt,n)}function nt(){Ie(wt),Ie(Nt),Ie(gt)}function vt(n){var r=n.memoizedState;r!==null&&(Oc._currentValue=r.memoizedState,at(st,n)),r=wt.current;var o=ew(r,n.type);r!==o&&(at(Nt,n),at(wt,o))}function St(n){Nt.current===n&&(Ie(wt),Ie(Nt)),st.current===n&&(Ie(st),Oc._currentValue=Pe)}var xt,Tt;function Me(n){if(xt===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);xt=r&&r[1]||"",Tt=-1<o.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+xt+n+Tt}var ut=!1;function tn(n,r){if(!n||ut)return"";ut=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(Be){var le=Be}Reflect.construct(n,[],we)}else{try{we.call()}catch(Be){le=Be}we=!1;try{var xe=Object.getOwnPropertyDescriptor(n.prototype,"props");Object.defineProperty(n.prototype,"props",{configurable:!0,set:function(){throw Error()}}),we=!0,new n}finally{we&&(xe!==void 0?Object.defineProperty(n.prototype,"props",xe):delete n.prototype.props)}}}else{try{throw Error()}catch(Be){le=Be}(we=n())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(Be){if(Be&&le&&typeof Be.stack=="string")return[Be.stack,le.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),R=m[0],_=m[1];if(R&&_){var G=R.split(`
5
+ `),de=_.split(`
6
+ `);for(h=l=0;l<G.length&&!G[l].includes("DetermineComponentFrameRoot");)l++;for(;h<de.length&&!de[h].includes("DetermineComponentFrameRoot");)h++;if(l===G.length||h===de.length)for(l=G.length-1,h=de.length-1;1<=l&&0<=h&&G[l]!==de[h];)h--;for(;1<=l&&0<=h;l--,h--)if(G[l]!==de[h]){if(l!==1||h!==1)do if(l--,h--,0>h||G[l]!==de[h]){var ge=`
7
+ `+G[l].replace(" at new "," at ");return n.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",n.displayName)),ge}while(1<=l&&0<=h);break}}}finally{ut=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Me(o):""}function qn(n,r){switch(n.tag){case 26:case 27:case 5:return Me(n.type);case 16:return Me("Lazy");case 13:return n.child!==r&&r!==null?Me("Suspense Fallback"):Me("Suspense");case 19:return Me("SuspenseList");case 0:case 15:return tn(n.type,!1);case 11:return tn(n.type.render,!1);case 1:return tn(n.type,!0);case 31:return Me("Activity");case 30:return Me("ViewTransition");default:return""}}function Mn(n){try{var r="",o=null;do r+=qn(n,o),o=n,n=n.return;while(n);return r}catch(l){return`
8
+ Error generating stack: `+l.message+`
9
+ `+l.stack}}var Qn=Object.prototype.hasOwnProperty,an=e.unstable_scheduleCallback,Hn=e.unstable_cancelCallback,mn=e.unstable_shouldYield,_n=e.unstable_requestPaint,ft=e.unstable_now,Ue=e.unstable_getCurrentPriorityLevel,Cn=e.unstable_ImmediatePriority,bn=e.unstable_UserBlockingPriority,vn=e.unstable_NormalPriority,Lr=e.unstable_LowPriority,Aa=e.unstable_IdlePriority,Dr=e.log,ea=e.unstable_setDisableYieldValue,hr=null,nn=null;function Or(n){if(typeof Dr=="function"&&ea(n),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(hr,n)}catch{}}var Jn=Math.clz32?Math.clz32:Y,er=Math.log,W=Math.LN2;function Y(n){return n>>>=0,n===0?32:31-(er(n)/W|0)|0}var ue=256,be=262144,je=4194304;function Qe(n){var r=n&42;if(r!==0)return r;switch(n&-n){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 n&-n;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Xe(n,r,o){var l=n.pendingLanes;if(l===0)return 0;var h=0,m=n.suspendedLanes,R=n.pingedLanes;n=n.warmLanes;var _=l&134217727;return _!==0?(l=_&~m,l!==0?h=Qe(l):(R&=_,R!==0?h=Qe(R):o||(o=_&~n,o!==0&&(h=Qe(o))))):(_=l&~m,_!==0?h=Qe(_):R!==0?h=Qe(R):o||(o=l&~n,o!==0&&(h=Qe(o)))),h===0?0:r!==0&&r!==h&&(r&m)===0&&(m=h&-h,o=r&-r,m>=o||m===32&&(o&4194048)!==0)?r:h}function ze(n,r){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&r)===0}function qe(n,r){(r&8)!==0&&(r|=r&32);var o=n.entangledLanes;if(o!==0)for(n=n.entanglements,o&=r;0<o;){var l=31-Jn(o),h=1<<l;r|=n[l],o&=~h}return r}function dt(n,r){switch(n){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 rt(){var n=je;return je<<=1,(je&62914560)===0&&(je=4194304),n}function pt(n){for(var r=[],o=0;31>o;o++)r.push(n);return r}function ot(n,r){n.pendingLanes|=r,r!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function Ft(n,r,o,l,h,m){var R=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var _=n.entanglements,G=n.expirationTimes,de=n.hiddenUpdates;for(o=R&~o;0<o;){var ge=31-Jn(o),we=1<<ge;_[ge]=0,G[ge]=-1;var le=de[ge];if(le!==null)for(de[ge]=null,ge=0;ge<le.length;ge++){var xe=le[ge];xe!==null&&(xe.lane&=-536870913)}o&=~we}l!==0&&Zt(n,l,0),m!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=m&~(R&~r))}function Zt(n,r,o){n.pendingLanes|=r,n.suspendedLanes&=~r;var l=31-Jn(r);n.entangledLanes|=r,n.entanglements[l]=n.entanglements[l]|1073741824|o&261930}function ln(n,r){var o=n.entangledLanes|=r;for(n=n.entanglements;o;){var l=31-Jn(o),h=1<<l;h&r|n[l]&r&&(n[l]|=r),o&=~h}}function Vt(n,r){var o=r&-r;return o=(o&42)!==0?1:It(o),(o&(n.suspendedLanes|r))!==0?0:o}function It(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function zn(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Un(){var n=$e.p;return n!==0?n:(n=window.event,n===void 0?32:Iw(n.type))}function ha(n,r){var o=$e.p;try{return $e.p=n,r()}finally{$e.p=o}}var Vn=Math.random().toString(36).slice(2),sn="__reactFiber$"+Vn,kn="__reactProps$"+Vn,Gn="__reactContainer$"+Vn,ar="__reactEvents$"+Vn,$r="__reactListeners$"+Vn,Gr="__reactHandles$"+Vn,bs="__reactResources$"+Vn,pr="__reactMarker$"+Vn,Et="__reactLoad$"+Vn;function wn(n){delete n[sn],delete n[kn],delete n[$r],delete n[Gr]}function Nn(n){var r;if(r=n[sn])return r;for(var o=n.parentNode;o;){if(r=o[Gn]||o[sn]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(n=gw(n);n!==null;){if(o=n[sn])return o;n=gw(n)}return r}n=o,o=n.parentNode}return null}function tr(n){if(n=n[sn]||n[Gn]){var r=n.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return n}return null}function Ma(n){var r=n.tag;if(r===5||r===26||r===27||r===6)return n.stateNode;throw Error(s(33))}function ta(n){var r=n[bs];return r||(r=n[bs]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function kt(n){n[pr]=!0}function pa(n){n[Et]=void 0}var uo=new Set,fo={};function za(n,r){vs(n,r),vs(n+"Capture",r)}function vs(n,r){for(fo[n]=r,n=0;n<r.length;n++)uo.add(r[n])}var Mu=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]*$"),Pi={},Bl={};function zu(n){return Qn.call(Bl,n)?!0:Qn.call(Pi,n)?!1:Mu.test(n)?Bl[n]=!0:(Pi[n]=!0,!1)}var _t=!1;function ho(){var n=_t;return _t=!1,n}function Ho(n,r,o){if(zu(r))if(o===null)n.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(r);return}}n.setAttribute(r,o)}}function ks(n,r,o){if(o===null)n.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(r);return}n.setAttribute(r,o)}}function Ne(n,r,o,l){if(l===null)n.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(r,o,l)}}function Ct(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function na(n){var r=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function ra(n,r,o){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,r);if(!n.hasOwnProperty(r)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var h=l.get,m=l.set;return Object.defineProperty(n,r,{configurable:!0,get:function(){return h.call(this)},set:function(R){o=""+R,m.call(this,R)}}),Object.defineProperty(n,r,{enumerable:l.enumerable}),{getValue:function(){return o},setValue:function(R){o=""+R},stopTracking:function(){n._valueTracker=null,delete n[r]}}}}function Ir(n){if(!n._valueTracker){var r=na(n)?"checked":"value";n._valueTracker=ra(n,r,""+n[r])}}function xr(n){if(!n)return!1;var r=n._valueTracker;if(!r)return!0;var o=r.getValue(),l="";return n&&(l=na(n)?n.checked?"true":"false":n.value),n=l,n!==o?(r.setValue(n),!0):!1}var Bi=/[\n"\\]/g;function _r(n){return n.replace(Bi,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Nu(n,r,o,l,h,m,R,_){n.name="",R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"?n.type=R:n.removeAttribute("type"),r!=null?R==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=""+Ct(r)):n.value!==""+Ct(r)&&(n.value=""+Ct(r)):R!=="submit"&&R!=="reset"||n.removeAttribute("value"),r!=null?R==="number"&&n.value==r?Lu(n,Ct(n.value)):Lu(n,Ct(r)):o!=null?Lu(n,Ct(o)):l!=null&&n.removeAttribute("value"),h==null&&m!=null&&(n.defaultChecked=!!m),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?n.name=""+Ct(_):n.removeAttribute("name")}function Df(n,r,o,l,h,m,R,_){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),r!=null||o!=null){if(!(m!=="submit"&&m!=="reset"||r!=null)){Ir(n);return}o=o!=null?""+Ct(o):"",r=r!=null?""+Ct(r):o,_||r===n.value||(n.value=r),n.defaultValue=r}l=l??h,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=_?n.checked:!!l,n.defaultChecked=!!l,R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(n.name=R),Ir(n)}function Lu(n,r){n.defaultValue!==""+r&&(n.defaultValue=""+r)}function Uo(n,r,o,l){if(n=n.options,r){r={};for(var h=0;h<o.length;h++)r["$"+o[h]]=!0;for(o=0;o<n.length;o++)h=r.hasOwnProperty("$"+n[o].value),n[o].selected!==h&&(n[o].selected=h),h&&l&&(n[o].defaultSelected=!0)}else{for(o=""+Ct(o),r=null,h=0;h<n.length;h++){if(n[h].value===o){n[h].selected=!0,l&&(n[h].defaultSelected=!0);return}r!==null||n[h].disabled||(r=n[h])}r!==null&&(r.selected=!0)}}function Of(n,r,o){if(r!=null&&(r=""+Ct(r),r!==n.value&&(n.value=r),o==null)){n.defaultValue!==r&&(n.defaultValue=r);return}n.defaultValue=o!=null?""+Ct(o):""}function If(n,r,o,l){if(r==null){if(l!=null){if(o!=null)throw Error(s(92));if(Oe(l)){if(1<l.length)throw Error(s(93));l=l[0]}o=l}o==null&&(o=""),r=o}o=Ct(r),n.defaultValue=o,l=n.textContent,l===o&&l!==""&&l!==null&&(n.value=l),Ir(n)}function Le(n,r){if(r){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=r;return}}n.textContent=r}var Bs=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 Du(n,r,o){var l=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?l?n.setProperty(r,""):r==="float"?n.cssFloat="":n[r]="":l?n.setProperty(r,o):typeof o!="number"||o===0||Bs.has(r)?r==="float"?n.cssFloat=o:n[r]=(""+o).trim():n[r]=o+"px"}function Ou(n,r,o){if(r!=null&&typeof r!="object")throw Error(s(62));if(n=n.style,o!=null){for(var l in o)!o.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="",_t=!0);for(var h in r)l=r[h],r.hasOwnProperty(h)&&o[h]!==l&&(Du(n,h,l),_t=!0)}else for(var m in r)r.hasOwnProperty(m)&&Du(n,m,r[m])}function Fl(n){if(n.indexOf("-")===-1)return!1;switch(n){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 Rm=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"],["maskType","mask-type"],["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"]]),Wa=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Vo(n){return Wa.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ya(){}var Fi=null;function mr(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var po=null,xo=null;function Iu(n){var r=tr(n);if(r&&(n=r.stateNode)){var o=n[kn]||null;e:switch(n=r.stateNode,r.type){case"input":if(Nu(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+_r(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var l=o[r];if(l!==n&&l.form===n.form){var h=l[kn]||null;if(!h)throw Error(s(90));Nu(l,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<o.length;r++)l=o[r],l.form===n.form&&xr(l)}break e;case"textarea":Of(n,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&Uo(n,!!o.multiple,r,!1)}}}var ql=!1;function _f(n,r,o){if(ql)return n(r,o);ql=!0;try{var l=n(r);return l}finally{if(ql=!1,(po!==null||xo!==null)&&(Fh(),po&&(r=po,n=xo,xo=po=null,Iu(r),n)))for(r=0;r<n.length;r++)Iu(n[r])}}function Go(n,r){var o=n.stateNode;if(o===null)return null;var l=o[kn]||null;if(l===null)return null;o=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(s(231,r,typeof o));return o}var Xa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hl=!1;if(Xa)try{var Ko={};Object.defineProperty(Ko,"passive",{get:function(){Hl=!0}}),window.addEventListener("test",Ko,Ko),window.removeEventListener("test",Ko,Ko)}catch{Hl=!1}var Ln=null,_u=null,Ul=null;function Pf(){if(Ul)return Ul;var n,r=_u,o=r.length,l,h="value"in Ln?Ln.value:Ln.textContent,m=h.length;for(n=0;n<o&&r[n]===h[n];n++);var R=o-n;for(l=1;l<=R&&r[o-l]===h[m-l];l++);return Ul=h.slice(n,1<l?1-l:void 0)}function Vl(n){var r=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&r===13&&(n=13)):n=r,n===10&&(n=13),32<=n||n===13?n:0}function Gl(){return!0}function Bf(){return!1}function jr(n){function r(o,l,h,m,R){this._reactName=o,this._targetInst=h,this.type=l,this.nativeEvent=m,this.target=R,this.currentTarget=null;for(var _ in n)n.hasOwnProperty(_)&&(o=n[_],this[_]=o?o(m):m[_]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Gl:Bf,this.isPropagationStopped=Bf,this}return I(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),r}var Za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kl=jr(Za),Wo=I({},Za,{view:0,detail:0}),Am=jr(Wo),qi,Kr,Yo,Wl=I({},Wo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:M,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Yo&&(Yo&&n.type==="mousemove"?(qi=n.screenX-Yo.screenX,Kr=n.screenY-Yo.screenY):Kr=qi=0,Yo=n),qi)},movementY:function(n){return"movementY"in n?n.movementY:Kr}}),Ff=jr(Wl),qf=I({},Wl,{dataTransfer:0}),Hf=jr(qf),Uf=I({},Wo,{relatedTarget:0}),Yl=jr(Uf),Vf=I({},Za,{animationName:0,elapsedTime:0,pseudoElement:0}),Hi=jr(Vf),Mm=I({},Za,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Xl=jr(Mm),zm=I({},Za,{data:0}),Gf=jr(zm),Nm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lm={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"},Na={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dm(n){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(n):(n=Na[n])?!!r[n]:!1}function M(){return Dm}var A=I({},Wo,{key:function(n){if(n.key){var r=Nm[n.key]||n.key;if(r!=="Unidentified")return r}return n.type==="keypress"?(n=Vl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Lm[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:M,charCode:function(n){return n.type==="keypress"?Vl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Vl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),O=jr(A),U=I({},Wl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),X=jr(U),ne=I({},Za,{submitter:0}),Ce=jr(ne),Re=I({},Wo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:M}),De=jr(Re),_e=I({},Za,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ve=jr(_e),Ge=I({},Wl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),yt=jr(Ge),ht=I({},Za,{newState:0,oldState:0,source:0}),Tn=jr(ht),Gt=[9,13,27,32],Ae=Xa&&"CompositionEvent"in window,Ke=null;Xa&&"documentMode"in document&&(Ke=document.documentMode);var Ye=Xa&&"TextEvent"in window&&!Ke,it=Xa&&(!Ae||Ke&&8<Ke&&11>=Ke),At=" ",Rt=!1;function Kt(n,r){switch(n){case"keyup":return Gt.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gn(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Sn=!1;function Pt(n,r){switch(n){case"compositionend":return gn(r);case"keypress":return r.which!==32?null:(Rt=!0,At);case"textInput":return n=r.data,n===At&&Rt?null:n;default:return null}}function sr(n,r){if(Sn)return n==="compositionend"||!Ae&&Kt(n,r)?(n=Pf(),Ul=_u=Ln=null,Sn=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return it&&r.locale!=="ko"?null:r.data;default:return null}}var Wr={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 Kn(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r==="input"?!!Wr[n.type]:r==="textarea"}function Fs(n,r,o,l){po?xo?xo.push(l):xo=[l]:po=l,r=Kh(r,"onChange"),0<r.length&&(o=new Kl("onChange","change",null,o,l),n.push({event:o,listeners:r}))}var La=null,ws=null;function Kf(n){K2(n,0)}function Zl(n){var r=Ma(n);if(xr(r))return n}function Ql(n,r){if(n==="change")return r}var Pu=!1;if(Xa){var mo;if(Xa){var Jl="oninput"in document;if(!Jl){var Bu=document.createElement("div");Bu.setAttribute("oninput","return;"),Jl=typeof Bu.oninput=="function"}mo=Jl}else mo=!1;Pu=mo&&(!document.documentMode||9<document.documentMode)}function ec(){La&&(La.detachEvent("onpropertychange",Xo),ws=La=null)}function Xo(n){if(n.propertyName==="value"&&Zl(ws)){var r=[];Fs(r,ws,n,mr(n)),_f(Kf,r)}}function xa(n,r,o){n==="focusin"?(ec(),La=r,ws=o,La.attachEvent("onpropertychange",Xo)):n==="focusout"&&ec()}function qs(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Zl(ws)}function Ui(n,r){if(n==="click")return Zl(r)}function tc(n,r){if(n==="input"||n==="change")return Zl(r)}function Om(n,r){return n===r&&(n!==0||1/n===1/r)||n!==n&&r!==r}var gr=typeof Object.is=="function"?Object.is:Om;function Zo(n,r){if(gr(n,r))return!0;if(typeof n!="object"||n===null||typeof r!="object"||r===null)return!1;var o=Object.keys(n),l=Object.keys(r);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var h=o[l];if(!Qn.call(r,h)||!gr(n[h],r[h]))return!1}return!0}function Vi(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function nc(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function rc(n,r){var o=nc(n);n=0;for(var l;o;){if(o.nodeType===3){if(l=n+o.textContent.length,n<=r&&l>=r)return{node:o,offset:r-n};n=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=nc(o)}}function Fu(n,r){return n&&r?n===r?!0:n&&n.nodeType===3?!1:r&&r.nodeType===3?Fu(n,r.parentNode):"contains"in n?n.contains(r):n.compareDocumentPosition?!!(n.compareDocumentPosition(r)&16):!1:!1}function ac(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var r=Vi(n.document);r instanceof n.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)n=r.contentWindow;else break;r=Vi(n.document)}return r}function sc(n){var r=n&&n.nodeName&&n.nodeName.toLowerCase();return r&&(r==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||r==="textarea"||n.contentEditable==="true")}var Gi=Xa&&"documentMode"in document&&11>=document.documentMode,Hs=null,Ki=null,go=null,qu=!1;function Hu(n,r,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;qu||Hs==null||Hs!==Vi(l)||(l=Hs,"selectionStart"in l&&sc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),go&&Zo(go,l)||(go=l,l=Kh(Ki,"onSelect"),0<l.length&&(r=new Kl("onSelect","select",null,r,o),n.push({event:r,listeners:l}),r.target=Hs)))}function Wi(n,r){var o={};return o[n.toLowerCase()]=r.toLowerCase(),o["Webkit"+n]="webkit"+r,o["Moz"+n]="moz"+r,o}var oc={animationend:Wi("Animation","AnimationEnd"),animationiteration:Wi("Animation","AnimationIteration"),animationstart:Wi("Animation","AnimationStart"),transitionrun:Wi("Transition","TransitionRun"),transitionstart:Wi("Transition","TransitionStart"),transitioncancel:Wi("Transition","TransitionCancel"),transitionend:Wi("Transition","TransitionEnd")},Im={},gv={};Xa&&(gv=document.createElement("div").style,"AnimationEvent"in window||(delete oc.animationend.animation,delete oc.animationiteration.animation,delete oc.animationstart.animation),"TransitionEvent"in window||delete oc.transitionend.transition);function Yi(n){if(Im[n])return Im[n];if(!oc[n])return n;var r=oc[n],o;for(o in r)if(r.hasOwnProperty(o)&&o in gv)return Im[n]=r[o];return n}var yv=Yi("animationend"),bv=Yi("animationiteration"),vv=Yi("animationstart"),b6=Yi("transitionrun"),v6=Yi("transitionstart"),k6=Yi("transitioncancel"),kv=Yi("transitionend"),wv=new Map,_m="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");_m.push("scrollEnd");function Ss(n,r){wv.set(n,r),za(r,[n])}var w6=0;function yo(n,r){if(n.name!=null&&n.name!=="auto")return n.name;if(r.autoName!==null)return r.autoName;n=js.identifierPrefix;var o=w6++;return n="_"+n+"t_"+o.toString(32)+"_",r.autoName=n}function Sv(n){if(n==null||typeof n=="string")return n;var r=null,o=$c;if(o!==null)for(var l=0;l<o.length;l++){var h=n[o[l]];if(h!=null){if(h==="none")return"none";r=r==null?h:r+(" "+h)}}return r??n.default}function bo(n,r){return n=Sv(n),r=Sv(r),r==null?n==="auto"?null:n:r==="auto"?null:r}var Wf=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Qa=[],ic=0,Pm=0;function Yf(){for(var n=ic,r=Pm=ic=0;r<n;){var o=Qa[r];Qa[r++]=null;var l=Qa[r];Qa[r++]=null;var h=Qa[r];Qa[r++]=null;var m=Qa[r];if(Qa[r++]=null,l!==null&&h!==null){var R=l.pending;R===null?h.next=h:(h.next=R.next,R.next=h),l.pending=h}m!==0&&Ev(o,h,m)}}function Xf(n,r,o,l){Qa[ic++]=n,Qa[ic++]=r,Qa[ic++]=o,Qa[ic++]=l,Pm|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Bm(n,r,o,l){return Xf(n,r,o,l),Zf(n)}function Xi(n,r){return Xf(n,null,null,r),Zf(n)}function Ev(n,r,o){n.lanes|=o;var l=n.alternate;l!==null&&(l.lanes|=o);for(var h=!1,m=n.return;m!==null;)m.childLanes|=o,l=m.alternate,l!==null&&(l.childLanes|=o),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(h=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,h&&r!==null&&(h=31-Jn(o),n=m.hiddenUpdates,l=n[h],l===null?n[h]=[r]:l.push(r),r.lane=o|536870912),m):null}function Zf(n){if(50<dd)throw dd=0,Bh=null,Error(s(185));for(var r=n.return;r!==null;)n=r,r=n.return;return n.tag===3?n.stateNode:null}var lc={};function S6(n,r,o,l){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ma(n,r,o,l){return new S6(n,r,o,l)}function Fm(n){return n=n.prototype,!(!n||!n.isReactComponent)}function vo(n,r){var o=n.alternate;return o===null?(o=ma(n.tag,r,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=r,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&1206910976,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,r=n.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function Cv(n,r){n.flags&=1206910978;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=r,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,r=o.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),n}function Qf(n,r,o,l,h,m){var R=0;if(l=n,typeof l=="function")Fm(l)&&(R=1);else if(typeof l=="string")R=Z8(n,o,wt.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(l){case se:return n=ma(31,o,r,h),n.elementType=se,n.lanes=m,n;case K:return Zi(o.children,h,m,r);case oe:R=8,h|=24;break;case V:return n=ma(12,o,r,h|2),n.elementType=V,n.lanes=m,n;case q:return n=ma(13,o,r,h),n.elementType=q,n.lanes=m,n;case Q:return n=ma(19,o,r,h),n.elementType=Q,n.lanes=m,n;case te:case B:return n=h|32,n=ma(30,o,r,n),n.elementType=B,n.lanes=m,n.stateNode={autoName:null,paired:null,clones:null,ref:null},n;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case Z:R=10;break e;case H:R=9;break e;case F:R=11;break e;case ae:R=14;break e;case J:R=16,l=null;break e}R=29,o=Error(s(130,n===null?"null":typeof n,"")),l=null}return r=ma(R,o,r,h),r.elementType=n,r.type=l,r.lanes=m,r}function Zi(n,r,o,l){return n=ma(7,n,l,r),n.lanes=o,n}function qm(n,r,o){return n=ma(6,n,null,r),n.lanes=o,n}function $v(n){var r=ma(18,null,null,0);return r.stateNode=n,r}function Hm(n,r,o){return r=ma(4,n.children!==null?n.children:[],n.key,r),r.lanes=o,r.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},r}var jv=new WeakMap;function Ja(n,r){if(typeof n=="object"&&n!==null){var o=jv.get(n);return o!==void 0?o:(r={value:n,source:r,stack:Mn(r)},jv.set(n,r),r)}return{value:n,source:r,stack:Mn(r)}}var cc=[],uc=0,Jf=null,Uu=0,es=[],ts=0,Qo=null,Us=1,Vs="";function ko(n,r){cc[uc++]=Uu,cc[uc++]=Jf,Jf=n,Uu=r}function Tv(n,r,o){es[ts++]=Us,es[ts++]=Vs,es[ts++]=Qo,Qo=n;var l=Us;n=Vs;var h=32-Jn(l)-1;l&=~(1<<h),o+=1;var m=32-Jn(r)+h;if(30<m){var R=h-h%5;m=(l&(1<<R)-1).toString(32),l>>=R,h-=R,Us=1<<32-Jn(r)+h|o<<h|l,Vs=m+n}else Us=1<<m|o<<h|l,Vs=n}function eh(n){n.return!==null&&(ko(n,1),Tv(n,1,0))}function Um(n){for(;n===Jf;)Jf=cc[--uc],cc[uc]=null,Uu=cc[--uc],cc[uc]=null;for(;n===Qo;)Qo=es[--ts],es[ts]=null,Vs=es[--ts],es[ts]=null,Us=es[--ts],es[ts]=null}function Rv(n,r){es[ts++]=Us,es[ts++]=Vs,es[ts++]=Qo,Us=r.id,Vs=r.overflow,Qo=n}var Tr=null,$n=null,Ot=!1,Jo=null,ns=!1,Vm=Error(s(519));function ei(n){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vu(Ja(r,n)),Vm}function Av(n){var r=n.stateNode,o=n.type,l=n.memoizedProps;switch(r[sn]=n,r[kn]=l,o){case"dialog":Ht("cancel",r),Ht("close",r);break;case"iframe":case"object":case"embed":Ht("load",r);break;case"video":case"audio":for(o=0;o<hd.length;o++)Ht(hd[o],r);break;case"source":Ht("error",r);break;case"img":case"image":case"link":Ht("error",r),Ht("load",r);break;case"details":Ht("toggle",r);break;case"input":Ht("invalid",r),Df(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ht("invalid",r);break;case"textarea":Ht("invalid",r),If(r,l.value,l.defaultValue,l.children)}o=l.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||l.suppressHydrationWarning===!0||Z2(r.textContent,o)?(l.popover!=null&&(Ht("beforetoggle",r),Ht("toggle",r)),l.onScroll!=null&&Ht("scroll",r),l.onScrollEnd!=null&&Ht("scrollend",r),l.onClick!=null&&(r.onclick=Ya),r=!0):r=!1,r||ei(n,!0)}function th(n){for(Tr=n.return;Tr;)switch(Tr.tag){case 5:case 31:case 13:ns=!1;return;case 27:case 3:ns=!0;return;default:Tr=Tr.return}}function dc(n){if(n!==Tr)return!1;if(!Ot)return th(n),Ot=!0,!1;var r=n.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||ky(n.type,n.memoizedProps)),o=!o),o&&$n&&ei(n),th(n),r===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));$n=mw(n)}else if(r===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));$n=mw(n)}else r===27?(r=$n,mi(n.type)?(n=Ay,Ay=null,$n=n):$n=r):$n=Tr?as(n.stateNode.nextSibling):null;return!0}function Qi(){$n=Tr=null,Ot=!1}function Gm(){var n=Jo;return n!==null&&(ba===null?ba=n:ba.push.apply(ba,n),Jo=null),n}function Vu(n){Jo===null?Jo=[n]:Jo.push(n)}var Km=Fe(null),Ji=null,wo=null;function ti(n,r,o){at(Km,r._currentValue),r._currentValue=o}function So(n){n._currentValue=Km.current,Ie(Km)}function nh(n,r,o){for(;n!==null;){var l=n.alternate;if((n.childLanes&r)!==r?(n.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),n===o)break;n=n.return}}function Wm(n,r,o,l){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var m=h.dependencies;if(m!==null){var R=h.child;m=m.firstContext;e:for(;m!==null;){var _=m;m=h;for(var G=0;G<r.length;G++)if(_.context===r[G]){m.lanes|=o,_=m.alternate,_!==null&&(_.lanes|=o),nh(m.return,o,n),l||(R=null);break e}m=_.next}}else if(h.tag===18){if(R=h.return,R===null)throw Error(s(341));R.lanes|=o,m=R.alternate,m!==null&&(m.lanes|=o),nh(R,o,n),R=null}else h.tag===13&&h.memoizedState!==null&&h.memoizedState.dehydrated===null?(h.lanes|=o,R=h.alternate,R!==null&&(R.lanes|=o),nh(h.return,o,n),R=h.child,R=R!==null?R.sibling:null):R=h.child;if(R!==null)R.return=h;else for(R=h;R!==null;){if(R===n){R=null;break}if(h=R.sibling,h!==null){h.return=R.return,R=h;break}R=R.return}h=R}}function el(n,r,o,l){n=null;for(var h=r,m=!1;h!==null;){if(!m){if((h.flags&524288)!==0)m=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var R=h.alternate;if(R===null)throw Error(s(387));if(R=R.memoizedProps,R!==null){var _=h.type;gr(h.pendingProps.value,R.value)||(n!==null?n.push(_):n=[_])}}else if(h===st.current){if(R=h.alternate,R===null)throw Error(s(387));R.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(Oc):n=[Oc])}h=h.return}return n!==null&&Wm(r,n,o,l),r.flags|=262144,n!==null}function rh(n){for(n=n.firstContext;n!==null;){if(!gr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function tl(n){Ji=n,wo=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Pr(n){return Mv(Ji,n)}function ah(n,r){return Ji===null&&tl(n),Mv(n,r)}function Mv(n,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},wo===null){if(n===null)throw Error(s(308));wo=r,n.dependencies={lanes:0,firstContext:r},n.flags|=524288}else wo=wo.next=r;return o}var E6=typeof AbortController<"u"?AbortController:function(){var n=[],r=this.signal={aborted:!1,addEventListener:function(o,l){n.push(l)}};this.abort=function(){r.aborted=!0,n.forEach(function(o){return o()})}},C6=e.unstable_scheduleCallback,$6=e.unstable_NormalPriority,or={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ym(){return{controller:new E6,data:new Map,refCount:0}}function Gu(n){n.refCount--,n.refCount===0&&C6($6,function(){n.controller.abort()})}function zv(n,r){if((n.pendingLanes&4194048)!==0){var o=n.transitionTypes;for(o===null&&(o=n.transitionTypes=[]),n=0;n<r.length;n++){var l=r[n];o.indexOf(l)===-1&&o.push(l)}}}var Ku=null;function j6(n){var r=n.transitionTypes;return n.transitionTypes=null,r}var Wu=null,Xm=0,nl=0,fc=null;function T6(n,r){if(Wu===null){var o=Wu=[];Xm=0,nl=fy(),fc={status:"pending",value:void 0,then:function(l){o.push(l)}}}return Xm++,r.then(Nv,Nv),r}function Nv(){if(--Xm===0&&(Ku=null,Wu!==null)){fc!==null&&(fc.status="fulfilled");var n=Wu;Wu=null,nl=0,fc=null;for(var r=0;r<n.length;r++)(0,n[r])()}}function R6(n,r){var o=[],l={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return n.then(function(){l.status="fulfilled",l.value=r;for(var h=0;h<o.length;h++)(0,o[h])(r)},function(h){for(l.status="rejected",l.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),l}var Lv=ie.S;ie.S=function(n,r){if($2=ft(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&T6(n,r),Ku!==null)for(var o=Ac;o!==null;)zv(o,Ku),o=o.next;if(o=n.types,o!==null){for(var l=Ac;l!==null;)zv(l,o),l=l.next;if(nl!==0){l=Ku,l===null&&(l=Ku=[]);for(var h=0;h<o.length;h++){var m=o[h];l.indexOf(m)===-1&&l.push(m)}}}Lv!==null&&Lv(n,r)};var rl=Fe(null);function Zm(){var n=rl.current;return n!==null?n:En.pooledCache}function sh(n,r){r===null?at(rl,rl.current):at(rl,r.pool)}function Dv(){var n=Zm();return n===null?null:{parent:or._currentValue,pool:n}}var hc=Error(s(460)),Qm=Error(s(474)),oh=Error(s(542)),ih={then:function(){}};function Ov(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Iv(n,r,o){switch(o=n[o],o===void 0?n.push(r):o!==r&&(r.then(Ya,Ya),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,Pv(n),n===void 0&&!("reason"in r)?Error(s(600)):n;default:if(typeof r.status=="string")r.then(Ya,Ya);else{if(n=En,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=r,n.status="pending",n.then(function(l){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=l}},function(l){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw n=r.reason,Pv(n),n}throw sl=r,hc}}function al(n){try{var r=n._init;return r(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(sl=o,hc):o}}var sl=null;function _v(){if(sl===null)throw Error(s(459));var n=sl;return sl=null,n}function Pv(n){if(n===hc||n===oh)throw Error(s(483))}var pc=null,Yu=0;function lh(n){var r=Yu;return Yu+=1,pc===null&&(pc=[]),Iv(pc,n,r)}function ni(n,r){r=r.props.ref,n.ref=r!==void 0?r:null}function ch(n,r){throw r.$$typeof===N?Error(s(525)):(n=Object.prototype.toString.call(r),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":n)))}function Bv(n){function r(ce,re){if(n){var he=ce.deletions;he===null?(ce.deletions=[re],ce.flags|=16):he.push(re)}}function o(ce,re){if(!n)return null;for(;re!==null;)r(ce,re),re=re.sibling;return null}function l(ce){for(var re=new Map;ce!==null;)ce.key===null?re.set(ce.index,ce):re.set(ce.key,ce),ce=ce.sibling;return re}function h(ce,re){return ce=vo(ce,re),ce.index=0,ce.sibling=null,ce}function m(ce,re,he){return ce.index=he,n?(he=ce.alternate,he!==null?(he=he.index,he<re?(ce.flags|=2,re):he):(ce.flags|=134217730,re)):(ce.flags|=1048576,re)}function R(ce){return n&&ce.alternate===null&&(ce.flags|=134217730),ce}function _(ce,re,he,ke){return re===null||re.tag!==6?(re=qm(he,ce.mode,ke),re.return=ce,re):(re=h(re,he),re.return=ce,re)}function G(ce,re,he,ke){var Je=he.type;return Je===K?(ce=ge(ce,re,he.props.children,ke,he.key),ni(ce,he),ce):re!==null&&(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===J&&al(Je)===re.type)?(re=h(re,he.props),ni(re,he),re.return=ce,re):(re=Qf(he.type,he.key,he.props,null,ce.mode,ke),ni(re,he),re.return=ce,re)}function de(ce,re,he,ke){return re===null||re.tag!==4||re.stateNode.containerInfo!==he.containerInfo||re.stateNode.implementation!==he.implementation?(re=Hm(he,ce.mode,ke),re.return=ce,re):(re=h(re,he.children||[]),re.return=ce,re)}function ge(ce,re,he,ke,Je){return re===null||re.tag!==7?(re=Zi(he,ce.mode,ke,Je),re.return=ce,re):(re=h(re,he),re.return=ce,re)}function we(ce,re,he){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=qm(""+re,ce.mode,he),re.return=ce,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case D:return he=Qf(re.type,re.key,re.props,null,ce.mode,he),ni(he,re),he.return=ce,he;case P:return re=Hm(re,ce.mode,he),re.return=ce,re;case J:return re=al(re),we(ce,re,he)}if(Oe(re)||pe(re))return re=Zi(re,ce.mode,he,null),re.return=ce,re;if(typeof re.then=="function")return we(ce,lh(re),he);if(re.$$typeof===Z)return we(ce,ah(ce,re),he);ch(ce,re)}return null}function le(ce,re,he,ke){var Je=re!==null?re.key:null;if(typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint")return Je!==null?null:_(ce,re,""+he,ke);if(typeof he=="object"&&he!==null){switch(he.$$typeof){case D:return he.key===Je?G(ce,re,he,ke):null;case P:return he.key===Je?de(ce,re,he,ke):null;case J:return he=al(he),le(ce,re,he,ke)}if(Oe(he)||pe(he))return Je!==null?null:ge(ce,re,he,ke,null);if(typeof he.then=="function")return le(ce,re,lh(he),ke);if(he.$$typeof===Z)return le(ce,re,ah(ce,he),ke);ch(ce,he)}return null}function xe(ce,re,he,ke,Je){if(typeof ke=="string"&&ke!==""||typeof ke=="number"||typeof ke=="bigint")return ce=ce.get(he)||null,_(re,ce,""+ke,Je);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case D:return ce=ce.get(ke.key===null?he:ke.key)||null,G(re,ce,ke,Je);case P:return ce=ce.get(ke.key===null?he:ke.key)||null,de(re,ce,ke,Je);case J:return ke=al(ke),xe(ce,re,he,ke,Je)}if(Oe(ke)||pe(ke))return ce=ce.get(he)||null,ge(re,ce,ke,Je,null);if(typeof ke.then=="function")return xe(ce,re,he,lh(ke),Je);if(ke.$$typeof===Z)return xe(ce,re,he,ah(re,ke),Je);ch(re,ke)}return null}function Be(ce,re,he,ke){for(var Je=null,Yt=null,lt=re,mt=re=0,cr=null;lt!==null&&mt<he.length;mt++){lt.index>mt?(cr=lt,lt=null):cr=lt.sibling;var Qt=le(ce,lt,he[mt],ke);if(Qt===null){lt===null&&(lt=cr);break}n&&lt&&Qt.alternate===null&&r(ce,lt),re=m(Qt,re,mt),Yt===null?Je=Qt:Yt.sibling=Qt,Yt=Qt,lt=cr}if(mt===he.length)return o(ce,lt),Ot&&ko(ce,mt),Je;if(lt===null){for(;mt<he.length;mt++)lt=we(ce,he[mt],ke),lt!==null&&(re=m(lt,re,mt),Yt===null?Je=lt:Yt.sibling=lt,Yt=lt);return Ot&&ko(ce,mt),Je}for(lt=l(lt);mt<he.length;mt++)cr=xe(lt,ce,mt,he[mt],ke),cr!==null&&(n&&(Qt=cr.alternate,Qt!==null&&lt.delete(Qt.key===null?mt:Qt.key)),re=m(cr,re,mt),Yt===null?Je=cr:Yt.sibling=cr,Yt=cr);return n&&lt.forEach(function(ki){return r(ce,ki)}),Ot&&ko(ce,mt),Je}function et(ce,re,he,ke){if(he==null)throw Error(s(151));for(var Je=null,Yt=null,lt=re,mt=re=0,cr=null,Qt=he.next();lt!==null&&!Qt.done;mt++,Qt=he.next()){lt.index>mt?(cr=lt,lt=null):cr=lt.sibling;var ki=le(ce,lt,Qt.value,ke);if(ki===null){lt===null&&(lt=cr);break}n&&lt&&ki.alternate===null&&r(ce,lt),re=m(ki,re,mt),Yt===null?Je=ki:Yt.sibling=ki,Yt=ki,lt=cr}if(Qt.done)return o(ce,lt),Ot&&ko(ce,mt),Je;if(lt===null){for(;!Qt.done;mt++,Qt=he.next())Qt=we(ce,Qt.value,ke),Qt!==null&&(re=m(Qt,re,mt),Yt===null?Je=Qt:Yt.sibling=Qt,Yt=Qt);return Ot&&ko(ce,mt),Je}for(lt=l(lt);!Qt.done;mt++,Qt=he.next())Qt=xe(lt,ce,mt,Qt.value,ke),Qt!==null&&(n&&(cr=Qt.alternate,cr!==null&&lt.delete(cr.key===null?mt:cr.key)),re=m(Qt,re,mt),Yt===null?Je=Qt:Yt.sibling=Qt,Yt=Qt);return n&&lt.forEach(function(c7){return r(ce,c7)}),Ot&&ko(ce,mt),Je}function zt(ce,re,he,ke){if(typeof he=="object"&&he!==null&&he.type===K&&he.key===null&&he.props.ref===void 0&&(he=he.props.children),typeof he=="object"&&he!==null){switch(he.$$typeof){case D:e:{for(var Je=he.key;re!==null;){if(re.key===Je){if(Je=he.type,Je===K){if(re.tag===7){o(ce,re.sibling),ke=h(re,he.props.children),ni(ke,he),ke.return=ce,ce=ke;break e}}else if(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===J&&al(Je)===re.type){o(ce,re.sibling),ke=h(re,he.props),ni(ke,he),ke.return=ce,ce=ke;break e}o(ce,re);break}else r(ce,re);re=re.sibling}he.type===K?(ke=Zi(he.props.children,ce.mode,ke,he.key),ni(ke,he),ke.return=ce,ce=ke):(ke=Qf(he.type,he.key,he.props,null,ce.mode,ke),ni(ke,he),ke.return=ce,ce=ke)}return R(ce);case P:e:{for(Je=he.key;re!==null;){if(re.key===Je)if(re.tag===4&&re.stateNode.containerInfo===he.containerInfo&&re.stateNode.implementation===he.implementation){o(ce,re.sibling),ke=h(re,he.children||[]),ke.return=ce,ce=ke;break e}else{o(ce,re);break}else r(ce,re);re=re.sibling}ke=Hm(he,ce.mode,ke),ke.return=ce,ce=ke}return R(ce);case J:return he=al(he),zt(ce,re,he,ke)}if(Oe(he))return Be(ce,re,he,ke);if(pe(he)){if(Je=pe(he),typeof Je!="function")throw Error(s(150));return he=Je.call(he),et(ce,re,he,ke)}if(typeof he.then=="function")return zt(ce,re,lh(he),ke);if(he.$$typeof===Z)return zt(ce,re,ah(ce,he),ke);ch(ce,he)}return typeof he=="string"&&he!==""||typeof he=="number"||typeof he=="bigint"?(he=""+he,re!==null&&re.tag===6?(o(ce,re.sibling),ke=h(re,he),ke.return=ce,ce=ke):(o(ce,re),ke=qm(he,ce.mode,ke),ke.return=ce,ce=ke),R(ce)):o(ce,re)}return function(ce,re,he,ke){try{Yu=0;var Je=zt(ce,re,he,ke);return pc=null,Je}catch(lt){if(lt===hc||lt===oh)throw lt;var Yt=ma(29,lt,null,ce.mode);return Yt.lanes=ke,Yt.return=ce,Yt}}}var ol=Bv(!0),Fv=Bv(!1),ri=!1;function Jm(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function eg(n,r){n=n.updateQueue,r.updateQueue===n&&(r.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ai(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function si(n,r,o){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(rn&2)!==0){var h=l.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),l.pending=r,r=Zf(n),Ev(n,null,o),r}return Xf(n,l,r,o),Zf(n)}function Xu(n,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var l=r.lanes;l&=n.pendingLanes,o|=l,r.lanes=o,ln(n,o)}}function tg(n,r){var o=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var h=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var R={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};m===null?h=m=R:m=m.next=R,o=o.next}while(o!==null);m===null?h=m=r:m=m.next=r}else h=m=r;o={baseState:l.baseState,firstBaseUpdate:h,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=r:n.next=r,o.lastBaseUpdate=r}var ng=!1;function Zu(){if(ng){var n=fc;if(n!==null)throw n}}function Qu(n,r,o,l){ng=!1;var h=n.updateQueue;ri=!1;var m=h.firstBaseUpdate,R=h.lastBaseUpdate,_=h.shared.pending;if(_!==null){h.shared.pending=null;var G=_,de=G.next;G.next=null,R===null?m=de:R.next=de,R=G;var ge=n.alternate;ge!==null&&(ge=ge.updateQueue,_=ge.lastBaseUpdate,_!==R&&(_===null?ge.firstBaseUpdate=de:_.next=de,ge.lastBaseUpdate=G))}if(m!==null){var we=h.baseState;R=0,ge=de=G=null,_=m;do{var le=_.lane&-536870913,xe=le!==_.lane;if(xe?(Wt&le)===le:(l&le)===le){le!==0&&le===nl&&(ng=!0),ge!==null&&(ge=ge.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{var Be=n,et=_;le=r;var zt=o;switch(et.tag){case 1:if(Be=et.payload,typeof Be=="function"){we=Be.call(zt,we,le);break e}we=Be;break e;case 3:Be.flags=Be.flags&-65537|128;case 0:if(Be=et.payload,le=typeof Be=="function"?Be.call(zt,we,le):Be,le==null)break e;we=I({},we,le);break e;case 2:ri=!0}}le=_.callback,le!==null&&(n.flags|=64,xe&&(n.flags|=8192),xe=h.callbacks,xe===null?h.callbacks=[le]:xe.push(le))}else xe={lane:le,tag:_.tag,payload:_.payload,callback:_.callback,next:null},ge===null?(de=ge=xe,G=we):ge=ge.next=xe,R|=le;if(_=_.next,_===null){if(_=h.shared.pending,_===null)break;xe=_,_=xe.next,xe.next=null,h.lastBaseUpdate=xe,h.shared.pending=null}}while(!0);ge===null&&(G=we),h.baseState=G,h.firstBaseUpdate=de,h.lastBaseUpdate=ge,m===null&&(h.shared.lanes=0),fi|=R,n.lanes=R,n.memoizedState=we}}function qv(n,r){if(typeof n!="function")throw Error(s(191,n));n.call(r)}function Hv(n,r){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)qv(o[n],r)}var oi=Fe(null),uh=Fe(0);function Uv(n,r){n=To,at(uh,n),at(oi,r),To=n|r.baseLanes}function rg(){at(uh,To),at(oi,oi.current)}function ag(){To=uh.current,Ie(oi),Ie(uh)}var Br=Fe(null),Yr=null;function ii(n){var r=n.alternate;at(Fr,Fr.current&1),at(Br,n),Yr===null&&(r===null||oi.current!==null||r.memoizedState!==null)&&(Yr=n)}function sg(n){at(Fr,Fr.current),at(Br,n),Yr===null&&(Yr=n)}function Vv(n){n.tag===22?(at(Fr,Fr.current),at(Br,n),Yr===null&&(Yr=n)):li()}function li(){at(Fr,Fr.current),at(Br,Br.current)}function Da(n){Ie(Br),Yr===n&&(Yr=null),Ie(Fr)}var Fr=Fe(0);function Ju(n,r){at(Br,Br.current),at(Fr,r)}function og(n){Ie(Fr),Ie(Br),Yr===n&&(Yr=null)}function dh(n){for(var r=n;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||Ty(o)||Ry(o)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!=="independent"){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var Eo=0,Mt=null,yn=null,ir=null,fh=!1,xc=!1,il=!1,hh=0,ed=0,mc=null,A6=0;function Wn(){throw Error(s(321))}function ig(n,r){if(r===null)return!1;for(var o=0;o<r.length&&o<n.length;o++)if(!gr(n[o],r[o]))return!1;return!0}function lg(n,r,o,l,h,m){return Eo=m,Mt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,ie.H=n===null||n.memoizedState===null?Tk:Rk,il=!1,m=o(l,h),il=!1,xc&&(m=Kv(r,o,l,h)),Gv(n),m}function Gv(n){ie.H=vh;var r=yn!==null&&yn.next!==null;if(Eo=0,ir=yn=Mt=null,fh=!1,ed=0,mc=null,r)throw Error(s(300));n===null||lr||(n=n.dependencies,n!==null&&rh(n)&&(lr=!0))}function Kv(n,r,o,l){Mt=n;var h=0;do{if(xc&&(mc=null),ed=0,xc=!1,25<=h)throw Error(s(301));if(h+=1,ir=yn=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}ie.H=_6,m=r(o,l)}while(xc);return m}function M6(){var n=ie.H,r=n.useState()[0];return r=typeof r.then=="function"?td(r):r,n=n.useState()[0],(yn!==null?yn.memoizedState:null)!==n&&(Mt.flags|=1024),r}function cg(){var n=hh!==0;return hh=0,n}function ug(n,r,o){r.updateQueue=n.updateQueue,r.flags&=-2053,n.lanes&=~o}function dg(n){if(fh){for(n=n.memoizedState;n!==null;){var r=n.queue;r!==null&&(r.pending=null),n=n.next}fh=!1}Eo=0,ir=yn=Mt=null,xc=!1,ed=hh=0,mc=null}function aa(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ir===null?Mt.memoizedState=ir=n:ir=ir.next=n,ir}function nr(){if(yn===null){var n=Mt.alternate;n=n!==null?n.memoizedState:null}else n=yn.next;var r=ir===null?Mt.memoizedState:ir.next;if(r!==null)ir=r,yn=n;else{if(n===null)throw Mt.alternate===null?Error(s(467)):Error(s(310));yn=n,n={memoizedState:yn.memoizedState,baseState:yn.baseState,baseQueue:yn.baseQueue,queue:yn.queue,next:null},ir===null?Mt.memoizedState=ir=n:ir=ir.next=n}return ir}function ph(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function td(n){var r=ed;return ed+=1,mc===null&&(mc=[]),n=Iv(mc,n,r),r=Mt,(ir===null?r.memoizedState:ir.next)===null&&(r=r.alternate,ie.H=r===null||r.memoizedState===null?Tk:Rk),n}function xh(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return td(n);if(n.$$typeof===ee)return;if(n.$$typeof===Z)return Pr(n)}throw Error(s(438,String(n)))}function fg(n){var r=null,o=Mt.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var l=Mt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=ph(),Mt.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(n),l=0;l<n;l++)o[l]=fe;return r.index++,o}function Co(n,r){return typeof r=="function"?r(n):r}function mh(n){var r=nr();return hg(r,yn,n)}function hg(n,r,o){var l=n.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=o;var h=n.baseQueue,m=l.pending;if(m!==null){if(h!==null){var R=h.next;h.next=m.next,m.next=R}r.baseQueue=h=m,l.pending=null}if(m=n.baseState,h===null)n.memoizedState=m;else{r=h.next;var _=R=null,G=null,de=r,ge=!1;do{var we=de.lane&-536870913;if(we!==de.lane?(Wt&we)===we:(Eo&we)===we){var le=de.revertLane;if(le===0)G!==null&&(G=G.next={lane:0,revertLane:0,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null}),we===nl&&(ge=!0);else if((Eo&le)===le){de=de.next,le===nl&&(ge=!0);continue}else we={lane:0,revertLane:de.revertLane,gesture:null,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},G===null?(_=G=we,R=m):G=G.next=we,Mt.lanes|=le,fi|=le;we=de.action,il&&o(m,we),m=de.hasEagerState?de.eagerState:o(m,we)}else le={lane:we,revertLane:de.revertLane,gesture:de.gesture,action:de.action,hasEagerState:de.hasEagerState,eagerState:de.eagerState,next:null},G===null?(_=G=le,R=m):G=G.next=le,Mt.lanes|=we,fi|=we;de=de.next}while(de!==null&&de!==r);if(G===null?R=m:G.next=_,!gr(m,n.memoizedState)&&(lr=!0,ge&&(o=fc,o!==null)))throw o;n.memoizedState=m,n.baseState=R,n.baseQueue=G,l.lastRenderedState=m}return h===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function pg(n){var r=nr(),o=r.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=n;var l=o.dispatch,h=o.pending,m=r.memoizedState;if(h!==null){o.pending=null;var R=h=h.next;do m=n(m,R.action),R=R.next;while(R!==h);gr(m,r.memoizedState)||(lr=!0),r.memoizedState=m,r.baseQueue===null&&(r.baseState=m),o.lastRenderedState=m}return[m,l]}function Wv(n,r,o){var l=Mt,h=nr(),m=Ot;if(m){if(o===void 0)throw Error(s(407));o=o()}else o=r();var R=!gr((yn||h).memoizedState,o);if(R&&(h.memoizedState=o,lr=!0),h=h.queue,gg(Zv.bind(null,l,h,n),[n]),n=h.getSnapshot!==r||R||ir!==null&&(ir.memoizedState.tag&1)!==0,gc(n?9:8,{destroy:void 0},Xv.bind(null,l,h,o,r),null),n){if(l.flags|=2048,En===null)throw Error(s(349));m||(Eo&127)!==0||Yv(l,r,o)}return o}function Yv(n,r,o){n.flags|=16384,n={getSnapshot:r,value:o},r=Mt.updateQueue,r===null?(r=ph(),Mt.updateQueue=r,r.stores=[n]):(o=r.stores,o===null?r.stores=[n]:o.push(n))}function Xv(n,r,o,l){r.value=o,r.getSnapshot=l,Qv(r)&&Jv(n)}function Zv(n,r,o){return o(function(){Qv(r)&&Jv(n)})}function Qv(n){var r=n.getSnapshot;n=n.value;try{var o=r();return!gr(n,o)}catch{return!0}}function Jv(n){var r=Xi(n,2);r!==null&&va(r,n,2)}function xg(n){var r=aa();if(typeof n=="function"){var o=n;if(n=o(),il){Or(!0);try{o()}finally{Or(!1)}}}return r.memoizedState=r.baseState=n,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:n},r}function ek(n,r,o,l){return n.baseState=o,hg(n,yn,typeof l=="function"?l:Co)}function z6(n,r,o,l,h){if(bh(n))throw Error(s(485));if(n=r.action,n!==null){var m={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(R){m.listeners.push(R)}};ie.T!==null?o(!0):m.isTransition=!1,l(m),o=r.pending,o===null?(m.next=r.pending=m,tk(r,m)):(m.next=o.next,r.pending=o.next=m)}}function tk(n,r){var o=r.action,l=r.payload,h=n.state;if(r.isTransition){var m=ie.T,R={};R.types=m!==null?m.types:null,ie.T=R;try{var _=o(h,l),G=ie.S;G!==null&&G(R,_),nk(n,r,_)}catch(de){mg(n,r,de)}finally{m!==null&&R.types!==null&&(m.types=R.types),ie.T=m}}else try{m=o(h,l),nk(n,r,m)}catch(de){mg(n,r,de)}}function nk(n,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(l){rk(n,r,l)},function(l){return mg(n,r,l)}):rk(n,r,o)}function rk(n,r,o){r.status="fulfilled",r.value=o,ak(r),n.state=o,r=n.pending,r!==null&&(o=r.next,o===r?n.pending=null:(o=o.next,r.next=o,tk(n,o)))}function mg(n,r,o){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=o,ak(r),r=r.next;while(r!==l)}n.action=null}function ak(n){n=n.listeners;for(var r=0;r<n.length;r++)(0,n[r])()}function sk(n,r){return r}function ok(n,r){if(Ot){var o=En.formState;if(o!==null){e:{var l=Mt;if(Ot){if($n){t:{for(var h=$n,m=ns;h.nodeType!==8;){if(!m){h=null;break t}if(h=as(h.nextSibling),h===null){h=null;break t}}m=h.data,h=m==="F!"||m==="F"?h:null}if(h){$n=as(h.nextSibling),l=h.data==="F!";break e}}ei(l)}l=!1}l&&(r=o[0])}}return o=aa(),o.memoizedState=o.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sk,lastRenderedState:r},o.queue=l,o=Ck.bind(null,Mt,l),l.dispatch=o,l=xg(!1),m=wg.bind(null,Mt,!1,l.queue),l=aa(),h={state:r,dispatch:null,action:n,pending:null},l.queue=h,o=z6.bind(null,Mt,h,m,o),h.dispatch=o,l.memoizedState=n,[r,o,!1]}function ik(n){var r=nr();return lk(r,yn,n)}function lk(n,r,o){if(r=hg(n,r,sk)[0],n=mh(Co)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var l=td(r)}catch(R){throw R===hc?oh:R}else l=r;r=nr();var h=r.queue,m=h.dispatch;return o!==r.memoizedState&&(Mt.flags|=2048,gc(9,{destroy:void 0},N6.bind(null,h,o),null)),[l,m,n]}function N6(n,r){n.action=r}function ck(n){var r=nr(),o=yn;if(o!==null)return lk(r,o,n);nr(),r=r.memoizedState,o=nr();var l=o.queue.dispatch;return o.memoizedState=n,[r,l,!1]}function gc(n,r,o,l){return n={tag:n,create:o,deps:l,inst:r,next:null},r=Mt.updateQueue,r===null&&(r=ph(),Mt.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=n.next=n:(l=o.next,o.next=n,n.next=l,r.lastEffect=n),n}function uk(){return nr().memoizedState}function gh(n,r,o,l){var h=aa();Mt.flags|=n,h.memoizedState=gc(1|r,{destroy:void 0},o,l===void 0?null:l)}function yh(n,r,o,l){var h=nr();l=l===void 0?null:l;var m=h.memoizedState.inst;yn!==null&&l!==null&&ig(l,yn.memoizedState.deps)?h.memoizedState=gc(r,m,o,l):(Mt.flags|=n,h.memoizedState=gc(1|r,m,o,l))}function dk(n,r){gh(8390656,8,n,r)}function gg(n,r){yh(2048,8,n,r)}function L6(n){Mt.flags|=4;var r=Mt.updateQueue;if(r===null)r=ph(),Mt.updateQueue=r,r.events=[n];else{var o=r.events;o===null?r.events=[n]:o.push(n)}}function fk(n){var r=nr().memoizedState;return L6({ref:r,nextImpl:n}),function(){if((rn&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function hk(n,r){return yh(4,2,n,r)}function pk(n,r){return yh(4,4,n,r)}function xk(n,r){if(typeof r=="function"){n=n();var o=r(n);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return n=n(),r.current=n,function(){r.current=null}}function mk(n,r,o){o=o!=null?o.concat([n]):null,yh(4,4,xk.bind(null,r,n),o)}function yg(){}function gk(n,r){var o=nr();r=r===void 0?null:r;var l=o.memoizedState;return r!==null&&ig(r,l[1])?l[0]:(o.memoizedState=[n,r],n)}function yk(n,r){var o=nr();r=r===void 0?null:r;var l=o.memoizedState;if(r!==null&&ig(r,l[1]))return l[0];if(l=n(),il){Or(!0);try{n()}finally{Or(!1)}}return o.memoizedState=[l,r],l}function bg(n,r,o){return o===void 0||(Eo&1073741824)!==0&&(Wt&261930)===0?n.memoizedState=r:(n.memoizedState=o,n=T2(),Mt.lanes|=n,fi|=n,o)}function bk(n,r,o,l){return gr(o,r)?o:oi.current!==null?(n=bg(n,o,l),gr(n,r)||(lr=!0),n):(Eo&106)===0||(Eo&1073741824)!==0&&(Wt&261930)===0?(lr=!0,n.memoizedState=o):(n=T2(),Mt.lanes|=n,fi|=n,r)}function vk(n,r,o,l,h){var m=$e.p;$e.p=m!==0&&8>m?m:8;var R=ie.T,_={};_.types=R!==null?R.types:null,ie.T=_,wg(n,!1,r,o);try{var G=h(),de=ie.S;if(de!==null&&de(_,G),G!==null&&typeof G=="object"&&typeof G.then=="function"){var ge=R6(G,l);nd(n,r,ge,Pa(n))}else nd(n,r,l,Pa(n))}catch(we){nd(n,r,{then:function(){},status:"rejected",reason:we},Pa())}finally{$e.p=m,R!==null&&_.types!==null&&(R.types=_.types),ie.T=R}}function D6(){}function vg(n,r,o,l){if(n.tag!==5)throw Error(s(476));var h=kk(n).queue;vk(n,h,r,Pe,o===null?D6:function(){return wk(n),o(l)})}function kk(n){var r=n.memoizedState;if(r!==null)return r;r={memoizedState:Pe,baseState:Pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:Pe},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Co,lastRenderedState:o},next:null},n.memoizedState=r,n=n.alternate,n!==null&&(n.memoizedState=r),r}function wk(n){var r=kk(n);r.next===null&&(r=n.alternate.memoizedState),nd(n,r.next.queue,{},Pa())}function kg(){return Pr(Oc)}function Sk(){return nr().memoizedState}function Ek(){return nr().memoizedState}function O6(n){for(var r=n.return;r!==null;){switch(r.tag){case 24:case 3:var o=Pa();n=ai(o);var l=si(r,n,o);l!==null&&(va(l,r,o),Xu(l,r,o)),r={cache:Ym()},n.payload=r;return}r=r.return}}function I6(n,r,o){var l=Pa();o={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},bh(n)?$k(r,o):(o=Bm(n,r,o,l),o!==null&&(va(o,n,l),jk(o,r,l)))}function Ck(n,r,o){var l=Pa();nd(n,r,o,l)}function nd(n,r,o,l){var h={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(bh(n))$k(r,h);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=r.lastRenderedReducer,m!==null))try{var R=r.lastRenderedState,_=m(R,o);if(h.hasEagerState=!0,h.eagerState=_,gr(_,R))return Xf(n,r,h,0),En===null&&Yf(),!1}catch{}if(o=Bm(n,r,h,l),o!==null)return va(o,n,l),jk(o,r,l),!0}return!1}function wg(n,r,o,l){if(l={lane:2,revertLane:fy(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bh(n)){if(r)throw Error(s(479))}else r=Bm(n,o,l,2),r!==null&&va(r,n,2)}function bh(n){var r=n.alternate;return n===Mt||r!==null&&r===Mt}function $k(n,r){xc=fh=!0;var o=n.pending;o===null?r.next=r:(r.next=o.next,o.next=r),n.pending=r}function jk(n,r,o){if((o&4194048)!==0){var l=r.lanes;l&=n.pendingLanes,o|=l,r.lanes=o,ln(n,o)}}var vh={readContext:Pr,use:xh,useCallback:Wn,useContext:Wn,useEffect:Wn,useImperativeHandle:Wn,useLayoutEffect:Wn,useInsertionEffect:Wn,useMemo:Wn,useReducer:Wn,useRef:Wn,useState:Wn,useDebugValue:Wn,useDeferredValue:Wn,useTransition:Wn,useSyncExternalStore:Wn,useId:Wn,useHostTransitionStatus:Wn,useFormState:Wn,useActionState:Wn,useOptimistic:Wn,useMemoCache:Wn,useCacheRefresh:Wn,useEffectEvent:Wn},Tk={readContext:Pr,use:xh,useCallback:function(n,r){return aa().memoizedState=[n,r===void 0?null:r],n},useContext:Pr,useEffect:dk,useImperativeHandle:function(n,r,o){o=o!=null?o.concat([n]):null,gh(4194308,4,xk.bind(null,r,n),o)},useLayoutEffect:function(n,r){return gh(4194308,4,n,r)},useInsertionEffect:function(n,r){gh(4,2,n,r)},useMemo:function(n,r){var o=aa();r=r===void 0?null:r;var l=n();if(il){Or(!0);try{n()}finally{Or(!1)}}return o.memoizedState=[l,r],l},useReducer:function(n,r,o){var l=aa();if(o!==void 0){var h=o(r);if(il){Or(!0);try{o(r)}finally{Or(!1)}}}else h=r;return l.memoizedState=l.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},l.queue=n,n=n.dispatch=I6.bind(null,Mt,n),[l.memoizedState,n]},useRef:function(n){var r=aa();return n={current:n},r.memoizedState=n},useState:function(n){n=xg(n);var r=n.queue,o=Ck.bind(null,Mt,r);return r.dispatch=o,[n.memoizedState,o]},useDebugValue:yg,useDeferredValue:function(n,r){var o=aa();return bg(o,n,r)},useTransition:function(){var n=xg(!1);return n=vk.bind(null,Mt,n.queue,!0,!1),aa().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,r,o){var l=Mt,h=aa();if(Ot){if(o===void 0)throw Error(s(407));o=o()}else{if(o=r(),En===null)throw Error(s(349));(Wt&127)!==0||Yv(l,r,o)}h.memoizedState=o;var m={value:o,getSnapshot:r};return h.queue=m,dk(Zv.bind(null,l,m,n),[n]),l.flags|=2048,gc(9,{destroy:void 0},Xv.bind(null,l,m,o,r),null),o},useId:function(){var n=aa(),r=En.identifierPrefix;if(Ot){var o=Vs,l=Us;o=(l&~(1<<32-Jn(l)-1)).toString(32)+o,r="_"+r+"R_"+o,o=hh++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=A6++,r="_"+r+"r_"+o.toString(32)+"_";return n.memoizedState=r},useHostTransitionStatus:kg,useFormState:ok,useActionState:ok,useOptimistic:function(n){var r=aa();r.memoizedState=r.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=wg.bind(null,Mt,!0,o),o.dispatch=r,[n,r]},useMemoCache:fg,useCacheRefresh:function(){return aa().memoizedState=O6.bind(null,Mt)},useEffectEvent:function(n){var r=aa(),o={impl:n};return r.memoizedState=o,function(){if((rn&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}},Rk={readContext:Pr,use:xh,useCallback:gk,useContext:Pr,useEffect:gg,useImperativeHandle:mk,useInsertionEffect:hk,useLayoutEffect:pk,useMemo:yk,useReducer:mh,useRef:uk,useState:function(){return mh(Co)},useDebugValue:yg,useDeferredValue:function(n,r){var o=nr();return bk(o,yn.memoizedState,n,r)},useTransition:function(){var n=mh(Co)[0],r=nr().memoizedState;return[typeof n=="boolean"?n:td(n),r]},useSyncExternalStore:Wv,useId:Sk,useHostTransitionStatus:kg,useFormState:ik,useActionState:ik,useOptimistic:function(n,r){var o=nr();return ek(o,yn,n,r)},useMemoCache:fg,useCacheRefresh:Ek,useEffectEvent:fk},_6={readContext:Pr,use:xh,useCallback:gk,useContext:Pr,useEffect:gg,useImperativeHandle:mk,useInsertionEffect:hk,useLayoutEffect:pk,useMemo:yk,useReducer:pg,useRef:uk,useState:function(){return pg(Co)},useDebugValue:yg,useDeferredValue:function(n,r){var o=nr();return yn===null?bg(o,n,r):bk(o,yn.memoizedState,n,r)},useTransition:function(){var n=pg(Co)[0],r=nr().memoizedState;return[typeof n=="boolean"?n:td(n),r]},useSyncExternalStore:Wv,useId:Sk,useHostTransitionStatus:kg,useFormState:ck,useActionState:ck,useOptimistic:function(n,r){var o=nr();return yn!==null?ek(o,yn,n,r):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:fg,useCacheRefresh:Ek,useEffectEvent:fk};function Sg(n,r,o,l){r=n.memoizedState,o=o(l,r),o=o==null?r:I({},r,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Eg={enqueueSetState:function(n,r,o){n=n._reactInternals;var l=Pa(),h=ai(l);h.payload=r,o!=null&&(h.callback=o),r=si(n,h,l),r!==null&&(va(r,n,l),Xu(r,n,l))},enqueueReplaceState:function(n,r,o){n=n._reactInternals;var l=Pa(),h=ai(l);h.tag=1,h.payload=r,o!=null&&(h.callback=o),r=si(n,h,l),r!==null&&(va(r,n,l),Xu(r,n,l))},enqueueForceUpdate:function(n,r){n=n._reactInternals;var o=Pa(),l=ai(o);l.tag=2,r!=null&&(l.callback=r),r=si(n,l,o),r!==null&&(va(r,n,o),Xu(r,n,o))}};function Ak(n,r,o,l,h,m,R){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,m,R):r.prototype&&r.prototype.isPureReactComponent?!Zo(o,l)||!Zo(h,m):!0}function Mk(n,r,o,l){n=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,l),r.state!==n&&Eg.enqueueReplaceState(r,r.state,null)}function ll(n,r){var o=r;if("ref"in r){o={};for(var l in r)l!=="ref"&&(o[l]=r[l])}if(n=n.defaultProps){o===r&&(o=I({},o));for(var h in n)o[h]===void 0&&(o[h]=n[h])}return o}function zk(n){Wf(n)}function Nk(n){console.error(n)}function Lk(n){Wf(n)}function kh(n,r){try{var o=n.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function Dk(n,r,o){try{var l=n.onCaughtError;l(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Cg(n,r,o){return o=ai(o),o.tag=3,o.payload={element:null},o.callback=function(){kh(n,r)},o}function Ok(n){return n=ai(n),n.tag=3,n}function Ik(n,r,o,l){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var m=l.value;n.payload=function(){return h(m)},n.callback=function(){Dk(r,o,l)}}var R=o.stateNode;R!==null&&typeof R.componentDidCatch=="function"&&(n.callback=function(){Dk(r,o,l),typeof h!="function"&&(hi===null?hi=new Set([this]):hi.add(this));var _=l.stack;this.componentDidCatch(l.value,{componentStack:_!==null?_:""})})}function P6(n,r,o,l,h){if(o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=o.alternate,r!==null&&el(r,o,h,!0),o=Br.current,o!==null){switch(o.tag){case 31:case 13:case 19:return Yr===null?qh():o.alternate===null&&Yn===0&&(Yn=3),o.flags&=-257,o.flags|=65536,o.lanes=h,l===ih?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([l]):r.add(l),cy(n,l,h)),!1;case 22:return o.flags|=65536,l===ih?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([l]):o.add(l)),cy(n,l,h)),!1}throw Error(s(435,o.tag))}return cy(n,l,h),qh(),!1}if(Ot)return r=Br.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,l!==Vm&&(n=Error(s(422),{cause:l}),Vu(Ja(n,o)))):(l!==Vm&&(r=Error(s(423),{cause:l}),Vu(Ja(r,o))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,l=Ja(l,o),h=Cg(n.stateNode,l,h),tg(n,h),Yn!==4&&(Yn=2)),!1;var m=Error(s(520),{cause:l});if(m=Ja(m,o),ud===null?ud=[m]:ud.push(m),Yn!==4&&(Yn=2),r===null)return!0;l=Ja(l,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,n=h&-h,o.lanes|=n,n=Cg(o.stateNode,l,n),tg(o,n),!1;case 1:if(r=o.type,m=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(hi===null||!hi.has(m))))return o.flags|=65536,h&=-h,o.lanes|=h,h=Ok(h),Ik(h,n,o,l),tg(o,h),!1;break;case 22:if(o.memoizedState!==null)return o.flags|=65536,!1}o=o.return}while(o!==null);return!1}var $g=Error(s(461)),lr=!1;function yr(n,r,o,l){r.child=n===null?Fv(r,null,o,l):ol(r,n.child,o,l)}function _k(n,r,o,l,h){o=o.render;var m=r.ref;if("ref"in l){var R={};for(var _ in l)_!=="ref"&&(R[_]=l[_])}else R=l;return tl(r),l=lg(n,r,o,R,m,h),_=cg(),n!==null&&!lr?(ug(n,r,h),$o(n,r,h)):(Ot&&_&&eh(r),r.flags|=1,yr(n,r,l,h),r.child)}function Pk(n,r,o,l,h){if(n===null){var m=o.type;return typeof m=="function"&&!Fm(m)&&m.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=m,Bk(n,r,m,l,h)):(n=Qf(o.type,null,l,r,r.mode,h),n.ref=r.ref,n.return=r,r.child=n)}if(m=n.child,!Lg(n,h)){var R=m.memoizedProps;if(o=o.compare,o=o!==null?o:Zo,o(R,l)&&n.ref===r.ref)return $o(n,r,h)}return r.flags|=1,n=vo(m,l),n.ref=r.ref,n.return=r,r.child=n}function Bk(n,r,o,l,h){if(n!==null){var m=n.memoizedProps;if(Zo(m,l)&&n.ref===r.ref)if(lr=!1,r.pendingProps=l=m,Lg(n,h))(n.flags&131072)!==0&&(lr=!0);else return r.lanes=n.lanes,$o(n,r,h)}return jg(n,r,o,l,h)}function Fk(n,r,o,l){var h=l.children,m=n!==null?n.memoizedState:null;if(n===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((r.flags&128)!==0){if(m=m!==null?m.baseLanes|o:o,n!==null){for(l=r.child=n.child,h=0;l!==null;)h=h|l.lanes|l.childLanes,l=l.sibling;l=h&~m}else l=0,r.child=null;return qk(n,r,m,o,l)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},n!==null&&sh(r,m!==null?m.cachePool:null),m!==null?Uv(r,m):rg(),Vv(r);else return l=r.lanes=536870912,qk(n,r,m!==null?m.baseLanes|o:o,o,l)}else m!==null?(sh(r,m.cachePool),Uv(r,m),li(),r.memoizedState=null):(n!==null&&sh(r,null),rg(),li());return yr(n,r,h,o),r.child}function rd(n,r){return n!==null&&n.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function qk(n,r,o,l,h){var m=Zm();return m=m===null?null:{parent:or._currentValue,pool:m},r.memoizedState={baseLanes:o,cachePool:m},n!==null&&sh(r,null),rg(),Vv(r),n!==null&&el(n,r,l,!0),r.childLanes=h,null}function wh(n,r){return r=Sh({mode:r.mode,children:r.children},n.mode),r.ref=n.ref,n.child=r,r.return=n,r}function Hk(n,r,o){return ol(r,n.child,null,o),n=wh(r,r.pendingProps),n.flags|=2,Da(r),r.memoizedState=null,n}function B6(n,r,o){var l=r.pendingProps,h=(r.flags&128)!==0;if(r.flags&=-129,n===null){if(Ot){if(l.mode==="hidden")return n=wh(r,l),r.lanes=536870912,n.memoizedState={baseLanes:0,cachePool:null},rd(null,n);if(sg(r),(n=$n)?(n=xw(n,ns),n=n!==null&&n.data==="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Qo!==null?{id:Us,overflow:Vs}:null,retryLane:536870912,hydrationErrors:null},o=$v(n),o.return=r,r.child=o,Tr=r,$n=null)):n=null,n===null)throw ei(r);return r.lanes=536870912,null}return wh(r,l)}var m=n.memoizedState;if(m!==null){var R=m.dehydrated;if(sg(r),h)if(r.flags&256)r.flags&=-257,r=Hk(n,r,o);else if(r.memoizedState!==null)r.child=n.child,r.flags|=128,r=null;else throw Error(s(558));else if(lr||el(n,r,o,!1),h=(o&n.childLanes)!==0,lr||h){if(oi.current===null){if(l=En,l!==null&&(R=Vt(l,o),R!==0&&R!==m.retryLane))throw m.retryLane=R,Xi(n,R),va(l,n,R),$g;qh()}r=Hk(n,r,o)}else n=m.treeContext,$n=as(R.nextSibling),Tr=r,Ot=!0,Jo=null,ns=!1,n!==null&&Rv(r,n),r=wh(r,l),r.flags|=134221824;return r}return n=vo(n.child,{mode:l.mode,children:l.children}),n.ref=r.ref,r.child=n,n.return=r,n}function yc(n,r){var o=r.ref;if(o===null)n!==null&&n.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(n===null||n.ref!==o)&&(r.flags|=4194816)}}function jg(n,r,o,l,h){return tl(r),o=lg(n,r,o,l,void 0,h),l=cg(),n!==null&&!lr?(ug(n,r,h),$o(n,r,h)):(Ot&&l&&eh(r),r.flags|=1,yr(n,r,o,h),r.child)}function Uk(n,r,o,l,h,m){return tl(r),r.updateQueue=null,o=Kv(r,l,o,h),Gv(n),l=cg(),n!==null&&!lr?(ug(n,r,m),$o(n,r,m)):(Ot&&l&&eh(r),r.flags|=1,yr(n,r,o,m),r.child)}function Vk(n,r,o,l,h){if(tl(r),r.stateNode===null){var m=lc,R=o.contextType;typeof R=="object"&&R!==null&&(m=Pr(R)),m=new o(l,m),r.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Eg,r.stateNode=m,m._reactInternals=r,m=r.stateNode,m.props=l,m.state=r.memoizedState,m.refs={},Jm(r),R=o.contextType,m.context=typeof R=="object"&&R!==null?Pr(R):lc,m.state=r.memoizedState,R=o.getDerivedStateFromProps,typeof R=="function"&&(Sg(r,o,R,l),m.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(R=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),R!==m.state&&Eg.enqueueReplaceState(m,m.state,null),Qu(r,l,m,h),Zu(),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(n===null){m=r.stateNode;var _=r.memoizedProps,G=ll(o,_);m.props=G;var de=m.context,ge=o.contextType;R=lc,typeof ge=="object"&&ge!==null&&(R=Pr(ge));var we=o.getDerivedStateFromProps;ge=typeof we=="function"||typeof m.getSnapshotBeforeUpdate=="function",_=r.pendingProps!==_,ge||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(_||de!==R)&&Mk(r,m,l,R),ri=!1;var le=r.memoizedState;m.state=le,Qu(r,l,m,h),Zu(),de=r.memoizedState,_||le!==de||ri?(typeof we=="function"&&(Sg(r,o,we,l),de=r.memoizedState),(G=ri||Ak(r,o,G,l,le,de,R))?(ge||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=de),m.props=l,m.state=de,m.context=R,l=G):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{m=r.stateNode,eg(n,r),R=r.memoizedProps,ge=ll(o,R),m.props=ge,we=r.pendingProps,le=m.context,de=o.contextType,G=lc,typeof de=="object"&&de!==null&&(G=Pr(de)),_=o.getDerivedStateFromProps,(de=typeof _=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(R!==we||le!==G)&&Mk(r,m,l,G),ri=!1,le=r.memoizedState,m.state=le,Qu(r,l,m,h),Zu();var xe=r.memoizedState;R!==we||le!==xe||ri||n!==null&&n.dependencies!==null&&rh(n.dependencies)?(typeof _=="function"&&(Sg(r,o,_,l),xe=r.memoizedState),(ge=ri||Ak(r,o,ge,l,le,xe,G)||n!==null&&n.dependencies!==null&&rh(n.dependencies))?(de||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,xe,G),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,xe,G)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||R===n.memoizedProps&&le===n.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&le===n.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=xe),m.props=l,m.state=xe,m.context=G,l=ge):(typeof m.componentDidUpdate!="function"||R===n.memoizedProps&&le===n.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||R===n.memoizedProps&&le===n.memoizedState||(r.flags|=1024),l=!1)}return m=l,yc(n,r),l=(r.flags&128)!==0,m||l?(m=r.stateNode,o=l&&typeof o.getDerivedStateFromError!="function"?null:m.render(),r.flags|=1,n!==null&&l?(r.child=ol(r,n.child,null,h),r.child=ol(r,null,o,h)):yr(n,r,o,h),r.memoizedState=m.state,n=r.child):n=$o(n,r,h),n}function Gk(n,r,o,l){return Qi(),r.flags|=256,yr(n,r,o,l),r.child}var Tg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rg(n){return{baseLanes:n,cachePool:Dv()}}function Ag(n,r,o){return n=n!==null?n.childLanes&~o:0,r&&(n|=_a),n}function Kk(n,r,o){var l=r.pendingProps,h=!1,m=(r.flags&128)!==0,R;if((R=m)||(R=n!==null&&n.memoizedState===null?!1:(Fr.current&2)!==0),R&&(h=!0,r.flags&=-129),R=(r.flags&32)!==0,r.flags&=-33,n===null){if(Ot){if(h?ii(r):li(),(n=$n)?(n=xw(n,ns),n=n!==null&&n.data!=="&"?n:null,n!==null&&(r.memoizedState={dehydrated:n,treeContext:Qo!==null?{id:Us,overflow:Vs}:null,retryLane:536870912,hydrationErrors:null},o=$v(n),o.return=r,r.child=o,Tr=r,$n=null)):n=null,n===null)throw ei(r);return Ry(n)?r.lanes=32:r.lanes=536870912,null}return m=l.children,l=l.fallback,h?(li(),h=r.mode,m=Sh({mode:"hidden",children:m},h),l=Zi(l,h,o,null),m.return=r,l.return=r,m.sibling=l,r.child=m,l=r.child,l.memoizedState=Rg(o),l.childLanes=Ag(n,R,o),r.memoizedState=Tg,rd(null,l)):(ii(r),Mg(r,m))}var _=n.memoizedState;if(_!==null){var G=_.dehydrated;if(G!==null)return F6(n,r,m,R,l,G,_,o)}return h?(li(),h=l.fallback,m=r.mode,_=n.child,G=_.sibling,l=vo(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&1206910976,G!==null?h=vo(G,h):(h=Zi(h,m,o,null),h.flags|=2),h.return=r,l.return=r,l.sibling=h,r.child=l,rd(null,l),l=r.child,h=n.child.memoizedState,h===null?h=Rg(o):(m=h.cachePool,m!==null?(_=or._currentValue,m=m.parent!==_?{parent:_,pool:_}:m):m=Dv(),h={baseLanes:h.baseLanes|o,cachePool:m}),l.memoizedState=h,l.childLanes=Ag(n,R,o),r.memoizedState=Tg,rd(n.child,l)):(ii(r),o=n.child,n=o.sibling,o=vo(o,{mode:"visible",children:l.children}),o.return=r,o.sibling=null,n!==null&&(R=r.deletions,R===null?(r.deletions=[n],r.flags|=16):R.push(n)),r.child=o,r.memoizedState=null,o)}function Mg(n,r){return r=Sh({mode:"visible",children:r},n.mode),r.return=n,n.child=r}function Sh(n,r){return n=ma(22,n,null,r),n.lanes=0,n}function Eh(n,r,o){return ol(r,n.child,null,o),n=Mg(r,r.pendingProps.children),n.flags|=2,r.memoizedState=null,n}function F6(n,r,o,l,h,m,R,_){if(o)return r.flags&256?(ii(r),r.flags&=-257,Eh(n,r,_)):r.memoizedState!==null?(li(),r.child=n.child,r.flags|=128,null):(li(),m=h.fallback,R=r.mode,h=Sh({mode:"visible",children:h.children},R),m=Zi(m,R,_,null),m.flags|=2,h.return=r,m.return=r,h.sibling=m,r.child=h,ol(r,n.child,null,_),h=r.child,h.memoizedState=Rg(_),h.childLanes=Ag(n,l,_),r.memoizedState=Tg,rd(null,h));if(ii(r),Ry(m)){if(l=m.nextSibling&&m.nextSibling.dataset,l)var G=l.dgst;return l=G,l!==""&&(h=Error(s(419)),h.stack="",h.digest=l,Vu({value:h,source:null,stack:null})),Eh(n,r,_)}if(lr||el(n,r,_,!1),l=(_&n.childLanes)!==0,lr||l){if(oi.current!==null)return Eh(n,r,_);if(l=En,l!==null&&(h=Vt(l,_),h!==0&&h!==R.retryLane))throw R.retryLane=h,Xi(n,h),va(l,n,h),$g;return Ty(m)||qh(),Eh(n,r,_)}return Ty(m)?(r.flags|=192,r.child=n.child,null):(n=R.treeContext,$n=as(m.nextSibling),Tr=r,Ot=!0,Jo=null,ns=!1,n!==null&&Rv(r,n),r=Mg(r,h.children),r.flags|=134221824,r)}function Wk(n,r,o){n.lanes|=r;var l=n.alternate;l!==null&&(l.lanes|=r),nh(n.return,r,o)}function Yk(n){for(var r=null;n!==null;){var o=n.alternate;o!==null&&dh(o)===null&&(r=n),n=n.sibling}return r}function Ch(n,r,o,l,h,m){var R=n.memoizedState;R===null?n.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:h,treeForkCount:m}:(R.isBackwards=r,R.rendering=null,R.renderingStartTime=0,R.last=l,R.tail=o,R.tailMode=h,R.treeForkCount=m)}function zg(n){var r=n.child;for(n.child=null;r!==null;){var o=r.sibling;r.sibling=n.child,n.child=r,r=o}}function Ng(n,r,o){var l=r.pendingProps,h=l.revealOrder,m=l.tail;l=l.children;var R=Fr.current;if(r.flags&128)return Ju(r,R),null;var _=(R&2)!==0;if(_?(R=R&1|2,r.flags|=128):R&=1,Ju(r,R),h==="backwards"&&n!==null?(zg(n),yr(n,r,l,o),zg(n)):yr(n,r,l,o),l=Ot?Uu:0,!_&&n!==null&&(n.flags&128)!==0)e:for(n=r.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Wk(n,o,r);else if(n.tag===19)Wk(n,o,r);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===r)break e;for(;n.sibling===null;){if(n.return===null||n.return===r)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"backwards":o=Yk(r.child),o===null?(h=r.child,r.child=null):(h=o.sibling,o.sibling=null,zg(r)),Ch(r,!0,h,null,m,l);break;case"unstable_legacy-backwards":for(o=null,h=r.child,r.child=null;h!==null;){if(n=h.alternate,n!==null&&dh(n)===null){r.child=h;break}n=h.sibling,h.sibling=o,o=h,h=n}Ch(r,!0,o,null,m,l);break;case"together":Ch(r,!1,null,null,void 0,l);break;case"independent":r.memoizedState=null;break;default:o=Yk(r.child),o===null?(h=r.child,r.child=null):(h=o.sibling,o.sibling=null),Ch(r,!1,h,o,m,l)}return r.child}function Xk(n,r,o){var l=r.pendingProps;return ti(r,r.type,l.value),yr(n,r,l.children,o),r.child}function $o(n,r,o){if(n!==null&&(r.dependencies=n.dependencies),fi|=r.lanes,(o&r.childLanes)===0)if(n!==null){if(el(n,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(n!==null&&r.child!==n.child)throw Error(s(153));if(r.child!==null){for(n=r.child,o=vo(n,n.pendingProps),r.child=o,o.return=r;n.sibling!==null;)n=n.sibling,o=o.sibling=vo(n,n.pendingProps),o.return=r;o.sibling=null}return r.child}function Lg(n,r){return(n.lanes&r)!==0?!0:(n=n.dependencies,!!(n!==null&&rh(n)))}function q6(n,r,o){switch(r.tag){case 3:Lt(r,r.stateNode.containerInfo),ti(r,or,n.memoizedState.cache),Qi();break;case 27:case 5:vt(r);break;case 4:Lt(r,r.stateNode.containerInfo);break;case 10:ti(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,sg(r),null;break;case 13:var l=r.memoizedState;if(l!==null){if(l.dehydrated!==null)return ii(r),r.flags|=128,null;l=el(n,r,o,!1);var h=r.child.childLanes;return l||(o&h)!==0?Kk(n,r,o):(ii(r),n=$o(n,r,o),n!==null?n.sibling:null)}ii(r);break;case 19:if(r.flags&128)return Ng(n,r,o);if(h=(n.flags&128)!==0,l=(o&r.childLanes)!==0,l||(el(n,r,o,!1),l=(o&r.childLanes)!==0),h){if(l)return Ng(n,r,o);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Ju(r,Fr.current),l)break;return null;case 22:return r.lanes=0,Fk(n,r,o,r.pendingProps);case 24:ti(r,or,n.memoizedState.cache)}return $o(n,r,o)}function Zk(n,r,o){if(n!==null)if(n.memoizedProps!==r.pendingProps)lr=!0;else{if(!Lg(n,o)&&(r.flags&128)===0)return lr=!1,q6(n,r,o);lr=(n.flags&131072)!==0}else lr=!1,Ot&&(r.flags&1048576)!==0&&Tv(r,Uu,r.index);switch(r.lanes=0,r.tag){case 16:e:{var l=r.pendingProps;if(n=al(r.elementType),r.type=n,typeof n=="function")Fm(n)?(l=ll(n,l),r.tag=1,r=Vk(null,r,n,l,o)):(r.tag=0,r=jg(null,r,n,l,o));else{if(n!=null){var h=n.$$typeof;if(h===F){r.tag=11,r=_k(null,r,n,l,o);break e}else if(h===ae){r.tag=14,r=Pk(null,r,n,l,o);break e}else if(h===Z){r.tag=10,r.type=n,r=Xk(null,r,o);break e}}throw r=ye(n)||n,Error(s(306,r,""))}}return r;case 0:return jg(n,r,r.type,r.pendingProps,o);case 1:return l=r.type,h=ll(l,r.pendingProps),Vk(n,r,l,h,o);case 3:e:{if(Lt(r,r.stateNode.containerInfo),n===null)throw Error(s(387));l=r.pendingProps;var m=r.memoizedState;h=m.element,eg(n,r),Qu(r,l,null,o);var R=r.memoizedState;if(l=R.cache,ti(r,or,l),l!==m.cache&&Wm(r,[or],o,!0),Zu(),l=R.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:R.cache},r.updateQueue.baseState=m,r.memoizedState=m,r.flags&256){r=Gk(n,r,l,o);break e}else if(l!==h){h=Ja(Error(s(424)),r),Vu(h),r=Gk(n,r,l,o);break e}else for(n=r.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,$n=as(n.firstChild),Tr=r,Ot=!0,Jo=null,ns=!0,o=Fv(r,null,l,o),r.child=o;o;)o.flags=o.flags&-3|134221824,o=o.sibling;else{if(Qi(),l===h){r=$o(n,r,o);break e}yr(n,r,l,o)}r=r.child}return r;case 26:return yc(n,r),n===null?(o=ww(r.type,null,r.pendingProps,null))?r.memoizedState=o:Ot||(r.stateNode=tw(r.type,r.pendingProps,gt.current,r)):r.memoizedState=ww(r.type,n.memoizedProps,r.pendingProps,n.memoizedState),null;case 27:return vt(r),n===null&&Ot&&(l=r.stateNode=yw(r.type,r.pendingProps,gt.current),Tr=r,ns=!0,h=$n,mi(r.type)?(Ay=h,$n=as(l.firstChild)):$n=h),yr(n,r,r.pendingProps.children,o),yc(n,r),n===null&&(r.flags|=4194304),r.child;case 5:return n===null&&Ot&&((h=l=$n)&&(l=O8(l,r.type,r.pendingProps,ns),l!==null?(r.stateNode=l,Tr=r,$n=as(l.firstChild),ns=!1,h=!0):h=!1),h||ei(r)),vt(r),h=r.type,m=r.pendingProps,R=n!==null?n.memoizedProps:null,l=m.children,ky(h,m)?l=null:R!==null&&ky(h,R)&&(r.flags|=32),r.memoizedState!==null&&(h=lg(n,r,M6,null,null,o),Oc._currentValue=h),yc(n,r),yr(n,r,l,o),r.child;case 6:return n===null&&Ot&&((n=o=$n)&&(o=I8(o,r.pendingProps,ns),o!==null?(r.stateNode=o,Tr=r,$n=null,n=!0):n=!1),n||ei(r)),null;case 13:return Kk(n,r,o);case 4:return Lt(r,r.stateNode.containerInfo),l=r.pendingProps,n===null?r.child=ol(r,null,l,o):yr(n,r,l,o),r.child;case 11:return _k(n,r,r.type,r.pendingProps,o);case 7:return l=r.pendingProps,yc(n,r),yr(n,r,l,o),r.child;case 8:return yr(n,r,r.pendingProps.children,o),r.child;case 12:return yr(n,r,r.pendingProps.children,o),r.child;case 10:return Xk(n,r,o);case 9:return h=r.type._context,l=r.pendingProps.children,tl(r),h=Pr(h),l=l(h),r.flags|=1,yr(n,r,l,o),r.child;case 14:return Pk(n,r,r.type,r.pendingProps,o);case 15:return Bk(n,r,r.type,r.pendingProps,o);case 19:return Ng(n,r,o);case 31:return B6(n,r,o);case 22:return Fk(n,r,o,r.pendingProps);case 24:return tl(r),l=Pr(or),n===null?(h=Zm(),h===null&&(h=En,m=Ym(),h.pooledCache=m,m.refCount++,m!==null&&(h.pooledCacheLanes|=o),h=m),r.memoizedState={parent:l,cache:h},Jm(r),ti(r,or,h)):((n.lanes&o)!==0&&(eg(n,r),Qu(r,null,null,o),Zu()),h=n.memoizedState,m=r.memoizedState,h.parent!==l?(h={parent:l,cache:l},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),ti(r,or,l)):(l=m.cache,ti(r,or,l),l!==h.cache&&Wm(r,[or],o,!0))),yr(n,r,r.pendingProps.children,o),r.child;case 30:return r.stateNode===null&&(r.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=r.pendingProps,l.name!=null&&l.name!=="auto"?r.flags|=n===null?18882560:18874368:Ot&&eh(r),n!==null&&n.memoizedProps.name!==l.name?r.flags|=4194816:yc(n,r),yr(n,r,l.children,o),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function jo(n){n.flags|=4}function Dg(n,r,o,l,h){var m;if((m=(n.mode&32)!==0)&&(m=o===null?$w(r,l):$w(r,l)&&(l.src!==o.src||l.srcSet!==o.srcSet)),m){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(z2())n.flags|=8192;else throw sl=ih,Qm}else n.flags&=-16777217}function Qk(n,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!jw(r))if(z2())n.flags|=8192;else throw sl=ih,Qm}function $h(n,r){r!==null&&(n.flags|=4),n.flags&16384&&(r=n.tag!==22?rt():536870912,n.lanes|=r,Sc|=r)}function ad(n,r){if(!Ot)switch(n.tailMode){case"visible":break;case"collapsed":for(var o=n.tail,l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?r||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null;break;default:for(r=n.tail,o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?n.tail=null:o.sibling=null}}function jn(n){var r=n.alternate!==null&&n.alternate.child===n.child,o=0,l=0;if(r)for(var h=n.child;h!==null;)o|=h.lanes|h.childLanes,l|=h.subtreeFlags&1206910976,l|=h.flags&1206910976,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)o|=h.lanes|h.childLanes,l|=h.subtreeFlags,l|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=l,n.childLanes=o,r}function H6(n,r,o){var l=r.pendingProps;switch(Um(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jn(r),null;case 1:return jn(r),null;case 3:return o=r.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),So(or),nt(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(dc(r)?jo(r):n===null||n.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Gm())),jn(r),null;case 26:var h=r.type,m=r.memoizedState;return n===null?(jo(r),m!==null?(jn(r),Qk(r,m)):(jn(r),Dg(r,h,null,l,o))):m?m!==n.memoizedState?(jo(r),jn(r),Qk(r,m)):(jn(r),r.flags&=-16777217):(n=n.memoizedProps,n!==l&&jo(r),jn(r),Dg(r,h,n,l,o)),null;case 27:if(St(r),o=gt.current,h=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==l&&jo(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return jn(r),r.subtreeFlags&=-33554433,null}n=wt.current,dc(r)?Av(r):(n=yw(h,l,o),r.stateNode=n,jo(r))}return jn(r),r.subtreeFlags&=-33554433,null;case 5:if(St(r),h=r.type,n!==null&&r.stateNode!=null)n.memoizedProps!==l&&jo(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return jn(r),r.subtreeFlags&=-33554433,null}if(m=wt.current,dc(r))Av(r);else{var R=xd(gt.current);switch(m){case 1:m=R.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:m=R.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":m=R.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":m=R.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":m=R.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof l.is=="string"?R.createElement("select",{is:l.is}):R.createElement("select"),l.multiple?m.multiple=!0:l.size&&(m.size=l.size);break;default:m=typeof l.is=="string"?R.createElement(h,{is:l.is}):R.createElement(h)}}m[sn]=r,m[kn]=l;e:for(R=r.child;R!==null;){if(R.tag===5||R.tag===6)m.appendChild(R.stateNode);else if(R.tag!==4&&R.tag!==27&&R.child!==null){R.child.return=R,R=R.child;continue}if(R===r)break e;for(;R.sibling===null;){if(R.return===null||R.return===r)break e;R=R.return}R.sibling.return=R.return,R=R.sibling}r.stateNode=m;e:switch(Hr(m,h,l),h){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&jo(r)}}return jn(r),r.subtreeFlags&=-33554433,Dg(r,r.type,n===null?null:n.memoizedProps,r.pendingProps,o),null;case 6:if(n&&r.stateNode!=null)n.memoizedProps!==l&&jo(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(n=gt.current,dc(r)){if(n=r.stateNode,o=r.memoizedProps,l=null,h=Tr,h!==null)switch(h.tag){case 27:case 5:l=h.memoizedProps}n[sn]=r,n=!!(n.nodeValue===o||l!==null&&l.suppressHydrationWarning===!0||Z2(n.nodeValue,o)),n||ei(r,!0)}else n=xd(n).createTextNode(l),n[sn]=r,r.stateNode=n}return jn(r),null;case 31:if(o=r.memoizedState,n===null||n.memoizedState!==null){if(l=dc(r),o!==null){if(n===null){if(!l)throw Error(s(318));if(n=r.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[sn]=r}else Qi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;jn(r),n=!1}else o=Gm(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return r.flags&256?(Da(r),r):(Da(r),null);if((r.flags&128)!==0)throw Error(s(558))}return jn(r),null;case 13:if(l=r.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=dc(r),l!==null&&l.dehydrated!==null){if(n===null){if(!h)throw Error(s(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(s(317));h[sn]=r}else Qi(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;jn(r),h=!1}else h=Gm(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(Da(r),r):(Da(r),null)}return Da(r),(r.flags&128)!==0?(r.lanes=o,r):(o=l!==null,n=n!==null&&n.memoizedState!==null,o&&(l=r.child,h=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(h=l.alternate.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==h&&(l.flags|=2048)),o!==n&&o&&(r.child.flags|=8192),$h(r,r.updateQueue),jn(r),null);case 4:return nt(),n===null&&my(r.stateNode.containerInfo),r.flags|=67108864,jn(r),null;case 10:return So(r.type),jn(r),null;case 19:if(og(r),l=r.memoizedState,l===null)return jn(r),null;if(h=(r.flags&128)!==0,m=l.rendering,m===null)if(h)ad(l,!1);else{if(Yn!==0||n!==null&&(n.flags&128)!==0)for(n=r.child;n!==null;){if(m=dh(n),m!==null){for(r.flags|=128,ad(l,!1),n=m.updateQueue,r.updateQueue=n,$h(r,n),r.subtreeFlags=0,n=o,o=r.child;o!==null;)Cv(o,n),o=o.sibling;return Ju(r,Fr.current&1|2),Ot&&ko(r,l.treeForkCount),r.child}n=n.sibling}l.tail!==null&&ft()>_h&&(r.flags|=128,h=!0,ad(l,!1),r.lanes=4194304)}else{if(!h)if(n=dh(m),n!==null){if(r.flags|=128,h=!0,n=n.updateQueue,r.updateQueue=n,$h(r,n),ad(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!m.alternate&&!Ot)return jn(r),null}else 2*ft()-l.renderingStartTime>_h&&o!==536870912&&(r.flags|=128,h=!0,ad(l,!1),r.lanes=4194304);l.isBackwards?(m.sibling=r.child,r.child=m):(n=l.last,n!==null?n.sibling=m:r.child=m,l.last=m)}if(l.tail!==null){n=l.tail;e:{for(o=n;o!==null;){if(o.alternate!==null){o=!1;break e}o=o.sibling}o=!0}return l.rendering=n,l.tail=n.sibling,l.renderingStartTime=ft(),n.sibling=null,m=Fr.current,m=h?m&1|2:m&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!o||Ot?Ju(r,m):(o=m,at(Br,r),at(Fr,o),Yr===null&&(Yr=r)),Ot&&ko(r,l.treeForkCount),n}return jn(r),null;case 22:case 23:return Da(r),ag(),l=r.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?(o&536870912)!==0&&(r.flags&128)===0&&(jn(r),r.subtreeFlags&6&&(r.flags|=8192)):jn(r),o=r.updateQueue,o!==null&&$h(r,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==o&&(r.flags|=2048),n!==null&&Ie(rl),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),So(or),jn(r),null;case 25:return null;case 30:return r.flags|=33554432,jn(r),null}throw Error(s(156,r.tag))}function U6(n,r){switch(Um(r),r.tag){case 1:return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 3:return So(or),nt(),n=r.flags,(n&65536)!==0&&(n&128)===0?(r.flags=n&-65537|128,r):null;case 26:case 27:case 5:return St(r),null;case 31:if(r.memoizedState!==null){if(Da(r),r.alternate===null)throw Error(s(340));Qi()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 13:if(Da(r),n=r.memoizedState,n!==null&&n.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Qi()}return n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 19:return og(r),n=r.flags,n&65536?(r.flags=n&-65537|128,n=r.memoizedState,n!==null&&(n.rendering=null,n.tail=null),r.flags|=4,r):null;case 4:return nt(),null;case 10:return So(r.type),null;case 22:case 23:return Da(r),ag(),n!==null&&Ie(rl),n=r.flags,n&65536?(r.flags=n&-65537|128,r):null;case 24:return So(or),null;case 25:return null;default:return null}}function Jk(n,r){switch(Um(r),r.tag){case 3:So(or),nt();break;case 26:case 27:case 5:St(r);break;case 4:nt();break;case 31:r.memoizedState!==null&&Da(r);break;case 13:Da(r);break;case 19:og(r);break;case 10:So(r.type);break;case 22:case 23:Da(r),ag(),n!==null&&Ie(rl);break;case 24:So(or)}}function sd(n,r){try{var o=r.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var h=l.next;o=h;do{if((o.tag&n)===n){l=void 0;var m=o.create,R=o.inst;l=m(),R.destroy=l}o=o.next}while(o!==h)}}catch(_){un(r,r.return,_)}}function ci(n,r,o){try{var l=r.updateQueue,h=l!==null?l.lastEffect:null;if(h!==null){var m=h.next;l=m;do{if((l.tag&n)===n){var R=l.inst,_=R.destroy;if(_!==void 0){R.destroy=void 0,h=r;var G=o,de=_;try{de()}catch(ge){un(h,G,ge)}}}l=l.next}while(l!==m)}}catch(ge){un(r,r.return,ge)}}function e2(n){var r=n.updateQueue;if(r!==null){var o=n.stateNode;try{Hv(r,o)}catch(l){un(n,n.return,l)}}}function t2(n,r,o){o.props=ll(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(l){un(n,r,l)}}function Gs(n,r){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:var h=n.stateNode,m=yo(n.memoizedProps,h);(h.ref===null||h.ref.name!==m)&&(h.ref=lw(m)),l=h.ref;break;case 7:if(n.stateNode===null){var R=new Ba(n);b(n.child,!1,L8,R,void 0,void 0),n.stateNode=R}l=n.stateNode;break;default:l=n.stateNode}typeof o=="function"?n.refCleanup=o(l):o.current=l}}catch(_){un(n,r,_)}}function qr(n,r){var o=n.ref,l=n.refCleanup;if(o!==null)if(typeof l=="function")try{l()}catch(h){un(n,r,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){un(n,r,h)}else o.current=null}function jh(n,r){if((n.tag===5||n.tag===27||n.tag===6)&&n.alternate===null&&r!==null)for(var o=0;o<r.length;o++)pw(n.stateNode,r[o])}function n2(n){for(var r=n.return;r!==null&&(Ig(r)&&pw(n.stateNode,r.stateNode),!Og(r));)r=r.return}function od(n){for(var r=n.return;r!==null&&(Ig(r)&&D8(n.stateNode,r.stateNode),!Og(r));)r=r.return}function Og(n){return n.tag===5||n.tag===3||n.tag===27}function Ig(n){return n&&n.tag===7&&n.stateNode!==null}function _g(n){var r=n.type,o=n.memoizedProps,l=n.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&l.focus();break e;case"img":o.src?l.src=o.src:o.srcSet&&(l.srcset=o.srcSet)}}catch(h){un(n,n.return,h)}}function Pg(n,r,o){try{var l=n.stateNode;m8(l,n.type,o,r),l[kn]=r}catch(h){un(n,n.return,h)}}function r2(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&mi(n.type)||n.tag===4}function Bg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||r2(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&mi(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Fg(n,r,o,l){var h=n.tag;if(h===5||h===6)h=n.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(h,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(h),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Ya)),jh(n,l),_t=!0;else if(h!==4&&(h===27&&(jh(n,l),l=null,mi(n.type)&&(o=n.stateNode,r=null)),n=n.child,n!==null))for(Fg(n,r,o,l),n=n.sibling;n!==null;)Fg(n,r,o,l),n=n.sibling}function Th(n,r,o,l){var h=n.tag;if(h===5||h===6)h=n.stateNode,r?o.insertBefore(h,r):o.appendChild(h),jh(n,l),_t=!0;else if(h!==4&&(h===27&&(jh(n,l),l=null,mi(n.type)&&(o=n.stateNode)),n=n.child,n!==null))for(Th(n,r,o,l),n=n.sibling;n!==null;)Th(n,r,o,l),n=n.sibling}function a2(n){var r=n.stateNode,o=n.memoizedProps;try{for(var l=n.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);Hr(r,l,o),r[sn]=n,r[kn]=o}catch(m){un(n,n.return,m)}}var Rh=!1,Oa=null;function s2(n){(n.tag===30||(n.subtreeFlags&33554432)!==0)&&(Rh=!0)}var Ks=null;function o2(){var n=Ks;return Ks=null,n}var ga=0;function bc(n,r,o,l,h){return ga=0,i2(n.child,r,o,l,h)}function i2(n,r,o,l,h){for(var m=!1;n!==null;){if(n.tag===5){var R=n.stateNode;if(l!==null){var _=Ey(R);l.push(_),_.view&&(m=!0)}else m||Ey(R).view&&(m=!0);Rh=!0,ow(R,ga===0?r:r+"_"+ga,o),ga++}else(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&h||i2(n.child,r,o,l,h)&&(m=!0));n=n.sibling}return m}function Ws(n,r){for(;n!==null;)n.tag===5?iw(n.stateNode,n.memoizedProps):(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&r||Ws(n.child,r)),n=n.sibling}function Ah(n){if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if((n.tag!==22||n.memoizedState===null)&&(Ah(n),n.tag===30&&(n.flags&18874368)!==0&&n.stateNode.paired)){var r=n.memoizedProps;if(r.name==null||r.name==="auto")throw Error(s(544));var o=r.name;r=bo(r.default,r.share),r!=="none"&&(bc(n,o,r,null,!1)||Ws(n.child,!1))}n=n.sibling}}function qg(n,r){if(n.tag===30){var o=n.stateNode,l=n.memoizedProps,h=yo(l,o),m=bo(l.default,o.paired?l.share:l.enter);m!=="none"?bc(n,h,m,null,!1)?(Ah(n),o.paired||r||jc(n,l.onEnter)):Ws(n.child,!1):Ah(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)qg(n,r),n=n.sibling;else Ah(n)}function Hg(n){if(Oa!==null&&Oa.size!==0){var r=Oa;if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if(n.tag!==22||n.memoizedState===null){if(n.tag===30&&(n.flags&18874368)!==0){var o=n.memoizedProps,l=o.name;if(l!=null&&l!=="auto"){var h=r.get(l);if(h!==void 0){var m=bo(o.default,o.share);if(m!=="none"&&(bc(n,l,m,null,!1)?(m=n.stateNode,h.paired=m,m.paired=h,jc(n,o.onShare)):Ws(n.child,!1)),r.delete(l),r.size===0)break}}}Hg(n)}n=n.sibling}}}function Ug(n){if(n.tag===30){var r=n.memoizedProps,o=yo(r,n.stateNode),l=Oa!==null?Oa.get(o):void 0,h=bo(r.default,l!==void 0?r.share:r.exit);h!=="none"&&(bc(n,o,h,null,!1)?l!==void 0?(h=n.stateNode,l.paired=h,h.paired=l,Oa.delete(o),jc(n,r.onShare)):jc(n,r.onExit):Ws(n.child,!1)),Oa!==null&&Hg(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)Ug(n),n=n.sibling;else Oa!==null&&Hg(n)}function l2(n){for(n=n.child;n!==null;){if(n.tag===30){var r=n.memoizedProps,o=yo(r,n.stateNode);r=bo(r.default,r.update),n.flags&=-5,r!=="none"&&bc(n,o,r,n.memoizedState=[],!1)}else(n.subtreeFlags&33554432)!==0&&l2(n);n=n.sibling}}function Vg(n){if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if(n.tag!==22||n.memoizedState===null){if(n.tag===30&&(n.flags&18874368)!==0){var r=n.stateNode;r.paired!==null&&(r.paired=null,Ws(n.child,!1))}Vg(n)}n=n.sibling}}function Mh(n){if(n.tag===30)n.stateNode.paired=null,Ws(n.child,!1),Vg(n);else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)Mh(n),n=n.sibling;else Vg(n)}function c2(n){for(n=n.child;n!==null;)n.tag===30?Ws(n.child,!1):(n.subtreeFlags&33554432)!==0&&c2(n),n=n.sibling}function Gg(n,r,o,l,h,m,R){for(var _=!1;r!==null;){if(r.tag===5){var G=r.stateNode;if(m!==null&&ga<m.length){var de=m[ga],ge=Ey(G);(de.view||ge.view)&&(_=!0);var we;if(we=(n.flags&4)===0)if(ge.clip)we=!0;else{we=de.rect;var le=ge.rect;we=we.y!==le.y||we.x!==le.x||we.height!==le.height||we.width!==le.width}we&&(n.flags|=4),ge.abs?ge=!de.abs:(de=de.rect,ge=ge.rect,ge=de.height!==ge.height||de.width!==ge.width),ge&&(n.flags|=32)}else n.flags|=32;(n.flags&4)!==0&&ow(G,ga===0?o:o+"_"+ga,h),_&&(n.flags&4)!==0||(Ks===null&&(Ks=[]),Ks.push(G,ga===0?l:l+"_"+ga,r.memoizedProps)),ga++}else(r.tag!==22||r.memoizedState===null)&&(r.tag===30&&R?n.flags|=r.flags&32:Gg(n,r.child,o,l,h,m,R)&&(_=!0));r=r.sibling}return _}function u2(n,r){for(n=n.child;n!==null;){if(n.tag===30){var o=n.memoizedProps,l=n.stateNode,h=yo(o,l),m=bo(o.default,o.update),R;R=n.memoizedState,n.memoizedState=null,l=n;var _=n.child;ga=0,h=Gg(l,_,h,h,m,R,!1),(n.flags&4)!==0&&h&&jc(n,o.onUpdate)}else(n.subtreeFlags&33554432)!==0&&u2(n);n=n.sibling}}var Rr=!1,on=!1,Ys=!1,Kg=!1,d2=typeof WeakSet=="function"?WeakSet:Set,Ar=null,Xs=!1,id=!1,zh=!1,Wg=!1;function V6(n,r,o){if(n=n.containerInfo,by=Ic,n=ac(n),sc(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var h=l.getSelection&&l.getSelection();if(h&&h.rangeCount!==0){l=h.anchorNode;var m=h.anchorOffset,R=h.focusNode;h=h.focusOffset;try{l.nodeType,R.nodeType}catch{l=null;break e}var _=0,G=-1,de=-1,ge=0,we=0,le=n,xe=null;t:for(;;){for(var Be;le!==l||m!==0&&le.nodeType!==3||(G=_+m),le!==R||h!==0&&le.nodeType!==3||(de=_+h),le.nodeType===3&&(_+=le.nodeValue.length),(Be=le.firstChild)!==null;)xe=le,le=Be;for(;;){if(le===n)break t;if(xe===l&&++ge===m&&(G=_),xe===R&&++we===h&&(de=_),(Be=le.nextSibling)!==null)break;le=xe,xe=le.parentNode}le=Be}l=G===-1||de===-1?null:{start:G,end:de}}else l=null}l=l||{start:0,end:0}}else l=null;for(vy={focusedElem:n,selectionRange:l},Ic=!1,o=(o&335544064)===o,Ar=r,r=o?9270:1024;Ar!==null;){if(n=Ar,o&&(l=n.deletions,l!==null))for(m=0;m<l.length;m++)o&&Ug(l[m]);if(n.alternate===null&&(n.flags&2)!==0)o&&s2(n),Nh(o);else{if(n.tag===22){if(l=n.alternate,n.memoizedState!==null){l!==null&&l.memoizedState===null&&o&&Ug(l),Nh(o);continue}else if(l!==null&&l.memoizedState!==null){o&&s2(n),Nh(o);continue}}l=n.child,(n.subtreeFlags&r)!==0&&l!==null?(l.return=n,Ar=l):(o&&l2(n),Nh(o))}}Oa=null}function Nh(n){for(;Ar!==null;){var r=Ar,o=n,l=r.alternate,h=r.flags;switch(r.tag){case 0:case 11:case 15:break;case 1:if((h&1024)!==0&&l!==null){o=void 0,h=l.memoizedProps,l=l.memoizedState;var m=r.stateNode;try{var R=ll(r.type,h);o=m.getSnapshotBeforeUpdate(R,l),m.__reactInternalSnapshotBeforeUpdate=o}catch(_){un(r,r.return,_)}}break;case 3:if((h&1024)!==0){if(l=r.stateNode.containerInfo,o=l.nodeType,o===9)jy(l);else if(o===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":jy(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:o&&l!==null&&(o=yo(l.memoizedProps,l.stateNode),h=r.memoizedProps,h=bo(h.default,h.update),h!=="none"&&bc(l,o,h,l.memoizedState=[],!0));break;default:if((h&1024)!==0)throw Error(s(163))}if(l=r.sibling,l!==null){l.return=r.return,Ar=l;break}Ar=r.return}}function f2(n,r,o){var l=o.flags;switch(o.tag){case 0:case 11:case 15:Zs(n,o),l&4&&sd(5,o);break;case 1:if(Zs(n,o),l&4)if(n=o.stateNode,r===null)try{n.componentDidMount()}catch(R){un(o,o.return,R)}else{var h=ll(o.type,r.memoizedProps);r=r.memoizedState;try{n.componentDidUpdate(h,r,n.__reactInternalSnapshotBeforeUpdate)}catch(R){un(o,o.return,R)}}l&64&&e2(o),l&512&&Gs(o,o.return);break;case 3:if(Zs(n,o),l&64&&(n=o.updateQueue,n!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{Hv(n,r)}catch(R){un(o,o.return,R)}}break;case 27:r===null&&l&4&&a2(o);case 26:case 5:Zs(n,o),r===null&&l&4&&_g(o),l&512&&Gs(o,o.return);break;case 12:Zs(n,o);break;case 31:Zs(n,o),l&4&&m2(n,o);break;case 13:Zs(n,o),l&4&&g2(n,o),l&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=r8.bind(null,o),_8(n,o))));break;case 22:if(l=o.memoizedState!==null||Rr,!l){var m=r!==null&&r.memoizedState!==null||on;r=Rr,h=on,Rr=l,(on=m)&&!h?(l=2,(o.subtreeFlags&8772)!==0&&(l|=1),$s(n,o,l)):Zs(n,o),Rr=r,on=h}break;case 30:Zs(n,o),l&512&&Gs(o,o.return);break;case 7:l&512&&Gs(o,o.return);default:Zs(n,o)}}function Yg(n,r){for(n=n.child;n!==null;)h2(n,r),n=n.sibling}function h2(n,r){switch(n.tag){case 5:case 26:try{var o=n.stateNode;if(r){var l=o.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var h=n.stateNode,m=n.memoizedProps.style,R=m!=null&&m.hasOwnProperty("display")?m.display:null;h.style.display=R==null||typeof R=="boolean"?"":(""+R).trim()}}catch(G){un(n,n.return,G)}Xg(n,r);break;case 6:try{n.stateNode.nodeValue=r?"":n.memoizedProps,_t=!0}catch(G){un(n,n.return,G)}break;case 18:try{var _=n.stateNode;r?sw(_,!0):sw(n.stateNode,!1)}catch(G){un(n,n.return,G)}break;case 22:case 23:n.memoizedState===null&&Yg(n,r);break;default:Yg(n,r)}}function Xg(n,r){if(n.subtreeFlags&67108864)for(n=n.child;n!==null;){e:{var o=n,l=r;switch(o.tag){case 4:h2(o,l);break e;case 22:o.memoizedState===null&&Xg(o,l);break e;default:Xg(o,l)}}n=n.sibling}}function p2(n){var r=n.alternate;r!==null&&(n.alternate=null,p2(r)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(r=n.stateNode,r!==null&&wn(r)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Dn=null,ya=!1;function Es(n,r,o){for(o=o.child;o!==null;)x2(n,r,o),o=o.sibling}function x2(n,r,o){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(hr,o)}catch{}switch(o.tag){case 26:on||qr(o,r),Es(n,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&!on&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:on||qr(o,r),od(o);var l=Dn,h=ya;mi(o.type)&&(Dn=o.stateNode,ya=!1),Es(n,r,o),bw(o.stateNode,o.type,o.memoizedProps),Dn=l,ya=h;break;case 5:on||qr(o,r),od(o);case 6:if(o.tag===6&&od(o),l=Dn,h=ya,Dn=null,Es(n,r,o),Dn=l,ya=h,Dn!==null)if(ya)try{(Dn.nodeType===9?Dn.body:Dn.nodeName==="HTML"?Dn.ownerDocument.body:Dn).removeChild(o.stateNode),_t=!0}catch(m){un(o,r,m)}else try{Dn.removeChild(o.stateNode),_t=!0}catch(m){un(o,r,m)}break;case 18:Dn!==null&&(ya?(n=Dn,aw(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),_c(n)):aw(Dn,o.stateNode));break;case 4:l=Dn,h=ya,Dn=o.stateNode.containerInfo,ya=!0,Es(n,r,o),Dn=l,ya=h;break;case 0:case 11:case 14:case 15:ci(2,o,r),on||ci(4,o,r),Es(n,r,o);break;case 1:on||(qr(o,r),l=o.stateNode,typeof l.componentWillUnmount=="function"&&t2(o,r,l)),Es(n,r,o);break;case 21:Es(n,r,o);break;case 22:on=(l=on)||o.memoizedState!==null,Es(n,r,o),on=l;break;case 30:qr(o,r),Es(n,r,o);break;case 7:on||qr(o,r),Es(n,r,o);break;default:Es(n,r,o)}}function m2(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{_c(n)}catch(o){un(r,r.return,o)}}}function g2(n,r){if(r.memoizedState===null&&(n=r.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{_c(n)}catch(o){un(r,r.return,o)}}function G6(n){switch(n.tag){case 31:case 13:case 19:var r=n.stateNode;return r===null&&(r=n.stateNode=new d2),r;case 22:return n=n.stateNode,r=n._retryCache,r===null&&(r=n._retryCache=new d2),r;default:throw Error(s(435,n.tag))}}function Lh(n,r){var o=G6(n);r.forEach(function(l){if(!o.has(l)){o.add(l);var h=a8.bind(null,n,l);l.then(h,h)}})}function sa(n,r,o){var l=r.deletions;if(l!==null)for(var h=0;h<l.length;h++){var m=l[h],R=n,_=r,G=_;e:for(;G!==null;){switch(G.tag){case 27:if(mi(G.type)){Dn=G.stateNode,ya=!1;break e}break;case 5:Dn=G.stateNode,ya=!1;break e;case 3:case 4:Dn=G.stateNode.containerInfo,ya=!0;break e}G=G.return}if(Dn===null)throw Error(s(160));x2(R,_,m),Dn=null,ya=!1,R=m.alternate,R!==null&&(R.return=null),m.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)y2(r,n,o),r=r.sibling}var Cs=null;function y2(n,r,o){var l=n.alternate,h=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(h&4&&(l=n.updateQueue,l=l!==null?l.events:null,l!==null))for(var m=0;m<l.length;m++){var R=l[m];R.ref.impl=R.nextImpl}sa(r,n,o),oa(n),h&4&&(ci(3,n,n.return),sd(3,n),ci(5,n,n.return));break;case 1:sa(r,n,o),oa(n),h&512&&(on||l===null||qr(l,l.return)),h&64&&Rr&&(n=n.updateQueue,n!==null&&(r=n.callbacks,r!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?r:o.concat(r))));break;case 26:if(m=Cs,sa(r,n,o),oa(n),h&512&&(on||l===null||qr(l,l.return)),h&4)if(h=l!==null?l.memoizedState:null,o=n.memoizedState,l===null)if(o===null)if(n.stateNode===null)if(Rr)n.stateNode=tw(n.type,n.memoizedProps,r.containerInfo,n);else{e:{r=n.type,o=n.memoizedProps,h=m.ownerDocument||m;t:switch(r){case"title":l=h.getElementsByTagName("title")[0],(!l||l[pr]||l[sn]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=h.createElement(r),h.head.insertBefore(l,h.querySelector("head > title"))),Hr(l,r,o),l[sn]=n,kt(l),r=l;break e;case"link":if(m=Cw("link","href",h).get(r+(o.href||""))){for(R=0;R<m.length;R++)if(l=m[R],l.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&l.getAttribute("rel")===(o.rel==null?null:o.rel)&&l.getAttribute("title")===(o.title==null?null:o.title)&&l.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){m.splice(R,1);break t}}l=h.createElement(r),Hr(l,r,o),h.head.appendChild(l);break;case"meta":if(m=Cw("meta","content",h).get(r+(o.content||""))){for(R=0;R<m.length;R++)if(l=m[R],l.getAttribute("content")===(o.content==null?null:""+o.content)&&l.getAttribute("name")===(o.name==null?null:o.name)&&l.getAttribute("property")===(o.property==null?null:o.property)&&l.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute("charset")===(o.charSet==null?null:o.charSet)){m.splice(R,1);break t}}l=h.createElement(r),Hr(l,r,o),h.head.appendChild(l);break;default:throw Error(s(468,r))}l[sn]=n,kt(l),r=l}n.stateNode=r}else Rr||Ly(m,n.type,n.stateNode);else n.stateNode=Ew(m,o,n.memoizedProps);else h!==o?(h===null?(r=l.stateNode,r===null||on||r.parentNode.removeChild(r)):h.count--,o===null?Rr||Ly(m,n.type,n.stateNode):Ew(m,o,n.memoizedProps)):o===null&&n.stateNode!==null&&Pg(n,n.memoizedProps,l.memoizedProps);break;case 27:sa(r,n,o),oa(n),h&512&&(on||l===null||qr(l,l.return)),l!==null&&h&4&&Pg(n,n.memoizedProps,l.memoizedProps);break;case 5:if(m=Ys,Ys=!1,sa(r,n,o),Ys=m,oa(n),h&512&&(on||l===null||qr(l,l.return)),n.flags&32){r=n.stateNode;try{Le(r,""),_t=!0}catch(ge){un(n,n.return,ge)}}h&4&&n.stateNode!=null&&(r=n.memoizedProps,Pg(n,r,l!==null?l.memoizedProps:r)),h&1024&&(Kg=!0);break;case 6:if(sa(r,n,o),oa(n),h&4){if(n.stateNode===null)throw Error(s(162));r=n.memoizedProps,o=n.stateNode;try{o.nodeValue=r,_t=!0}catch(ge){un(n,n.return,ge)}}break;case 3:if(_t=!1,Yh=null,m=Cs,Cs=md(r.containerInfo),sa(r,n,o),Cs=m,oa(n),h&4&&l!==null&&l.memoizedState.isDehydrated)try{_c(r.containerInfo)}catch(ge){un(n,n.return,ge)}Kg&&(Kg=!1,b2(n)),_t=!1;break;case 4:h=Ys,Ys=Rr,l=ho(),m=Cs,Cs=md(n.stateNode.containerInfo),sa(r,n,o),oa(n),Cs=m,_t&&id&&(zh=!0),_t=l,Ys=h;break;case 12:sa(r,n,o),oa(n);break;case 31:sa(r,n,o),oa(n),h&4&&(r=n.updateQueue,r!==null&&(n.updateQueue=null,Lh(n,r)));break;case 13:sa(r,n,o),oa(n),n.child.flags&8192&&n.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Ih=ft()),h&4&&(r=n.updateQueue,r!==null&&(n.updateQueue=null,Lh(n,r)));break;case 22:m=n.memoizedState!==null,R=l!==null&&l.memoizedState!==null;var _=Rr,G=on,de=Ys;Rr=_||m,Ys=de||m,on=G||R,sa(r,n,o),on=G,Ys=de,Rr=_,oa(n),h&8192&&(r=n.stateNode,r._visibility=m?r._visibility&-2:r._visibility|1,!m||l===null||R||Rr||on||(r=R||on,o=Rr,l=on,Rr=m||Rr,on=r,ui(n,2),Rr=o,on=l),!m&&Ys||Yg(n,m)),h&4&&(r=n.updateQueue,r!==null&&(o=r.retryQueue,o!==null&&(r.retryQueue=null,Lh(n,o))));break;case 19:sa(r,n,o),oa(n),h&4&&(r=n.updateQueue,r!==null&&(n.updateQueue=null,Lh(n,r)));break;case 30:h&512&&(on||l===null||qr(l,l.return)),h=ho(),m=id,R=(o&335544064)===o,_=n.memoizedProps,id=R&&bo(_.default,_.update)!=="none",sa(r,n,o),oa(n),R&&l!==null&&_t&&(n.flags|=4),id=m,_t=h;break;case 21:break;case 7:h&512&&(on||l===null||qr(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=n);default:sa(r,n,o),oa(n)}}function oa(n){var r=n.flags;if(r&2){try{for(var o,l=n.return;l!==null;){if(r2(l)){o=l;break}l=l.return}l=null;for(var h=n.return;h!==null;){if(Ig(h)){var m=h.stateNode;l===null?l=[m]:l.push(m)}if(Og(h))break;h=h.return}var R=l;if(o==null)throw Error(s(160));switch(o.tag){case 27:var _=o.stateNode,G=Bg(n);Th(n,G,_,R);break;case 5:var de=o.stateNode;o.flags&32&&(Le(de,""),o.flags&=-33);var ge=Bg(n);Th(n,ge,de,R);break;case 3:case 4:var we=o.stateNode.containerInfo,le=Bg(n);Fg(n,le,we,R);break;default:throw Error(s(161))}}catch(xe){un(n,n.return,xe)}n.flags&=-3}r&4096&&(n.flags&=-4097)}function b2(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var r=n;b2(r),r.tag===5&&r.flags&1024&&(r=r.stateNode,Ic=!0,r.reset(),Ic=!1),n=n.sibling}}function vc(n,r){if(r.subtreeFlags&9270)for(r=r.child;r!==null;)v2(r,n),r=r.sibling;else u2(r)}function v2(n,r){var o=n.alternate;if(o===null)qg(n,!1);else switch(n.tag){case 3:if(Wg=Xs=!1,o2(),vc(r,n),!Xs&&!zh){if(n=Ks,n!==null)for(var l=0;l<n.length;l+=3){o=n[l];var h=n[l+1];iw(o,n[l+2]),o=o.ownerDocument.documentElement,o!==null&&o.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+h+")"})}n=r.containerInfo,n=n.nodeType===9?n.documentElement:n.ownerDocument.documentElement,n!==null&&n.style.viewTransitionName===""&&(n.style.viewTransitionName="none",n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),n.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Wg=!0}Ks=null;break;case 5:vc(r,n);break;case 4:l=Xs,Xs=!1,vc(r,n),Xs&&(zh=!0),Xs=l;break;case 22:n.memoizedState===null&&(o.memoizedState!==null?qg(n,!1):vc(r,n));break;case 30:l=Xs,h=o2(),Xs=!1,vc(r,n),Xs&&(n.flags|=4);var m=n.memoizedProps,R=n.stateNode;r=yo(m,R),R=yo(o.memoizedProps,R);var _=bo(m.default,m.update);_==="none"?r=!1:(m=o.memoizedState,o.memoizedState=null,o=n.child,ga=0,r=Gg(n,o,r,R,_,m,!0),ga!==(m===null?0:m.length)&&(n.flags|=32)),(n.flags&4)!==0&&r?(jc(n,n.memoizedProps.onUpdate),Ks=h):h!==null&&(h.push.apply(h,Ks),Ks=h),Xs=(n.flags&32)!==0?!0:l;break;default:vc(r,n)}}function Zs(n,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)f2(n,r.alternate,r),r=r.sibling}function ui(n,r){for(n=n.child;n!==null;){var o=n,l=r;switch(o.tag){case 0:case 11:case 14:case 15:ci(4,o,o.return),ui(o,l);break;case 1:qr(o,o.return);var h=o.stateNode;typeof h.componentWillUnmount=="function"&&t2(o,o.return,h),ui(o,l);break;case 27:(l&2)!==0&&bw(o.stateNode,o.type,o.memoizedProps);case 5:qr(o,o.return),o.tag!==5&&o.tag!==27||od(o),ui(o,l);break;case 6:od(o);break;case 26:qr(o,o.return),h=o.stateNode,o.memoizedState!==null||h===null||on||h.parentNode.removeChild(h),ui(o,l);break;case 22:o.memoizedState===null&&ui(o,l);break;case 30:qr(o,o.return),ui(o,l);break;case 7:qr(o,o.return);default:ui(o,l)}n=n.sibling}}function $s(n,r,o){for(o=(r.subtreeFlags&8772)!==0?o:o&-2,r=r.child;r!==null;){var l=r.alternate,h=n,m=r,R=m.flags,_=(o&1)!==0;switch(m.tag){case 0:case 11:case 15:$s(h,m,o),sd(4,m);break;case 1:if($s(h,m,o),l=m,h=l.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(ge){un(l,l.return,ge)}if(l=m,h=l.updateQueue,h!==null){var G=l.stateNode;try{var de=h.shared.hiddenCallbacks;if(de!==null)for(h.shared.hiddenCallbacks=null,h=0;h<de.length;h++)qv(de[h],G)}catch(ge){un(l,l.return,ge)}}_&&R&64&&e2(m),Gs(m,m.return);break;case 27:(o&2)!==0&&a2(m);case 5:m.tag!==5&&m.tag!==27||n2(m),$s(h,m,o),_&&l===null&&R&4&&_g(m),Gs(m,m.return);break;case 6:n2(m);break;case 26:G=m.stateNode,m.memoizedState!==null||G===null||Rr||Ly(md(G.ownerDocument),m.type,G),$s(h,m,o),_&&l===null&&R&4&&_g(m),Gs(m,m.return);break;case 12:$s(h,m,o);break;case 31:$s(h,m,o),_&&R&4&&m2(h,m);break;case 13:$s(h,m,o),_&&R&4&&g2(h,m);break;case 22:m.memoizedState===null&&$s(h,m,o),Gs(m,m.return);break;case 30:$s(h,m,o),Gs(m,m.return);break;case 7:Gs(m,m.return);default:$s(h,m,o)}r=r.sibling}}function Zg(n,r){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(n=r.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&Gu(o))}function Qg(n,r){n=null,r.alternate!==null&&(n=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==n&&(r.refCount++,n!=null&&Gu(n))}function rs(n,r,o,l){var h=(o&335544064)===o;if(r.subtreeFlags&(h?10262:10256))for(r=r.child;r!==null;)k2(n,r,o,l),r=r.sibling;else h&&c2(r)}function k2(n,r,o,l){var h=(o&335544064)===o;h&&r.alternate===null&&r.return!==null&&r.return.alternate!==null&&Mh(r);var m=r.flags;switch(r.tag){case 0:case 11:case 15:rs(n,r,o,l),m&2048&&sd(9,r);break;case 1:rs(n,r,o,l);break;case 3:rs(n,r,o,l),h&&Wg&&(n=n.containerInfo,n=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,n.style.viewTransitionName==="root"&&(n.style.viewTransitionName=""),n=n.ownerDocument.documentElement,n!==null&&n.style.viewTransitionName==="none"&&(n.style.viewTransitionName="")),m&2048&&(m=null,r.alternate!==null&&(m=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==m&&(r.refCount++,m!=null&&Gu(m)));break;case 12:if(m&2048){rs(n,r,o,l),m=r.stateNode;try{var R=r.memoizedProps,_=R.id,G=R.onPostCommit;typeof G=="function"&&G(_,r.alternate===null?"mount":"update",m.passiveEffectDuration,-0)}catch(de){un(r,r.return,de)}}else rs(n,r,o,l);break;case 31:rs(n,r,o,l);break;case 13:rs(n,r,o,l);break;case 23:break;case 22:R=r.stateNode,_=r.alternate,r.memoizedState!==null?(h&&_!==null&&_.memoizedState===null&&Mh(_),R._visibility&2?rs(n,r,o,l):ld(n,r)):(h&&_!==null&&_.memoizedState!==null&&Mh(r),R._visibility&2?rs(n,r,o,l):(R._visibility|=2,kc(n,r,o,l,(r.subtreeFlags&10256)!==0||!1))),m&2048&&Zg(_,r);break;case 24:rs(n,r,o,l),m&2048&&Qg(r.alternate,r);break;case 30:h&&(m=r.alternate,m!==null&&(Ws(m.child,!0),Ws(r.child,!0))),rs(n,r,o,l);break;default:rs(n,r,o,l)}}function kc(n,r,o,l,h){for(h=h&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var m=n,R=r,_=o,G=l,de=R.flags;switch(R.tag){case 0:case 11:case 15:kc(m,R,_,G,h),sd(8,R);break;case 23:break;case 22:var ge=R.stateNode;R.memoizedState!==null?ge._visibility&2?kc(m,R,_,G,h):ld(m,R):(ge._visibility|=2,kc(m,R,_,G,h)),h&&de&2048&&Zg(R.alternate,R);break;case 24:kc(m,R,_,G,h),h&&de&2048&&Qg(R.alternate,R);break;default:kc(m,R,_,G,h)}r=r.sibling}}function ld(n,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=n,l=r,h=l.flags;switch(l.tag){case 22:ld(o,l),h&2048&&Zg(l.alternate,l);break;case 24:ld(o,l),h&2048&&Qg(l.alternate,l);break;default:ld(o,l)}r=r.sibling}}var cl=8192;function ul(n,r,o){if(n.subtreeFlags&cl)for(n=n.child;n!==null;)w2(n,r,o),n=n.sibling}function w2(n,r,o){switch(n.tag){case 26:ul(n,r,o),n.flags&cl&&(n.memoizedState!==null?Q8(o,Cs,n.memoizedState,n.memoizedProps):(n=n.stateNode,(r&335544128)===r&&Rw(o,n)));break;case 5:ul(n,r,o),n.flags&cl&&(n=n.stateNode,(r&335544128)===r&&Rw(o,n));break;case 3:case 4:var l=Cs;Cs=md(n.stateNode.containerInfo),ul(n,r,o),Cs=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=cl,cl=16777216,ul(n,r,o),cl=l):ul(n,r,o));break;case 30:if((n.flags&cl)!==0&&(l=n.memoizedProps.name,l!=null&&l!=="auto")){var h=n.stateNode;h.paired=null,Oa===null&&(Oa=new Map),Oa.set(l,h)}ul(n,r,o);break;default:ul(n,r,o)}}function S2(n){var r=n.alternate;if(r!==null&&(n=r.child,n!==null)){r.child=null;do r=n.sibling,n.sibling=null,n=r;while(n!==null)}}function cd(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var l=r[o];Ar=l,C2(l,n)}S2(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)E2(n),n=n.sibling}function E2(n){switch(n.tag){case 0:case 11:case 15:cd(n),n.flags&2048&&ci(9,n,n.return);break;case 3:cd(n);break;case 12:cd(n);break;case 22:var r=n.stateNode;n.memoizedState!==null&&r._visibility&2&&(n.return===null||n.return.tag!==13)?(r._visibility&=-3,Dh(n)):cd(n);break;default:cd(n)}}function Dh(n){var r=n.deletions;if((n.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var l=r[o];Ar=l,C2(l,n)}S2(n)}for(n=n.child;n!==null;){switch(r=n,r.tag){case 0:case 11:case 15:ci(8,r,r.return),Dh(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,Dh(r));break;default:Dh(r)}n=n.sibling}}function C2(n,r){for(;Ar!==null;){var o=Ar;switch(o.tag){case 0:case 11:case 15:ci(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var l=o.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Gu(o.memoizedState.cache)}if(l=o.child,l!==null)l.return=o,Ar=l;else e:for(o=n;Ar!==null;){l=Ar;var h=l.sibling,m=l.return;if(p2(l),l===o){Ar=null;break e}if(h!==null){h.return=m,Ar=h;break e}Ar=m}}}var K6={getCacheForType:function(n){var r=Pr(or),o=r.data.get(n);return o===void 0&&(o=n(),r.data.set(n,o)),o},cacheSignal:function(){return Pr(or).controller.signal}},W6=typeof WeakMap=="function"?WeakMap:Map,rn=0,En=null,qt=null,Wt=0,cn=0,Ia=null,di=!1,wc=!1,Jg=!1,To=0,Yn=0,fi=0,dl=0,Oh=0,_a=0,Sc=0,ud=null,ba=null,ey=!1,Ih=0,$2=0,_h=1/0,Ph=null,hi=null,Pn=0,js=null,fl=null,Qs=0,ty=0,ny=null,j2=null,Ec=null,Cc=null,$c=null,dd=0,Bh=null;function Pa(){return(rn&2)!==0&&Wt!==0?Wt&-Wt:ie.T!==null?fy():Un()}function T2(){if(_a===0)if((Wt&536870912)===0||Ot){var n=be;be<<=1,(be&3932160)===0&&(be=262144),_a=n}else _a=536870912;return n=Br.current,n!==null&&(n.flags|=32),_a}function jc(n,r){if(r!=null){var o=n.stateNode,l=o.ref;l===null&&(l=o.ref=lw(yo(n.memoizedProps,o))),Cc===null&&(Cc=[]),Cc.push(r.bind(null,l))}}function va(n,r,o){(n===En&&(cn===2||cn===9)||n.cancelPendingCommit!==null)&&(Tc(n,0),pi(n,Wt,_a,!1)),ot(n,o),((rn&2)===0||n!==En)&&(n===En&&((rn&2)===0&&(dl|=o),Yn===4&&pi(n,Wt,_a,!1)),Js(n))}function R2(n,r,o){if((rn&6)!==0)throw Error(s(327));var l=!o&&(r&127)===0&&(r&n.expiredLanes)===0||ze(n,r),h=l?Z6(n,r):ay(n,r,!0),m=l;do{if(h===0){wc&&!l&&pi(n,r,0,!1);break}else{if(o=n.current.alternate,m&&!Y6(o)){h=ay(n,r,!1),m=!1;continue}if(h===2){if(m=r,n.errorRecoveryDisabledLanes&m)var R=0;else R=n.pendingLanes&-536870913,R=R!==0?R:R&536870912?536870912:0;if(R!==0){r=R;e:{var _=n;h=ud;var G=_.current.memoizedState.isDehydrated;if(G&&(Tc(_,R).flags|=256),R=ay(_,R,!1),R!==2&&R!==6){if(Jg&&!G){_.errorRecoveryDisabledLanes|=m,dl|=m,h=4;break e}m=ba,ba=h,m!==null&&(ba===null?ba=m:ba.push.apply(ba,m))}h=R}if(m=!1,h!==2)continue}}if(h===1){Tc(n,0),pi(n,r,0,!0);break}e:{switch(l=n,m=h,m){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r&&(r&62914560)!==r)break;case 6:pi(l,r,_a,!di);break e;case 2:ba=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(h=Ih+300-ft(),10<h)){if(pi(l,r,_a,!di),Xe(l,0,!0)!==0)break e;Qs=r,l.timeoutHandle=Sy(A2.bind(null,l,o,ba,Ph,ey,r,_a,dl,Sc,di,m,"Throttled",-0,0),h);break e}A2(l,o,ba,Ph,ey,r,_a,dl,Sc,di,m,null,-0,0)}}break}while(!0);Js(n)}function A2(n,r,o,l,h,m,R,_,G,de,ge,we,le,xe){n.timeoutHandle=-1;var Be=r.subtreeFlags,et=(m&335544064)===m;if(we=null,(et||Be&8192||(Be&16785408)===16785408)&&(we={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ya},Oa=null,w2(r,m,we),et&&(Be=we,et=n.containerInfo,et=(et.nodeType===9?et:et.ownerDocument).__reactViewTransition,et!=null&&(Be.count++,Be.waitingForViewTransition=!0,Be=bd.bind(Be),et.finished.then(Be,Be))),Be=(m&62914560)===m?Ih-ft():(m&4194048)===m?$2-ft():0,Be=J8(we,Be),Be!==null)){Qs=m,n.cancelPendingCommit=Be(_2.bind(null,n,r,m,o,l,h,R,_,G,de,ge,we,null,le,xe)),pi(n,m,R,!de);return}_2(n,r,m,o,l,h,R,_,G,de,ge,we)}function Y6(n){for(var r=n;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var l=0;l<o.length;l++){var h=o[l],m=h.getSnapshot;h=h.value;try{if(!gr(m(),h))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===n)break;for(;r.sibling===null;){if(r.return===null||r.return===n)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function pi(n,r,o,l){r=qe(n,r),r&=~Oh,r&=~dl,n.suspendedLanes|=r,n.pingedLanes&=~r,l&&(n.warmLanes|=r),l=n.expirationTimes;for(var h=r;0<h;){var m=31-Jn(h),R=1<<m;l[m]=-1,h&=~R}o!==0&&Zt(n,o,r)}function Fh(){return(rn&6)===0?(fd(0),!1):!0}function ry(){if(qt!==null){if(cn===0)var n=qt.return;else n=qt,wo=Ji=null,dg(n),pc=null,Yu=0,n=qt;for(;n!==null;)Jk(n.alternate,n),n=n.return;qt=null}}function Tc(n,r){var o=n.timeoutHandle;return o!==-1&&(n.timeoutHandle=-1,b8(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),Qs=0,ry(),En=n,qt=o=vo(n.current,null),Wt=r,cn=0,Ia=null,di=!1,wc=ze(n,r),Jg=!1,Sc=_a=Oh=dl=fi=Yn=0,ba=ud=null,ey=!1,To=qe(n,r),Yf(),o}function M2(n,r){Mt=null,ie.H=vh,r===hc||r===oh?(r=_v(),cn=3):r===Qm?(r=_v(),cn=4):cn=r===$g?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Ia=r,qt===null&&(Yn=1,kh(n,Ja(r,n.current)))}function z2(){var n=Br.current;return n===null?!0:(Wt&4194048)===Wt?Yr===null:(Wt&62914560)===Wt||(Wt&536870912)!==0?n===Yr:!1}function N2(){var n=ie.H;return ie.H=vh,n===null?vh:n}function L2(){var n=ie.A;return ie.A=K6,n}function qh(){Yn=4,di||(Wt&4194048)!==Wt&&Br.current!==null||(wc=!0),(fi&134217727)===0&&(dl&134217727)===0||En===null||pi(En,Wt,_a,!1)}function ay(n,r,o){var l=rn;rn|=2;var h=N2(),m=L2();(En!==n||Wt!==r)&&(Ph=null,Tc(n,r)),r=!1;var R=Yn;e:do try{if(cn!==0&&qt!==null){var _=qt,G=Ia;switch(cn){case 8:ry(),R=6;break e;case 3:case 2:case 9:case 6:Br.current===null&&(r=!0);var de=cn;if(cn=0,Ia=null,Rc(n,_,G,de),o&&wc){R=0;break e}break;default:de=cn,cn=0,Ia=null,Rc(n,_,G,de)}}X6(),R=Yn;break}catch(ge){M2(n,ge)}while(!0);return r&&n.shellSuspendCounter++,wo=Ji=null,rn=l,ie.H=h,ie.A=m,qt===null&&(En=null,Wt=0,Yf()),R}function X6(){for(;qt!==null;)D2(qt)}function Z6(n,r){var o=rn;rn|=2;var l=N2(),h=L2();En!==n||Wt!==r?(Ph=null,_h=ft()+500,Tc(n,r)):wc=ze(n,r);e:do try{if(cn!==0&&qt!==null){r=qt;var m=Ia;t:switch(cn){case 1:cn=0,Ia=null,Rc(n,r,m,1);break;case 2:case 9:if(Ov(m)){cn=0,Ia=null,O2(r);break}r=function(){cn!==2&&cn!==9||En!==n||(cn=7),Js(n)},m.then(r,r);break e;case 3:cn=7;break e;case 4:cn=5;break e;case 7:Ov(m)?(cn=0,Ia=null,O2(r)):(cn=0,Ia=null,Rc(n,r,m,7));break;case 5:var R=null;switch(qt.tag){case 26:R=qt.memoizedState;case 5:case 27:var _=qt;if(R?jw(R):_.stateNode.complete){cn=0,Ia=null;var G=_.sibling;if(G!==null)qt=G;else{var de=_.return;de!==null?(qt=de,Hh(de)):qt=null}break t}}cn=0,Ia=null,Rc(n,r,m,5);break;case 6:cn=0,Ia=null,Rc(n,r,m,6);break;case 8:ry(),Yn=6;break e;default:throw Error(s(462))}}Q6();break}catch(ge){M2(n,ge)}while(!0);return wo=Ji=null,ie.H=l,ie.A=h,rn=o,qt!==null?0:(En=null,Wt=0,Yf(),Yn)}function Q6(){for(;qt!==null&&!mn();)D2(qt)}function D2(n){var r=Zk(n.alternate,n,To);n.memoizedProps=n.pendingProps,r===null?Hh(n):qt=r}function O2(n){var r=n,o=r.alternate;switch(r.tag){case 15:case 0:r=Uk(o,r,r.pendingProps,r.type,void 0,Wt);break;case 11:r=Uk(o,r,r.pendingProps,r.type.render,r.ref,Wt);break;case 5:dg(r);var l=r;l===Tr&&(Ot?(th(l),l.tag===5&&l.stateNode!=null&&($n=l.stateNode)):(th(l),Ot=!0));default:Jk(o,r),r=qt=Cv(r,To),r=Zk(o,r,To)}n.memoizedProps=n.pendingProps,r===null?Hh(n):qt=r}function Rc(n,r,o,l){wo=Ji=null,dg(r),pc=null,Yu=0;var h=r.return;try{if(P6(n,h,r,o,Wt)){Yn=1,kh(n,Ja(o,n.current)),qt=null;return}}catch(m){if(h!==null)throw qt=h,m;Yn=1,kh(n,Ja(o,n.current)),qt=null;return}r.flags&32768?(Ot||l===1?n=!0:wc||(Wt&536870912)!==0?n=!1:(di=n=!0,(l===2||l===9||l===3||l===6)&&(l=Br.current,l!==null&&l.tag===13&&(l.flags|=16384))),I2(r,n)):Hh(r)}function Hh(n){var r=n;do{if((r.flags&32768)!==0){I2(r,di);return}n=r.return;var o=H6(r.alternate,r,To);if(o!==null){qt=o;return}if(r=r.sibling,r!==null){qt=r;return}qt=r=n}while(r!==null);Yn===0&&(Yn=5)}function I2(n,r){do{var o=U6(n.alternate,n);if(o!==null){o.flags&=32767,qt=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(n=n.sibling,n!==null)){qt=n;return}qt=n=o}while(n!==null);Yn=6,qt=null}function _2(n,r,o,l,h,m,R,_,G,de,ge,we){n.cancelPendingCommit=null;do Uh();while(Pn!==0);if((rn&6)!==0)throw Error(s(327));if(r!==null){if(r===n.current)throw Error(s(177));n===En&&(qt=En=null,Wt=0),fl=r,js=n,Qs=o,ny=h,j2=l,J6(n,r,o,R,_,G,we)}}function J6(n,r,o,l,h,m,R){var _=r.lanes|r.childLanes;if(ty=_,_|=Pm,Ft(n,o,_,l,h,m),Cc=null,(o&335544064)===o?($c=j6(n),l=10262):($c=null,l=10256),(r.subtreeFlags&l)!==0||(r.flags&l)!==0?(n.callbackNode=null,n.callbackPriority=0,s8(vn,function(){return ly(),null})):(n.callbackNode=null,n.callbackPriority=0),Rh=!1,l=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||l){l=ie.T,ie.T=null,h=$e.p,$e.p=2,m=rn,rn|=4;try{V6(n,r,o)}finally{rn=m,$e.p=h,ie.T=l}}Pn=1,Rh?Ec=C8(R,n.containerInfo,$c,sy,oy,t8,iy,ly,e8):(sy(),oy(),iy())}function e8(n){if(Pn!==0){var r=js.onRecoverableError;r(n,{componentStack:null})}}function t8(){Pn===3&&(Pn=0,v2(fl,js),Pn=4)}function sy(){if(Pn===1){Pn=0;var n=js,r=fl,o=Qs,l=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||l){l=ie.T,ie.T=null;var h=$e.p;$e.p=2;var m=rn;rn|=4;try{id=zh=!1,y2(r,n,o),o=vy;var R=ac(n.containerInfo),_=o.focusedElem,G=o.selectionRange;if(R!==_&&_&&_.ownerDocument&&Fu(_.ownerDocument.documentElement,_)){if(G!==null&&sc(_)){var de=G.start,ge=G.end;if(ge===void 0&&(ge=de),"selectionStart"in _)_.selectionStart=de,_.selectionEnd=Math.min(ge,_.value.length);else{var we=_.ownerDocument||document,le=we&&we.defaultView||window;if(le.getSelection){var xe=le.getSelection(),Be=_.textContent.length,et=Math.min(G.start,Be),zt=G.end===void 0?et:Math.min(G.end,Be);!xe.extend&&et>zt&&(R=zt,zt=et,et=R);var ce=rc(_,et),re=rc(_,zt);if(ce&&re&&(xe.rangeCount!==1||xe.anchorNode!==ce.node||xe.anchorOffset!==ce.offset||xe.focusNode!==re.node||xe.focusOffset!==re.offset)){var he=we.createRange();he.setStart(ce.node,ce.offset),xe.removeAllRanges(),et>zt?(xe.addRange(he),xe.extend(re.node,re.offset)):(he.setEnd(re.node,re.offset),xe.addRange(he))}}}}for(we=[],xe=_;xe=xe.parentNode;)xe.nodeType===1&&we.push({element:xe,left:xe.scrollLeft,top:xe.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<we.length;_++){var ke=we[_];ke.element.scrollLeft=ke.left,ke.element.scrollTop=ke.top}}Ic=!!by,vy=by=null}finally{rn=m,$e.p=h,ie.T=l}}n.current=r,Pn=2}}function oy(){if(Pn===2){Pn=0;var n=js,r=fl,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=ie.T,ie.T=null;var l=$e.p;$e.p=2;var h=rn;rn|=4;try{f2(n,r.alternate,r)}finally{rn=h,$e.p=l,ie.T=o}}Pn=3}}function iy(){if(Pn===4||Pn===3){Pn=0;var n=Ec;Ec=null,_n();var r=js,o=fl,l=Qs,h=j2,m=(l&335544064)===l?10262:10256;if((o.subtreeFlags&m)!==0||(o.flags&m)!==0?Pn=5:(Pn=0,fl=js=null,P2(r,r.pendingLanes)),m=r.pendingLanes,m===0&&(hi=null),zn(l),o=o.stateNode,nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(hr,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=ie.T,m=$e.p,$e.p=2,ie.T=null;try{for(var R=r.onRecoverableError,_=0;_<h.length;_++){var G=h[_];R(G.value,{componentStack:G.stack})}}finally{ie.T=o,$e.p=m}}if(h=Cc,R=$c,$c=null,h!==null&&(Cc=null,R===null&&(R=[]),n!==null))for(G=0;G<h.length;G++)o=(0,h[G])(R),o!==void 0&&n.finished.finally(o);(Qs&3)!==0&&Uh(),Js(r),m=r.pendingLanes,(l&261930)!==0&&(m&42)!==0?r===Bh?dd++:(dd=0,Bh=r):(dd=0,Bh=null),fd(0)}}function P2(n,r){(n.pooledCacheLanes&=r)===0&&(r=n.pooledCache,r!=null&&(n.pooledCache=null,Gu(r)))}function Uh(){return Ec!==null&&(Ec.skipTransition(),Ec=null),sy(),oy(),iy(),ly()}function ly(){if(Pn!==5)return!1;var n=js,r=ty;ty=0;var o=zn(Qs),l=ie.T,h=$e.p;try{$e.p=32>o?32:o,ie.T=null,o=ny,ny=null;var m=js,R=Qs;if(Pn=0,fl=js=null,Qs=0,(rn&6)!==0)throw Error(s(331));var _=rn;if(rn|=4,E2(m.current),k2(m,m.current,R,o),rn=_,fd(0,!1),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(hr,m)}catch{}return!0}finally{$e.p=h,ie.T=l,P2(n,r)}}function B2(n,r,o){r=Ja(o,r),r=Cg(n.stateNode,r,2),n=si(n,r,2),n!==null&&(ot(n,2),Js(n))}function un(n,r,o){if(n.tag===3)B2(n,n,o);else for(;r!==null;){if(r.tag===3){B2(r,n,o);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(hi===null||!hi.has(l))){n=Ja(o,n),o=Ok(2),l=si(r,o,2),l!==null&&(Ik(o,l,r,n),ot(l,2),Js(l));break}}r=r.return}}function cy(n,r,o){var l=n.pingCache;if(l===null){l=n.pingCache=new W6;var h=new Set;l.set(r,h)}else h=l.get(r),h===void 0&&(h=new Set,l.set(r,h));h.has(o)||(Jg=!0,h.add(o),n=n8.bind(null,n,r,o),r.then(n,n))}function n8(n,r,o){var l=n.pingCache;l!==null&&l.delete(r),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,En===n&&(Wt&o)===o&&((Yn===4||Yn===3&&(Wt&62914560)===Wt&&300>ft()-Ih)&&(rn&2)===0?Tc(n,0):Oh|=o,Sc===Wt&&(Sc=0)),Js(n)}function F2(n,r){r===0&&(r=rt()),n=Xi(n,r),n!==null&&(ot(n,r),Js(n))}function r8(n){var r=n.memoizedState,o=0;r!==null&&(o=r.retryLane),F2(n,o)}function a8(n,r){var o=0;switch(n.tag){case 31:case 13:var l=n.stateNode,h=n.memoizedState;h!==null&&(o=h.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(r),F2(n,o)}function s8(n,r){return an(n,r)}var Ac=null,Mc=null,uy=!1,Vh=!1,dy=!1,xi=0;function Js(n){n!==Mc&&n.next===null&&(Mc===null?Ac=Mc=n:Mc=Mc.next=n),Vh=!0,uy||(uy=!0,i8())}function fd(n,r){if(!dy&&Vh){dy=!0;do for(var o=!1,l=Ac;l!==null;){if(n!==0){var h=l.pendingLanes;if(h===0)var m=0;else{var R=l.suspendedLanes,_=l.pingedLanes;m=(1<<31-Jn(42|n)+1)-1,m&=h&~(R&~_),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(o=!0,V2(l,m))}else m=Wt,m=Xe(l,l===En?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||ze(l,m)||(o=!0,V2(l,m));l=l.next}while(o);dy=!1}}function o8(){q2()}function q2(){Vh=uy=!1;var n=0;xi!==0&&y8()&&(n=xi);for(var r=ft(),o=null,l=Ac;l!==null;){var h=l.next,m=H2(l,r);m===0?(l.next=null,o===null?Ac=h:o.next=h,h===null&&(Mc=o)):(o=l,(n!==0||(m&3)!==0)&&(Vh=!0)),l=h}Pn!==0&&Pn!==5||fd(n),xi!==0&&(xi=0)}function H2(n,r){for(var o=n.suspendedLanes,l=n.pingedLanes,h=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var R=31-Jn(m),_=1<<R,G=h[R];G===-1?((_&o)===0||(_&l)!==0)&&(h[R]=dt(_,r)):G<=r&&(n.expiredLanes|=_),m&=~_}if(r=En,o=Wt,o=Xe(n,n===r?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,o===0||n===r&&(cn===2||cn===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Hn(l),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||ze(n,o)){if(r=o&-o,r===n.callbackPriority)return r;switch(l!==null&&Hn(l),zn(o)){case 2:case 8:o=bn;break;case 32:o=vn;break;case 268435456:o=Aa;break;default:o=vn}return l=U2.bind(null,n),o=an(o,l),n.callbackPriority=r,n.callbackNode=o,r}return l!==null&&l!==null&&Hn(l),n.callbackPriority=2,n.callbackNode=null,2}function U2(n,r){if(Pn!==0&&Pn!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Uh()&&n.callbackNode!==o)return null;var l=Wt;return l=Xe(n,n===En?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(R2(n,l,r),H2(n,ft()),n.callbackNode!=null&&n.callbackNode===o?U2.bind(null,n):null)}function V2(n,r){if(Uh())return null;R2(n,r,!0)}function i8(){v8(function(){(rn&6)!==0?an(Cn,o8):q2()})}function fy(){if(xi===0){var n=nl;n===0&&(n=ue,ue<<=1,(ue&261888)===0&&(ue=256)),xi=n}return xi}function G2(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Vo(n)}function l8(n,r,o,l,h){if(r==="submit"&&o&&o.stateNode===h){var m=G2((h[kn]||null).action),R=l.submitter;R&&(r=(r=R[kn]||null)?G2(r.formAction):R.getAttribute("formAction"),r!==null&&(m=r,R=null));var _=new Kl("action","action",null,l,h);n.push({event:_,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xi!==0){var G=new FormData(h,R);vg(o,{pending:!0,data:G,method:h.method,action:m},null,G)}}else typeof m=="function"&&(_.preventDefault(),G=new FormData(h,R),vg(o,{pending:!0,data:G,method:h.method,action:m},m,G))},currentTarget:h}]})}}for(var hy=0;hy<_m.length;hy++){var py=_m[hy],c8=py.toLowerCase(),u8=py[0].toUpperCase()+py.slice(1);Ss(c8,"on"+u8)}Ss(yv,"onAnimationEnd"),Ss(bv,"onAnimationIteration"),Ss(vv,"onAnimationStart"),Ss("dblclick","onDoubleClick"),Ss("focusin","onFocus"),Ss("focusout","onBlur"),Ss(b6,"onTransitionRun"),Ss(v6,"onTransitionStart"),Ss(k6,"onTransitionCancel"),Ss(kv,"onTransitionEnd"),vs("onMouseEnter",["mouseout","mouseover"]),vs("onMouseLeave",["mouseout","mouseover"]),vs("onPointerEnter",["pointerout","pointerover"]),vs("onPointerLeave",["pointerout","pointerover"]),za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),za("onBeforeInput",["compositionend","keypress","textInput","paste"]),za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hd="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(" "),d8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hd));function K2(n,r){r=(r&4)!==0;for(var o=0;o<n.length;o++){var l=n[o],h=l.event;l=l.listeners;e:{var m=void 0;if(r)for(var R=l.length-1;0<=R;R--){var _=l[R],G=_.instance,de=_.currentTarget;if(_=_.listener,G!==m&&h.isPropagationStopped())break e;m=_,h.currentTarget=de;try{m(h)}catch(ge){Wf(ge)}h.currentTarget=null,m=G}else for(R=0;R<l.length;R++){if(_=l[R],G=_.instance,de=_.currentTarget,_=_.listener,G!==m&&h.isPropagationStopped())break e;m=_,h.currentTarget=de;try{m(h)}catch(ge){Wf(ge)}h.currentTarget=null,m=G}}}}function Ht(n,r){var o=r[ar];o===void 0&&(o=r[ar]=new Set);var l=n+"__bubble";o.has(l)||(W2(r,n,2,!1),o.add(l))}function xy(n,r,o){var l=0;r&&(l|=4),W2(o,n,l,r)}var Gh="_reactListening"+Math.random().toString(36).slice(2);function my(n){if(!n[Gh]){n[Gh]=!0,uo.forEach(function(o){o!=="selectionchange"&&(d8.has(o)||xy(o,!1,n),xy(o,!0,n))});var r=n.nodeType===9?n:n.ownerDocument;r===null||r[Gh]||(r[Gh]=!0,xy("selectionchange",!1,r))}}function W2(n,r,o,l){switch(Iw(r)){case 2:var h=r7;break;case 8:h=a7;break;default:h=Oy}o=h.bind(null,r,o,n),h=void 0,!Hl||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),l?h!==void 0?n.addEventListener(r,o,{capture:!0,passive:h}):n.addEventListener(r,o,!0):h!==void 0?n.addEventListener(r,o,{passive:h}):n.addEventListener(r,o,!1)}function gy(n,r,o,l,h){var m=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var R=l.tag;if(R===3||R===4){var _=l.stateNode.containerInfo;if(_===h)break;if(R===4)for(R=l.return;R!==null;){var G=R.tag;if((G===3||G===4)&&R.stateNode.containerInfo===h)return;R=R.return}for(;_!==null;){if(R=Nn(_),R===null)return;if(G=R.tag,G===5||G===6||G===26||G===27){l=m=R;continue e}_=_.parentNode}}l=l.return}_f(function(){var de=m,ge=mr(o),we=[];e:{var le=wv.get(n);if(le!==void 0){var xe=Kl,Be=n;switch(n){case"keypress":if(Vl(o)===0)break e;case"keydown":case"keyup":xe=O;break;case"focusin":Be="focus",xe=Yl;break;case"focusout":Be="blur",xe=Yl;break;case"beforeblur":case"afterblur":xe=Yl;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":xe=Ff;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":xe=Hf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":xe=De;break;case yv:case bv:case vv:xe=Hi;break;case kv:xe=Ve;break;case"scroll":case"scrollend":xe=Am;break;case"wheel":xe=yt;break;case"copy":case"cut":case"paste":xe=Xl;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":xe=X;break;case"submit":xe=Ce;break;case"toggle":case"beforetoggle":xe=Tn}var et=(r&4)!==0,zt=!et&&(n==="scroll"||n==="scrollend"),ce=et?le!==null?le+"Capture":null:le;et=[];for(var re=de,he;re!==null;){var ke=re;if(he=ke.stateNode,ke=ke.tag,ke!==5&&ke!==26&&ke!==27||he===null||ce===null||(ke=Go(re,ce),ke!=null&&et.push(pd(re,ke,he))),zt)break;re=re.return}0<et.length&&(le=new xe(le,Be,null,o,ge),we.push({event:le,listeners:et}))}}if((r&7)===0){e:{if(xe=n==="mouseover"||n==="pointerover",le=n==="mouseout"||n==="pointerout",xe&&o!==Fi&&(Be=o.relatedTarget||o.fromElement)&&(Nn(Be)||Be[Gn]))break e;(le||xe)&&(Be=ge.window===ge?ge:(xe=ge.ownerDocument)?xe.defaultView||xe.parentWindow:window,le?(xe=o.relatedTarget||o.toElement,le=de,xe=xe?Nn(xe):null,xe!==null&&(zt=c(xe),et=xe.tag,xe!==zt||et!==5&&et!==27&&et!==6)&&(xe=null)):(le=null,xe=de),le!==xe&&(et=Ff,ke="onMouseLeave",ce="onMouseEnter",re="mouse",(n==="pointerout"||n==="pointerover")&&(et=X,ke="onPointerLeave",ce="onPointerEnter",re="pointer"),zt=le==null?Be:Ma(le),he=xe==null?Be:Ma(xe),Be=new et(ke,re+"leave",le,o,ge),Be.target=zt,Be.relatedTarget=he,ke=null,Nn(ge)===de&&(et=new et(ce,re+"enter",xe,o,ge),et.target=he,et.relatedTarget=zt,ke=et),zt=ke,et=le&&xe?L(le,xe,f8):null,le!==null&&Y2(we,Be,le,et,!1),xe!==null&&zt!==null&&Y2(we,zt,xe,et,!0)))}e:{if(le=de?Ma(de):window,xe=le.nodeName&&le.nodeName.toLowerCase(),xe==="select"||xe==="input"&&le.type==="file")var Je=Ql;else if(Kn(le))if(Pu)Je=tc;else{Je=qs;var Yt=xa}else xe=le.nodeName,!xe||xe.toLowerCase()!=="input"||le.type!=="checkbox"&&le.type!=="radio"?de&&Fl(de.elementType)&&(Je=Ql):Je=Ui;if(Je&&(Je=Je(n,de))){Fs(we,Je,o,ge);break e}Yt&&Yt(n,le,de)}switch(Yt=de?Ma(de):window,n){case"focusin":(Kn(Yt)||Yt.contentEditable==="true")&&(Hs=Yt,Ki=de,go=null);break;case"focusout":go=Ki=Hs=null;break;case"mousedown":qu=!0;break;case"contextmenu":case"mouseup":case"dragend":qu=!1,Hu(we,o,ge);break;case"selectionchange":if(Gi)break;case"keydown":case"keyup":Hu(we,o,ge)}var lt;if(Ae)e:{switch(n){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else Sn?Kt(n,o)&&(mt="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(mt="onCompositionStart");mt&&(it&&o.locale!=="ko"&&(Sn||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Sn&&(lt=Pf()):(Ln=ge,_u="value"in Ln?Ln.value:Ln.textContent,Sn=!0)),Yt=Kh(de,mt),0<Yt.length&&(mt=new Gf(mt,n,null,o,ge),we.push({event:mt,listeners:Yt}),lt?mt.data=lt:(lt=gn(o),lt!==null&&(mt.data=lt)))),(lt=Ye?Pt(n,o):sr(n,o))&&(mt=Kh(de,"onBeforeInput"),0<mt.length&&(Yt=new Gf("onBeforeInput","beforeinput",null,o,ge),we.push({event:Yt,listeners:mt}),Yt.data=lt)),l8(we,n,de,o,ge)}K2(we,r)})}function pd(n,r,o){return{instance:n,listener:r,currentTarget:o}}function Kh(n,r){for(var o=r+"Capture",l=[];n!==null;){var h=n,m=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||m===null||(h=Go(n,o),h!=null&&l.unshift(pd(n,h,m)),h=Go(n,r),h!=null&&l.push(pd(n,h,m))),n.tag===3)return l;n=n.return}return[]}function f8(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function Y2(n,r,o,l,h){for(var m=r._reactName,R=[];o!==null&&o!==l;){var _=o,G=_.alternate,de=_.stateNode;if(_=_.tag,G!==null&&G===l)break;_!==5&&_!==26&&_!==27||de===null||(G=de,h?(de=Go(o,m),de!=null&&R.unshift(pd(o,de,G))):h||(de=Go(o,m),de!=null&&R.push(pd(o,de,G)))),o=o.return}R.length!==0&&n.push({event:r,listeners:R})}var h8=/\r\n?/g,p8=/\u0000|\uFFFD/g;function X2(n){return(typeof n=="string"?n:""+n).replace(h8,`
10
+ `).replace(p8,"")}function Z2(n,r){return r=X2(r),X2(n)===r}function dn(n,r,o,l,h,m){switch(o){case"children":if(typeof l=="string")r==="body"||r==="textarea"&&l===""||Le(n,l);else if(typeof l=="number"||typeof l=="bigint")r!=="body"&&Le(n,""+l);else return;break;case"className":ks(n,"class",l);break;case"tabIndex":ks(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ks(n,o,l);break;case"style":Ou(n,l,m);return;case"data":if(r!=="object"){ks(n,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||o!=="href")){n.removeAttribute(o);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(o);break}l=Vo(l),n.setAttribute(o,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(o,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(o==="formAction"?(r!=="input"&&dn(n,r,"name",h.name,h,null),dn(n,r,"formEncType",h.formEncType,h,null),dn(n,r,"formMethod",h.formMethod,h,null),dn(n,r,"formTarget",h.formTarget,h,null)):(dn(n,r,"encType",h.encType,h,null),dn(n,r,"method",h.method,h,null),dn(n,r,"target",h.target,h,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(o);break}l=Vo(l),n.setAttribute(o,l);break;case"onClick":l!=null&&(n.onclick=Ya);return;case"onScroll":l!=null&&Ht("scroll",n);return;case"onScrollEnd":l!=null&&Ht("scrollend",n);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(o=l.__html,o!=null){if(h.children!=null)throw Error(s(60));m?.__html!==o&&(n.innerHTML=o)}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}o=Vo(l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,l):n.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":l===!0?n.setAttribute(o,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(o,l):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(o,l):n.removeAttribute(o);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(o):n.setAttribute(o,l);break;case"popover":Ht("beforetoggle",n),Ht("toggle",n),Ho(n,"popover",l);break;case"xlinkActuate":Ne(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ne(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ne(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ne(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ne(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ne(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ne(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ne(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ne(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ho(n,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")o=Rm.get(o)||o,Ho(n,o,l);else return}_t=!0}function yy(n,r,o,l,h,m){switch(o){case"style":Ou(n,l,m);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(o=l.__html,o!=null){if(h.children!=null)throw Error(s(60));m?.__html!==o&&(n.innerHTML=o)}}break;case"children":if(typeof l=="string")Le(n,l);else if(typeof l=="number"||typeof l=="bigint")Le(n,""+l);else return;break;case"onScroll":l!=null&&Ht("scroll",n);return;case"onScrollEnd":l!=null&&Ht("scrollend",n);return;case"onClick":l!=null&&(n.onclick=Ya);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!fo.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(h=o.endsWith("Capture"),m=o.slice(2,h?o.length-7:void 0),r=n[kn]||null,r=r!=null?r[o]:null,typeof r=="function"&&n.removeEventListener(m,r,h),typeof l=="function")){typeof r!="function"&&r!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(m,l,h);break e}_t=!0,o in n?n[o]=l:l===!0?n.setAttribute(o,""):Ho(n,o,l)}return}_t=!0}function Hr(n,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ht("error",n),Ht("load",n);var l=!1,h=!1,m;for(m in o)if(o.hasOwnProperty(m)){var R=o[m];if(R!=null)switch(m){case"src":l=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:dn(n,r,m,R,o,null)}}h&&dn(n,r,"srcSet",o.srcSet,o,null),l&&dn(n,r,"src",o.src,o,null);return;case"input":Ht("invalid",n);var _=m=R=h=null,G=null,de=null;for(l in o)if(o.hasOwnProperty(l)){var ge=o[l];if(ge!=null)switch(l){case"name":h=ge;break;case"type":R=ge;break;case"checked":G=ge;break;case"defaultChecked":de=ge;break;case"value":m=ge;break;case"defaultValue":_=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(s(137,r));break;default:dn(n,r,l,ge,o,null)}}Df(n,m,_,G,de,R,h,!1);return;case"select":Ht("invalid",n),l=R=m=null;for(h in o)if(o.hasOwnProperty(h)&&(_=o[h],_!=null))switch(h){case"value":m=_;break;case"defaultValue":R=_;break;case"multiple":l=_;default:dn(n,r,h,_,o,null)}r=m,o=R,n.multiple=!!l,r!=null?Uo(n,!!l,r,!1):o!=null&&Uo(n,!!l,o,!0);return;case"textarea":Ht("invalid",n),m=h=l=null;for(R in o)if(o.hasOwnProperty(R)&&(_=o[R],_!=null))switch(R){case"value":l=_;break;case"defaultValue":h=_;break;case"children":m=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(s(91));break;default:dn(n,r,R,_,o,null)}If(n,l,h,m);return;case"option":for(G in o)o.hasOwnProperty(G)&&(l=o[G],l!=null)&&(G==="selected"?n.selected=l&&typeof l!="function"&&typeof l!="symbol":dn(n,r,G,l,o,null));return;case"dialog":Ht("beforetoggle",n),Ht("toggle",n),Ht("cancel",n),Ht("close",n);break;case"iframe":case"object":Ht("load",n);break;case"video":case"audio":for(l=0;l<hd.length;l++)Ht(hd[l],n);break;case"image":Ht("error",n),Ht("load",n);break;case"details":Ht("toggle",n);break;case"embed":case"source":case"link":Ht("error",n),Ht("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(de in o)if(o.hasOwnProperty(de)&&(l=o[de],l!=null))switch(de){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:dn(n,r,de,l,o,null)}return;default:if(Fl(r)){for(ge in o)o.hasOwnProperty(ge)&&(l=o[ge],l!==void 0&&yy(n,r,ge,l,o,void 0));return}}for(_ in o)o.hasOwnProperty(_)&&(l=o[_],l!=null&&dn(n,r,_,l,o,null))}var x8={};function m8(n,r,o,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,m=null,R=null,_=null,G=null,de=null,ge=null;for(xe in o){var we=o[xe];if(o.hasOwnProperty(xe)&&we!=null)switch(xe){case"checked":break;case"value":break;case"defaultValue":G=we;default:l.hasOwnProperty(xe)||dn(n,r,xe,null,l,we)}}for(var le in l){var xe=l[le];if(we=o[le],l.hasOwnProperty(le)&&(xe!=null||we!=null))switch(le){case"type":xe!==we&&(_t=!0),m=xe;break;case"name":xe!==we&&(_t=!0),h=xe;break;case"checked":xe!==we&&(_t=!0),de=xe;break;case"defaultChecked":xe!==we&&(_t=!0),ge=xe;break;case"value":xe!==we&&(_t=!0),R=xe;break;case"defaultValue":xe!==we&&(_t=!0),_=xe;break;case"children":case"dangerouslySetInnerHTML":if(xe!=null)throw Error(s(137,r));break;default:xe!==we&&dn(n,r,le,xe,l,we)}}Nu(n,R,_,G,de,ge,m,h);return;case"select":xe=R=_=le=null;for(m in o)if(G=o[m],o.hasOwnProperty(m)&&G!=null)switch(m){case"value":break;case"multiple":xe=G;default:l.hasOwnProperty(m)||dn(n,r,m,null,l,G)}for(h in l)if(m=l[h],G=o[h],l.hasOwnProperty(h)&&(m!=null||G!=null))switch(h){case"value":m!==G&&(_t=!0),le=m;break;case"defaultValue":m!==G&&(_t=!0),_=m;break;case"multiple":m!==G&&(_t=!0),R=m;default:m!==G&&dn(n,r,h,m,l,G)}r=_,o=R,l=xe,le!=null?Uo(n,!!o,le,!1):!!l!=!!o&&(r!=null?Uo(n,!!o,r,!0):Uo(n,!!o,o?[]:"",!1));return;case"textarea":xe=le=null;for(_ in o)if(h=o[_],o.hasOwnProperty(_)&&h!=null&&!l.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:dn(n,r,_,null,l,h)}for(R in l)if(h=l[R],m=o[R],l.hasOwnProperty(R)&&(h!=null||m!=null))switch(R){case"value":h!==m&&(_t=!0),le=h;break;case"defaultValue":h!==m&&(_t=!0),xe=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==m&&dn(n,r,R,h,l,m)}Of(n,le,xe);return;case"option":for(var Be in o)le=o[Be],o.hasOwnProperty(Be)&&le!=null&&!l.hasOwnProperty(Be)&&(Be==="selected"?n.selected=!1:dn(n,r,Be,null,l,le));for(G in l)le=l[G],xe=o[G],l.hasOwnProperty(G)&&le!==xe&&(le!=null||xe!=null)&&(G==="selected"?(le!==xe&&(_t=!0),n.selected=le&&typeof le!="function"&&typeof le!="symbol"):dn(n,r,G,le,l,xe));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 et in o)le=o[et],o.hasOwnProperty(et)&&le!=null&&!l.hasOwnProperty(et)&&dn(n,r,et,null,l,le);for(de in l)if(le=l[de],xe=o[de],l.hasOwnProperty(de)&&le!==xe&&(le!=null||xe!=null))switch(de){case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(s(137,r));break;default:dn(n,r,de,le,l,xe)}return;default:if(Fl(r)){for(var zt in o)le=o[zt],o.hasOwnProperty(zt)&&le!==void 0&&!l.hasOwnProperty(zt)&&yy(n,r,zt,void 0,l,le);for(ge in l)le=l[ge],xe=o[ge],!l.hasOwnProperty(ge)||le===xe||le===void 0&&xe===void 0||yy(n,r,ge,le,l,xe);return}}for(var ce in o)le=o[ce],o.hasOwnProperty(ce)&&le!=null&&!l.hasOwnProperty(ce)&&dn(n,r,ce,null,l,le);for(we in l)le=l[we],xe=o[we],!l.hasOwnProperty(we)||le===xe||le==null&&xe==null||dn(n,r,we,le,l,xe)}function Q2(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function g8(){if(typeof performance.getEntriesByType=="function"){for(var n=0,r=0,o=performance.getEntriesByType("resource"),l=0;l<o.length;l++){var h=o[l],m=h.transferSize,R=h.initiatorType,_=h.duration;if(m&&_&&Q2(R)){for(R=0,_=h.responseEnd,l+=1;l<o.length;l++){var G=o[l],de=G.startTime;if(de>_)break;var ge=G.transferSize,we=G.initiatorType;ge&&Q2(we)&&(G=G.responseEnd,R+=ge*(G<_?1:(_-de)/(G-de)))}if(--l,r+=8*(m+R)/(h.duration/1e3),n++,10<n)break}}if(0<n)return r/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var by=null,vy=null;function xd(n){return n.nodeType===9?n:n.ownerDocument}function J2(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ew(n,r){if(n===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&r==="foreignObject"?0:n}function tw(n,r,o,l){return o=xd(o).createElement(n),o[sn]=l,o[kn]=r,Hr(o,n,r),kt(o),o}function ky(n,r){return n==="textarea"||n==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var wy=null;function y8(){var n=window.event;return n&&n.type==="popstate"?n===wy?!1:(wy=n,!0):(wy=null,!1)}var Sy=typeof setTimeout=="function"?setTimeout:void 0,b8=typeof clearTimeout=="function"?clearTimeout:void 0,nw=typeof Promise=="function"?Promise:void 0,rw=typeof requestAnimationFrame=="function"?requestAnimationFrame:Sy,v8=typeof queueMicrotask=="function"?queueMicrotask:typeof nw<"u"?function(n){return nw.resolve(null).then(n).catch(k8)}:Sy;function k8(n){setTimeout(function(){throw n})}function mi(n){return n==="head"}function aw(n,r){var o=r,l=0;do{var h=o.nextSibling;if(n.removeChild(o),h&&h.nodeType===8)if(o=h.data,o==="/$"||o==="/&"){if(l===0){n.removeChild(h),_c(r);return}l--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")l++;else if(o==="html")My(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,My(o);for(var m=o.firstChild;m;){var R=m.nextSibling,_=m.nodeName;m[pr]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&m.rel.toLowerCase()==="stylesheet"||o.removeChild(m),m=R}}else o==="body"&&My(n.ownerDocument.body);o=h}while(o);_c(r)}function sw(n,r){var o=n;n=0;do{var l=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),l&&l.nodeType===8)if(o=l.data,o==="/$"){if(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=l}while(o)}function ow(n,r,o){if(r=CSS.escape(r)!==r?"r-"+btoa(r).replace(/=/g,""):r,n.style.viewTransitionName=r,o!=null&&(n.style.viewTransitionClass=o),o=getComputedStyle(n),o.display==="inline"){if(r=n.getClientRects(),r.length===1)var l=1;else for(var h=l=0;h<r.length;h++){var m=r[h];0<m.width&&0<m.height&&l++}l===1&&(n=n.style,n.display=r.length===1?"inline-block":"block",n.marginTop="-"+o.paddingTop,n.marginBottom="-"+o.paddingBottom)}}function iw(n,r){n=n.style,r=r.style;var o=r!=null?r.hasOwnProperty("viewTransitionName")?r.viewTransitionName:r.hasOwnProperty("view-transition-name")?r["view-transition-name"]:null:null;n.viewTransitionName=o==null||typeof o=="boolean"?"":(""+o).trim(),o=r!=null?r.hasOwnProperty("viewTransitionClass")?r.viewTransitionClass:r.hasOwnProperty("view-transition-class")?r["view-transition-class"]:null:null,n.viewTransitionClass=o==null||typeof o=="boolean"?"":(""+o).trim(),n.display==="inline-block"&&(r==null?n.display=n.margin="":(o=r.display,n.display=o==null||typeof o=="boolean"?"":o,o=r.margin,o!=null?n.margin=o:(o=r.hasOwnProperty("marginTop")?r.marginTop:r["margin-top"],n.marginTop=o==null||typeof o=="boolean"?"":o,r=r.hasOwnProperty("marginBottom")?r.marginBottom:r["margin-bottom"],n.marginBottom=r==null||typeof r=="boolean"?"":r)))}function w8(n,r,o){return o=o.ownerDocument.defaultView,{rect:n,abs:r.position==="absolute"||r.position==="fixed",clip:r.clipPath!=="none"||r.overflow!=="visible"||r.filter!=="none"||r.mask!=="none"||r.mask!=="none"||r.borderRadius!=="0px",view:0<=n.bottom&&0<=n.right&&n.top<=o.innerHeight&&n.left<=o.innerWidth}}function Ey(n){var r=n.getBoundingClientRect(),o=getComputedStyle(n);return w8(r,o,n)}function S8(n){return n.documentElement.clientHeight}function E8(n){this.addEventListener("load",n),this.addEventListener("error",n)}function C8(n,r,o,l,h,m,R,_,G){var de=r.nodeType===9?r:r.ownerDocument;try{var ge=de.startViewTransition({update:function(){var le=de.defaultView,xe=le.navigation&&le.navigation.transition,Be=de.fonts.status;l();var et=[];if(Be==="loaded"&&(S8(de),de.fonts.status==="loading"&&et.push(de.fonts.ready)),Be=et.length,n!==null)for(var zt=n.suspenseyImages,ce=0,re=0;re<zt.length;re++){var he=zt[re];if(!he.complete){var ke=he.getBoundingClientRect();if(0<ke.bottom&&0<ke.right&&ke.top<le.innerHeight&&ke.left<le.innerWidth){if(ce+=Tw(he),ce>Xh){et.length=Be;break}he=new Promise(E8.bind(he)),et.push(he)}}}if(0<et.length)return le=Promise.race([Promise.all(et),new Promise(function(Je){return setTimeout(Je,500)})]).then(h,h),(xe?Promise.allSettled([xe.finished,le]):le).then(m,m);if(h(),xe)return xe.finished.then(m,m);m()},types:o});de.__reactViewTransition=ge;var we=[];return ge.ready.then(function(){for(var le=de.documentElement.getAnimations({subtree:!0}),xe=0;xe<le.length;xe++){var Be=le[xe],et=Be.effect,zt=et.pseudoElement;if(zt!=null&&zt.startsWith("::view-transition")){we.push(Be),Be=et.getKeyframes();for(var ce=zt=void 0,re=!0,he=0;he<Be.length;he++){var ke=Be[he],Je=ke.width;if(zt===void 0)zt=Je;else if(zt!==Je){re=!1;break}if(Je=ke.height,ce===void 0)ce=Je;else if(ce!==Je){re=!1;break}delete ke.width,delete ke.height,ke.transform==="none"&&delete ke.transform}re&&zt!==void 0&&ce!==void 0&&(et.setKeyframes(Be),re=getComputedStyle(et.target,et.pseudoElement),re.width!==zt||re.height!==ce)&&(re=Be[0],re.width=zt,re.height=ce,re=Be[Be.length-1],re.width=zt,re.height=ce,et.setKeyframes(Be))}}R()},function(le){de.__reactViewTransition===ge&&(de.__reactViewTransition=null);try{typeof le=="object"&&le!==null&&le.name==="InvalidStateError"&&(le.message==="View transition was skipped because document visibility state is hidden."||le.message==="Skipping view transition because document visibility state has become hidden."||le.message==="Skipping view transition because viewport size changed."||le.message==="Transition was aborted because of invalid state")&&(le=null),le!==null&&G(le)}finally{l(),h(),R()}}),ge.finished.finally(function(){for(var le=0;le<we.length;le++)we[le].cancel();de.__reactViewTransition===ge&&(de.__reactViewTransition=null),_()}),ge}catch{return l(),h(),R(),null}}function hl(n,r){this._scope=document.documentElement,this._selector="::view-transition-"+n+"("+r+")"}hl.prototype.animate=function(n,r){return r=typeof r=="number"?{duration:r}:I({},r),r.pseudoElement=this._selector,this._scope.animate(n,r)},hl.prototype.getAnimations=function(){for(var n=this._scope,r=this._selector,o=n.getAnimations({subtree:!0}),l=[],h=0;h<o.length;h++){var m=o[h].effect;m!==null&&m.target===n&&m.pseudoElement===r&&l.push(o[h])}return l},hl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function lw(n){return{name:n,group:new hl("group",n),imagePair:new hl("image-pair",n),old:new hl("old",n),new:new hl("new",n)}}function Ba(n){this._fragmentFiber=n,this._observers=this._eventListeners=null}Ba.prototype.addEventListener=function(n,r,o){var l=null,h=null;if(!(o!=null&&typeof o!="boolean"&&(l=o.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var m=this._eventListeners;if(uw(m,n,r,o)===-1){var R=this,_=r;o!=null&&typeof o!="boolean"&&o.once===!0&&(_=function(G){R.removeEventListener(n,r,o),typeof r=="function"?r.call(this,G):r.handleEvent(G)}),l!==null&&(h=R.removeEventListener.bind(R,n,r,o),l.addEventListener("abort",h,{once:!0}),h=l.removeEventListener.bind(l,"abort",h)),l=zc(o),m.push({type:n,listener:r,optionsOrUseCapture:o,attachedListener:_,cleanup:h}),b(this._fragmentFiber.child,!1,$8,n,_,l)}this._eventListeners=m}};function $8(n,r,o,l){return S(n).addEventListener(r,o,l),!1}Ba.prototype.removeEventListener=function(n,r,o){var l=this._eventListeners;if(l!==null&&(r=uw(l,n,r,o),r!==-1)){var h=l[r];o=h.attachedListener;var m=h.cleanup;h=zc(h.optionsOrUseCapture),b(this._fragmentFiber.child,!1,j8,n,o,h),l.splice(r,1),m!==null&&m()}};function j8(n,r,o,l){return S(n).removeEventListener(r,o,l),!1}function zc(n){return n!=null&&typeof n!="boolean"&&(n.once===!0||n.signal instanceof AbortSignal)?{capture:n.capture,passive:n.passive}:n}function cw(n){return n==null?"c=0":typeof n=="boolean"?"c="+(n?"1":"0"):"c="+(n.capture?"1":"0")}function uw(n,r,o,l){if(n.length===0)return-1;l=cw(l);for(var h=0;h<n.length;h++){var m=n[h];if(m.type===r&&m.listener===o&&cw(m.optionsOrUseCapture)===l)return h}return-1}Ba.prototype.dispatchEvent=function(n){var r=k(this._fragmentFiber);if(r===null)return!0;r=S(r);var o=this._eventListeners;if(o!==null&&0<o.length||!n.bubbles){var l=r.nodeType===9?r.createComment(""):document.createTextNode("");if(o)for(var h=0;h<o.length;h++){var m=o[h];l.addEventListener(m.type,m.attachedListener,zc(m.optionsOrUseCapture))}if(r.appendChild(l),n=l.dispatchEvent(n),o)for(h=0;h<o.length;h++)m=o[h],l.removeEventListener(m.type,m.attachedListener,zc(m.optionsOrUseCapture));return r.removeChild(l),n}return r.dispatchEvent(n)},Ba.prototype.focus=function(n){b(this._fragmentFiber.child,!0,dw,n,void 0,void 0)};function dw(n,r){return n.tag===6?!1:(n=S(n),P8(n,r))}Ba.prototype.focusLast=function(n){var r=[];b(this._fragmentFiber.child,!0,Cy,r,void 0,void 0);for(var o=r.length-1;0<=o&&!dw(r[o],n);o--);};function Cy(n,r){return r.push(n),!1}Ba.prototype.blur=function(){var n=k(this._fragmentFiber);n!==null&&(n=S(n),n=xd(n).activeElement,n!==null&&b(this._fragmentFiber.child,!1,T8,n,void 0,void 0))};function T8(n,r){return n.tag===6?!1:(n=S(n),n===r||n.contains(r)?(r.blur(),!0):!1)}Ba.prototype.observeUsing=function(n){this._observers===null&&(this._observers=new Set),this._observers.add(n),b(this._fragmentFiber.child,!1,R8,n,void 0,void 0)};function R8(n,r){return n.tag===6||(n=S(n),r.observe(n)),!1}Ba.prototype.unobserveUsing=function(n){var r=this._observers;if(r!==null&&r.has(n)){r.delete(n),b(this._fragmentFiber.child,!1,A8,n,void 0,void 0);for(var o=r=0;o<Ts.length;o++){var l=Ts[o];l.fragmentInstance===this&&l.observer===n?n.unobserve(l.instance):Ts[r++]=l}Ts.length=r}};function A8(n,r){return n.tag===6||(n=S(n),r.unobserve(n)),!1}var Ts=[],$y=!1;function M8(n,r,o){Ts.push({fragmentInstance:n,observer:r,instance:o}),$y||($y=!0,B8(function(){$y=!1;var l=Ts;Ts=[];for(var h=0;h<l.length;h++){var m=l[h];m.observer.unobserve(m.instance)}}))}Ba.prototype.getClientRects=function(){var n=[];return b(this._fragmentFiber.child,!1,z8,n,void 0,void 0),n};function z8(n,r){if(n.tag===6){n=n.stateNode;var o=n.ownerDocument.createRange();o.selectNodeContents(n),r.push.apply(r,o.getClientRects())}else n=S(n),r.push.apply(r,n.getClientRects());return!1}Ba.prototype.getRootNode=function(n){var r=k(this._fragmentFiber);return r===null?this:S(r).getRootNode(n)},Ba.prototype.compareDocumentPosition=function(n){var r=k(this._fragmentFiber);if(r===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var o=[];b(this._fragmentFiber.child,!1,Cy,o,void 0,void 0);var l=S(r);if(o.length===0){if(o=l,C(this._fragmentFiber)){e:{for(r=this._fragmentFiber.return;r!==null;){if(r.tag===4){r=r.stateNode.containerInfo;break e}if(r.tag===3||r.tag===5||r.tag===27)break;r=r.return}r=null}r!=null&&(o=r)}r=this._fragmentFiber;var h=l=o.compareDocumentPosition(n);return o===n?h=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(o=w(r)[1],o===null?h=Node.DOCUMENT_POSITION_PRECEDING:(n=S(o).compareDocumentPosition(n),h=n===0||n&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),h|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}r=S(o[0]),h=S(o[o.length-1]);var m=C(this._fragmentFiber)?r.parentElement:l;if(m==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=m.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY,m=m.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY;var R=r.compareDocumentPosition(n),_=h.compareDocumentPosition(n),G=R&Node.DOCUMENT_POSITION_CONTAINED_BY||_&Node.DOCUMENT_POSITION_CONTAINED_BY;return _=l&&m&&R&Node.DOCUMENT_POSITION_FOLLOWING&&_&Node.DOCUMENT_POSITION_PRECEDING,r=l&&r===n||m&&h===n||G||_?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&r===n||!m&&h===n?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:R,r&Node.DOCUMENT_POSITION_DISCONNECTED||r&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||N8(r,this._fragmentFiber,o[0],o[o.length-1],n)?r:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function N8(n,r,o,l,h){var m=Nn(h);if(n&Node.DOCUMENT_POSITION_CONTAINED_BY){if(o=!!m)e:{for(;m!==null;){if(m.tag===7&&(m===r||m.alternate===r)){o=!0;break e}m=m.return}o=!1}return o}if(n&Node.DOCUMENT_POSITION_CONTAINS){if(m===null)return m=h.ownerDocument,h===m||h===m.documentElement||h===m.body;e:{for(m=r,r=k(r);m!==null;){if(!(m.tag!==5&&m.tag!==3&&m.tag!==27||m!==r&&m.alternate!==r)){m=!0;break e}m=m.return}m=!1}return m}return n&Node.DOCUMENT_POSITION_PRECEDING?((r=!!m)&&!(r=m===o)&&(r=L(o,m,z),r===null?r=!1:(b(r,!0,j,m,o),m=T,T=null,r=m!==null)),r):n&Node.DOCUMENT_POSITION_FOLLOWING?((r=!!m)&&!(r=m===l)&&(r=L(l,m,z),r===null?r=!1:(b(r,!0,$,m,l),m=T,E=T=null,r=m!==null)),r):!1}function fw(n,r){var o=n.ownerDocument.createRange();o.selectNodeContents(n),n=o.getBoundingClientRect(),window.scrollTo(window.scrollX+n.left,r?window.scrollY+n.top:window.scrollY+n.bottom-window.innerHeight)}Ba.prototype.scrollIntoView=function(n){if(typeof n=="object")throw Error(s(566));var r=[];b(this._fragmentFiber.child,!1,Cy,r,void 0,void 0);var o=n!==!1;if(r.length===0){var l=w(this._fragmentFiber);if(l=o?l[1]||l[0]||k(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){n=S(l),fw(n,o);return}if(l=S(l),l.nodeType!==9){if(l.nodeType===11){o="host"in l?l.host:null,o!==null&&o.scrollIntoView(n);return}l.scrollIntoView(n)}}for(l=o?r.length-1:0;l!==(o?-1:r.length);){var h=r[l];h.tag===6?(h=S(h),fw(h,o)):S(h).scrollIntoView(n),l+=o?-1:1}};function L8(n,r){return n=S(n),hw(n,r),!1}function hw(n,r){n.reactFragments==null&&(n.reactFragments=new Set),n.reactFragments.add(r)}function pw(n,r){var o=r._eventListeners;if(o!==null)for(var l=0;l<o.length;l++){var h=o[l];n.addEventListener(h.type,h.attachedListener,zc(h.optionsOrUseCapture))}n.nodeType!==3&&(o=r._observers,o!==null&&o.forEach(function(m){for(var R=0,_=0;_<Ts.length;_++){var G=Ts[_];(G.fragmentInstance!==r||G.observer!==m||G.instance!==n)&&(Ts[R++]=G)}Ts.length=R,m.observe(n)}),hw(n,r))}function D8(n,r){var o=r._eventListeners;if(o!==null)for(var l=0;l<o.length;l++){var h=o[l];n.removeEventListener(h.type,h.attachedListener,zc(h.optionsOrUseCapture))}n.nodeType!==3&&(o=r._observers,o!==null&&o.forEach(function(m){typeof m.rootMargin=="string"?M8(r,m,n):m.unobserve(n)}),n.reactFragments!=null&&n.reactFragments.delete(r))}function jy(n){var r=n.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":jy(o),wn(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function O8(n,r,o,l){for(;n.nodeType===1;){var h=o;if(n.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[pr])switch(r){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==h.rel||n.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||n.getAttribute("title")!==(h.title==null?null:h.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(r==="input"&&n.type==="hidden"){var m=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=as(n.nextSibling),n===null)break}return null}function I8(n,r,o){if(r==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=as(n.nextSibling),n===null))return null;return n}function xw(n,r){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!r||(n=as(n.nextSibling),n===null))return null;return n}function Ty(n){return n.data==="$?"||n.data==="$~"}function Ry(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function _8(n,r){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=r;else if(n.data!=="$?"||o.readyState!=="loading")r();else{var l=function(){r(),o.removeEventListener("DOMContentLoaded",l)};o.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function as(n){for(;n!=null;n=n.nextSibling){var r=n.nodeType;if(r===1||r===3)break;if(r===8){if(r=n.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;if(r==="/$"||r==="/&")return null}}return n}var Ay=null;function mw(n){n=n.nextSibling;for(var r=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(r===0)return as(n.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}n=n.nextSibling}return null}function gw(n){n=n.previousSibling;for(var r=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return n;r--}else o!=="/$"&&o!=="/&"||r++}n=n.previousSibling}return null}function P8(n,r){function o(){l=!0}if(n.ownerDocument.activeElement===n)return!0;var l=!1;try{n.ownerDocument.addEventListener("focus",o,!0),(n.focus||HTMLElement.prototype.focus).call(n,r)}finally{n.ownerDocument.removeEventListener("focus",o,!0)}return l}function B8(n){rw(function(){rw(function(r){return n(r)})})}function yw(n,r,o){switch(r=xd(o),n){case"html":if(n=r.documentElement,!n)throw Error(s(452));return n;case"head":if(n=r.head,!n)throw Error(s(453));return n;case"body":if(n=r.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function bw(n,r,o){for(var l in o){var h=o[l];o.hasOwnProperty(l)&&h!=null&&dn(n,r,l,null,x8,h)}o.dangerouslySetInnerHTML!=null&&(n.textContent=""),n.onclick===Ya&&(n.onclick=null),wn(n)}function My(n){for(var r=n.attributes;r.length;)n.removeAttributeNode(r[0]);wn(n)}var ss=new Map,vw=new Set;function md(n){if(typeof n.getRootNode=="function"){var r=n.getRootNode();if(r.nodeType===9||r.nodeType===11)return r}return n.nodeType===9?n:n.ownerDocument}var Ro=$e.d;$e.d={f:F8,r:q8,D:H8,C:U8,L:V8,m:G8,X:W8,S:K8,M:Y8};function F8(){var n=Ro.f(),r=Fh();return n||r}function q8(n){var r=tr(n);r!==null&&r.tag===5&&r.type==="form"?wk(r):Ro.r(n)}var Nc=typeof document>"u"?null:document;function kw(n,r,o){var l=Nc;if(l&&typeof r=="string"&&r){var h=_r(r);h='link[rel="'+n+'"][href="'+h+'"]',typeof o=="string"&&(h+='[crossorigin="'+o+'"]'),vw.has(h)||(vw.add(h),n={rel:n,crossOrigin:o,href:r},l.querySelector(h)===null&&(r=l.createElement("link"),Hr(r,"link",n),kt(r),l.head.appendChild(r)))}}function H8(n){Ro.D(n),kw("dns-prefetch",n,null)}function U8(n,r){Ro.C(n,r),kw("preconnect",n,r)}function V8(n,r,o){Ro.L(n,r,o);var l=Nc;if(l&&n&&r){var h='link[rel="preload"][as="'+_r(r)+'"]';r==="image"&&o&&o.imageSrcSet?(h+='[imagesrcset="'+_r(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(h+='[imagesizes="'+_r(o.imageSizes)+'"]')):h+='[href="'+_r(n)+'"]';var m=h;switch(r){case"style":m=Lc(n);break;case"script":m=Dc(n)}if(!(ss.has(m)||(n=I({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:n,as:r},o),ss.set(m,n),l.querySelector(h)!==null||r==="style"&&l.querySelector(gd(m))||r==="script"&&l.querySelector(yd(m))))){var R=l.createElement("link");Hr(R,"link",n),r==="style"&&(R[Et]=!0,R.onload=R.onerror=function(){pa(R)}),kt(R),l.head.appendChild(R)}}}function G8(n,r){Ro.m(n,r);var o=Nc;if(o&&n){var l=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+_r(l)+'"][href="'+_r(n)+'"]',m=h;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=Dc(n)}if(!ss.has(m)&&(n=I({rel:"modulepreload",href:n},r),ss.set(m,n),o.querySelector(h)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(yd(m)))return}l=o.createElement("link"),Hr(l,"link",n),kt(l),o.head.appendChild(l)}}}function K8(n,r,o){Ro.S(n,r,o);var l=Nc;if(l&&n){var h=ta(l).hoistableStyles,m=Lc(n);r=r||"default";var R=h.get(m);if(!R){var _={loading:0,preload:null};if(R=l.querySelector(gd(m)))_.loading=5;else{n=I({rel:"stylesheet",href:n,"data-precedence":r},o),(o=ss.get(m))&&zy(n,o);var G=R=l.createElement("link");kt(G),Hr(G,"link",n),G._p=new Promise(function(de,ge){G.onload=de,G.onerror=ge}),G.addEventListener("load",function(){_.loading|=1}),G.addEventListener("error",function(){_.loading|=2}),_.loading|=4,Wh(R,r,l)}R={type:"stylesheet",instance:R,count:1,state:_},h.set(m,R)}}}function W8(n,r){Ro.X(n,r);var o=Nc;if(o&&n){var l=ta(o).hoistableScripts,h=Dc(n),m=l.get(h);m||(m=o.querySelector(yd(h)),m||(n=I({src:n,async:!0},r),(r=ss.get(h))&&Ny(n,r),m=o.createElement("script"),kt(m),Hr(m,"link",n),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(h,m))}}function Y8(n,r){Ro.M(n,r);var o=Nc;if(o&&n){var l=ta(o).hoistableScripts,h=Dc(n),m=l.get(h);m||(m=o.querySelector(yd(h)),m||(n=I({src:n,async:!0,type:"module"},r),(r=ss.get(h))&&Ny(n,r),m=o.createElement("script"),kt(m),Hr(m,"link",n),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(h,m))}}function ww(n,r,o,l){var h=(h=gt.current)?md(h):null;if(!h)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(o=Lc(o.href),r=ta(h).hoistableStyles,l=r.get(o),l||(l={type:"style",instance:null,count:0,state:null},r.set(o,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Lc(o.href);var m=ta(h).hoistableStyles,R=m.get(n);if(R||(h=h.ownerDocument||h,R={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,R),(m=h.querySelector(gd(n)))?m._p||(R.instance=m,R.state.loading=5):(m=ss.get(n),m||(m={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ss.set(n,m)),X8(h,n,m,R.state))),r&&l===null)throw Error(s(528,""));return R}if(r&&l!==null)throw Error(s(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(o=Dc(o),r=ta(h).hoistableScripts,l=r.get(o),l||(l={type:"script",instance:null,count:0,state:null},r.set(o,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function Lc(n){return'href="'+_r(n)+'"'}function gd(n){return'link[rel="stylesheet"]['+n+"]"}function Sw(n){return I({},n,{"data-precedence":n.precedence,precedence:null})}function X8(n,r,o,l){if(r=n.querySelector('link[rel="preload"][as="style"]['+r+"]")){if(r[Et]!==!0){l.loading=1;return}}else r=n.createElement("link"),r[Et]=!0,r.onload=r.onerror=pa.bind(null,r),Hr(r,"link",o),kt(r),n.head.appendChild(r);l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2})}function Dc(n){return'[src="'+_r(n)+'"]'}function yd(n){return"script[async]"+n}function Ew(n,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var l=n.querySelector('style[data-href~="'+_r(o.href)+'"]');if(l)return r.instance=l,kt(l),l;var h=I({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),kt(l),Hr(l,"style",h),Wh(l,o.precedence,n),r.instance=l;case"stylesheet":h=Lc(o.href);var m=n.querySelector(gd(h));if(m)return r.state.loading|=4,r.instance=m,kt(m),m;l=Sw(o),(h=ss.get(h))&&zy(l,h),m=(n.ownerDocument||n).createElement("link"),kt(m);var R=m;return R._p=new Promise(function(_,G){R.onload=_,R.onerror=G}),Hr(m,"link",l),r.state.loading|=4,Wh(m,o.precedence,n),r.instance=m;case"script":return m=Dc(o.src),(h=n.querySelector(yd(m)))?(r.instance=h,kt(h),h):(l=o,(h=ss.get(m))&&(l=I({},o),Ny(l,h)),n=n.ownerDocument||n,h=n.createElement("script"),kt(h),Hr(h,"link",l),n.head.appendChild(h),r.instance=h);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,Wh(l,o.precedence,n));return r.instance}function Wh(n,r,o){for(var l=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=l.length?l[l.length-1]:null,m=h,R=0;R<l.length;R++){var _=l[R];if(_.dataset.precedence===r)m=_;else if(m!==h)break}m?m.parentNode.insertBefore(n,m.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(n,r.firstChild))}function zy(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.title==null&&(n.title=r.title)}function Ny(n,r){n.crossOrigin==null&&(n.crossOrigin=r.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=r.referrerPolicy),n.integrity==null&&(n.integrity=r.integrity)}var Yh=null;function Cw(n,r,o){if(Yh===null){var l=new Map,h=Yh=new Map;h.set(o,l)}else h=Yh,l=h.get(o),l||(l=new Map,h.set(o,l));if(l.has(n))return l;for(l.set(n,null),o=o.getElementsByTagName(n),h=0;h<o.length;h++){var m=o[h];if(!(m[pr]||m[sn]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var R=m.getAttribute(r)||"";R=n+R;var _=l.get(R);_?_.push(m):l.set(R,[m])}}return l}function Ly(n,r,o){n=n.ownerDocument||n,n.head.insertBefore(o,r==="title"?n.querySelector("head > title"):null)}function Z8(n,r,o){if(o===1||r.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;return r.rel==="stylesheet"?(n=r.disabled,typeof r.precedence=="string"&&n==null):!0;case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function $w(n,r){return n==="img"&&r.src!=null&&r.src!==""&&r.onLoad==null&&r.loading!=="lazy"}function jw(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function Tw(n){return(n.width||100)*(n.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Rw(n,r){typeof r.decode=="function"&&(n.imgCount++,r.complete||(n.imgBytes+=Tw(r),n.suspenseyImages.push(r)),n=e7.bind(n),r.decode().then(n,n))}function Q8(n,r,o,l){if(o.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var h=Lc(l.href),m=r.querySelector(gd(h));if(m){r=m._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(n.count++,n=bd.bind(n),r.then(n,n)),o.state.loading|=4,o.instance=m,kt(m);return}m=r.ownerDocument||r,l=Sw(l),(h=ss.get(h))&&zy(l,h),m=m.createElement("link"),kt(m);var R=m;R._p=new Promise(function(_,G){R.onload=_,R.onerror=G}),Hr(m,"link",l),o.instance=m}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=bd.bind(n),r.addEventListener("load",o),r.addEventListener("error",o))}}var Xh=0;function J8(n,r){return n.stylesheets&&n.count===0&&Qh(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var l=setTimeout(function(){if(n.stylesheets&&Qh(n,n.stylesheets),n.unsuspend){var m=n.unsuspend;n.unsuspend=null,m()}},6e4+r);0<n.imgBytes&&Xh===0&&(Xh=62500*g8());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Qh(n,n.stylesheets),n.unsuspend)){var m=n.unsuspend;n.unsuspend=null,m()}},(n.imgBytes>Xh?50:800)+r);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(h)}}:null}function Aw(n){if(n.count===0&&(n.imgCount===0||!n.waitingForImages)){if(n.stylesheets)Qh(n,n.stylesheets);else if(n.unsuspend){var r=n.unsuspend;n.unsuspend=null,r()}}}function bd(){this.count--,Aw(this)}function e7(){this.imgCount--,Aw(this)}var Zh=null;function Qh(n,r){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Zh=new Map,r.forEach(t7,n),Zh=null,bd.call(n))}function t7(n,r){if(!(r.state.loading&4)){var o=Zh.get(n);if(o)var l=o.get(null);else{o=new Map,Zh.set(n,o);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<h.length;m++){var R=h[m];(R.nodeName==="LINK"||R.getAttribute("media")!=="not all")&&(o.set(R.dataset.precedence,R),l=R)}l&&o.set(null,l)}h=r.instance,R=h.getAttribute("data-precedence"),m=o.get(R)||l,m===l&&o.set(null,h),o.set(R,h),this.count++,l=bd.bind(this),h.addEventListener("load",l),h.addEventListener("error",l),m?m.parentNode.insertBefore(h,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),r.state.loading|=4}}var Oc={$$typeof:Z,Provider:null,Consumer:null,_currentValue:Pe,_currentValue2:Pe,_threadCount:0};function n7(n,r,o,l,h,m,R,_,G){this.tag=1,this.containerInfo=n,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=pt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.hiddenUpdates=pt(null),this.identifierPrefix=l,this.onUncaughtError=h,this.onCaughtError=m,this.onRecoverableError=R,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=G,this.transitionTypes=null,this.incompleteTransitions=new Map}function Mw(n,r,o,l,h,m,R,_,G,de,ge,we){return n=new n7(n,r,o,R,G,de,ge,we,_),r=1,m===!0&&(r|=24),m=ma(3,null,null,r),n.current=m,m.stateNode=n,r=Ym(),r.refCount++,n.pooledCache=r,r.refCount++,m.memoizedState={element:l,isDehydrated:o,cache:r},Jm(m),n}function zw(n){return n?(n=lc,n):lc}function Nw(n,r,o,l,h,m){h=zw(h),l.context===null?l.context=h:l.pendingContext=h,l=ai(r),l.payload={element:o},m=m===void 0?null:m,m!==null&&(l.callback=m),o=si(n,l,r),o!==null&&(va(o,n,r),Xu(o,n,r))}function Lw(n,r){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<r?o:r}}function Dy(n,r){Lw(n,r),(n=n.alternate)&&Lw(n,r)}function Dw(n){if(n.tag===13||n.tag===31){var r=Xi(n,67108864);r!==null&&va(r,n,67108864),Dy(n,67108864)}}function Ow(n){if(n.tag===13||n.tag===31){var r=Pa();r=It(r);var o=Xi(n,r);o!==null&&va(o,n,r),Dy(n,r)}}var Ic=!0;function r7(n,r,o,l){var h=ie.T;ie.T=null;var m=$e.p;try{$e.p=2,Oy(n,r,o,l)}finally{$e.p=m,ie.T=h}}function a7(n,r,o,l){var h=ie.T;ie.T=null;var m=$e.p;try{$e.p=8,Oy(n,r,o,l)}finally{$e.p=m,ie.T=h}}function Oy(n,r,o,l){if(Ic){var h=Iy(l);if(h===null)gy(n,r,l,Jh,o),_w(n,l);else if(o7(h,n,r,o,l))l.stopPropagation();else if(_w(n,l),r&4&&-1<s7.indexOf(n)){for(;h!==null;){var m=tr(h);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var R=Qe(m.pendingLanes);if(R!==0){var _=m;for(_.pendingLanes|=2,_.entangledLanes|=2;R;){var G=1<<31-Jn(R);_.entanglements[1]|=G,R&=~G}Js(m),(rn&6)===0&&(_h=ft()+500,fd(0))}}break;case 31:case 13:_=Xi(m,2),_!==null&&va(_,m,2),Fh(),Dy(m,2)}if(m=Iy(l),m===null&&gy(n,r,l,Jh,o),m===h)break;h=m}h!==null&&l.stopPropagation()}else gy(n,r,l,null,o)}}function Iy(n){return n=mr(n),_y(n)}var Jh=null;function _y(n){if(Jh=null,n=Nn(n),n!==null){var r=c(n);if(r===null)n=null;else{var o=r.tag;if(o===13){if(n=u(r),n!==null)return n;n=null}else if(o===31){if(n=d(r),n!==null)return n;n=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;n=null}else r!==n&&(n=null)}}return Jh=n,null}function Iw(n){switch(n){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ue()){case Cn:return 2;case bn:return 8;case vn:case Lr:return 32;case Aa:return 268435456;default:return 32}default:return 32}}var Py=!1,gi=null,yi=null,bi=null,vd=new Map,kd=new Map,vi=[],s7="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function _w(n,r){switch(n){case"focusin":case"focusout":gi=null;break;case"dragenter":case"dragleave":yi=null;break;case"mouseover":case"mouseout":bi=null;break;case"pointerover":case"pointerout":vd.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":kd.delete(r.pointerId)}}function wd(n,r,o,l,h,m){return n===null||n.nativeEvent!==m?(n={blockedOn:r,domEventName:o,eventSystemFlags:l,nativeEvent:m,targetContainers:[h]},r!==null&&(r=tr(r),r!==null&&Dw(r)),n):(n.eventSystemFlags|=l,r=n.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),n)}function o7(n,r,o,l,h){switch(r){case"focusin":return gi=wd(gi,n,r,o,l,h),!0;case"dragenter":return yi=wd(yi,n,r,o,l,h),!0;case"mouseover":return bi=wd(bi,n,r,o,l,h),!0;case"pointerover":var m=h.pointerId;return vd.set(m,wd(vd.get(m)||null,n,r,o,l,h)),!0;case"gotpointercapture":return m=h.pointerId,kd.set(m,wd(kd.get(m)||null,n,r,o,l,h)),!0}return!1}function Pw(n){var r=Nn(n.target);if(r!==null){var o=c(r);if(o!==null){if(r=o.tag,r===13){if(r=u(o),r!==null){n.blockedOn=r,ha(n.priority,function(){Ow(o)});return}}else if(r===31){if(r=d(o),r!==null){n.blockedOn=r,ha(n.priority,function(){Ow(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function ep(n){if(n.blockedOn!==null)return!1;for(var r=n.targetContainers;0<r.length;){var o=Iy(n.nativeEvent);if(o===null){o=n.nativeEvent;var l=new o.constructor(o.type,o);Fi=l,o.target.dispatchEvent(l),Fi=null}else return r=tr(o),r!==null&&Dw(r),n.blockedOn=o,!1;r.shift()}return!0}function Bw(n,r,o){ep(n)&&o.delete(r)}function i7(){Py=!1,gi!==null&&ep(gi)&&(gi=null),yi!==null&&ep(yi)&&(yi=null),bi!==null&&ep(bi)&&(bi=null),vd.forEach(Bw),kd.forEach(Bw)}function tp(n,r){n.blockedOn===r&&(n.blockedOn=null,Py||(Py=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,i7)))}var np=null;function Fw(n){np!==n&&(np=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){np===n&&(np=null);for(var r=0;r<n.length;r+=3){var o=n[r],l=n[r+1],h=n[r+2];if(typeof l!="function"){if(_y(l||o)===null)continue;break}var m=tr(o);m!==null&&(n.splice(r,3),r-=3,vg(m,{pending:!0,data:h,method:o.method,action:l},l,h))}}))}function _c(n){function r(G){return tp(G,n)}gi!==null&&tp(gi,n),yi!==null&&tp(yi,n),bi!==null&&tp(bi,n),vd.forEach(r),kd.forEach(r);for(var o=0;o<vi.length;o++){var l=vi[o];l.blockedOn===n&&(l.blockedOn=null)}for(;0<vi.length&&(o=vi[0],o.blockedOn===null);)Pw(o),o.blockedOn===null&&vi.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(l=0;l<o.length;l+=3){var h=o[l],m=o[l+1],R=h[kn]||null;if(typeof m=="function")R||Fw(o);else if(R){var _=null;if(m&&m.hasAttribute("formAction")){if(h=m,R=m[kn]||null)_=R.formAction;else if(_y(h)!==null)continue}else _=R.action;typeof _=="function"?o[l+1]=_:(o.splice(l,3),l-=3),Fw(o)}}}function qw(){function n(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(R){return h=R})},focusReset:"manual",scroll:"manual"})}function r(){h!==null&&(h(),h=null),l||setTimeout(o,20)}function o(){if(!l&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),h!==null&&(h(),h=null)}}}function By(n){this._internalRoot=n}rp.prototype.render=By.prototype.render=function(n){var r=this._internalRoot;if(r===null)throw Error(s(409));var o=r.current,l=Pa();Nw(o,l,n,r,null,null)},rp.prototype.unmount=By.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var r=n.containerInfo;Nw(n.current,2,null,n,null,null),Fh(),r[Gn]=null}};function rp(n){this._internalRoot=n}rp.prototype.unstable_scheduleHydration=function(n){if(n){var r=Un();n={blockedOn:null,target:n,priority:r};for(var o=0;o<vi.length&&r!==0&&r<vi[o].priority;o++);vi.splice(o,0,n),o===0&&Pw(n)}};var Hw=t.version;if(Hw!=="19.3.1")throw Error(s(527,Hw,"19.3.1"));$e.findDOMNode=function(n){var r=n._reactInternals;if(r===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=g(r),n=n!==null?y(n):null,n=n===null?null:n.stateNode,n};var l7={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ap=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ap.isDisabled&&ap.supportsFiber)try{hr=ap.inject(l7),nn=ap}catch{}}return Ed.createRoot=function(n,r){if(!i(n))throw Error(s(299));var o=!1,l="",h=zk,m=Nk,R=Lk;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(m=r.onCaughtError),r.onRecoverableError!==void 0&&(R=r.onRecoverableError)),r=Mw(n,1,!1,null,null,o,l,null,h,m,R,qw),n[Gn]=r.current,my(n),new By(r)},Ed.hydrateRoot=function(n,r,o){if(!i(n))throw Error(s(299));var l=!1,h="",m=zk,R=Nk,_=Lk,G=null;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(R=o.onCaughtError),o.onRecoverableError!==void 0&&(_=o.onRecoverableError),o.formState!==void 0&&(G=o.formState)),r=Mw(n,1,!0,r,o??null,l,h,G,m,R,_,qw),r.context=zw(null),o=r.current,l=Pa(),l=It(l),h=ai(l),h.callback=null,si(o,h,l),o=l,r.current.lanes=o,ot(r,o),Js(r),n[Gn]=r.current,my(n),new rp(r)},Ed.version="19.3.1",Ed}var Jw;function b7(){if(Jw)return Hy.exports;Jw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hy.exports=y7(),Hy.exports}var k3=b7();const w3=x.createContext(void 0),ja=e=>{const t=x.useContext(w3);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},v7=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx(w3.Provider,{value:e,children:t})),k7={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};var w7=class{#e=k7;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};const wl=new w7;function S7(e){setTimeout(e,0)}const E7=typeof window>"u"||"Deno"in globalThis;function ua(){}function C7(e,t){return typeof e=="function"?e(t):e}function S3(e){return typeof e=="number"&&e>=0&&e!==1/0}function E3(e,t){return Math.max(e+(t||0)-Date.now(),0)}function In(e,t){return typeof e=="function"?e(t):e}function e5(e,t){const{type:a="all",exact:s,fetchStatus:i,predicate:c,queryKey:u,stale:d}=e;if(u){if(s){if(t.queryHash!==Ib(u,t.options))return!1}else if(!fu(t.queryKey,u))return!1}if(a!=="all"){const f=t.isActive();if(a==="active"&&!f||a==="inactive"&&f)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||i&&i!==t.state.fetchStatus||c&&!c(t))}function t5(e,t){const{exact:a,status:s,predicate:i,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(a){if(Al(t.options.mutationKey)!==Al(c))return!1}else if(!fu(t.options.mutationKey,c))return!1}return!(s&&t.state.status!==s||i&&!i(t))}function Ib(e,t){return(t?.queryKeyHashFn||Al)(e)}function Al(e){return JSON.stringify(e,(t,a)=>W0(a)?Object.keys(a).sort().reduce((s,i)=>(s[i]=a[i],s),{}):a)}function fu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let s=0;s<t.length;s++)if(!fu(e[s],t[s]))return!1;return!0}const a=Object.keys(t);for(const s of a)if(!fu(e[s],t[s]))return!1;return!0}return!1}const $7=Object.prototype.hasOwnProperty;function C3(e,t,a=0){if(e===t)return e;if(a>500)return t;const s=n5(e)&&n5(t);if(!s&&!(W0(e)&&W0(t)))return t;const i=(s?e:Object.keys(e)).length,c=s?t:Object.keys(t),u=c.length,d=s?new Array(u):{};let f=0;for(let g=0;g<u;g++){const y=s?g:c[g],b=e[y],k=t[y];if(b===k){d[y]=b,(s?g<i:$7.call(e,y))&&f++;continue}if(b===null||k===null||typeof b!="object"||typeof k!="object"){d[y]=k;continue}const C=C3(b,k,a+1);d[y]=C,C===b&&f++}return i===u&&f===i?e:d}function Bp(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e)if(e[a]!==t[a])return!1;return!0}function n5(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function W0(e){if(!r5(e))return!1;const t=Object.getPrototypeOf(e),a=t?.constructor;if(a===void 0)return!0;if(typeof a!="function")return!1;const s=a.prototype;return!(!r5(s)||!s.hasOwnProperty("isPrototypeOf")||t!==Object.prototype)}function r5(e){return Object.prototype.toString.call(e)==="[object Object]"}function j7(e){return new Promise(t=>{wl.setTimeout(t,e)})}function Y0(e,t,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,t):a.structuralSharing!==!1?C3(e,t):t}function T7(e,t,a=0){const s=[...e,t];return a&&s.length>a?s.slice(1):s}function R7(e,t,a=0){const s=[t,...e];return a&&s.length>a?s.slice(0,-1):s}const _b=Symbol();function $3(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===_b?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Pb(e,t){return typeof e=="function"?e(...t):!!e}function A7(e,t,a){let s=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),s||(s=!0,i.aborted?a():i.addEventListener("abort",a,{once:!0})),i)}),e}let M7=()=>E7;const Bb=()=>M7();var wu=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},z7=class extends wu{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}};const Fb=new z7,N7=S7;function L7(){let e=[],t=0,a=d=>{d()},s=d=>{d()},i=N7;const c=d=>{t?e.push(d):i(()=>{a(d)})},u=()=>{const d=e;e=[],d.length&&i(()=>{s(()=>{d.forEach(f=>{a(f)})})})};return{batch:d=>{let f;t++;try{f=d()}finally{t--,t||u()}return f},batchCalls:d=>(...f)=>{c(()=>{d(...f)})},schedule:c,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{s=d},setScheduler:d=>{i=d}}}const wr=L7();var D7=class extends wu{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};const nx=new D7;function O7(e){return Math.min(1e3*2**e,3e4)}function j3(e){return(e??"online")==="online"?nx.isOnline():!0}var X0=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function T3(e){let t=!1,a=0,s,i="pending",c,u;const d=new Promise((E,j)=>{c=E,u=j});d.catch(ua);const f=()=>i!=="pending",g=E=>{if(!f()){const j=new X0(E);v(j),e.onCancel?.(j)}},y=()=>{t=!0},b=()=>{t=!1},k=()=>Fb.isFocused()&&(e.networkMode==="always"||nx.isOnline())&&e.canRun(),C=()=>j3(e.networkMode)&&e.canRun(),w=E=>{f()||(s?.(),i="resolved",c(E))},v=E=>{f()||(s?.(),i="rejected",u(E))},S=E=>new Promise(j=>{s=$=>{(f()||E())&&j($)},e.onPause?.()}).then(()=>{s=void 0,f()||e.onContinue?.()}),T=()=>{if(f())return;let E;const j=a===0?e.initialPromise:void 0;try{E=j??e.fn()}catch($){E=Promise.reject($)}Promise.resolve(E).then(w).catch($=>{if(f())return;const z=e.retry??(Bb()?0:3),L=e.retryDelay??O7,I=typeof L=="function"?L(a,$):L,N=z===!0||typeof z=="number"&&a<z||typeof z=="function"&&z(a,$);if(t||!N){v($);return}a++,e.onFail?.(a,$),j7(I).then(()=>k()?void 0:S(k)).then(()=>{t?v($):T()})})};return{promise:d,status:()=>i,cancel:g,continue:()=>(s?.(),d),cancelRetry:y,continueRetry:b,canStart:C,start:()=>(C()?T():S(C).then(T),d)}}var R3=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),S3(this.gcTime)&&(this.#e=wl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Bb()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(wl.clearTimeout(this.#e),this.#e=void 0)}};function I7(e){return{onFetch:(t,a)=>{const s=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},f=0;const g=async()=>{let y=!1;const b=w=>{A7(w,()=>t.signal,()=>y=!0)},k=$3(t.options,t.fetchOptions),C=async(w,v,S)=>{if(y)return Promise.reject(t.signal.reason);if(v==null&&w.pages.length)return Promise.resolve(w);const E=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:v,direction:S?"backward":"forward",meta:t.options.meta};return b(L),L})(),j=await k(E),{maxPages:$}=t.options,z=S?R7:T7;return{pages:z(w.pages,j,$),pageParams:z(w.pageParams,v,$)}};if(i&&c.length){const w=i==="backward",v=w?_7:a5,S={pages:c,pageParams:u};d=await C(S,v(s,S),w)}else{const w=e??c.length;do{const v=f===0?u[0]===void 0?s.initialPageParam:u[0]:a5(s,d);if(f>0&&v==null)break;d=await C(d,v),f++}while(f<w)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a):t.fetchFn=g}}}function a5(e,{pages:t,pageParams:a}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,a[s],a):void 0}function _7(e,{pages:t,pageParams:a}){return t.length>0?e.getPreviousPageParam?.(t[0],t,a[0],a):void 0}var P7=class extends R3{#e;#t;#n;#r;#s;#a;#o;#l;constructor(e){super(),this.#l=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=o5(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=o5(this.options);t.data!==void 0&&(this.setState(s5(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const a=Y0(this.state.data,e,this.options);return this.#i({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e){this.#i({type:"setState",state:e})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(ua).catch(ua):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>In(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_b||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>In(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!E3(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#l||this.state.fetchStatus==="paused"&&this.state.status==="pending"?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(g=>g.options.queryFn);f&&this.setOptions(f.options)}const a=new AbortController,s=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#l=!0,a.signal)})},i=()=>{const f=$3(this.options,t),y=(()=>{const b={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(b),b})();return this.#l=!1,this.options.persister?this.options.persister(f,y,this):f(y)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:i};return s(f),f})();(this.#e==="infinite"?I7(this.options.pages):this.options.behavior)?.onFetch(u,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta});const d=this.#a=T3({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof X0&&f.revert&&this.setState({...this.#n,fetchStatus:"idle"}),a.abort()},onFail:(f,g)=>{this.#i({type:"failed",failureCount:f,error:g})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await d.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#r.config.onSuccess?.(f,this),this.#r.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof X0){if(f.silent)return this.#a.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#i({type:"error",error:f}),this.#r.config.onError?.(f,this),this.#r.config.onSettled?.(this.state.data,f,this),f}finally{this.#a===d&&(this.#a=void 0),this.scheduleGc()}}#i(e){const t=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...A3(a.data,this.options),fetchMeta:e.meta??null};case"success":const s={...a,...s5(e.data,e.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const i=e.error;return{...a,error:i,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=t(this.state),wr.batch(()=>{this.observers.slice().forEach(a=>{a.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function A3(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:j3(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function s5(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function o5(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,a=t!==void 0,s=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var B7=class extends wu{#e;#t=void 0;#n=void 0;#r=void 0;#s;#a;#o;#l;#i;#h;#u;#d;#c;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),i5(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Z0(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Z0(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#k(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,a=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof In(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),t._defaulted&&!Bp(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&l5(this.#t,a,this.options,t)&&this.#f(),this.updateResult(),s&&(this.#t!==a||In(this.options.enabled,this.#t)!==In(t.enabled,this.#t)||In(this.options.staleTime,this.#t)!==In(t.staleTime,this.#t))&&this.#m();const i=this.#g();s&&(this.#t!==a||In(this.options.enabled,this.#t)!==In(t.enabled,this.#t)||i!==this.#c)&&this.#y(i)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),a=this.createResult(t,e);return Bp(this.getCurrentResult(),a)||(this.#r=a,this.#a=this.options,this.#s=this.#t.state),a}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(a,s)=>(this.trackProp(s),t?.(s),Reflect.get(a,s))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),a=this.#e.getQueryCache().build(this.#e,t);let s=()=>{},i;const c=new Promise(u=>{i=u,s=this.#e.getQueryCache().subscribe(d=>{d.type==="updated"&&d.query.queryHash===a.queryHash&&a.state.data!==void 0&&(s(),u(this.createResult(a,t)))})});return Promise.race([a.fetch(t).then(()=>{const u=this.createResult(a,t);return i?.(u),u}).finally(()=>{s()}),c])}fetch(e){return this.#f({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#f(e){this.#w();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ua)),t}#x(e){return!Bb()&&In(this.options.enabled,this.#t)!==!1&&S3(e)}#m(){this.#v();const e=In(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#x(e))return;const t=E3(this.#r.dataUpdatedAt,e)+1;this.#u=wl.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#g(){return In(this.options.refetchInterval,this.#t)??!1}#y(e){this.#k(),this.#c=e,!(this.#c===0||!this.#x(this.#c))&&(this.#d=wl.setInterval(()=>{(this.options.refetchIntervalInBackground||Fb.isFocused())&&this.#f()},this.#c))}#b(){this.#m(),this.#y(this.#g())}#v(){this.#u!==void 0&&(wl.clearTimeout(this.#u),this.#u=void 0)}#k(){this.#d!==void 0&&(wl.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const a=this.#t,s=this.options,i=this.#r,c=this.#s,u=this.#a,d=e!==a?e.state:this.#n,{state:f}=e;let g={...f},y=!1,b;if(t._optimisticResults){const z=this.hasListeners(),L=!z&&i5(e,t),I=z&&l5(e,a,t,s);(L||I)&&(g={...g,...A3(f.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:k,errorUpdatedAt:C,status:w}=g;b=g.data;let v=!1;if(t.placeholderData!==void 0&&b===void 0&&w==="pending"){let z;i?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(z=i.data,v=!0):z=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,z!==void 0&&(w="success",b=Y0(i?.data,z,t),y=!0)}if(t.select&&b!==void 0&&!v)if(i&&b===c?.data&&t.select===this.#l)b=this.#i;else try{this.#l=t.select,b=t.select(b),b=Y0(i?.data,b,t),this.#i=b,this.#o=null}catch(z){this.#o=z}else b===void 0&&(this.#o=null);this.#o&&(k=this.#o,b=this.#i,C=Date.now(),w="error",y=!1);const S=g.fetchStatus==="fetching",T=w==="pending",E=w==="error",j=T&&S,$=b!==void 0;return{status:w,fetchStatus:g.fetchStatus,isPending:T,isSuccess:w==="success",isError:E,isInitialLoading:j,isLoading:j,data:b,dataUpdatedAt:g.dataUpdatedAt,error:k,errorUpdatedAt:C,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:g.dataUpdateCount>d.dataUpdateCount||g.errorUpdateCount>d.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:E&&!$,isPaused:g.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:E&&$,isStale:qb(e,t),refetch:this.refetch,isEnabled:In(t.enabled,e)!==!1}}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#a=this.options,this.#s.data!==void 0&&(this.#h=this.#t),Bp(t,e))return;this.#r=t;const s=(()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,c=typeof i=="function"?i():i;if(c==="all"||!c&&!this.#p.size)return!0;const u=new Set(c??this.#p);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(d=>{const f=d;return this.#r[f]!==e[f]&&u.has(f)})})();wr.batch(()=>{s&&this.listeners.forEach(i=>{i(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}#w(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}};function F7(e,t){return In(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&In(t.retryOnMount,e)===!1)}function i5(e,t){return F7(e,t)||e.state.data!==void 0&&Z0(e,t,t.refetchOnMount)}function Z0(e,t,a){if(In(t.enabled,e)!==!1&&In(t.staleTime,e)!=="static"){const s=In(a,e);return s==="always"||s!==!1&&qb(e,t)}return!1}function l5(e,t,a,s){return(e!==t||In(s.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&qb(e,a)}function qb(e,t){return In(t.enabled,e)!==!1&&e.isStaleByTime(In(t.staleTime,e))}var q7=class extends R3{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||M3(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(e){const t=()=>{this.#s({type:"continue"})},a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},s=this.#r=T3({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(u,d)=>{this.#s({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status==="pending",c=!s.canStart();try{if(i)t();else{this.#s({type:"pending",variables:e,isPaused:c}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,a);const d=await this.options.onMutate?.(e,a);d!==this.state.context&&this.#s({type:"pending",context:d,variables:e,isPaused:c})}const u=await s.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,a),await this.options.onSuccess?.(u,e,this.state.context,a),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(u,null,e,this.state.context,a),this.#s({type:"success",data:u}),u}catch(u){try{await this.#n.config.onError?.(u,e,this.state.context,this,a)}catch(d){Promise.reject(d)}try{await this.options.onError?.(u,e,this.state.context,a)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,a)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,u,e,this.state.context,a)}catch(d){Promise.reject(d)}throw this.#s({type:"error",error:u}),u}finally{this.#r===s&&(this.#r=void 0),this.#n.runNext(this)}}#s(e){const t=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),wr.batch(()=>{this.#t.forEach(a=>{a.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function M3(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var H7=class extends wu{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,a){const s=new q7({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:a});return this.add(s),s}add(e){this.#e.add(e);const t=op(e);if(typeof t=="string"){const a=this.#t.get(t);a?a.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=op(e);if(typeof t=="string"){const a=this.#t.get(t);if(a)if(a.length>1){const s=a.indexOf(e);s!==-1&&a.splice(s,1)}else a[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=op(e);if(typeof t=="string"){const a=this.#t.get(t)?.find(s=>s.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=op(e);return typeof t=="string"?this.#t.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){wr.batch(()=>{const e=this.getAll();this.#e.clear(),this.#t.clear(),e.forEach(t=>{this.notify({type:"removed",mutation:t})})})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(a=>t5(t,a))}findAll(e={}){return this.getAll().filter(t=>t5(e,t))}notify(e){wr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return wr.batch(()=>Promise.all(e.map(t=>t.continue().catch(ua))))}};function op(e){return e.options.scope?.id}var U7=class extends wu{#e;#t=void 0;#n;#r;constructor(t,a){super(),this.#e=t,this.setOptions(a),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const a=this.options;this.options=this.#e.defaultMutationOptions(t),Bp(this.options,a)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&Al(a.mutationKey)!==Al(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#s())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#a()}mutate(t,a){return this.#r=a,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#s(){const t=this.#n?.state??M3();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){wr.batch(()=>{const a=this.#r;if(a&&this.hasListeners()){const s=this.#t.variables,i=this.#t.context,c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{a.onSuccess?.(t.data,s,i,c)}catch(u){Promise.reject(u)}try{a.onSettled?.(t.data,null,s,i,c)}catch(u){Promise.reject(u)}}else if(t?.type==="error"){try{a.onError?.(t.error,s,i,c)}catch(u){Promise.reject(u)}try{a.onSettled?.(void 0,t.error,s,i,c)}catch(u){Promise.reject(u)}}}this.listeners.forEach(s=>{s(this.#t)})})}},V7=class extends wu{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,a){const s=t.queryKey,i=t.queryHash??Ib(s,t);let c=this.get(i);return c||(c=new P7({client:e,queryKey:s,queryHash:i,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(s)}),this.add(c)),c}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){wr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(a=>e5(t,a))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(a=>e5(e,a)):t}notify(e){wr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){wr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){wr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},G7=class{#e;#t;#n;#r;#s;#a;#o;#l;constructor(e={}){this.#e=e.queryCache||new V7,this.#t=e.mutationCache||new H7,this.#n=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Fb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=nx.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#l?.(),this.#l=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),a=this.#e.build(this,t),s=a.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(In(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:a})=>[t,a.data])}setQueryData(e,t,a){const s=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(s.queryHash)?.state.data,c=C7(t,i);if(c!==void 0)return this.#e.build(this,s).setData(c,{...a,manual:!0})}setQueriesData(e,t,a){return wr.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,a)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;wr.batch(()=>{t.findAll(e).forEach(a=>{t.remove(a)})})}resetQueries(e,t){const a=this.#e;return wr.batch(()=>{const s=a.findAll(e),i=new Set(s);return s.forEach(c=>{c.reset()}),this.refetchQueries({type:"active",predicate:c=>i.has(c)},t)})}cancelQueries(e,t={}){const a={revert:!0,...t},s=wr.batch(()=>this.#e.findAll(e).map(i=>i.cancel(a)));return Promise.all(s).then(ua).catch(ua)}invalidateQueries(e,t={}){return wr.batch(()=>(this.#e.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const a={...t,cancelRefetch:t.cancelRefetch??!0},s=wr.batch(()=>this.#e.findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let c=i.fetch(void 0,a);return a.throwOnError||(c=c.catch(ua)),i.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(ua)}async query(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=this.#e.build(this,t),s=a.isStaleByTime(In(t.staleTime,a))?await a.fetch(t):a.state.data,i=t.select;return i?i(s):s}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=this.#e.build(this,t);return a.isStaleByTime(In(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ua).catch(ua)}infiniteQuery(e){return e._type="infinite",this.query(e)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ua).catch(ua)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return nx.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Al(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],a={};return t.forEach(s=>{fu(e,s.queryKey)&&Object.assign(a,s.defaultOptions)}),a}setMutationDefaults(e,t){this.#s.set(Al(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],a={};return t.forEach(s=>{fu(e,s.mutationKey)&&Object.assign(a,s.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ib(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===_b&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};const z3=x.createContext(!1),K7=()=>x.useContext(z3);z3.Provider;function W7(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Y7=x.createContext(W7()),X7=()=>x.useContext(Y7),Z7=(e,t,a)=>{const s=a?.state.status==="error"&&typeof e.throwOnError=="function"?Pb(e.throwOnError,[a.state.error,a]):e.throwOnError;(e.suspense||s)&&(t.isReset()||(e.retryOnMount=!1))},Q7=e=>{x.useEffect(()=>{e.clearReset()},[e])},J7=({result:e,errorResetBoundary:t,throwOnError:a,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&e.data===void 0||Pb(a,[e.error,s])),eR=e=>{if(e.suspense){const a=i=>i==="static"?i:Math.max(i??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...i)=>a(s(...i)):a(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},tR=(e,t)=>e?.suspense&&t.isPending,nR=(e,t,a)=>t.fetchOptimistic(e).catch(()=>{a.clearReset()});function rR(e,t,a){const s=K7(),i=X7(),c=ja(),u=c.defaultQueryOptions(e),d=c.getQueryCache().get(u.queryHash),f=e.subscribed!==!1;u._optimisticResults=s?"isRestoring":f?"optimistic":void 0,eR(u),Z7(u,i,d),Q7(i);const[g]=x.useState(()=>new t(c,u)),y=g.getOptimisticResult(u),b=!s&&f;if(x.useSyncExternalStore(x.useCallback(k=>{const C=b?g.subscribe(wr.batchCalls(k)):ua;return g.updateResult(),C},[g,b]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),x.useEffect(()=>{g.setOptions(u)},[u,g]),tR(u,y))throw nR(u,g,i);if(J7({result:y,errorResetBoundary:i,throwOnError:u.throwOnError,query:d,suspense:u.suspense}))throw y.error;return u.notifyOnChangeProps?y:g.trackResult(y)}function Va(e,t){return rR(e,B7)}function Qr(e,t){const a=ja(),[s]=x.useState(()=>new U7(a,e));x.useEffect(()=>{s.setOptions(e)},[s,e]);const i=x.useSyncExternalStore(x.useCallback(u=>s.subscribe(wr.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),c=x.useCallback((...u)=>{s.mutate(u[0],u[1]).catch(ua)},[s]);if(i.error&&Pb(s.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:c,mutateAsync:i.mutate}}var N3=e=>{throw TypeError(e)},L3=(e,t,a)=>t.has(e)||N3("Cannot "+a),cs=(e,t,a)=>(L3(e,t,"read from private field"),a?a.call(e):t.get(e)),Dd=(e,t,a)=>t.has(e)?N3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),eo=(e,t,a,s)=>(L3(e,t,"write to private field"),t.set(e,a),a),Lx=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Dx=/^[\\/]{2}/;function D3(e,t){return t+e.replace(/\\/g,"/")}var c5="popstate";function u5(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function aR(e={}){function t(i,c){let{pathname:u="/",search:d="",hash:f=""}=_s(i.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),Xd("",{pathname:u,search:d,hash:f},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function a(i,c){let u=i.document.querySelector("base"),d="";if(u&&u.getAttribute("href")){let f=i.location.href,g=f.indexOf("#");d=g===-1?f:f.slice(0,g)}return d+"#"+(typeof c=="string"?c:fa(c))}function s(i,c){Fn(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return oR(t,a,s,e)}function Dt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Fn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function sR(){return Math.random().toString(36).substring(2,10)}function d5(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Xd(e,t,a=null,s,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?_s(t):t,state:a,key:t&&t.key||s||sR(),mask:i}}function fa({pathname:e="/",search:t="",hash:a=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function _s(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substring(a),e=e.substring(0,a));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function oR(e,t,a,s={}){let{window:i=document.defaultView,v5Compat:c=!1}=s,u=i.history,d="POP",f=null,g=y();g==null&&(g=0,u.replaceState({...u.state,idx:g},""));function y(){return(u.state||{idx:null}).idx}function b(){d="POP";let S=y(),T=S==null?null:S-g;g=S,f&&f({action:d,location:v.location,delta:T})}function k(S,T){d="PUSH";let E=u5(S)?S:Xd(v.location,S,T);a&&a(E,S),g=y()+1;let j=d5(E,g),$=v.createHref(E.mask||E);try{u.pushState(j,"",$)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;i.location.assign($)}c&&f&&f({action:d,location:v.location,delta:1})}function C(S,T){d="REPLACE";let E=u5(S)?S:Xd(v.location,S,T);a&&a(E,S),g=y();let j=d5(E,g),$=v.createHref(E.mask||E);u.replaceState(j,"",$),c&&f&&f({action:d,location:v.location,delta:0})}function w(S){return O3(i,S)}let v={get action(){return d},get location(){return e(i,u)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(c5,b),f=S,()=>{i.removeEventListener(c5,b),f=null}},createHref(S){return t(i,S)},createURL:w,encodeLocation(S){let T=w(S);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:k,replace:C,go(S){return u.go(S)}};return v}function O3(e,t,a=!1){let s="http://localhost";e&&(s=e.location.origin!=="null"?e.location.origin:e.location.href),Dt(s,"No window.location.(origin|href) available to create URL");let i=typeof t=="string"?t:fa(t);return i=i.replace(/ $/,"%20"),!a&&Dx.test(i)&&(i=s+i),new URL(i,s)}var Od,f5=class{constructor(e){if(Dd(this,Od,new Map),e)for(let[t,a]of e)this.set(t,a)}get(e){if(cs(this,Od).has(e))return cs(this,Od).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){cs(this,Od).set(e,t)}};Od=new WeakMap;var iR=new Set(["lazy","caseSensitive","path","id","index","children"]);function lR(e){return iR.has(e)}var cR=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function uR(e){return cR.has(e)}function dR(e){return e.index===!0}function Zd(e,t,a=[],s={},i=!1){return e.map((c,u)=>{let d=[...a,String(u)],f=typeof c.id=="string"?c.id:d.join("-");if(Dt(c.index!==!0||!c.children,"Cannot specify children on an index route"),Dt(i||!s[f],`Found a route id collision on id "${f}". Route id's must be globally unique within Data Router usages`),dR(c)){let g={...c,id:f};return s[f]=h5(g,t(g)),g}else{let g={...c,id:f,children:void 0};return s[f]=h5(g,t(g)),c.children&&(g.children=Zd(c.children,t,d,s,i)),g}})}function h5(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function I3(e,t,a="/"){return zs(e,t,a,!1)}function zs(e,t,a,s,i){let c=typeof t=="string"?_s(t):t,u=gs(c.pathname||"/",a);if(u==null)return null;let d=i??Fp(e),f=null,g=wR(u);for(let y=0;f==null&&y<d.length;++y)f=kR(d[y],g,s);return f}function _3(e,t){let{route:a,pathname:s,params:i}=e;return{id:a.id,pathname:s,params:i,data:t[a.id],loaderData:t[a.id],handle:a.handle}}function Fp(e){let t=P3(e);return fR(t),t}function P3(e,t=[],a=[],s="",i=!1){let c=(u,d,f=i,g)=>{let y={relativePath:g===void 0?u.path||"":g,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(s)&&f)return;Dt(y.relativePath.startsWith(s),`Absolute route path "${y.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(s.length)}let b=xs([s,y.relativePath]),k=a.concat(y);u.children&&u.children.length>0&&(Dt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),P3(u.children,t,k,b,f)),!(u.path==null&&!u.index)&&t.push({path:b,score:bR(b,u.index),routesMeta:k.map((C,w)=>{let[v,S]=q3(C.relativePath,C.caseSensitive,w===k.length-1);return{...C,matcher:v,compiledParams:S}})})};return e.forEach((u,d)=>{if(u.path===""||!u.path?.includes("?"))c(u,d);else for(let f of B3(u.path))c(u,d,!0,f)}),t}function B3(e){let t=e.split("/");if(t.length===0)return[];let[a,...s]=t,i=a.endsWith("?"),c=a.replace(/\?$/,"");if(s.length===0)return i?[c,""]:[c];let u=B3(s.join("/")),d=[];return d.push(...u.map(f=>f===""?c:[c,f].join("/"))),i&&d.push(...u),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function fR(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:vR(t.routesMeta.map(s=>s.childrenIndex),a.routesMeta.map(s=>s.childrenIndex)))}var hR=/^:[\w-]+$/,pR=3,xR=2,mR=1,gR=10,yR=-2,p5=e=>e==="*";function bR(e,t){let a=e.split("/"),s=a.length;return a.some(p5)&&(s+=yR),t&&(s+=xR),a.filter(i=>!p5(i)).reduce((i,c)=>i+(hR.test(c)?pR:c===""?mR:gR),s)}function vR(e,t){return e.length===t.length&&e.slice(0,-1).every((s,i)=>s===t[i])?e[e.length-1]-t[t.length-1]:0}function kR(e,t,a=!1){let{routesMeta:s}=e,i={},c="/",u=[];for(let d=0;d<s.length;++d){let f=s[d],g=d===s.length-1,y=c==="/"?t:t.slice(c.length)||"/",b={path:f.relativePath,caseSensitive:f.caseSensitive,end:g},k=f.matcher&&f.compiledParams?F3(b,y,f.matcher,f.compiledParams):rx(b,y),C=f.route;if(!k&&g&&a&&!s[s.length-1].route.index&&(k=rx({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},y)),!k)return null;Object.assign(i,k.params),u.push({params:i,pathname:xs([c,k.pathname]),pathnameBase:CR(xs([c,k.pathnameBase])),route:C}),k.pathnameBase!=="/"&&(c=xs([c,k.pathnameBase]))}return u}function rx(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,s]=q3(e.path,e.caseSensitive,e.end);return F3(e,t,a,s)}function F3(e,t,a,s){let i=t.match(a);if(!i)return null;let c=i[0],u=hu(c,1),d=i.slice(1);return{params:s.reduce((g,{paramName:y,isOptional:b},k)=>{if(y==="*"){let w=d[k]||"";u=hu(c.slice(0,c.length-w.length),1)}const C=d[k];return b&&!C?g[y]=void 0:g[y]=(C||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:u,pattern:e}}function q3(e,t=!1,a=!0){Fn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,f,g,y)=>{if(s.push({paramName:d,isOptional:f!=null}),f){let b=y.charAt(g+u.length);return b&&b!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),s]}function wR(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function gs(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,s=e.charAt(a);return s&&s!=="/"?null:e.slice(a)||"/"}function SR({basename:e,pathname:t}){return t==="/"?e:xs([e,t])}var Hb=e=>Lx.test(e);function ER(e,t="/"){let{pathname:a,search:s="",hash:i=""}=typeof e=="string"?_s(e):e,c;return a?(a=Ub(a),a.startsWith("/")||a.startsWith("\\")?c=x5(a.substring(1),"/"):c=x5(a,t)):c=t,{pathname:c,search:$R(s),hash:jR(i)}}function x5(e,t){let a=hu(t).split("/");return e.split("/").forEach(i=>{i===".."?a.length>1&&a.pop():i!=="."&&a.push(i)}),a.length>1?a.join("/"):"/"}function Ky(e,t,a,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function H3(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function Ox(e){let t=H3(e);return t.map((a,s)=>s===t.length-1?a.pathname:a.pathnameBase)}function ff(e,t,a,s=!1){let i;typeof e=="string"?i=_s(e):(i={...e},Dt(!i.pathname||!i.pathname.includes("?"),Ky("?","pathname","search",i)),Dt(!i.pathname||!i.pathname.includes("#"),Ky("#","pathname","hash",i)),Dt(!i.search||!i.search.includes("#"),Ky("#","search","hash",i)));let c=e===""||i.pathname==="",u=c?"/":i.pathname,d;if(u==null)d=a;else{let b=t.length-1;if(!s&&u.startsWith("..")){let k=u.split("/");for(;k[0]==="..";)k.shift(),b-=1;i.pathname=k.join("/")}d=b>=0?t[b]:"/"}let f=ER(i,d),g=u&&u!=="/"&&u.endsWith("/"),y=(c||u===".")&&a.endsWith("/");return!f.pathname.endsWith("/")&&(g||y)&&(f.pathname+="/"),f}var Ub=e=>e.replace(/[\\/]{2,}/g,"/"),xs=e=>Ub(e.join("/"));function hu(e,t=0){let a=e.length;for(;a>t&&e.charCodeAt(a-1)===47;)a--;return a===e.length?e:e.slice(0,a)}var CR=e=>hu(e).replace(/^\/*/,"/"),$R=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,jR=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,TR=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],hf=class{constructor(e,t,a,s=!1){this.status=e,this.statusText=t||"",this.internal=s,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function Qd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function pf(e){let t=e.map(a=>a.route.path).filter(Boolean);return xs(t)||"/"}var U3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function V3(e,t){let a=e;if(typeof a!="string"||!Lx.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let s=a,i=!1;if(U3)try{let c=new URL(window.location.href),u=Dx.test(a)?new URL(D3(a,c.protocol)):new URL(a),d=gs(u.pathname,t);u.origin===c.origin&&d!=null?a=d+u.search+u.hash:i=!0}catch{Fn(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:i,to:a}}var Ri=Symbol("Uninstrumented");function RR(e,t){let a={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(i=>i({id:t.id,index:t.index,path:t.path,instrument(c){let u=Object.keys(a);for(let d of u)c[d]&&a[d].push(c[d])}}));let s={};if(typeof t.lazy=="function"&&a.lazy.length>0){let i=Zc(a.lazy,t.lazy,()=>{});i&&(s.lazy=i)}if(typeof t.lazy=="object"){let i=t.lazy;["middleware","loader","action"].forEach(c=>{let u=i[c],d=a[`lazy.${c}`];if(typeof u=="function"&&d.length>0){let f=Zc(d,u,()=>{});f&&(s.lazy=Object.assign(s.lazy||{},{[c]:f}))}})}return["loader","action"].forEach(i=>{let c=t[i];if(typeof c=="function"&&a[i].length>0){let u=c[Ri]??c,d=Zc(a[i],u,(...f)=>m5(f[0]));d&&(i==="loader"&&u.hydrate===!0&&(d.hydrate=!0),d[Ri]=u,s[i]=d)}}),t.middleware&&t.middleware.length>0&&a.middleware.length>0&&(s.middleware=t.middleware.map(i=>{let c=i[Ri]??i,u=Zc(a.middleware,c,(...d)=>m5(d[0]));return u?(u[Ri]=c,u):i})),s}function AR(e,t){let a={navigate:[],fetch:[]};if(t.forEach(s=>s({instrument(i){let c=Object.keys(i);for(let u of c)i[u]&&a[u].push(i[u])}})),a.navigate.length>0){let s=e.navigate[Ri]??e.navigate,i=Zc(a.navigate,s,(...c)=>{let[u,d]=c;return{to:typeof u=="number"||typeof u=="string"?u:u?fa(u):".",...g5(e,d??{})}});i&&(i[Ri]=s,e.navigate=i)}if(a.fetch.length>0){let s=e.fetch[Ri]??e.fetch,i=Zc(a.fetch,s,(...c)=>{let[u,,d,f]=c;return{href:d??".",fetcherKey:u,...g5(e,f??{})}});i&&(i[Ri]=s,e.fetch=i)}return e}function Zc(e,t,a){return e.length===0?null:async(...s)=>{let i=await G3(e,a(...s),()=>t(...s),e.length-1);if(i.type==="error")throw i.value;return i.value}}async function G3(e,t,a,s){let i=e[s],c;if(i){let u,d=async()=>(u?console.error("You cannot call instrumented handlers more than once"):u=G3(e,t,a,s-1),c=await u,Dt(c,"Expected a result"),c.type==="error"&&c.value instanceof Error?{status:"error",error:c.value}:{status:"success",error:void 0});try{await i(d,t)}catch(f){console.error("An instrumentation function threw an error:",f)}u||await d(),await u}else try{c={type:"success",value:await a()}}catch(u){c={type:"error",value:u}}return c||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function m5(e){let{request:t,context:a,params:s,pattern:i}=e;return{request:MR(t),params:{...s},pattern:i,context:zR(a)}}function g5(e,t){return{currentUrl:fa(e.state.location),..."formMethod"in t?{formMethod:t.formMethod}:{},..."formEncType"in t?{formEncType:t.formEncType}:{},..."formData"in t?{formData:t.formData}:{},..."body"in t?{body:t.body}:{}}}function MR(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function zR(e){if(LR(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var NR=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function LR(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getOwnPropertyNames(t).sort().join("\0")===NR}var y5=new URL("http://localhost");function Vb(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),y5)}catch{return y5}}function Wy(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function DR(e,t){if(e.startsWith("//"))return!0;let a=t.protocol.toLowerCase();return e.toLowerCase().startsWith(a)?t.host===""||e.slice(a.length).startsWith("//"):!1}function tu(e,t,a,s){let i=null;try{i=e==null?null:new URL(e,a)}catch{}let c=new URL(t,a),u=i!=null&&!Wy(i,a),d=!Wy(c,a);if(s==="reject"){if(u||d)throw new Error("External navigation is not allowed")}else if(d&&(i==null||!DR(e,i)||!Wy(i,c)))throw new Error("External navigation is not allowed")}var K3=["POST","PUT","PATCH","DELETE"],OR=new Set(K3),IR=["GET",...K3],_R=new Set(IR),W3=new Set([301,302,303,307,308]),PR=new Set([307,308]),Yy={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},BR={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Cd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},FR=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Y3="remix-router-transitions",X3=Symbol("ResetLoaderData"),yl,Wc,$i,Yc,qR=class{constructor(e){Dd(this,yl),Dd(this,Wc),Dd(this,$i),Dd(this,Yc),eo(this,yl,e),eo(this,Wc,Fp(e))}get stableRoutes(){return cs(this,yl)}get activeRoutes(){return cs(this,$i)??cs(this,yl)}get branches(){return cs(this,Yc)??cs(this,Wc)}get hasHMRRoutes(){return cs(this,$i)!=null}setRoutes(e){eo(this,yl,e),eo(this,Wc,Fp(e))}setHmrRoutes(e){eo(this,$i,e),eo(this,Yc,Fp(e))}commitHmrRoutes(){cs(this,$i)&&(eo(this,yl,cs(this,$i)),eo(this,Wc,cs(this,Yc)),eo(this,$i,void 0),eo(this,Yc,void 0))}};yl=new WeakMap;Wc=new WeakMap;$i=new WeakMap;Yc=new WeakMap;function HR(e){const t=e.window?e.window:typeof window<"u"?window:void 0,a=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";Dt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=e.hydrationRouteProperties||[],i=e.mapRouteProperties||FR,c=i;if(e.instrumentations){let W=e.instrumentations;c=Y=>({...i(Y),...RR(W.map(ue=>ue.route).filter(Boolean),Y)})}let u={},d=new qR(Zd(e.routes,c,void 0,u)),f=e.basename||"/";f.startsWith("/")||(f=`/${f}`);let g=e.dataStrategy||WR,y={...e.future},b=null,k=new Set,C=null,w=null,v=null,S=null,T=e.hydrationData!=null,E=zs(d.activeRoutes,e.history.location,f,!1,d.branches),j=!1,$=null,z,L;if(E==null&&!e.patchRoutesOnNavigation){let W=us(404,{pathname:e.history.location.pathname}),{matches:Y,route:ue}=ip(d.activeRoutes);z=!0,L=!z,E=Y,$={[ue.id]:W}}else if(E&&!e.hydrationData&&hr(E,d.activeRoutes,e.history.location.pathname).active&&(E=null),E)if(E.some(W=>W.route.lazy))z=!1,L=!z;else if(!E.some(W=>Gb(W.route)))z=!0,L=!z;else{let W=e.hydrationData?e.hydrationData.loaderData:null,Y=e.hydrationData?e.hydrationData.errors:null,ue=E;if(Y){let be=E.findIndex(je=>Y[je.route.id]!==void 0);ue=ue.slice(0,be+1)}L=!1,z=!0,ue.forEach(be=>{let je=Z3(be.route,W,Y);L=L||je.renderFallback,z=z&&!je.shouldLoad})}else{z=!1,L=!z,E=[];let W=hr(null,d.activeRoutes,e.history.location.pathname);W.active&&W.matches&&(j=!0,E=W.matches)}let I,N={historyAction:e.history.action,location:e.history.location,matches:E,initialized:z,renderFallback:L,navigation:Yy,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||$,fetchers:new Map,blockers:new Map},D="POP",P=null,K=!1,oe,V=!1,H=new Map,Z=null,F=!1,q=!1,Q=new Set,ae=new Map,J=0,se=-1,te=new Map,fe=new Set,B=new Map,ee=new Map,me=new Set,pe=new Map,ve,ye=null;function Oe(){if(b=e.history.listen(({action:W,location:Y,delta:ue})=>{if(ve){ve(),ve=void 0;return}Fn(pe.size===0||ue!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let be=bn({currentLocation:N.location,nextLocation:Y,historyAction:W});if(be&&ue!=null){let je=new Promise(Qe=>{ve=Qe});e.history.go(ue*-1),Cn(be,{state:"blocked",location:Y,proceed(){Cn(be,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),je.then(()=>e.history.go(ue))},reset(){let Qe=new Map(N.blockers);Qe.set(be,Cd),Pe({blockers:Qe})}}),P?.resolve(),P=null;return}return Ie(W,Y)}),a){hA(t,H);let W=()=>pA(t,H);t.addEventListener("pagehide",W),Z=()=>t.removeEventListener("pagehide",W)}return N.initialized||Ie("POP",N.location,{initialHydration:!0}),I}function ie(){b&&b(),Z&&Z(),k.clear(),oe&&oe.abort(),N.fetchers.forEach((W,Y)=>Mn(N.fetchers,Y)),N.blockers.forEach((W,Y)=>Ue(Y))}function $e(W){if(k.add(W),C){let{newErrors:Y}=C;C=null,W(N,{deletedFetchers:[],newErrors:Y,viewTransitionOpts:void 0,flushSync:!1})}return()=>k.delete(W)}function Pe(W,Y={}){W.matches&&(W.matches=W.matches.map(je=>{let Qe=u[je.route.id],Xe=je.route;return Xe.element!==Qe.element||Xe.errorElement!==Qe.errorElement||Xe.hydrateFallbackElement!==Qe.hydrateFallbackElement?{...je,route:Qe}:je})),N={...N,...W};let ue=[],be=[];N.fetchers.forEach((je,Qe)=>{je.state==="idle"&&(me.has(Qe)?ue.push(Qe):be.push(Qe))}),me.forEach(je=>{!N.fetchers.has(je)&&!ae.has(je)&&ue.push(je)}),k.size===0&&(C={newErrors:W.errors??null}),[...k].forEach(je=>je(N,{deletedFetchers:ue,newErrors:W.errors??null,viewTransitionOpts:Y.viewTransitionOpts,flushSync:Y.flushSync===!0})),ue.forEach(je=>Mn(N.fetchers,je)),be.forEach(je=>N.fetchers.delete(je))}function He(W,Y,{flushSync:ue}={}){let be=N.actionData!=null&&N.navigation.formMethod!=null&&Xr(N.navigation.formMethod)&&N.navigation.state==="loading"&&W.state?._isRedirect!==!0,je;Y.actionData?Object.keys(Y.actionData).length>0?je=Y.actionData:je=null:be?je=N.actionData:je=null;let Qe=Y.loaderData?T5(N.loaderData,Y.loaderData,Y.matches||[],Y.errors):N.loaderData,Xe=N.blockers;Xe.size>0&&(Xe=new Map(Xe),Xe.forEach((rt,pt)=>Xe.set(pt,Cd)));let ze=F?!1:ea(W,Y.matches||N.matches),qe=K===!0||N.navigation.formMethod!=null&&Xr(N.navigation.formMethod)&&W.state?._isRedirect!==!0;d.commitHmrRoutes(),F||D==="POP"||(D==="PUSH"?e.history.push(W,W.state):D==="REPLACE"&&e.history.replace(W,W.state));let dt;if(D==="POP"&&!F&&W!==N.location){let rt=H.get(N.location.pathname);rt&&rt.has(W.pathname)?dt={currentLocation:N.location,nextLocation:W}:H.has(W.pathname)&&(dt={currentLocation:W,nextLocation:N.location})}else if(V){let rt=H.get(N.location.pathname);rt?rt.add(W.pathname):(rt=new Set([W.pathname]),H.set(N.location.pathname,rt)),dt={currentLocation:N.location,nextLocation:W}}Pe({...Y,actionData:je,loaderData:Qe,historyAction:D,location:W,initialized:!0,renderFallback:!1,navigation:Yy,revalidation:"idle",restoreScrollPosition:ze,preventScrollReset:qe,blockers:Xe},{viewTransitionOpts:dt,flushSync:ue===!0}),D="POP",K=!1,V=!1,F=!1,q=!1,P?.resolve(),P=null,ye?.resolve(),ye=null}async function Ze(W,Y){if(P?.resolve(),P=null,typeof W=="number"){P||(P=z5());let Zt=P.promise;return e.history.go(W),Zt}let ue=Q0(N.location,N.matches,f,W,Y?.fromRouteId,Y?.relative),{path:be,submission:je,error:Qe}=b5(!1,ue,Y),Xe;if(Y?.mask){let Zt=typeof Y.mask=="string"?_s(Y.mask):{...N.location.mask,...Y.mask};if(Xe={pathname:Zt.pathname??"",search:Zt.search??"",hash:Zt.hash??""},Dx.test(Xe.pathname))throw new Error("External navigation is not allowed");Xe.pathname.startsWith("\\")&&(Xe.pathname=Xe.pathname.replace(/^\\+/,"/")),tu(typeof Y.mask=="string"?Y.mask:fa(Y.mask),fa(Xe),e.history.createURL("/"),"reject")}let ze=N.location,qe=Xd(ze,be,Y&&Y.state,void 0,Xe);qe={...qe,...e.history.encodeLocation(qe)},tu(W==null?e.history.createHref(N.location):typeof W=="string"?W:fa(W),e.history.createHref(qe.mask||qe),e.history.createURL("/"),"reject");let dt=Y&&Y.replace!=null?Y.replace:void 0,rt="PUSH";dt===!0?rt="REPLACE":dt===!1||je!=null&&Xr(je.formMethod)&&je.formAction===N.location.pathname+N.location.search&&(rt="REPLACE");let pt=Y&&"preventScrollReset"in Y?Y.preventScrollReset===!0:void 0,ot=(Y&&Y.flushSync)===!0,Ft=bn({currentLocation:ze,nextLocation:qe,historyAction:rt});if(Ft){Cn(Ft,{state:"blocked",location:qe,proceed(){Cn(Ft,{state:"proceeding",proceed:void 0,reset:void 0,location:qe}),Ze(W,Y)},reset(){let Zt=new Map(N.blockers);Zt.set(Ft,Cd),Pe({blockers:Zt})}});return}await Ie(rt,qe,{submission:je,pendingError:Qe,preventScrollReset:pt,replace:Y&&Y.replace,enableViewTransition:Y&&Y.viewTransition,flushSync:ot,callSiteDefaultShouldRevalidate:Y&&Y.defaultShouldRevalidate})}function Fe(){ye||(ye=z5()),Tt(),Pe({revalidation:"loading"});let W=ye.promise;return N.navigation.state==="submitting"?W:N.navigation.state==="idle"?(Ie(N.historyAction,N.location,{startUninterruptedRevalidation:!0}),W):(Ie(D||N.historyAction,N.navigation.location,{overrideNavigation:N.navigation,enableViewTransition:V===!0}),W)}async function Ie(W,Y,ue){oe&&oe.abort(),oe=null,D=W,F=(ue&&ue.startUninterruptedRevalidation)===!0,Dr(N.location,N.matches),K=(ue&&ue.preventScrollReset)===!0,V=(ue&&ue.enableViewTransition)===!0;let be=d.activeRoutes,je=ue?.initialHydration&&N.matches&&N.matches.length>0&&!j?N.matches:zs(be,Y,f,!1,d.branches),Qe=(ue&&ue.flushSync)===!0;if(je&&N.initialized&&!q&&rA(N.location,Y)&&!(ue&&ue.submission&&Xr(ue.submission.formMethod))){He(Y,{matches:je},{flushSync:Qe});return}let Xe=hr(je,be,Y.pathname);if(Xe.active&&Xe.matches&&(je=Xe.matches),!je){let{error:Vt,notFoundMatches:It,route:zn}=vn(Y.pathname);He(Y,{matches:It,loaderData:{},errors:{[zn.id]:Vt}},{flushSync:Qe});return}let ze=ue&&ue.overrideNavigation?{...ue.overrideNavigation,matches:je,historyAction:W}:void 0;oe=new AbortController;let qe=Xc(e.history,Y,oe.signal,ue&&ue.submission),dt=e.getContext?await e.getContext():new f5,rt;if(ue&&ue.pendingError)rt=[Ti(je).route.id,{type:"error",error:ue.pendingError}];else if(ue&&ue.submission&&Xr(ue.submission.formMethod)){let Vt=await at(qe,Y,ue.submission,je,W,dt,Xe.active,ue&&ue.initialHydration===!0,{replace:ue.replace,flushSync:Qe});if(Vt.shortCircuited)return;if(Vt.pendingActionResult){let[It,zn]=Vt.pendingActionResult;if(Ua(zn)&&Qd(zn.error)&&zn.error.status===404){oe=null,He(Y,{matches:Vt.matches,loaderData:{},errors:{[It]:zn.error}});return}}je=Vt.matches||je,rt=Vt.pendingActionResult,ze=Xy(Y,je,W,ue.submission),Qe=!1,Xe.active=!1,qe=Xc(e.history,qe.url,qe.signal)}let{shortCircuited:pt,matches:ot,loaderData:Ft,errors:Zt,workingFetchers:ln}=await wt(qe,Y,je,W,dt,Xe.active,ze,ue&&ue.submission,ue&&ue.fetcherSubmission,ue&&ue.replace,ue&&ue.initialHydration===!0,Qe,rt,ue&&ue.callSiteDefaultShouldRevalidate);pt||(oe=null,He(Y,{matches:ot||je,...R5(rt),loaderData:Ft,errors:Zt,...ln?{fetchers:ln}:{}}))}async function at(W,Y,ue,be,je,Qe,Xe,ze,qe={}){Tt();let dt=dA(Y,be,je,ue);if(Pe({navigation:dt},{flushSync:qe.flushSync===!0}),Xe){let ot=await nn(be,Y.pathname,W.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:Zt,route:ln}=ip(d.activeRoutes);return{matches:Zt,pendingActionResult:[ln.id,{type:"error",error:ot.error}]}}let Ft=Ti(ot.partialMatches).route.id;return{matches:ot.partialMatches,pendingActionResult:[Ft,{type:"error",error:ot.error}]}}else if(ot.matches)be=ot.matches;else{let{notFoundMatches:Ft,error:Zt,route:ln}=vn(Y.pathname);return{matches:Ft,pendingActionResult:[ln.id,{type:"error",error:Zt}]}}}let rt,pt=qp(be,Y);if(!pt.route.action&&!pt.route.lazy)rt={type:"error",error:us(405,{method:W.method,pathname:Y.pathname,routeId:pt.route.id})};else{let ot=nu(c,u,W,Y,be,pt,ze?[]:s,Qe),Ft=await St(W,Y,ot,Qe,null);if(rt=Ft[pt.route.id],!rt){for(let Zt of be)if(Ft[Zt.route.id]){rt=Ft[Zt.route.id];break}}if(W.signal.aborted)return{shortCircuited:!0}}if(Sl(rt)){let ot;return qe&&qe.replace!=null?ot=qe.replace:ot=C5(rt.response.headers.get("Location"),new URL(W.url),f,e.history)===N.location.pathname+N.location.search,await vt(W,rt,!0,{submission:ue,replace:ot}),{shortCircuited:!0}}if(Ua(rt)){let ot=Ti(be,pt.route.id);return(qe&&qe.replace)!==!0&&(D="PUSH"),{matches:be,pendingActionResult:[ot.route.id,rt,pt.route.id]}}return{matches:be,pendingActionResult:[pt.route.id,rt]}}async function wt(W,Y,ue,be,je,Qe,Xe,ze,qe,dt,rt,pt,ot,Ft){let Zt=Xe||Xy(Y,ue,be,ze),ln=ze||qe||M5(Zt),Vt=!F&&!rt;if(Qe){if(Vt){let wn=Nt(ot);Pe({navigation:Zt,...wn!==void 0?{actionData:wn}:{}},{flushSync:pt})}let Et=await nn(ue,Y.pathname,W.signal);if(Et.type==="aborted")return{shortCircuited:!0};if(Et.type==="error"){if(Et.partialMatches.length===0){let{matches:Nn,route:tr}=ip(d.activeRoutes);return{matches:Nn,loaderData:{},errors:{[tr.id]:Et.error}}}let wn=Ti(Et.partialMatches).route.id;return{matches:Et.partialMatches,loaderData:{},errors:{[wn]:Et.error}}}else if(Et.matches)ue=Et.matches;else{let{error:wn,notFoundMatches:Nn,route:tr}=vn(Y.pathname);return{matches:Nn,loaderData:{},errors:{[tr.id]:wn}}}}let It=d.activeRoutes,{dsMatches:zn,revalidatingFetchers:Un}=v5(W,je,c,u,e.history,N,ue,ln,Y,rt?[]:s,rt===!0,q,Q,me,B,fe,It,f,e.patchRoutesOnNavigation!=null,d.branches,ot,Ft);if(se=++J,!e.dataStrategy&&!zn.some(Et=>Et.shouldLoad)&&!zn.some(Et=>Et.route.middleware&&Et.route.middleware.length>0)&&Un.length===0){let Et=new Map(N.fetchers),wn=mn(Et);return He(Y,{matches:ue,loaderData:{},errors:ot&&Ua(ot[1])?{[ot[0]]:ot[1].error}:null,...R5(ot),...wn?{fetchers:Et}:{}},{flushSync:pt}),{shortCircuited:!0}}if(Vt){let Et={};if(!Qe){Et.navigation=Zt;let wn=Nt(ot);wn!==void 0&&(Et.actionData=wn)}Un.length>0&&(Et.fetchers=gt(Un)),Pe(Et,{flushSync:pt})}Un.forEach(Et=>{an(Et.key),Et.controller&&ae.set(Et.key,Et.controller)});let ha=()=>Un.forEach(Et=>an(Et.key));oe&&oe.signal.addEventListener("abort",ha);let{loaderResults:Vn,fetcherResults:sn}=await xt(zn,Un,W,Y,je);if(W.signal.aborted)return{shortCircuited:!0};oe&&oe.signal.removeEventListener("abort",ha),Un.forEach(Et=>ae.delete(Et.key));let kn=lp(Vn);if(kn)return await vt(W,kn.result,!0,{replace:dt}),{shortCircuited:!0};if(kn=lp(sn),kn)return fe.add(kn.key),await vt(W,kn.result,!0,{replace:dt}),{shortCircuited:!0};let Gn=new Map(N.fetchers),{loaderData:ar,errors:$r}=j5(N,ue,Vn,ot,Un,sn,Gn);rt&&N.errors&&($r={...N.errors,...$r});let Gr=mn(Gn),bs=_n(se,Gn),pr=Gr||bs||Un.length>0;return{matches:ue,loaderData:ar,errors:$r,...pr?{workingFetchers:Gn}:{}}}function Nt(W){if(W&&!Ua(W[1]))return{[W[0]]:W[1].data};if(N.actionData)return Object.keys(N.actionData).length===0?null:N.actionData}function gt(W){let Y=new Map(N.fetchers);return W.forEach(ue=>{let be=Y.get(ue.key),je=$d(void 0,be?be.data:void 0);Y.set(ue.key,je)}),Y}async function st(W,Y,ue,be){an(W);let je=(be&&be.flushSync)===!0,Qe=d.activeRoutes,Xe=Q0(N.location,N.matches,f,ue,Y,be?.relative),ze=zs(Qe,Xe,f,!1,d.branches),qe=hr(ze,Qe,Xe);if(qe.active&&qe.matches&&(ze=qe.matches),!ze){ut(W,Y,us(404,{pathname:Xe}),{flushSync:je});return}let{path:dt,submission:rt,error:pt}=b5(!0,Xe,be);if(pt){ut(W,Y,pt,{flushSync:je});return}let ot=e.getContext?await e.getContext():new f5,Ft=(be&&be.preventScrollReset)===!0;if(rt&&Xr(rt.formMethod)){await Lt(W,Y,dt,ze,ot,qe.active,je,Ft,rt,be&&be.defaultShouldRevalidate);return}B.set(W,{routeId:Y,path:dt}),await nt(W,Y,dt,ze,ot,qe.active,je,Ft,rt)}async function Lt(W,Y,ue,be,je,Qe,Xe,ze,qe,dt){Tt(),B.delete(W);let rt=N.fetchers.get(W);Me(W,fA(qe,rt),{flushSync:Xe});let pt=new AbortController,ot=Xc(e.history,ue,pt.signal,qe);if(Qe){let kt=await nn(be,new URL(ot.url).pathname,ot.signal,W);if(kt.type==="aborted")return;if(kt.type==="error"){ut(W,Y,kt.error,{flushSync:Xe});return}else if(kt.matches)be=kt.matches;else{ut(W,Y,us(404,{pathname:ue}),{flushSync:Xe});return}}let Ft=qp(be,ue);if(!Ft.route.action&&!Ft.route.lazy){let kt=us(405,{method:qe.formMethod,pathname:ue,routeId:Y});ut(W,Y,kt,{flushSync:Xe});return}ae.set(W,pt);let Zt=J,ln=nu(c,u,ot,ue,be,Ft,s,je),Vt=await St(ot,ue,ln,je,W),It=Vt[Ft.route.id];if(!It){for(let kt of ln)if(Vt[kt.route.id]){It=Vt[kt.route.id];break}}if(ot.signal.aborted){ae.get(W)===pt&&ae.delete(W);return}if(me.has(W)){if(Sl(It)||Ua(It)){Me(W,ro(void 0));return}}else{if(Sl(It))if(ae.delete(W),se>Zt){Me(W,ro(void 0));return}else return fe.add(W),Me(W,$d(qe)),vt(ot,It,!1,{fetcherSubmission:qe,preventScrollReset:ze});if(Ua(It)){ut(W,Y,It.error);return}}let zn=N.navigation.location||N.location,Un=Xc(e.history,zn,pt.signal),ha=d.activeRoutes,Vn=N.navigation.state!=="idle"?zs(ha,N.navigation.location,f,!1,d.branches):N.matches;Dt(Vn,"Didn't find any matches after fetcher action");let sn=++J;te.set(W,sn);let{dsMatches:kn,revalidatingFetchers:Gn}=v5(Un,je,c,u,e.history,N,Vn,qe,zn,s,!1,q,Q,me,B,fe,ha,f,e.patchRoutesOnNavigation!=null,d.branches,[Ft.route.id,It],dt),ar=$d(qe,It.data),$r=new Map(N.fetchers);$r.set(W,ar),Gn.filter(kt=>kt.key!==W).forEach(kt=>{let pa=kt.key,uo=$r.get(pa),fo=$d(void 0,uo?uo.data:void 0);$r.set(pa,fo),an(pa),kt.controller&&ae.set(pa,kt.controller)}),Pe({fetchers:$r});let Gr=()=>Gn.forEach(kt=>an(kt.key));pt.signal.addEventListener("abort",Gr);let{loaderResults:bs,fetcherResults:pr}=await xt(kn,Gn,Un,zn,je);if(pt.signal.aborted)return;pt.signal.removeEventListener("abort",Gr),te.delete(W),ae.delete(W),Gn.forEach(kt=>ae.delete(kt.key));let Et=N.fetchers.has(W),wn=kt=>{if(!Et)return kt;let pa=new Map(kt.fetchers);return pa.set(W,ro(It.data)),{...kt,fetchers:pa}},Nn=lp(bs);if(Nn)return N=wn(N),vt(Un,Nn.result,!1,{preventScrollReset:ze});if(Nn=lp(pr),Nn)return fe.add(Nn.key),N=wn(N),vt(Un,Nn.result,!1,{preventScrollReset:ze});let tr=new Map(N.fetchers);Et&&tr.set(W,ro(It.data));let{loaderData:Ma,errors:ta}=j5(N,Vn,bs,void 0,Gn,pr,tr);_n(sn,tr),N.navigation.state==="loading"&&sn>se?(Dt(D,"Expected pending action"),oe&&oe.abort(),He(N.navigation.location,{matches:Vn,loaderData:Ma,errors:ta,fetchers:tr})):(Pe({errors:ta,loaderData:T5(N.loaderData,Ma,Vn,ta),fetchers:tr}),q=!1)}async function nt(W,Y,ue,be,je,Qe,Xe,ze,qe){let dt=N.fetchers.get(W);Me(W,$d(qe,dt?dt.data:void 0),{flushSync:Xe});let rt=new AbortController,pt=Xc(e.history,ue,rt.signal);if(Qe){let It=await nn(be,new URL(pt.url).pathname,pt.signal,W);if(It.type==="aborted")return;if(It.type==="error"){ut(W,Y,It.error,{flushSync:Xe});return}else if(It.matches)be=It.matches;else{ut(W,Y,us(404,{pathname:ue}),{flushSync:Xe});return}}let ot=qp(be,ue);ae.set(W,rt);let Ft=J,Zt=nu(c,u,pt,ue,be,ot,s,je),ln=await St(pt,ue,Zt,je,W),Vt=ln[ot.route.id];if(!Vt){for(let It of be)if(ln[It.route.id]){Vt=ln[It.route.id];break}}if(ae.get(W)===rt&&ae.delete(W),!pt.signal.aborted){if(me.has(W)){Me(W,ro(void 0));return}if(Sl(Vt))if(se>Ft){Me(W,ro(void 0));return}else{fe.add(W),await vt(pt,Vt,!1,{preventScrollReset:ze});return}if(Ua(Vt)){ut(W,Y,Vt.error);return}Me(W,ro(Vt.data))}}async function vt(W,Y,ue,{submission:be,fetcherSubmission:je,preventScrollReset:Qe,replace:Xe}={}){ue||(P?.resolve(),P=null),Y.response.headers.has("X-Remix-Revalidate")&&(q=!0);let ze=Y.response.headers.get("Location");Dt(ze,"Expected a Location header on the redirect Response");let qe=ze,dt=new URL(W.url);ze=C5(ze,dt,f,e.history),tu(qe,ze,dt,"allow-explicit");let rt=Xd(N.location,ze,{_isRedirect:!0});if(a){let Vt=!1;if(Y.response.headers.has("X-Remix-Reload-Document"))Vt=!0;else if(Hb(ze)){const It=O3(t,ze,!0);Vt=It.origin!==t.location.origin||gs(It.pathname,f)==null}if(Vt){Xe?t.location.replace(ze):t.location.assign(ze);return}}oe=null;let pt=Xe===!0||Y.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:ot,formAction:Ft,formEncType:Zt}=N.navigation;!be&&!je&&ot&&Ft&&Zt&&(be=M5(N.navigation));let ln=be||je;if(PR.has(Y.response.status)&&ln&&Xr(ln.formMethod))await Ie(pt,rt,{submission:{...ln,formAction:ze},preventScrollReset:Qe||K,enableViewTransition:ue?V:void 0});else{let Vt=Xy(rt,[],pt,be);await Ie(pt,rt,{overrideNavigation:Vt,fetcherSubmission:je,preventScrollReset:Qe||K,enableViewTransition:ue?V:void 0})}}async function St(W,Y,ue,be,je){let Qe,Xe={};try{Qe=await XR(g,W,Y,ue,je,be,!1)}catch(ze){return ue.filter(qe=>qe.shouldLoad).forEach(qe=>{Xe[qe.route.id]={type:"error",error:ze}}),Xe}if(W.signal.aborted)return Xe;if(!Xr(W.method))for(let ze of ue){if(Qe[ze.route.id]?.type==="error")break;!Qe.hasOwnProperty(ze.route.id)&&!N.loaderData.hasOwnProperty(ze.route.id)&&(!N.errors||!N.errors.hasOwnProperty(ze.route.id))&&ze.shouldCallHandler()&&(Qe[ze.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${ze.route.id}`)})}for(let[ze,qe]of Object.entries(Qe))if(iA(qe)){let dt=qe.result;Xe[ze]={type:"redirect",response:eA(dt,W,ze,ue,f)}}else Xe[ze]=await JR(qe);return Xe}async function xt(W,Y,ue,be,je){let Qe=St(ue,be,W,je,null),Xe=Promise.all(Y.map(async dt=>{if(dt.matches&&dt.match&&dt.request&&dt.controller){let pt=(await St(dt.request,dt.path,dt.matches,je,dt.key))[dt.match.route.id];return{[dt.key]:pt}}else return Promise.resolve({[dt.key]:{type:"error",error:us(404,{pathname:dt.path})}})})),ze=await Qe,qe=(await Xe).reduce((dt,rt)=>Object.assign(dt,rt),{});return{loaderResults:ze,fetcherResults:qe}}function Tt(){q=!0,B.forEach((W,Y)=>{ae.has(Y)&&Q.add(Y),an(Y)})}function Me(W,Y,ue={}){let be=new Map(N.fetchers);be.set(W,Y),Pe({fetchers:be},{flushSync:(ue&&ue.flushSync)===!0})}function ut(W,Y,ue,be={}){let je=Ti(N.matches,Y),Qe=new Map(N.fetchers);Mn(Qe,W),Pe({errors:{[je.route.id]:ue},fetchers:Qe},{flushSync:(be&&be.flushSync)===!0})}function tn(W){return ee.set(W,(ee.get(W)||0)+1),me.has(W)&&me.delete(W),N.fetchers.get(W)||BR}function qn(W,Y){an(W,Y?.reason),Me(W,ro(null))}function Mn(W,Y){let ue=N.fetchers.get(Y);ae.has(Y)&&!(ue&&ue.state==="loading"&&te.has(Y))&&an(Y),B.delete(Y),te.delete(Y),fe.delete(Y),me.delete(Y),Q.delete(Y),W.delete(Y)}function Qn(W){let Y=(ee.get(W)||0)-1;Y<=0?(ee.delete(W),me.add(W)):ee.set(W,Y),Pe({fetchers:new Map(N.fetchers)})}function an(W,Y){let ue=ae.get(W);ue&&(ue.abort(Y),ae.delete(W))}function Hn(W,Y){for(let ue of W){let be=Y.get(ue);Dt(be,`Expected fetcher: ${ue}`);let je=ro(be.data);Y.set(ue,je)}}function mn(W){let Y=[],ue=!1;for(let be of fe){let je=W.get(be);Dt(je,`Expected fetcher: ${be}`),je.state==="loading"&&(fe.delete(be),Y.push(be),ue=!0)}return Hn(Y,W),ue}function _n(W,Y){let ue=[];for(let[be,je]of te)if(je<W){let Qe=Y.get(be);Dt(Qe,`Expected fetcher: ${be}`),Qe.state==="loading"&&(an(be),te.delete(be),ue.push(be))}return Hn(ue,Y),ue.length>0}function ft(W,Y){let ue=N.blockers.get(W)||Cd;return pe.get(W)!==Y&&pe.set(W,Y),ue}function Ue(W){N.blockers.delete(W),pe.delete(W)}function Cn(W,Y){let ue=N.blockers.get(W)||Cd;Dt(ue.state==="unblocked"&&Y.state==="blocked"||ue.state==="blocked"&&Y.state==="blocked"||ue.state==="blocked"&&Y.state==="proceeding"||ue.state==="blocked"&&Y.state==="unblocked"||ue.state==="proceeding"&&Y.state==="unblocked",`Invalid blocker state transition: ${ue.state} -> ${Y.state}`);let be=new Map(N.blockers);be.set(W,Y),Pe({blockers:be})}function bn({currentLocation:W,nextLocation:Y,historyAction:ue}){if(pe.size===0)return;pe.size>1&&Fn(!1,"A router only supports one blocker at a time");let be=Array.from(pe.entries()),[je,Qe]=be[be.length-1],Xe=N.blockers.get(je);if(!(Xe&&Xe.state==="proceeding")&&Qe({currentLocation:W,nextLocation:Y,historyAction:ue}))return je}function vn(W){let Y=us(404,{pathname:W}),ue=d.activeRoutes,{matches:be,route:je}=ip(ue);return{notFoundMatches:be,route:je,error:Y}}function Lr(W,Y,ue){if(w=W,S=Y,v=ue||null,!T&&N.navigation===Yy){T=!0;let be=ea(N.location,N.matches);be!=null&&Pe({restoreScrollPosition:be})}return()=>{w=null,S=null,v=null}}function Aa(W,Y){return v&&v(W,Y.map(be=>_3(be,N.loaderData)))||W.key}function Dr(W,Y){if(w&&S){let ue=Aa(W,Y);w[ue]=S()}}function ea(W,Y){if(w){let ue=Aa(W,Y),be=w[ue];if(typeof be=="number")return be}return null}function hr(W,Y,ue){if(e.patchRoutesOnNavigation){let be=d.branches;if(W){if(Object.keys(W[0].params).length>0)return{active:!0,matches:zs(Y,ue,f,!0,be)}}else return{active:!0,matches:zs(Y,ue,f,!0,be)||[]}}return{active:!1,matches:null}}async function nn(W,Y,ue,be){if(!e.patchRoutesOnNavigation)return{type:"success",matches:W};let je=W;for(;;){let Qe=u;try{await e.patchRoutesOnNavigation({signal:ue,path:Y,matches:je,fetcherKey:be,patch:(dt,rt)=>{ue.aborted||k5(dt,rt,d,Qe,c,!1)}})}catch(dt){return{type:"error",error:dt,partialMatches:je}}if(ue.aborted)return{type:"aborted"};let Xe=d.branches,ze=zs(d.activeRoutes,Y,f,!1,Xe),qe=null;if(ze){if(Object.keys(ze[0].params).length===0)return{type:"success",matches:ze};if(qe=zs(d.activeRoutes,Y,f,!0,Xe),!(qe&&je.length<qe.length&&Or(je,qe.slice(0,je.length))))return{type:"success",matches:ze}}if(qe||(qe=zs(d.activeRoutes,Y,f,!0,Xe)),!qe||Or(je,qe))return{type:"success",matches:null};je=qe}}function Or(W,Y){return W.length===Y.length&&W.every((ue,be)=>ue.route.id===Y[be].route.id)}function Jn(W){u={},d.setHmrRoutes(Zd(W,c,void 0,u))}function er(W,Y,ue=!1){k5(W,Y,d,u,c,ue),d.hasHMRRoutes||Pe({})}return I={get basename(){return f},get future(){return y},get state(){return N},get routes(){return d.stableRoutes},get branches(){return d.branches},get manifest(){return u},get window(){return t},initialize:Oe,subscribe:$e,enableScrollRestoration:Lr,navigate:Ze,fetch:st,revalidate:Fe,createHref:W=>e.history.createHref(W),createURL:W=>e.history.createURL(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:tn,resetFetcher:qn,deleteFetcher:Qn,dispose:ie,getBlocker:ft,deleteBlocker:Ue,patchRoutes:er,_internalFetchControllers:ae,_internalSetRoutes:Jn,_internalSetStateDoNotUseOrYouWillBreakYourApp(W){Pe(W)}},e.instrumentations&&(I=AR(I,e.instrumentations.map(W=>W.router).filter(Boolean))),I}function UR(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Q0(e,t,a,s,i,c){let u,d;if(i){u=[];for(let g of t)if(u.push(g),g.route.id===i){d=g;break}}else u=t,d=t[t.length-1];let f=ff(s||".",Ox(u),gs(e.pathname,a)||e.pathname,c==="path");if(s==null&&(f.search=e.search,f.hash=e.hash),(s==null||s===""||s===".")&&d){let g=Wb(f.search);if(d.route.index&&!g)f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index";else if(!d.route.index&&g){let y=new URLSearchParams(f.search),b=y.getAll("index");y.delete("index"),b.filter(C=>C).forEach(C=>y.append("index",C));let k=y.toString();f.search=k?`?${k}`:""}}return a!=="/"&&(f.pathname=SR({basename:a,pathname:f.pathname})),fa(f)}function b5(e,t,a){if(!a||!UR(a))return{path:t};if(a.formMethod&&!uA(a.formMethod))return{path:t,error:us(405,{method:a.formMethod})};let s=()=>({path:t,error:us(400,{type:"invalid-body"})}),c=(a.formMethod||"get").toUpperCase(),u=aC(t);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!Xr(c))return s();let b=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((k,[C,w])=>`${k}${C}=${w}
11
+ `,""):String(a.body);return{path:t,submission:{formMethod:c,formAction:u,formEncType:a.formEncType,formData:void 0,json:void 0,text:b}}}else if(a.formEncType==="application/json"){if(!Xr(c))return s();try{let b=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:t,submission:{formMethod:c,formAction:u,formEncType:a.formEncType,formData:void 0,json:b,text:void 0}}}catch{return s()}}}Dt(typeof FormData=="function","FormData is not available in this environment");let d,f;if(a.formData)d=tb(a.formData),f=a.formData;else if(a.body instanceof FormData)d=tb(a.body),f=a.body;else if(a.body instanceof URLSearchParams)d=a.body,f=$5(d);else if(a.body==null)d=new URLSearchParams,f=new FormData;else try{d=new URLSearchParams(a.body),f=$5(d)}catch{return s()}let g={formMethod:c,formAction:u,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:f,json:void 0,text:void 0};if(Xr(g.formMethod))return{path:t,submission:g};let y=_s(t);return e&&y.search&&Wb(y.search)&&d.append("index",""),y.search=`?${d}`,{path:fa(y),submission:g}}function v5(e,t,a,s,i,c,u,d,f,g,y,b,k,C,w,v,S,T,E,j,$,z){let L=$?Ua($[1])?$[1].error:$[1].data:void 0,I=i.createURL(c.location),N=i.createURL(f),D;if(y&&c.errors){let F=Object.keys(c.errors)[0];D=u.findIndex(q=>q.route.id===F)}else if($&&Ua($[1])){let F=$[0];D=u.findIndex(q=>q.route.id===F)-1}let P=$?$[1].statusCode:void 0,K=P&&P>=400,oe={currentUrl:I,currentParams:c.matches[0]?.params||{},nextUrl:N,nextParams:u[0].params,...d,actionResult:L,actionStatus:P},V=pf(u),H=u.map((F,q)=>{let{route:Q}=F,ae=null;if(D!=null&&q>D)ae=!1;else if(Q.lazy)ae=!0;else if(!Gb(Q))ae=!1;else if(y){let{shouldLoad:fe}=Z3(Q,c.loaderData,c.errors);ae=fe}else VR(c.loaderData,c.matches[q],F)&&(ae=!0);if(ae!==null)return J0(a,s,e,f,V,F,g,t,ae);let J=!1;typeof z=="boolean"?J=z:K?J=!1:(b||I.pathname+I.search===N.pathname+N.search||I.search!==N.search||GR(c.matches[q],F))&&(J=!0);let se={...oe,defaultShouldRevalidate:J},te=qd(F,se);return J0(a,s,e,f,V,F,g,t,te,se,z)}),Z=[];return w.forEach((F,q)=>{if(y||!u.some(ee=>ee.route.id===F.routeId)||C.has(q))return;let Q=c.fetchers.get(q),ae=Q&&Q.state!=="idle"&&Q.data===void 0,J=zs(S,F.path,T??"/",!1,j);if(!J){if(E&&ae)return;Z.push({key:q,routeId:F.routeId,path:F.path,matches:null,match:null,request:null,controller:null});return}if(v.has(q))return;let se=qp(J,F.path),te=new AbortController,fe=Xc(i,F.path,te.signal),B=null;if(k.has(q))k.delete(q),B=nu(a,s,fe,F.path,J,se,g,t);else if(ae)b&&(B=nu(a,s,fe,F.path,J,se,g,t));else{let ee;typeof z=="boolean"?ee=z:K?ee=!1:ee=b;let me={...oe,defaultShouldRevalidate:ee};qd(se,me)&&(B=nu(a,s,fe,F.path,J,se,g,t,me))}B&&Z.push({key:q,routeId:F.routeId,path:F.path,matches:B,match:se,request:fe,controller:te})}),{dsMatches:H,revalidatingFetchers:Z}}function Gb(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Z3(e,t,a){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Gb(e))return{shouldLoad:!1,renderFallback:!1};let s=t!=null&&e.id in t,i=a!=null&&a[e.id]!==void 0;if(!s&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!s};let c=!s&&!i;return{shouldLoad:c,renderFallback:c}}function VR(e,t,a){let s=!t||a.route.id!==t.route.id,i=!e.hasOwnProperty(a.route.id);return s||i}function GR(e,t){let a=e.route.path;return e.pathname!==t.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==t.params["*"]}function qd(e,t){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(t);if(typeof a=="boolean")return a}return t.defaultShouldRevalidate}function k5(e,t,a,s,i,c){let u;if(e){let g=s[e];Dt(g,`No route found to patch children into: routeId = ${e}`),g.children||(g.children=[]),u=g.children}else u=a.activeRoutes;let d=[],f=[];if(t.forEach(g=>{let y=u.find(b=>Q3(g,b));y?f.push({existingRoute:y,newRoute:g}):d.push(g)}),d.length>0){let g=Zd(d,i,[e||"_","patch",String(u?.length||"0")],s);u.push(...g)}if(c&&f.length>0)for(let g=0;g<f.length;g++){let{existingRoute:y,newRoute:b}=f[g],k=y,[C]=Zd([b],i,[],{},!0);Object.assign(k,{element:C.element?C.element:k.element,errorElement:C.errorElement?C.errorElement:k.errorElement,hydrateFallbackElement:C.hydrateFallbackElement?C.hydrateFallbackElement:k.hydrateFallbackElement})}a.hasHMRRoutes||a.setRoutes([...a.activeRoutes])}function Q3(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((a,s)=>t.children?.some(i=>Q3(a,i)))??!1:!1}var w5=new WeakMap,J3=({key:e,route:t,manifest:a,mapRouteProperties:s})=>{let i=a[t.id];if(Dt(i,"No route found in manifest"),!i.lazy||typeof i.lazy!="object")return;let c=i.lazy[e];if(!c)return;let u=w5.get(i);u||(u={},w5.set(i,u));let d=u[e];if(d)return d;let f=(async()=>{let g=lR(e),b=i[e]!==void 0&&e!=="hasErrorBoundary";if(g)Fn(!g,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),u[e]=Promise.resolve();else if(b)Fn(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let k=await c();k!=null&&(Object.assign(i,{[e]:k}),Object.assign(i,s(i)))}typeof i.lazy=="object"&&(i.lazy[e]=void 0,Object.values(i.lazy).every(k=>k===void 0)&&(i.lazy=void 0))})();return u[e]=f,f},S5=new WeakMap;function KR(e,t,a,s,i){let c=a[e.id];if(Dt(c,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let y=S5.get(c);if(y)return{lazyRoutePromise:y,lazyHandlerPromise:y};let b=(async()=>{Dt(typeof e.lazy=="function","No lazy route function found");let k=await e.lazy(),C={};for(let w in k){let v=k[w];if(v===void 0)continue;let S=uR(w),E=c[w]!==void 0&&w!=="hasErrorBoundary";S?Fn(!S,"Route property "+w+" is not a supported property to be returned from a lazy route function. This property will be ignored."):E?Fn(!E,`Route "${c.id}" has a static property "${w}" defined but its lazy function is also returning a value for this property. The lazy route property "${w}" will be ignored.`):C[w]=v}Object.assign(c,C),Object.assign(c,{...s(c),lazy:void 0})})();return S5.set(c,b),b.catch(()=>{}),{lazyRoutePromise:b,lazyHandlerPromise:b}}let u=Object.keys(e.lazy),d=[],f;for(let y of u){if(i&&i.includes(y))continue;let b=J3({key:y,route:e,manifest:a,mapRouteProperties:s});b&&(d.push(b),y===t&&(f=b))}let g=d.length>0?Promise.all(d).then(()=>{}):void 0;return g?.catch(()=>{}),f?.catch(()=>{}),{lazyRoutePromise:g,lazyHandlerPromise:f}}async function E5(e){let t=e.matches.filter(i=>i.shouldLoad),a={};return(await Promise.all(t.map(i=>i.resolve()))).forEach((i,c)=>{a[t[c].route.id]=i}),a}async function WR(e){return e.matches.some(t=>t.route.middleware)?eC(e,()=>E5(e)):E5(e)}function eC(e,t){return YR(e,t,s=>{if(cA(s))throw s;return s},sA,a);function a(s,i,c){if(c)return Promise.resolve(Object.assign(c.value,{[i]:{type:"error",result:s}}));{let{matches:u}=e,d=Math.min(Math.max(u.findIndex(g=>g.route.id===i),0),Math.max(u.findIndex(g=>g.shouldCallHandler()),0)),f=Ti(u,u[d].route.id).route.id;return Promise.resolve({[f]:{type:"error",result:s}})}}}async function YR(e,t,a,s,i){let{matches:c,...u}=e,d=c.flatMap(g=>g.route.middleware?g.route.middleware.map(y=>[g.route.id,y]):[]);return await tC(u,d,t,a,s,i)}async function tC(e,t,a,s,i,c,u=0){let{request:d}=e;if(d.signal.aborted)throw d.signal.reason??new Error(`Request aborted: ${d.method} ${d.url}`);let f=t[u];if(!f)return await a();let[g,y]=f,b,k=async()=>{if(b)throw new Error("You may only call `next()` once per middleware");try{return b={value:await tC(e,t,a,s,i,c,u+1)},b.value}catch(C){return b={value:await c(C,g,b)},b.value}};try{let C=await y(e,k),w=C!=null?s(C):void 0;return i(w)?w:b?w??b.value:(b={value:await k()},b.value)}catch(C){return await c(C,g,b)}}function nC(e,t,a,s,i){let c=J3({key:"middleware",route:s.route,manifest:t,mapRouteProperties:e}),u=KR(s.route,Xr(a.method)?"action":"loader",t,e,i);return{middleware:c,route:u.lazyRoutePromise,handler:u.lazyHandlerPromise}}function J0(e,t,a,s,i,c,u,d,f,g=null,y){let b=!1,k=nC(e,t,a,c,u);return{...c,_lazyPromises:k,shouldLoad:f,shouldRevalidateArgs:g,shouldCallHandler(C){return b=!0,g?typeof y=="boolean"?qd(c,{...g,defaultShouldRevalidate:y}):typeof C=="boolean"?qd(c,{...g,defaultShouldRevalidate:C}):qd(c,g):f},resolve(C){let{lazy:w,loader:v,middleware:S}=c.route,T=b||f||C&&!Xr(a.method)&&(w||v),E=S&&S.length>0&&!v&&!w;return T&&(Xr(a.method)||!E)?ZR({request:a,path:s,pattern:i,match:c,lazyHandlerPromise:k?.handler,lazyRoutePromise:k?.route,handlerOverride:C,scopedContext:d}):Promise.resolve({type:"data",result:void 0})}}}function nu(e,t,a,s,i,c,u,d,f=null){return i.map(g=>g.route.id!==c.route.id?{...g,shouldLoad:!1,shouldRevalidateArgs:f,shouldCallHandler:()=>!1,_lazyPromises:nC(e,t,a,g,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:J0(e,t,a,s,pf(i),g,u,d,!0,f))}async function XR(e,t,a,s,i,c,u){s.some(y=>y._lazyPromises?.middleware)&&await Promise.all(s.map(y=>y._lazyPromises?.middleware));let d={request:t,url:rC(t,a),pattern:pf(s),params:s[0].params,context:c,matches:s},g=await e({...d,fetcherKey:i,runClientMiddleware:y=>{let b=d;return eC(b,()=>y({...b,fetcherKey:i,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(s.flatMap(y=>[y._lazyPromises?.handler,y._lazyPromises?.route]))}catch{}return g}async function ZR({request:e,path:t,pattern:a,match:s,lazyHandlerPromise:i,lazyRoutePromise:c,handlerOverride:u,scopedContext:d}){let f,g,y=Xr(e.method),b=y?"action":"loader",k=C=>{let w,v=new Promise((E,j)=>w=j);g=()=>w(),e.signal.addEventListener("abort",g);let S=E=>typeof C!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${b}" [routeId: ${s.route.id}]`)):C({request:e,url:rC(e,t),pattern:a,params:s.params,context:d},...E!==void 0?[E]:[]),T=(async()=>{try{return{type:"data",result:await(u?u(j=>S(j)):S())}}catch(E){return{type:"error",result:E}}})();return Promise.race([T,v])};try{let C=y?s.route.action:s.route.loader;if(i||c)if(C){let w,[v]=await Promise.all([k(C).catch(S=>{w=S}),i,c]);if(w!==void 0)throw w;f=v}else{await i;let w=y?s.route.action:s.route.loader;if(w)[f]=await Promise.all([k(w),c]);else if(b==="action"){let v=new URL(e.url),S=v.pathname+v.search;throw us(405,{method:e.method,pathname:S,routeId:s.route.id})}else return{type:"data",result:void 0}}else if(C)f=await k(C);else{let w=new URL(e.url),v=w.pathname+w.search;throw us(404,{pathname:v})}}catch(C){return{type:"error",result:C}}finally{g&&e.signal.removeEventListener("abort",g)}return f}async function QR(e){let t=e.headers.get("Content-Type");return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function JR(e){let{result:t,type:a}=e;if(Kb(t)){let s;try{s=await QR(t)}catch(i){return{type:"error",error:i}}return a==="error"?{type:"error",error:new hf(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:"data",data:s,statusCode:t.status,headers:t.headers}}return a==="error"?A5(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:aA(t),statusCode:Qd(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Qd(t)?t.status:void 0}:A5(t)?{type:"data",data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function eA(e,t,a,s,i){let c=e.headers.get("Location");if(Dt(c,"Redirects returned/thrown from loaders/actions must have a Location header"),!Hb(c)){let u=s.slice(0,s.findIndex(d=>d.route.id===a)+1);c=Q0(new URL(t.url),u,i,c),e.headers.set("Location",c)}return e}var tA=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function eb(e){try{return tA.includes(new URL(e).protocol)}catch{return!1}}function C5(e,t,a,s){if(Hb(e)){let i=e,c=Dx.test(i)?new URL(D3(i,t.protocol)):new URL(i);if(eb(c.toString()))throw new Error("Invalid redirect location");let u=gs(c.pathname,a)!=null;if(c.origin===t.origin&&u)return Ub(c.pathname)+c.search+c.hash}try{let i=s.createURL(e);if(eb(i.toString()))throw new Error("Invalid redirect location")}catch{}return e}function Xc(e,t,a,s){let i=e.createURL(aC(t)).toString(),c={signal:a};if(s&&Xr(s.formMethod)){let{formMethod:u,formEncType:d}=s;c.method=u.toUpperCase(),d==="application/json"?(c.headers=new Headers({"Content-Type":d}),c.body=JSON.stringify(s.json)):d==="text/plain"?c.body=s.text:d==="application/x-www-form-urlencoded"&&s.formData?c.body=tb(s.formData):c.body=s.formData}return new Request(i,c)}function rC(e,t){let a=new URL(e.url),s=typeof t=="string"?_s(t):t;if(a.pathname=s.pathname||"/",s.search){let i=new URLSearchParams(s.search),c=i.getAll("index");i.delete("index");for(let u of c.filter(Boolean))i.append("index",u);a.search=i.size?`?${i.toString()}`:""}else a.search="";return a.hash=s.hash||"",a}function tb(e){let t=new URLSearchParams;for(let[a,s]of e.entries())t.append(a,typeof s=="string"?s:s.name);return t}function $5(e){let t=new FormData;for(let[a,s]of e.entries())t.append(a,s);return t}function nA(e,t,a,s=!1,i=!1){let c={},u=null,d,f=!1,g={},y=a&&Ua(a[1])?a[1].error:void 0;return e.forEach(b=>{if(!(b.route.id in t))return;let k=b.route.id,C=t[k];if(Dt(!Sl(C),"Cannot handle redirect results in processLoaderData"),Ua(C)){let w=C.error;if(y!==void 0&&(w=y,y=void 0),u=u||{},i)u[k]=w;else{let v=Ti(e,k);u[v.route.id]==null&&(u[v.route.id]=w)}s||(c[k]=X3),f||(f=!0,d=Qd(C.error)?C.error.status:500),C.headers&&(g[k]=C.headers)}else c[k]=C.data,C.statusCode&&C.statusCode!==200&&!f&&(d=C.statusCode),C.headers&&(g[k]=C.headers)}),y!==void 0&&a&&(u={[a[0]]:y},a[2]&&(c[a[2]]=void 0)),{loaderData:c,errors:u,statusCode:d||200,loaderHeaders:g}}function j5(e,t,a,s,i,c,u){let{loaderData:d,errors:f}=nA(t,a,s);return i.filter(g=>!g.matches||g.matches.some(y=>y.shouldLoad)).forEach(g=>{let{key:y,match:b,controller:k}=g;if(k&&k.signal.aborted)return;let C=c[y];if(Dt(C,"Did not find corresponding fetcher result"),Ua(C)){let w=Ti(e.matches,b?.route.id);f&&f[w.route.id]||(f={...f,[w.route.id]:C.error}),u.delete(y)}else if(Sl(C))Dt(!1,"Unhandled fetcher revalidation redirect");else{let w=ro(C.data);u.set(y,w)}}),{loaderData:d,errors:f}}function T5(e,t,a,s){let i=Object.entries(t).filter(([,c])=>c!==X3).reduce((c,[u,d])=>(c[u]=d,c),{});for(let c of a){let u=c.route.id;if(!t.hasOwnProperty(u)&&e.hasOwnProperty(u)&&c.route.loader&&(i[u]=e[u]),s&&s.hasOwnProperty(u))break}return i}function R5(e){return e?Ua(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ti(e,t){return(t?e.slice(0,e.findIndex(s=>s.route.id===t)+1):[...e]).reverse().find(s=>s.route.hasErrorBoundary===!0)||e[0]}function ip(e){let t=e.length===1?e[0]:e.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function us(e,{pathname:t,routeId:a,method:s,type:i,message:c}={}){let u="Unknown Server Error",d="Unknown @remix-run/router error";return e===400?(u="Bad Request",s&&t&&a?d=`You made a ${s} request to "${t}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:i==="invalid-body"&&(d="Unable to encode submission body")):e===403?(u="Forbidden",d=`Route "${a}" does not match URL "${t}"`):e===404?(u="Not Found",d=`No route matches URL "${t}"`):e===405&&(u="Method Not Allowed",s&&t&&a?d=`You made a ${s.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:s&&(d=`Invalid request method "${s.toUpperCase()}"`)),new hf(e||500,u,new Error(d),!0)}function lp(e){let t=Object.entries(e);for(let a=t.length-1;a>=0;a--){let[s,i]=t[a];if(Sl(i))return{key:s,result:i}}}function aC(e){let t=typeof e=="string"?_s(e):e;return fa({...t,hash:""})}function rA(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function aA(e){return new hf(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function sA(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,a])=>typeof t=="string"&&oA(a))}function oA(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function iA(e){return Kb(e.result)&&W3.has(e.result.status)}function Ua(e){return e.type==="error"}function Sl(e){return(e&&e.type)==="redirect"}function A5(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Kb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function lA(e){return W3.has(e)}function cA(e){return Kb(e)&&lA(e.status)&&e.headers.has("Location")}function uA(e){return _R.has(e.toUpperCase())}function Xr(e){return OR.has(e.toUpperCase())}function Wb(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function qp(e,t){let a=typeof t=="string"?_s(t).search:t.search;if(e[e.length-1].route.index&&Wb(a||""))return e[e.length-1];let s=H3(e);return s[s.length-1]}function M5(e){let{formMethod:t,formAction:a,formEncType:s,text:i,formData:c,json:u}=e;if(!(!t||!a||!s)){if(i!=null)return{formMethod:t,formAction:a,formEncType:s,formData:void 0,json:void 0,text:i};if(c!=null)return{formMethod:t,formAction:a,formEncType:s,formData:c,json:void 0,text:void 0};if(u!==void 0)return{formMethod:t,formAction:a,formEncType:s,formData:void 0,json:u,text:void 0}}}function Xy(e,t,a,s){return s?{state:"loading",location:e,matches:t,historyAction:a,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}:{state:"loading",location:e,matches:t,historyAction:a,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function dA(e,t,a,s){return{state:"submitting",location:e,matches:t,historyAction:a,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}}function $d(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function fA(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ro(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function hA(e,t){try{let a=e.sessionStorage.getItem(Y3);if(a){let s=JSON.parse(a);for(let[i,c]of Object.entries(s||{}))c&&Array.isArray(c)&&t.set(i,new Set(c||[]))}}catch{}}function pA(e,t){if(t.size>0){let a={};for(let[s,i]of t)a[s]=[...i];try{e.sessionStorage.setItem(Y3,JSON.stringify(a))}catch(s){Fn(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function z5(){let e,t,a=new Promise((s,i)=>{e=async c=>{s(c);try{await a}catch{}},t=async c=>{i(c);try{await a}catch{}}});return{promise:a,resolve:e,reject:t}}var Il=x.createContext(null);Il.displayName="DataRouter";var xf=x.createContext(null);xf.displayName="DataRouterState";var sC=x.createContext(!1);function oC(){return x.useContext(sC)}var Yb=x.createContext({isTransitioning:!1});Yb.displayName="ViewTransition";var iC=x.createContext(new Map);iC.displayName="Fetchers";var xA=x.createContext(null);xA.displayName="Await";var Ga=x.createContext(null);Ga.displayName="Navigation";var Ix=x.createContext(null);Ix.displayName="Location";var ys=x.createContext({outlet:null,matches:[],isDataRoute:!1});ys.displayName="Route";var Xb=x.createContext(null);Xb.displayName="RouteError";var lC="REACT_ROUTER_ERROR",mA="REDIRECT",gA="ROUTE_ERROR_RESPONSE";function yA(e){if(e.startsWith(`${lC}:${mA}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function bA(e){if(e.startsWith(`${lC}:${gA}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new hf(t.status,t.statusText,t.data)}catch{}}function vA(e,{relative:t}={}){Dt(Su(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:s}=x.useContext(Ga),{hash:i,pathname:c,search:u}=mf(e,{relative:t}),d=c;return a!=="/"&&(d=c==="/"?a:xs([a,c])),s.createHref({pathname:d,search:u,hash:i})}function Su(){return x.useContext(Ix)!=null}function Ta(){return Dt(Su(),"useLocation() may be used only in the context of a <Router> component."),x.useContext(Ix).location}var cC="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function uC(e){x.useContext(Ga).static||x.useLayoutEffect(e)}function Eu(){let{isDataRoute:e}=x.useContext(ys);return e?DA():kA()}function kA(){Dt(Su(),"useNavigate() may be used only in the context of a <Router> component.");let e=x.useContext(Il),{basename:t,navigator:a}=x.useContext(Ga),{matches:s}=x.useContext(ys),{pathname:i}=Ta(),c=JSON.stringify(Ox(s)),u=x.useRef(!1);return uC(()=>{u.current=!0}),x.useCallback((f,g={})=>{if(Fn(u.current,cC),!u.current)return;if(typeof f=="number"){a.go(f);return}let y=ff(f,JSON.parse(c),i,g.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:xs([t,y.pathname])),tu(typeof f=="string"?f:fa(f),a.createHref(y),Vb(a),"reject"),(g.replace?a.replace:a.push)(y,g.state,g)},[t,a,c,i,e])}var wA=x.createContext(null);function SA(e){let t=x.useContext(ys).outlet;return x.useMemo(()=>t&&x.createElement(wA.Provider,{value:e},t),[t,e])}function Zb(){let{matches:e}=x.useContext(ys);return e[e.length-1]?.params??{}}function mf(e,{relative:t}={}){let{matches:a}=x.useContext(ys),{pathname:s}=Ta(),i=JSON.stringify(Ox(a));return x.useMemo(()=>ff(e,JSON.parse(i),s,t==="path"),[e,i,s,t])}function EA(e,t,a){Dt(Su(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=x.useContext(Ga),{matches:i}=x.useContext(ys),c=i[i.length-1],u=c?c.params:{},d=c?c.pathname:"/",f=c?c.pathnameBase:"/",g=c&&c.route;{let S=g&&g.path||"";hC(d,!g||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
12
+
13
+ Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let y=Ta(),b;b=y;let k=b.pathname||"/",C=k;if(f!=="/"){let S=f.replace(/^\//,"").split("/");C="/"+k.replace(/^\//,"").split("/").slice(S.length).join("/")}let w=a&&a.state.matches.length?a.state.matches.map(S=>Object.assign(S,{route:a.manifest[S.route.id]||S.route})):I3(e,{pathname:C});return Fn(g||w!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Fn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),RA(w&&w.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:xs([f,s.encodeLocation?s.encodeLocation(S.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?f:xs([f,s.encodeLocation?s.encodeLocation(S.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),i,a)}function CA(){let e=LA(),t=Qd(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=x.createElement(x.Fragment,null,x.createElement("p",null,"💿 Hey developer 👋"),x.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",x.createElement("code",{style:c},"ErrorBoundary")," or"," ",x.createElement("code",{style:c},"errorElement")," prop on your route.")),x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),a?x.createElement("pre",{style:i},a):null,u)}var $A=x.createElement(CA,null),dC=class extends x.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=bA(e.digest);a&&(e=a)}let t=e!==void 0?x.createElement(ys.Provider,{value:this.props.routeContext},x.createElement(Xb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?x.createElement(jA,{error:e},t):t}};dC.contextType=sC;var Zy=new WeakMap;function jA({children:e,error:t}){let{basename:a,navigator:s}=x.useContext(Ga);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let i=yA(t.digest);if(i){let c=Zy.get(t);if(c)throw c;let u=V3(i.location,a),d=u.absoluteURL||u.to;if(tu(i.location,d,Vb(s),"allow-explicit"),eb(d))throw new Error("Invalid redirect location");if(U3&&!Zy.get(t))if(u.isExternal||i.reloadDocument)window.location.href=d;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:i.replace}));throw Zy.set(t,f),f}return x.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d}`})}}return e}function TA({routeContext:e,match:t,children:a}){let s=x.useContext(Il);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),x.createElement(ys.Provider,{value:e},a)}function RA(e,t=[],a){let s=a?.state;if(e==null){if(!s)return null;if(s.errors)e=s.matches;else if(t.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let i=e,c=s?.errors;if(c!=null){let y=i.findIndex(b=>b.route.id&&c?.[b.route.id]!==void 0);Dt(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),i=i.slice(0,Math.min(i.length,y+1))}let u=!1,d=-1;if(a&&s){u=s.renderFallback;for(let y=0;y<i.length;y++){let b=i[y];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(d=y),b.route.id){let{loaderData:k,errors:C}=s,w=b.route.loader&&!k.hasOwnProperty(b.route.id)&&(!C||C[b.route.id]===void 0);if(b.route.lazy||w){a.isStatic&&(u=!0),d>=0?i=i.slice(0,d+1):i=[i[0]];break}}}}let f=a?.onError,g=s&&f?(y,b)=>{f(y,{location:s.location,params:s.matches?.[0]?.params??{},pattern:pf(s.matches),errorInfo:b})}:void 0;return i.reduceRight((y,b,k)=>{let C,w=!1,v=null,S=null;s&&(C=c&&b.route.id?c[b.route.id]:void 0,v=b.route.errorElement||$A,u&&(d<0&&k===0?(hC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,S=null):d===k&&(w=!0,S=b.route.hydrateFallbackElement||null)));let T=t.concat(i.slice(0,k+1)),E=()=>{let j;return C?j=v:w?j=S:b.route.Component?j=x.createElement(b.route.Component,null):b.route.element?j=b.route.element:j=y,x.createElement(TA,{match:b,routeContext:{outlet:y,matches:T,isDataRoute:s!=null},children:j})};return s&&(b.route.ErrorBoundary||b.route.errorElement||k===0)?x.createElement(dC,{location:s.location,revalidation:s.revalidation,component:v,error:C,children:E(),routeContext:{outlet:null,matches:T,isDataRoute:!0},onError:g}):E()},null)}function Qb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AA(e){let t=x.useContext(Il);return Dt(t,Qb(e)),t}function fC(e){let t=x.useContext(xf);return Dt(t,Qb(e)),t}function MA(e){let t=x.useContext(ys);return Dt(t,Qb(e)),t}function Jb(e){let t=MA(e),a=t.matches[t.matches.length-1];return Dt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function zA(){return Jb("useRouteId")}function NA(){let{matches:e,loaderData:t}=fC("useMatches");return x.useMemo(()=>e.map(a=>_3(a,t)),[e,t])}function LA(){let e=x.useContext(Xb),t=fC("useRouteError"),a=Jb("useRouteError");return e!==void 0?e:t.errors?.[a]}function DA(){let{router:e}=AA("useNavigate"),t=Jb("useNavigate"),a=x.useRef(!1);return uC(()=>{a.current=!0}),x.useCallback(async(i,c={})=>{Fn(a.current,cC),a.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...c}))},[e,t])}var N5={};function hC(e,t,a){!t&&!N5[e]&&(N5[e]=!0,Fn(!1,a))}var L5={};function D5(e,t){!e&&!L5[t]&&(L5[t]=!0,console.warn(t))}var OA="useOptimistic",O5=p7[OA],IA=()=>{};function _A(e){return O5?O5(e):[e,IA]}function PA(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Fn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:x.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Fn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:x.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Fn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:x.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var BA=["HydrateFallback","hydrateFallbackElement"],FA=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",e(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",t(a))}})}};function qA({router:e,flushSync:t,onError:a,useTransitions:s}){s=oC()||s;let[c,u]=x.useState(e.state),[d,f]=_A(c),[g,y]=x.useState(),[b,k]=x.useState({isTransitioning:!1}),[C,w]=x.useState(),[v,S]=x.useState(),[T,E]=x.useState(),j=x.useRef(new Map),$=x.useCallback((N,{deletedFetchers:D,newErrors:P,flushSync:K,viewTransitionOpts:oe})=>{P&&a&&Object.values(P).forEach(H=>a(H,{location:N.location,params:N.matches[0]?.params??{},pattern:pf(N.matches)})),N.fetchers.forEach((H,Z)=>{H.data!==void 0&&j.current.set(Z,H.data)}),D.forEach(H=>j.current.delete(H)),D5(K===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let V=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(D5(oe==null||V,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!oe||!V){t&&K?t(()=>u(N)):s===!1?u(N):x.startTransition(()=>{s===!0&&f(H=>I5(H,N)),u(N)});return}if(t&&K){t(()=>{v&&(C?.resolve(),v.skipTransition()),k({isTransitioning:!0,flushSync:!0,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation})});let H=e.window.document.startViewTransition(()=>{t(()=>u(N))});H.finished.finally(()=>{t(()=>{w(void 0),S(void 0),y(void 0),k({isTransitioning:!1})})}),t(()=>S(H));return}v?(C?.resolve(),v.skipTransition(),E({state:N,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation})):(y(N),k({isTransitioning:!0,flushSync:!1,currentLocation:oe.currentLocation,nextLocation:oe.nextLocation}))},[e.window,t,v,C,s,f,a]);x.useLayoutEffect(()=>e.subscribe($),[e,$]),x.useEffect(()=>{b.isTransitioning&&!b.flushSync&&w(new FA)},[b]),x.useEffect(()=>{if(C&&g&&e.window){let N=g,D=C.promise,P=e.window.document.startViewTransition(async()=>{s===!1?u(N):x.startTransition(()=>{s===!0&&f(K=>I5(K,N)),u(N)}),await D});P.finished.finally(()=>{w(void 0),S(void 0),y(void 0),k({isTransitioning:!1})}),S(P)}},[g,C,e.window,s,f]),x.useEffect(()=>{C&&g&&d.location.key===g.location.key&&C.resolve()},[C,v,d.location,g]),x.useEffect(()=>{!b.isTransitioning&&T&&(y(T.state),k({isTransitioning:!0,flushSync:!1,currentLocation:T.currentLocation,nextLocation:T.nextLocation}),E(void 0))},[b.isTransitioning,T]);let z=x.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:N=>e.navigate(N),push:(N,D,P)=>e.navigate(N,{state:D,preventScrollReset:P?.preventScrollReset}),replace:(N,D,P)=>e.navigate(N,{replace:!0,state:D,preventScrollReset:P?.preventScrollReset})}),[e]),L=e.basename||"/",I=x.useMemo(()=>({router:e,navigator:z,static:!1,basename:L,onError:a}),[e,z,L,a]);return x.createElement(x.Fragment,null,x.createElement(Il.Provider,{value:I},x.createElement(xf.Provider,{value:d},x.createElement(iC.Provider,{value:j.current},x.createElement(Yb.Provider,{value:b},x.createElement(GA,{basename:L,location:d.location,navigationType:d.historyAction,navigator:z,useTransitions:s},x.createElement(HA,{routes:e.routes,manifest:e.manifest,future:e.future,state:d,isStatic:!1,onError:a})))))),null)}function I5(e,t){return{...e,navigation:t.navigation.state!=="idle"?t.navigation:e.navigation,revalidation:t.revalidation!=="idle"?t.revalidation:e.revalidation,actionData:t.navigation.state!=="submitting"?t.actionData:e.actionData,fetchers:t.fetchers}}var HA=x.memo(UA);function UA({routes:e,manifest:t,future:a,state:s,isStatic:i,onError:c}){return EA(e,void 0,{manifest:t,state:s,isStatic:i,onError:c})}function VA({to:e,replace:t,state:a,relative:s}){Dt(Su(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i,navigator:c}=x.useContext(Ga);Fn(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=x.useContext(ys),{pathname:d}=Ta(),f=Eu(),g=ff(e,Ox(u),d,s==="path");tu(typeof e=="string"?e:fa(e),c.createHref(g),Vb(c),"reject");let y=JSON.stringify(g);return x.useEffect(()=>{f(JSON.parse(y),{replace:t,state:a,relative:s})},[f,y,s,t,a]),null}function e1(e){return SA(e.context)}function GA({basename:e="/",children:t=null,location:a,navigationType:s="POP",navigator:i,static:c=!1,useTransitions:u}){Dt(!Su(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),f=x.useMemo(()=>({basename:d,navigator:i,static:c,useTransitions:u,future:{}}),[d,i,c,u]);typeof a=="string"&&(a=_s(a));let{pathname:g="/",search:y="",hash:b="",state:k=null,key:C="default",mask:w}=a,v=x.useMemo(()=>{let S=gs(g,d);return S==null?null:{location:{pathname:S,search:y,hash:b,state:k,key:C,mask:w},navigationType:s}},[d,g,y,b,k,C,s,w]);return Fn(v!=null,`<Router basename="${d}"> is not able to match the URL "${g}${y}${b}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:x.createElement(Ga.Provider,{value:f},x.createElement(Ix.Provider,{children:t,value:v}))}var Hp="get",Up="application/x-www-form-urlencoded";function _x(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function KA(e){return _x(e)&&e.tagName.toLowerCase()==="button"}function WA(e){return _x(e)&&e.tagName.toLowerCase()==="form"}function YA(e){return _x(e)&&e.tagName.toLowerCase()==="input"}function XA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ZA(e,t){return e.button===0&&(!t||t==="_self")&&!XA(e)}function nb(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,a)=>{let s=e[a];return t.concat(Array.isArray(s)?s.map(i=>[a,i]):[[a,s]])},[]))}function QA(e,t){let a=nb(e);return t&&t.forEach((s,i)=>{a.has(i)||t.getAll(i).forEach(c=>{a.append(i,c)})}),a}var cp=null;function JA(){if(cp===null)try{new FormData(document.createElement("form"),0),cp=!1}catch{cp=!0}return cp}var eM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qy(e){return e!=null&&!eM.has(e)?(Fn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Up}"`),null):e}function tM(e,t){let a,s,i,c,u;if(WA(e)){let d=e.getAttribute("action");s=d?gs(d,t):null,a=e.getAttribute("method")||Hp,i=Qy(e.getAttribute("enctype"))||Up,c=new FormData(e)}else if(KA(e)||YA(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(s=f?gs(f,t):null,a=e.getAttribute("formmethod")||d.getAttribute("method")||Hp,i=Qy(e.getAttribute("formenctype"))||Qy(d.getAttribute("enctype"))||Up,c=new FormData(d,e),!JA()){let{name:g,type:y,value:b}=e;if(y==="image"){let k=g?`${g}.`:"";c.append(`${k}x`,"0"),c.append(`${k}y`,"0")}else g&&c.append(g,b)}}else{if(_x(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Hp,s=null,i=Up,u=e}return c&&i==="text/plain"&&(u=c,c=void 0),{action:s,method:a.toLowerCase(),encType:i,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function t1(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function pC(e,t,a,s){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${s}`:i.pathname=`${i.pathname}.${s}`:i.pathname==="/"?i.pathname=`_root.${s}`:t&&gs(i.pathname,t)==="/"?i.pathname=`${hu(t)}/_root.${s}`:i.pathname=`${hu(i.pathname)}.${s}`,i}async function nM(e,t){if(e.id in t)return t[e.id];try{let a=await import(e.module);return t[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function rM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function aM(e,t,a){let s=await Promise.all(e.map(async i=>{let c=t.routes[i.route.id];if(c){let u=await nM(c,a);return u.links?u.links():[]}return[]}));return lM(s.flat(1).filter(rM).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function _5(e,t,a,s,i,c){let u=(f,g)=>a[g]?f.route.id!==a[g].route.id:!0,d=(f,g)=>a[g].pathname!==f.pathname||a[g].route.path?.endsWith("*")&&a[g].params["*"]!==f.params["*"];return c==="assets"?t.filter((f,g)=>u(f,g)||d(f,g)):c==="data"?t.filter((f,g)=>{let y=s.routes[f.route.id];if(!y||!y.hasLoader)return!1;if(u(f,g)||d(f,g))return!0;if(f.route.shouldRevalidate){let b=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function sM(e,t,{includeHydrateFallback:a}={}){return oM(e.map(s=>{let i=t.routes[s.route.id];if(!i)return[];let c=[i.module];return i.clientActionModule&&(c=c.concat(i.clientActionModule)),i.clientLoaderModule&&(c=c.concat(i.clientLoaderModule)),a&&i.hydrateFallbackModule&&(c=c.concat(i.hydrateFallbackModule)),i.imports&&(c=c.concat(i.imports)),c}).flat(1))}function oM(e){return[...new Set(e)]}function iM(e){let t={},a=Object.keys(e).sort();for(let s of a)t[s]=e[s];return t}function lM(e,t){let a=new Set;return new Set(t),e.reduce((s,i)=>{let c=JSON.stringify(iM(i));return a.has(c)||(a.add(c),s.push({key:c,link:i})),s},[])}function n1(){let e=x.useContext(Il);return t1(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function cM(){let e=x.useContext(xf);return t1(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var r1=x.createContext(void 0);r1.displayName="FrameworkContext";function Px(){let e=x.useContext(r1);return t1(e,"You must render this element inside a <HydratedRouter> element"),e}function uM(e,t){let a=x.useContext(r1),[s,i]=x.useState(!1),[c,u]=x.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=t,k=x.useRef(null);x.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let v=T=>{T.forEach(E=>{u(E.isIntersecting)})},S=new IntersectionObserver(v,{threshold:.5});return k.current&&S.observe(k.current),()=>{S.disconnect()}}},[e]),x.useEffect(()=>{if(s){let v=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(v)}}},[s]);let C=()=>{i(!0)},w=()=>{i(!1),u(!1)};return a?e!=="intent"?[c,k,{}]:[c,k,{onFocus:jd(d,C),onBlur:jd(f,w),onMouseEnter:jd(g,C),onMouseLeave:jd(y,w),onTouchStart:jd(b,C)}]:[!1,k,{}]}function jd(e,t){return a=>{e&&e(a),a.defaultPrevented||t(a)}}function dM({page:e,...t}){let a=oC(),{nonce:s}=Px(),{router:i}=n1(),c=x.useMemo(()=>I3(i.routes,e,i.basename),[i.routes,e,i.basename]);return c?(t.nonce==null&&s&&(t={...t,nonce:s}),a?x.createElement(hM,{page:e,matches:c,...t}):x.createElement(pM,{page:e,matches:c,...t})):null}function fM(e){let{manifest:t,routeModules:a}=Px(),[s,i]=x.useState([]);return x.useEffect(()=>{let c=!1;return aM(e,t,a).then(u=>{c||i(u)}),()=>{c=!0}},[e,t,a]),s}function hM({page:e,matches:t,...a}){let s=Ta(),{future:i}=Px(),{basename:c}=n1(),u=x.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let d=pC(e,c,i.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,g=[];for(let y of t)typeof y.route.shouldRevalidate=="function"?f=!0:g.push(y.route.id);return f&&g.length>0&&d.searchParams.set("_routes",g.join(",")),[d.pathname+d.search]},[c,i.v8_trailingSlashAwareDataRequests,e,s,t]);return x.createElement(x.Fragment,null,u.map(d=>x.createElement("link",{key:d,rel:"prefetch",as:"fetch",href:d,...a})))}function pM({page:e,matches:t,...a}){let s=Ta(),{future:i,manifest:c,routeModules:u}=Px(),{basename:d}=n1(),{loaderData:f,matches:g}=cM(),y=x.useMemo(()=>_5(e,t,g,c,s,"data"),[e,t,g,c,s]),b=x.useMemo(()=>_5(e,t,g,c,s,"assets"),[e,t,g,c,s]),k=x.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let v=new Set,S=!1;if(t.forEach(E=>{let j=c.routes[E.route.id];!j||!j.hasLoader||(!y.some($=>$.route.id===E.route.id)&&E.route.id in f&&u[E.route.id]?.shouldRevalidate||j.hasClientLoader?S=!0:v.add(E.route.id))}),v.size===0)return[];let T=pC(e,d,i.v8_trailingSlashAwareDataRequests,"data");return S&&v.size>0&&T.searchParams.set("_routes",t.filter(E=>v.has(E.route.id)).map(E=>E.route.id).join(",")),[T.pathname+T.search]},[d,i.v8_trailingSlashAwareDataRequests,f,s,c,y,t,e,u]),C=x.useMemo(()=>sM(b,c),[b,c]),w=fM(b);return x.createElement(x.Fragment,null,k.map(v=>x.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...a})),C.map(v=>x.createElement("link",{key:v,rel:"modulepreload",href:v,...a})),w.map(({key:v,link:S})=>x.createElement("link",{key:v,nonce:a.nonce,...S,crossOrigin:S.crossOrigin??a.crossOrigin})))}function xM(...e){return t=>{e.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var mM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{mM&&(window.__reactRouterVersion="7.18.5")}catch{}function gM(e,t){return HR({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:aR({window:t?.window}),hydrationData:yM(),routes:e,mapRouteProperties:PA,hydrationRouteProperties:BA,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function yM(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:bM(e.errors)}),e}function bM(e){if(!e)return null;let t=Object.entries(e),a={};for(let[s,i]of t)if(i&&i.__type==="RouteErrorResponse")a[s]=new hf(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(typeof i.__subType=="string"&&TR.includes(i.__subType)){let c=window[i.__subType];if(typeof c=="function")try{let u=new c(i.message);u.stack="",a[s]=u}catch{}}if(a[s]==null){let c=new Error(i.message);c.stack="",a[s]=c}}else a[s]=i;return a}var Hd=x.forwardRef(function({onClick:t,discover:a="render",prefetch:s="none",relative:i,reloadDocument:c,replace:u,mask:d,state:f,target:g,to:y,preventScrollReset:b,viewTransition:k,defaultShouldRevalidate:C,...w},v){let{basename:S,navigator:T,useTransitions:E}=x.useContext(Ga),j=typeof y=="string"&&Lx.test(y),$=V3(y,S);y=$.to;let z=vA(y,{relative:i}),L=Ta(),I=null;if(d){let Z=ff(d,[],L.mask?L.mask.pathname:"/",!0);S!=="/"&&(Z.pathname=Z.pathname==="/"?S:xs([S,Z.pathname])),I=T.createHref(Z)}let[N,D,P]=uM(s,w),K=wM(y,{replace:u,mask:d,state:f,target:g,preventScrollReset:b,relative:i,viewTransition:k,defaultShouldRevalidate:C,useTransitions:E});function oe(Z){t&&t(Z),Z.defaultPrevented||K(Z)}let V=!($.isExternal||c),H=x.createElement("a",{...w,...P,href:(V?I:void 0)||$.absoluteURL||z,onClick:V?oe:t,ref:xM(v,D),target:g,"data-discover":!j&&a==="render"?"true":void 0});return N&&!j?x.createElement(x.Fragment,null,H,x.createElement(dM,{page:z})):H});Hd.displayName="Link";var xC=x.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:s="",end:i=!1,style:c,to:u,viewTransition:d,children:f,...g},y){let b=mf(u,{relative:g.relative}),k=Ta(),C=x.useContext(xf),{navigator:w,basename:v}=x.useContext(Ga),S=C!=null&&jM(b)&&d===!0,T=w.encodeLocation?w.encodeLocation(b).pathname:b.pathname,E=k.pathname,j=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;a||(E=E.toLowerCase(),j=j?j.toLowerCase():null,T=T.toLowerCase()),j&&v&&(j=gs(j,v)||j);const $=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let z=E===T||!i&&E.startsWith(T)&&E.charAt($)==="/",L=j!=null&&(j===T||!i&&j.startsWith(T)&&j.charAt(T.length)==="/"),I={isActive:z,isPending:L,isTransitioning:S},N=z?t:void 0,D;typeof s=="function"?D=s(I):D=[s,z?"active":null,L?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let P=typeof c=="function"?c(I):c;return x.createElement(Hd,{...g,"aria-current":N,className:D,ref:y,style:P,to:u,viewTransition:d},typeof f=="function"?f(I):f)});xC.displayName="NavLink";var vM=x.forwardRef(({discover:e="render",fetcherKey:t,navigate:a,reloadDocument:s,replace:i,state:c,method:u=Hp,action:d,onSubmit:f,relative:g,preventScrollReset:y,viewTransition:b,defaultShouldRevalidate:k,...C},w)=>{let{useTransitions:v}=x.useContext(Ga),S=CM(),T=$M(d,{relative:g}),E=u.toLowerCase()==="get"?"get":"post",j=typeof d=="string"&&Lx.test(d),$=z=>{if(f&&f(z),z.defaultPrevented)return;z.preventDefault();let L=z.nativeEvent.submitter,I=L?.getAttribute("formmethod")||u,N=()=>S(L||z.currentTarget,{fetcherKey:t,method:I,navigate:a,replace:i,state:c,relative:g,preventScrollReset:y,viewTransition:b,defaultShouldRevalidate:k});v&&a!==!1?x.startTransition(()=>N()):N()};return x.createElement("form",{ref:w,method:E,action:T,onSubmit:s?f:$,...C,"data-discover":!j&&e==="render"?"true":void 0})});vM.displayName="Form";function kM(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mC(e){let t=x.useContext(Il);return Dt(t,kM(e)),t}function wM(e,{target:t,replace:a,mask:s,state:i,preventScrollReset:c,relative:u,viewTransition:d,defaultShouldRevalidate:f,useTransitions:g}={}){let y=Eu(),b=Ta(),k=mf(e,{relative:u});return x.useCallback(C=>{if(ZA(C,t)){C.preventDefault();let w=a!==void 0?a:fa(b)===fa(k),v=()=>y(e,{replace:w,mask:s,state:i,preventScrollReset:c,relative:u,viewTransition:d,defaultShouldRevalidate:f});g?x.startTransition(()=>v()):v()}},[b,y,k,a,s,i,t,e,c,u,d,f,g])}function gC(e){Fn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=x.useRef(nb(e)),a=x.useRef(!1),s=Ta(),i=x.useMemo(()=>QA(s.search,a.current?null:t.current),[s.search]),c=Eu(),u=x.useCallback((d,f)=>{const g=nb(typeof d=="function"?d(new URLSearchParams(i)):d);a.current=!0,c("?"+g,f)},[c,i]);return[i,u]}var SM=0,EM=()=>`__${String(++SM)}__`;function CM(){let{router:e}=mC("useSubmit"),{basename:t}=x.useContext(Ga),a=zA(),s=e.fetch,i=e.navigate;return x.useCallback(async(c,u={})=>{let{action:d,method:f,encType:g,formData:y,body:b}=tM(c,t);if(u.navigate===!1){let k=u.fetcherKey||EM();await s(k,a,u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:b,formMethod:u.method||f,formEncType:u.encType||g,flushSync:u.flushSync})}else await i(u.action||d,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:b,formMethod:u.method||f,formEncType:u.encType||g,replace:u.replace,state:u.state,fromRouteId:a,flushSync:u.flushSync,viewTransition:u.viewTransition})},[s,i,t,a])}function $M(e,{relative:t}={}){let{basename:a}=x.useContext(Ga),s=x.useContext(ys);Dt(s,"useFormAction must be used inside a RouteContext");let[i]=s.matches.slice(-1),c={...mf(e||".",{relative:t})},u=Ta();if(e==null){c.search=u.search;let d=new URLSearchParams(c.search),f=d.getAll("index");if(f.some(y=>y==="")){d.delete("index"),f.filter(b=>b).forEach(b=>d.append("index",b));let y=d.toString();c.search=y?`?${y}`:""}}return(!e||e===".")&&i.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:xs([a,c.pathname])),fa(c)}function jM(e,{relative:t}={}){let a=x.useContext(Yb);Dt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=mC("useViewTransitionState"),i=mf(e,{relative:t});if(!a.isTransitioning)return!1;let c=gs(a.currentLocation.pathname,s)||a.currentLocation.pathname,u=gs(a.nextLocation.pathname,s)||a.nextLocation.pathname;return rx(i.pathname,u)!=null||rx(i.pathname,c)!=null}var gf=v3();function TM(e){return x.createElement(qA,{flushSync:gf.flushSync,...e})}var Td={},P5;function RM(){if(P5)return Td;P5=1,Object.defineProperty(Td,"__esModule",{value:!0}),Td.styleq=void 0;var e=new WeakMap,t="$$css";function a(i){var c,u,d;return i!=null&&(c=i.disableCache===!0,u=i.disableMix===!0,d=i.transform),function(){for(var g=[],y="",b=null,k="",C=c?null:e,w=new Array(arguments.length),v=0;v<arguments.length;v++)w[v]=arguments[v];for(;w.length>0;){var S=w.pop();if(!(S==null||S===!1)){if(Array.isArray(S)){for(var T=0;T<S.length;T++)w.push(S[T]);continue}var E=d!=null?d(S):S;if(E.$$css!=null){var j="";if(C!=null&&C.has(E)){var $=C.get(E);$!=null&&(j=$[0],k=$[2],g.push.apply(g,$[1]),C=$[3])}else{var z=[];for(var L in E){var I=E[L];if(L===t){var N=E[L];N!==!0&&(k=k?N+"; "+k:N);continue}typeof I=="string"||I===null?g.includes(L)||(g.push(L),C!=null&&z.push(L),typeof I=="string"&&(j+=j?" "+I:I)):console.error("styleq: ".concat(L," typeof ").concat(String(I),' is not "string" or "null".'))}if(C!=null){var D=new WeakMap;C.set(E,[j,z,k,D]),C=D}}j&&(y=y?j+" "+y:j)}else if(u)b==null&&(b={}),b=Object.assign({},E,b);else{var P=null;for(var K in E){var oe=E[K];oe!==void 0&&(g.includes(K)||(oe!=null&&(b==null&&(b={}),P==null&&(P={}),P[K]=oe),g.push(K),C=null))}P!=null&&(b=Object.assign(P,b))}}}var V=[y,b,k];return V}}var s=Td.styleq=a();return s.factory=a,Td}var AM=RM();function Se(...e){const[t,a,s]=AM.styleq(e),i={};return t!=null&&t!==""&&(i.className=t),a!=null&&Object.keys(a).length>0&&(i.style=a),s!=null&&s!==""&&(i["data-style-src"]=s),i}const MM={"--color-accent":"light-dark(#0064E0, #2694FE)","--color-accent-muted":"light-dark(#0082FB33, #0082FB3F)","--color-on-accent":"light-dark(#FFFFFF, #FFFFFF)","--color-neutral":"light-dark(rgba(5, 54, 89, 0.1), rgba(223, 226, 229, 0.2))","--color-background-surface":"light-dark(#FFFFFF, #1F1F22)","--color-background-body":"light-dark(#F1F4F7, #111112)","--color-overlay":"light-dark(#01122866, #11111299)","--color-overlay-hover":"light-dark(#0536590C, #FFFFFF0C)","--color-overlay-pressed":"light-dark(#05365919, #FFFFFF19)","--color-background-muted":"light-dark(#0536590C, #1111127F)","--color-text-primary":"light-dark(#0A1317, #DFE2E5)","--color-text-secondary":"light-dark(#4E606F, #AAAFB5)","--color-text-disabled":"light-dark(#A4B0BC, #6F747C)","--color-text-accent":"light-dark(#0064E0, #3E9EFB)","--color-on-dark":"light-dark(#FFFFFF, #FFFFFF)","--color-on-light":"light-dark(#000000, #000000)","--color-icon-accent":"light-dark(#0064E0, #2694FE)","--color-icon-primary":"light-dark(#0A1317, #DFE2E5)","--color-icon-secondary":"light-dark(#4E606F, #AAAFB5)","--color-icon-disabled":"light-dark(#A4B0BC, #6F747C)","--color-background-card":"light-dark(#FFFFFF, #1F1F22)","--color-background-popover":"light-dark(#FFFFFF, #28292C)","--color-background-inverted":"light-dark(#0A1317, #FFFFFF)","--color-background-error-inverted":"light-dark(#AA071E, #E3193B)","--color-success":"light-dark(#0D8626, #0D8626)","--color-success-muted":"light-dark(#0B991F33, #0B991F3F)","--color-on-success":"light-dark(#FFFFFF, #FFFFFF)","--color-error":"light-dark(#E3193B, #F5394F)","--color-error-muted":"light-dark(#E3193B33, #F5394F3F)","--color-on-error":"light-dark(#FFFFFF, #FFFFFF)","--color-warning":"light-dark(#E9AF08, #F2C00B)","--color-warning-muted":"light-dark(#E2A40033, #E2A4003F)","--color-on-warning":"light-dark(#0A1317, #0A1317)","--color-border":"light-dark(#05365919, #F2F4F619)","--color-border-emphasized":"light-dark(#CCD3DB, #494D53)","--color-skeleton":"light-dark(#CCD3DB, #5A5E66)","--color-track":"light-dark(#CCD3DB, #5A5E66)","--color-shadow":"light-dark(rgba(5, 54, 89, 0.1), rgba(0, 0, 0, 0.3))","--color-tint-hover":"light-dark(black, white)","--color-background-blue":"light-dark(#0171E333, #0171E333)","--color-border-blue":"light-dark(#0064E0, #2694FE)","--color-icon-blue":"light-dark(#0064E0, #2694FE)","--color-text-blue":"light-dark(#042F97, #AFD7FF)","--color-background-cyan":"light-dark(#03A7D733, #03A7D733)","--color-border-cyan":"light-dark(#089DD0, #0171A4)","--color-icon-cyan":"light-dark(#00ACC1, #26C6DA)","--color-text-cyan":"light-dark(#014975, #A1EEF9)","--color-background-gray":"light-dark(#0A131733, #666A724C)","--color-border-gray":"light-dark(#647685, #748695)","--color-icon-gray":"light-dark(#4E606F, #AAAFB5)","--color-text-gray":"light-dark(#0A1317, #E7EAED)","--color-background-green":"light-dark(#24BB5E33, #24BB5E33)","--color-border-green":"light-dark(#0D8626, #0B991F)","--color-icon-green":"light-dark(#0D8626, #26A756)","--color-text-green":"light-dark(#09441F, #A5F690)","--color-background-orange":"light-dark(#F2790233, #F2790233)","--color-border-orange":"light-dark(#EB6E00, #B34A01)","--color-icon-orange":"light-dark(#E9690B, #FB8C00)","--color-text-orange":"light-dark(#6B2203, #FDB876)","--color-background-pink":"light-dark(#E638B333, #E638B333)","--color-border-pink":"light-dark(#F351C0, #C02294)","--color-icon-pink":"light-dark(#C2185B, #EC407A)","--color-text-pink":"light-dark(#650053, #FEADE3)","--color-background-purple":"light-dark(#7952FF33, #7952FF33)","--color-border-purple":"light-dark(#9081FF, #7340FE)","--color-icon-purple":"light-dark(#5B08D8, #7952FF)","--color-text-purple":"light-dark(#3E0697, #B3B0FE)","--color-background-red":"light-dark(#E3193B33, #E3193B33)","--color-border-red":"light-dark(#E3193B, #F5394F)","--color-icon-red":"light-dark(#D31130, #E3193B)","--color-text-red":"light-dark(#7B0210, #FFB2B8)","--color-background-teal":"light-dark(#0DB7AF33, #0DB7AF33)","--color-border-teal":"light-dark(#08A3A3, #08767D)","--color-icon-teal":"light-dark(#009688, #26A69A)","--color-text-teal":"light-dark(#083943, #40DCCD)","--color-background-yellow":"light-dark(#E2A40033, #E2A40033)","--color-border-yellow":"light-dark(#C58600, #B47700)","--color-icon-yellow":"light-dark(#FBC02D, #FFEE58)","--color-text-yellow":"light-dark(#753F07, #FBCE03)"},zM={"--spacing-0":"0rem","--spacing-0-5":"0.125rem","--spacing-1":"0.25rem","--spacing-1-5":"0.375rem","--spacing-2":"0.5rem","--spacing-3":"0.75rem","--spacing-4":"1rem","--spacing-5":"1.25rem","--spacing-6":"1.5rem","--spacing-7":"1.75rem","--spacing-8":"2rem","--spacing-9":"2.25rem","--spacing-10":"2.5rem","--spacing-11":"2.75rem","--spacing-12":"3rem"},kr={"--spacing-1":"var(--spacing-1)","--spacing-2":"var(--spacing-2)","--spacing-4":"var(--spacing-4)"},NM={"--size-element-sm":"28px","--size-element-md":"32px","--size-element-lg":"36px"},LM={"--border-width":"1px"},DM={"--focus-outline-width":"2px","--focus-outline-style":"solid","--focus-outline-color":"var(--color-accent)","--focus-outline-offset":"3px"},Bx={"--focus-outline-width":"var(--focus-outline-width)","--focus-outline-style":"var(--focus-outline-style)","--focus-outline-color":"var(--focus-outline-color)","--focus-outline-offset":"var(--focus-outline-offset)"},OM={"--radius-none":"0px","--radius-inner":"4px","--radius-element":"8px","--radius-container":"12px","--radius-page":"28px","--radius-chat":"28px","--radius-full":"9999px"},IM={"--shadow-low":"0px 1px 1px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 8px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))","--shadow-med":"0px 1px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))","--shadow-high":"0px 2px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 8px 24px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3))","--shadow-inset-hover":"inset 0px 0px 0px 2px light-dark(rgba(5, 54, 89, 0.15), rgba(223, 226, 229, 0.2))","--shadow-inset-selected":"inset 0px 0px 0px 2px rgba(1, 113, 227, 0.5)","--shadow-inset-success":"inset 0px 0px 0px 2px rgba(38, 167, 86, 0.3)","--shadow-inset-warning":"inset 0px 0px 0px 2px rgba(226, 164, 0, 0.3)","--shadow-inset-error":"inset 0px 0px 0px 2px rgba(227, 25, 59, 0.3)"},_M={"--duration-fast-min":"130ms","--duration-fast":"175ms","--duration-fast-max":"230ms","--duration-medium-min":"310ms","--duration-medium":"410ms","--duration-medium-max":"550ms","--duration-slow-min":"730ms","--duration-slow":"975ms","--duration-slow-max":"1300ms"},PM={"--ease-standard":"cubic-bezier(0.24, 1, 0.4, 1)"},BM={"--font-family-body":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',"--font-family-code":'"SF Mono", Monaco, Consolas, monospace',"--font-family-heading":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},FM={"--font-size-4xs":"0.375rem","--font-size-3xs":"0.4375rem","--font-size-2xs":"0.5rem","--font-size-xs":"0.625rem","--font-size-sm":"0.75rem","--font-size-base":"0.875rem","--font-size-lg":"1.0625rem","--font-size-xl":"1.25rem","--font-size-2xl":"1.5rem","--font-size-3xl":"1.8125rem","--font-size-4xl":"2.1875rem","--font-size-5xl":"2.625rem"},qM={"--font-weight-normal":"400","--font-weight-medium":"500","--font-weight-semibold":"600","--font-weight-bold":"700"},HM={"--text-heading-1-size":"var(--font-size-2xl)","--text-heading-1-weight":"var(--font-weight-semibold)","--text-heading-1-leading":"1.3333","--text-heading-2-size":"var(--font-size-xl)","--text-heading-2-weight":"var(--font-weight-semibold)","--text-heading-2-leading":"1.4","--text-heading-3-size":"var(--font-size-lg)","--text-heading-3-weight":"var(--font-weight-semibold)","--text-heading-3-leading":"1.4118","--text-heading-4-size":"var(--font-size-base)","--text-heading-4-weight":"var(--font-weight-semibold)","--text-heading-4-leading":"1.4286","--text-heading-5-size":"var(--font-size-sm)","--text-heading-5-weight":"var(--font-weight-semibold)","--text-heading-5-leading":"1.6667","--text-heading-6-size":"var(--font-size-xs)","--text-heading-6-weight":"var(--font-weight-semibold)","--text-heading-6-leading":"1.6","--text-body-size":"var(--font-size-base)","--text-body-weight":"var(--font-weight-normal)","--text-body-leading":"1.4286","--text-large-size":"var(--font-size-lg)","--text-large-weight":"var(--font-weight-semibold)","--text-large-leading":"1.4118","--text-label-size":"var(--font-size-base)","--text-label-weight":"var(--font-weight-medium)","--text-label-leading":"1.4286","--text-code-size":"var(--font-size-base)","--text-code-weight":"var(--font-weight-normal)","--text-code-leading":"1.4286","--text-supporting-size":"var(--font-size-sm)","--text-supporting-weight":"var(--font-weight-normal)","--text-supporting-leading":"1.6667","--text-display-1-size":"var(--font-size-5xl)","--text-display-1-weight":"var(--font-weight-normal)","--text-display-1-leading":"1.2381","--text-display-2-size":"var(--font-size-4xl)","--text-display-2-weight":"var(--font-weight-normal)","--text-display-2-leading":"1.2571","--text-display-3-size":"var(--font-size-3xl)","--text-display-3-weight":"var(--font-weight-normal)","--text-display-3-leading":"1.2414"},a1=x.createContext(null);a1.displayName="LayoutAreaContext";const yC=[];function Ra(e){const t=x.createContext(e);return t.displayName="LayerScopedContext",yC.push(a=>p.jsx(t,{value:e,children:a})),t}function pu({children:e}){const[t]=x.useState(()=>yC.slice());return t.reduceRight((a,s)=>s(a),e)}const UM={hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1},Fx=Ra(UM);Fx.displayName="LayoutSlotsContext";const qx=Ra(null);qx.displayName="LayoutDividerContext";const VM={center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xuk3077",$$css:!0},start:{kGNEyG:"x1cy8zhl",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},GM={start:{kjj79g:"x1nhvcw1",$$css:!0},center:{kjj79g:"xl56j7k",$$css:!0},end:{kjj79g:"x13a6bvl",$$css:!0},between:{kjj79g:"x1qughib",$$css:!0},around:{kjj79g:"x1l1ennw",$$css:!0},evenly:{kjj79g:"xaw8158",$$css:!0}},KM={horizontal:{kXwgrk:"x1q0g3np",$$css:!0},vertical:{kXwgrk:"xdt5ytf",$$css:!0}},WM={nowrap:{kwnvtZ:"xozqiw3",$$css:!0},wrap:{kwnvtZ:"x1a02dak",$$css:!0},"wrap-reverse":{kwnvtZ:"x8hhl5t",$$css:!0}},YM={stack:{k1xSpc:"x78zum5",$$css:!0}},XM={0:{k1C7PZ:"x1o57wo1",khm7nJ:"x6yxi7o",$$css:!0},1:{k1C7PZ:"x1lfs0n9",khm7nJ:"x1ngg2t4",$$css:!0},2:{k1C7PZ:"xak3so",khm7nJ:"x1x7z4sm",$$css:!0},3:{k1C7PZ:"xewh9hi",khm7nJ:"x4olc9o",$$css:!0},4:{k1C7PZ:"xty4p9g",khm7nJ:"xtx9w7w",$$css:!0},5:{k1C7PZ:"x1eqhezk",khm7nJ:"x1iu6piu",$$css:!0},6:{k1C7PZ:"x3qlgwd",khm7nJ:"xczp1bk",$$css:!0},8:{k1C7PZ:"xicv188",khm7nJ:"xgx0vcf",$$css:!0},10:{k1C7PZ:"x1p37tyl",khm7nJ:"x1xpicb7",$$css:!0},"0.5":{k1C7PZ:"x1kihgfc",khm7nJ:"x1tw44j4",$$css:!0},"1.5":{k1C7PZ:"x1thn6ci",khm7nJ:"xhq53yo",$$css:!0}};function rb({crossAlign:e,direction:t,gap:a,mainAlign:s,wrap:i}){return[YM.stack,KM[t],a!=null&&XM[a],e!=null&&VM[e],s!=null&&GM[s],i!=null&&WM[i]]}const ZM={reset:{kAzted:"x2lwn1j",k7Eaqz:"xeuugli",$$css:!0}},QM={center:{kSGwAc:"xamitd3",$$css:!0},end:{kSGwAc:"xpvyfi4",$$css:!0},start:{kSGwAc:"xqcrz7y",$$css:!0},stretch:{kSGwAc:"xkh2ocl",$$css:!0}},JM={fill:{kzQI83:"x1iyjqo2",$$css:!0},static:{kzQI83:"x1c4vz4f",kmuXW:"x2lah0s",$$css:!0}};function bC({crossAlignSelf:e,size:t}={}){return[ZM.reset,JM[t??"static"],e!=null&&QM[e]]}const s1="astryx",vC=s1,Hx=s1,e9=s1;function kC(e){return`${vC}-${e}`}function Ea(e){return`data-${Hx}-${e}`}function t9(e){return`--${e9}-${e}`}function wC(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function n9(e){return kC(e)}function r9(e){const t={};if(e)for(const[a,s]of Object.entries(e))s!=null&&(t[wC(a)]=String(s));return t}function Ee(e,t){return{className:n9(e),...r9(t)}}function a9(e){let t="";for(const a of e){const s=a.codePointAt(0)??0;a==='"'||a==="\\"||s<32||s===127?t+=`\\${(s===0?65533:s).toString(16)} `:t+=a}return t}function ru(e){return e==="base"?"":e.split("+").map(t=>{const a=t.indexOf(":"),s=a===-1?t:t.slice(0,a),i=a===-1?t:t.slice(a+1);return`[${wC(s)}="${a9(i)}"]`}).join("")}const B5=typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function s9(e){if(B5){const a=B5.segment(e)[Symbol.iterator]().next();return a.done?"":a.value.segment}const t=e.codePointAt(0);return t==null?"":String.fromCodePoint(t)}function up(e,t){const a={...e,...t},s=[e.className,t.className].filter(Boolean).join(" ");s?a.className=s:delete a.className;const i=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return i?a.style=i:delete a.style,a}function Te(e,t,a,s){if(typeof e=="string"){const d=e,f=t??{className:""},g=a;let y=f.className?`${d} ${f.className}`:d;g&&(y=`${y} ${g}`);const b=s&&f.style?{...f.style,...s}:s||f.style;return{...f,className:y,style:b}}let u=up(e,typeof t=="string"?{className:t}:t??{});return typeof a=="string"?u=up(u,{className:a}):a!=null&&(u=up(u,{style:a})),s!=null&&(u=up(u,{style:s})),u}function o1(...e){return t=>{const a=[];for(const s of e)if(typeof s=="function"){const i=s(t);a.push(typeof i=="function"?i:()=>s(null))}else if(s!=null){const i=s;i.current=t,a.push(()=>{i.current=null})}if(t!=null&&a.length>0)return()=>{for(const s of a)s()}}}function Jr(...e){return t=>{for(const a of e)if(a?.(t),t.defaultPrevented)return}}let El=null;const au=new Map;function o9(){return typeof ResizeObserver>"u"?null:(El||(El=new ResizeObserver(e=>{for(const t of e){const a=au.get(t.target);if(a)for(const s of[...a.keys()])s(t)}})),El)}function Jd(e,t){const a=au.get(e);a?a.set(t,(a.get(t)??0)+1):au.set(e,new Map([[t,1]])),o9()?.observe(e),t({target:e});let i=!0;return()=>{i&&(i=!1,i9(e,t))}}function i9(e,t){const a=au.get(e);if(t!=null){const s=a?.get(t);if(a==null||s==null)return;if(s>1){a.set(t,s-1);return}if(a.delete(t),a.size>0)return}au.delete(e),El&&(El.unobserve(e),au.size===0&&(El.disconnect(),El=null))}function Zr(e){return e!=null&&typeof e!="boolean"&&e!==""}function F5(...e){const t=e.flatMap(a=>typeof a=="string"?a.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(" ")}function i1(e,t=[],a){return{ariaLabelledBy:a?F5(a.labelID,e):void 0,ariaDescribedBy:F5(a?.describedByIDs,...t)}}const l9={transparent:{r:0,g:0,b:0,a:0},black:{r:0,g:0,b:0,a:1},white:{r:255,g:255,b:255,a:1}},ax=(e,t,a)=>Math.max(t,Math.min(a,e));function c9(e){return e.split("").map(t=>t+t).join("")}function SC(e){if(typeof e!="string")return null;const t=e.trim().replace(/^#/,""),a=t.length===3||t.length===4?c9(t):t;return a.length!==6&&a.length!==8||!/^[0-9a-fA-F]+$/.test(a)?null:{r:parseInt(a.slice(0,2),16),g:parseInt(a.slice(2,4),16),b:parseInt(a.slice(4,6),16),a:a.length===8?parseInt(a.slice(6,8),16)/255:1}}function u9(e){const t=e.indexOf("(");if(t===-1||!e.trim().endsWith(")"))return null;const s=e.slice(t+1,e.lastIndexOf(")")).replace(/\//g," ").split(/[\s,]+/).map(g=>g.trim()).filter(Boolean);if(s.length<3)return null;const i=g=>{const y=g.endsWith("%")?parseFloat(g)/100*255:parseFloat(g);return ax(y,0,255)},c=i(s[0]),u=i(s[1]),d=i(s[2]);if([c,u,d].some(Number.isNaN))return null;let f=1;if(s.length>=4){const g=s[3];if(f=g.endsWith("%")?parseFloat(g)/100:parseFloat(g),Number.isNaN(f))return null;f=ax(f,0,1)}return{r:c,g:u,b:d,a:f}}function ef(e){const t=e.trim(),a=l9[t.toLowerCase()];return a?{...a}:t.startsWith("#")?SC(t):/^rgba?\(/i.test(t)?u9(t):null}function l1(e,t,a){const s=i=>ax(Math.round(i),0,255).toString(16).padStart(2,"0").toUpperCase();return`#${s(e)}${s(t)}${s(a)}`}function EC({r:e,g:t,b:a,a:s}){if(s>=1)return l1(e,t,a);const i=c=>ax(Math.round(c),0,255);return`rgba(${i(e)}, ${i(t)}, ${i(a)}, ${parseFloat(s.toFixed(4))})`}function d9(e,t){return`${e}: ${t}`}function ms(e,t,...a){}function CC(e,t,...a){console.error(d9(e,t),...a)}function Ux(e,t,a,...s){}const f9={kbCHJM:"x1nrll8i",k3aq6I:"xsqj5wx",$$css:!0},io={mirror:{k3aq6I:"xgtlewx",$$css:!0},centerInline:e=>[f9,{"--x-transform":`translate(-50%, ${e})`!=null?`translate(-50%, ${e})`:void 0}]},h9=Bx["--focus-outline-width"],p9=Bx["--focus-outline-style"],x9=Bx["--focus-outline-color"],m9=Bx["--focus-outline-offset"],g9={outlineWidth:h9,outlineStyle:p9,outlineColor:x9,outlineOffset:m9},y9={outlineWidth:"",outlineStyle:"",outlineColor:"",outlineOffset:""},Io={focusVisible:{kMeerF:"x1k57tk5 x1vidyx5",k3XXqK:"x1t137rt x1jhp3zv",kjBf7l:"xx47ajj",kInvED:"x1wfwxd8 x1vwwbsn",$$css:!0},focusWithin:{kMeerF:"x1k57tk5 x11j6mr8",k3XXqK:"x1t137rt xciu248",kjBf7l:"x1uy843r",kInvED:"x1wfwxd8 x1jumodi",$$css:!0},focusWithinFirstChild:{kMeerF:"x1k57tk5 xmmisi4",k3XXqK:"x1t137rt xfd04fr",kjBf7l:"xobxmqy",kInvED:"x1wfwxd8 x2vr5qc",$$css:!0},suppressed:{kMeerF:"x1k57tk5",k3XXqK:"x1t137rt",kInvED:"x1wfwxd8",$$css:!0},publishFocusVisibleVars:{"--_focus-outline":"x17wzz1v xqih627","--_focus-outline-offset":"xgzxwq1 xqchwus",$$css:!0},focusWithinOrPublished:{kI3sdo:"xaw4jrz x16s19ga",kInvED:"x1kvmbwa x1jumodi",$$css:!0}};function Pc(e){return(...t)=>Se(e,...t)}const Xn={focusVisible:Pc(Io.focusVisible),focusWithin:Pc(Io.focusWithin),focusWithinFirstChild:Pc(Io.focusWithinFirstChild),suppressed:Pc(Io.suppressed),publishFocusVisibleVars:Pc(Io.publishFocusVisibleVars),focusWithinOrPublished:Pc(Io.focusWithinOrPublished)},b9=229;function yf(e){return e.isComposing===!0||e.keyCode===b9}const v9={releaseMs:200},Nr={backgroundColor:{"--astryx-press-alpha":"x11z29ks xli5ek3",kKVMdj:"x14e4jsf",k44tkh:"x8s9nux",kyAemX:"xwkbtvz",kWV6AL:"xziyay6","--_press-paint":"xz2mauf","--_press-paint-image":"x1l7afqf",kWkggS:"xjbqb8w x1anq1lc x1s5nr2v x13ugjdw xl8sb5e xoevpu5 xprvw0a",kKwaWg:"x7ngsy6 xubczrd",$$css:!0},backgroundImage:{"--astryx-press-alpha":"x11z29ks xli5ek3",kKVMdj:"x14e4jsf",k44tkh:"x8s9nux",kyAemX:"xwkbtvz",kWV6AL:"xziyay6","--_press-paint":"xz2mauf","--_press-paint-image":"x1l7afqf",kKwaWg:"x7uyq82 x3f84ok x7ngsy6 xubczrd xmvprkv xetgvay",$$css:!0},pressedBackgroundColor:{"--astryx-press-alpha":"x11z29ks xli5ek3",kKVMdj:"x14e4jsf",k44tkh:"x8s9nux",kyAemX:"xwkbtvz",kWV6AL:"xziyay6","--_press-paint":"xz2mauf","--_press-paint-image":"x1l7afqf",kWkggS:"x1anq1lc x1s5nr2v x13ugjdw xl8sb5e",kKwaWg:"x7ngsy6 xubczrd",$$css:!0},pressedAlpha:{"--astryx-press-alpha":"x11z29ks xli5ek3",kKVMdj:"x14e4jsf",k44tkh:"x8s9nux",kyAemX:"xwkbtvz",kWV6AL:"xziyay6","--_press-paint":"xz2mauf","--_press-paint-image":"x1l7afqf",$$css:!0}},c1={0:"spacing0",.5:"spacing0_5",1:"spacing1",1.5:"spacing1_5",2:"spacing2",3:"spacing3",4:"spacing4",5:"spacing5",6:"spacing6",8:"spacing8",10:"spacing10"},_l={0:{kZCmMZ:"x18gyask",kwRFfy:"x1s0aq8i",kLKAdn:"x1ydh6w3",kGO01o:"x1l20ajd",$$css:!0},1:{kZCmMZ:"x1vsv5vr",kwRFfy:"x1nryj5t",kLKAdn:"xfsso4q",kGO01o:"xy143xn",$$css:!0},2:{kZCmMZ:"x12gdq22",kwRFfy:"x1djylfy",kLKAdn:"x1xye8es",kGO01o:"x1wesfrj",$$css:!0},3:{kZCmMZ:"x126nfab",kwRFfy:"x1t818jl",kLKAdn:"x1vlblms",kGO01o:"xvmdzux",$$css:!0},4:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",kLKAdn:"x1oa1p4a",kGO01o:"x1awphl8",$$css:!0},5:{kZCmMZ:"x1blguxw",kwRFfy:"xdbrk9v",kLKAdn:"xx7rijo",kGO01o:"x1hk98q",$$css:!0},6:{kZCmMZ:"x31w388",kwRFfy:"x1we12cn",kLKAdn:"x1adxfkp",kGO01o:"xjpqqx5",$$css:!0},8:{kZCmMZ:"x1j3hnjz",kwRFfy:"x1q91b2g",kLKAdn:"xoxd1wu",kGO01o:"x2oz4g1",$$css:!0},10:{kZCmMZ:"xqp078j",kwRFfy:"x160ivqr",kLKAdn:"xk6660b",kGO01o:"x2izi54",$$css:!0},"0.5":{kZCmMZ:"x138rykx",kwRFfy:"x1le3yxw",kLKAdn:"xbx876j",kGO01o:"xij103a",$$css:!0},"1.5":{kZCmMZ:"xfti1ec",kwRFfy:"x17hk9do",kLKAdn:"x1kwdpsa",kGO01o:"x1opdxmq",$$css:!0}},Ml={0:{"--container-padding-inline-start":"x1gu2k80","--container-padding-inline-end":"x91ghl5",$$css:!0},1:{"--container-padding-inline-start":"x1cvlban","--container-padding-inline-end":"x2oyxnl",$$css:!0},2:{"--container-padding-inline-start":"x1xlrr2o","--container-padding-inline-end":"xcas3b9",$$css:!0},3:{"--container-padding-inline-start":"xfdwxua","--container-padding-inline-end":"xu0ipoa",$$css:!0},4:{"--container-padding-inline-start":"x1dlhslv","--container-padding-inline-end":"xs0pscg",$$css:!0},5:{"--container-padding-inline-start":"x1s81nki","--container-padding-inline-end":"xgkj7vj",$$css:!0},6:{"--container-padding-inline-start":"x1ep0dkj","--container-padding-inline-end":"x94cj42",$$css:!0},8:{"--container-padding-inline-start":"xw1diwv","--container-padding-inline-end":"x1b9k1pi",$$css:!0},10:{"--container-padding-inline-start":"xserb3f","--container-padding-inline-end":"xx5lg5w",$$css:!0},"0.5":{"--container-padding-inline-start":"x14ws0sr","--container-padding-inline-end":"x1wz3t3y",$$css:!0},"1.5":{"--container-padding-inline-start":"x176g23i","--container-padding-inline-end":"xntetml",$$css:!0}},Mi={0:{"--container-padding-block-start":"x1i3qcxz",$$css:!0},1:{"--container-padding-block-start":"xnsckjb",$$css:!0},2:{"--container-padding-block-start":"xa8b4fq",$$css:!0},3:{"--container-padding-block-start":"x11k4f5r",$$css:!0},4:{"--container-padding-block-start":"xm01sq8",$$css:!0},5:{"--container-padding-block-start":"xp8wdkl",$$css:!0},6:{"--container-padding-block-start":"x1hmud4d",$$css:!0},8:{"--container-padding-block-start":"xfv60at",$$css:!0},10:{"--container-padding-block-start":"x17h9kl7",$$css:!0},"0.5":{"--container-padding-block-start":"xvdf9ev",$$css:!0},"1.5":{"--container-padding-block-start":"x1kbx601",$$css:!0}},_o={0:{"--container-padding-block-end":"xkunwnr",$$css:!0},1:{"--container-padding-block-end":"x57a7ii",$$css:!0},2:{"--container-padding-block-end":"x1lsgcmx",$$css:!0},3:{"--container-padding-block-end":"x1q3ppug",$$css:!0},4:{"--container-padding-block-end":"x4hfsld",$$css:!0},5:{"--container-padding-block-end":"xbib2ws",$$css:!0},6:{"--container-padding-block-end":"x1q8d17g",$$css:!0},8:{"--container-padding-block-end":"x8lgq76",$$css:!0},10:{"--container-padding-block-end":"x15vxphk",$$css:!0},"0.5":{"--container-padding-block-end":"x1cao3zv",$$css:!0},"1.5":{"--container-padding-block-end":"xv53x8y",$$css:!0}},k9={0:{"--layout-padding-own-outer-x":"xhcsosl",$$css:!0},1:{"--layout-padding-own-outer-x":"x14y473",$$css:!0},2:{"--layout-padding-own-outer-x":"x18c6olm",$$css:!0},3:{"--layout-padding-own-outer-x":"x1cfn5ow",$$css:!0},4:{"--layout-padding-own-outer-x":"xh30wjg",$$css:!0},5:{"--layout-padding-own-outer-x":"xse87af",$$css:!0},6:{"--layout-padding-own-outer-x":"xznoj5s",$$css:!0},8:{"--layout-padding-own-outer-x":"xtjvahm",$$css:!0},10:{"--layout-padding-own-outer-x":"xczqutc",$$css:!0},"0.5":{"--layout-padding-own-outer-x":"x1ftjo2o",$$css:!0},"1.5":{"--layout-padding-own-outer-x":"x1k4nu17",$$css:!0}},w9={0:{"--layout-padding-own-outer-y":"xe1wva8",$$css:!0},1:{"--layout-padding-own-outer-y":"x1nxw61z",$$css:!0},2:{"--layout-padding-own-outer-y":"xm4vj23",$$css:!0},3:{"--layout-padding-own-outer-y":"x69uvy7",$$css:!0},4:{"--layout-padding-own-outer-y":"x139ridu",$$css:!0},5:{"--layout-padding-own-outer-y":"x1cq2jmq",$$css:!0},6:{"--layout-padding-own-outer-y":"x1ir1f5p",$$css:!0},8:{"--layout-padding-own-outer-y":"xhbsdkj",$$css:!0},10:{"--layout-padding-own-outer-y":"xaqnhag",$$css:!0},"0.5":{"--layout-padding-own-outer-y":"x1b6unwa",$$css:!0},"1.5":{"--layout-padding-own-outer-y":"x1g16mdy",$$css:!0}},S9={0:{kZCmMZ:"x18gyask",kwRFfy:"x1s0aq8i",$$css:!0},1:{kZCmMZ:"x1vsv5vr",kwRFfy:"x1nryj5t",$$css:!0},2:{kZCmMZ:"x12gdq22",kwRFfy:"x1djylfy",$$css:!0},3:{kZCmMZ:"x126nfab",kwRFfy:"x1t818jl",$$css:!0},4:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",$$css:!0},5:{kZCmMZ:"x1blguxw",kwRFfy:"xdbrk9v",$$css:!0},6:{kZCmMZ:"x31w388",kwRFfy:"x1we12cn",$$css:!0},8:{kZCmMZ:"x1j3hnjz",kwRFfy:"x1q91b2g",$$css:!0},10:{kZCmMZ:"xqp078j",kwRFfy:"x160ivqr",$$css:!0},"0.5":{kZCmMZ:"x138rykx",kwRFfy:"x1le3yxw",$$css:!0},"1.5":{kZCmMZ:"xfti1ec",kwRFfy:"x17hk9do",$$css:!0}},E9={0:{kLKAdn:"x1ydh6w3",kGO01o:"x1l20ajd",$$css:!0},1:{kLKAdn:"xfsso4q",kGO01o:"xy143xn",$$css:!0},2:{kLKAdn:"x1xye8es",kGO01o:"x1wesfrj",$$css:!0},3:{kLKAdn:"x1vlblms",kGO01o:"xvmdzux",$$css:!0},4:{kLKAdn:"x1oa1p4a",kGO01o:"x1awphl8",$$css:!0},5:{kLKAdn:"xx7rijo",kGO01o:"x1hk98q",$$css:!0},6:{kLKAdn:"x1adxfkp",kGO01o:"xjpqqx5",$$css:!0},8:{kLKAdn:"xoxd1wu",kGO01o:"x2oz4g1",$$css:!0},10:{kLKAdn:"xk6660b",kGO01o:"x2izi54",$$css:!0},"0.5":{kLKAdn:"xbx876j",kGO01o:"xij103a",$$css:!0},"1.5":{kLKAdn:"x1kwdpsa",kGO01o:"x1opdxmq",$$css:!0}},$C={0:{kZCmMZ:"x18gyask",$$css:!0},1:{kZCmMZ:"x1vsv5vr",$$css:!0},2:{kZCmMZ:"x12gdq22",$$css:!0},3:{kZCmMZ:"x126nfab",$$css:!0},4:{kZCmMZ:"x1rey3nv",$$css:!0},5:{kZCmMZ:"x1blguxw",$$css:!0},6:{kZCmMZ:"x31w388",$$css:!0},8:{kZCmMZ:"x1j3hnjz",$$css:!0},10:{kZCmMZ:"xqp078j",$$css:!0},"0.5":{kZCmMZ:"x138rykx",$$css:!0},"1.5":{kZCmMZ:"xfti1ec",$$css:!0}},jC={0:{kwRFfy:"x1s0aq8i",$$css:!0},1:{kwRFfy:"x1nryj5t",$$css:!0},2:{kwRFfy:"x1djylfy",$$css:!0},3:{kwRFfy:"x1t818jl",$$css:!0},4:{kwRFfy:"xnjyzlh",$$css:!0},5:{kwRFfy:"xdbrk9v",$$css:!0},6:{kwRFfy:"x1we12cn",$$css:!0},8:{kwRFfy:"x1q91b2g",$$css:!0},10:{kwRFfy:"x160ivqr",$$css:!0},"0.5":{kwRFfy:"x1le3yxw",$$css:!0},"1.5":{kwRFfy:"x17hk9do",$$css:!0}},C9={0:{"--container-padding-inline-start":"x1gu2k80",$$css:!0},1:{"--container-padding-inline-start":"x1cvlban",$$css:!0},2:{"--container-padding-inline-start":"x1xlrr2o",$$css:!0},3:{"--container-padding-inline-start":"xfdwxua",$$css:!0},4:{"--container-padding-inline-start":"x1dlhslv",$$css:!0},5:{"--container-padding-inline-start":"x1s81nki",$$css:!0},6:{"--container-padding-inline-start":"x1ep0dkj",$$css:!0},8:{"--container-padding-inline-start":"xw1diwv",$$css:!0},10:{"--container-padding-inline-start":"xserb3f",$$css:!0},"0.5":{"--container-padding-inline-start":"x14ws0sr",$$css:!0},"1.5":{"--container-padding-inline-start":"x176g23i",$$css:!0}},$9={0:{"--container-padding-inline-end":"x91ghl5",$$css:!0},1:{"--container-padding-inline-end":"x2oyxnl",$$css:!0},2:{"--container-padding-inline-end":"xcas3b9",$$css:!0},3:{"--container-padding-inline-end":"xu0ipoa",$$css:!0},4:{"--container-padding-inline-end":"xs0pscg",$$css:!0},5:{"--container-padding-inline-end":"xgkj7vj",$$css:!0},6:{"--container-padding-inline-end":"x94cj42",$$css:!0},8:{"--container-padding-inline-end":"x1b9k1pi",$$css:!0},10:{"--container-padding-inline-end":"xx5lg5w",$$css:!0},"0.5":{"--container-padding-inline-end":"x1wz3t3y",$$css:!0},"1.5":{"--container-padding-inline-end":"xntetml",$$css:!0}},TC={0:{kLKAdn:"x1ydh6w3",$$css:!0},1:{kLKAdn:"xfsso4q",$$css:!0},2:{kLKAdn:"x1xye8es",$$css:!0},3:{kLKAdn:"x1vlblms",$$css:!0},4:{kLKAdn:"x1oa1p4a",$$css:!0},5:{kLKAdn:"xx7rijo",$$css:!0},6:{kLKAdn:"x1adxfkp",$$css:!0},8:{kLKAdn:"xoxd1wu",$$css:!0},10:{kLKAdn:"xk6660b",$$css:!0},"0.5":{kLKAdn:"xbx876j",$$css:!0},"1.5":{kLKAdn:"x1kwdpsa",$$css:!0}},u1={0:{kGO01o:"x1l20ajd",$$css:!0},1:{kGO01o:"xy143xn",$$css:!0},2:{kGO01o:"x1wesfrj",$$css:!0},3:{kGO01o:"xvmdzux",$$css:!0},4:{kGO01o:"x1awphl8",$$css:!0},5:{kGO01o:"x1hk98q",$$css:!0},6:{kGO01o:"xjpqqx5",$$css:!0},8:{kGO01o:"x2oz4g1",$$css:!0},10:{kGO01o:"x2izi54",$$css:!0},"0.5":{kGO01o:"xij103a",$$css:!0},"1.5":{kGO01o:"x1opdxmq",$$css:!0}},j9={0:{"--_section-padding-propagated":"x7mo41q",$$css:!0},1:{"--_section-padding-propagated":"x1j3iakl",$$css:!0},2:{"--_section-padding-propagated":"xezgk69",$$css:!0},3:{"--_section-padding-propagated":"x1wtz8uf",$$css:!0},4:{"--_section-padding-propagated":"x5wdj8h",$$css:!0},5:{"--_section-padding-propagated":"xgjndll",$$css:!0},6:{"--_section-padding-propagated":"x15i4jqh",$$css:!0},8:{"--_section-padding-propagated":"xmb9lpv",$$css:!0},10:{"--_section-padding-propagated":"x4h2jfd",$$css:!0},"0.5":{"--_section-padding-propagated":"x2ccaqq",$$css:!0},"1.5":{"--_section-padding-propagated":"xxa843v",$$css:!0}},tf={reset:{"--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h","--layout-padding-outer-x":"xdt8ak2","--layout-padding-outer-y":"x1rs4lu4","--layout-padding-own-outer-x":"x1vii845","--layout-padding-own-outer-y":"xojybgt","--layout-padding-inner-x":"x1qfll2g","--layout-padding-inner-y":"xyvxpqs","--_section-padding-propagated":"x1f17rg1",$$css:!0}};function T9(e){if(e==null||typeof e=="number")return!0;const t=e.trim().toLowerCase();return t.includes("%")?!1:t==="0"||/^-?(?:\d+(?:\.\d+)?|\.\d+)[a-z]+$/.test(t)||/^(?:calc|min|max|clamp)\(/.test(t)}const Fa={layoutOuter:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",keoZOQ:"x1sa9bsh",k1K539:"x6h7pi7",$$css:!0},layoutInner:{"--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h","--layout-content-width":"x15lplax","--layout-alignment-width":"x19kr0ht","--layout-padding-own-outer-x":"x1vii845","--layout-padding-own-outer-y":"xojybgt",$$css:!0},fill:{kZKoxP:"x12qplqi",kskxy:"xenllk4",$$css:!0},auto:{kAzted:"x1us19tq",$$css:!0},middle:{kUk6DE:"x98rzlu",kAzted:"x2lwn1j",$$css:!0},middleQuery:{k9g6sI:"xsw3flo",$$css:!0},singleColumnContent:{kzqmXN:"xh8yej3",ks0D6T:"xjl2t3p xpgkkid",kUOVxO:"xvueqy4",$$css:!0},singlePanelMiddle:{kB7OPa:"x9f619",kzqmXN:"xh8yej3",ks0D6T:"xjl2t3p xnpzo02",kUOVxO:"xvueqy4 xb0m1lw",$$css:!0},singleStartPanel:{kZCmMZ:"x1vvd0s7",$$css:!0},singleEndPanel:{kwRFfy:"xxdn8bs",$$css:!0},fullBleed:{"--layout-padding-own-outer-x":"xbjcssu","--layout-padding-own-outer-y":"x1bz2q72",$$css:!0}},R9={kzqmXN:"xh8yej3",kUOVxO:"xvueqy4",$$css:!0},Jy={contentWidthVar:e=>[{"--layout-content-width":(typeof e=="number"?`${e}px`:e)!=null?"x4906uf":typeof e=="number"?`${e}px`:e,$$css:!0},{"--x---layout-content-width":(typeof e=="number"?`${e}px`:e)!=null?typeof e=="number"?`${e}px`:e:void 0}],contentAlignmentWidthVar:e=>[{"--layout-alignment-width":(typeof e=="number"?`${e}px`:e)!=null?"x1b1nz06":typeof e=="number"?`${e}px`:e,$$css:!0},{"--x---layout-alignment-width":(typeof e=="number"?`${e}px`:e)!=null?typeof e=="number"?`${e}px`:e:void 0}],contentWidth:e=>[R9,{ks0D6T:(typeof e=="number"?`${e}px`:e)!=null?"xf68679":typeof e=="number"?`${e}px`:e,$$css:!0},{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(typeof e=="number"?`${e}px`:e)}]};function Rd({area:e,children:t}){return t==null?null:p.jsx(a1,{value:e,children:t})}const A9={"x-default-marker":"x-default-marker",$$css:!0};function Oi({children:e,content:t,contentWidth:a,defaultHasDividers:s,end:i,footer:c,header:u,height:d="fill",padding:f,ref:g,start:y,xstyle:b,className:k,style:C,...w}){const v=d==="fill",S=t??e,T=x.useMemo(()=>s!=null?{defaultHasDividers:s}:null,[s]),E=u!=null,j=c!=null,$=y!=null,z=i!=null,L=$&&z,I=$!==z,N=a!=null&&T9(a),D=x.useMemo(()=>({hasHeader:E,hasFooter:j,hasStart:$,hasEnd:z}),[E,j,$,z]),P=p.jsx(Fx,{value:D,children:p.jsx("div",{...w,ref:g,...Te(Ee("layout",{height:d}),Se(Fa.layoutOuter,v?Fa.fill:Fa.auto,b),k,C),children:p.jsxs("div",{...Se(A9,Fa.layoutInner,...rb({direction:"vertical"}),v?Fa.fill:Fa.auto,f===0&&Fa.fullBleed,f!=null&&k9[f],f!=null&&w9[f],a!=null&&Jy.contentWidthVar(a),N&&Jy.contentAlignmentWidthVar(a)),children:[p.jsx(Rd,{area:"header",children:u}),p.jsxs("div",{...Se(...rb({direction:"horizontal"}),Fa.middle,a!=null&&(!N||L)&&Jy.contentWidth(a),N&&!L&&Fa.middleQuery,N&&I&&Fa.singlePanelMiddle,N&&$&&!z&&Fa.singleStartPanel,N&&!$&&z&&Fa.singleEndPanel),children:[p.jsx(Rd,{area:"start",children:y}),p.jsx("div",{...Se(...bC({size:"fill"}),N&&!$&&!z&&Fa.singleColumnContent),children:p.jsx(Rd,{area:"content",children:S})}),p.jsx(Rd,{area:"end",children:i})]}),p.jsx(Rd,{area:"footer",children:c})]})})});return T!=null?p.jsx(qx,{value:T,children:P}):P}Oi.displayName="Layout";const dp={header:{kmuXW:"x2lah0s",$$css:!0},inner:{kB7OPa:"x9f619",ks0D6T:"xjl2t3p",kUOVxO:"xvueqy4",kZCmMZ:"xaku5ci",kwRFfy:"x19eyx77",kLKAdn:"xuqi0w",kGO01o:"xg476vw","--container-padding-inline-start":"xt2a87w","--container-padding-inline-end":"xhq06x6","--container-padding-block-start":"x186o6qk","--container-padding-block-end":"xi9ns85",$$css:!0},fullBleed:{kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kLKAdn:"xexx8yu",kGO01o:"x18d9i69","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0},divider:{kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},M9={sizing:e=>[{kZKoxP:e!=null?"x16ye13r":e,$$css:!0},{"--x-height":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function sx({children:e,hasDivider:t,height:a,label:s,padding:i,paddingBlockEnd:c,role:u,xstyle:d,className:f,style:g,ref:y,...b}){const k=x.use(qx),C=t??k?.defaultHasDividers??!1,w=i===0;return p.jsx("div",{ref:y,role:u,"aria-label":s,"data-divider":C||void 0,...Te(Ee("layout-header"),Se(dp.header,M9.sizing(a??null),C&&dp.divider,d),f,g),...b,children:p.jsx("div",{...Se(dp.inner,w&&dp.fullBleed,i!=null&&_l[i],i!=null&&Ml[i],i!=null&&Mi[i],i!=null&&_o[i],c!=null&&u1[c],c!=null&&_o[c]),children:e})})}sx.displayName="LayoutHeader";const Rs={panel:{kB7OPa:"x9f619",kmuXW:"x2lah0s",kVQacm:"x7giv3",kZCmMZ:"xwjyata",kwRFfy:"x1peupej",kLKAdn:"xqty4a",kGO01o:"xg476vw","--container-padding-inline-start":"x408pgh","--container-padding-inline-end":"xikqloz","--container-padding-block-start":"xjmgx01","--container-padding-block-end":"xi9ns85",$$css:!0},startPanel:{kZCmMZ:"xaku5ci",$$css:!0},endPanel:{kwRFfy:"x19eyx77",$$css:!0},noHeader:{kLKAdn:"xuqi0w",$$css:!0},noFooter:{kGO01o:"x1363qu6",$$css:!0},fullBleed:{kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kLKAdn:"xexx8yu",kGO01o:"x18d9i69","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0},scrollable:{kVQacm:"xysyzu8",$$css:!0},dividerEnd:{ke9TFa:"x1lun4ml",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0},dividerStart:{k2ei4v:"xpilrb4",kVhnKS:"x1t7ytsu",kGJrpR:"x1j92z86",$$css:!0},collapseStart:{keTefX:"x1wim8z0",$$css:!0},collapseEnd:{k71WvV:"x1kpg4um",$$css:!0}},z9={sizing:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function RC({children:e,hasDivider:t=!1,isScrollable:a=!0,label:s,padding:i,role:c,width:u,resizable:d,xstyle:f,className:g,style:y,ref:b,...k}){const C=x.use(a1),{hasHeader:w,hasFooter:v}=x.use(Fx),S=d?d._size:u,T=C==="start",E=C==="end",j=i===0,$=!t&&!j&&i==null,z=T?Rs.dividerEnd:E?Rs.dividerStart:null,L=T?Rs.collapseEnd:E?Rs.collapseStart:null;return p.jsx("div",{ref:b,role:c,"aria-label":s,...Te(Ee("layout-panel"),Se(Rs.panel,z9.sizing(S??null),T&&!j&&i==null&&Rs.startPanel,E&&!j&&i==null&&Rs.endPanel,!w&&!j&&i==null&&Rs.noHeader,!v&&!j&&i==null&&Rs.noFooter,a&&Rs.scrollable,j&&Rs.fullBleed,i!=null&&_l[i],i!=null&&Ml[i],i!=null&&Mi[i],i!=null&&_o[i],t&&z,$&&L,f),g,y),...k,children:e})}RC.displayName="LayoutPanel";const As={content:{kB7OPa:"x9f619",kZKoxP:"x5yr21d",kUk6DE:"x98rzlu",kAzted:"x2lwn1j",kVQacm:"x7giv3",kZCmMZ:"xwjyata",kwRFfy:"x1peupej",kLKAdn:"xqty4a x1ioh5az",kGO01o:"xg476vw xsg11nj","--container-padding-inline-start":"x408pgh","--container-padding-inline-end":"xikqloz","--container-padding-block-start":"xjmgx01","--container-padding-block-end":"xi9ns85",$$css:!0},noStart:{kZCmMZ:"xaku5ci","--container-padding-inline-start":"xt2a87w","--container-padding-inline-end":"xhq06x6",$$css:!0},noEnd:{kwRFfy:"x19eyx77",$$css:!0},noHeader:{kLKAdn:"xuqi0w","--container-padding-block-start":"x186o6qk",$$css:!0},noFooter:{kGO01o:"x1363qu6","--container-padding-block-end":"xfsxxt8",$$css:!0},scrollable:{kVQacm:"xysyzu8",$$css:!0},constrainedNoPanelsStart:{kZCmMZ:"xhlv5e7",$$css:!0},constrainedNoPanelsEnd:{kwRFfy:"x1ahicqp",$$css:!0},constrainedSingleStartPanel:{kwRFfy:"xy07wb4",$$css:!0},constrainedSingleEndPanel:{kZCmMZ:"xxjme2g",$$css:!0},fullBleed:{kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kLKAdn:"xexx8yu",kGO01o:"x18d9i69","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0}};function Ii({children:e,isScrollable:t=!0,padding:a,label:s,role:i,xstyle:c,className:u,style:d,ref:f,...g}){const{hasHeader:y,hasFooter:b,hasStart:k,hasEnd:C}=x.use(Fx),w=a===0;return p.jsx("div",{ref:f,role:i,"aria-label":s,...Te(Ee("layout-content"),Se(As.content,!k&&!w&&a==null&&As.noStart,!C&&!w&&a==null&&As.noEnd,!y&&!w&&a==null&&As.noHeader,!b&&!w&&a==null&&As.noFooter,t&&As.scrollable,w&&As.fullBleed,a!=null&&_l[a],a!=null&&Ml[a],a!=null&&Mi[a],a!=null&&_o[a],!k&&!C&&!w&&As.constrainedNoPanelsStart,!k&&!C&&!w&&As.constrainedNoPanelsEnd,k&&!C&&!w&&As.constrainedSingleStartPanel,!k&&C&&!w&&As.constrainedSingleEndPanel,c),u,d),...g,children:e})}Ii.displayName="LayoutContent";function AC(e){return(e.style.anchorName??"").split(",").map(a=>a.trim()).filter(Boolean)}function MC(e,t){e.style.anchorName=t.join(", ")}function N9(e,t){const a=AC(e);a.includes(t)||(a.push(t),MC(e,a))}function L9(e,t){MC(e,AC(e).filter(a=>a!==t))}let Vx=0,zC=null,q5=!1;function H5(){Vx+=1}function D9(){zC=Vx}function NC(){q5||typeof document>"u"||(q5=!0,document.addEventListener("pointerdown",H5,!0),document.addEventListener("keydown",H5,!0),document.addEventListener("click",D9,!0))}function Cl(){return NC(),Vx}function O9(){return NC(),zC===Vx}const I9=new Set(["p","h1","h2","h3","h4","h5","h6","dt","pre","legend","data","dfn","meter","output","progress","option","optgroup","table","thead","tbody","tfoot","tr","colgroup","ul","ol","menu","dl","select","datalist","picture","hgroup","ruby","rt","rp","a","button","label","summary","span","em","strong","b","i","u","s","small","mark","code","kbd","samp","var","sub","sup","abbr","cite","q","time","bdi","bdo","ins","del"]);function _9(e){if(!e)return null;let t=null,a=e;for(;a;){const s=a.tagName.toLowerCase();if(s==="dialog")break;I9.has(s)&&(t=a),a=a.parentElement}return t?.parentElement??null}const xu={reset:{kMv6JI:"x9ynric",kGuDYH:"xjm74w1",k63SB2:"xxovm9e",kLWn49:"xw6l6zx",kKX8nH:"x1j61x8r",k9WMMc:"x1yc453h",kJI5tL:"x7ssn7h",kTHuQy:"xzugeeo",kP9fke:"x6mezaz",kb6lSQ:"x1i21sxh",k4JVr9:"xp3md9m",kKMj4B:"x19pm5ym",khDVqt:"xeaf4i8",kTgw9:"x1lldw8n",kHjlTd:"x1h4wwuj",kE4Cay:"xxydokm",$$css:!0}},mu={reset:{"--step-connector-gap":"x1qkaldv",$$css:!0}},gu={gutterInline:"calc(max(var(--spacing-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px)))",gutterBlock:"calc(max(var(--spacing-4), env(safe-area-inset-top, 0px), env(safe-area-inset-bottom, 0px)) + max(var(--astryx-layer-inset-block-start, 0px), var(--astryx-layer-inset-block-end, 0px)))",gutterBlockFallback:"calc(var(--spacing-4) + max(var(--astryx-layer-inset-block-start, 0px), var(--astryx-layer-inset-block-end, 0px)))",gutterInlineFallback:"calc(var(--spacing-4) + max(var(--astryx-layer-inset-inline-start, 0px), var(--astryx-layer-inset-inline-end, 0px)))",maxInlineSizeFallback:"calc(100vw - var(--spacing-4) - var(--spacing-4) - var(--astryx-layer-inset-inline-start, 0px) - var(--astryx-layer-inset-inline-end, 0px))"},P9=[["blockStart","--astryx-layer-inset-block-start"],["blockEnd","--astryx-layer-inset-block-end"],["inlineStart","--astryx-layer-inset-inline-start"],["inlineEnd","--astryx-layer-inset-inline-end"]];function B9(e){return typeof e=="number"?`${e}px`:e}function LC(e){const t={};if(e)for(const[a,s]of P9){const i=e[a];i!=null&&i!==""&&(t[s]=B9(i))}return t}const DC="--_astryx-layer-clearance";function ab(e,t,a){return`--astryx-layer-slide-${e}-${t}-${a}`}const fp=`var(${DC}, 0px)`;function OC(e,t,a){return`${e}:${t};${e}:${a};`}function ox(e){return OC(e,gu.gutterBlockFallback,gu.gutterBlock)}function ix(e){return OC(e,gu.gutterInlineFallback,gu.gutterInline)}const F9={above:"below",below:"above",start:"end",end:"start"};function q9(e){switch(e){case"above":return"self-block-start span-all";case"below":return"self-block-end span-all";case"start":return"self-inline-start span-all";case"end":return"self-inline-end span-all"}}function H9(e){switch(e){case"above":return`margin-block-end:${fp};${ox("margin-block-start")}`;case"below":return`margin-block-start:${fp};${ox("margin-block-end")}`;case"start":return`margin-inline-end:${fp};${ix("margin-inline-start")}`;case"end":return`margin-inline-start:${fp};${ix("margin-inline-end")}`}}function U9(e){return e==="above"||e==="below"?`${ix("margin-inline-start")}${ix("margin-inline-end")}inset-inline-start:0;inset-inline-end:0;`:`${ox("margin-block-start")}${ox("margin-block-end")}inset-block-start:0;inset-block-end:0;`}function U5(e,t,a){const s=a==="same"?e:F9[e];return`@position-try ${ab(e,t,a)}{position-area:${q9(s)};${H9(s)}${U9(s)}}`}const V9=["above","below","start","end"],G9=["start","center","end"];function K9(){return V9.flatMap(e=>G9.flatMap(t=>[U5(e,t,"same"),U5(e,t,"opposite")])).join("")}const V5="astryx-layer-slide-rules";function W9(e){if(e.getElementById(V5))return;const t=e.createElement("style");t.id=V5,t.textContent=K9(),e.head.appendChild(t)}const IC=x.createContext(null);IC.displayName="LayerContext";function Y9(){return x.use(IC)}const Sr=typeof window<"u"?x.useLayoutEffect:x.useEffect,X9={keoZOQ:"x1vhfslr",k1K539:"x119uzjn",$$css:!0},Z9={keoZOQ:"x1lhixnp",k1K539:"xlm3tn6",$$css:!0},Q9={k71WvV:"xa3ewmy",$$css:!0},J9={keTefX:"x1cytvie",$$css:!0},fr={base:{keoZOQ:"xdj266r",k1K539:"xat24cr",keTefX:"x1lziwak",k71WvV:"x14z9mp",kLKAdn:"xexx8yu",kGO01o:"x18d9i69",kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kMzoRj:"xc342km",ksu8eU:"xng3xce",kVQacm:"x1rea2x4",kWkggS:"xjbqb8w",$$css:!0},fixed:{kVAEAm:"xixxii4",$$css:!0},placementBelow:e=>[X9,{"--x-marginBlockStart":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementAbove:e=>[Z9,{"--x-marginBlockEnd":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementEnd:e=>[Q9,{keTefX:e!=null?"x4lel18":e,$$css:!0},{"--x-marginInlineStart":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementStart:e=>[J9,{k71WvV:e!=null?"x1c9tiao":e,$$css:!0},{"--x-marginInlineEnd":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],farBelow:{k1K539:"x119uzjn",$$css:!0},farAbove:{keoZOQ:"x1lhixnp",$$css:!0},farEnd:{k71WvV:"xa3ewmy",$$css:!0},farStart:{keTefX:"x1cytvie",$$css:!0},viewportFit:{kB7OPa:"x9f619",ks0D6T:"x1p5vr2b",kskxy:"xv8yize",$$css:!0},gutterInlineEnd:{k71WvV:"x1m9hk3x",$$css:!0},gutterInlineStart:{keTefX:"x1ey4id",$$css:!0},gutterBlockEnd:{k1K539:"x1chv945",$$css:!0},gutterBlockStart:{keoZOQ:"x3390rn",$$css:!0}};function ez(e){return typeof e=="number"?`${e}px`:e}const Id=new WeakMap;function G5(e,t){Id.set(e,(Id.get(e)??0)+1);try{t()}finally{Id.set(e,(Id.get(e)??1)-1)}}function tz(e){return(Id.get(e)??0)>0}function nz(e,t){const a=e.ownerDocument.defaultView;if(!a)return{};const s=a.getComputedStyle(e),i=a.getComputedStyle(t);return{...s.direction!==i.direction&&{direction:s.direction},...s.writingMode!==i.writingMode&&{writingMode:s.writingMode}}}function rz(e="above",t="center"){if(e==="above"||e==="below"){const s=e==="above"?"self-block-start":"self-block-end";return t==="start"?`${s} span-self-inline-end`:t==="end"?`${s} span-self-inline-start`:s}const a=e==="start"?"self-inline-start":"self-inline-end";return t==="start"?`${a} span-self-block-end`:t==="end"?`${a} span-self-block-start`:a}function az(e="above",t="center"){const a="flip-block, flip-inline, flip-block flip-inline",s=`${ab(e,t,"same")}, ${ab(e,t,"opposite")}`;if(t!=="center")return`${a}, ${s}`;if(e==="above"||e==="below"){const[u,d]=e==="above"?["top","bottom"]:["bottom","top"];return`${a}, ${u} span-left, ${u} span-right, ${d} span-left, ${d} span-right, ${s}`}const[i,c]=e==="start"?["left","right"]:["right","left"];return`${a}, ${i} span-top, ${i} span-bottom, ${c} span-top, ${c} span-bottom, ${s}`}function sz(e,t,a){if(a||t==="center")return{};const s=t==="start"?"unsafe self-start":"unsafe self-end";return e==="above"||e==="below"?{justifySelf:s}:{alignSelf:s}}function oz(e,t){return e==="above"||e==="below"?t==="start"?[fr.gutterInlineEnd]:t==="end"?[fr.gutterInlineStart]:[fr.gutterInlineStart,fr.gutterInlineEnd]:t==="start"?[fr.gutterBlockEnd]:t==="end"?[fr.gutterBlockStart]:[fr.gutterBlockStart,fr.gutterBlockEnd]}function iz(e,t){const a=x.useRef(t);return a.current=t,x.useMemo(()=>({onPointerDown:s=>{if(!a.current)return;const i=s.currentTarget,c=i.ownerDocument;i.setAttribute("popovertarget",e);const u=()=>{c.removeEventListener("pointerup",u),c.removeEventListener("pointercancel",u),c.defaultView?.setTimeout(()=>{i.removeAttribute("popovertarget")},0)};c.addEventListener("pointerup",u),c.addEventListener("pointercancel",u)},onClickCapture:s=>{const i=s.currentTarget;i.hasAttribute("popovertarget")&&(s.preventDefault(),i.removeAttribute("popovertarget"))}}),[e])}function lz(e){const{mode:t,onShow:a,onHide:s,lightDismiss:i=!1}=e,c=t==="context"?e.lazyMount??!1:!1,u=x.useId(),d=`--astryx-layer-${u.replace(/:/g,"")}`,[f,g]=x.useState(!1),[y,b]=x.useState(!0),k=x.useRef(!0),C=x.useCallback(ie=>{k.current!==ie&&(k.current=ie,b(ie))},[]),v=Y9()?.inset,S=x.useRef(null),T=x.useRef(null),E=x.useRef(null),j=x.useRef(null),$=x.useRef(null),[z,L]=x.useState(null),I=x.useRef(!1),N=x.useRef(!1),D=x.useRef(null),P=x.useRef(null),K=x.useCallback(()=>{const ie=Cl();return D.current===ie},[]),oe=x.useCallback(ie=>{typeof ie.showPopover=="function"?G5(ie.ownerDocument,()=>{ie.showPopover({source:E.current??void 0})}):ie.style.display="block",T.current=ie},[]),V=x.useCallback(ie=>{if(t!=="context")return!0;const $e=$.current;if($e===null)return!1;const Pe=$e.portalTarget??j.current?.parentElement??null;return ie.parentElement===Pe},[t]),H=x.useCallback(()=>{if(t!=="context")return;const ie=j.current,$e=ie?.parentElement??null;if(!ie||!$e)return;const Pe=_9($e),He={portalTarget:Pe,portalStyle:Pe?nz(ie,Pe):{}};$.current=He,L(He)},[t]),Z=x.useCallback(()=>{t!=="context"||!c||($.current=null,L(null))},[t,c]),F=x.useCallback(()=>{if(K())return;const ie=S.current,$e=ie&&V(ie)?ie:null;if(!$e){I.current=!0,H();return}if(!N.current){if(tz($e.ownerDocument)){I.current=!0,queueMicrotask(()=>{I.current&&(I.current=!1,Q.current())});return}oe($e),N.current=!0,g(!0),a?.()}},[a,H,oe,V,K]),q=x.useCallback(()=>{if(I.current=!1,N.current){const ie=S.current;T.current=null,N.current=!1,ie&&(typeof ie.hidePopover=="function"?G5(ie.ownerDocument,()=>{ie.hidePopover()}):ie.style.display="none"),g(!1),s?.()}Z()},[s,Z]),Q=x.useRef(F);Q.current=F;const ae=x.useCallback(ie=>{E.current&&E.current!==ie&&L9(E.current,d),ie&&N9(ie,d),E.current=ie},[d]),J=x.useCallback(ie=>{if(P.current?.(),O9())return;D.current=Cl();const $e=ie.defaultView;let Pe=null;const He=()=>{D.current=null,ie.removeEventListener("click",Ze,!0),Pe!==null&&($e?.clearTimeout(Pe),Pe=null),P.current===He&&(P.current=null)},Ze=()=>{ie.removeEventListener("click",Ze,!0),$e?Pe=$e.setTimeout(()=>{Pe=null,P.current===He&&He()},0):He()};ie.addEventListener("click",Ze,!0),P.current=He},[]);x.useEffect(()=>(Cl(),()=>P.current?.()),[]);const se=x.useCallback(ie=>{ie.newState==="closed"&&N.current&&(T.current=null,N.current=!1,J(ie.currentTarget?.ownerDocument??document),g(!1),s?.(),Z())},[s,Z,J]),te=x.useRef(null),fe=x.useRef(null),B=x.useCallback((ie,$e)=>{te.current&&fe.current&&(te.current!==ie||fe.current!==$e)&&(te.current.removeEventListener("toggle",fe.current),te.current=null,fe.current=null),ie&&te.current!==ie&&(ie.addEventListener("toggle",$e),te.current=ie,fe.current=$e)},[]),ee=x.useCallback(ie=>{S.current=ie,B(ie,se),ie&&I.current?(I.current=!1,F()):ie&&N.current&&T.current!==ie&&V(ie)&&oe(ie)},[se,B,F,oe,V]),me=x.useCallback(ie=>{j.current=ie,ie&&(!c||I.current||N.current)&&H()},[c,H]);x.useEffect(()=>(S.current&&B(S.current,se),()=>{te.current&&fe.current&&(te.current.removeEventListener("toggle",fe.current),te.current=null,fe.current=null)}),[se,B]),Sr(()=>{if(t!=="context")return;const ie=S.current?.ownerDocument??j.current?.ownerDocument;ie&&W9(ie)},[t,z]),Sr(()=>{if(!f||t!=="context")return;const ie=E.current;if(!ie)return;const $e=ie.ownerDocument.defaultView;if($e){const He=ie.getBoundingClientRect(),Ze=He.bottom>=0&&He.right>=0&&He.top<=$e.innerHeight&&He.left<=$e.innerWidth;C(Ze)}if(typeof IntersectionObserver>"u")return;const Pe=new IntersectionObserver(He=>{const Ze=He[He.length-1];Ze&&C(Ze.isIntersecting)});return Pe.observe(ie),()=>Pe.disconnect()},[f,t,C]);const pe=x.useCallback((ie,$e)=>{const Pe=p.jsx("template",{ref:me});if(z===null)return p.jsx(p.Fragment,{children:Pe});const{placement:He="above",alignment:Ze="center",positioning:Fe="anchor",offset:Ie,role:at,"aria-label":wt,xstyle:Nt,className:gt,style:st,as:Lt="div",onMouseEnter:nt,onMouseLeave:vt}=$e||{},St=Fe==="custom"?{positionAnchor:d}:{positionAnchor:d,positionArea:rz(He,Ze),positionTryFallbacks:az(He,Ze),...sz(He,Ze,y)},xt=Ie?ez(Ie):null,Tt=Fe==="anchor"&&xt!=null?{[DC]:xt}:{},Me=Fe!=="anchor"?null:xt==null?He==="above"?fr.farAbove:He==="below"?fr.farBelow:He==="start"?fr.farStart:fr.farEnd:He==="above"?fr.placementAbove(xt):He==="below"?fr.placementBelow(xt):He==="start"?fr.placementStart(xt):fr.placementEnd(xt),ut=Fe==="anchor"?[fr.viewportFit,...oz(He,Ze)]:null,tn=Se(xu.reset,mu.reset,fr.base,tf.reset,ut,Me,Nt),qn=gt?`${gt} ${tn.className??""}`:tn.className,Mn=p.jsx(Lt,{ref:ee,id:u,role:at,"aria-label":wt,popover:i?"auto":"manual",className:qn,style:{...tn.style,...St,...Tt,...LC(v),...z.portalStyle,...st},onMouseEnter:nt,onMouseLeave:vt,children:p.jsx(pu,{children:ie})});return p.jsxs(p.Fragment,{children:[Pe,z.portalTarget?gf.createPortal(Mn,z.portalTarget):Mn]})},[d,z,v,u,y,i,ee,me]),ve=x.useCallback((ie,$e)=>{const{x:Pe,y:He,xstyle:Ze,className:Fe,style:Ie}=$e,at={top:He,left:Pe},wt=Se(xu.reset,mu.reset,fr.base,tf.reset,fr.fixed,Ze),Nt=Fe?`${Fe} ${wt.className??""}`:wt.className;return p.jsx("div",{ref:ee,id:u,popover:i?"auto":"manual",className:Nt,style:{...wt.style,...at,...Ie},children:p.jsx(pu,{children:ie})})},[ee,u,i]),ye=x.useMemo(()=>({ref:ae,anchorId:d,show:F,hide:q,isOpen:f,wasJustDismissed:K,id:u,render:pe}),[ae,d,F,q,f,K,u,pe]),Oe=x.useMemo(()=>({ref:void 0,show:F,hide:q,isOpen:f,wasJustDismissed:K,id:u,render:ve}),[F,q,f,K,u,ve]);return t==="context"?ye:Oe}function bf(e){const t=lz(e);return x.useMemo(()=>{const{wasJustDismissed:a,...s}=t;return s},[t])}const K5=Symbol.for("@astryxdesign/core/interaction-modality/v1");function _C(e){const t=e,a=t[K5];if(a!=null)return a;const s={modality:"keyboard",isListening:!1,onPointerDown:()=>{s.modality="pointer"},onKeyDown:i=>{i.metaKey||i.altKey||i.ctrlKey||(s.modality="keyboard")}};return Object.defineProperty(t,K5,{value:s}),s}function cz(){if(typeof document>"u")return()=>{};const e=document,t=_C(e);return t.isListening||(t.isListening=!0,e.addEventListener("pointerdown",t.onPointerDown,{capture:!0,passive:!0}),e.addEventListener("keydown",t.onKeyDown,{capture:!0,passive:!0})),()=>{}}function Gx(){x.useEffect(()=>cz(),[])}function yu(){return typeof document>"u"?"keyboard":_C(document).modality}const uz=new Set(["touch","pen"]),dz=new Set(["button","checkbox","combobox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","searchbox","slider","spinbutton","switch","tab","textbox"]);function fz(e){const t=e.getAttribute("role");if(t!=null&&t!=="")return dz.has(t);switch(e.tagName){case"BUTTON":case"INPUT":case"LABEL":case"SELECT":case"SUMMARY":case"TEXTAREA":return!0;case"A":case"AREA":return e.hasAttribute("href");default:return hz(e)}}function hz(e){if(e.isContentEditable===!0)return!0;const t=e.getAttribute("contenteditable");return t!=null&&t!=="false"}function pz(e){const{touchTrigger:t,isEnabled:a,isControlled:s,isOpen:i,layerId:c,triggerRef:u,show:d,hide:f}=e,g=x.useRef(!1),y=x.useRef(i);y.current=i;const b=x.useRef(f);b.current=f;const k=x.useRef(c);k.current=c;const C=x.useRef(!1),w=x.useRef(null);Gx();const v=x.useCallback(()=>{C.current=!1;const z=w.current;z!=null&&(w.current=null,document.removeEventListener("pointerdown",z,!0))},[]),S=x.useCallback(()=>{if(C.current=!0,w.current!=null)return;const z=L=>{const I=L.target;I!=null&&(u.current?.contains(I)===!0||document.getElementById(k.current)?.contains(I)===!0)||(v(),b.current())};w.current=z,document.addEventListener("pointerdown",z,!0)},[u,v]);x.useEffect(()=>v,[v]);const T=x.useCallback(()=>g.current&&yu()==="pointer",[]),E=x.useCallback(z=>{g.current=z.pointerType==="touch"},[]),j=x.useCallback(z=>{const L=uz.has(z.pointerType);if(g.current=L,!L||s)return!1;const I=u.current;return(t==="auto"?I!=null&&fz(I)?"none":"tap":t)==="none"||!a||y.current||C.current?(v(),f(),!0):(S(),d(),!0)},[t,a,s,u,d,f,S,v]),$=x.useRef(i);return x.useEffect(()=>{$.current&&!i&&v(),$.current=i},[i,v]),{isTouchPointerRef:g,isTouchInteraction:T,handlePointerEnter:E,handlePointerDown:j,clearTapOpen:v}}const vf={below:{kKVMdj:"xl1vlw0 x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},above:{kKVMdj:"x3psbcj x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},end:{kKVMdj:"x1i331go x1vxsm5i x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},start:{kKVMdj:"xck01x9 x18lne9g x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0}},lx=x.createContext(0);lx.displayName="LayerDepthContext";function xz(){return x.use(lx)}function nf({children:e}){const t=x.use(lx);return p.jsx(lx,{value:t+1,children:e})}nf.displayName="LayerDepthProvider";const _d=[];let W5=new WeakMap,mz=0,cx=!1;function gz(e){const t=W5.get(e);if(t!==void 0)return t;const a=mz++;return W5.set(e,a),a}function yz(e,t){if(e.depth!==t.depth)return e.depth-t.depth;const a=e.getContainer?.()??null,s=t.getContainer?.()??null;if(a!=null&&s!=null&&a!==s){if(s.contains(a))return 1;if(a.contains(s))return-1}return e.seq-t.seq}function bz(e){return e.isPresent?.()??!0}let Kx=!1;function vz(){return Kx}function PC(){Kx=!0}function ux(){Kx=!1}function d1(){let e=null;for(const t of _d)bz(t)&&(e==null||yz(t,e)>0)&&(e=t);return e}function kz(e){return d1()?.token===e}function wz(){const e=d1();return e==null?!1:(e.behavior==="block"||e.dismiss(),!0)}function BC(e){if(e.key==="Escape"){if(yf(e)){d1()!=null&&e.preventDefault();return}e.defaultPrevented||wz()&&e.preventDefault()}}function Sz(){cx||typeof document>"u"||(document.addEventListener("keydown",BC),document.addEventListener("compositionstart",PC,!0),document.addEventListener("compositionend",ux,!0),document.addEventListener("blur",ux,!0),cx=!0)}function Ez(){!cx||typeof document>"u"||(document.removeEventListener("keydown",BC),document.removeEventListener("compositionstart",PC,!0),document.removeEventListener("compositionend",ux,!0),document.removeEventListener("blur",ux,!0),Kx=!1,cx=!1)}function Cz(e){const t={...e,seq:gz(e.token)};return _d.push(t),Sz(),()=>{const a=_d.indexOf(t);a!==-1&&_d.splice(a,1),_d.length===0&&Ez()}}function Wx(e){const{isActive:t,onDismiss:a,escapeBehavior:s="close",getContainer:i,isPresent:c,isEnabled:u=!0}=e,d=xz(),f=x.useRef({}),g=x.useRef(!1),y=x.useRef(a),b=x.useRef(i),k=x.useRef(c);x.useEffect(()=>{y.current=a,b.current=i,k.current=c});const C=t&&u;return x.useEffect(()=>{if(!C){g.current=!1;return}return g.current||(f.current={},g.current=!0),Cz({token:f.current,depth:d,behavior:s,getContainer:()=>b.current?.()??null,isPresent:()=>k.current?.()??!0,dismiss:()=>y.current()})},[C,d,s]),{shouldDismissOnCloseRequest:x.useCallback(()=>C&&!vz()&&kz(f.current),[C])}}const $z=100,jz={container:{kWkggS:"x19aspcf",kMwMTN:"xrkvqaz",kaIpWk:"x1hviunn",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0}};function Tz(e){return e.hasAttribute("tabindex")?e.tabIndex>=0:["A","BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function Os(e={}){const{placement:t="above",alignment:a="center",delay:s=200,hideDelay:i=0,focusTrigger:c="auto",touchTrigger:u="auto",isEnabled:d=!0,isOpen:f,isDefaultOpen:g=!1,onShow:y,onHide:b}=e,k=bf({mode:"context",onShow:y,onHide:b}),{ref:C,anchorId:w,show:v,hide:S,isOpen:T,id:E,render:j}=k,$=jz.container,z=x.useRef(null),L=x.useRef(null),I=x.useRef(null),N=x.useCallback(()=>{z.current&&(clearTimeout(z.current),z.current=null),L.current&&(clearTimeout(L.current),L.current=null)},[]),D=x.useCallback(()=>{N(),v()},[N,v]),P=x.useCallback(()=>{N(),S()},[N,S]),{isTouchPointerRef:K,isTouchInteraction:oe,handlePointerEnter:V,handlePointerDown:H,clearTapOpen:Z}=pz({touchTrigger:u,isEnabled:d,isControlled:f!==void 0,isOpen:T,layerId:E,triggerRef:I,show:D,hide:P}),F=x.useCallback(()=>{!d||f===!1||(N(),z.current=setTimeout(()=>{v()},s))},[d,f,N,v,s]),q=x.useCallback(()=>{if(f===!0)return;N();const pe=i>0?i:$z;L.current=setTimeout(()=>{S()},pe)},[f,N,S,i]),Q=x.useCallback(()=>{L.current&&(clearTimeout(L.current),L.current=null)},[]),ae=x.useCallback(()=>{K.current||F()},[K,F]),J=x.useCallback(()=>{K.current||q()},[K,q]),se=x.useCallback(pe=>{!d||oe()||!pe.target.matches(":focus-visible")||(N(),v())},[d,oe,N,v]),te=x.useCallback(()=>{q()},[q]),fe=x.useCallback(pe=>{H(pe)||f===void 0&&(N(),S())},[H,f,N,S]),B=x.useCallback(pe=>{I.current&&(I.current.removeEventListener("mouseenter",ae),I.current.removeEventListener("mouseleave",J),I.current.removeEventListener("focusin",se),I.current.removeEventListener("focusout",te),I.current.removeEventListener("pointerenter",V),I.current.removeEventListener("pointerdown",fe)),pe&&(pe.addEventListener("pointerenter",V),pe.addEventListener("mouseenter",ae),pe.addEventListener("mouseleave",J),pe.addEventListener("pointerdown",fe),(c==="always"||c==="auto"&&Tz(pe))&&(pe.addEventListener("focusin",se),pe.addEventListener("focusout",te))),I.current=pe},[c,ae,J,se,te,V,fe]),ee=x.useCallback(pe=>{C(pe),B(pe)},[C,B]);x.useEffect(()=>()=>{N()},[N]),x.useEffect(()=>{g&&v()},[]),x.useEffect(()=>{f!==void 0&&(f?(N(),v()):(N(),S()))},[f,N,v,S]),Wx({isActive:!0,isPresent:()=>{const pe=typeof document>"u"?null:document.getElementById(E);if(pe==null)return!1;try{return pe.matches(":popover-open")}catch{return T}},onDismiss:()=>{if(N(),Z(),f!==void 0){b?.();return}S()}});const me=x.useCallback((pe,ve)=>{const ye=ve?.placement??t,Oe={placement:ye,alignment:ve?.alignment??a,offset:kr["--spacing-1"],role:"tooltip",xstyle:[$,vf[ye]],className:Ee("tooltip").className,onMouseEnter:Q,onMouseLeave:q};return j(p.jsx("div",{className:"xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe",children:pe}),Oe)},[j,t,a,$,Q,q]);return{ref:ee,positionRef:C,interactionRef:B,anchorId:w,describedBy:E,renderTooltip:me}}const Rz="modulepreload",Az=function(e){return"/"+e},Y5={},kf=function(t,a,s){let i=Promise.resolve();if(a&&a.length>0){let f=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");i=f(a.map(g=>{if(g=Az(g),g in Y5)return;Y5[g]=!0;const y=g.endsWith(".css"),b=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const k=document.createElement("link");if(k.rel=y?"stylesheet":Rz,y||(k.as="script"),k.crossOrigin="",k.href=g,d&&k.setAttribute("nonce",d),document.head.appendChild(k),y)return new Promise((C,w)=>{k.addEventListener("load",C),k.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${g}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return i.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})},f1={primary:{kMwMTN:"x1tgivj0",$$css:!0},secondary:{kMwMTN:"xv1l7n4",$$css:!0},disabled:{kMwMTN:"xnbbluu",$$css:!0},placeholder:{kMwMTN:"xv1l7n4",$$css:!0},accent:{kMwMTN:"xjse4m1",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}},FC={normal:{k63SB2:"x1sodnla",$$css:!0},medium:{k63SB2:"x1e4wzip",$$css:!0},semibold:{k63SB2:"x2mo6ok",$$css:!0},bold:{k63SB2:"x1lvx875",$$css:!0}},qC={body:{k63SB2:"xxovm9e",$$css:!0},large:{k63SB2:"x149oux8",$$css:!0},label:{k63SB2:"xmhvcl5",$$css:!0},code:{k63SB2:"xx3eeay",$$css:!0},supporting:{k63SB2:"xv8on6e",$$css:!0},"display-1":{k63SB2:"x1txul5o",$$css:!0},"display-2":{k63SB2:"x1y36c3f",$$css:!0},"display-3":{k63SB2:"x1on40hk",$$css:!0},inherit:{k63SB2:"x1pd3egz",$$css:!0}},h1={body:{kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},large:{kGuDYH:"x18juvz8",kLWn49:"xf74fhv",$$css:!0},label:{kGuDYH:"xcr08ib",kLWn49:"x1kq96og",$$css:!0},code:{kGuDYH:"xp03k98",kLWn49:"x17iicif",kMv6JI:"x9m5x89",$$css:!0},supporting:{kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0},"display-1":{kGuDYH:"xsub3ws",kLWn49:"x112ttwr",$$css:!0},"display-2":{kGuDYH:"x1yego12",kLWn49:"xh0iwvy",$$css:!0},"display-3":{kGuDYH:"xlgnzhf",kLWn49:"x1ujwuaq",$$css:!0},inherit:{kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",$$css:!0}},Mz={"4xs":{kGuDYH:"xxc45ev",$$css:!0},"3xs":{kGuDYH:"x10p7juq",$$css:!0},"2xs":{kGuDYH:"x16a80zy",$$css:!0},xsm:{kGuDYH:"x51wmvv",$$css:!0},sm:{kGuDYH:"x1eqnyfr",$$css:!0},base:{kGuDYH:"x1j29vfg",$$css:!0},lg:{kGuDYH:"xc7cgfe",$$css:!0},xl:{kGuDYH:"x1wqms48",$$css:!0},"2xl":{kGuDYH:"xhs0kqb",$$css:!0},"3xl":{kGuDYH:"x10srzze",$$css:!0},"4xl":{kGuDYH:"xqcvi3d",$$css:!0}},zz={1:{kGuDYH:"xcg7oai",kLWn49:"xfmsba7",k63SB2:"x1v68xuy",$$css:!0},2:{kGuDYH:"x1xvnhcw",kLWn49:"x1cpk1wn",k63SB2:"x12yy4cs",$$css:!0},3:{kGuDYH:"xii13ha",kLWn49:"xwjzt0u",k63SB2:"x1jcxfy8",$$css:!0},4:{kGuDYH:"x8tkxat",kLWn49:"xqerer",k63SB2:"x2hcmsi",$$css:!0},5:{kGuDYH:"xsgqta0",kLWn49:"xo3gurs",k63SB2:"xno150v",$$css:!0},6:{kGuDYH:"xw5ohdf",kLWn49:"xeixjfn",k63SB2:"x1pw4frv",$$css:!0}},HC={inline:{k1xSpc:"xt0psk2",$$css:!0},block:{k1xSpc:"x1lliihq",$$css:!0}},dx={singleLine:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",k1xSpc:"x1lliihq",$$css:!0},multiLine:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0}},UC={"break-word":{kTgw9:"x1lldw8n",kHjlTd:"x1mzt3pk",$$css:!0},"break-all":{kTgw9:"x1yn0g08",$$css:!0}},VC={wrap:{kN2L0X:"xk4td0m",$$css:!0},nowrap:{kN2L0X:"xebhuq6",$$css:!0},balance:{kN2L0X:"x1w2vvpw",$$css:!0},pretty:{kN2L0X:"x1fzhlzt",$$css:!0}},GC={enabled:{kxwWH2:"x1b2iylo",kzeHkT:"xwgcxoh",k1xSpc:"x1lliihq",$$css:!0}},KC={strikethrough:{kybGjl:"xmqliwb",$$css:!0}},Nz={enabled:{kcqcaj:"xss6m8b",$$css:!0}},WC={start:{k9WMMc:"x1yc453h",$$css:!0},center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},YC={content:{ks0D6T:"xw5ewwj",kTgw9:"x13faqbe",$$css:!0}};function XC(e){const{maxLines:t}=e,[a,s]=x.useState(!1),[i,c]=x.useState(""),u=x.useRef(null),d=x.useRef(null),f=x.useCallback(y=>{if(t===0){s(!1);return}if(c(y.textContent??""),t===1)s(y.scrollWidth>y.offsetWidth);else{let b=y.scrollHeight;try{const k=document.createRange();k.selectNodeContents(y),b=k.getBoundingClientRect().height,k.detach()}catch{}s(b>y.offsetHeight)}},[t]);return{ref:x.useCallback(y=>{d.current?.(),d.current=null,u.current=y,y&&t>0?typeof ResizeObserver<"u"?d.current=Jd(y,()=>{f(y)}):f(y):(s(!1),c(""))},[t,f]),isTruncated:a,fullText:i}}function Zn(e,t,a,s,i,c){return x.useMemo(()=>o1(e,t,a,s,i,c),[e,t,a,s,i,c])}const Lz=x.lazy(async()=>kf(()=>Promise.resolve().then(()=>l$),[]).then(e=>({default:e.Tooltip}))),Dz={body:"primary",large:"primary",label:"primary",supporting:"secondary",code:"primary","display-1":"primary","display-2":"primary","display-3":"primary",inherit:"inherit"};function Oz(e){return e in h1?e:"body"}function ZC(e){return e in f1?e:"primary"}function tt({type:e="body",size:t,color:a,weight:s,display:i="inline",maxLines:c=0,hasTruncateTooltip:u=!0,wordBreak:d,textWrap:f,justify:g="start",hasCapsize:y=!1,hasStrikethrough:b=!1,hasTabularNumbers:k=!1,xstyle:C,className:w,style:v,as:S="span",children:T,ref:E,...j}){const $=a??Dz[e]??"primary",z=Oz(e),L=ZC($),I=d??(c===1?"break-all":"break-word"),N=c>0||y?"block":i,D=XC({maxLines:c}),P=typeof u=="string"?u:"above",K=c>0&&u!==!1&&D.isTruncated,oe=x.useRef(null),V=Zn(E,D.ref,oe),H=c>1?{WebkitLineClamp:c}:void 0;return p.jsxs(p.Fragment,{children:[p.jsx(S,{ref:V,...Te(Ee("text",{type:e,size:t,color:$}),Se(f1[L],h1[z],t&&Mz[t],qC[z],s&&FC[s],c===1?dx.singleLine:c>1?dx.multiLine:HC[N],c>0&&UC[I],f&&VC[f],g!=="start"&&WC[g],y&&GC.enabled,b&&KC.strikethrough,k&&Nz.enabled,C),w,{...v,...H}),...j,children:T}),K&&p.jsx(x.Suspense,{fallback:null,children:p.jsx(Lz,{anchorRef:oe,content:p.jsx("span",{...Se(YC.content),children:D.fullText}),placement:P})})]})}tt.displayName="Text";function e0(e,t){const a=t&&t.cache?t.cache:Hz,s=t&&t.serializer?t.serializer:Fz;return(t&&t.strategy?t.strategy:Pz)(e,{cache:a,serializer:s})}function Iz(e){return e==null||typeof e=="number"||typeof e=="boolean"}function _z(e,t,a,s){const i=Iz(s)?s:a(s);let c=t.get(i);return typeof c>"u"&&(c=e.call(this,s),t.set(i,c)),c}function QC(e,t,a){const s=Array.prototype.slice.call(arguments,3),i=a(s);let c=t.get(i);return typeof c>"u"&&(c=e.apply(this,s),t.set(i,c)),c}function JC(e,t,a,s,i){return a.bind(t,e,s,i)}function Pz(e,t){const a=e.length===1?_z:QC;return JC(e,this,a,t.cache.create(),t.serializer)}function Bz(e,t){return JC(e,this,QC,t.cache.create(),t.serializer)}const Fz=function(){return JSON.stringify(arguments)};var qz=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const Hz={create:function(){return new qz}},t0={variadic:Bz},Uz=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Vz(e){const t={};return e.replace(Uz,a=>{const s=a.length;switch(a[0]){case"G":t.era=s===4?"long":s===5?"narrow":"short";break;case"y":t.year=s===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][s-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][s-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=s===4?"long":s===5?"narrow":"short";break;case"e":if(s<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][s-3];break;case"c":if(s<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][s-3];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][s-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][s-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][s-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][s-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][s-1];break;case"s":t.second=["numeric","2-digit"][s-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=s<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}const Gz=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Kz(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");const t=e.split(Gz).filter(s=>s.length>0),a=[];for(const s of t){let i=s.split("/");if(i.length===0)throw new Error("Invalid number skeleton");const[c,...u]=i;for(const d of u)if(d.length===0)throw new Error("Invalid number skeleton");a.push({stem:c,options:u})}return a}function Wz(e){return e.replace(/^(.*?)-/,"")}const X5=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,e4=/^(@+)?(\+|#+)?[rs]?$/g,Yz=/(\*)(0+)|(#+)(0+)|(0+)/g,t4=/^(0+)$/;function Z5(e){const t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(e4,function(a,s,i){return typeof i!="string"?(t.minimumSignificantDigits=s.length,t.maximumSignificantDigits=s.length):i==="+"?t.minimumSignificantDigits=s.length:s[0]==="#"?t.maximumSignificantDigits=s.length:(t.minimumSignificantDigits=s.length,t.maximumSignificantDigits=s.length+(typeof i=="string"?i.length:0)),""}),t}function n4(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Xz(e){let t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){const a=e.slice(0,2);if(a==="+!"?(t.signDisplay="always",e=e.slice(2)):a==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!t4.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Q5(e){const t={},a=n4(e);return a||t}function Zz(e){let t={};for(const a of e){switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Wz(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...a.options.reduce((c,u)=>({...c,...Q5(u)}),{})};continue;case"engineering":t={...t,notation:"engineering",...a.options.reduce((c,u)=>({...c,...Q5(u)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Yz,function(c,u,d,f,g,y){if(u)t.minimumIntegerDigits=d.length;else{if(f&&g)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(t4.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(X5.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(X5,function(u,d,f,g,y,b){return f==="*"?t.minimumFractionDigits=d.length:g&&g[0]==="#"?t.maximumFractionDigits=g.length:y&&b?(t.minimumFractionDigits=y.length,t.maximumFractionDigits=y.length+b.length):(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length),""});const c=a.options[0];c==="w"?t={...t,trailingZeroDisplay:"stripIfInteger"}:c&&(t={...t,...Z5(c)});continue}if(e4.test(a.stem)){t={...t,...Z5(a.stem)};continue}const s=n4(a.stem);s&&(t={...t,...s});const i=Xz(a.stem);i&&(t={...t,...i})}return t}let Qz=(function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e})({});function J5(e){return e.type===0}function Jz(e){return e.type===1}function r4(e){return e.type===2}function a4(e){return e.type===3}function s4(e){return e.type===4}function o4(e){return e.type===5}function i4(e){return e.type===6}function eN(e){return e.type===7}function l4(e){return e.type===8}function c4(e){return!!(e&&typeof e=="object"&&e.type===0)}function sb(e){return!!(e&&typeof e=="object"&&e.type===1)}const u4=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ad={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function tN(e,t){let a="";for(let s=0;s<e.length;s++){const i=e.charAt(s);if(i==="j"){let c=0;for(;s+1<e.length&&e.charAt(s+1)===i;)c++,s++;let u=1+(c&1),d=c<2?1:3+(c>>1),f="a",g=nN(t);for((g=="H"||g=="k")&&(d=0);d-- >0;)a+=f;for(;u-- >0;)a=g+a}else i==="J"?a+="H":a+=i}return a}function nN(e){let t=e.hourCycle;if(t===void 0){const i=e;t=i.getHourCycles?.()[0]??i.hourCycles?.[0]}if(t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}const a=e.language;let s;return a!=="root"&&(s=e.maximize().region),(Ad[`${a}-${s}`]||Ad[s||""]||Ad[a||""]||Ad[`${a}-001`]||Ad["001"])[0].charAt(0)}const rN=new RegExp(`^${u4.source}*`),aN=new RegExp(`${u4.source}*$`);function Xt(e,t){return{start:e,end:t}}const sN=!!Object.fromEntries,oN=!!String.prototype.trimStart,iN=!!String.prototype.trimEnd,eS=sN?Object.fromEntries:function(t){const a={};for(const[s,i]of t)a[s]=i;return a},lN=oN?function(t){return t.trimStart()}:function(t){return t.replace(rN,"")},cN=iN?function(t){return t.trimEnd()}:function(t){return t.replace(aN,"")},tS=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");function uN(e,t){return tS.lastIndex=t,tS.exec(e)[1]??""}function dN(e){if(e.length===0)return null;let t=1,a=1;for(let s=0;s<e.length;){const i=e.charCodeAt(s);switch(i){case 35:case 39:case 60:case 123:case 125:return null}if(i===10)t++,a=1,s++;else if(a++,i>=55296&&i<=56319&&s+1<e.length){const c=e.charCodeAt(s+1);s+=c>=56320&&c<=57343?2:1}else s++}return{offset:e.length,line:t,column:a}}var fN=class{constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(this.offset()!==0)throw Error("parser can only be used once");if(this.message.length>0){const e=this.message.charCodeAt(0);if(e!==35&&e!==39&&e!==60&&e!==123&&e!==125){const t=dN(this.message);if(t){const a=this.clonePosition();return this.position=t,{val:[{type:0,value:this.message,location:Xt(a,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,a){let s=[];for(;!this.isEOF();){const i=this.char();if(i===123){const c=this.parseArgument(e,a);if(c.err)return c;s.push(c.val)}else{if(i===125&&e>0)break;if(i===35&&(t==="plural"||t==="selectordinal")){const c=this.clonePosition();this.bump(),s.push({type:7,location:Xt(c,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(a)break;return this.error(26,Xt(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&ob(this.peek()||0)){const c=this.parseTag(e,t);if(c.err)return c;s.push(c.val)}else{const c=this.parseLiteral(e,t);if(c.err)return c;s.push(c.val)}}}return{val:s,err:null}}parseTag(e,t){const a=this.clonePosition();this.bump();const s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${s}/>`,location:Xt(a,this.clonePosition())},err:null};if(this.bumpIf(">")){const i=this.parseMessage(e+1,t,!0);if(i.err)return i;const c=i.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ob(this.char()))return this.error(23,Xt(u,this.clonePosition()));const d=this.clonePosition();return s!==this.parseTagName()?this.error(26,Xt(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:s,children:c,location:Xt(a,this.clonePosition())},err:null}:this.error(23,Xt(u,this.clonePosition())))}else return this.error(27,Xt(a,this.clonePosition()))}else return this.error(23,Xt(a,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&pN(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const a=this.clonePosition();let s="";for(;;){const c=this.tryParseQuote(t);if(c){s+=c;continue}const u=this.tryParseUnquoted(e,t);if(u){s+=u;continue}const d=this.tryParseLeftAngleBracket();if(d){s+=d;continue}break}const i=Xt(a,this.clonePosition());return{val:{type:0,value:s,location:i},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!hN(this.peek()||0))?(this.bump(),"<"):null}tryParseQuote(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();const t=[this.char()];for(this.bump();!this.isEOF();){const a=this.char();if(a===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(a);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;const a=this.char();return a===60||a===123||a===35&&(t==="plural"||t==="selectordinal")||a===125&&e>0?null:(this.bump(),String.fromCodePoint(a))}parseArgument(e,t){const a=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,Xt(a,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,Xt(a,this.clonePosition()));let s=this.parseIdentifierIfPossible().value;if(!s)return this.error(3,Xt(a,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,Xt(a,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:s,location:Xt(a,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,Xt(a,this.clonePosition())):this.parseArgumentOptions(e,t,s,a);default:return this.error(3,Xt(a,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),a=uN(this.message,t),s=t+a.length;return this.bumpTo(s),{value:a,location:Xt(e,this.clonePosition())}}parseArgumentOptions(e,t,a,s){let i=this.clonePosition(),c=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(c){case"":return this.error(4,Xt(i,u));case"number":case"date":case"time":{this.bumpSpace();let d=null;if(this.bumpIf(",")){this.bumpSpace();const y=this.clonePosition(),b=this.parseSimpleArgStyleIfPossible();if(b.err)return b;const k=cN(b.val);if(k.length===0)return this.error(6,Xt(this.clonePosition(),this.clonePosition()));d={style:k,styleLocation:Xt(y,this.clonePosition())}}const f=this.tryParseArgumentClose(s);if(f.err)return f;const g=Xt(s,this.clonePosition());if(d&&d.style.startsWith("::")){let y=lN(d.style.slice(2));if(c==="number"){const b=this.parseNumberSkeletonFromString(y,d.styleLocation);return b.err?b:{val:{type:2,value:a,location:g,style:b.val},err:null}}else{if(y.length===0)return this.error(10,g);let b=y;this.locale&&(b=tN(y,this.locale));const k={type:1,pattern:b,location:d.styleLocation,parsedOptions:this.shouldParseSkeletons?Vz(b):{}};return{val:{type:c==="date"?3:4,value:a,location:g,style:k},err:null}}}return{val:{type:c==="number"?2:c==="date"?3:4,value:a,location:g,style:d?.style??null},err:null}}case"plural":case"selectordinal":case"select":{const d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,Xt(d,{...d}));this.bumpSpace();let f=this.parseIdentifierIfPossible(),g=0;if(c!=="select"&&f.value==="offset"){if(!this.bumpIf(":"))return this.error(13,Xt(this.clonePosition(),this.clonePosition()));this.bumpSpace();const C=this.tryParseDecimalInteger(13,14);if(C.err)return C;this.bumpSpace(),f=this.parseIdentifierIfPossible(),g=C.val}const y=this.tryParsePluralOrSelectOptions(e,c,t,f);if(y.err)return y;const b=this.tryParseArgumentClose(s);if(b.err)return b;const k=Xt(s,this.clonePosition());return c==="select"?{val:{type:5,value:a,options:eS(y.val),location:k},err:null}:{val:{type:6,value:a,options:eS(y.val),offset:g,pluralType:c==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(5,Xt(i,u))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,Xt(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0;const t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,Xt(a,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let a=[];try{a=Kz(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:a,location:t,parsedOptions:this.shouldParseSkeletons?Zz(a):{}},err:null}}tryParsePluralOrSelectOptions(e,t,a,s){let i=!1;const c=[],u=new Set;let{value:d,location:f}=s;for(;;){if(d.length===0){const k=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){const C=this.tryParseDecimalInteger(16,19);if(C.err)return C;f=Xt(k,this.clonePosition()),d=this.message.slice(k.offset,this.offset())}else break}if(u.has(d))return this.error(t==="select"?21:20,f);d==="other"&&(i=!0),this.bumpSpace();const g=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?17:18,Xt(this.clonePosition(),this.clonePosition()));const y=this.parseMessage(e+1,t,a);if(y.err)return y;const b=this.tryParseArgumentClose(g);if(b.err)return b;c.push([d,{value:y.val,location:Xt(g,this.clonePosition())}]),u.add(d),this.bumpSpace(),{value:d,location:f}=this.parseIdentifierIfPossible()}return c.length===0?this.error(t==="select"?15:16,Xt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(22,Xt(this.clonePosition(),this.clonePosition())):{val:c,err:null}}tryParseDecimalInteger(e,t){let a=1;const s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(a=-1);let i=!1,c=0;for(;!this.isEOF();){const d=this.char();if(d>=48&&d<=57)i=!0,c=c*10+(d-48),this.bump();else break}const u=Xt(s,this.clonePosition());return i?(c*=a,Number.isSafeInteger(c)?{val:c,err:null}:this.error(t,u)):this.error(e,u)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");const t=this.message.codePointAt(e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;const e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){const t=this.offset(),a=this.message.indexOf(e,t);return a>=0?(this.bumpTo(a),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){const t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&xN(this.char());)this.bump()}peek(){if(this.isEOF())return null;const e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}};function ob(e){return e>=97&&e<=122||e>=65&&e<=90}function hN(e){return ob(e)||e===47}function pN(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function xN(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ib(e){e.forEach(t=>{if(delete t.location,o4(t)||i4(t))for(const a in t.options)delete t.options[a].location,ib(t.options[a].value);else r4(t)&&c4(t.style)||(a4(t)||s4(t))&&sb(t.style)?delete t.style.location:l4(t)&&ib(t.children)})}function mN(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const a=new fN(e,t).parse();if(a.err){const s=SyntaxError(Qz[a.err.kind]);throw s.location=a.err.location,s.originalMessage=a.err.message,s}return t?.captureLocation||ib(a.val),a.val}var Yx=class extends Error{constructor(e,t,a){super(e),this.code=t,this.originalMessage=a}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},nS=class extends Yx{constructor(e,t,a,s){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(a).join('", "')}"`,"INVALID_VALUE",s)}},gN=class extends Yx{constructor(e,t,a){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",a)}},yN=class extends Yx{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function bN(e){return e.length<2?e:e.reduce((t,a)=>{const s=t[t.length-1];return!s||s.type!==0||a.type!==0?t.push(a):s.value+=a.value,t},[])}function vN(e){return typeof e=="function"}function Vp(e,t,a,s,i,c,u){if(e.length===1&&J5(e[0]))return[{type:0,value:e[0].value}];const d=[];for(const f of e){if(J5(f)){d.push({type:0,value:f.value});continue}if(eN(f)){typeof c=="number"&&d.push({type:0,value:a.getNumberFormat(t).format(c)});continue}const{value:g}=f;if(!(i&&g in i))throw new yN(g,u);let y=i[g];if(Jz(f)){(!y||typeof y=="string"||typeof y=="number"||typeof y=="bigint")&&(y=typeof y=="string"||typeof y=="number"||typeof y=="bigint"?String(y):""),d.push({type:typeof y=="string"?0:1,value:y});continue}if(a4(f)){const b=typeof f.style=="string"?s.date[f.style]:sb(f.style)?f.style.parsedOptions:void 0;d.push({type:0,value:a.getDateTimeFormat(t,b).format(y)});continue}if(s4(f)){const b=typeof f.style=="string"?s.time[f.style]:sb(f.style)?f.style.parsedOptions:s.time.medium;d.push({type:0,value:a.getDateTimeFormat(t,b).format(y)});continue}if(r4(f)){const b=typeof f.style=="string"?s.number[f.style]:c4(f.style)?f.style.parsedOptions:void 0;if(b&&b.scale){const k=b.scale||1;if(typeof y=="bigint"){if(!Number.isInteger(k))throw new TypeError(`Cannot apply fractional scale ${k} to bigint value. Scale must be an integer when formatting bigint.`);y=y*BigInt(k)}else y=y*k}d.push({type:0,value:a.getNumberFormat(t,b).format(y)});continue}if(l4(f)){const{children:b,value:k}=f,C=i[k];if(!vN(C))throw new gN(k,"function",u);let w=C(Vp(b,t,a,s,i,c).map(v=>v.value));Array.isArray(w)||(w=[w]),d.push(...w.map(v=>({type:typeof v=="string"?0:1,value:v})))}if(o4(f)){const b=y,k=(Object.prototype.hasOwnProperty.call(f.options,b)?f.options[b]:void 0)||f.options.other;if(!k)throw new nS(f.value,y,Object.keys(f.options),u);d.push(...Vp(k.value,t,a,s,i));continue}if(i4(f)){const b=`=${y}`;let k=Object.prototype.hasOwnProperty.call(f.options,b)?f.options[b]:void 0;if(!k){if(!Intl.PluralRules)throw new Yx(`Intl.PluralRules is not available in this environment.
14
+ Try polyfilling it using "@formatjs/intl-pluralrules"
15
+ `,"MISSING_INTL_API",u);const w=typeof y=="bigint"?Number(y):y,v=a.getPluralRules(t,{type:f.pluralType}).select(w-(f.offset||0));k=(Object.prototype.hasOwnProperty.call(f.options,v)?f.options[v]:void 0)||f.options.other}if(!k)throw new nS(f.value,y,Object.keys(f.options),u);const C=typeof y=="bigint"?Number(y):y;d.push(...Vp(k.value,t,a,s,i,C-(f.offset||0)));continue}}return bN(d)}function kN(e,t){return t?{...e,...t,...Object.keys(e).reduce((a,s)=>(a[s]={...e[s],...t[s]},a),{})}:e}function wN(e,t){return t?Object.keys(e).reduce((a,s)=>(a[s]=kN(e[s],t[s]),a),{...e}):e}function n0(e){return{create(){return{get(t){return e[t]},set(t,a){e[t]=a}}}}}function SN(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:e0((...t)=>new Intl.NumberFormat(...t),{cache:n0(e.number),strategy:t0.variadic}),getDateTimeFormat:e0((...t)=>new Intl.DateTimeFormat(...t),{cache:n0(e.dateTime),strategy:t0.variadic}),getPluralRules:e0((...t)=>new Intl.PluralRules(...t),{cache:n0(e.pluralRules),strategy:t0.variadic})}}var Vr,EN=(Vr=class{constructor(t,a=Vr.defaultLocale,s,i){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=c=>{const u=this.formatToParts(c);if(u.length===1)return u[0].value;const d=u.reduce((f,g)=>(!f.length||g.type!==0||typeof f[f.length-1]!="string"?f.push(g.value):f[f.length-1]+=g.value,f),[]);return d.length<=1?d[0]||"":d},this.formatToParts=c=>Vp(this.ast,this.locales,this.formatters,this.formats,c,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=a,this.resolvedLocale=Vr.resolveLocale(a),typeof t=="string"){if(this.message=t,!Vr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...c}=i||{};this.ast=Vr.__parse(t,{...c,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=wN(Vr.formats,s),this.formatters=i&&i.formatters||SN(this.formatterCache)}static get defaultLocale(){return Vr.memoizedDefaultLocale||(Vr.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),Vr.memoizedDefaultLocale}},Vr.memoizedDefaultLocale=null,Vr.resolveLocale=t=>{if(typeof Intl.Locale>"u")return;const a=Intl.NumberFormat.supportedLocalesOf(t);return a.length>0?new Intl.Locale(a[0]):new Intl.Locale(typeof t=="string"?t:t[0])},Vr.__parse=mN,Vr.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Vr),CN=EN;const $N={"@astryx.pagination.label":"Pagination","@astryx.pagination.previous":"Go to previous page","@astryx.pagination.next":"Go to next page","@astryx.pagination.previousBy":"Go back {step, number} {step, plural, one {page} other {pages}}","@astryx.pagination.nextBy":"Go forward {step, number} {step, plural, one {page} other {pages}}","@astryx.pagination.first":"Go to first page","@astryx.pagination.last":"Go to last page","@astryx.pagination.goToPage":"Go to page {page, number}","@astryx.pagination.goToPageInput":"Go to page","@astryx.pagination.pageLabel":"Page","@astryx.pagination.ofTotalPages":"/ {total, number}","@astryx.pagination.pageIndicators":"Page indicators","@astryx.pagination.itemsPerPage":"Items per page","@astryx.pagination.count":"{from, number}–{to, number} of {total, number}","@astryx.pagination.pageOfTotal":"Page {current, number} of {total, number}","@astryx.pagination.pageAnnounce":"Page {current, number}","@astryx.powersearch.editor.field":"Field","@astryx.powersearch.editor.operator":"Operator","@astryx.powersearch.editor.addFilter":"+ Add filter","@astryx.powersearch.editor.removeFilter":"Remove filter","@astryx.powersearch.editor.groupOperator":"Group operator","@astryx.powersearch.editor.group":"Group","@astryx.powersearch.editor.delete":"Delete","@astryx.powersearch.editor.cancel":"Cancel","@astryx.powersearch.editor.apply":"Apply","@astryx.powersearch.valueEditor.value":"Value","@astryx.powersearch.valueEditor.values":"Values","@astryx.powersearch.valueEditor.time":"Time","@astryx.powersearch.valueEditor.date":"Date","@astryx.powersearch.valueEditor.relativeDate":"Relative date","@astryx.powersearch.valueEditor.startDate":"Start date","@astryx.powersearch.valueEditor.endDate":"End date","@astryx.powersearch.valueEditor.entities":"Entities","@astryx.powersearch.valueEditor.searchPlaceholder":"Search…","@astryx.powersearch.valueEditor.enterValuePlaceholder":"Enter value…","@astryx.powersearch.valueEditor.addValuesPlaceholder":"Add values…","@astryx.powersearch.valueEditor.enterNumberPlaceholder":"Enter number…","@astryx.powersearch.valueEditor.selectValuesPlaceholder":"Select values…","@astryx.powersearch.operator.contains":"contains","@astryx.powersearch.operator.notContains":"does not contain","@astryx.powersearch.operator.startsWith":"starts with","@astryx.powersearch.operator.notStartsWith":"does not start with","@astryx.powersearch.operator.endsWith":"ends with","@astryx.powersearch.operator.notEndsWith":"does not end with","@astryx.powersearch.operator.is":"is","@astryx.powersearch.operator.isNot":"is not","@astryx.powersearch.operator.equals":"is","@astryx.powersearch.operator.notEquals":"is not","@astryx.powersearch.operator.greaterThan":"is greater than","@astryx.powersearch.operator.lessThan":"is less than","@astryx.powersearch.operator.greaterThanOrEqual":"is greater than or equal to","@astryx.powersearch.operator.lessThanOrEqual":"is less than or equal to","@astryx.powersearch.operator.before":"is before","@astryx.powersearch.operator.after":"is after","@astryx.powersearch.operator.between":"is between","@astryx.powersearch.operator.isTrue":"is true","@astryx.powersearch.operator.isFalse":"is false","@astryx.powersearch.operator.isAnyOf":"is any of","@astryx.powersearch.operator.isNoneOf":"is none of","@astryx.powersearch.valueEditor.itemsCount":"{count, number} {count, plural, one {item} other {items}}","@astryx.powersearch.valueEditor.entitiesCount":"{count, number} {count, plural, one {entity} other {entities}}","@astryx.powersearch.valueEditor.dateRange":"date range","@astryx.powersearch.valueEditor.filtersCount":"{count, number} {count, plural, one {filter} other {filters}}","@astryx.powersearch.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.alertDialog.cancel":"Cancel","@astryx.appShell.mobileNavigation":"Mobile navigation","@astryx.appShell.skipToContent":"Skip to content","@astryx.avatar.nameWithStatus":"{name}, {status}","@astryx.avatarGroup.label":"Avatars","@astryx.avatarGroup.keyboardHint":"Use arrow keys to move between avatars","@astryx.avatarGroup.overflow":"{count, number} more","@astryx.banner.dismiss":"Dismiss","@astryx.banner.dismissTitled":"{dismiss} {title}","@astryx.calendar.previousMonth":"Previous month","@astryx.calendar.nextMonth":"Next month","@astryx.calendar.daySelected":"{date}, selected","@astryx.calendar.dayRangeStart":"{date}, range start","@astryx.calendar.dayRangeEnd":"{date}, range end","@astryx.calendar.dayRangeStartAndEnd":"{date}, range start and range end","@astryx.calendar.dayInRange":"{date}, in range","@astryx.calendar.rangeStartAnnounce":"Start date {date}. Select an end date.","@astryx.calendar.rangeCompleteAnnounce":"Selected range: {start} to {end}.","@astryx.calendar.rangeClearedAnnounce":"Cleared start date {date}. Select a start date.","@astryx.carousel.label":"Carousel","@astryx.carousel.scrollLeft":"Scroll left","@astryx.carousel.scrollRight":"Scroll right","@astryx.carousel.slideLabel":"Slide {current, number} of {total, number}","@astryx.chart.label":"Chart","@astryx.chart.labelWithSeries":"Chart of {series} by {xKey}","@astryx.chart.dataTableCaption":"{label} data","@astryx.chartLegend.label":"Chart legend","@astryx.chat.status.sending":"Sending","@astryx.chat.status.sent":"Sent","@astryx.chat.status.delivered":"Delivered","@astryx.chat.status.read":"Read","@astryx.chat.status.failed":"Failed","@astryx.chat.messageAriaLabel":"Message {status}","@astryx.chat.pastedText.expand":"Expand","@astryx.checkboxList.item.checkbox":"Checkbox","@astryx.commandPalette.emptySearch":"No results","@astryx.commandPalette.emptyBootstrap":"Type to search","@astryx.commandPalette.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.commandPalette.noResultsFor":"No results for {query}","@astryx.commandPalette.loading":"Loading","@astryx.dateRangeInput.presetDateRanges":"Preset date ranges","@astryx.dateTimeInput.timePlaceholder":"Select a time","@astryx.dialog.close":"Close","@astryx.dropdownMenu.label":"Menu","@astryx.dropdownMenu.back":"Back","@astryx.dropdownMenu.backTo":"Back to {parent}","@astryx.lightbox.close":"Close","@astryx.lightbox.previous":"Previous","@astryx.lightbox.next":"Next","@astryx.chatTypingIndicator.one":"{name} is typing…","@astryx.chatTypingIndicator.many":"{names} are typing…","@astryx.chatTypingIndicator.others":"{count, number} {count, plural, one {other} other {others}}","@astryx.listInput.emptyTitle":"No {itemName}s yet","@astryx.listInput.emptyDescription":"Add a {itemName} to get started.","@astryx.listInput.addItem":"Add {itemName}","@astryx.listInput.removeItem":"Remove {itemName} {position, number}","@astryx.listInput.removeUnavailable":"Remove is unavailable while the list is disabled","@astryx.listInput.reorderItem":"Reorder {itemName} {position, number}","@astryx.listInput.fieldLabelWithPosition":"{header}, {itemName} {position, number} of {total, number}","@astryx.listInput.reorderInstructions":"Use Arrow Up or Arrow Down to move this item one position. Press Space or Enter to pick it up for extended keyboard reordering.","@astryx.listInput.announceAdded":"Added {itemName} {position, number}.","@astryx.listInput.announceRemoved":"Removed {itemName} {position, number}.","@astryx.listInput.announceGrabbed":"{itemName} {position, number} grabbed. Use arrow keys to move, Space or Enter to drop, and Escape to cancel.","@astryx.listInput.announceMovedToPosition":"{itemName} moved to position {position, number} of {total, number}.","@astryx.listInput.announceReorderCancelled":"Reordering cancelled.","@astryx.listInput.announceReturnedToPosition":"{itemName} returned to position {position, number}.","@astryx.listInput.announceDropped":"{itemName} dropped at position {position, number} of {total, number}.","@astryx.listInput.announceAlreadyAtBoundary":"This {itemName} is already {boundary, select, first {first} last {last} other {}}.","@astryx.markdownHeadingLinks.copied":"Link copied","@astryx.markdownHeadingLinks.copy":"Copy link to {heading}","@astryx.richTextEditor.tabEscapeHint":"Press Escape then Tab to move focus out of the editor.","@astryx.richTextEditor.toolbar.label":"Text formatting","@astryx.richTextEditor.toolbar.actions":"Formatting actions","@astryx.richTextEditor.toolbar.undo":"Undo","@astryx.richTextEditor.toolbar.redo":"Redo","@astryx.richTextEditor.toolbar.historyDivider":"History and block formats","@astryx.richTextEditor.toolbar.blockFormat":"Block format","@astryx.richTextEditor.toolbar.formatDivider":"Block and inline formats","@astryx.richTextEditor.toolbar.paragraph":"Paragraph","@astryx.richTextEditor.toolbar.heading1":"Heading 1","@astryx.richTextEditor.toolbar.heading2":"Heading 2","@astryx.richTextEditor.toolbar.heading3":"Heading 3","@astryx.richTextEditor.toolbar.bulletedList":"Bulleted list","@astryx.richTextEditor.toolbar.numberedList":"Numbered list","@astryx.richTextEditor.toolbar.blockQuote":"Block quote","@astryx.richTextEditor.toolbar.bold":"Bold","@astryx.richTextEditor.toolbar.italic":"Italic","@astryx.richTextEditor.toolbar.underline":"Underline","@astryx.richTextEditor.toolbar.strikethrough":"Strikethrough","@astryx.richTextEditor.toolbar.inlineCode":"Inline code","@astryx.richTextEditor.toolbar.link":"Link","@astryx.richTextEditor.link.insertTitle":"Insert link","@astryx.richTextEditor.link.editTitle":"Edit link","@astryx.richTextEditor.link.url":"URL","@astryx.richTextEditor.link.invalidUrl":"Enter a valid http, https, mailto, or tel URL.","@astryx.richTextEditor.link.remove":"Remove link","@astryx.richTextEditor.link.cancel":"Cancel","@astryx.richTextEditor.link.add":"Add link","@astryx.richTextEditor.link.update":"Update link","@astryx.markdown.taskList":"Task list","@astryx.markdown.table":"Table","@astryx.mobileNav.closeNavigation":"Close navigation","@astryx.multiSelector.selectAll":"Select all","@astryx.multiSelector.searchPlaceholder":"Search…","@astryx.multiSelector.searchOptions":"Search options","@astryx.multiSelector.empty":"No options","@astryx.multiSelector.selectAllPartiallySelected":"{label}, partially selected","@astryx.popover.close":"Close popover","@astryx.selector.searchPlaceholder":"Search…","@astryx.selector.searchOptions":"Search options","@astryx.selector.empty":"No options","@astryx.sideNav.label":"Side navigation","@astryx.sideNav.resizeSidebar":"Resize sidebar","@astryx.sideNav.heading.openMenu":"Open menu","@astryx.tabList.label":"Tabs","@astryx.table.label":"Table","@astryx.table.noData":"No data","@astryx.table.filter.allPlaceholder":"All","@astryx.table.filter.reset":"Reset","@astryx.table.filter.apply":"Apply","@astryx.table.rowStatus.columnHeader":"Row status","@astryx.table.selection.bulkActionsLabel":"Bulk actions","@astryx.table.selection.clearAll":"Unselect All","@astryx.table.selection.selectedCount":"{count, number} selected","@astryx.table.selection.selectAllRows":"Select all rows","@astryx.table.selection.selectRow":"Select row","@astryx.table.selection.selectRowNamed":"Select {label}","@astryx.table.sort.ascending":"Sort ascending","@astryx.table.sort.descending":"Sort descending","@astryx.table.sort.clear":"Clear sort","@astryx.table.sort.direction.ascending":"ascending","@astryx.table.sort.direction.descending":"descending","@astryx.table.sort.sortBy":"Sort by {label}","@astryx.table.sort.sortedBy":"Sort by {label}, sorted {direction}","@astryx.table.sort.sortedByWithPriority":"Sort by {label}, sorted {direction}, priority {rank, number} of {total, number}","@astryx.toast.dismiss":"Dismiss notification","@astryx.toast.viewport":"Notifications","@astryx.tokenizer.clearAll":"Clear all","@astryx.topNav.heading.openMenu":"Open menu","@astryx.topNav.landmarkLabel":"Top navigation","@astryx.treeList.toggleChildren":"Toggle children","@astryx.typeahead.emptySearchResults":"No results found","@astryx.typeahead.loading":"Loading","@astryx.typeahead.searchResults":"Search results","@astryx.typeahead.clearSelection":"Clear selection","@astryx.breadcrumbs.label":"Breadcrumb","@astryx.chat.composer.placeholder":"Type a message…","@astryx.chat.composerDrawer.label":"Items","@astryx.chat.composerInput.label":"Message input","@astryx.chat.speechRecognition.noSpeechDetected":"No speech was detected.","@astryx.commandPalette.label":"Command palette","@astryx.commandPalette.input.placeholder":"Search…","@astryx.commandPalette.list.label":"Commands","@astryx.contextMenu.label":"Context menu","@astryx.dateInput.placeholder":"Select a date","@astryx.dateInput.dialogLabel":"Choose date","@astryx.dateInput.closeCalendar":"Close calendar","@astryx.dateInput.openCalendar":"Open calendar","@astryx.dateInput.toggleCalendarClose":"Close calendar","@astryx.dateInput.clear":"Clear {label}","@astryx.dateInput.invalidDate":"Invalid date","@astryx.dateInput.resetPicking":"Reset","@astryx.dateInput.savePicking":"Save","@astryx.dateInput.doneChoosingMonth":"Done","@astryx.dateInput.chooseMonthYear":"{monthYear}, Choose month and year","@astryx.dateInput.monthWheel":"Month","@astryx.dateInput.yearWheel":"Year","@astryx.dateTimeInput.timeHint12h":"e.g., 2:30 PM","@astryx.dateTimeInput.timeHint24h":"e.g., 14:30","@astryx.dateTimeInput.timeSuffix":"{label} time","@astryx.dateTimeInput.timeOptionsLabel":"{label} options","@astryx.dateRangeInput.placeholder":"Select date range","@astryx.dateRangeInput.dialogLabel":"Choose date range","@astryx.dateTimeInput.placeholder":"Select a date","@astryx.dateTimeInput.dialogLabel":"Choose date and time","@astryx.dateTimeInput.pickerMode":"Date/time section","@astryx.dateTimeInput.dateTab":"Date","@astryx.dateTimeInput.timeTab":"Time","@astryx.dateTimeInput.openTimePicker":"Open {label}","@astryx.dateTimeInput.saveDatePicking":"Save date","@astryx.dateTimeInput.hourWheel":"Hour","@astryx.dateTimeInput.minuteWheel":"Minute","@astryx.dateTimeInput.secondWheel":"Second","@astryx.dateTimeInput.meridiemWheel":"AM/PM","@astryx.dateTimeInput.meridiemAM":"AM","@astryx.dateTimeInput.meridiemPM":"PM","@astryx.link.newTab":"(opens in new tab)","@astryx.mobileNav.toggle.open":"Open navigation","@astryx.moreMenu.label":"More options","@astryx.multiSelector.selectPlaceholder":"Select…","@astryx.outline.label":"Table of contents","@astryx.powersearch.label":"Search","@astryx.powersearch.placeholder":"Search…","@astryx.resizable.collapsed":"Collapsed","@astryx.resizable.handle.label":"Resize handle","@astryx.selector.placeholder":"Select…","@astryx.sideNav.heading.dialogLabel":"Navigation menu","@astryx.table.pagination.label":"Table pagination","@astryx.table.pagination.labelAbove":"{label} (top)","@astryx.table.pagination.labelBelow":"{label} (bottom)","@astryx.timeInput.placeholder":"Select a time","@astryx.timeInput.invalidTime":"Invalid time","@astryx.timeInput.openPicker":"Open {label}","@astryx.topNav.heading.dialogLabel":"Navigation menu","@astryx.typeahead.searchPlaceholder":"Search…","@astryx.banner.collapse":"Collapse","@astryx.banner.expand":"Expand","@astryx.button.loading":"Loading","@astryx.spinner.loading":"Loading","@astryx.chatComposerDrawer.expand":"Expand {label}","@astryx.chatComposerDrawer.collapse":"Collapse {label}","@astryx.chatDictationButton.startDictation":"Start dictation","@astryx.chatDictationButton.stopDictation":"Stop dictation","@astryx.chatLayout.newMessages":"New messages","@astryx.chatLayoutScrollButton.scrollToBottom":"Scroll to bottom","@astryx.chatMessage.messageFrom":"Message from {sender}","@astryx.chatSendButton.stop":"Stop","@astryx.chatSendButton.send":"Send","@astryx.chatToolCalls.error":"Error: {message}","@astryx.chatToolCalls.status.pending":"Pending","@astryx.chatToolCalls.status.running":"Running","@astryx.chatToolCalls.status.complete":"Complete","@astryx.chatToolCalls.status.error":"Failed","@astryx.chatToolCalls.groupLabel":"{count} tool calls","@astryx.chatTriggerMenu.suggestions":"Suggestions","@astryx.citation.label":"Citation {number}: {title}","@astryx.codeBlock.copied":"Copied","@astryx.codeBlock.copyCode":"Copy code","@astryx.codeBlock.code":"Code","@astryx.field.optional":"Optional","@astryx.field.required":"Required","@astryx.fileInput.clearLabel":"Clear {label}","@astryx.fileInput.dropHint":"Drop files here","@astryx.fileInput.errorInvalidType":'"{fileName}" is not an accepted file type',"@astryx.fileInput.errorMaxFiles":"Maximum {maxFiles} files allowed","@astryx.fileInput.errorMaxSize":'"{fileName}" exceeds {maxSize} limit',"@astryx.fileInput.fileSelected":"1 file selected: {fileName}","@astryx.fileInput.filesSelected":"{count} files selected","@astryx.fileInput.placeholder":"Choose file","@astryx.fileInput.placeholderMultiple":"Choose files","@astryx.fileInput.required":"Required","@astryx.fileInput.triggerWithFiles":"{label}, {fileNames}","@astryx.keyboardHint.toNavigate":"to navigate","@astryx.lightbox.mediaViewer":"Media viewer","@astryx.lightbox.zoom":"Zoom","@astryx.lightbox.zoomedIn":"Zoomed in, use arrow keys to pan","@astryx.lightbox.zoomedOut":"Zoomed out","@astryx.metadataList.showMore":"Show more","@astryx.metadataList.showLess":"Show less","@astryx.mobileNav.navigation":"Navigation","@astryx.multiSelector.clearAll":"Clear all {label}","@astryx.input.readOnly":"Read only","@astryx.input.statusButton.error":"Error details","@astryx.input.statusButton.warning":"Warning details","@astryx.input.statusButton.success":"Success details","@astryx.numberInput.clearLabel":"Clear {label}","@astryx.numberInput.decrementLabel":"Decrement {label}","@astryx.numberInput.incrementLabel":"Increment {label}","@astryx.selector.clearLabel":"Clear {label}","@astryx.sideNavCollapseButton.expandSidebar":"Expand sidebar","@astryx.sideNavCollapseButton.collapseSidebar":"Collapse sidebar","@astryx.sideNavItem.expand":"Expand {label}","@astryx.sideNavItem.collapse":"Collapse {label}","@astryx.sideNavItem.submenuLabel":"{label} submenu","@astryx.tableFiltering.filterByColumn":"Filter {header}","@astryx.tableGroupedRows.expandGroup":"Expand group {groupKey}","@astryx.tableGroupedRows.collapseGroup":"Collapse group {groupKey}","@astryx.tableRowExpansion.collapseRow":"Collapse row","@astryx.tableRowExpansion.expandRow":"Expand row","@astryx.tableRowExpansion.columnHeader":"Row expansion","@astryx.tableRowExpansion.collapseAllRows":"Collapse all rows","@astryx.tableRowExpansion.expandAllRows":"Expand all rows","@astryx.stepper.label":"Progress","@astryx.stepper.previousStep":"Previous step","@astryx.stepper.nextStep":"Next step","@astryx.step.goToStep":"Go to step {stepNumber, number}: {label}","@astryx.step.goToStepWithStatus":"Go to step {stepNumber, number}: {label}, {status}","@astryx.step.optional":"Optional","@astryx.step.status.completed":"completed","@astryx.step.status.warning":"warning","@astryx.step.status.error":"error","@astryx.switch.loading":"Loading","@astryx.tableTree.collapseRow":"Collapse row","@astryx.tableTree.expandRow":"Expand row","@astryx.tableTree.collapseAllRows":"Collapse all rows","@astryx.tableTree.expandAllRows":"Expand all rows","@astryx.textArea.charactersRemaining":"{count, number} {count, plural, one {character} other {characters}} remaining","@astryx.textArea.charactersOverLimit":"{count, number} {count, plural, one {character} other {characters}} over the limit","@astryx.textInput.clearLabel":"Clear {label}","@astryx.thumbnail.remove":"Remove {accessibleName}","@astryx.thumbnail.open":"Open {accessibleName}","@astryx.thumbnail.fallbackName":"Thumbnail","@astryx.timeInput.clearLabel":"Clear {label}","@astryx.timestamp.copyValue":"Copy {value}","@astryx.timestamp.copy":"Copy","@astryx.timestamp.copied":"Copied","@astryx.timestamp.detailsLabel":"Timestamp details","@astryx.token.remove":"Remove {label}","@astryx.commandPalette.footer.navigate":"Navigate","@astryx.commandPalette.footer.select":"Select","@astryx.commandPalette.footer.close":"Close","@astryx.multiSelector.selectionCleared":"Selection cleared","@astryx.multiSelector.allSelected":"All selected","@astryx.multiSelector.selectionCount":"{count, number} of {total, number} selected","@astryx.multiSelector.createOption":'Create "{query}"',"@astryx.multiSelector.optionCreated":"{label} created","@astryx.multiSelector.emptySearchResults":"No results found","@astryx.multiSelector.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.selector.emptySearchResults":"No results found","@astryx.selector.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.typeahead.resultCount":"{count, number} {count, plural, one {result} other {results}}","@astryx.tokenizer.tokenAdded":"Added {label}","@astryx.tokenizer.tokenRemoved":"Removed {label}","@astryx.lightbox.imagePosition":"Image {index, number} of {total, number}","@astryx.lightbox.mediaPosition":"{alt}, {index, number} of {total, number}","@astryx.transferList.selectedLabel":"Selected","@astryx.transferList.availableLabel":"Available","@astryx.transferList.ungroupedLabel":"Other","@astryx.transferList.searchPlaceholder":"Search…","@astryx.transferList.searchLabel":"Search {label}","@astryx.transferList.selectedEmpty":"No selected options","@astryx.transferList.availableEmpty":"No available options","@astryx.transferList.noResults":"No results","@astryx.transferList.clear":"Clear","@astryx.transferList.addAll":"Add all","@astryx.transferList.addOption":"Add {label}","@astryx.transferList.removeOption":"Remove {label}","@astryx.transferList.reorderOption":"Reorder {label}","@astryx.transferList.transferDisabled":"{label} cannot be moved","@astryx.transferList.reorderDisabled":"{label} cannot be reordered","@astryx.transferList.reorderInstructions":"Press Space or Enter to pick up an item. Use Arrow Up, Arrow Down, Home, or End to move it. Press Space or Enter to drop, or Escape to cancel.","@astryx.transferList.announceAdded":"{label} added. {count, number} {count, plural, one {item} other {items}} selected.","@astryx.transferList.announceRemoved":"{label} removed. {count, number} {count, plural, one {item} other {items}} selected.","@astryx.transferList.announceBulkAdded":"{count, number} {count, plural, one {item} other {items}} added.","@astryx.transferList.announceBulkRemoved":"{count, number} {count, plural, one {item} other {items}} removed.","@astryx.transferList.announceGrabbed":"{label} picked up, position {position, number} of {total, number}. Use arrow keys to move, Space or Enter to drop, or Escape to cancel.","@astryx.transferList.announceMoveCancelled":"{label} move cancelled.","@astryx.transferList.announceDropped":"{label} dropped at position {position, number} of {total, number}.","@astryx.transferList.announceReturned":"{label} returned to position {position, number}.","@astryx.transferList.announceMovedToPosition":"{label}, position {position, number} of {total, number}.","@astryx.transferList.announceSearchResults":"{count, number} {count, plural, one {item} other {items}} found.","@astryx.transferListSelector.apply":"Apply","@astryx.transferListSelector.cancel":"Cancel","@astryx.transferListSelector.triggerLabel":"{count, number} selected"},rS=new Map;function jN(e,t){const a=`${t}::${e}`;let s=rS.get(a);return s===void 0&&(s=new CN(e,t),rS.set(a,s)),s}function TN(e){let t;try{t=new Intl.Locale(e).baseName}catch{t=e}const a=t.split("-"),s=[];for(let i=a.length;i>0;i--)s.push(a.slice(0,i).join("-"));return s}function RN(e,t,a){const s={},i=TN(e);if(a!==void 0){for(const c of i)if(a[c])for(const[u,d]of Object.entries(a[c]))s[u]===void 0&&d!==null&&(s[u]=d)}for(const c of i)if(t[c])for(const[u,d]of Object.entries(t[c])){const f=typeof d=="string"?d:d?.defaultMessage;s[u]===void 0&&f!=null&&(s[u]=f)}return s}function d4(e,t,a){const s=RN(e,t,a);return(i,c)=>{const u=s[i]??$N[i];return u===void 0?(Ux(),i):c===void 0?u:jN(u,e).format(c)}}const Xx=x.createContext({locale:"en",direction:"ltr",messages:{},translate:d4("en",{})});Xx.displayName="InternationalizationContext";function AN(e){try{const t=new Intl.Locale(e);return(typeof t.getTextInfo=="function"?t.getTextInfo():t.textInfo)?.direction==="rtl"?"rtl":"ltr"}catch{return"ltr"}}function MN(e){return Object.values(e).some(a=>Object.values(a).some(s=>typeof s=="string"))?Object.fromEntries(Object.entries(e).map(([a,s])=>[a,Object.fromEntries(Object.entries(s).map(([i,c])=>[i,typeof c=="string"?{defaultMessage:c}:c]))])):e}function f4({locale:e,messages:t,overrides:a,dir:s,children:i}){const c=s??AN(e),u=x.useMemo(()=>{const d=t??{};return{locale:e,direction:c,messages:MN(d),overrides:a,translate:d4(e,d,a)}},[e,c,t,a]);return p.jsx(Xx,{value:u,children:i})}f4.displayName="InternationalizationProvider";function pn(){return x.use(Xx).translate}function zN(){return x.use(Xx).locale}const NN=.375,LN={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},DN="--_spinner-ring-diameter",ON="--_spinner-ring-stroke",IN=[DN,ON],aS="--_spinner-box-size";function _N(){if(!(typeof CSS>"u"||typeof CSS.registerProperty!="function"))for(const e of IN)try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!0,initialValue:"0px"})}catch{}}_N();const fx=new Set;let lb=!1;function PN(){lb=!1;const e=[];for(const t of fx)e.push(...t.getAnimations({subtree:!0}));fx.clear();for(const t of e)t.startTime=0}function BN(e){if(e!=null&&typeof e.getAnimations=="function")return fx.add(e),lb||(lb=!0,requestAnimationFrame(PN)),()=>{fx.delete(e)}}const hp={wrapper:{k1xSpc:"x3nfvp2",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",$$css:!0},spinner:{k1xSpc:"xwz0xwf",kgQiWS:"x1ku5rj1",kXLuUW:"xxymvpz","--_spinner-ring-diameter":"x2lq4xu","--_spinner-ring-stroke":"x10qssua","--_spinner-box-size":"x69vvuq",kmuXW:"x2lah0s",$$css:!0},circle:{kDwRjp:"xbh8q5q",kR8GR0:"x1764fhq",k3nNDw:"x1g0ag68",kU5bRw:"x1owpc8m",kPFa82:"xio8zfp",kfJifR:"xgw3ha0",$$css:!0},track:{kjVXCG:"xalkhop",$$css:!0}},sS={sm:{"--spinner-diameter":"x11wm0hx","--spinner-stroke-width":"xls98ul","--spinner-arc-fraction":"x7o5821",$$css:!0},md:{"--spinner-diameter":"x15pu9g6","--spinner-stroke-width":"xr0wkrm","--spinner-arc-fraction":"x7o5821",$$css:!0},lg:{"--spinner-diameter":"x1w424tr","--spinner-stroke-width":"xr0wkrm","--spinner-arc-fraction":"x7o5821",$$css:!0},xl:{"--spinner-diameter":"x1orj1z9","--spinner-stroke-width":"x7y2bof","--spinner-arc-fraction":"x7o5821",$$css:!0}},oS={default:{"--spinner-color":"xt1b8mc","--spinner-track-color":"xspt9s2",$$css:!0},subtle:{"--spinner-color":"x1jevo6s","--spinner-track-color":"xspt9s2",$$css:!0},onMedia:{"--spinner-color":"x13u6jys","--spinner-track-color":"x1ufpcf6",$$css:!0},inherit:{"--spinner-color":"x1uzk0gl","--spinner-track-color":"xbfzqbu",$$css:!0}},FN={default:{kDd8S0:"x1g350g8",$$css:!0},subtle:{kDd8S0:"x1g350g8",$$css:!0},onMedia:{kDd8S0:"x1smxkh6",$$css:!0},inherit:{kDd8S0:"x7bo2k",$$css:!0}};function Fo({size:e="md",shade:t="default",label:a,xstyle:s,className:i,style:c,"aria-label":u,"data-testid":d,ref:f,...g}){const{border:y,diameter:b}=LN[e],k=b+y*2,C=Math.PI*b,w=C*NN,v=a!=null,S=x.useId(),T=pn(),E=v&&typeof a=="string"&&u==null,j=u??(typeof a=="string"?a:void 0)??T("@astryx.spinner.loading"),$=p.jsx("span",{ref:v?void 0:f,role:"status","aria-label":E?void 0:j,"aria-labelledby":E?S:void 0,"data-testid":v?void 0:d,...v?{}:g,...Te(v?"":Ee("spinner",{size:e,shade:t}),Se(hp.spinner,!v&&sS[e],!v&&oS[t],!v&&s),v?void 0:i,{...v?{}:c,width:`var(${aS}, ${k}px)`,height:`var(${aS}, ${k}px)`}),children:p.jsxs("svg",{ref:BN,width:k,height:k,"aria-hidden":"true",className:"xlp1x4z x1lliihq x6v0vjy x7yyq19 x1rea2x4",children:[p.jsx("circle",{cx:"50%",cy:"50%",r:b/2,strokeWidth:y,...Se(hp.circle,hp.track,FN[t])}),p.jsx("circle",{cx:"50%",cy:"50%",r:b/2,strokeWidth:y,strokeDasharray:`${w} ${C-w}`,className:"xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 x14qxm4i xnh0sag xa4qsjk x1nlxm0d x1esw782 xtve3lm x9tu13d xdv9ggb"})]})});return v?p.jsxs("div",{ref:f,"data-testid":d,...g,...Te(Ee("spinner",{size:e,shade:t}),Se(hp.wrapper,sS[e],oS[t],s),i,c),children:[$,typeof a=="string"?p.jsx(tt,{id:S,type:"body",weight:"bold",children:a}):a]}):$}Fo.displayName="Spinner";function lo({children:e,as:t="span",ref:a,...s}){return x.createElement(t,{ref:a,...s,className:"x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o"},e)}lo.displayName="VisuallyHidden";const p1=Ra(null);p1.displayName="IconDefaultSizeContext";const qN=p1.Provider;function HN(e){const t=x.use(p1);return e??t??"md"}const UN={xsm:{kzqmXN:"x1jw3ynk",kZKoxP:"xvle69y",$$css:!0},sm:{kzqmXN:"xcdlrvm",kZKoxP:"x1l36t39",$$css:!0},md:{kzqmXN:"xwqq7k2",kZKoxP:"xmll18r",$$css:!0},lg:{kzqmXN:"xp8d6y2",kZKoxP:"xam5rvr",$$css:!0}},h4={xsm:{kzqmXN:"x1jw3ynk",kZKoxP:"xvle69y",kGuDYH:"xboafo0",$$css:!0},sm:{kzqmXN:"xcdlrvm",kZKoxP:"x1l36t39",kGuDYH:"x1jchvi3",$$css:!0},md:{kzqmXN:"xwqq7k2",kZKoxP:"xmll18r",kGuDYH:"x1603h9y",$$css:!0},lg:{kzqmXN:"xp8d6y2",kZKoxP:"xam5rvr",kGuDYH:"xngnso2",$$css:!0}},VN="data-astryx-edge-comp",GN={keTefX:"x1kftj4p",k71WvV:"x92e2el",$$css:!0},KN={inset:e=>[GN,{"--x-126w13d":(t=>typeof t=="number"?t+"px":t??void 0)(`calc(-1 * ${e})`),"--x-4drmnv":(t=>typeof t=="number"?t+"px":t??void 0)(`calc(-1 * ${e})`)}]},x1=Ra(null);x1.displayName="SizeContext";function Cu(e,t="md"){const a=x.use(x1);return e??a??t}const Qc=x1.Provider,p4=Ra(null);p4.displayName="ButtonGroupContext";function WN(){return x.use(p4)}const x4=x.createContext(null);x4.displayName="LinkContext";function m4(e){return e.replace(/[\x00-\x1f\x7f]/g,"").trim()}function YN(e){return e.toLowerCase().replace(/^([a-z][a-z\d+.-]*:) +/,"$1")}function XN(e){const t=m4(e),a=YN(t);return a.startsWith("javascript:")||a.startsWith("vbscript:")||a.startsWith("data:text/html")?null:t}function vl(e){return XN(e)!==null}function iS(e){if(e==null)return!0;if(typeof e=="string")return vl(e);if(typeof e!="object")return!1;const{pathname:t,href:a,protocol:s,host:i,hostname:c}=e;for(const u of[t,a,s,i,c])if(u!=null&&typeof u!="string")return!1;if(typeof t=="string"&&!vl(t)||typeof a=="string"&&!vl(a))return!1;if(typeof s=="string"&&s!==""){const u=m4(s),d=u.endsWith(":")?u:`${u}:`;if(!vl(d)||!vl(`${d}${i||c||""}${typeof t=="string"?t:""}`))return!1}return!0}function ZN(e){function t({href:a,to:s,ref:i,...c}){return!iS(a)||!iS(s)?x.createElement("a",{ref:i,...c}):e==="a"?x.createElement("a",{ref:i,...c,href:a}):x.createElement(e,{ref:i,...c,href:a,to:s??a})}return t.displayName=`SafeLink(${typeof e=="string"?e:e.displayName||e.name||"Component"})`,t}function $u(e){const t=x.use(x4),a=e??t?.component??"a";return x.useMemo(()=>ZN(a),[a])}const QN=150,JN=10,eL=100,tL=v9.releaseMs,nL=150,Gp={originX:0,originY:0,phase:"idle"};function lS(e,t,a){return Math.hypot(t-e.originX,a-e.originY)>JN}function pl(e,t,a,s){return{gesture:{...e,phase:t},paint:a,timer:s}}function wf(e,t){if(t.kind==="down")return{gesture:{originX:t.x,originY:t.y,phase:"armed"},paint:"none",timer:"onset"};switch(e.phase){case"armed":return t.kind==="move"?lS(e,t.x,t.y)?pl(e,"dead","none",null):{gesture:e,paint:"none",timer:null}:t.kind==="cancel"?pl(e,"dead","none",null):t.kind==="onset"?pl(e,"pressed","on",null):t.kind==="up"?pl(e,"flash","on","flash"):{gesture:e,paint:"none",timer:null};case"pressed":return t.kind==="move"&&!lS(e,t.x,t.y)?{gesture:e,paint:"on",timer:null}:t.kind==="move"||t.kind==="cancel"?pl(e,"dead","none",null):t.kind==="up"?pl(e,"fading","fading","fade"):{gesture:e,paint:"on",timer:null};case"flash":return t.kind==="flashEnd"?pl(e,"fading","fading","fade"):{gesture:e,paint:"on",timer:null};case"fading":return t.kind==="fadeEnd"?{gesture:Gp,paint:"none",timer:null}:{gesture:e,paint:"fading",timer:null};case"dead":return t.kind==="up"?{gesture:Gp,paint:"none",timer:null}:{gesture:e,paint:"none",timer:null};case"idle":return{gesture:Gp,paint:"none",timer:null}}}function g4(){return Gp}const y4="data-astryx-pressable",cb="data-astryx-press",rL={[y4]:""},aL=3e3,sL=':disabled, [aria-disabled="true"]';let Jt=null,pp=0,m1=0,hx=null,Zx=0,rf=null;const oL={fade:tL,flash:eL,onset:QN},iL={fade:"fadeEnd",flash:"flashEnd",onset:"onset"};function lL(e,t){if(t==="none"){e.removeAttribute(cb);return}e.setAttribute(cb,t)}function g1(){Jt?.timer!=null&&(clearTimeout(Jt.timer),Jt.timer=null)}function Sf(e){if(Jt==null)return;const t=e.gesture.phase!==Jt.gesture.phase;if((e.timer!=null||t)&&g1(),Jt.gesture=e.gesture,lL(Jt.element,e.paint),e.gesture.phase==="idle"){Jt=null;return}if(e.timer!=null){const a=e.timer;Jt.timer=setTimeout(()=>{Jt!=null&&(Jt.timer=null),Sf(wf(Jt?.gesture??g4(),{kind:iL[a]}))},oL[a])}}function cL(e){if(!(e instanceof Element))return null;const t=e.closest(`[${y4}]`);return!(t instanceof HTMLElement)||t.matches(sL)?null:t}function uL(e){return Date.now()-m1>=nL?!1:hx instanceof Node&&hx.contains(e)}function b4(){Jt?.gesture.phase==="dead"&&(g1(),Jt=null)}function px(){Jt!=null&&(g1(),Jt.element.removeAttribute(cb),Jt=null)}function v4(e){if(e.pointerType==="mouse")return;if(Jt!=null){if(!(Jt.gesture.phase==="fading"||Jt.gesture.phase==="flash")){px();return}px()}const t=cL(e.target),a=t!=null&&uL(t);Zx=Date.now(),rf=e.target instanceof Node?e.target:null,!(t==null||a)&&(Jt={element:t,gesture:g4(),pointerId:e.pointerId,timer:null},Sf(wf(Jt.gesture,{kind:"down",x:e.clientX,y:e.clientY})))}function k4(e){Jt==null||Jt.pointerId!=null&&e.pointerId!==Jt.pointerId||Sf(wf(Jt.gesture,{kind:"move",x:e.clientX,y:e.clientY}))}function w4(e){e.pointerType!=="mouse"&&(Zx=Date.now(),e.target instanceof Node&&(rf=e.target),!(Jt==null||Jt.pointerId!=null&&e.pointerId!==Jt.pointerId)&&(Sf(wf(Jt.gesture,{kind:"up"})),b4()))}function jl(){Jt!=null&&(Sf(wf(Jt.gesture,{kind:"cancel"})),b4())}function S4(e){const t=e.target instanceof Node?e.target:document;Date.now()-Zx<aL&&rf!=null&&t.contains(rf)&&(m1=Date.now(),hx=t),!(Jt==null||!(t===document||t.contains(Jt.element)))&&jl()}function E4(){document.visibilityState==="hidden"&&px()}const Ca={capture:!0,passive:!0};function dL(){window.addEventListener("pointerdown",v4,Ca),window.addEventListener("pointermove",k4,Ca),window.addEventListener("pointerup",w4,Ca),window.addEventListener("pointercancel",jl,Ca),window.addEventListener("touchcancel",jl,Ca),window.addEventListener("dragstart",jl,Ca),document.addEventListener("scroll",S4,Ca),document.addEventListener("visibilitychange",E4)}function fL(){window.removeEventListener("pointerdown",v4,Ca),window.removeEventListener("pointermove",k4,Ca),window.removeEventListener("pointerup",w4,Ca),window.removeEventListener("pointercancel",jl,Ca),window.removeEventListener("touchcancel",jl,Ca),window.removeEventListener("dragstart",jl,Ca),document.removeEventListener("scroll",S4,Ca),document.removeEventListener("visibilitychange",E4)}function hL(){if(typeof window>"u")return()=>{};pp===0&&dL(),pp+=1;let e=!1;return()=>{e||(e=!0,pp-=1,!(pp>0)&&(fL(),px(),m1=0,hx=null,Zx=0,rf=null))}}function Ka(){return x.useEffect(()=>hL(),[]),rL}const Ao={base:{"--button-focus-offset":"x16bblx1",kInvED:"x1wfwxd8 x13aywxo",kVAEAm:"x1n2onr6",k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kOIVth:"x1txdalj",k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kMzoRj:"xc342km",ksu8eU:"xng3xce",kaIpWk:"x1jxw6zd",kMv6JI:"xjb2p0i",kGuDYH:"xcr08ib",kLWn49:"x1kq96og",k63SB2:"x1e4wzip",khDVqt:"xuxw1ft",k7Eaqz:"xeuugli",ks0D6T:"x193iq5w",kkrTdU:"x1ypdohk x16khyan",k1ekBW:"xrafxwg",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},pressable:{k3aq6I:"x3oybdh x8ppqj xom6oz5 x3y5scg",$$css:!0},inactive:{kkrTdU:"xt0e3qv",kKwaWg:"x18o3ruo",k3aq6I:"x1c071of x1pdlv7q x1ylxtyb",$$css:!0},disabled:{kSiTet:"xbyyjgo",$$css:!0},ariaDisabled:{kKwaWg:"x18o3ruo xuqm82a x1bev2v5",$$css:!0},iconOnly:{"--button-icon-only-aspect":"x1v15ycx",kOBAk4:"xioom0i",kg3NbH:"xnjsko4",k8WAf4:"xt970qd",kmuXW:"x2lah0s",ks0D6T:"x1x1rfll",$$css:!0},iconWrapper:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0},contentWrapper:{k1xSpc:"xjp7ctv",$$css:!0},link:{kybGjl:"x1hl2dhg",$$css:!0}},pL={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},xL={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}},mL={none:{kGVxlE:"x1gnnqk1",$$css:!0},low:{kGVxlE:"x1i5ehqx",$$css:!0},med:{kGVxlE:"x14hfi27",$$css:!0},high:{kGVxlE:"x1kcpxr7",$$css:!0}},gL={primary:{kWkggS:"x1ewilqj",kMwMTN:"x17wrial",$$css:!0},secondary:{kWkggS:"x17x4s8c",kMwMTN:"x1tgivj0",$$css:!0},ghost:{kWkggS:"xjbqb8w",kMwMTN:"x1tgivj0",$$css:!0},destructive:{kWkggS:"x1pjz0fi",kMwMTN:"x1m024r3",kjBf7l:"x1e0x2sz",$$css:!0}},yL={sm:"sm",md:"sm",lg:"md"},cS={hiddenContent:{kMwMTN:"x19co3pv",$$css:!0},hiddenContentDelayed:{kKVMdj:"x1ffowhz",k44tkh:"xjlvqhv",kWV6AL:"x10e4vud",kKxzle:"x17yabm6 x14q22ui",$$css:!0}},xp={horizontal:{krdFHd:"x15mokao x8eehn2",kVL7Gh:"xbiv7yw x1xrp5p4",kfmiAY:"x1ga7v0g x149bkfe",kT0f0o:"x16uus16 x1ursds5",k2ei4v:"xgbv0en x1pjv70x",kVhnKS:"x1t7ytsu xyf0ibl",kGJrpR:"x1j92z86",$$css:!0},vertical:{krdFHd:"x15mokao x8eehn2",kfmiAY:"x1ga7v0g x2qxyot",kVL7Gh:"xbiv7yw xy2bsav",kT0f0o:"x16uus16 x1ursds5",kEafiO:"x11xkdxz x1g31smg",kPef9Z:"x13fuv20 x1d9v4yf",kLZC3w:"x1pc3f07",$$css:!0},onSolidHorizontal:{kGJrpR:"xrvmtm5",$$css:!0},onSolidVertical:{kLZC3w:"x11npmm7",$$css:!0}};function Bt({label:e,variant:t="secondary",size:a,type:s="button",isDisabled:i=!1,isLoading:c=!1,isInterruptible:u=!1,clickAction:d,icon:f,isIconOnly:g=!1,width:y,elevation:b="none",children:k,endContent:C,tooltip:w,href:v,as:S,target:T,rel:E,xstyle:j,className:$,style:z,ref:L,...I}){const N=Ka(),D=pn(),P=Cu(a,"md"),K=WN(),[oe,V]=x.useTransition(),H=x.useRef(!1),Z=c||oe,F=oe||u,q=K?.isDisabled??!1,Q=i||q||Z&&!u,ae=i||q,J=$u(S),se=v!=null&&!Q,te=w!=null&&Q,fe=Os({placement:"above",isEnabled:w!=null}),B=Ie=>{if(Q||H.current&&!u){Ie.preventDefault();return}I.onClick?.(Ie),d&&!Ie.defaultPrevented&&(H.current=!0,V(async()=>{try{await d(Ie)}finally{H.current=!1}}))},ee=te?Ie=>{Ie.key==="Enter"||Ie.key===" "?Ie.preventDefault():I.onKeyDown?.(Ie)}:void 0,pe=t==="ghost"?{[VN]:""}:null,ve=Xn.focusVisible(Ao.base,xL[P],g&&Ao.iconOnly,Nr.backgroundImage,Q&&Ao.inactive,ae&&Ao.disabled,te&&Ao.ariaDisabled,se&&Ao.link,!K&&Ao.pressable,K&&(K.orientation==="horizontal"?xp.horizontal:xp.vertical),K&&(t==="primary"||t==="destructive")&&(K.orientation==="horizontal"?xp.onSolidHorizontal:xp.onSolidVertical),!K&&mL[b],y!=null&&pL.width(y),gL[t],j),ye=Te(Ee("button",{variant:t,size:P,elevation:K?"none":b}),ve,$,z),Oe=yL[P],ie=p.jsxs(p.Fragment,{children:[Z&&p.jsx("span",{...{0:{className:"x10l6tqk x13vifvy x1o0tod xtijo5x x1ey2m1c xrvj5dj x1ku5rj1"},1:{className:"x10l6tqk x13vifvy x1o0tod xtijo5x x1ey2m1c xrvj5dj x1ku5rj1 xqcmdr3 xb2rp9n xskzprw x17yabm6 x14q22ui"}}[!!F<<0],"aria-hidden":"true",children:p.jsx(Fo,{size:"sm",shade:"inherit"})}),p.jsxs("span",{...Se(Ao.contentWrapper,Z&&(F?cS.hiddenContentDelayed:cS.hiddenContent)),"aria-hidden":Z||void 0,children:[f&&p.jsx("span",{...Se(Ao.iconWrapper,h4[Oe]),children:p.jsx(qN,{value:Oe,children:f})}),g?null:p.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:k??e}),!g&&C&&p.jsx("span",{className:"x3nfvp2 x6s0dn4 x1heor9g",children:C})]}),p.jsx(lo,{role:"status","aria-live":"polite",children:Z?D("@astryx.button.loading"):""})]}),Pe=g&&e!==""||Z&&!g||k!=null&&k!==e?{"aria-label":e}:null,He=w!=null?{"aria-describedby":[I["aria-describedby"],fe.describedBy].filter(Boolean).join(" ")||void 0}:null,Ze=Zn(L,w!=null?fe.ref:void 0);let Fe;return se?Fe=p.jsx(J,{ref:Ze,href:v,target:T,rel:E,...ye,...N,...I,...Pe,...He,...pe,"aria-busy":Z||void 0,onClick:B,children:ie}):Fe=p.jsx("button",{ref:Ze,type:s,disabled:te?void 0:Q,...ye,...N,...I,...Pe,...He,...pe,"aria-busy":Z||void 0,"aria-disabled":te||void 0,onClick:B,...ee?{onKeyDown:ee}:null,children:ie}),w?p.jsxs(p.Fragment,{children:[Fe,fe.renderTooltip(w)]}):Fe}Bt.displayName="Button";function ub(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;const a={};for(const[s,i]of Object.entries(e))a[s]={...i};for(const[s,i]of Object.entries(t))if(!a[s])a[s]={...i};else for(const[c,u]of Object.entries(i))a[s][c]={...a[s][c],...u};return a}const bL={"color-scheme":"dark","--color-text-primary":"var(--color-on-dark)","--color-icon-primary":"var(--color-on-dark)","--color-accent":"var(--color-on-dark)"},vL={"color-scheme":"light","--color-text-primary":"var(--color-on-light)","--color-icon-primary":"var(--color-on-light)","--color-accent":"var(--color-on-light)"};function kL(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function uS(e,t,a){const i={...e==="dark"?bL:vL,...a?.tokens};if(t?.tokens)for(const[c,u]of Object.entries(t.tokens))u!==void 0&&(i[c]=kL(u));return{tokens:i,components:ub(a?.components,t?.components)}}const r0={[-5]:"--font-size-4xs",[-4]:"--font-size-3xs",[-3]:"--font-size-2xs",[-2]:"--font-size-xs",[-1]:"--font-size-sm",0:"--font-size-base",1:"--font-size-lg",2:"--font-size-xl",3:"--font-size-2xl",4:"--font-size-3xl",5:"--font-size-4xl",6:"--font-size-5xl"},wL={1:3,2:2,3:1,4:0,5:-1,6:-2},SL={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},EL={1:"var(--font-weight-semibold)",2:"var(--font-weight-semibold)",3:"var(--font-weight-semibold)",4:"var(--font-weight-semibold)",5:"var(--font-weight-semibold)",6:"var(--font-weight-semibold)"},CL={body:"var(--font-weight-normal)",large:"var(--font-weight-semibold)",label:"var(--font-weight-medium)",code:"var(--font-weight-normal)",supporting:"var(--font-weight-normal)","display-1":"var(--font-weight-normal)","display-2":"var(--font-weight-normal)","display-3":"var(--font-weight-normal)"};function a0(e,t,a){return Math.round(e*Math.pow(t,a))}function $L(e){return`${Math.round(e/16*1e4)/1e4}rem`}function jL(e){return e<20?1.5:e<32?1.4:1.25}function dS(e){const t=jL(e),a=e*t,s=Math.max(Math.round(a/4)*4,Math.ceil((e+4)/4)*4);return Math.round(s/e*1e4)/1e4}function TL(e){const{base:t,ratio:a,weights:s}=e,i={},c={...EL,...s?.heading},u={...CL,...s?.text};for(let d=-5;d<=6;d++){const f=a0(t,a,d);i[r0[d]]=$L(f)}for(const[d,f]of Object.entries(wL)){const g=Number(d),y=a0(t,a,f),b=dS(y);i[`--text-heading-${g}-size`]=`var(${r0[f]})`,i[`--text-heading-${g}-weight`]=c[g],i[`--text-heading-${g}-leading`]=`${b}`}for(const[d,f]of Object.entries(SL)){const g=a0(t,a,f),y=dS(g);i[`--text-${d}-size`]=`var(${r0[f]})`,i[`--text-${d}-weight`]=u[d],i[`--text-${d}-leading`]=`${y}`}return i}const RL={body:"var(--font-family-body)",large:"var(--font-family-body)",label:"var(--font-family-body)",code:"var(--font-family-code)",supporting:"var(--font-family-body)","display-1":"var(--font-family-heading)","display-2":"var(--font-family-heading)","display-3":"var(--font-family-heading)"};function AL(e){const t={},a={};for(const i of[1,2,3,4,5,6])a[`level:${i}`]={fontFamily:"var(--font-family-heading)",fontSize:`var(--text-heading-${i}-size)`,fontWeight:`var(--text-heading-${i}-weight)`,lineHeight:`var(--text-heading-${i}-leading)`};for(const i of["display-1","display-2","display-3"])a[`type:${i}`]={fontFamily:"var(--font-family-heading)",fontSize:`var(--text-${i}-size)`,lineHeight:`var(--text-${i}-leading)`};t.heading=a;const s={};for(const i of["body","large","label","code","supporting","display-1","display-2","display-3"])s[`type:${i}`]={fontFamily:RL[i],fontSize:`var(--text-${i}-size)`,lineHeight:`var(--text-${i}-leading)`};return t.text=s,t}function Mo(e){return Math.round(e/5)*5}function ML(e){const{fast:t,medium:a,slow:s,ratio:i,easing:c}=e,u={"--duration-fast-min":`${Mo(t*i)}ms`,"--duration-fast":`${Mo(t)}ms`,"--duration-fast-max":`${Mo(t/i)}ms`,"--duration-medium-min":`${Mo(a*i)}ms`,"--duration-medium":`${Mo(a)}ms`,"--duration-medium-max":`${Mo(a/i)}ms`};return s!=null&&(u["--duration-slow-min"]=`${Mo(s*i)}ms`,u["--duration-slow"]=`${Mo(s)}ms`,u["--duration-slow-max"]=`${Mo(s/i)}ms`),c&&(u["--ease-standard"]=c),u}function zL(e){const{base:t,multiplier:a}=e;return{"--radius-none":"0px","--radius-inner":`${Math.round(t*1*a)}px`,"--radius-element":`${Math.round(t*2*a)}px`,"--radius-container":`${Math.round(t*3*a)}px`,"--radius-page":`${Math.round(t*7*a)}px`,"--radius-chat":`${Math.round(t*7*a)}px`,"--radius-full":"9999px"}}function fS(e){const t=a=>{const s=a/255;return s<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function C4(e,t){const a=e.a;return{r:e.r*a+t.r*(1-a),g:e.g*a+t.g*(1-a),b:e.b*a+t.b*(1-a),a:1}}function hS(e,t){if(typeof e!="string")return e;const a=ef(e);if(a===null)throw new TypeError(`contrastRatio: could not parse ${t} "${e}"`);return a}function Kp(e,t){const a=hS(t,"background");if(a.a<1)throw new TypeError("contrastRatio: background must be opaque — composite it over its backdrop first");let s=hS(e,"foreground");s.a<1&&(s=C4(s,a));const i=fS(s),c=fS(a),u=Math.max(i,c),d=Math.min(i,c);return(u+.05)/(d+.05)}function su(e){const t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Wp(e){const t=e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055;return Math.round(Math.min(255,Math.max(0,t*255)))}function NL(e,t,a){return[.4124564*e+.3575761*t+.1804375*a,.2126729*e+.7151522*t+.072175*a,.0193339*e+.119192*t+.9503041*a]}function LL(e,t,a){return[3.2404542*e-1.5371385*t-.4985314*a,-.969266*e+1.8760108*t+.041556*a,.0556434*e-.2040259*t+1.0572252*a]}const ou=[.95047,1,1.08883];function s0(e){const t=.20689655172413793;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function Yp(e){const t=.20689655172413793;return e>t?e*e*e:3*t*t*(e-4/29)}function DL(e,t,a){const s=s0(e/ou[0]),i=s0(t/ou[1]),c=s0(a/ou[2]);return[116*i-16,500*(s-i),200*(i-c)]}function OL(e,t,a){const s=(e+16)/116,i=t/500+s,c=s-a/200;return[Yp(i)*ou[0],Yp(s)*ou[1],Yp(c)*ou[2]]}function IL(e){return Yp((e+16)/116)}function _L(e){const t=SC(e);return t===null?[0,0,0]:[t.r,t.g,t.b]}function pS(e){const[t,a,s]=_L(e),i=su(t),c=su(a),u=su(s),[d,f,g]=NL(i,c,u),[y,b,k]=DL(d,f,g);let w=Math.atan2(k,b)*180/Math.PI;w<0&&(w+=360);const v=Math.sqrt(b*b+k*k);return{hue:w,chroma:v,tone:Math.max(0,Math.min(100,y))}}function db(e){const{hue:t,chroma:a,tone:s}=e;if(s<=0)return"#000000";if(s>=100)return"#FFFFFF";if(a<.5){const d=PL(s);return l1(d,d,d)}let i=0,c=a,u="#000000";for(let d=0;d<16;d++){const f=(i+c)/2,g=BL(t,f,s);g!==null?(u=g,i=f):c=f}return u}function PL(e){const t=IL(e);return Wp(t)}function BL(e,t,a){const s=e*Math.PI/180,i=Math.cos(s)*t,c=Math.sin(s)*t,u=a,[d,f,g]=OL(u,i,c),[y,b,k]=LL(d,f,g),C=Wp(y),w=Wp(b),v=Wp(k),S=su(C),T=su(w),E=su(v),j=.02;return Math.abs(S-y)>j||Math.abs(T-b)>j||Math.abs(E-k)>j||C<0||C>255||w<0||w>255||v<0||v>255?null:l1(C,w,v)}const FL=[0,5,10,20,30,40,50,60,70,80,90,95,99,100];function Bc(e,t){const a={};for(const s of FL)a[s]=db({hue:e,chroma:t,tone:s});return a}function ka(e,t){const a=Math.round(t*255).toString(16).padStart(2,"0").toUpperCase();return e+a}const qL={warm:7,cool:5,neutral:3},HL={warm:10,cool:8,neutral:6},xS="#0064E0";function Rn(e,t){return`light-dark(${e}, ${t})`}function mS(e){return`color-mix(in srgb, var(--color-accent) ${e*100}%, transparent)`}const gS=3;function yS(e,t,a,s,i,c){let u=a,d=db({hue:e,chroma:t,tone:u});for(;Kp(d,i)<c&&u+s>=0&&u+s<=100;)u+=s,d=db({hue:e,chroma:t,tone:u});return d}function UL(e){const{accent:t,neutralStyle:a="cool",contrast:s="standard"}=e,[i,c]=Array.isArray(t)?t:[t,t],u=pS(i??xS),d=c===i,f=d?u:pS(c??xS),g=qL[a]??5,y=HL[a]??8,b=Bc(u.hue,Math.max(u.chroma,48)),k=Bc(u.hue,g),C=Bc(u.hue,y),w=d?b:Bc(f.hue,Math.max(f.chroma,48)),v=d?k:Bc(f.hue,g),S=d?C:Bc(f.hue,y),T=s==="high",E=T?0:10,j=T?99:90,$=T?20:30,z=T?80:70,L=T?.2:.1,I=T?50:70,N=T?50:30,D=Rn(yS(u.hue,y,I,-1,k[99],gS),yS(f.hue,y,N,1,v[10],gS));return{...t!=null?{"--color-accent":Rn(b[40],w[80]),"--color-accent-muted":Rn(mS(.2),mS(.25)),"--color-on-accent":Rn(b[100],w[20])}:null,"--color-neutral":Rn(ka(k[10],.1),ka(v[90],.2)),"--color-background-surface":Rn(k[99],v[10]),"--color-background-body":Rn(k[95],v[5]),"--color-overlay":Rn(ka(k[10],.4),ka(v[10],.6)),"--color-overlay-hover":Rn(ka(k[10],.05),ka(v[100],.05)),"--color-overlay-pressed":Rn(ka(k[10],.1),ka(v[100],.1)),"--color-background-muted":Rn(ka(k[10],.05),ka(v[10],.5)),"--color-text-primary":Rn(k[E],v[j]),"--color-text-secondary":Rn(C[$],S[z]),"--color-text-disabled":Rn(C[60],S[40]),"--color-text-accent":"var(--color-accent)","--color-icon-accent":"var(--color-accent)","--color-icon-primary":Rn(k[E],v[j]),"--color-icon-secondary":Rn(C[$],S[z]),"--color-icon-disabled":Rn(C[60],S[40]),"--color-background-card":Rn(k[99],v[10]),"--color-background-popover":Rn(k[99],v[20]),"--color-background-inverted":Rn(k[10],v[99]),"--color-border":Rn(ka(k[10],L),ka(v[95],L)),"--color-border-emphasized":D,"--color-skeleton":Rn(C[70],S[30]),"--color-track":Rn(C[70],S[30]),"--color-shadow":Rn(ka(k[0],.1),ka(v[0],.3)),"--color-tint-hover":Rn("black","white")}}function VL(e,{strict:t=!1}={}){if(typeof e=="string")return e;if(Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="string")return`light-dark(${e[0]}, ${e[1]})`;if(t)throw new Error("Theme token values must be CSS strings or [light, dark] string tuples.");return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function mp(e){return{normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-bold)"}[e]??e}function o0(e,t){if(!e)return;const a=e.includes(" ")?`"${e}"`:e;return t?`${a}, ${t}`:a}function GL(e){if(!e.scale)return;const t={},a=e.heading;if(a?.weights)for(const[c,u]of Object.entries(a.weights))u&&(t[Number(c)]=mp(u));const s=a?.weight?mp(a.weight):void 0;if(s)for(let c=1;c<=6;c++)c in t||(t[c]=s);const i={};return e.body?.weight&&(i.body=mp(e.body.weight)),e.code?.weight&&(i.code=mp(e.code.weight)),{base:e.scale.base,ratio:e.scale.ratio,weights:{...Object.keys(t).length>0?{heading:t}:{},...Object.keys(i).length>0?{text:i}:{}}}}function KL(e){const t={},a=o0(e.body?.family,e.body?.fallbacks),s=o0(e.heading?.family,e.heading?.fallbacks)??a,i=o0(e.code?.family,e.code?.fallbacks);return a&&(t["--font-family-body"]=a),s&&(t["--font-family-heading"]=s),i&&(t["--font-family-code"]=i),t}function $4(e,t,{strictTokens:a=!1}={}){const s={...t?.tokens},i=e.typography,c=i?GL(i):void 0;if(e.color&&Object.assign(s,UL(e.color)),c&&Object.assign(s,TL(c)),e.radius&&Object.assign(s,zL(e.radius)),e.motion&&Object.assign(s,ML(e.motion)),i&&Object.assign(s,KL(i)),e.syntax){const d="--color-syntax-";for(const[f,g]of Object.entries(e.syntax.tokens))s[d+f]=g}if(e.tokens)for(const[d,f]of Object.entries(e.tokens))f!==void 0&&(s[d]=VL(f,{strict:a}));let u=e.components;return c&&(u=ub(AL(),e.components)),t?.components&&(u=ub(t.components,u)),{tokens:s,components:u}}const j4=String.raw`(?:[-_a-zA-Z0-9]|\P{ASCII}|\\(?:[0-9a-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))`,WL=new RegExp(`^--${j4}*$`,"u"),i0=new RegExp(`var\\(\\s*(--${j4}*)(?=\\s*(?:,|\\)))`,"giu");function iu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function T4(e){return!e.includes("\0")&&WL.test(e)}function R4(e,t){if(typeof e=="string")return e;if(Array.isArray(e)&&e.length===2&&typeof e[0]=="string"&&typeof e[1]=="string")return`light-dark(${e[0]}, ${e[1]})`;throw new Error(`${t} must be a CSS string or a [light, dark] string tuple.`)}function fb(e,t){if(typeof e=="string"){i0.lastIndex=0;for(let a=i0.exec(e);a;a=i0.exec(e))t.add(a[1]);return}if(Array.isArray(e)){for(const a of e)fb(a,t);return}if(e&&typeof e=="object")for(const a of Object.values(e))fb(a,t)}function A4(e,t,a){const s=new Map;for(const[b,k]of Object.entries(e)){const C=new Set;fb(k,C),s.set(b,[...C].filter(w=>iu(e,w)))}const i=(b,k)=>{const C=[b],w=new Set(C),v=S=>{for(const T of s.get(S)??[])if(k.has(T)){if(T===b)return C.push(b),!0;if(!w.has(T)){if(C.push(T),w.add(T),v(T))return!0;w.delete(T),C.pop()}}return!1};return v(b),C};let c=0;const u=new Map,d=new Map,f=[],g=new Set,y=b=>{const k=c++;u.set(b,k),d.set(b,k),f.push(b),g.add(b);for(const E of s.get(b)??[])u.has(E)?g.has(E)&&d.set(b,Math.min(d.get(b)??k,u.get(E)??0)):(y(E),d.set(b,Math.min(d.get(b)??k,d.get(E)??0)));if(d.get(b)!==k)return;const C=[];let w;do w=f.pop()??b,g.delete(w),C.push(w);while(w!==b);if(!(C.length>1||(s.get(C[0])??[]).includes(C[0]))||a&&!C.some(E=>a.has(E)))return;const S=C.find(E=>a?.has(E))??C[0],T=i(S,new Set(C)).join(" -> ");throw new Error(`${t?`${t}: `:""}Theme token cycle detected: ${T}.`)};for(const b of Object.keys(e))u.has(b)||y(b)}function YL(e,t){const a=t.__localTokenLineage;if(!Array.isArray(a)||a.length===0||a[a.length-1]!==t.name||a.some(s=>typeof s!="string"||s.length===0))throw new Error(`defineTheme("${e}"): the base theme has invalid theme-local token lineage metadata.`);if(!t.localTokens||typeof t.localTokens!="object"||Array.isArray(t.localTokens)||!t.__localTokenOwners||typeof t.__localTokenOwners!="object"||Array.isArray(t.__localTokenOwners))throw new Error(`defineTheme("${e}"): the base theme has incomplete theme-local token metadata.`);for(const[s,i]of Object.entries(t.localTokens)){const c=t.__localTokenOwners[s];if(typeof i!="string"||!c||!a.includes(c)||!T4(s))throw new Error(`defineTheme("${e}"): inherited local token "${s}" does not match its exact lineage metadata.`)}for(const s of Object.keys(t.__localTokenOwners))if(!iu(t.localTokens,s))throw new Error(`defineTheme("${e}"): inherited local-token owner metadata names undeclared token "${s}".`)}function XL(e,t,a,s){const i=iu(e,"localTokens"),c=t?.__localTokenLineage!==void 0;if(!i&&!c)return;c&&t&&YL(e.name,t);const u={...t?.localTokens},d={...t?.__localTokenOwners},f=e.localTokens;if(i&&(f==null||typeof f!="object"||Array.isArray(f)))throw new Error(`defineTheme("${e.name}"): localTokens must be a token map.`);for(const[g,y]of Object.entries(f??{})){const b=d[g];if(!T4(g))throw new Error(`defineTheme("${e.name}"): local token "${g}" must be a valid CSS custom-property name.`);b||(d[g]=e.name),u[g]=R4(y,`defineTheme("${e.name}").localTokens["${g}"]`)}for(const g of Object.keys(u)){if(!d[g])throw new Error(`defineTheme("${e.name}"): inherited local token "${g}" has no owner metadata.`);if(iu(a,g)||iu(s,g))throw new Error(`defineTheme("${e.name}"): token "${g}" cannot be declared in both tokens and localTokens.`)}return A4(u,`defineTheme("${e.name}").localTokens`),{localTokens:u,owners:d,lineage:[...t?.__localTokenLineage??[],e.name]}}function ZL(e,t,a,s){const i=`defineTheme("${e}").adaptations.rules[${t}].value.localTokens`;if(a===void 0)return;if(a===null||typeof a!="object"||Array.isArray(a))throw new Error(`${i} must be a token map.`);const c={};for(const[u,d]of Object.entries(a)){if(!s||!iu(s,u))throw new Error(`${i}["${u}"] cannot enroll a theme-local token. Declare it in the root theme or an exact enrolled base first.`);c[u]=R4(d,`${i}["${u}"]`)}return Object.keys(c).length>0?c:void 0}const ju=["sm","md","lg","xl","2xl"],M4=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536});function Qx(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function zl(e,t){if(!Qx(e))throw new Error(`${t} must be an object.`)}function Nl(e,t,a){for(const s of Object.keys(e))if(!t.has(s))throw new Error(`${a}.${s} is not supported.`)}function xx(e){if(Array.isArray(e)){const t=[];for(const a of e)t.push(xx(a));return t}return Qx(e)?Object.fromEntries(Object.entries(e).map(([t,a])=>[t,xx(a)])):e}const z4=new Set(ju),QL=new Set(["widthBreakpoints","rules"]),JL=new Set(["when","value"]),eD=["width","pointer","contrast","motion"],tD=new Set(eD),nD=new Set(["from","below"]),bS=new Set(["typography","color","radius","motion","tokens","localTokens","components"]);function N4(e,t){zl(e,t),Nl(e,z4,t);const a={};for(const s of ju){const i=e[s];if(i!==void 0){if(typeof i!="number"||!Number.isFinite(i)||i<=0)throw new Error(`${t}.${s} must be a finite positive number of CSS pixels.`);a[s]=i}}return a}function rD(e,t){const a=N4(e,t);for(const s of ju)if(a[s]===void 0)throw new Error(`${t}.${s} is missing from the effective breakpoint map.`);return a}function aD(e,t){let a;for(const s of ju){if(a!==void 0&&e[s]<=e[a])throw new Error(`${t} must be strictly increasing: ${s} (${e[s]}) is not above ${a} (${e[a]}).`);a=s}}function sD(e,t){zl(e,t),Nl(e,tD,t);const a=Object.fromEntries(Object.entries(e).filter(([,i])=>i!==void 0));if(Object.keys(a).length===0)throw new Error(`${t} must contain at least one condition.`);const s=xx(a);if(s.width!==void 0){if(zl(s.width,`${t}.width`),Nl(s.width,nD,`${t}.width`),s.width.from===void 0&&s.width.below===void 0)throw new Error(`${t}.width must contain \`from\`, \`below\`, or both.`);for(const i of["from","below"]){const c=s.width[i];if(c!==void 0&&(typeof c!="string"||!z4.has(c)))throw new Error(`${t}.width.${i} must be one of ${ju.join(", ")}.`)}}if(s.pointer!==void 0&&s.pointer!=="coarse"&&s.pointer!=="fine")throw new Error(`${t}.pointer must be 'coarse' or 'fine'.`);if(s.contrast!==void 0&&s.contrast!=="more"&&s.contrast!=="less"&&s.contrast!=="no-preference")throw new Error(`${t}.contrast must be 'more', 'less', or 'no-preference'.`);if(s.motion!==void 0&&s.motion!=="reduce"&&s.motion!=="no-preference")throw new Error(`${t}.motion must be 'reduce' or 'no-preference'.`);return s}function oD(e,t){zl(e,t),Nl(e,bS,t);for(const a of bS){const s=e[a];if(s!==void 0&&!Qx(s))throw new Error(`${t}.${a} must be an object.`)}return xx(e)}function iD(e,t){if(zl(e,t),Nl(e,JL,t),!Object.prototype.hasOwnProperty.call(e,"when"))throw new Error(`${t}.when is required.`);if(!Object.prototype.hasOwnProperty.call(e,"value"))throw new Error(`${t}.value is required.`);return{when:sD(e.when,`${t}.when`),value:oD(e.value,`${t}.value`)}}function vS(e,t){if(!Array.isArray(e))throw new Error(`${t} must be an array of {when, value} objects.`);for(let a=0;a<e.length;a++)if(!Object.prototype.hasOwnProperty.call(e,a))throw new Error(`${t}[${a}] must be present.`);return e.map((a,s)=>iD(a,`${t}[${s}]`))}function L4(e,t,a){const s=`defineTheme("${e}").adaptations`;let i={...M4},c=[];t!==void 0&&(zl(t,`defineTheme("${e}").extends.__adaptations`),Nl(t,new Set(["widthBreakpoints","rules"]),`defineTheme("${e}").extends.__adaptations`),i=rD(t.widthBreakpoints,`defineTheme("${e}").extends.__adaptations.widthBreakpoints`),c=vS(t.rules,`defineTheme("${e}").extends.__adaptations.rules`));let u={},d=[];a!==void 0&&(zl(a,s),Nl(a,QL,s),a.widthBreakpoints!==void 0&&(u=N4(a.widthBreakpoints,`${s}.widthBreakpoints`)),a.rules!==void 0&&(d=vS(a.rules,`${s}.rules`)));const f={...i,...u};return aD(f,`${s}.widthBreakpoints`),{widthBreakpoints:f,rules:[...c,...d]}}function Xp(e,t){return e?t?{...e,...t,weights:e.weights||t.weights?{...e.weights,...t.weights}:void 0}:e:t}function Ai(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Error(`${t} must be a finite number.`)}function lD(e,t,a){const s=t.scale!==void 0||[t.body,t.heading,t.code].some(c=>c?.weight!==void 0||c?.weights!==void 0);let i=s?e?.scale:void 0;if(t.scale!==void 0){const c=t.scale.base??e?.scale?.base,u=t.scale.ratio??e?.scale?.ratio;if(c===void 0||u===void 0)throw new Error(`${a}.scale must supply both \`base\` and \`ratio\` unless the missing field exists on the effective root typography axis.`);Ai(c,`${a}.scale.base`),Ai(u,`${a}.scale.ratio`),i={base:c,ratio:u}}else if(s&&i===void 0)throw new Error(`${a} sets typography weights without an effective root scale. Supply \`scale.base\` and \`scale.ratio\` in the same rule.`);return{...i?{scale:i}:{},body:Xp(e?.body,t.body),heading:Xp(e?.heading,t.heading),code:Xp(e?.code,t.code)}}function cD(e,t,a){const s=t.base??e?.base,i=t.multiplier??e?.multiplier;if(s===void 0||i===void 0)throw new Error(`${a} must supply both \`base\` and \`multiplier\` unless the missing field exists on the effective root radius axis.`);return Ai(s,`${a}.base`),Ai(i,`${a}.multiplier`),{base:s,multiplier:i}}function uD(e,t,a){const s=t.fast??e?.fast,i=t.medium??e?.medium,c=t.ratio??e?.ratio;if(s===void 0||i===void 0||c===void 0)throw new Error(`${a} must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field exists on the effective root motion axis.`);Ai(s,`${a}.fast`),Ai(i,`${a}.medium`),Ai(c,`${a}.ratio`);const u=t.slow??e?.slow;u!==void 0&&Ai(u,`${a}.slow`);const d=t.easing??e?.easing;return{fast:s,medium:i,ratio:c,...u!==void 0?{slow:u}:{},...d!==void 0?{easing:d}:{}}}function dD(e,t,a,s){const i=`defineTheme("${e}").adaptations.rules[${t}].value`;return{typography:a.typography?lD(s.typography,a.typography,`${i}.typography`):void 0,color:a.color?{...s.color,...a.color}:void 0,radius:a.radius?cD(s.radius,a.radius,`${i}.radius`):void 0,motion:a.motion?uD(s.motion,a.motion,`${i}.motion`):void 0,tokens:a.tokens,components:a.components}}function hb(e,t){if(typeof e=="string"){if(/\b(?:NaN|undefined)\b/.test(e))throw new Error(`${t} resolved to the invalid CSS value "${e}".`);return}if(Qx(e)){for(const[a,s]of Object.entries(e))hb(s,`${t}.${a}`);return}throw new Error(`${t} must resolve to a concrete CSS string.`)}function fD(e,t,a,s){const i=`defineTheme("${e}").adaptations.rules[${t}].when`,c=[];if(a.width){const u=a.width.from,d=a.width.below;if(u!==void 0&&d!==void 0&&s[u]>=s[d])throw new Error(`${i}.width must resolve to \`from < below\`; ${u} is ${s[u]}px and ${d} is ${s[d]}px.`);u!==void 0&&c.push(`(width >= ${s[u]}px)`),d!==void 0&&c.push(`(width < ${s[d]}px)`)}if(a.pointer!==void 0&&c.push(`(pointer: ${a.pointer})`),a.contrast!==void 0&&c.push(`(prefers-contrast: ${a.contrast})`),a.motion!==void 0&&c.push(`(prefers-reduced-motion: ${a.motion})`),c.length===0)throw new Error(`${i} must contain at least one concrete condition.`);return c.join(" and ")}const hD={pointer:["coarse","fine","none"],contrast:["more","less","no-preference","custom"],motion:["reduce","no-preference"]},l0=hD;function pD(e,t,a){const s=e.width?.from;if(s!==void 0&&a.width<t[s])return!1;const i=e.width?.below;return!(i!==void 0&&a.width>=t[i]||e.pointer!==void 0&&e.pointer!==a.pointer||e.contrast!==void 0&&e.contrast!==a.contrast||e.motion!==void 0&&e.motion!==a.motion)}function xD(e,t,a,s,i){const c=i.flatMap((f,g)=>Object.keys(f.tokens).length>0||f.localTokens&&Object.keys(f.localTokens).length>0?[g]:[]);if(c.length===0)return;const u=[0,...ju.map(f=>t[f])],d=new Set;for(const f of u)for(const g of l0.pointer)for(const y of l0.contrast)for(const b of l0.motion){const k={width:f,pointer:g,contrast:y,motion:b},C=c.filter(j=>pD(i[j].when,t,k));if(C.length===0)continue;const w=C.join(",");if(d.has(w))continue;d.add(w);const v={...a,...s},S=new Set;for(const j of C){const $=i[j];Object.assign(v,$.tokens,$.localTokens);for(const z of Object.keys($.tokens))S.add(z);for(const z of Object.keys($.localTokens??{}))S.add(z)}const T=C.join(", "),E=C.map(j=>i[j].query).join("; ");A4(v,`defineTheme("${e}").adaptations ${C.length===1?"rule":"overlapping rules"} [${T}] (${E})`,S)}}function mD(e,t){const a=e?.typography,s=t.typography,i=(w,v,S=!1)=>{const T=Xp(w,v);if(T)return v?.family?{...T,family:v.family,fallbacks:v.fallbacks}:S?{...T,family:void 0,fallbacks:void 0}:{...T,family:w?.family,fallbacks:w?.fallbacks}};let c=i(a?.body,s?.body),u=i(a?.heading,s?.heading,!!(s?.body?.family&&!s?.heading?.family)),d=i(a?.code,s?.code);const f=s?.scale?s:a?.scale?a:void 0,g=(w,v)=>w?{...w,weight:v?.weight,weights:v?.weights}:void 0;c=g(c,f?.body),u=g(u,f?.heading),d=g(d,f?.code);const y=a||s?{...a,...s,scale:s?.scale??a?.scale,body:c,heading:u,code:d}:void 0,b=t.color??e?.color,k=t.radius?{...e?.radius,...t.radius}:e?.radius,C=t.motion?{...e?.motion,...t.motion}:e?.motion;return{...y?{typography:y}:{},...b?{color:b}:{},...k?{radius:k}:{},...C?{motion:C}:{}}}function gD(e,t,a){if(!e||!t)return e;const s={};for(const[i,c]of Object.entries(e))for(const[u,d]of Object.entries(c)){const f=Object.fromEntries(Object.entries(d).filter(([g])=>t[i]?.[u]?.[g]===void 0||Object.hasOwn(a?.[i]?.[u]??{},g)));Object.keys(f).length>0&&((s[i]??={})[u]=f)}return Object.keys(s).length>0?s:void 0}function D4(e,t,a,s,i,c){if(t.rules.length===0)return;const u=t.rules.map((d,f)=>{const g=dD(e,f,d.value,a),y=$4(g,void 0,{strictTokens:!0});for(const[k,C]of Object.entries(y.tokens))hb(C,`defineTheme("${e}").adaptations.rules[${f}].value.tokens["${k}"]`);y.components&&hb(y.components,`defineTheme("${e}").adaptations.rules[${f}].value.components`);for(const k of Object.keys(d.value.tokens??{}))if(i&&Object.prototype.hasOwnProperty.call(i,k))throw new Error(`defineTheme("${e}").adaptations.rules[${f}].value.tokens["${k}"] matches an enrolled theme-local declaration; write it through value.localTokens instead.`);const b=ZL(e,f,d.value.localTokens,i);return{when:d.when,query:fD(e,f,d.when,t.widthBreakpoints),tokens:y.tokens,localTokens:b,components:g.typography?.scale?gD(y.components,c,d.value.components):y.components}});return xD(e,t.widthBreakpoints,s,i,u),u}const O4={"--color-syntax-keyword":"var(--color-text-accent)","--color-syntax-string":"var(--color-text-green)","--color-syntax-comment":"var(--color-text-secondary)","--color-syntax-number":"var(--color-text-orange)","--color-syntax-function":"var(--color-text-blue)","--color-syntax-type":"var(--color-text-purple)","--color-syntax-variable":"var(--color-text-primary)","--color-syntax-operator":"var(--color-text-cyan)","--color-syntax-constant":"var(--color-text-orange)","--color-syntax-tag":"var(--color-text-red)","--color-syntax-attribute":"var(--color-text-teal)","--color-syntax-property":"var(--color-text-cyan)","--color-syntax-punctuation":"var(--color-text-secondary)","--color-syntax-background":"var(--color-background-muted)"},yD={"--color-data-categorical-blue":"light-dark(#0171E3, #0171E3)","--color-data-categorical-orange":"light-dark(#EB6E00, #EB6E00)","--color-data-categorical-purple":"light-dark(#6B1EFD, #6B1EFD)","--color-data-categorical-green":"light-dark(#0B991F, #0B991F)","--color-data-categorical-pink":"light-dark(#F351C0, #F351C0)","--color-data-categorical-cyan":"light-dark(#0171A4, #0171A4)","--color-data-categorical-red":"light-dark(#F5394F, #F5394F)","--color-data-categorical-teal":"light-dark(#08A3A3, #08A3A3)","--color-data-categorical-brown":"light-dark(#965E03, #965E03)","--color-data-categorical-indigo":"light-dark(#6F8AFF, #6F8AFF)","--color-data-neutral":"light-dark(#8494A3, #8C939B)","--color-data-blue-5":"light-dark(#02165E, #02165E)","--color-data-blue-4":"light-dark(#004CBC, #004CBC)","--color-data-blue-3":"light-dark(#2694FE, #2694FE)","--color-data-blue-2":"light-dark(#78BEFF, #78BEFF)","--color-data-blue-1":"light-dark(#DBECFF, #DBECFF)","--color-data-shamrock-5":"light-dark(#0B603D, #0B603D)","--color-data-shamrock-4":"light-dark(#138546, #138546)","--color-data-shamrock-3":"light-dark(#24BB5E, #24BB5E)","--color-data-shamrock-2":"light-dark(#8EF7AA, #8EF7AA)","--color-data-shamrock-1":"light-dark(#D6FEE4, #D6FEE4)","--color-data-orange-5":"light-dark(#A13F04, #A13F04)","--color-data-orange-4":"light-dark(#D66100, #D66100)","--color-data-orange-3":"light-dark(#FD9537, #FD9537)","--color-data-orange-2":"light-dark(#FDB876, #FDB876)","--color-data-orange-1":"light-dark(#FFE6CF, #FFE6CF)","--color-data-pink-5":"light-dark(#8E1073, #8E1073)","--color-data-pink-4":"light-dark(#D123A1, #D123A1)","--color-data-pink-3":"light-dark(#F989D3, #F989D3)","--color-data-pink-2":"light-dark(#FEADE3, #FEADE3)","--color-data-pink-1":"light-dark(#FCE3F4, #FCE3F4)","--color-data-purple-5":"light-dark(#3E0697, #3E0697)","--color-data-purple-4":"light-dark(#6B1EFD, #6B1EFD)","--color-data-purple-3":"light-dark(#9081FF, #9081FF)","--color-data-purple-2":"light-dark(#B3B0FE, #B3B0FE)","--color-data-purple-1":"light-dark(#E8E8FB, #E8E8FB)","--color-data-red-5":"light-dark(#9D0519, #9D0519)","--color-data-red-4":"light-dark(#D31130, #D31130)","--color-data-red-3":"light-dark(#FB7D87, #FB7D87)","--color-data-red-2":"light-dark(#FFB2B8, #FFB2B8)","--color-data-red-1":"light-dark(#FEE4E6, #FEE4E6)","--color-data-teal-5":"light-dark(#08767D, #08767D)","--color-data-teal-4":"light-dark(#0C9293, #0C9293)","--color-data-teal-3":"light-dark(#0DB7AF, #0DB7AF)","--color-data-teal-2":"light-dark(#6CE6D8, #6CE6D8)","--color-data-teal-1":"light-dark(#D7FCF8, #D7FCF8)","--color-data-yellow-5":"light-dark(#8A5001, #8A5001)","--color-data-yellow-4":"light-dark(#D69804, #D69804)","--color-data-yellow-3":"light-dark(#FBCE03, #FBCE03)","--color-data-yellow-2":"light-dark(#FCEC85, #FCEC85)","--color-data-yellow-1":"light-dark(#FDF6BA, #FDF6BA)","--color-data-gray-5":"light-dark(#25363F, #333338)","--color-data-gray-4":"light-dark(#5D6C7B, #666A72)","--color-data-gray-3":"light-dark(#AFB9C4, #B2B8BE)","--color-data-gray-2":"light-dark(#CCD3DB, #D0D3D6)","--color-data-gray-1":"light-dark(#F1F4F7, #F2F4F6)"},bD={...O4,...yD},I4=new Map;function _4(e){I4.set(e.name,e)}function Jx(e){return e==null||e===""?null:I4.get(e)??null}const vD={avatar:[{property:"borderRadius",vars:["--_avatar-radius"]}],banner:[{property:"borderRadius",vars:["--_banner-radius"]}],"bottom-sheet":[{property:"padding",expand:"container"}],button:[{property:"borderRadius",vars:["--_button-radius"]}],card:[{property:"borderRadius",vars:["--_card-radius"]},{property:"padding",expand:"container"}],chat:[{property:"borderRadius",vars:["--_chat-composer-radius"]},{property:"padding",vars:["--_chat-composer-padding"]}],dialog:[{property:"borderRadius",vars:["--_dialog-radius"]},{property:"padding",expand:"container"}],drawer:[{property:"padding",expand:"container"}],"context-menu":[{property:"borderRadius",vars:["--_dropdown-menu-radius"]},{property:"padding",vars:["--_dropdown-menu-padding"]}],"dropdown-menu":[{property:"borderRadius",vars:["--_dropdown-menu-radius"]},{property:"padding",vars:["--_dropdown-menu-padding"]}],field:[{property:"borderRadius",vars:["--_field-radius"]}],"hover-card":[{property:"borderRadius",vars:["--_hovercard-radius"]}],item:[{property:"paddingInline",vars:["--_item-inset-inline"]}],"number-input":[{property:"padding",expand:"container"},{property:"borderRadius",vars:["--_field-radius"]}],popover:[{property:"borderRadius",vars:["--_popover-radius"]}],"progress-bar-mark":[{property:"width",vars:["--_progressbar-mark-width"],replaces:!0},{property:"height",vars:["--_progressbar-mark-height"],replaces:!0}],section:[{property:"padding",expand:"container"}],"segmented-control":[{property:"borderRadius",vars:["--_segmented-control-radius"]},{property:"padding",vars:["--_segmented-control-padding"]}],"text-area":[{property:"paddingInline",vars:["--_textarea-inline-padding"],replaces:!0}]};function c0(e,t){const a=vD[e];return a?a.filter(s=>s.property===t):[]}function af(e){return e===`
16
+ `||e==="\r"||e==="\f"}function mx(e){return e===" "||e===" "||af(e)}function pb(e){return/^[0-9a-fA-F]$/.test(e)}function xb(e){return/^[A-Za-z_]$/.test(e)||e.charCodeAt(0)>=128}function kD(e){return xb(e)||/^[0-9-]$/.test(e)}function P4(e){return e.replace(/\r\n?|\f/g,`
17
+ `).replace(/\0/g,"�")}const wD=/[\x01-\x08\x0b\x0e-\x1f\x7f]/;function gx(e,t){return e[t]==="\\"&&t+1<e.length&&!af(e[t+1])}function B4(e,t){const a=e[t];if(a==="-"){const s=e[t+1];return s!==void 0&&(s==="-"||xb(s)||gx(e,t+1))}return a==="\\"?gx(e,t):a!==void 0&&xb(a)}function em(e,t){if(pb(e[t])){let s=t;for(;s<e.length&&s-t<6&&pb(e[s]);)s++;return s<e.length&&mx(e[s])&&s++,s}const a=e.codePointAt(t)??0;return t+(a>65535?2:1)}function F4(e,t){let a="",s=t;for(;s<e.length;){const i=e[s];if(kD(i))a+=i,s++;else if(gx(e,s)){const c=em(e,s+1);if(pb(e[s+1])){const u=e.slice(s+1,c).trim(),d=parseInt(u,16);a+=d===0||d>1114111||d>=55296&&d<=57343?"�":String.fromCodePoint(d)}else a+=e.slice(s+1,c);s=c}else break}return{end:s,name:a}}function SD(e,t){const a=e[t];let s=t+1;for(;s<e.length;){const i=e[s];if(i===a)return{end:s+1};if(af(i))return{reason:"a newline inside a quoted string makes a bad string"};if(i==="\\"){if(s+1>=e.length)break;s=af(e[s+1])?s+2:em(e,s+1);continue}s++}return{reason:`an unclosed ${a} string would swallow the rest of the rule`}}function ED(e,t){let a=t;for(;a<e.length;){const s=e[a];if(s===")")return{end:a+1};if(mx(s)){for(;a<e.length&&mx(e[a]);)a++;if(a>=e.length)break;return e[a]===")"?{end:a+1}:{reason:"whitespace inside an unquoted url() makes a bad url"}}if(wD.test(s))return{reason:"a non-printable character inside url() makes a bad url"};if(s==='"'||s==="'"||s==="(")return{reason:`"${s}" inside an unquoted url() makes a bad url; quote the URL instead`};if(s==="\\"){if(!gx(e,a))return{reason:"a stray backslash inside url() makes a bad url"};a=em(e,a+1);continue}a++}return{reason:"an unclosed url( would swallow the rest of the rule"}}const CD={"(":")","[":"]","{":"}"};function q4(e){const t=P4(e),a=[];let s=0;for(;s<t.length;){const i=t[s];if(i==="/"&&t[s+1]==="*"){const c=t.indexOf("*/",s+2);if(c===-1)return"an unclosed /* comment would swallow the rest of the rule";s=c+2;continue}if(i==='"'||i==="'"){const c=SD(t,s);if("reason"in c)return c.reason;s=c.end;continue}if(B4(t,s)){const c=F4(t,s);if(s=c.end,t[s]==="("&&c.name.toLowerCase()==="url"){let u=s+1;for(;u<t.length&&mx(t[u]);)u++;if(t[u]==='"'||t[u]==="'"){a.push(")"),s=s+1;continue}const d=ED(t,u);if("reason"in d)return d.reason;s=d.end}continue}if(i==="\\"){if(s+1>=t.length)return"a trailing backslash would escape the declaration terminator";s=af(t[s+1])?s+1:em(t,s+1);continue}if(i==="("||i==="["||i==="{"){if(i==="{"&&a.length===0)return'an unquoted "{" would open a nested block';a.push(CD[i]),s++;continue}if(i===")"||i==="]"||i==="}"){if(a.length===0)return i==="}"?'an unquoted "}" would close the rule':`an unbalanced "${i}" has nothing to close`;const c=a.pop();if(c!==i)return`"${i}" does not close the open "${c===")"?"(":c==="]"?"[":"{"}"`;s++;continue}if(i===";"&&a.length===0)return'an unquoted ";" would end the declaration';s++}if(a.length>0){const i=a[a.length-1];return`an unclosed "${i===")"?"(":i==="]"?"[":"{"}" would swallow the rest of the rule`}return null}function $D(e){const t=P4(e);if(t.length===0||!B4(t,0))return"a property name must be a CSS identifier";const{end:a}=F4(t,0);return a!==t.length?`a property name must be one CSS identifier; "${t[a]}" cannot appear in one`:null}function y1(e){return`[data-${Hx}-theme="${e}"]`}const tm=`[data-${Hx}-theme]`;function H4(e){return`[data-${Hx}-media="${e}"]`}function jD(e,t){return`.${vC}-${e}${t}`}function lu(e,t,a){const s=jD(e,t);return a?`:is(${H4(a)}) :is(${s})`:s}const kS=':where(:not(:disabled,[aria-disabled="true"]))';function TD(e,t){const a=[];let s=0,i=0;for(let u=0;u<e.length;u++){const d=e[u];d==="("?s++:d===")"?s=Math.max(0,s-1):d===","&&s===0&&(a.push(e.slice(i,u).trim()),i=u+1)}a.push(e.slice(i).trim());const c=RD(t);return a.map(u=>`${u}${c}`).join(", ")}function RD(e){if(!/^:hover(?![-\w])/.test(e)||e.includes("[aria-disabled"))return e;const t=e.indexOf("::");return t===-1?e+kS:e.slice(0,t)+kS+e.slice(t)}function u0(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const mb=new Set(["padding","paddingBlock","paddingInline","paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]),b1={paddingTop:"paddingBlockStart",paddingBottom:"paddingBlockEnd"},wS=new Set([...mb,...Object.keys(b1)]);function AD(e){const t={};for(const[a,s]of e)switch(b1[a]??a){case"padding":{const c=s.trim().split(/\s+/);c.length===1?(t.blockStart=c[0],t.blockEnd=c[0],t.inline=c[0]):c.length===2?(t.blockStart=c[0],t.blockEnd=c[0],t.inline=c[1]):c.length>=3&&(t.blockStart=c[0],t.inline=c[1],t.blockEnd=c[2]);break}case"paddingBlock":{const c=s.trim().split(/\s+/);t.blockStart=c[0],t.blockEnd=c[1]??c[0];break}case"paddingInline":{const c=s.trim().split(/\s+/);c.length===1?t.inline=c[0]:(t.inlineStart=c[0],t.inlineEnd=c[1]);break}case"paddingBlockStart":t.blockStart=s;break;case"paddingBlockEnd":t.blockEnd=s;break;case"paddingInlineStart":t.inlineStart=s;break;case"paddingInlineEnd":t.inlineEnd=s;break}return t}function MD(e,t,a=!1){const s=t9(`${e}-padding`),i=[],c=t.inlineStart??t.inline,u=t.inlineEnd??t.inline;if(c!=null&&u!=null&&c===u&&t.blockStart!=null&&t.blockEnd!=null&&c===t.blockStart&&t.blockStart===t.blockEnd?i.push([s,c??""]):(t.inlineStart!=null||t.inlineEnd!=null?(c!=null&&i.push([`${s}-inline-start`,c]),u!=null&&i.push([`${s}-inline-end`,u])):t.inline!=null&&i.push([`${s}-inline`,t.inline]),t.blockStart!=null&&i.push([`${s}-block-start`,t.blockStart]),t.blockEnd!=null&&i.push([`${s}-block-end`,t.blockEnd])),a){const g=new Set(i.map(([b])=>b)),y=g.has(s)?[`${s}-inline`,`${s}-inline-start`,`${s}-inline-end`,`${s}-block-start`,`${s}-block-end`]:g.has(`${s}-inline`)?[`${s}-inline-start`,`${s}-inline-end`]:[];for(const b of y)g.has(b)||i.push([b,"initial"])}return i}const U4=e=>{console.warn(`[astryx theme] ${e}`)};function v1(e){return U4}function zD(e){const t=JSON.stringify(e);return t.length>80?`${t.slice(0,77)}..."`:t}function ND(e,t,a,s,i){e(`dropped "${t}" in ${s}: ${i} (value: ${zD(a)})`)}function V4(e,t,a,s){const i=$D(e)??q4(t);return i===null?!0:(ND(s,e,t,a,i),!1)}function sf(e,t,a,s=i=>i){const i=[];for(const[c,u]of e){const d=`${u}`,f=s(c);V4(f,d,t,a)&&i.push(` ${f}: ${d};`)}return i.join(`
18
+ `)}function G4(e,t,a){const s=[sf(Object.entries(e.tokens),`${t}tokens`,a),sf(Object.entries(e.localTokens??{}),`${t}localTokens`,a)].filter(c=>c.length>0).join(`
19
+ `);return Object.keys(e.tokens).length>0||Object.keys(e.localTokens??{}).length>0?` :scope {
20
+ ${s}
21
+ }`:null}function LD(e,t,a){return`${e}components.${t}[${JSON.stringify(a)}]`}function DD(e,t){const a=[],s=v1(),i=u=>`var(${u})`,c=G4(e,"",s);return c!==null&&a.push(c),e.tokens["--font-family-body"]&&a.push(` :scope {
22
+ font-family: var(--font-family-body);
23
+ }`),e.components&&k1(e.components,a,{sink:s}),ID(i,a),w1(e.components||{},a),S1(e.components||{},a),yx(e.components||{},a),a}const OD={normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-bold)"};function yx(e,t,{surface:a,inheritedComponents:s,forceAll:i=!1,authoredOnly:c=!1}={}){const u=e.heading,d=u&&typeof u=="object"&&!Array.isArray(u)?u:void 0;if(!d&&!i)return;const f=s?.heading,g=f&&typeof f=="object"?f:void 0;for(const[y,b]of Object.entries(OD)){const k=`weight:${y}`,C=d?SS(d,k):void 0;if(c&&C===void 0)continue;const w=g?SS(g,k):void 0,v=C??w??b,S=ru(k),T=lu("heading",S,a);t.push(` ${T} { font-weight: ${v}; }`)}}function SS(e,t){const a=e[t];if(a==null||typeof a!="object"||Array.isArray(a))return;const s=a.fontWeight;return typeof s=="string"&&q4(s)===null?s:void 0}function k1(e,t,{resetInheritedPaddingSpecificity:a=!1,surface:s,sink:i=U4,location:c=""}={}){for(const[u,d]of Object.entries(e))for(const[f,g]of Object.entries(d)){const y=Object.entries(g);if(y.length===0)continue;const b=ru(f),k=lu(u,b,s),C=LD(c,u,f),w=[],v=[];for(const[$,z]of y)$.startsWith(":")&&typeof z=="object"?v.push([$,z]):V4(u0($),`${z}`,C,i)&&w.push([$,z]);let S=w;const T=[];let E=!1;const j=new Set;for(const[$,z]of w){const L=c0(u,$),I=mb.has($)&&$!=="padding"?c0(u,"padding"):[];for(const N of[...L,...I])if(N.expand==="container"&&mb.has($)&&(E=!0),N.replaces&&j.add($),N.vars)for(const D of N.vars)T.push([D,z]);$ in b1&&c0(u,"padding").some(N=>N.expand==="container")&&(E=!0)}if(E){const $=w.filter(([N])=>wS.has(N)),z=w.filter(([N])=>!wS.has(N)),L=AD($),I=MD(u,L,a);S=[...z,...I]}if(j.size>0&&(S=S.filter(([$])=>!j.has($))),T.length>0&&(S=[...S,...T]),S.length>0){const $=sf(S,C,i,u0);t.push(` ${k} {
24
+ ${$}
25
+ }`)}for(const[$,z]of v){const L=Object.entries(z);if(L.length>0){const I=sf(L,`${C}[${JSON.stringify($)}]`,i,u0);t.push(` ${TD(k,$)} {
26
+ ${I}
27
+ }`)}}}}function ID(e,t){t.push(` :where(h1, h2, h3, h4, h5, h6) {
28
+ font-family: var(--font-family-heading);
29
+ color: var(--color-text-primary);
30
+ }`);for(let a=1;a<=6;a++)t.push(` :where(h${a}) {
31
+ font-size: ${e(`--text-heading-${a}-size`)};
32
+ font-weight: ${e(`--text-heading-${a}-weight`)};
33
+ line-height: ${e(`--text-heading-${a}-leading`)};
34
+ }`);t.push(` :where(p) {
35
+ font-family: var(--font-family-body);
36
+ font-size: ${e("--text-body-size")};
37
+ font-weight: ${e("--text-body-weight")};
38
+ line-height: ${e("--text-body-leading")};
39
+ color: var(--color-text-primary);
40
+ }`),t.push(` :where(small) {
41
+ font-size: ${e("--text-supporting-size")};
42
+ font-weight: ${e("--text-supporting-weight")};
43
+ line-height: ${e("--text-supporting-leading")};
44
+ color: var(--color-text-secondary);
45
+ }`),t.push(` :where(code, pre) {
46
+ font-family: var(--font-family-code);
47
+ font-size: ${e("--text-code-size")};
48
+ line-height: ${e("--text-code-leading")};
49
+ }`),t.push(` :where(hr) {
50
+ border: none;
51
+ border-top: 1px solid var(--color-border);
52
+ }`)}function w1(e,t,a){const s={primary:"var(--color-text-primary)",secondary:"var(--color-text-secondary)",disabled:"var(--color-text-disabled)",placeholder:"var(--color-text-secondary)",accent:"var(--color-text-accent)"},i="text"in e,c="heading"in e,u="link"in e;if(i||c||u)for(const[d,f]of Object.entries(s))i&&t.push(` ${lu("text",ru(`color:${d}`),a)} { color: ${f}; }`),c&&t.push(` ${lu("heading",ru(`color:${d}`),a)} { color: ${f}; }`),u&&t.push(` ${lu("link",ru(`color:${d}`),a)} { color: ${f}; }`)}const _D={"4xs":"var(--font-size-4xs)","3xs":"var(--font-size-3xs)","2xs":"var(--font-size-2xs)",xsm:"var(--font-size-xs)",sm:"var(--font-size-sm)",base:"var(--font-size-base)",lg:"var(--font-size-lg)",xl:"var(--font-size-xl)","2xl":"var(--font-size-2xl)","3xl":"var(--font-size-3xl)","4xl":"var(--font-size-4xl)"};function S1(e,t,a){if("text"in e)for(const[s,i]of Object.entries(_D)){const c=ru(`size:${s}`);t.push(` ${lu("text",c,a)} { font-size: ${i}; }`)}}function PD(e,t){const a=DD(e),s=[],i=[];for(const c of a)c.trimStart().startsWith(":where(")?s.push(c):i.push(c);return{component:i,prose:s}}function BD(e,t){const a=[],s=y1(e.name),i=v1();for(const u of["dark","light"]){const d=u==="dark"?e.__onDark:e.__onLight;if(!d)continue;const f=u==="dark"?"onDark.":"onLight.",g=Object.entries(d.tokens);if(g.length>0){const y=sf(g,`${f}tokens`,i);a.push(` ${H4(u)} {
53
+ ${y}
54
+ }`)}d.components&&(k1(d.components,a,{resetInheritedPaddingSpecificity:!0,surface:u,sink:i,location:f}),w1(d.components,a,u),S1(d.components,a,u),yx(d.components,a,{surface:u,inheritedComponents:e.components}))}if(a.length===0)return"";const c=a.join(`
55
+
56
+ `);return`@scope (${s}) to (${tm}) {
57
+ ${c}
58
+ }`}function FD(e,t,a){const s=[],i=G4(e,t,a);return i!==null&&s.push(i),e.components&&(k1(e.components,s,{resetInheritedPaddingSpecificity:!0,sink:a,location:t}),w1(e.components,s),S1(e.components,s)),s}function qD(e){const t=e?.heading;return t!==null&&typeof t=="object"&&!Array.isArray(t)}function ES(e,t,a){return`@media ${e} {
59
+ @scope (${a}) to (${tm}) {
60
+ ${t.map(UD).join(`
61
+
62
+ `)}
63
+ }
64
+ }`}function HD(e,t){const a=v1(),s=e.__adaptations===void 0?void 0:L4(e.name,e.__adaptations,void 0),i=e.__adaptationRules??(s?D4(e.name,s,e.__axes??{},e.tokens,e.localTokens,e.components):void 0);if(!i||i.length===0)return{prose:"",component:""};const c=y1(e.name),u=[],d=i.some(f=>qD(f.components));for(const[f,g]of i.entries()){const y=FD(g,`adaptations[${f}].`,a);y.length!==0&&u.push(ES(g.query,y,c))}if(d){const f=[];yx(e.components??{},f,{forceAll:!0}),u.push(`@scope (${c}) to (${tm}) {
65
+ ${f.join(`
66
+
67
+ `)}
68
+ }`);for(const g of i){const y=[];yx(g.components??{},y,{authoredOnly:!0}),y.length>0&&u.push(ES(g.query,y,c))}}return{prose:"",component:u.join(`
69
+
70
+ `)}}function UD(e){return` ${e}`}function VD(e,t){const{component:a,prose:s}=PD(e),i=y1(e.name),c=tm;let u="";if(s.length>0){const y=s.join(`
71
+
72
+ `);u=`@scope (${i}) to (${c}) {
73
+ ${y}
74
+ }`}let d="";if(a.length>0){const y=a.join(`
75
+
76
+ `);d=`@scope (${i}) to (${c}) {
77
+ ${y}
78
+ }`}const f=HD(e);f.component&&(d=d?`${d}
79
+
80
+ ${f.component}`:f.component);const g=BD(e);return g&&(d=d?`${d}
81
+
82
+ ${g}`:g),{prose:u,component:d}}const E1={...MM,...zM,...NM,...LM,...DM,...OM,...IM,..._M,...PM,...BM,...FM,...qM,...HM,...bD};function GD(e){if(e===void 0)return"undefined";if(e===null)return"null";if(typeof e!="object")return typeof e;const t=Object.keys(e);return`an object with keys [${t.slice(0,4).join(", ")}${t.length>4?", …":""}]`}function K4(e){if("extends"in e&&!KD(e.extends))throw new Error(`defineTheme("${e.name}"): \`extends\` must be a theme from defineTheme(), got ${GD(e.extends)}. Check that the import naming your base theme resolves to its source and exports that name — a generated \`<theme>.js\` artifact sitting next to the source exports \`<name>Theme\`, not the source's own export.`);const t=e.extends,a={typography:e.typography,color:e.color,radius:e.radius,motion:e.motion,syntax:e.syntax,tokens:e.tokens,components:e.components},s={typography:e.typography,color:e.color,radius:e.radius,motion:e.motion},i=t?{tokens:t.tokens,components:t.components}:void 0,{tokens:c,components:u}=$4(a,i),d=uS("dark",e.onDark,t?.__onDark),f=uS("light",e.onLight,t?.__onLight),g=XL(e,t,c,E1),y=mD(t?.__axes,s),b=L4(e.name,t?.__adaptations,e.adaptations),k=D4(e.name,b,y,c,g?.localTokens,u),C=e.icons&&t?.icons?{...t.icons,...e.icons}:e.icons??t?.icons,w=e.indicators&&t?.indicators?{...t.indicators,...e.indicators}:e.indicators??t?.indicators,v={name:e.name,tokens:c,...g?{localTokens:g.localTokens,__localTokenOwners:g.owners,__localTokenLineage:g.lineage}:{},components:u,icons:C,indicators:w,__inputTokens:t?.__inputTokens||e.tokens?{...t?.__inputTokens,...e.tokens}:void 0,__onDark:d,__onLight:f,__adaptations:b,__adaptationRules:k,__axes:y};return _4(v),v}function KD(e){return typeof e=="object"&&e!==null&&"name"in e&&"tokens"in e&&!("styles"in e)}function WD(e){return`var(${e})`}Object.fromEntries(Object.keys(E1).map(e=>[e,WD(e)]));function C1(e){let t=0,a=null,s=!1;for(let i=0;i<e.length;i++){const c=e[i];if(a!==null){s?s=!1:c==="\\"?s=!0:c===a&&(a=null);continue}if(c==='"'||c==="'"){a=c;continue}if(c==="("){t++;continue}if(c===")"){t=Math.max(0,t-1);continue}if(c===","&&t===0)return[e.slice(0,i).trim(),e.slice(i+1).trim()]}return null}function YD(e){const t=e.trim(),a="light-dark(";if(!t.startsWith(a)||!t.endsWith(")"))return null;const s=t.slice(a.length,-1);return C1(s)}function d0(e,t){if(Array.isArray(e))return t==="dark"?e[1]:e[0];const a=YD(e);return a!==null?t==="dark"?a[1]:a[0]:e}function W4(e,t){let a=0;for(let s=t;s<e.length;s++){const i=e[s];if(i==="(")a++;else if(i===")"&&(a--,a===0))return s}return-1}function CS(e){const t=e.trim(),a=t.match(/\s+([\d.]+)%$/);return a?{color:t.slice(0,a.index).trim(),percentage:parseFloat(a[1])}:{color:t,percentage:null}}function XD(e){const t=e.match(/^in\s+([\w-]+)\s*,\s*(.+)$/s);if(!t)return null;const[,a,s]=t;if(a.toLowerCase()!=="srgb")return null;const i=C1(s);if(i===null)return null;const c=CS(i[0]),u=CS(i[1]);if(c===null||u===null)return null;const d=ef(c.color),f=ef(u.color);if(d===null||f===null)return null;let g,y;c.percentage!==null&&u.percentage!==null?(g=c.percentage,y=u.percentage):c.percentage!==null?(g=c.percentage,y=100-g):u.percentage!==null?(y=u.percentage,g=100-y):(g=50,y=50);const b=g+y;if(b<=0)return null;const k=g/b,C=y/b,w=b<100?b/100:1,v=k*d.a+C*f.a,S=(z,L)=>k*z*d.a+C*L*f.a,T=S(d.r,f.r),E=S(d.g,f.g),j=S(d.b,f.b),$=v===0?{r:0,g:0,b:0}:{r:T/v,g:E/v,b:j/v};return EC({...$,a:v*w})}function gb(e){const t=e.indexOf("color-mix(");if(t===-1)return e;const a=t+9,s=W4(e,a);if(s===-1)return e;const i=gb(e.slice(a+1,s)),u=XD(i)??`color-mix(${i})`;return e.slice(0,t)+u+gb(e.slice(s+1))}function yb(e,t,a,s){const i=e.indexOf("var(");if(i===-1)return e;const c=i+3,u=W4(e,c);if(u===-1)return e;const d=e.slice(c+1,u),f=C1(d),g=(f?f[0]:d).trim(),y=f?f[1]:null;let b;s.has(g)?b=e.slice(i,u+1):g in t?(s.add(g),b=Y4(g,t,a,s),s.delete(g)):y!==null?b=yb(y.trim(),t,a,s):b=e.slice(i,u+1);const k=yb(e.slice(u+1),t,a,s);return e.slice(0,i)+b+k}function ZD(e,t,a,s){if(!e.includes("var(")&&!e.includes("color-mix("))return e;const i=yb(e,t,a,s);return gb(i)}function Y4(e,t,a,s){if(e in a)return a[e];const i=t[e];if(i===void 0)return"";const c=ZD(i,t,a,s);return a[e]=c,c}function $S(e){const t={};for(const a of Object.keys(e))Y4(a,e,t,new Set);return t}function QD(e,t){const{mode:a}=t,s={};for(const[i,c]of Object.entries(E1))s[i]=d0(c,a);if(e==null)return $S(s);for(const[i,c]of Object.entries(e.tokens))s[i]=d0(c,a);if(e.__inputTokens)for(const[i,c]of Object.entries(e.__inputTokens))c!==void 0&&(s[i]=d0(c,a));return $S(s)}function nm(e,t=!1){const a=x.useCallback(c=>{const u=window.matchMedia(e);return u.addEventListener("change",c),()=>u.removeEventListener("change",c)},[e]),s=x.useCallback(()=>window.matchMedia(e).matches,[e]),i=x.useCallback(()=>t,[t]);return x.useSyncExternalStore(a,s,i)}const Ef=x.createContext(null);Ef.displayName="ThemeContext";function JD(){if(typeof document>"u")return null;const e=document.documentElement.getAttribute("data-theme");return e==="light"||e==="dark"?e:null}function eO(){return null}function tO(){return typeof document>"u"?null:document.documentElement.getAttribute(Ea("theme"))}function nO(){return null}function X4(){return null}const Pd=new Set;let Md=null;const Bd=new Set;let zd=null;function rO(){for(const e of Pd)e()}function aO(e){return Pd.add(e),Pd.size===1&&typeof MutationObserver<"u"&&(Md=new MutationObserver(rO),Md.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})),()=>{Pd.delete(e),Pd.size===0&&Md&&(Md.disconnect(),Md=null)}}function sO(){for(const e of Bd)e()}function oO(e){return Bd.add(e),Bd.size===1&&typeof MutationObserver<"u"&&(zd=new MutationObserver(sO),zd.observe(document.documentElement,{attributes:!0,attributeFilter:[Ea("theme")]})),()=>{Bd.delete(e),Bd.size===0&&zd&&(zd.disconnect(),zd=null)}}function Z4(){return()=>{}}function iO(e){return x.useSyncExternalStore(e?Z4:aO,e?X4:JD,eO)}function $1(e){return x.useSyncExternalStore(e?Z4:oO,e?X4:tO,nO)}function Q4(){const e=x.use(Ef),t=e!=null,a=$1(t);return e?.theme.name??a}function lO(){const e=x.use(Ef),t=e!=null,a=$1(t);return e?.theme??Jx(a)??void 0}function j1(){const e=x.use(Ef),t=e!=null,a=iO(t),s=$1(t),i=nm("(prefers-color-scheme: dark)"),c=e?.mode??a??"system",u=e?.theme??Jx(s),d=c==="system"?i?"dark":"light":c,f=x.useMemo(()=>QD(u,{mode:d}),[u,d]),g=x.useCallback(b=>f[b]??"",[f]),y=u?.name??"default";return x.useMemo(()=>({name:y,mode:d,token:g,tokens:f}),[y,d,g,f])}const On={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em","aria-hidden":!0},Fc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-hidden":!0},cO={close:p.jsx("svg",{...On,children:p.jsx("path",{d:"M6 6l12 12M6 18L18 6"})}),chevronDown:p.jsx("svg",{...On,children:p.jsx("path",{d:"M6 9l6 6 6-6"})}),"numberInput:stepperDown":p.jsx("svg",{...On,children:p.jsx("path",{d:"M7.5 9.75l4.5 4.5 4.5-4.5"})}),chevronLeft:p.jsx("svg",{...On,children:p.jsx("path",{d:"M15 6l-6 6 6 6"})}),chevronRight:p.jsx("svg",{...On,children:p.jsx("path",{d:"M9 6l6 6-6 6"})}),chevronsLeft:p.jsx("svg",{...On,children:p.jsx("path",{d:"M18 6l-6 6 6 6M11 6l-6 6 6 6"})}),chevronsRight:p.jsx("svg",{...On,children:p.jsx("path",{d:"M6 6l6 6-6 6M13 6l6 6-6 6"})}),check:p.jsx("svg",{...On,children:p.jsx("path",{d:"M5 13l4 4L19 7"})}),success:p.jsx("svg",{...Fc,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm4.06 6.56a.75.75 0 00-1.12-1l-3.94 4.4-1.94-1.94a.75.75 0 00-1.06 1.06l2.5 2.5a.75.75 0 001.09-.03l4.47-5z"})}),error:p.jsx("svg",{...Fc,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm-2.47 5.47a.75.75 0 00-1.06 1.06L10.94 12l-2.47 2.47a.75.75 0 101.06 1.06L12 13.06l2.47 2.47a.75.75 0 101.06-1.06L13.06 12l2.47-2.47a.75.75 0 00-1.06-1.06L12 10.94l-2.47-2.47z"})}),warning:p.jsx("svg",{...Fc,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.29 3.86L2.07 19.05A2 2 0 003.78 22h16.44a2 2 0 001.71-2.95L13.71 3.86a2 2 0 00-3.42 0zM12 9a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 9zm0 9a1 1 0 100-2 1 1 0 000 2z"})}),info:p.jsx("svg",{...Fc,children:p.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm0 4a1 1 0 100 2 1 1 0 000-2zm-.75 3.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5z"})}),calendar:p.jsxs("svg",{...On,children:[p.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),p.jsx("path",{d:"M16 2v4M8 2v4M3 10h18"})]}),clock:p.jsxs("svg",{...On,children:[p.jsx("circle",{cx:"12",cy:"12",r:"9"}),p.jsx("path",{d:"M12 7v5l3 3"})]}),externalLink:p.jsxs("svg",{...On,children:[p.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),p.jsx("path",{d:"M15 3h6v6"}),p.jsx("path",{d:"M10 14L21 3"})]}),menu:p.jsx("svg",{...On,strokeWidth:2,children:p.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),moreHorizontal:p.jsxs("svg",{...Fc,children:[p.jsx("circle",{cx:"5",cy:"12",r:"1.5"}),p.jsx("circle",{cx:"12",cy:"12",r:"1.5"}),p.jsx("circle",{cx:"19",cy:"12",r:"1.5"})]}),search:p.jsxs("svg",{...On,children:[p.jsx("circle",{cx:"11",cy:"11",r:"8"}),p.jsx("path",{d:"M21 21l-4.35-4.35"})]}),upload:p.jsx("svg",{...On,children:p.jsx("path",{d:"M12 16V4m0 0L7 9m5-5l5 5M4 15v4a2 2 0 002 2h12a2 2 0 002-2v-4"})}),arrowUp:p.jsx("svg",{...On,children:p.jsx("path",{d:"M12 19V5m0 0l-7 7m7-7l7 7"})}),arrowDown:p.jsx("svg",{...On,children:p.jsx("path",{d:"M12 5v14m0 0l7-7m-7 7l-7-7"})}),arrowsUpDown:p.jsx("svg",{...On,children:p.jsx("path",{d:"M3 7.5L7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})}),funnel:p.jsx("svg",{...On,children:p.jsx("path",{d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0112 3z"})}),eyeSlash:p.jsx("svg",{...On,children:p.jsx("path",{d:"M3.98 8.223A10.477 10.477 0 001.934 12c1.292 4.338 5.31 7.5 10.066 7.5.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}),viewColumns:p.jsx("svg",{...On,children:p.jsx("path",{d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125z"})}),copy:p.jsxs("svg",{...On,children:[p.jsx("path",{d:"M8 4v12a2 2 0 002 2h8a2 2 0 002-2V7.242a2 2 0 00-.602-1.43L16.083 2.57A2 2 0 0014.685 2H10a2 2 0 00-2 2z"}),p.jsx("path",{d:"M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2"})]}),checkDouble:p.jsxs("svg",{...On,children:[p.jsx("path",{d:"M2 13l4 4L14 7"}),p.jsx("path",{d:"M9 13l4 4L21 7"})]}),wrench:p.jsx("svg",{...On,children:p.jsx("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})}),stop:p.jsx("svg",{...Fc,children:p.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),microphone:p.jsxs("svg",{...On,children:[p.jsx("path",{d:"M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z"}),p.jsx("path",{d:"M19 10v1a7 7 0 01-14 0v-1"}),p.jsx("path",{d:"M12 18v4m-4 0h8"})]})};let uO={};function dO(e){return e==null?null:typeof e=="string"?Jx(e)?.icons??null:e.icons??null}function fO(e,t){return dO(t)?.[e]??uO[e]??cO[e]}const J4={root:{kmuXW:"x2lah0s",$$css:!0},span:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0}},e$={primary:{kMwMTN:"xtbr613",$$css:!0},secondary:{kMwMTN:"xv9yike",$$css:!0},tertiary:{kMwMTN:"xv9yike",$$css:!0},disabled:{kMwMTN:"xqa6c3m",$$css:!0},accent:{kMwMTN:"xqwr325",$$css:!0},success:{kMwMTN:"xtjic6",$$css:!0},error:{kMwMTN:"xjt36v0",$$css:!0},warning:{kMwMTN:"xs3pv69",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0},blue:{kMwMTN:"x1fns2mt",$$css:!0},red:{kMwMTN:"xeffzf7",$$css:!0},green:{kMwMTN:"xmxeech",$$css:!0},gray:{kMwMTN:"x1eyinzz",$$css:!0},cyan:{kMwMTN:"x157w0xa",$$css:!0},teal:{kMwMTN:"x1f3zxcb",$$css:!0},yellow:{kMwMTN:"x1g6zdft",$$css:!0},orange:{kMwMTN:"xxu74a4",$$css:!0},pink:{kMwMTN:"x1kxxfg5",$$css:!0},purple:{kMwMTN:"xzdw94u",$$css:!0}};function hO(e){return e!=null&&e!==""?{role:"img","aria-label":e}:{"aria-hidden":"true"}}function jt({icon:e,color:t="inherit",size:a,label:s,ref:i,className:c,style:u,xstyle:d,...f}){const g=HN(a),y=hO(s);if(typeof e=="string")return p.jsx(pO,{name:e,color:t,size:g,a11yProps:y,className:c,style:u,xstyle:d,spanProps:f});const b=e;return p.jsx(b,{ref:i,...y,...Te(Ee("icon",{size:g,color:t}),Se(J4.root,e$[t],UN[g],d),c??void 0,u),...f})}jt.displayName="Icon";function pO({name:e,color:t,size:a,a11yProps:s,className:i,style:c,xstyle:u,spanProps:d}){const f=Q4(),g=fO(e,f);if(g==null)return null;const y=d??{};return p.jsx("span",{...s,...y,...Te(Ee("icon",{size:a,color:t}),Se(J4.span,e$[t],h4[a],u),i??void 0,c),children:g})}function Is(e,t){return typeof e=="string"?p.jsx(jt,{icon:e,...t}):typeof e=="function"||typeof e=="object"&&e!==null&&"render"in e?p.jsx(jt,{icon:e,...t}):e}const xO={isMobile:!1,isMobileNavOpen:!1,toggleMobileNav:()=>{},openMobileNav:()=>{},closeMobileNav:()=>{},isMobileNavEnabled:!1,hasAutoToggle:!0},T1=x.createContext(xO);T1.displayName="AppShellMobileContext";function Pl(){return x.use(T1)}function R1({ref:e,children:t,label:a,"data-testid":s,xstyle:i,className:c,style:u}){const d=pn(),f=a??d("@astryx.mobileNav.toggle.open"),{isMobile:g,isMobileNavEnabled:y,isMobileNavOpen:b,mobileNavId:k,toggleMobileNav:C}=Pl();return!g||!y?null:p.jsx(Bt,{ref:e,variant:"ghost",label:f,icon:t??p.jsx(jt,{icon:"menu",color:"inherit"}),onClick:C,"aria-expanded":b,"aria-controls":k||void 0,"data-testid":s??"mobile-nav-toggle",xstyle:i,className:c,style:u,isIconOnly:!0})}R1.displayName="MobileNavToggle";const Jc=x.createContext("default");Jc.displayName="SideNavRenderContext";function t$(){return x.use(Jc)}const bb=x.createContext("default");bb.displayName="TopNavRenderContext";const vb=x.createContext(null);vb.displayName="TopNavMobileContentContext";const mO=typeof Nx.Activity<"u",gO=mO?({mode:e,children:t})=>p.jsx(Nx.Activity,{mode:e,children:t}):({children:e})=>p.jsx(p.Fragment,{children:e}),f0="astryx-app-shell-main",ur={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kVAEAm:"x1n2onr6",kVQacm:"x7giv3",$$css:!0},variantWash:{kWkggS:"x1eiddq6",$$css:!0},variantSurface:{kWkggS:"x10xzikg",$$css:!0},variantSection:{kWkggS:"x10xzikg",$$css:!0},variantElevated:{kWkggS:"x1eiddq6",$$css:!0},rootFill:{kZKoxP:"xtdtrs8",$$css:!0},rootAuto:{kAzted:"x1ov3xa9",$$css:!0},skipLink:{kVAEAm:"x10l6tqk x1xrnuwo",kzqmXN:"x1i1rx1s x1jqxupm",kZKoxP:"xjm9jq1 x15cytp8",k8WAf4:"xt970qd xh2mrf5",kg3NbH:"xnjsko4 x1cf3d6k",kogj98:"xkdpibf x1y5lnwp",kVQacm:"xb3r6kr xomzh7y",kz4h6p:"x1hyvwdk x1rsz1da",khDVqt:"xuxw1ft x1hbpcn8",kMzoRj:"xc342km",k87sOh:"x13vifvy x1rw3289",kLqNvP:"x1o0tod xodanix",kWkggS:"x10xzikg",kMwMTN:"xjse4m1",kY2c9j:"x1q2oy4v",kybGjl:"x1hl2dhg",k63SB2:"x2mo6ok",kGuDYH:"xjm74w1",$$css:!0},mainFocusTarget:{kI3sdo:"x1uvtmcs",$$css:!0},contentBgSurface:{kWkggS:"x10xzikg",$$css:!0},contentBgWash:{kWkggS:"x1eiddq6",$$css:!0},contentBgTransparent:{kWkggS:"xjbqb8w",kHBbk8:"xc8icb0",$$css:!0},navAreaWash:{kWkggS:"x1eiddq6",$$css:!0},navAreaSurface:{kWkggS:"x10xzikg",$$css:!0},banner:{kmuXW:"x2lah0s",$$css:!0},headerSticky:{kVAEAm:"x7wzq59",k87sOh:"x13vifvy",kY2c9j:"x1vjfegm",$$css:!0},panelAutoFill:{kUk6DE:"x98rzlu",kVQacm:"xysyzu8",$$css:!0}};function A1({variant:e="elevated",banner:t,children:a,contentPadding:s,"data-testid":i,height:c="fill",mobileNav:u,sideNav:d,topNav:f,xstyle:g,className:y,style:b,ref:k,...C}){const w=pn(),v=lO(),S=u===!1,T=u!=null&&u!==!1&&typeof u=="object"&&!x.isValidElement(u)?u:null,E=T?.breakpoint??"md",j=u!=null&&u!==!1&&(x.isValidElement(u)||typeof u=="string")?u:null,$=T?.content??null,z=T?.hasToggle!==!1,L=T?.isOpen!==void 0,I=v?.__adaptations?.widthBreakpoints,N=E==="none"?"(width < 0px)":`(width < ${I?.[E]??M4[E]}px)`,D=nm(N,E==="none"?!1:T?.defaultIsMobile),[P,K]=x.useState(!1),oe=T?.isOpen??P,V=T?.onOpenChange,H=x.useCallback(Tt=>{L||K(Tt),V?.(Tt)},[L,V]),Z=x.useCallback(()=>{document.getElementById(f0)?.focus()},[]),F=c==="fill",q=c==="auto",Q=Zr(t),ae=Zr(f),J=Zr(d),te=!S&&(ae||J)&&j==null,fe=e==="section",B=e==="elevated",ee=e==="wash"||e==="elevated"?ur.navAreaWash:e==="surface"?ur.navAreaSurface:void 0,me=ee??(q&&e==="section"?ur.navAreaSurface:void 0),pe=e==="wash"?ur.contentBgWash:e==="elevated"&&ae&&J&&!D?ur.contentBgTransparent:e==="surface"||e==="elevated"?ur.contentBgSurface:void 0,ve=ee??ur.navAreaSurface,ye=x.useRef(null),Oe=x.useRef(null);x.useEffect(()=>{if(!q||!ye.current||!Oe.current)return;const Tt=ye.current,Me=Oe.current,ut=()=>{const tn=Tt.getBoundingClientRect().height;Me.style.setProperty("--_app-shell-header-height",`${tn}px`)};return Jd(Tt,()=>ut())},[q]);const ie=J&&!D,$e=j!=null,Pe=te&&$!=null&&D,He=x.useId(),Ze=x.useMemo(()=>({isMobile:D,isMobileNavOpen:oe,mobileNavId:He,toggleMobileNav:()=>te&&H(!oe),openMobileNav:()=>te&&H(!0),closeMobileNav:()=>H(!1),isMobileNavEnabled:te,hasAutoToggle:z}),[D,oe,He,H,te,z]),Fe=J&&z?p.jsx(Jc,{value:"drawer-content",children:d}):null,Ie=J?p.jsx(Jc,{value:"drawer-content",children:d}):null,at=ae?D&&!S&&j==null?p.jsx(vb,{value:Fe,children:p.jsx(bb,{value:"mobile-bar",children:f})}):f:null,wt=ae||Q?p.jsxs(sx,{padding:0,hasDivider:fe&&ae,children:[Q&&p.jsx("div",{...Se(ur.banner,ee),children:t}),ae&&at]}):void 0,Nt=Zr(wt)?p.jsx("div",{ref:ye,role:"banner",...Te(Ee("app-shell-header",{variant:e}),Se(me,q&&ur.headerSticky)),children:wt}):void 0,gt=ie?p.jsx(RC,{padding:0,hasDivider:fe,isScrollable:F,...Ee("app-shell-sidenav",{variant:e}),xstyle:[ee,q&&ve,q&&ur.panelAutoFill],children:d}):void 0,st=gt!=null&&q?p.jsx("div",{className:"x2lah0s x7giv3 x7wzq59 xht72ud xpa73km x78zum5 xdt5ytf",children:gt}):gt,Lt=B&&ae&&ie,nt=p.jsx(Ii,{padding:s??0,role:"main",id:f0,tabIndex:-1,isScrollable:F,xstyle:[pe,ur.mainFocusTarget],children:a}),vt=p.jsxs("div",{...{0:{className:"xjp7ctv"},1:{className:"x1n2onr6 x78zum5 x98rzlu x2lwn1j x5yr21d"}}[!!Lt<<0],children:[Lt&&p.jsx("div",{className:"x10l6tqk x10a8y8t x10xzikg x183tx6i x47corl"}),nt]}),xt=!S&&z&&D&&!ae&&J?p.jsx("div",{role:Nt==null?"banner":void 0,...Te(Ee("app-shell-header",{variant:e}),Se(me,q&&ur.headerSticky)),children:p.jsx(sx,{padding:0,hasDivider:fe,children:p.jsxs("div",{className:"x78zum5 x6s0dn4 x1k15mir xf314gf",role:"navigation","aria-label":w("@astryx.appShell.mobileNavigation"),children:[p.jsx(Jc,{value:"topbar",children:d}),p.jsx(R1,{})]})})}):void 0;return p.jsx(T1,{value:Ze,children:p.jsxs("div",{...C,ref:Zn(k,Oe),"data-testid":i,...Te(Ee("app-shell",{variant:e}),Se(ur.root,e==="wash"?ur.variantWash:e==="surface"?ur.variantSurface:e==="section"?ur.variantSection:ur.variantElevated,F?ur.rootFill:ur.rootAuto,g),y,b),children:[p.jsx("a",{href:`#${f0}`,onClick:Z,...Xn.focusVisible(ur.skipLink),"data-testid":"skip-to-content",children:w("@astryx.appShell.skipToContent")}),p.jsx(Oi,{height:c,padding:0,header:p.jsxs(p.Fragment,{children:[Nt,xt]}),start:st,content:vt}),$e&&j,Pe&&$,D&&!S&&j==null&&!$&&p.jsxs(gO,{mode:oe?"visible":"hidden",children:[J&&!ae&&p.jsx(Jc,{value:"drawer",children:d}),ae&&p.jsx(vb,{value:Ie,children:p.jsx(bb,{value:"drawer",children:f})})]})]})})}A1.displayName="AppShell";function $a({icon:e,...t}){return p.jsx(Bt,{...t,icon:e,isIconOnly:!0})}$a.displayName="IconButton";const jS={container:{kB7OPa:"x9f619",kZCmMZ:"x1c35znw",kwRFfy:"x64h4k7",kLKAdn:"x14m0hsi",kGO01o:"xc1wllq","--layout-padding-own-outer-x":"x1vii845","--layout-padding-own-outer-y":"xojybgt",$$css:!0}},yO={containerPaddingInlineStart:{"--container-padding-inline-start":"xjmlhfd",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x1ihxwbr",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x1rqz8me",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x1omyuck",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x14rzhog",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"xjej9fs",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x4poyjn",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x1u1kw4e",$$css:!0}},bO={containerPaddingInlineStart:{"--container-padding-inline-start":"x19lemt0",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"xu1wldr",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"xnw7zt4",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"xek4msv",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x15i0zw9",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x1vw4zgg",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x1v3gmnx",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x15yx5hm",$$css:!0}},vO={containerPaddingInlineStart:{"--container-padding-inline-start":"x1tewnwq",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x11h1f2o",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x1g2kccc",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x1gvthzm",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x1hsjncj",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x1pui4bz",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x2so38",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"xinu7xd",$$css:!0}},kO={containerPaddingInlineStart:{"--container-padding-inline-start":"xv7mus7",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x1ui7op6",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x8qn3ha",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x1of45zw",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x11ixy8q",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x1iwhsh0",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"xp9icaw",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x10u54dy",$$css:!0}},wO={containerPaddingInlineStart:{"--container-padding-inline-start":"x1mndvw9",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"xlsqznw",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x18184ib",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x1g5mqay",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x18e7m0u",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"xc006j",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x1qbr0dm",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x1ek71mq",$$css:!0}},SO={card:yO,section:bO,dialog:vO,"bottom-sheet":kO,drawer:wO},EO={spacing0:{"--container-padding-inline-start":"x1gu2k80",$$css:!0},spacing0_5:{"--container-padding-inline-start":"x14ws0sr",$$css:!0},spacing1:{"--container-padding-inline-start":"x1cvlban",$$css:!0},spacing1_5:{"--container-padding-inline-start":"x176g23i",$$css:!0},spacing2:{"--container-padding-inline-start":"x1xlrr2o",$$css:!0},spacing3:{"--container-padding-inline-start":"xfdwxua",$$css:!0},spacing4:{"--container-padding-inline-start":"x1dlhslv",$$css:!0},spacing5:{"--container-padding-inline-start":"x1s81nki",$$css:!0},spacing6:{"--container-padding-inline-start":"x1ep0dkj",$$css:!0},spacing7:{"--container-padding-inline-start":"x157xojc",$$css:!0},spacing8:{"--container-padding-inline-start":"xw1diwv",$$css:!0},spacing9:{"--container-padding-inline-start":"xraca2a",$$css:!0},spacing10:{"--container-padding-inline-start":"xserb3f",$$css:!0},spacing11:{"--container-padding-inline-start":"xziclwo",$$css:!0},spacing12:{"--container-padding-inline-start":"x1iiwihq",$$css:!0}},CO={spacing0:{"--container-padding-inline-end":"x91ghl5",$$css:!0},spacing0_5:{"--container-padding-inline-end":"x1wz3t3y",$$css:!0},spacing1:{"--container-padding-inline-end":"x2oyxnl",$$css:!0},spacing1_5:{"--container-padding-inline-end":"xntetml",$$css:!0},spacing2:{"--container-padding-inline-end":"xcas3b9",$$css:!0},spacing3:{"--container-padding-inline-end":"xu0ipoa",$$css:!0},spacing4:{"--container-padding-inline-end":"xs0pscg",$$css:!0},spacing5:{"--container-padding-inline-end":"xgkj7vj",$$css:!0},spacing6:{"--container-padding-inline-end":"x94cj42",$$css:!0},spacing7:{"--container-padding-inline-end":"x11tj35w",$$css:!0},spacing8:{"--container-padding-inline-end":"x1b9k1pi",$$css:!0},spacing9:{"--container-padding-inline-end":"x19w02kr",$$css:!0},spacing10:{"--container-padding-inline-end":"xx5lg5w",$$css:!0},spacing11:{"--container-padding-inline-end":"x1nmgbqg",$$css:!0},spacing12:{"--container-padding-inline-end":"x1wsfsk2",$$css:!0}},$O={spacing0:{"--container-padding-block-start":"x1i3qcxz",$$css:!0},spacing0_5:{"--container-padding-block-start":"xvdf9ev",$$css:!0},spacing1:{"--container-padding-block-start":"xnsckjb",$$css:!0},spacing1_5:{"--container-padding-block-start":"x1kbx601",$$css:!0},spacing2:{"--container-padding-block-start":"xa8b4fq",$$css:!0},spacing3:{"--container-padding-block-start":"x11k4f5r",$$css:!0},spacing4:{"--container-padding-block-start":"xm01sq8",$$css:!0},spacing5:{"--container-padding-block-start":"xp8wdkl",$$css:!0},spacing6:{"--container-padding-block-start":"x1hmud4d",$$css:!0},spacing7:{"--container-padding-block-start":"x1c00sag",$$css:!0},spacing8:{"--container-padding-block-start":"xfv60at",$$css:!0},spacing9:{"--container-padding-block-start":"x14fzdu7",$$css:!0},spacing10:{"--container-padding-block-start":"x17h9kl7",$$css:!0},spacing11:{"--container-padding-block-start":"x1rdjxae",$$css:!0},spacing12:{"--container-padding-block-start":"xecwdl6",$$css:!0}},jO={spacing0:{"--container-padding-block-end":"xkunwnr",$$css:!0},spacing0_5:{"--container-padding-block-end":"x1cao3zv",$$css:!0},spacing1:{"--container-padding-block-end":"x57a7ii",$$css:!0},spacing1_5:{"--container-padding-block-end":"xv53x8y",$$css:!0},spacing2:{"--container-padding-block-end":"x1lsgcmx",$$css:!0},spacing3:{"--container-padding-block-end":"x1q3ppug",$$css:!0},spacing4:{"--container-padding-block-end":"x4hfsld",$$css:!0},spacing5:{"--container-padding-block-end":"xbib2ws",$$css:!0},spacing6:{"--container-padding-block-end":"x1q8d17g",$$css:!0},spacing7:{"--container-padding-block-end":"x1yqogew",$$css:!0},spacing8:{"--container-padding-block-end":"x8lgq76",$$css:!0},spacing9:{"--container-padding-block-end":"x1f7f9rt",$$css:!0},spacing10:{"--container-padding-block-end":"x15vxphk",$$css:!0},spacing11:{"--container-padding-block-end":"x4bg2x9",$$css:!0},spacing12:{"--container-padding-block-end":"x186mjxr",$$css:!0}},TO={spacing0:{"--layout-padding-outer-x":"xswhm3q",$$css:!0},spacing0_5:{"--layout-padding-outer-x":"xihiwg7",$$css:!0},spacing1:{"--layout-padding-outer-x":"xc96xmq",$$css:!0},spacing1_5:{"--layout-padding-outer-x":"x1u93lgd",$$css:!0},spacing2:{"--layout-padding-outer-x":"x15dxnc0",$$css:!0},spacing3:{"--layout-padding-outer-x":"xadgj3j",$$css:!0},spacing4:{"--layout-padding-outer-x":"x1v56qcf",$$css:!0},spacing5:{"--layout-padding-outer-x":"x1nzs0gl",$$css:!0},spacing6:{"--layout-padding-outer-x":"x1c3n52a",$$css:!0},spacing7:{"--layout-padding-outer-x":"x1gfiokx",$$css:!0},spacing8:{"--layout-padding-outer-x":"x1t3kfz",$$css:!0},spacing9:{"--layout-padding-outer-x":"xzr4qsh",$$css:!0},spacing10:{"--layout-padding-outer-x":"x1jdf5a4",$$css:!0},spacing11:{"--layout-padding-outer-x":"x1hct0t0",$$css:!0},spacing12:{"--layout-padding-outer-x":"x11cyqoe",$$css:!0}},RO={spacing0:{"--layout-padding-outer-y":"x1mzf5mb",$$css:!0},spacing0_5:{"--layout-padding-outer-y":"x1vj96e0",$$css:!0},spacing1:{"--layout-padding-outer-y":"x1gpfxoh",$$css:!0},spacing1_5:{"--layout-padding-outer-y":"xd3dqby",$$css:!0},spacing2:{"--layout-padding-outer-y":"x10pz7y9",$$css:!0},spacing3:{"--layout-padding-outer-y":"x1p6yq3h",$$css:!0},spacing4:{"--layout-padding-outer-y":"xx738ci",$$css:!0},spacing5:{"--layout-padding-outer-y":"x6yxws5",$$css:!0},spacing6:{"--layout-padding-outer-y":"x180vrwl",$$css:!0},spacing7:{"--layout-padding-outer-y":"x1q6rme1",$$css:!0},spacing8:{"--layout-padding-outer-y":"xid7e43",$$css:!0},spacing9:{"--layout-padding-outer-y":"x1t5kicu",$$css:!0},spacing10:{"--layout-padding-outer-y":"x26l4wa",$$css:!0},spacing11:{"--layout-padding-outer-y":"x10zktp0",$$css:!0},spacing12:{"--layout-padding-outer-y":"x1yz3n6a",$$css:!0}},AO={spacing0:{"--layout-padding-inner-x":"xj1bl4l",$$css:!0},spacing0_5:{"--layout-padding-inner-x":"xlriy2h",$$css:!0},spacing1:{"--layout-padding-inner-x":"x6uuyak",$$css:!0},spacing1_5:{"--layout-padding-inner-x":"xd38f90",$$css:!0},spacing2:{"--layout-padding-inner-x":"xxqksqd",$$css:!0},spacing3:{"--layout-padding-inner-x":"x1fyui2f",$$css:!0},spacing4:{"--layout-padding-inner-x":"x1i2ajwi",$$css:!0},spacing5:{"--layout-padding-inner-x":"x1tac27u",$$css:!0},spacing6:{"--layout-padding-inner-x":"x1ntgf3t",$$css:!0},spacing7:{"--layout-padding-inner-x":"xhjd9tl",$$css:!0},spacing8:{"--layout-padding-inner-x":"xn7c84u",$$css:!0},spacing9:{"--layout-padding-inner-x":"xeqkbsz",$$css:!0},spacing10:{"--layout-padding-inner-x":"x1vf4qco",$$css:!0},spacing11:{"--layout-padding-inner-x":"xsmamsf",$$css:!0},spacing12:{"--layout-padding-inner-x":"x2xk2xj",$$css:!0}},MO={spacing0:{"--layout-padding-inner-y":"xwuefyo",$$css:!0},spacing0_5:{"--layout-padding-inner-y":"x180h0y5",$$css:!0},spacing1:{"--layout-padding-inner-y":"xmpug6m",$$css:!0},spacing1_5:{"--layout-padding-inner-y":"x1g8jpzm",$$css:!0},spacing2:{"--layout-padding-inner-y":"x1lksgje",$$css:!0},spacing3:{"--layout-padding-inner-y":"x4j7gld",$$css:!0},spacing4:{"--layout-padding-inner-y":"x1s3ehtl",$$css:!0},spacing5:{"--layout-padding-inner-y":"x1rj5eim",$$css:!0},spacing6:{"--layout-padding-inner-y":"x1ftgg6u",$$css:!0},spacing7:{"--layout-padding-inner-y":"x1ho74vh",$$css:!0},spacing8:{"--layout-padding-inner-y":"xm2cs6f",$$css:!0},spacing9:{"--layout-padding-inner-y":"x1vsq92b",$$css:!0},spacing10:{"--layout-padding-inner-y":"x18gbwmk",$$css:!0},spacing11:{"--layout-padding-inner-y":"x14zymzj",$$css:!0},spacing12:{"--layout-padding-inner-y":"xzfpkx9",$$css:!0}},zO={containerMaxHeight:e=>[{"--container-max-height":e!=null?"x18nyedi":e,$$css:!0},{"--x---container-max-height":e??void 0}]};function M1({padding:e="spacing4",paddingOuterX:t,paddingOuterY:a,paddingInnerX:s,paddingInnerY:i,useThemeDefault:c,maxHeight:u}){const d=t??e,f=a??e,g=s??e,y=i??e,b=u?zO.containerMaxHeight(u):null;if(c){const k=SO[c];return[jS.container,k.containerPaddingInlineStart,k.containerPaddingInlineEnd,k.containerPaddingBlockStart,k.containerPaddingBlockEnd,k.layoutPaddingOuterX,k.layoutPaddingOuterY,k.layoutPaddingInnerX,k.layoutPaddingInnerY,b]}return[jS.container,EO[d],CO[d],$O[f],jO[f],TO[d],RO[f],AO[g],MO[y],b]}const NO={scrollable:{kVQacm:"xysyzu8",$$css:!0}};function rm({direction:e="vertical",hAlign:t,vAlign:a,justify:s,align:i,gap:c,padding:u,paddingInline:d,paddingInlineStart:f,paddingInlineEnd:g,paddingBlock:y,paddingBlockStart:b,paddingBlockEnd:k,isScrollable:C,width:w,height:v,maxWidth:S,minHeight:T,wrap:E,as:j="div",xstyle:$,className:z,style:L,children:I,ref:N,...D}){const P=t??(e==="horizontal"?s:i),K=a??(e==="horizontal"?i:s),oe=e==="horizontal"?P:K,V=e==="horizontal"?K:P,H=f??d??u,Z=g??d??u,F=b??y??u,q=k??y??u,Q=Se(...rb({direction:e,crossAlign:V,mainAlign:oe,gap:c,wrap:E}),H!=null&&$C[H],Z!=null&&jC[Z],F!=null&&TC[F],q!=null&&u1[q],C&&NO.scrollable,$),ae={...w!=null&&{width:typeof w=="number"?`${w}px`:w},...v!=null&&{height:typeof v=="number"?`${v}px`:v},...S!=null&&{maxWidth:typeof S=="number"?`${S}px`:S},...T!=null&&{minHeight:typeof T=="number"?`${T}px`:T}};return x.createElement(j,{ref:N,...Te(Ee("stack",{direction:e,gap:c,wrap:E}),Q,z,{...L,...ae}),...D},I)}rm.displayName="Stack";function Ut({ref:e,justify:t,align:a,hAlign:s,vAlign:i,...c}){return p.jsx(rm,{...c,direction:"horizontal",hAlign:s??t,vAlign:i??a,ref:e})}Ut.displayName="HStack";function ct({ref:e,justify:t,align:a,hAlign:s,vAlign:i,...c}){return p.jsx(rm,{...c,direction:"vertical",hAlign:s??a,vAlign:i??t,ref:e})}ct.displayName="VStack";const LO={scrollable:{kVQacm:"xysyzu8",$$css:!0}};function Ni({crossAlignSelf:e,size:t,isScrollable:a,as:s="div",xstyle:i,className:c,style:u,children:d,ref:f,...g}){const y=Se(...bC({crossAlignSelf:e,size:t}),a&&LO.scrollable,i);return x.createElement(s,{ref:f,...Te(Ee("stack-item",{size:t}),y,c,u),...g},d)}Ni.displayName="StackItem";const h0={card:{"--_card-radius":"x2kkz0m",kaIpWk:"x153u1i6",k7Eaqz:"xeuugli",kVQacm:"x7giv3",kGVxlE:"x1p8z4y0",$$css:!0},withBorder:{kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"x14i3s5s",kZCmMZ:"xs19ii7",kwRFfy:"x12frdag",kLKAdn:"x1nex4ik",kGO01o:"xbv1mwh",$$css:!0},scrollable:{kVQacm:"xysyzu8",$$css:!0}},DO={default:{kWkggS:"x1de1mus",$$css:!0},transparent:{kWkggS:"xjbqb8w",$$css:!0},muted:{kWkggS:"xwmxj5m",$$css:!0},blue:{kWkggS:"x1o0wnni",$$css:!0},cyan:{kWkggS:"x1rgj867",$$css:!0},gray:{kWkggS:"xspzpui",$$css:!0},green:{kWkggS:"x1sqjeoo",$$css:!0},orange:{kWkggS:"x1e9xt6e",$$css:!0},pink:{kWkggS:"xnpoty2",$$css:!0},purple:{kWkggS:"x16i6n6f",$$css:!0},red:{kWkggS:"x1cibrc5",$$css:!0},teal:{kWkggS:"x1jtji5o",$$css:!0},yellow:{kWkggS:"x1bo7t0x",$$css:!0}},OO={none:{"--_card-elevation":"xw28qpl",$$css:!0},low:{"--_card-elevation":"x1nn8khe",$$css:!0},med:{"--_card-elevation":"x1ovzxg0",$$css:!0},high:{"--_card-elevation":"xnpe7fx",$$css:!0}},IO={sizing:(e,t,a,s)=>[{kzqmXN:e!=null?"x5lhr3w":e,kZKoxP:t!=null?"x16ye13r":t,ks0D6T:a!=null?"xf68679":a,kAzted:s!=null?"x82snj4":s,$$css:!0},{"--x-width":(i=>typeof i=="number"?i+"px":i??void 0)(e),"--x-height":(i=>typeof i=="number"?i+"px":i??void 0)(t),"--x-maxWidth":(i=>typeof i=="number"?i+"px":i??void 0)(a),"--x-minHeight":(i=>typeof i=="number"?i+"px":i??void 0)(s)}]};function Po({width:e,height:t,maxWidth:a,minHeight:s,children:i,padding:c,variant:u="default",elevation:d="none",xstyle:f,className:g,style:y,ref:b,...k}){const C=t!=null&&t!=="auto",v=c==null?void 0:c1[c];return p.jsx("div",{ref:b,...Te(Ee("card",{variant:u,elevation:d}),Se(h0.card,DO[u],OO[d],C&&h0.scrollable,IO.sizing(e??null,t??null,a??null,s??null),...M1(v==null?{useThemeDefault:"card"}:{paddingInnerX:v,paddingInnerY:v,paddingOuterX:v,paddingOuterY:v}),u==="default"&&h0.withBorder,f),g,y),...k,children:i})}Po.displayName="Card";const _O={section:{kWkggS:"x10xzikg",$$css:!0},transparent:{kWkggS:"xjbqb8w",$$css:!0},muted:{kWkggS:"xwmxj5m",$$css:!0}},TS={outer:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",keoZOQ:"xkibk3",k1K539:"xlayyun",$$css:!0},inner:{"--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",kZKoxP:"x5yr21d",$$css:!0}},gp={top:{kEafiO:"x178xt8z",kPef9Z:"x13fuv20",kLZC3w:"x1pc3f07",$$css:!0},bottom:{kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0},start:{k2ei4v:"xpilrb4",kVhnKS:"x1t7ytsu",kGJrpR:"x1j92z86",$$css:!0},end:{ke9TFa:"x1lun4ml",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}},PO={sizing:(e,t,a,s)=>[{kzqmXN:e!=null?"x5lhr3w":e,kZKoxP:t!=null?"x16ye13r":t,ks0D6T:a!=null?"xf68679":a,kAzted:s!=null?"x82snj4":s,$$css:!0},{"--x-width":(i=>typeof i=="number"?i+"px":i??void 0)(e),"--x-height":(i=>typeof i=="number"?i+"px":i??void 0)(t),"--x-maxWidth":(i=>typeof i=="number"?i+"px":i??void 0)(a),"--x-minHeight":(i=>typeof i=="number"?i+"px":i??void 0)(s)}]};function n$({variant:e="section",width:t,height:a,maxWidth:s,minHeight:i,children:c,dividers:u,padding:d,paddingInline:f,paddingInlineStart:g,paddingInlineEnd:y,paddingBlock:b,paddingBlockStart:k,paddingBlockEnd:C,xstyle:w,className:v,style:S,ref:T,...E}){const j=d==null,$=d??4,z=c1[$],L=Se(TS.outer,PO.sizing(t??null,a??null,s??null,i??null),w);return p.jsx("div",{ref:T,className:[L.className,v].filter(Boolean).join(" ")||void 0,style:S&&L.style?{...L.style,...S}:S||L.style,...E,children:p.jsx("div",{...Te(Ee("section",{variant:e}),Se(TS.inner,...M1(j?{useThemeDefault:"section"}:{paddingInnerX:z,paddingInnerY:z,paddingOuterX:z,paddingOuterY:z}),!j&&$!==4&&_l[$],!j&&$!==4&&Ml[$],!j&&$!==4&&Mi[$],!j&&$!==4&&_o[$],!j&&j9[$],f!=null&&S9[f],f!=null&&Ml[f],b!=null&&E9[b],b!=null&&Mi[b],b!=null&&_o[b],k!=null&&TC[k],k!=null&&Mi[k],C!=null&&u1[C],C!=null&&_o[C],g!=null&&$C[g],g!=null&&C9[g],y!=null&&jC[y],y!=null&&$9[y],_O[e],u?.includes("top")&&gp.top,u?.includes("bottom")&&gp.bottom,u?.includes("start")&&gp.start,u?.includes("end")&&gp.end)),children:c})})}n$.displayName="Section";const yp={footer:{kmuXW:"x2lah0s",$$css:!0},inner:{kB7OPa:"x9f619",ks0D6T:"xjl2t3p",kUOVxO:"xvueqy4",kZCmMZ:"xaku5ci",kwRFfy:"x19eyx77",kLKAdn:"xqty4a",kGO01o:"x1363qu6","--container-padding-inline-start":"xt2a87w","--container-padding-inline-end":"xhq06x6","--container-padding-block-start":"xjmgx01","--container-padding-block-end":"xfsxxt8",$$css:!0},fullBleed:{kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kLKAdn:"xexx8yu",kGO01o:"x18d9i69","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0},divider:{kEafiO:"x178xt8z",kPef9Z:"x13fuv20",kLZC3w:"x1pc3f07",$$css:!0}},BO={sizing:e=>[{kZKoxP:e!=null?"x16ye13r":e,$$css:!0},{"--x-height":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function am({children:e,hasDivider:t,height:a,label:s,padding:i,role:c,xstyle:u,className:d,style:f,ref:g,...y}){const b=x.use(qx),k=t??b?.defaultHasDividers??!1,C=i===0;return p.jsx("div",{ref:g,role:c,"aria-label":s,"data-divider":k||void 0,...Te(Ee("layout-footer"),Se(yp.footer,BO.sizing(a??null),k&&yp.divider,u),d,f),...y,children:p.jsx("div",{...Se(yp.inner,C&&yp.fullBleed,i!=null&&_l[i],i!=null&&Ml[i],i!=null&&Mi[i],i!=null&&_o[i]),children:e})})}am.displayName="LayoutFooter";const FO=x.lazy(async()=>kf(()=>Promise.resolve().then(()=>l$),void 0).then(e=>({default:e.Tooltip})));function qO(e){return e==="display-1"||e==="display-2"||e==="display-3"}const HO={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"};function _i({level:e,type:t,weight:a,accessibilityLevel:s,color:i="primary",display:c="block",maxLines:u=0,hasTruncateTooltip:d=!0,wordBreak:f,textWrap:g,justify:y="start",hasCapsize:b=!1,hasStrikethrough:k=!1,xstyle:C,className:w,style:v,children:S,ref:T,...E}){const j=HO[e],$=s&&s!==e?{"aria-level":s}:{},z=f??(u===1?"break-all":"break-word"),L=u>0||b?"block":c,I=t&&qO(t)?t:void 0,N=XC({maxLines:u}),D=typeof d=="string"?d:"above",P=u>0&&d!==!1&&N.isTruncated,K=x.useRef(null),oe=Zn(T,N.ref,K),V=u>1?{WebkitLineClamp:u}:void 0;return p.jsxs(p.Fragment,{children:[p.jsx(j,{ref:oe,...Te(Ee("heading",{level:e,color:i,type:t,weight:a}),Se(f1[ZC(i)],I?h1[I]:zz[e],I&&qC[I],a&&FC[a],u===1?dx.singleLine:u>1?dx.multiLine:HC[L],u>0&&UC[z],g&&VC[g],y!=="start"&&WC[y],b&&GC.enabled,k&&KC.strikethrough,C),w,{...v,...V}),...$,...E,children:S}),P&&p.jsx(x.Suspense,{fallback:null,children:p.jsx(FO,{anchorRef:K,content:p.jsx("span",{...Se(YC.content),children:N.fullText}),placement:D})})]})}_i.displayName="Heading";const RS={settle(){},release(){}};function r$(e){if(typeof window>"u"||typeof document>"u")return RS;const t=document.documentElement,a=t.clientWidth;if(a===0)return RS;const s=t.style.scrollbarGutter,i=e.style.paddingRight,c=e.getBoundingClientRect().width;let u=!1,d=!1,f=!1;return window.innerWidth>a&&(t.style.scrollbarGutter="stable",u=!0),{settle(){if(f)return;f=!0;const g=e.getBoundingClientRect().width-c;if(g<=0)return;const y=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${y+g}px`,d=!0},release(){d&&(e.style.paddingRight=i,d=!1),u&&(t.style.scrollbarGutter=s,u=!1)}}}const to={dialog:{kVAEAm:"xixxii4",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",kMzoRj:"xc342km",ksu8eU:"xng3xce",ks0D6T:"x1x1rfll",kskxy:"x7ab17h",kpwlN0:"x10a8y8t",kzqmXN:"xn9wirt",kZKoxP:"xtdtrs8",kWkggS:"xjbqb8w",kVQacm:"x7giv3",kZeWKH:"xish69e",kFalU9:"x1j4r261",kI3sdo:"x1a2a7pz",k1xSpc:"x1s85apg",k1ekBW:"xrgi2yo",kIyJzY:"x80gvsz",kzIqYQ:"xd00j3c",$$css:!0},open:{k1xSpc:"x78zum5",$$css:!0},backdrop:{kGyWv1:"xnixb3f",kba3nw:"x1abwkk1",k5sjJv:"xph5o2a",kND0Po:"x167zut7",k9an0g:"xft5bk6",kb4ib:"x15h3t91",kA5Tbj:"x1viac0w",$$css:!0},backdropOpen:{k5sjJv:"xb3n6bw xxiuuzi",$$css:!0},drawer:{kVAEAm:"x10l6tqk",k87sOh:"x13vifvy",krVfgx:"x1ey2m1c",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kWkggS:"x10xzikg",kB7OPa:"x9f619",kVQacm:"xb3r6kr",k1ekBW:"x11xpdln",kIyJzY:"x80gvsz",kAMwcw:"xlr8y92",kI3sdo:"x1a2a7pz",k6CgDc:"xzg1mie",$$css:!0},drawerStart:{kLqNvP:"x1o0tod",ke9TFa:"xw8tdv1",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",k3aq6I:"x5i6ehr xttggg",$$css:!0},drawerStartOpen:{k3aq6I:"xbryuvx x6mt36l x14gflnl",$$css:!0},drawerEnd:{kt4wiu:"xtijo5x",k2ei4v:"xgbv0en",kVhnKS:"x1t7ytsu",kGJrpR:"x1j92z86",k3aq6I:"xumwmo6 x1df3fe5",$$css:!0},drawerEndOpen:{k3aq6I:"xbryuvx x1yqmsfc x1lymnkk",$$css:!0},headerText:{keTefX:"x11g1kdw",$$css:!0}},UO={kzqmXN:"xn9wirt",ks0D6T:"xf68679",$$css:!0},VO={width:e=>[UO,{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(`${e}px`)}]},GO=250,KO=.6;function WO(e){const t=e.split(",").map(a=>{const s=a.trim(),i=Number.parseFloat(s);return Number.isFinite(i)?s.endsWith("ms")?i:s.endsWith("s")?i*1e3:null:null}).filter(a=>a!==null);return t.length?Math.min(...t):null}function YO(e){const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:GO,a=WO(window.getComputedStyle(e).transitionDuration);return a===null?t:a<=0?0:Math.min(t,a*KO)}function z1({isOpen:e,onOpenChange:t,children:a,header:s,width:i=320,side:c="auto",label:u,"data-testid":d,xstyle:f,className:g,style:y,onClick:b,ref:k,...C}){const w=pn(),v=Pl(),S=e??v.isMobileNavOpen,T=x.useId(),E=v.mobileNavId||T,j=x.useMemo(()=>t??(H=>{H?v.openMobileNav():v.closeMobileNav()}),[t,v]),$=x.useRef(null),z=x.useRef(null),L=x.useRef(null),I=x.useCallback(()=>{L.current&&(L.current.release(),L.current=null)},[]),[N,D]=x.useState(c==="auto"?"end":c);x.useEffect(()=>{if(S)if(c==="auto"){const H=document.activeElement;if(H&&H!==document.body){const Z=H.getBoundingClientRect(),F=Z.left+Z.width/2;D(F<window.innerWidth/2?"start":"end")}}else D(c)},[S,c]),x.useEffect(()=>{const H=$.current;if(H)return S?(L.current??=r$(document.documentElement),H.open||H.showModal(),document.documentElement.style.overflow="clip",L.current.settle()):H.open&&(document.documentElement.style.overflow="",I(),z.current=setTimeout(()=>{H.close()},YO(H))),()=>{z.current&&(clearTimeout(z.current),z.current=null),document.documentElement.style.overflow="",I()}},[S,I]),x.useEffect(()=>{const H=$.current;return()=>{H?.open&&H.close()}},[]);const{shouldDismissOnCloseRequest:P}=Wx({isActive:S,onDismiss:()=>j(!1)}),K=x.useCallback(H=>{H.preventDefault(),P()&&j(!1)},[j,P]),oe=x.useCallback(H=>{H.target===H.currentTarget&&j(!1)},[j]),V=N==="start";return p.jsx("dialog",{ref:Zn(k,$),id:E,...Te(Ee("mobile-nav",{side:N}),Se(xu.reset,mu.reset,to.dialog,tf.reset,S&&to.open,to.backdrop,S&&to.backdropOpen,f),g,y),...C,"data-testid":d,"aria-label":u??(typeof s=="string"?s:w("@astryx.mobileNav.navigation")),onClick:Jr(b,oe),onCancel:K,children:p.jsx(nf,{children:p.jsx(pu,{children:p.jsxs("div",{tabIndex:-1,...Se(to.drawer,VO.width(i),V&&to.drawerStart,V&&S&&to.drawerStartOpen,!V&&to.drawerEnd,!V&&S&&to.drawerEndOpen),children:[p.jsxs("div",{...{0:{className:"x78zum5 x6s0dn4 x1qughib x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh"},1:{className:"x78zum5 x6s0dn4 x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh x13a6bvl"}}[!s<<0],children:[typeof s=="string"?p.jsx(_i,{level:2,xstyle:to.headerText,children:s}):s??null,p.jsx(Bt,{variant:"ghost",label:w("@astryx.mobileNav.closeNavigation"),icon:p.jsx(jt,{icon:"close",color:"inherit"}),onClick:()=>j(!1),isIconOnly:!0})]}),p.jsx("div",{className:"x98rzlu x1odjw0f x6ikm8r xish69e xge0x1e xf314gf xce4md1",children:a})]})})})})}z1.displayName="MobileNav";const sm=x.createContext({isCollapsed:!1,toggle:()=>{},isCollapsible:!1});sm.displayName="SideNavCollapseContext";function N1(){return x.use(sm)}const p0={chevronMirror:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",$$css:!0},chevron:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",k1ekBW:"x11xpdln",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},chevronCollapsed:{k3aq6I:"x19jd1h0",$$css:!0}};function L1({ref:e,collapsible:t,handleRef:a,label:s,size:i,children:c,onClick:u,...d}){const f=pn(),{isCollapsed:g,toggle:y,isCollapsible:b}=XO(t,a),{isMobile:k}=Pl();return!b||k?null:p.jsx(Bt,{ref:e,label:s??f(g?"@astryx.sideNavCollapseButton.expandSidebar":"@astryx.sideNavCollapseButton.collapseSidebar"),variant:"ghost",size:i,...d,onClick:Jr(u,y),icon:c??p.jsx("span",{...Se(p0.chevronMirror,io.mirror),children:p.jsx(jt,{icon:"chevronLeft",size:"sm",color:"inherit",xstyle:[p0.chevron,g&&p0.chevronCollapsed]})}),isIconOnly:!0})}L1.displayName="SideNavCollapseButton";function XO(e,t){const a=N1(),{isCollapsed:s,onCollapsedChange:i}=e??{},c=x.useCallback(()=>i?.(!s),[s,i]),u=x.useCallback(()=>{t?.current?.getCollapseState()?.toggle()},[t]);if(e!=null)return{isCollapsed:s??!1,toggle:c,isCollapsible:!0};if(t==null)return a;const d=t.current?.getCollapseState()??null;return{isCollapsed:d?.isCollapsed??!1,toggle:u,isCollapsible:d?.isCollapsible??!0}}const ZO=50,QO=40,a$="astryx-resizable:";function qc(e,t,a,s){const i=Math.min(a,Math.max(t,e));if(s.length>0){let c=s[0],u=Math.abs(i-c);for(let d=1;d<s.length;d++){const f=Math.abs(i-s[d]);f<u&&(c=s[d],u=f)}return Math.min(a,Math.max(t,c))}return i}function JO(e){if(typeof window>"u")return null;try{const t=localStorage.getItem(a$+e);if(t==null)return null;const a=JSON.parse(t);if(typeof a=="number")return Number.isFinite(a)?a===0?{size:null,isCollapsed:!0}:{size:a,isCollapsed:null}:null;if(typeof a=="object"&&a!=null){const{size:s,isCollapsed:i}=a,c=typeof s=="number"&&Number.isFinite(s)&&s>0;if(c||i===!0)return{size:c?s:null,isCollapsed:i===!0}}}catch{}return null}function eI(e,t){if(!(typeof window>"u"))try{localStorage.setItem(a$+e,JSON.stringify(t))}catch{}}const x0=1200,tI=250,m0='Use a non-negative number of pixels, an exact "Npx" string, an exact "N%" string from 0% to 100%, pixel(value), or percent(value, {min: pixel(value)}) / percent(value, {max: pixel(value)}).',nI=/^(\d+(?:\.\d+)?)px$/,rI=/^(\d+(?:\.\d+)?)%$/;function aI(e){const t=nI.exec(e);if(t){const s=Number(t[1]);return Number.isFinite(s)?{kind:"px",value:s}:null}const a=rI.exec(e);if(a){const s=Number(a[1]);return Number.isFinite(s)&&s<=100?{kind:"percent",value:s}:null}return null}function kb(e){if(typeof e!="object"||e==null||Array.isArray(e))return null;const t=e;return t.type==="pixel"&&typeof t.value=="number"&&Number.isFinite(t.value)&&t.value>=0?t.value:null}function sI(e){if(Array.isArray(e))return null;const t=e;if(t.type!=="percent"||typeof t.value!="number"||!Number.isFinite(t.value)||t.value<0||t.value>100)return null;const a=t.min!==void 0,s=t.max!==void 0;if(a===s)return null;if(a){const c=kb(t.min);return c==null?null:{kind:"percent",value:t.value,min:c}}const i=kb(t.max);return i==null?null:{kind:"percent",value:t.value,max:i}}function g0(e){if(typeof e=="number")return Number.isFinite(e)&&e>=0?{kind:"px",value:e}:null;if(typeof e=="string")return aI(e);if(typeof e=="object"&&e!=null){const t=kb(e);return t==null?sI(e):{kind:"px",value:t}}return null}function y0(e){return e?.kind==="percent"}function oI(e,t){if(e.kind==="px")return e.value;if(t==null)return null;const a=Math.round(e.value/100*t);return e.min!==void 0?Math.max(a,e.min):e.max!==void 0?Math.min(a,e.max):a}function Ud(e){if(typeof e=="number"&&!Number.isFinite(e))return String(e);try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function b0(e){if(typeof e!="object"||e==null||Array.isArray(e))return Ud(e);const t=e;return t.type==="pixel"?`{"type":"pixel","value":${Ud(t.value)}}`:Ud(e)}function iI(e){if(typeof e=="object"&&e!=null&&!Array.isArray(e)){const t=e;if(t.type==="pixel")return b0(e);if(t.type==="percent"){const a=['"type":"percent"',`"value":${Ud(t.value)}`];return t.min!==void 0&&a.push(`"min":${b0(t.min)}`),t.max!==void 0&&a.push(`"max":${b0(t.max)}`),`{${a.join(",")}}`}}return Ud(e)}function v0(e,t,a,s,i,c,u){return e===void 0?s:e===1/0&&s===1/0?1/0:t==null?(u.current||(u.current=!0,ms("useResizable",`${i}: ${iI(e)} is not a size. ${c} Falling back to ${s}.`)),s):oI(t,a)??s}function AS(e,t,a){const s=a?.contentBoxSize?.[0];if(s)return t==="vertical"?s.blockSize:s.inlineSize;const i=typeof window>"u"?null:window.getComputedStyle(e);if(i==null)return null;const c=t==="vertical"?e.clientHeight-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom):e.clientWidth-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight);return Number.isFinite(c)?c:null}function s$(e){const{defaultSize:t,minSize:a,maxSize:s,containerRef:i,direction:c="horizontal",collapsible:u=!1,collapsedSize:d=QO,snaps:f,autoSaveId:g,defaultIsCollapsed:y,isCollapsed:b,onSizeChange:k,onCollapseChange:C}=e,w=x.useRef([]),v=f??w.current,S=a,T=s,E=g0(t),j=g0(a),$=g0(s),z=i!=null,L=g?JO(g):null,I=x.useRef(null),[,N]=x.useState(0),D=y0(E),P=y0(j)||y0($),K=L?.size==null&&D&&I.current?.isFinal!==!0,oe=z&&(P||K),V=!z&&P,H=x.useRef(null),[,Z]=x.useState(0),F=x.useRef(null),q=oe?H.current:null;Sr(()=>{if(!oe){H.current=null,F.current=null;return}const ft=i?.current??null;ft!==H.current&&(F.current=null,H.current=ft,Z(Ue=>Ue+1))});const Q=x.useCallback(ft=>!oe||q==null||q!==i?.current?()=>{}:Jd(q,Ue=>{F.current=AS(q,c,Ue),ft()}),[q,oe,c,i]),ae=x.useCallback(()=>!oe||q==null?(F.current=null,null):(F.current==null&&(F.current=AS(q,c)),F.current),[q,oe,c]),J=x.useSyncExternalStore(Q,ae,()=>null),se=x.useCallback(ft=>z||!V||typeof window>"u"?()=>{}:(window.addEventListener("resize",ft),()=>window.removeEventListener("resize",ft)),[z,V]),te=x.useSyncExternalStore(se,()=>typeof window>"u"?x0:window.innerWidth,()=>x0),fe=oe,B=J!=null&&J>0,ee=z?B?J:x0:te,me=fe?B:!0,pe=x.useRef(null),[ve,ye]=x.useState(0),Oe=pe.current??ee,ie=x.useRef(!1),$e=x.useRef(!1),Pe=x.useRef(!1),He=x.useRef(!1),Ze=v0(S,j,Oe,ZO,"minSize",m0,ie),Fe=v0(T,$,Oe,1/0,"maxSize",m0,$e);(I.current==null||!I.current.isFinal)&&(I.current={px:v0(t,E,Oe,tI,"defaultSize",m0,Pe),isFinal:me});const Ie=I.current.px,[at,wt]=x.useState(()=>L?.size!=null?L.size:me?qc(Ie,Ze,Fe,v):null);z&&!P&&me&&K&&at!=null&&N(ft=>ft+1),me&&at==null&&wt(qc(Ie,Ze,Fe,v));const[Nt,gt]=x.useState({min:Ze,max:Fe});me&&pe.current==null&&(Nt.min!==Ze||Nt.max!==Fe)&&(gt({min:Ze,max:Fe}),wt(ft=>ft==null?null:qc(ft,Ze,Fe,v)));const st=qc(at??Ie,Ze,Fe,v),[Lt,nt]=x.useState(()=>L?.isCollapsed??y??!1),vt=b!==void 0,St=u&&(vt?b:Lt),xt=x.useRef(st),Tt=x.useRef(St);Tt.current=St;const Me=x.useCallback(ft=>{vt||(Tt.current=ft,nt(ft))},[vt]);x.useEffect(()=>{Ze>Fe&&!He.current&&(He.current=!0,ms())},[Ze,Fe]),x.useEffect(()=>{g&&me&&eI(g,{size:st,isCollapsed:St})},[st,St,g,me]);const ut=x.useCallback(()=>{!u||Tt.current||(Me(!0),C?.(!0),k?.(0))},[u,Me,C,k]),tn=x.useCallback(()=>{const ft=Tt.current;Me(!1),ft&&C?.(!1),k?.(st)},[Me,st,C,k]),qn=x.useCallback(ft=>{if(!Number.isFinite(ft)||ft<0){ms();return}const Ue=qc(ft,Ze,Fe,v),Cn=Tt.current;wt(Ue),Me(!1),Cn&&C?.(!1),k?.(Ue)},[Ze,Fe,v,Me,C,k]),Mn=x.useCallback(()=>{pe.current=ee,xt.current=Tt.current?0:st},[st,ee]),Qn=x.useCallback(ft=>{const Ue=xt.current+ft;if(u&&Ue<d){Tt.current||(Me(!0),C?.(!0),k?.(0));return}Tt.current&&Ue>=d&&(Me(!1),C?.(!1));const Cn=qc(Ue,Ze,Fe,v);wt(Cn),k?.(Cn)},[u,d,Me,Ze,Fe,v,k,C]),an=x.useCallback(()=>{pe.current!=null&&(pe.current=null,ye(ft=>ft+1))},[]),Hn=x.useCallback(()=>{an()},[an]);return{size:St?0:st,isCollapsed:St,collapse:ut,expand:tn,resize:qn,props:{_size:St?0:st,_isCollapsed:St,_onResizeStart:Mn,_onResizeMove:Qn,_onResizeEnd:Hn,_onResizeCancel:an,_minSizePx:Ze,_maxSizePx:Fe,_snaps:v,_collapsedSize:d,_collapsible:u,_direction:c,_isResizableProps:!0}}}function lI(e){const{regions:t,autoSaveId:a,containerRef:s,direction:i}=e,c=Object.entries(t),u=c.map(([f,g])=>s$({...g,containerRef:s,direction:i,autoSaveId:a?`${a}:${f}`:void 0})),d={};return c.forEach(([f],g)=>{d[f]=u[g]}),d}function cI(e){return"regions"in e?lI(e):s$(e)}const uI=10,dI=50;function fI(e,t,a){if(e!=="auto")return e;const s=t?"end":"start";return a?s==="start"?"end":"start":s}function hI(e){return e==="center"?null:e==="start"?-1:1}function pI(e){document.body.style.cursor=e?"col-resize":"row-resize",document.body.style.userSelect="none"}function MS(){document.body.style.cursor="",document.body.style.userSelect=""}const Bn={handle:{kVAEAm:"x1n2onr6",kmuXW:"x2lah0s",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kWkggS:"x1m4xfpy",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},overlay:{kVAEAm:"x10l6tqk",kY2c9j:"xhtitgo",kWkggS:"xjbqb8w",$$css:!0},overlayHorizontal:{kt4wiu:"xtijo5x",k87sOh:"x13vifvy",krVfgx:"x1ey2m1c",kzqmXN:"xkhob8h",$$css:!0},overlayVertical:{krVfgx:"x1ey2m1c",kLqNvP:"x1o0tod",kt4wiu:"xtijo5x",kZKoxP:"x5kfih4",$$css:!0},horizontal:{kzqmXN:"x1i1rx1s",kZKoxP:"x5yr21d",kkrTdU:"xicojor x16khyan",$$css:!0},vertical:{kZKoxP:"xjm9jq1",kzqmXN:"xh8yej3",kkrTdU:"xyozgr7 x16khyan",$$css:!0},noDividerHorizontal:{kWkggS:"xjbqb8w",kzqmXN:"xnalus7",$$css:!0},noDividerVertical:{kWkggS:"xjbqb8w",kZKoxP:"xqtp20y",$$css:!0},handleHover:{kWkggS:"x1m4xfpy",$$css:!0},handleActive:{kWkggS:"x7njt3n",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kfzvcC:"x47corl",$$css:!0},hitArea:{kVAEAm:"x10l6tqk",kY2c9j:"x1vjfegm",kFalU9:"x5ve5x3",kfSwDN:"x87ps6o",$$css:!0},hitAreaHorizontal:{kzqmXN:"x12xnipv",k87sOh:"x13vifvy",krVfgx:"x1ey2m1c",kkrTdU:"xicojor x16khyan",$$css:!0},hitAreaVertical:{kZKoxP:"x6b6gus",kLqNvP:"x1o0tod",kt4wiu:"xtijo5x",kkrTdU:"xyozgr7 x16khyan",$$css:!0},hitAreaCenteredY:{k87sOh:"xwa60dl",k3aq6I:"x1cb1t30",$$css:!0},pill:{kVAEAm:"x10l6tqk",kY2c9j:"xhtitgo",kfzvcC:"x47corl",kaIpWk:"xjspbzw",kWkggS:"x1m4xfpy",k1ekBW:"x1wbls7o",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",k87sOh:"xwa60dl",$$css:!0},pillHorizontal:{kzqmXN:"x1g8rjiy",kZKoxP:"x18to7ep",$$css:!0},pillVertical:{kzqmXN:"xgc8j7m",kZKoxP:"xuoj239",$$css:!0},pillHidden:{kSiTet:"xg01cxk",$$css:!0},pillVisible:{kSiTet:"x1hc1fzr",$$css:!0},pillHover:{kSiTet:"x1hc1fzr",kWkggS:"x1m4xfpy",$$css:!0},pillActive:{kSiTet:"x1hc1fzr",kWkggS:"x7njt3n",$$css:!0}},xI={kLqNvP:"x1o0tod",k3aq6I:"x11wx31z x75qhwu",$$css:!0},mI={k87sOh:"x13vifvy",k3aq6I:"xsqj5wx",$$css:!0},gI={kLqNvP:"x1o0tod",k3aq6I:"xsqj5wx",$$css:!0},yI={k87sOh:"x13vifvy",k3aq6I:"xsqj5wx",$$css:!0},bp={hitAreaOffsetX:e=>[xI,{"--x-qthpiu":`translateX(calc(${e} * (3px + ${kr["--spacing-1"]}) - 6.5px))`!=null?`translateX(calc(${e} * (3px + ${kr["--spacing-1"]}) - 6.5px))`:void 0,"--x-sj6hyi":`translateX(calc(${e} * (3px + ${kr["--spacing-1"]}) + 6.5px))`!=null?`translateX(calc(${e} * (3px + ${kr["--spacing-1"]}) + 6.5px))`:void 0}],hitAreaOffsetY:e=>[mI,{"--x-transform":`translateY(calc(${e} * (3px + ${kr["--spacing-1"]}) - 6.5px))`!=null?`translateY(calc(${e} * (3px + ${kr["--spacing-1"]}) - 6.5px))`:void 0}],pillOffsetX:e=>[gI,{"--x-transform":`translate(calc(${e} * (100% + ${kr["--spacing-1"]})), -50%)`!=null?`translate(calc(${e} * (100% + ${kr["--spacing-1"]})), -50%)`:void 0}],pillOffsetY:e=>[yI,{"--x-transform":`translate(-50%, calc(${e} * (100% + ${kr["--spacing-1"]})))`!=null?`translate(-50%, calc(${e} * (100% + ${kr["--spacing-1"]})))`:void 0}]};function o$({direction:e="horizontal",position:t="inline",isReversed:a=!1,isDisabled:s=!1,hasDivider:i=!1,isAlwaysVisible:c=!0,pillPlacement:u="auto",label:d,resizable:f,children:g,xstyle:y,className:b,ref:k,...C}){const w=pn(),v=d??w("@astryx.resizable.handle.label"),S=x.useRef(null),T=x.useRef(null),[E,j]=x.useState(!1),[$,z]=x.useState(!1),[L,I]=x.useState(!1),N=e==="horizontal",D=t==="overlay",P=a?-1:1,K=fI(u,a,f?._isCollapsed??!1),oe=hI(K),V=x.useCallback(()=>{const ye=S.current;return ye&&getComputedStyle(ye).direction==="rtl"?-1:1},[]),H=$||L,Z=x.useRef(!1);x.useEffect(()=>{const ye=f?._direction;ye!=null&&ye!==e&&!Z.current&&(Z.current=!0,ms())},[e,f]);const F=x.useCallback(()=>{T.current=null,j(!1),MS()},[]),q=x.useCallback(ye=>{s||!f||T.current||(ye.preventDefault(),ye.stopPropagation(),ye.currentTarget.setPointerCapture?.(ye.pointerId),T.current={pointerId:ye.pointerId,startPos:N?ye.clientX:ye.clientY,rtl:N?V():1},j(!0),f._onResizeStart(),pI(N))},[s,f,N,V]),Q=x.useCallback(ye=>{const Oe=T.current;if(!Oe||Oe.pointerId!==ye.pointerId||!f)return;const ie=N?ye.clientX:ye.clientY;f._onResizeMove((ie-Oe.startPos)*Oe.rtl*P)},[f,N,P]),ae=x.useCallback(ye=>{T.current?.pointerId===ye.pointerId&&(F(),f?._onResizeEnd())},[F,f]),J=x.useCallback(ye=>{T.current?.pointerId===ye.pointerId&&(F(),f?._onResizeCancel?.())},[F,f]),se=x.useCallback(ye=>{if(s||!f)return;const Oe=ye.shiftKey?dI:uI,ie=N?V():1;switch(ye.key){case"ArrowRight":case"ArrowDown":{ye.preventDefault(),f._onResizeStart(),f._onResizeMove(Oe*(N?ie:1)*P),f._onResizeEnd();break}case"ArrowLeft":case"ArrowUp":{ye.preventDefault(),f._onResizeStart(),f._onResizeMove(-Oe*(N?ie:1)*P),f._onResizeEnd();break}case"Home":{ye.preventDefault(),f._onResizeStart(),f._onResizeMove(f._minSizePx-f._size),f._onResizeEnd();break}case"End":{ye.preventDefault(),f._maxSizePx!==1/0&&(f._onResizeStart(),f._onResizeMove(f._maxSizePx-f._size),f._onResizeEnd());break}case"Enter":{ye.preventDefault(),f._collapsible&&(f._onResizeStart(),f._onResizeMove(f._isCollapsed?f._minSizePx:-f._size),f._onResizeEnd());break}}},[s,f,N,V,P]),te=x.useCallback(()=>{s||!f||!f._collapsible||(f._onResizeStart(),f._onResizeMove(f._isCollapsed?f._minSizePx:-f._size),f._onResizeEnd())},[s,f]),fe=x.useRef(void 0);fe.current=f?._onResizeCancel,x.useEffect(()=>()=>{T.current&&(T.current=null,MS(),fe.current?.())},[]);const B=f?._isCollapsed??!1,ee=f?B?Math.max(f._size,f._minSizePx):f._size:void 0,me=f?f._minSizePx:void 0,pe=f&&f._maxSizePx!==1/0?f._maxSizePx:void 0,ve=f&&B?w("@astryx.resizable.collapsed"):void 0;return p.jsxs("div",{ref:Zn(k,S),role:"separator","aria-orientation":N?"vertical":"horizontal","aria-valuenow":ee,"aria-valuemin":me,"aria-valuemax":pe,"aria-valuetext":ve,"aria-label":v,"aria-disabled":s||void 0,tabIndex:s?-1:0,onDoubleClick:te,onFocus:()=>I(!0),onBlur:()=>I(!1),"data-resizing":E||void 0,...Te(Ee("resize-handle"),Xn.focusVisible(Bn.handle,D&&Bn.overlay,D&&(N?Bn.overlayHorizontal:Bn.overlayVertical),!D&&(N?Bn.horizontal:Bn.vertical),!D&&!i&&(N?Bn.noDividerHorizontal:Bn.noDividerVertical),!D&&i&&H&&!E&&Bn.handleHover,!D&&i&&E&&Bn.handleActive,s&&Bn.disabled,y),b),...C,onKeyDown:ye=>{C.onKeyDown?.(ye),se(ye)},children:[p.jsx("div",{...Se(Bn.hitArea,N?Bn.hitAreaHorizontal:Bn.hitAreaVertical,oe==null?N?io.centerInline("0px"):Bn.hitAreaCenteredY:N?bp.hitAreaOffsetX(oe):bp.hitAreaOffsetY(oe),s&&Bn.disabled),onPointerDown:q,onPointerMove:Q,onPointerUp:ae,onPointerCancel:J,onLostPointerCapture:J,onPointerEnter:()=>z(!0),onPointerLeave:()=>{E||z(!1)}}),g??p.jsx("div",{...Te(Ee("resize-handle-pill"),Se(Bn.pill,N?Bn.pillHorizontal:Bn.pillVertical,K==="center"?io.centerInline("-50%"):N?bp.pillOffsetX(K==="start"?-1:1):bp.pillOffsetY(K==="start"?-1:1),c?Bn.pillVisible:Bn.pillHidden,H&&!E&&Bn.pillHover,E&&Bn.pillActive))})]})}o$.displayName="ResizeHandle";function Ll(e,t,a=!0){const s=x.useRef(!1);x.useEffect(()=>{a&&!s.current&&(s.current=!0,ms())},[e,t,a])}const bI=160;function vI(e,t){const a=typeof e=="object"?e:{},s=typeof t=="object"?t:{},i=s.defaultIsCollapsed!==void 0||s.isCollapsed!==void 0||s.onCollapseChange!==void 0;return{isCollapsible:!!e||i,defaultIsCollapsed:(i?s.defaultIsCollapsed:a.defaultIsCollapsed)??!1,isCollapsed:i?s.isCollapsed:a.isCollapsed,onCollapsedChange:i?s.onCollapseChange:a.onCollapsedChange,conflict:kI(a,s)}}function kI(e,t){const a=[e.defaultIsCollapsed!==void 0&&"defaultIsCollapsed",e.isCollapsed!==void 0&&"isCollapsed",e.onCollapsedChange!==void 0&&"onCollapsedChange"].filter(i=>i!==!1),s=[t.defaultIsCollapsed!==void 0&&"defaultIsCollapsed",t.isCollapsed!==void 0&&"isCollapsed",t.onCollapseChange!==void 0&&"onCollapseChange"].filter(i=>i!==!1);return a.length===0||s.length===0?null:`${a.map(i=>`collapsible.${i}`).join(", ")} and ${s.map(i=>`resizable.${i}`).join(", ")} address the same collapse state. resizable wins; the collapsible ${a.length===1?"value is":"values are"} ignored.`}const vp={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kZKoxP:"x5yr21d",kzqmXN:"x1hfn5x7",kWkggS:"xgcd1z6",kB7OPa:"x9f619",kVQacm:"xb3r6kr",$$css:!0},rootCollapsed:{kzqmXN:"xhgvbfk",$$css:!0},resizableHandle:{kInvED:"x1wfwxd8 x1l5jwag",$$css:!0},topbar:{k1xSpc:"x78zum5",kXwgrk:"x1q0g3np",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kZKoxP:"xsdox4t",kzqmXN:"xh8yej3",kWkggS:"xgcd1z6",kB7OPa:"x9f619",kVQacm:"xb3r6kr",$$css:!0}},kp="sm";function bx({header:e,topContent:t,children:a,footer:s,footerIcons:i,collapsible:c=!1,resizable:u=!1,xstyle:d,className:f,style:g,"data-testid":y,ref:b,handleRef:k,...C}){const w=pn(),S=(typeof c=="object"?c:{}).hasButton??!0,T=typeof u=="object"?u:{},E=!!u,j=vI(c,u),{isCollapsible:$,onCollapsedChange:z}=j;Ll("SideNav",j.conflict??"",j.conflict!=null);const L=x.useRef(null),I=Zn(b,L),N=x.useRef({isCollapsed:!1,toggle:()=>{},isCollapsible:$}),D=cI({defaultSize:T.defaultWidth??260,minSize:T.minWidth??180,maxSize:T.maxWidth??480,collapsible:$,collapsedSize:bI,autoSaveId:T.autoSaveId,defaultIsCollapsed:j.defaultIsCollapsed,isCollapsed:j.isCollapsed,onSizeChange:T.onWidthChange,onCollapseChange:z}),P=D.isCollapsed,K=x.useCallback(()=>{const te=!P;N.current={...N.current,isCollapsed:te},te?D.collapse():D.expand()},[P,D]),oe=E&&!P;N.current={isCollapsed:P,toggle:K,isCollapsible:$};const V={isCollapsed:P,toggle:K,isCollapsible:$};x.useImperativeHandle(k,()=>({getCollapseState:()=>N.current}),[]);const H=t$();if(H==="topbar")return p.jsxs("div",{"data-testid":y,...Te(Ee("side-nav",{mode:"topbar"}),Se(vp.topbar,d),f,g),children:[e,p.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw xvc5jky",children:p.jsx(Qc,{value:kp,children:i})})]});const Z=!!(s||i);if(H==="drawer")return p.jsxs(z1,{header:e,"data-testid":y,xstyle:d,className:f,style:g,...C,children:[t,a,Z&&p.jsxs("div",{className:"x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es",children:[s,i&&p.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:p.jsx(Qc,{value:kp,children:i})})]})]});if(H==="drawer-content")return p.jsxs(p.Fragment,{children:[t,a,Z&&p.jsxs("div",{className:"x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es",children:[s,i&&p.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:p.jsx(Qc,{value:kp,children:i})})]})]});const F=!!(e||t),q=!!(s||i),Q=$&&S,ae=E?{...g??{},width:P?void 0:D.size}:g,J=p.jsxs("nav",{ref:I,role:"navigation","aria-label":w("@astryx.sideNav.label"),"data-testid":y,...Te(Ee("side-nav"),Se(vp.root,P&&vp.rootCollapsed,d),f,ae),...C,children:[F&&p.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf x2lah0s x7wzq59 x13vifvy x1vjfegm xgcd1z6 x1xye8es x1wesfrj xf314gf x1txdalj"},1:{className:"x78zum5 xdt5ytf x2lah0s x7wzq59 x13vifvy x1vjfegm xgcd1z6 x1xye8es x1wesfrj xf314gf x1txdalj x6s0dn4"}}[!!P<<0],children:[e,t&&p.jsx("div",{children:t})]}),p.jsx("div",{...{0:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x1xye8es x1wesfrj"},4:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 x1xye8es x1wesfrj"},2:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf xfsso4q x1wesfrj"},6:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 xfsso4q x1wesfrj"},1:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x1xye8es xy143xn"},5:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 x1xye8es xy143xn"},3:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf xfsso4q xy143xn"},7:{className:"x98rzlu x1odjw0f x6ikm8r xf314gf x78zum5 xdt5ytf x6s0dn4 xfsso4q xy143xn"}}[!!P<<2|!!F<<1|!!q<<0],children:a}),(q||Q)&&p.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf x2lah0s xr1yuqi x7wzq59 x1ey2m1c xgcd1z6 x1txdalj xf314gf xfsso4q x1wesfrj"},1:{className:"x78zum5 xdt5ytf x2lah0s xr1yuqi x7wzq59 x1ey2m1c xgcd1z6 x1txdalj xf314gf x1wesfrj xexx8yu x6s0dn4"}}[!!P<<0],children:[s,p.jsx("div",{...{0:{className:"x78zum5 x6s0dn4 xzye2dw"},1:{className:"x78zum5 x6s0dn4 xzye2dw x3ieub6"}}[!!P<<0],children:p.jsxs(Qc,{value:kp,children:[Q&&p.jsx(L1,{}),i]})})]})]}),se=oe?p.jsxs("div",{className:"x1n2onr6 x78zum5 x2lah0s x5yr21d x7giv3",children:[J,p.jsx(o$,{"data-testid":"astryx-sidenav-resize-handle",direction:"horizontal",position:"overlay",pillPlacement:"end",isAlwaysVisible:!1,xstyle:vp.resizableHandle,resizable:D.props,label:w("@astryx.sideNav.resizeSidebar")})]}):J;return $?p.jsx(sm,{value:V,children:se}):se}bx.displayName="SideNav";const vx='button:not([disabled]), a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled]), [contenteditable]:not([contenteditable="false"]), audio[controls], video[controls], iframe, details > summary:first-child';function wI(e){x.useEffect(()=>{if(e)return()=>{}},[e])}function SI(e){if(e.hasAttribute("inert")||e.closest("[inert]")||e.hidden||e.closest("[hidden]")||e.closest('[aria-hidden="true"]'))return!1;if(typeof window<"u"&&window.getComputedStyle){const t=window.getComputedStyle(e);if(t.visibility==="hidden"||t.display==="none")return!1}return!0}function D1(e){return Array.from(e.querySelectorAll(vx)).filter(SI)}function O1(e){try{e.focus()}catch{}return document.activeElement===e}function zS(e){const t=D1(e);for(const a of t)if(O1(a))return!0;return!1}function EI(e){const t=D1(e);for(let a=t.length-1;a>=0;a--)if(O1(t[a]))return!0;return!1}function CI(e){const{isActive:t,onEscape:a}=e,s=x.useRef(null),i=x.useRef(null),c=x.useRef(!1),u=t&&a!=null;Wx({isActive:u,onDismiss:()=>{a?.()},getContainer:()=>s.current}),wI(u);const d=x.useCallback(()=>{s.current&&zS(s.current)},[]);return x.useEffect(()=>{if(!t)return;const f=document.activeElement,g=s.current;let y=g!=null&&g.contains(document.activeElement);const b=k=>{const C=k.target;C!=null&&s.current?.contains(C)&&(y=!0)};return document.addEventListener("focusin",b,!0),()=>{if(document.removeEventListener("focusin",b,!0),!y)return;const k=document.activeElement;(k==null||k===document.body||k===document.documentElement||g!=null&&g.contains(k))&&f!=null&&f.isConnected&&typeof f.focus=="function"&&f.focus()}},[t]),x.useEffect(()=>{if(!t)return;const f=g=>{const y=s.current;if(!y)return;const b=g.target;if(y.contains(b))i.current=b;else if(c.current){const k=zS(y);k&&i.current===document.activeElement?EI(y):!k&&i.current instanceof HTMLElement&&y.contains(i.current)&&O1(i.current),i.current=document.activeElement}c.current=!1};return document.addEventListener("focus",f,!0),()=>{document.removeEventListener("focus",f,!0)}},[t]),x.useEffect(()=>{if(!t)return;const f=g=>{const y=s.current;if(y&&g.key==="Tab"){c.current=!0;const b=D1(y);if(b.length===0){const w=document.activeElement;if(!(w instanceof HTMLElement)||!y.contains(w))return;g.preventDefault(),i.current=w,c.current=!1;return}const k=b[0],C=b[b.length-1];if(document.activeElement===y){g.preventDefault(),g.shiftKey?C.focus():k.focus();return}g.shiftKey?document.activeElement===k&&(g.preventDefault(),C.focus()):document.activeElement===C&&(g.preventDefault(),k.focus())}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[t,a]),{containerRef:s,focusFirst:d}}const $I="[data-astryx-popover-fallback-close]";function i$(e){try{e.focus()}catch{}return document.activeElement===e}function jI(e){const t=Array.from(e.querySelectorAll(vx)).filter(a=>a.closest($I)==null);for(const a of t)if(i$(a))return!0;return!1}const k0={surface:{kWkggS:"x1prclbq","--_popover-radius":"xiki222",kaIpWk:"x11m9jtl",kGVxlE:"x1i5ehqx",$$css:!0},contentWrapper:{kVAEAm:"x1n2onr6",$$css:!0},closeButtonWrapper:{kVAEAm:"x10l6tqk",krVfgx:"x1ey2m1c",kY2c9j:"x1vjfegm",kzqmXN:"x1i1rx1s x10okhzq",kZKoxP:"xjm9jq1 x132qfvm",kVQacm:"xb3r6kr x1dordxg",kz4h6p:"x1hyvwdk x10wafsz",kfzvcC:"x47corl xbt4iw",kLKAdn:"xexx8yu x1kw28su",$$css:!0}};function TI(e={}){const{onShow:t,onHide:a,xstyle:s,className:i,style:c,hasLightDismiss:u=!0,hasEscapeDismiss:d=!0,hasAutoFocus:f=!0,hasSurface:g=!0,padding:y,surfaceTarget:b,hasCloseButton:k=!0,closeButtonLabel:C,dialogLabel:w,role:v="dialog",isModal:S=!0}=e,T=pn(),E=C??T("@astryx.popover.close"),j=x.useRef(null),$=x.useRef(!1),z=bf({mode:"context",lightDismiss:u,onShow:t,onHide:a}),{containerRef:L,focusFirst:I}=CI({isActive:z.isOpen,onEscape:d||u?z.hide:void 0}),N=x.useCallback(()=>{const H=L.current;if(H&&!jI(H)){if(v==="dialog"){i$(H);return}I()}},[L,I,v]);x.useEffect(()=>{z.isOpen&&f&&!$.current&&requestAnimationFrame(N),z.isOpen||($.current=!1)},[z.isOpen,f,N]);const D=x.useCallback(H=>{j.current=H,z.ref(H)},[z]),P=x.useCallback(H=>{$.current=H?.skipAutoFocus??!1,z.show()},[z]),K=x.useCallback(()=>{z.isOpen?z.hide():P()},[z,P]),oe={"aria-haspopup":v==="dialog"?"dialog":"true","aria-expanded":z.isOpen,"aria-controls":z.id};Ll("usePopover",'role="dialog" without a `dialogLabel` renders an unnamed dialog. Pass `dialogLabel`, or use `role: "none"` for listbox/menu popups whose content already carries its own role.',v==="dialog"&&!w);const V=x.useCallback((H,Z)=>{const F=Ee("popover"),q=b!=null&&b!=="popover"?`${F.className} ${kC(b)}`:F.className;return z.render(p.jsx(nf,{children:p.jsxs("div",{ref:L,role:v==="dialog"?"dialog":void 0,"aria-modal":v==="dialog"&&S?!0:void 0,"aria-label":v==="dialog"?w:void 0,tabIndex:v==="dialog"?-1:void 0,...Te({...F,className:q},Xn.focusVisible(k0.contentWrapper,g&&k0.surface,y!=null&&_l[y],s),i,c),children:[H,k&&p.jsx("div",{"data-astryx-popover-fallback-close":"",...Se(k0.closeButtonWrapper,io.centerInline("100%")),children:p.jsx(Bt,{variant:"secondary",label:E,onClick:z.hide})})]})}),{...Z,xstyle:Z?.xstyle})},[z,k,g,y,b,i,c,E,L,w,v,S,s]);return{triggerRef:D,contentRef:L,anchorId:z.anchorId,show:P,hide:z.hide,toggle:K,isOpen:z.isOpen,id:z.id,render:V,triggerProps:oe}}function I1(e={}){return TI(e)}function RI(e){return typeof e=="string"||typeof e=="number"}function NS(...e){const t=e.filter(Boolean);return t.length>0?t.join(" "):void 0}function Bo({children:e,anchorRef:t,content:a,placement:s="above",alignment:i="center",delay:c=200,hideDelay:u=0,focusTrigger:d="auto",touchTrigger:f="auto",isEnabled:g=!0,onOpenChange:y,hasHoverIndication:b="auto",isOpen:k,isDefaultOpen:C}){const w=x.useRef(null),v=e!=null?RI(e):!1,S=b===!0||b==="auto"&&v,T=x.useCallback(()=>{y?.(!0)},[y]),E=x.useCallback(()=>{y?.(!1)},[y]),j=Os({placement:s,alignment:i,delay:c,hideDelay:u,focusTrigger:d,touchTrigger:f,isEnabled:g,isOpen:k,isDefaultOpen:C,onShow:T,onHide:E});return Sr(()=>{if(!t)return;const $=t.current;if(!$)return;j.ref($);const z=$.getAttribute("aria-describedby");return $.setAttribute("aria-describedby",NS(z,j.describedBy)??""),()=>{j.ref(null),z?$.setAttribute("aria-describedby",z):$.removeAttribute("aria-describedby")}},[t,j.ref,j.describedBy]),Sr(()=>{if(t||v)return;const $=w.current;if(!$)return;const z=$.firstElementChild;if(!z)return;j.ref(z);const L=z.getAttribute("aria-describedby");return z.setAttribute("aria-describedby",NS(L,j.describedBy)??""),()=>{j.ref(null),L?z.setAttribute("aria-describedby",L):z.removeAttribute("aria-describedby")}},[t,v,j.ref,j.describedBy]),t&&e==null?p.jsx(p.Fragment,{children:j.renderTooltip(a)}):v?p.jsxs(p.Fragment,{children:[p.jsx("span",{ref:j.ref,tabIndex:0,"aria-describedby":j.describedBy,...{0:{className:"xt0psk2"},1:{className:"xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj"}}[!!S<<0],children:e}),j.renderTooltip(a)]}):p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:w,className:"xjp7ctv",children:e}),j.renderTooltip(a)]})}Bo.displayName="Tooltip";const l$=Object.freeze(Object.defineProperty({__proto__:null,Tooltip:Bo},Symbol.toStringTag,{value:"Module"})),AI=["noopener","noreferrer"];function c$(e,t){if(e!=="_blank")return{target:e,rel:t};const a=t?.split(/\s+/).filter(Boolean)??[];for(const s of AI)a.includes(s)||a.push(s);return{target:e,rel:a.join(" ")}}const _1=x.createContext(null);_1.displayName="InteractiveRoleContext";function MI(){return x.use(_1)}function u$({href:e,onClick:t,isDisabled:a=!1}){const s=MI();return e!=null&&!a?"link":t!=null?"button":s??"inert"}const qa={base:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"x1lsbc85",kMv6JI:"xjb2p0i",kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",k63SB2:"x1pd3egz",kybGjl:"x1hl2dhg x13nosk6",kkrTdU:"x1ypdohk x16khyan",k1ekBW:"x1mpt4pi",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},buttonReset:{kWkggS:"xjbqb8w",ksu8eU:"xng3xce",kmVPX3:"x1717udv",kfzvcC:"x67bb7w",kVAEAm:"x1n2onr6",$$css:!0},hasUnderline:{kybGjl:"x1bvjpef",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",kfzvcC:"x47corl",$$css:!0},standalone:{kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0}},w0={primary:{kMwMTN:"x1tgivj0 xcunlro",$$css:!0},secondary:{kMwMTN:"xv1l7n4 x7jm8ul",$$css:!0},disabled:{kMwMTN:"xnbbluu",$$css:!0},placeholder:{kMwMTN:"xv1l7n4",$$css:!0},accent:{kMwMTN:"xjse4m1 x1rfoswn",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}};function zI(e){e.preventDefault()}function om({as:e,label:t,href:a,hasUnderline:s=!1,isDisabled:i=!1,isExternalLink:c=!1,newTabLabel:u,target:d,onClick:f,tooltip:g,isStandalone:y=!1,type:b="body",size:k,weight:C,color:w="accent",display:v="inline",maxLines:S=0,children:T,rel:E,xstyle:j,className:$,style:z,ref:L,...I}){const N=Ka(),D=pn(),P=u??D("@astryx.link.newTab"),K=$u(e),oe=u$({href:a,onClick:f,isDisabled:i}),{target:V,rel:H}=c$(c?"_blank":d,E),Z=oe==="button"||oe==="inert"&&a==null,F=p.jsxs(p.Fragment,{children:[p.jsx(tt,{type:b,size:k,weight:C,color:w,display:v,maxLines:S,children:T}),c&&!Z&&p.jsxs(p.Fragment,{children:[p.jsx(jt,{icon:"externalLink",size:"xsm",color:"inherit"}),p.jsx(lo,{children:P})]})]});let q;return Z?q=p.jsx("button",{ref:L,type:"button",onClick:f,...i?void 0:N,"aria-label":t||void 0,"aria-disabled":i||void 0,tabIndex:i?-1:void 0,disabled:i,...Te(Ee("link",{color:w}),Xn.focusVisible(qa.base,qa.buttonReset,w0[w],!i&&Nr.pressedBackgroundColor,s&&qa.hasUnderline,y&&qa.standalone,i&&qa.disabled,j),$,z),...I,children:F}):i?q=p.jsx("a",{ref:L,onClick:zI,"aria-label":t||void 0,"aria-disabled":!0,tabIndex:-1,...Te(Ee("link",{color:w}),Xn.focusVisible(qa.base,w0[w],s&&qa.hasUnderline,y&&qa.standalone,qa.disabled,j),$,z),...I,children:F}):q=p.jsx(K,{ref:L,href:a,target:V,rel:H,onClick:f,...i?void 0:N,"aria-label":t||void 0,"aria-disabled":i||void 0,tabIndex:i?-1:void 0,...Te(Ee("link",{color:w}),Xn.focusVisible(qa.base,w0[w],!i&&Nr.pressedBackgroundColor,s&&qa.hasUnderline,y&&qa.standalone,i&&qa.disabled,j),$,z),...I,children:F}),g?p.jsx(Bo,{content:g,placement:"above",children:q}):q}om.displayName="Link";const wi={item:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",kzqmXN:"xh8yej3",kZKoxP:"x1ueg155",kg3NbH:"xf314gf",k8WAf4:"xt970qd",kaIpWk:"xh6dtrn",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1tgivj0",kybGjl:"x1hl2dhg",kkrTdU:"x1ypdohk x16khyan",kMv6JI:"xjb2p0i",kGuDYH:"xcr08ib",k63SB2:"x1sodnla",kLWn49:"x1kq96og",k9WMMc:"x1yc453h",kB7OPa:"x9f619",$$css:!0},selected:{kWkggS:"x17x4s8c x1jzqe4",kMwMTN:"x1k5gbb1",k63SB2:"x1e4wzip",kRL5z6:"xcu6dpe x1d42zcn",kSReZ0:"xjtnuge x1vo6n7o",kNWwhB:"x7qqc7o x1r4mieh",kCVruK:"x1bev2v5",kjMJ7V:"xf3x42i x1pjcgc3",kSPMfz:"x524tya",$$css:!0},disabled:{kMwMTN:"xnbbluu",kkrTdU:"xt0e3qv",kfzvcC:"x47corl",$$css:!0},sm:{kZKoxP:"x6k0iem",kg3NbH:"x7a5moj",$$css:!0},md:{kZKoxP:"x1ueg155",kg3NbH:"xf314gf",$$css:!0},lg:{kZKoxP:"xssyfek",kg3NbH:"xf314gf",$$css:!0}};function NI(e){return!e||typeof window>"u"?!1:window.getComputedStyle(e).direction==="rtl"}const LI=new Set(["text","search","url","tel","email","password","number"]);function DI(e,t){const a=e.parentElement?.closest("[hidden],[inert]");return a!=null&&a!==t&&t.contains(a)}function OI(e){if(e.isContentEditable)return e;const t=e.closest("[contenteditable]");return t&&t.getAttribute("contenteditable")!=="false"?t:null}function LS(e,t){if(!(e instanceof HTMLElement))return!1;const a=OI(e);if(a){const g=typeof window<"u"?window.getSelection():null;return g&&g.rangeCount>0&&!g.isCollapsed?!0:(a.textContent??"").length>0}const s=e.tagName==="TEXTAREA",i=e.tagName==="INPUT"&&LI.has(e.type);if(!s&&!i)return!1;const c=e,{selectionStart:u,selectionEnd:d,value:f}=c;return u!==d||u==null?!0:t==="ArrowLeft"||t==="ArrowUp"||t==="Home"?u>0:t==="ArrowRight"||t==="ArrowDown"||t==="End"?u<f.length:!1}function im(e={}){const{itemSelector:t='[role="menuitem"]',boundarySelector:a,wrap:s=!0,onEscape:i,orientation:c="vertical",hasHomeEnd:u=!0,hasPaging:d=!1,hasRovingTabIndex:f=!1,hasCaretGuard:g=!1}=e,y=x.useRef(null),b=x.useCallback(D=>D.getAttribute("aria-disabled")==="true"||D.disabled===!0||D.hasAttribute("disabled"),[]),k=x.useCallback(()=>{const D=y.current;if(!D)return[];const P=Array.from(D.querySelectorAll(t)).filter(K=>!DI(K,D));return a?P.filter(K=>K.closest(a)===D):P},[t,a]),C=x.useCallback(D=>{const P=y.current;if(!P||!a)return!0;const K=D.target;return K?K.closest(a)===P:!0},[a]),w=x.useCallback((D,P,K,oe)=>{const V=D.length;if(V===0)return-1;let H=P;for(let Z=0;Z<V;Z++){if(H<0||H>=V){if(!oe)return-1;H=(H+V)%V}const F=D[H];if(F&&!b(F))return H;H+=K}return-1},[b]),v=x.useCallback(()=>{const D=k(),P=document.activeElement;return D.findIndex(K=>K===P||K.contains(P))},[k]),S=x.useCallback((D,P)=>{D.getAttribute("tabindex")!==String(P)&&D.setAttribute("tabindex",String(P))},[]),T=x.useCallback(()=>{const D=k(),P=D.filter(V=>!b(V));if(P.length===0)return;const oe=P.find(V=>V.getAttribute("tabindex")==="0")??P[0];for(const V of D)S(V,V===oe?0:-1)},[k,b,S]);Sr(()=>{f&&T()});const E=x.useCallback((D,P)=>{const K=D[P];if(K){if(f)for(const oe of D)S(oe,oe===K?0:-1);K.focus()}},[f,S]),j=x.useCallback(D=>{const P=k();if(P.length===0)return;const K=Math.max(0,Math.min(D,P.length-1));E(P,K)},[k,E]),$=x.useCallback(()=>{const D=k(),P=w(D,0,1,!1);return P!==-1?(E(D,P),!0):!1},[k,w,E]),z=x.useCallback(()=>{const D=k(),P=w(D,D.length-1,-1,!1);return P!==-1?(E(D,P),!0):!1},[k,w,E]),L=x.useCallback(D=>{const P=y.current,K=k();if(!P||K.length===0)return;const oe=v(),V=K.map((q,Q)=>b(q)?-1:Q).filter(q=>q!==-1);if(V.length===0)return;const H=()=>{const q=P.getBoundingClientRect(),Q=V.filter(ae=>{const J=K[ae].getBoundingClientRect();return J.top>=q.top-1&&J.bottom<=q.bottom+1});return Q.length===0?-1:D===1?Q[Q.length-1]:Q[0]},Z=q=>oe===-1||(D===1?q>oe:q<oe);if(oe===-1&&D===-1){$();return}let F=H();if(F===-1||!Z(F)){const q=P.scrollTop;if(P.scrollTop=q+D*P.clientHeight,F=H(),F===-1||!Z(F)){const Q=Math.max(1,V.filter(te=>{const fe=P.getBoundingClientRect(),B=K[te].getBoundingClientRect();return B.height>0&&B.top>=fe.top-1&&B.bottom<=fe.bottom+1}).length),ae=V.indexOf(oe),J=ae===-1?D===1?-1:V.length:ae,se=Math.max(0,Math.min(V.length-1,J+D*Q));F=V[se]}}F!==-1&&F!==oe&&E(K,F)},[k,v,b,E,$]),I=x.useCallback(()=>{f&&T()},[f,T]),N=x.useCallback(D=>{if(D.ctrlKey||D.metaKey||D.altKey||!C(D))return;if(D.key==="Escape"){i&&(D.preventDefault(),i());return}const P=c==="horizontal"||c==="both",K=c==="vertical"||c==="both",oe=[],V=[];if(P){const te=D.key==="ArrowLeft"||D.key==="ArrowRight"?NI(y.current):!1;oe.push(te?"ArrowLeft":"ArrowRight"),V.push(te?"ArrowRight":"ArrowLeft")}K&&(oe.push("ArrowDown"),V.push("ArrowUp"));const H=oe.includes(D.key),Z=V.includes(D.key),F=u&&D.key==="Home",q=u&&D.key==="End",Q=d&&D.key==="PageDown",ae=d&&D.key==="PageUp";if(!H&&!Z&&!F&&!q&&!Q&&!ae||g&&(LS(D.target,D.key)||LS(document.activeElement,D.key)))return;const J=v(),se=k();if(H){const te=J===-1?0:J+1,fe=w(se,te,1,s);fe!==-1&&E(se,fe)}else if(Z){const te=J===-1?se.length-1:J-1,fe=w(se,te,-1,s);fe!==-1&&E(se,fe)}else F?$():q?z():Q?L(1):ae&&L(-1);D.preventDefault()},[v,k,s,c,u,d,g,w,E,$,z,L,i,C]);return{listRef:y,handleKeyDown:N,handleFocus:I,focusItem:j,focusFirst:$,focusLast:z,ownsEvent:C,getItems:k}}const II=500,_I=300,PI=8;function S0(e,t,a){return(e.x-a.x)*(t.y-a.y)-(t.x-a.x)*(e.y-a.y)}function BI(e,t,a,s){const i=S0(e,t,a),c=S0(e,a,s),u=S0(e,s,t),d=i<0||c<0||u<0,f=i>0||c>0||u>0;return!(d&&f)}function FI(e,t,a){const s=PI;let i,c;if(t.x<=a.left)i={x:a.left,y:a.top-s},c={x:a.left,y:a.bottom+s};else if(t.x>=a.right)i={x:a.right,y:a.top-s},c={x:a.right,y:a.bottom+s};else if(t.y<=a.top)i={x:a.left-s,y:a.top},c={x:a.right+s,y:a.top};else if(t.y>=a.bottom)i={x:a.left-s,y:a.bottom},c={x:a.right+s,y:a.bottom};else return!1;return BI(e,t,i,c)}function d$(e){const{show:t,hide:a,isOpen:s,isEnabled:i,showDelay:c=150,hideDelay:u=200,clickGuardMs:d=II,itemSelector:f,popoverId:g,ownsFocus:y=!0,flyoutRef:b}=e,k=nm("(hover: hover)"),C=x.useRef(null),w=x.useRef(null),v=x.useRef(null),S=x.useRef(null),T=x.useRef(!1),E=x.useRef(0),j=x.useRef(0),$=x.useRef(s);Sr(()=>{const te=$.current;$.current=s,te&&!s&&(T.current=!1,j.current=0,E.current=Date.now())},[s]);const z=x.useCallback(()=>{C.current&&(clearTimeout(C.current),C.current=null),w.current&&(clearTimeout(w.current),w.current=null),S.current?.(),S.current=null},[]),L=x.useRef(()=>{}),{listRef:I,handleKeyDown:N,focusFirst:D}=im({itemSelector:f,onEscape:()=>L.current()}),P=x.useCallback(()=>{const te=I.current?.contains(document.activeElement)??!1;a(),te&&v.current?.focus()},[a,I]);x.useEffect(()=>{L.current=()=>{z(),P()}},[z,P]),x.useEffect(()=>()=>z(),[z]),x.useEffect(()=>{i||z()},[i,z]);const K=x.useCallback(()=>{D()||I.current?.focus()},[D,I]),oe=x.useCallback(()=>{if(!y){t();return}t({skipAutoFocus:!0}),K()},[y,t,K]),V=x.useCallback(()=>d>0&&j.current>0&&Date.now()-j.current<d?(T.current=!1,j.current=0,!0):!1,[d]),H=x.useCallback(te=>{if(g&&te?.preventDefault(),z(),te!=null&&te.detail===0){E.current=0,T.current=!1,j.current=0,s?y&&K():oe();return}if(!s){E.current=0,T.current=!1,j.current=0,oe();return}if(V()){y&&K();return}P()},[g,z,s,y,V,oe,K,P]),Z=x.useCallback(()=>{if(!k||E.current>0&&Date.now()-E.current<_I)return;if(s){z();return}T.current=!0,z();const te=()=>{j.current=Date.now(),t({skipAutoFocus:!0})};c>0?C.current=setTimeout(te,c):te()},[k,s,z,t,c]),F=x.useCallback(te=>{if(E.current=0,!T.current)return;z();let fe=null,B=!1,ee=()=>!1;const me=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{if(B&&fe!=null&&ee(fe)){me();return}a()},u)};me();const pe=b?.current??I.current,ve=te!=null?{x:te.clientX,y:te.clientY}:null;if(pe==null||ve==null||!s)return;const ye=pe.getBoundingClientRect();if(ye.width<=0||ye.height<=0)return;const Oe=pe.ownerDocument;ee=$e=>FI($e,ve,ye),B=!0,fe=ve;const ie=$e=>{const Pe={x:$e.clientX,y:$e.clientY};if(fe=Pe,ee(Pe)){me();return}B=!1,S.current?.(),S.current=null};Oe.addEventListener("pointermove",ie,!0),S.current=()=>{Oe.removeEventListener("pointermove",ie,!0)}},[z,a,u,s,I,b]),q=x.useCallback(()=>{z()},[z]),Q=x.useCallback(te=>{v.current=te},[]),ae=x.useCallback(()=>{},[]),J=x.useCallback(te=>{},[]),se=x.useCallback(te=>{},[]);return i?{triggerProps:{onClick:H,onMouseEnter:Z,onMouseLeave:F,...g?{popoverTarget:g}:null},contentProps:{onMouseEnter:q,onMouseLeave:F,onKeyDown:N},menuRef:I,focusFirst:D,focusMenu:K,confirmHoverOpen:V,close:P,setTriggerEl:Q}:{triggerProps:{onClick:ae,onMouseEnter:ae,onMouseLeave:ae},contentProps:{onMouseEnter:ae,onMouseLeave:ae,onKeyDown:se},menuRef:I,focusFirst:D,focusMenu:K,confirmHoverOpen:V,close:P,setTriggerEl:J}}const wa={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kzqmXN:"xh8yej3",$$css:!0},itemCollapsed:{kjj79g:"xl56j7k",kzqmXN:"x805d0l",kg3NbH:"xnjsko4",$$css:!0},itemCollapsedSm:{kzqmXN:"x1fvqzum",$$css:!0},itemCollapsedLg:{kzqmXN:"x1m747yf",$$css:!0},expandChevron:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kzqmXN:"x1mtvzj0",kZKoxP:"xvpftlf",kGuDYH:"x1qlqyl8",k1ekBW:"x11xpdln",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kmuXW:"x2lah0s",$$css:!0},expandChevronExpanded:{k3aq6I:"x19jd1h0",$$css:!0},expandToggle:{kzqmXN:"x1fvqzum",kZKoxP:"x6k0iem",k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kkrTdU:"x1ypdohk x16khyan",kaIpWk:"xh6dtrn",$$css:!0},splitAction:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kSGwAc:"xkh2ocl",kOIVth:"x1txdalj",kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",kMwMTN:"x1heor9g",kybGjl:"x1hl2dhg",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMv6JI:"xjb2p0i",kGuDYH:"x1qlqyl8",k63SB2:"x1pd3egz",kLWn49:"x15bjb6t",k9WMMc:"x1yc453h",kkrTdU:"x1ypdohk x16khyan",$$css:!0},popoverGap:{keTefX:"x11g1kdw",k71WvV:"xnur1sd",$$css:!0}},qI="sm",HI={isCollapsed:!1,toggle:()=>{},isCollapsible:!1};function E0({href:e,as:t,isDisabled:a,onClick:s,ref:i,children:c,...u}){const d=$u(t);return e&&!a?p.jsx(d,{ref:i,href:e,onClick:s,...u,children:c}):p.jsx("button",{ref:i,type:"button",onClick:s,disabled:a,...u,children:c})}function lm({as:e,label:t,icon:a,selectedIcon:s,isSelected:i=!1,isDisabled:c=!1,href:u,onClick:d,endContent:f,actions:g,children:y,collapsible:b,size:k="md","data-testid":C,ref:w,xstyle:v,...S}){const T=Ka(),E=pn(),{isCollapsed:j}=N1(),$=t$(),{closeMobileNav:z}=Pl(),L=$==="drawer"||$==="drawer-content",I=x.useId(),N=!!y,D=x.useRef(null),P=I1({hasLightDismiss:!0,hasAutoFocus:!0,hasCloseButton:!1,dialogLabel:E("@astryx.sideNavItem.submenuLabel",{label:t})}),K=Zn(w,P.triggerRef),oe=x.useMemo(()=>typeof b=="object"?b:{},[b]),V=N&&b!==!1,H=oe.isCollapsed,Z=H!==void 0,[F,q]=x.useState(oe.defaultIsCollapsed??!1),Q=Z?H:F,ae=x.useCallback(()=>{const Ie=!Q;Z||q(Ie),oe.onCollapsedChange?.(Ie)},[Q,Z,oe]),J=i&&s?s:a,te=V&&(!!u||!!d)&&!j,fe=!!g,B=Ie=>{if(c){Ie.preventDefault();return}if(V&&!te&&!j){Ie.preventDefault(),ae();return}d?.(Ie),L&&z()},ee=Ie=>{Ie.preventDefault(),Ie.stopPropagation(),ae()},{triggerProps:me,contentProps:pe}=d$({show:P.show,hide:P.hide,isOpen:P.isOpen,isEnabled:j&&N,clickGuardMs:0,ownsFocus:!1});if(j&&!a)return null;if(j){const Ie=J&&Is(J,{size:"sm",color:i?"inherit":c?"disabled":"secondary"}),at={...Te(Ee("side-nav-item",{size:k,selected:i?"selected":null,disabled:c?"disabled":null}),Xn.focusVisible(wi.item,Nr.backgroundColor,wi[k],wa.itemCollapsed,k==="sm"&&wa.itemCollapsedSm,k==="lg"&&wa.itemCollapsedLg,i&&wi.selected,c&&wi.disabled)),...T},wt=S["aria-label"]!=null&&S["aria-label"].trim()!==""?S["aria-label"]:t;if(N)return p.jsxs("div",{...Se(wa.root,v),children:[p.jsx("button",{ref:K,type:"button",...S,...me,"aria-label":wt,"data-testid":C,...P.triggerProps,...at,children:Ie}),P.render(p.jsxs("div",{className:"x1hviunn xu0wf1k x7a5moj xfb3i0g",onMouseEnter:pe.onMouseEnter,onMouseLeave:pe.onMouseLeave,onClick:()=>P.hide(),children:[p.jsx("div",{className:"xf314gf xu0wf1k x141an7d x2mo6ok xv1l7n4 x1ltkj2j",children:t}),p.jsx(sm,{value:HI,children:y})]}),{placement:"end",alignment:"start",xstyle:wa.popoverGap})]});const Nt={"aria-current":i?"page":void 0,"aria-disabled":c||void 0,"aria-label":wt,"data-testid":C},gt=p.jsx(E0,{ref:w,href:u,as:e,isDisabled:c,onClick:B,...S,...Nt,...at,children:Ie});return p.jsxs("div",{ref:D,...Se(wa.root,v),children:[gt,p.jsx(Bo,{content:t,placement:"end",anchorRef:D})]})}const ve=p.jsxs(p.Fragment,{children:[J&&Is(J,{size:"sm",color:i?"inherit":c?"disabled":"secondary"}),!j&&p.jsx("span",{className:"x98rzlu xeuugli xb3r6kr xlyipyv xuxw1ft",children:t}),!j&&f&&p.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4",children:f}),!j&&V&&!te&&p.jsx(jt,{icon:"chevronDown",size:"lg",color:"inherit",xstyle:[wa.expandChevron,!Q&&wa.expandChevronExpanded]})]}),ye=Ee("side-nav-item",{size:k,selected:i?"selected":null,disabled:c?"disabled":null}),Oe=[wi.item,Nr.backgroundColor,wi[k],i&&wi.selected,c&&wi.disabled],ie={...Te(ye,Se(...Oe)),...T},$e={...Te(ye,Xn.focusVisible(...Oe)),...T},Pe={...Te(ye,Xn.focusWithinFirstChild(...Oe)),...T},He=te||fe;let Ze;if(He){const Ie=te?{"aria-current":i?"page":void 0}:{"aria-current":i?"page":void 0,"aria-disabled":c||void 0,"aria-expanded":V?!Q:void 0,"aria-controls":V?`${I}-children`:void 0};Ze=p.jsxs("div",{"data-testid":C,...fe?Pe:ie,children:[p.jsx(E0,{ref:w,href:u,as:e,isDisabled:c,onClick:B,...S,...Ie,...fe?Xn.suppressed(wa.splitAction):Xn.focusVisible(wa.splitAction),children:ve}),te&&p.jsx("button",{type:"button",onClick:ee,"aria-label":Q?E("@astryx.sideNavItem.expand",{label:t}):E("@astryx.sideNavItem.collapse",{label:t}),"aria-expanded":!Q,"aria-controls":`${I}-children`,...T,...Xn.focusVisible(wa.expandToggle,Nr.backgroundColor),children:p.jsx(jt,{icon:"chevronDown",size:"lg",color:"inherit",xstyle:[wa.expandChevron,!Q&&wa.expandChevronExpanded]})}),fe&&p.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xzye2dw x67bb7w",children:p.jsx(Qc,{value:qI,children:g})})]})}else{const Ie={"aria-current":i?"page":void 0,"aria-disabled":c||void 0,"aria-expanded":V?!Q:void 0,"aria-controls":V?`${I}-children`:void 0,"data-testid":C};Ze=p.jsx(E0,{ref:w,href:u,as:e,isDisabled:c,onClick:B,...S,...Ie,...$e,children:ve})}return p.jsxs("div",{ref:D,...Se(wa.root,v),children:[Ze,N&&!j&&p.jsx("div",{id:`${I}-children`,role:"group","aria-labelledby":`${I}-label`,"aria-hidden":Q,inert:Q?!0:void 0,...{0:{className:"xrvj5dj x1tu4anv x1qn9uv2 x80gvsz x12w9bfk xlr8y92"},1:{className:"xrvj5dj x1qn9uv2 x80gvsz x12w9bfk xlr8y92 xihq33y"}}[!!Q<<0],children:p.jsxs("div",{className:"xb3r6kr x2lwn1j x31w388",children:[p.jsx("span",{id:`${I}-label`,hidden:!0,children:t}),y]})})]})}lm.displayName="SideNavItem";const UI={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",k8WAf4:"xu0wf1k",$$css:!0}};function kx({ref:e,title:t,subtitle:a,children:s,endContent:i,isHeaderHidden:c=!1,xstyle:u,className:d,style:f,"data-testid":g,...y}){const{isCollapsed:b}=N1(),C=`${x.useId()}-title`,w=p.jsxs(p.Fragment,{children:[p.jsxs("span",{className:"x78zum5 xdt5ytf x98rzlu xeuugli",children:[p.jsx("span",{id:C,className:"x141an7d x2mo6ok x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft",children:t}),a&&p.jsx("span",{className:"x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft",children:a})]}),i&&p.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4",children:i})]}),v=c||b;return p.jsxs("div",{ref:e,...Te(Ee("side-nav-section"),Se(UI.root,u),d,f),...y,role:"group","aria-labelledby":C,"data-testid":g,children:[v?p.jsx(lo,{as:"div",children:w}):p.jsx("div",{className:"x78zum5 x6s0dn4 x1txdalj xf314gf xu0wf1k xt0e3qv x87ps6o",children:w}),p.jsx("div",{className:"x78zum5 xdt5ytf x1lsbc85",children:s})]})}kx.displayName="SideNavSection";const wp={base:{k1xSpc:"xjp7ctv",kMwMTN:"x1tgivj0",kMv6JI:"x9ynric",$$css:!0},light:{kQNsl9:"x19aimcq",$$css:!0},dark:{kQNsl9:"xntwwlm",$$css:!0},system:{kQNsl9:"x108lcm5",$$css:!0}},wb=Nx.createContext(!1);wb.displayName="ThemeNestingContext";const C0=new Set,DS="@layer reset, astryx-base, astryx-theme;";function VI(e){const t=x.useId();x.useInsertionEffect(()=>{if(e.__built)return;const a=`astryx-theme-${e.name}`;if(C0.has(a))return;Ux(`theme-injection:${e.name}`,"Theme",`"${e.name}" is using runtime style injection. For better performance, use the pre-built theme:
83
+
84
+ import {${e.name}Theme} from '@astryxdesign/theme-${e.name}/built';
85
+ import '@astryxdesign/theme-${e.name}/theme.css';
86
+
87
+ For custom themes, run \`npx @astryxdesign/cli theme build <file>\` to generate the built artifacts.`);const{prose:s,component:i}=VD(e);C0.add(a);const c=[()=>C0.delete(a)];if(s){const u=document.createElement("style");u.setAttribute(Ea("theme-prose"),e.name),u.setAttribute(Ea("id"),t),u.textContent=`${DS}
88
+ @layer reset {
89
+ ${s}
90
+ }`,document.head.appendChild(u)}if(i){const u=document.createElement("style");u.setAttribute(Ea("theme"),e.name),u.setAttribute(Ea("id"),t),u.textContent=`${DS}
91
+ @layer astryx-theme {
92
+ ${i}
93
+ }`,document.head.appendChild(u)}return(s||i)&&c.push(()=>{const u=document.querySelector(`style[${Ea("theme-prose")}="${e.name}"][${Ea("id")}="${t}"]`),d=document.querySelector(`style[${Ea("theme")}="${e.name}"][${Ea("id")}="${t}"]`);u?.remove(),d?.remove()}),()=>{for(const u of c)u()}},[e,t])}function GI(e,t,a){Sr(()=>{if(!e&&!(typeof document>"u"))return t==="light"||t==="dark"?document.documentElement.setAttribute("data-theme",t):document.documentElement.removeAttribute("data-theme"),document.documentElement.setAttribute(Ea("theme"),a),()=>{document.documentElement.removeAttribute("data-theme"),document.documentElement.removeAttribute(Ea("theme"))}},[e,t,a])}function P1({theme:e,mode:t="system",children:a}){const s=x.use(wb);_4(e),VI(e),GI(s,t,e.name);const i=t==="dark"?wp.dark:t==="light"?wp.light:wp.system,c=x.useMemo(()=>({theme:e,mode:t}),[e,t]);return p.jsx(Ef,{value:c,children:p.jsx(wb,{value:!0,children:p.jsx("div",{...Se(wp.base,i),"data-astryx-theme":e.name,"data-theme":t==="system"?void 0:t,children:a})})})}P1.displayName="Theme";function KI(e,t){const a=document.createElement("span");a.style.display="none",e.appendChild(a);try{return t.map(s=>(a.style.color=`var(${s})`,ef(getComputedStyle(a).color)))}finally{a.remove()}}function WI(e){const t=[];let a=e;for(;a!==null;){const i=getComputedStyle(a);if(i.backgroundImage!=="none")return null;const c=ef(i.backgroundColor);if(c!==null&&c.a>0&&(t.push(c),c.a>=1))break;a=a.parentElement}const s=t.pop();return s===void 0||s.a<1?null:t.reduceRight((i,c)=>C4(c,i),s)}const YI=3;function XI(e,t,a,s){return a===null||s===null?null:t!==null&&Kp(t,e)>=YI?"off":Kp(a,e)>=Kp(s,e)?"dark":"light"}function ZI(e,t){const[a,s]=x.useState(null),{tokens:i}=j1(),c=x.useRef(null);return Sr(()=>{const u=e.current?.parentElement??null;if(!t||u===null)return;const d=WI(u);if(d===null)return;const f=EC(d),g=c.current;if(g!==null&&g.background===f&&g.tokens===i)return;c.current={background:f,tokens:i};const[y,b,k]=KI(u,["--color-text-primary","--color-on-dark","--color-on-light"]),C=XI(d,y,b,k);C!==null&&s(w=>w===C?w:C)}),t?a:null}function f$({mode:e,fallback:t="dark",children:a}){const s=x.useRef(null),i=ZI(s,e==="auto"),c=e==="auto"?i??t:e;return p.jsx("div",{ref:s,...c==="off"?null:{[Ea("media")]:c},...{0:{className:"xjp7ctv"},1:{className:"xjp7ctv x1tgivj0"}}[(c!=="off")<<0],children:a})}f$.displayName="MediaTheme";const QI="--color-syntax-",OS=Object.keys(O4).map(e=>e.replace(QI,""));function JI(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function e_(e){const t=OS.filter(s=>!(s in e.tokens));t.length>0&&ms("defineSyntaxTheme",`"${e.name}": missing tokens: ${t.join(", ")}. All 14 syntax tokens are required.`);const a={};for(const s of OS)a[s]=JI(e.tokens[s]);return{name:e.name,tokens:a,__inputTokens:{...e.tokens}}}function t_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const n_=x.forwardRef(t_);function r_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const Sb=x.forwardRef(r_);function a_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 12c0-1.232-.046-2.453-.138-3.662a4.006 4.006 0 0 0-3.7-3.7 48.678 48.678 0 0 0-7.324 0 4.006 4.006 0 0 0-3.7 3.7c-.017.22-.032.441-.046.662M19.5 12l3-3m-3 3-3-3m-12 3c0 1.232.046 2.453.138 3.662a4.006 4.006 0 0 0 3.7 3.7 48.656 48.656 0 0 0 7.324 0 4.006 4.006 0 0 0 3.7-3.7c.017-.22.032-.441.046-.662M4.5 12l3 3m-3-3-3 3"}))}const h$=x.forwardRef(a_);function s_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const Cf=x.forwardRef(s_);function o_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5m-13.5-9L12 3m0 0 4.5 4.5M12 3v13.5"}))}const Eb=x.forwardRef(o_);function i_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4.5h14.25M3 9h9.75M3 13.5h5.25m5.25-.75L17.25 9m0 0L21 12.75M17.25 9v12"}))}const p$=x.forwardRef(i_);function l_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 12.75c1.148 0 2.278.08 3.383.237 1.037.146 1.866.966 1.866 2.013 0 3.728-2.35 6.75-5.25 6.75S6.75 18.728 6.75 15c0-1.046.83-1.867 1.866-2.013A24.204 24.204 0 0 1 12 12.75Zm0 0c2.883 0 5.647.508 8.207 1.44a23.91 23.91 0 0 1-1.152 6.06M12 12.75c-2.883 0-5.647.508-8.208 1.44.125 2.104.52 4.136 1.153 6.06M12 12.75a2.25 2.25 0 0 0 2.248-2.354M12 12.75a2.25 2.25 0 0 1-2.248-2.354M12 8.25c.995 0 1.971-.08 2.922-.236.403-.066.74-.358.795-.762a3.778 3.778 0 0 0-.399-2.25M12 8.25c-.995 0-1.97-.08-2.922-.236-.402-.066-.74-.358-.795-.762a3.734 3.734 0 0 1 .4-2.253M12 8.25a2.25 2.25 0 0 0-2.248 2.146M12 8.25a2.25 2.25 0 0 1 2.248 2.146M8.683 5a6.032 6.032 0 0 1-1.155-1.002c.07-.63.27-1.222.574-1.747m.581 2.749A3.75 3.75 0 0 1 15.318 5m0 0c.427-.283.815-.62 1.155-.999a4.471 4.471 0 0 0-.575-1.752M4.921 6a24.048 24.048 0 0 0-.392 3.314c1.668.546 3.416.914 5.223 1.082M19.08 6c.205 1.08.337 2.187.392 3.314a23.882 23.882 0 0 1-5.223 1.082"}))}const x$=x.forwardRef(l_);function c_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 0 1-.825-.242m9.345-8.334a2.126 2.126 0 0 0-.476-.095 48.64 48.64 0 0 0-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0 0 11.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155"}))}const m$=x.forwardRef(c_);function u_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const d_=x.forwardRef(u_);function f_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z"}))}const h_=x.forwardRef(f_);function p_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const g$=x.forwardRef(p_);function x_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const m_=x.forwardRef(x_);function g_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const y_=x.forwardRef(g_);function b_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"}))}const B1=x.forwardRef(b_);function v_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const k_=x.forwardRef(v_);function w_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 3v1.5M4.5 8.25H3m18 0h-1.5M4.5 12H3m18 0h-1.5m-15 3.75H3m18 0h-1.5M8.25 19.5V21M12 3v1.5m0 15V21m3.75-18v1.5m0 15V21m-9-1.5h10.5a2.25 2.25 0 0 0 2.25-2.25V6.75a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 6.75v10.5a2.25 2.25 0 0 0 2.25 2.25Zm.75-12h9v9h-9v-9Z"}))}const S_=x.forwardRef(w_);function E_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"}))}const C_=x.forwardRef(E_);function $_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"}))}const j_=x.forwardRef($_);function T_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"}),x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const y$=x.forwardRef(T_);function R_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))}const A_=x.forwardRef(R_);function M_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const F1=x.forwardRef(M_);function z_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const cm=x.forwardRef(z_);function N_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m7.875 14.25 1.214 1.942a2.25 2.25 0 0 0 1.908 1.058h2.006c.776 0 1.497-.4 1.908-1.058l1.214-1.942M2.41 9h4.636a2.25 2.25 0 0 1 1.872 1.002l.164.246a2.25 2.25 0 0 0 1.872 1.002h2.092a2.25 2.25 0 0 0 1.872-1.002l.164-.246A2.25 2.25 0 0 1 16.954 9h4.636M2.41 9a2.25 2.25 0 0 0-.16.832V12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 12V9.832c0-.287-.055-.57-.16-.832M2.41 9a2.25 2.25 0 0 1 .382-.632l3.285-3.832a2.25 2.25 0 0 1 1.708-.786h8.43c.657 0 1.281.287 1.709.786l3.284 3.832c.163.19.291.404.382.632M4.5 20.25h15A2.25 2.25 0 0 0 21.75 18v-2.625c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125V18a2.25 2.25 0 0 0 2.25 2.25Z"}))}const q1=x.forwardRef(N_);function L_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"}))}const D_=x.forwardRef(L_);function O_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m10.5 21 5.25-11.25L21 21m-9-3h7.5M3 5.621a48.474 48.474 0 0 1 6-.371m0 0c1.12 0 2.233.038 3.334.114M9 5.25V3m3.334 2.364C11.176 10.658 7.69 15.08 3 17.502m9.334-12.138c.896.061 1.785.147 2.666.257m-4.589 8.495a18.023 18.023 0 0 1-3.827-5.802"}))}const I_=x.forwardRef(O_);function __({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"}))}const b$=x.forwardRef(__);function P_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z"}))}const B_=x.forwardRef(P_);function F_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const q_=x.forwardRef(F_);function H_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const U_=x.forwardRef(H_);function V_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.53 16.122a3 3 0 0 0-5.78 1.128 2.25 2.25 0 0 1-2.4 2.245 4.5 4.5 0 0 0 8.4-2.245c0-.399-.078-.78-.22-1.128Zm0 0a15.998 15.998 0 0 0 3.388-1.62m-5.043-.025a15.994 15.994 0 0 1 1.622-3.395m3.42 3.42a15.995 15.995 0 0 0 4.764-4.648l3.876-5.814a1.151 1.151 0 0 0-1.597-1.597L14.146 6.32a15.996 15.996 0 0 0-4.649 4.763m3.42 3.42a6.776 6.776 0 0 0-3.42-3.42"}))}const H1=x.forwardRef(V_);function G_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m16.862 4.487 1.687-1.688a1.875 1.875 0 1 1 2.652 2.652L10.582 16.07a4.5 4.5 0 0 1-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 0 1 1.13-1.897l8.932-8.931Zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0 1 15.75 21H5.25A2.25 2.25 0 0 1 3 18.75V8.25A2.25 2.25 0 0 1 5.25 6H10"}))}const K_=x.forwardRef(G_);function W_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const v$=x.forwardRef(W_);function Y_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"}))}const X_=x.forwardRef(Y_);function Z_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const U1=x.forwardRef(Z_);function Q_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.429 9.75 2.25 12l4.179 2.25m0-4.5 5.571 3 5.571-3m-11.142 0L2.25 7.5 12 2.25l9.75 5.25-4.179 2.25m0 0L21.75 12l-4.179 2.25m0 0 4.179 2.25L12 21.75 2.25 16.5l4.179-2.25m11.142 0-5.571 3-5.571-3"}))}const V1=x.forwardRef(Q_);function J_({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25V6ZM3.75 15.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18v-2.25ZM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25V6ZM13.5 15.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18v-2.25Z"}))}const eP=x.forwardRef(J_);function tP({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const nP=x.forwardRef(tP);function rP({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const k$=x.forwardRef(rP);function aP({title:e,titleId:t,...a},s){return x.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?x.createElement("title",{id:t},e):null,x.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const sP=x.forwardRef(aP);const oP=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function iP(e,t,a=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:oP(e),size:24,node:t,...a.length>0?{aliases:a}:{}}}const lP=e=>{let t="",a=!1;for(const s of e){if(s==="-"||s==="_"||s<=" "){a=t.length>0;continue}t.length===0?t+=s.toLowerCase():t+=a?s.toUpperCase():s,a=!1}return t};const cP=e=>{const t=lP(e);return t.charAt(0).toUpperCase()+t.slice(1)};const Cb=(...e)=>e.filter((t,a,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===a).join(" ").trim();const xl={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};function $0(e){return e!=null}function uP(e,t={}){const a=t.attributeNames??{},s=k=>a[k]??k,i=e.size??e.width??xl.width,c=e.size??e.height??xl.height,u=e.aliases?.filter(k=>typeof k=="string"&&k.trim()!=="").map(k=>`lucide-${k}`)??[],d=[...e.name?[`lucide-${e.name}`]:[],...u],f=t.className?.split(" ").filter(Boolean)??[],g=t.includeDefaultClasses===!1?Cb(...f):Cb("lucide",...d,...f),y=t.absoluteStrokeWidth?Number(t.strokeWidth??xl["stroke-width"])*Number(e.size??e.width??xl.width)/Number(t.size??t.width??xl.width):t.strokeWidth??xl["stroke-width"];return["svg",{...Object.entries(xl).reduce((k,[C,w])=>(k[s(C)]=w,k),{}),..."color"in t&&t.color&&{[s("stroke")]:t.color},..."size"in t&&$0(t.size)&&{[s("width")]:t.size,[s("height")]:t.size},..."width"in t&&$0(t.width)&&{[s("width")]:t.width},..."height"in t&&$0(t.height)&&{[s("height")]:t.height},[s("stroke-width")]:y,...g&&{[s("class")]:g},[s("viewBox")]:`0 0 ${i} ${c}`,...t.hasA11yProp===!1?{[s("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(k=>{const[C,w,v]=k,S=t.nonScalingStroke?{[s("vector-effect")]:"non-scaling-stroke",...w}:w;return v?[C,S,v]:[C,S]})]}function dP(e,t={}){return uP(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}const fP=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},hP=x.createContext({}),pP=()=>x.useContext(hP),xP=x.forwardRef(({color:e,size:t,width:a,height:s,strokeWidth:i,absoluteStrokeWidth:c,nonScalingStroke:u,className:d="",children:f,iconNode:g=[],icon:y={node:g,aliases:[],size:24},...b},k)=>{const{size:C=24,strokeWidth:w=2,absoluteStrokeWidth:v=!1,nonScalingStroke:S=!1,color:T="currentColor",className:E=""}=pP()??{},j=!!f||fP(b),[$,z,L=[]]=dP(y,{color:e??T,width:a??t??C,height:s??t??C,strokeWidth:i??w,absoluteStrokeWidth:c??v,nonScalingStroke:u??S,className:Cb(E,d),hasA11yProp:j,attributes:b});return x.createElement($,{ref:k,...z},[...L.map(([I,N])=>x.createElement(I,N)),...Array.isArray(f)?f:[f]])});function xn(e,t=[],a=[]){const s=typeof e=="string"?iP(e,t,a):e,i=x.forwardRef(({className:c,...u},d)=>x.createElement(xP,{ref:d,icon:s,className:c,...u}));return s.name&&(i.displayName=cP(s.name)),i}const w$={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};w$.node;const S$=xn(w$);const E$={name:"arrow-up-down",size:24,node:[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]};E$.node;const C$=xn(E$);const $$={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};$$.node;const j$=xn($$);const T$={name:"calendar",size:24,node:[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]]};T$.node;const R$=xn(T$);const A$={name:"check-check",size:24,node:[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]};A$.node;const M$=xn(A$);const z$={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};z$.node;const N$=xn(z$);const L$={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};L$.node;const D$=xn(L$);const O$={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};O$.node;const I$=xn(O$);const _$={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};_$.node;const P$=xn(_$);const B$={name:"chevrons-left",size:24,node:[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]};B$.node;const F$=xn(B$);const q$={name:"chevrons-right",size:24,node:[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]};q$.node;const H$=xn(q$);const U$={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};U$.node;const V$=xn(U$);const G$={name:"circle-x",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],aliases:["x-circle"]};G$.node;const K$=xn(G$);const W$={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};W$.node;const Y$=xn(W$);const X$={name:"columns-2",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],aliases:["columns"]};X$.node;const Z$=xn(X$);const Q$={name:"copy",size:24,node:[["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"}]]};Q$.node;const J$=xn(Q$);const ej={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],aliases:["more-horizontal"]};ej.node;const tj=xn(ej);const nj={name:"external-link",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]};nj.node;const rj=xn(nj);const aj={name:"eye-off",size:24,node:[["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"}]]};aj.node;const sj=xn(aj);const oj={name:"funnel",size:24,node:[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],aliases:["filter"]};oj.node;const ij=xn(oj);const lj={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};lj.node;const cj=xn(lj);const uj={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};uj.node;const dj=xn(uj);const fj={name:"mic",size:24,node:[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]};fj.node;const hj=xn(fj);const pj={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};pj.node;const xj=xn(pj);const mj={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};mj.node;const gj=xn(mj);const yj={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};yj.node;const bj=xn(yj);const vj={name:"upload",size:24,node:[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]};vj.node;const kj=xn(vj);const wj={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};wj.node;const Sj=xn(wj);const Ej={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Ej.node;const Cj=xn(Ej);var fn={size:"1em","aria-hidden":!0},mP={close:p.jsx(Cj,{...fn}),chevronDown:p.jsx(D$,{...fn}),chevronLeft:p.jsx(I$,{...fn}),chevronRight:p.jsx(P$,{...fn}),chevronsLeft:p.jsx(F$,{...fn}),chevronsRight:p.jsx(H$,{...fn}),check:p.jsx(N$,{...fn}),success:p.jsx(V$,{...fn}),error:p.jsx(K$,{...fn}),warning:p.jsx(bj,{...fn}),info:p.jsx(cj,{...fn}),calendar:p.jsx(R$,{...fn}),clock:p.jsx(Y$,{...fn}),externalLink:p.jsx(rj,{...fn}),menu:p.jsx(dj,{...fn}),moreHorizontal:p.jsx(tj,{...fn}),search:p.jsx(xj,{...fn}),upload:p.jsx(kj,{...fn}),arrowUp:p.jsx(j$,{...fn}),arrowDown:p.jsx(S$,{...fn}),arrowsUpDown:p.jsx(C$,{...fn}),funnel:p.jsx(ij,{...fn}),eyeSlash:p.jsx(sj,{...fn}),viewColumns:p.jsx(Z$,{...fn}),copy:p.jsx(J$,{...fn}),checkDouble:p.jsx(M$,{...fn}),wrench:p.jsx(Sj,{...fn}),stop:p.jsx(gj,{...fn}),microphone:p.jsx(hj,{...fn})},gP={purple:{light:{25:"#5c0e6c",30:"#6b187c",70:"#d885eb",75:"#e496f6",80:"#efa8ff",85:"#f3bfff",90:"#f7d5ff"},dark:{25:"#4a2f51",80:"#eaacf8"}},green:{light:{25:"#00490b",30:"#0b5615",45:"#2f7d33",65:"#6ab26b",75:"#90ca90",80:"#a4d6a3"},dark:{25:"#2b422b",80:"#aad4a9",85:"#bce0bb"}},neutral:{light:{0:"#000000",5:"#111111",10:"#1b1b1b",30:"#474747",45:"#6a6a6a",60:"#919191",85:"#d4d4d4",90:"#e2e2e2",95:"#f1f1f1",100:"#ffffff"},dark:{0:"#000000",5:"#111111",10:"#1b1b1b",15:"#262626",20:"#303030",35:"#525252",65:"#9e9e9e",85:"#d4d4d4",90:"#e2e2e2",95:"#f1f1f1",100:"#ffffff"}},orange:{light:{25:"#622700",30:"#733100",75:"#ff9e55",85:"#ffc7a1"},dark:{25:"#503424",65:"#df843f",80:"#ffb37e"}},blue:{light:{25:"#003978",30:"#00458c",50:"#0074e2",80:"#a1caff",85:"#b9d7ff"},dark:{25:"#253c5a",65:"#5aa0f8",75:"#88bcff",80:"#a1caff"}},red:{light:{25:"#76000c",30:"#8a0011",55:"#de4745",65:"#fa6762",70:"#ff7f77",80:"#ffaea7",85:"#ffc4be"},dark:{25:"#5b2b28",65:"#ee736c",75:"#ff9890",80:"#ffaea7",85:"#ffc4be"}},yellow:{light:{25:"#4b3900",30:"#584400",65:"#c29900",75:"#e2b623",80:"#eec448",85:"#f8d36a"},dark:{25:"#453a1c",80:"#e3c36c",90:"#fae19e"}},teal:{light:{25:"#00463d",30:"#005348",80:"#90d7c8",85:"#a9e2d6"},dark:{25:"#28413c",65:"#4fb1a0",75:"#81c9bb"}},cyan:{dark:{25:"#274046",65:"#49adc4",75:"#71c7dd",80:"#85d5e9",85:"#9ae2f4"},light:{25:"#004351"}},pink:{light:{25:"#70003f",70:"#fc78b1",85:"#ffc0d7"},dark:{25:"#572b3d",75:"#fd92bd",80:"#ffa9ca"}}},{blue:Sa,cyan:Si,green:ia,neutral:We,orange:ds,pink:Ei,purple:fs,red:vr,teal:ao,yellow:la}=gP,An=(e,t)=>`${e}${t}`,yP=e_({name:"astryx-neutral",tokens:{keyword:[fs.light[30],fs.light[80]],string:[ia.light[30],ia.light[80]],comment:[We.light[45],We.dark[65]],number:[ds.light[30],ds.dark[80]],function:[Sa.light[30],Sa.dark[80]],type:[fs.light[30],fs.light[80]],variable:[We.light[5],We.dark[90]],operator:[We.light[45],We.dark[65]],constant:[ds.light[30],ds.dark[80]],tag:[vr.light[30],vr.dark[80]],attribute:[la.light[30],la.light[80]],property:[ao.light[30],ao.light[80]],punctuation:[We.light[45],We.dark[65]],background:[We.light[100],We.dark[5]]}}),bP={"--astryx-theme-neutral-color-status-fill-accent":["#0074e2","#6d9cfe"],"--astryx-theme-neutral-color-status-fill-success":["#198100","#64af4c"],"--astryx-theme-neutral-color-status-fill-warning":"#ffce2f","--astryx-theme-neutral-color-status-fill-error":["#c9303a","#ff705d"],"--astryx-theme-neutral-color-status-muted-accent":[Sa.light[85],An(Sa.dark[75],"3D")],"--astryx-theme-neutral-color-on-tint-neutral":["#fafafa4D","#0a0a0a4D"],"--astryx-theme-neutral-color-on-tint-overlay-hover":["#fafafa1A","#0a0a0a1A"],"--astryx-theme-neutral-color-on-tint-overlay-pressed":["#fafafa33","#0a0a0a33"],"--astryx-theme-neutral-color-destructive-overlay-hover":[An(vr.light[70],"0D"),An(vr.dark[65],"0D")],"--astryx-theme-neutral-color-destructive-overlay-pressed":[An(vr.light[70],"1A"),An(vr.dark[65],"1A")]},Mr={accent:"var(--astryx-theme-neutral-color-status-fill-accent)",success:"var(--astryx-theme-neutral-color-status-fill-success)",warning:"var(--astryx-theme-neutral-color-status-fill-warning)",error:"var(--astryx-theme-neutral-color-status-fill-error)"},vP=K4({name:"neutral",localTokens:bP,typography:{scale:{base:14,ratio:1.2},body:{family:"Figtree",fallbacks:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},heading:{family:"Figtree",fallbacks:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',weights:{3:"bold",4:"bold"}},code:{family:"ui-monospace",fallbacks:'"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}},adaptations:{rules:[{when:{pointer:"coarse",width:{below:"lg"}},value:{typography:{scale:{base:16,ratio:1.1736}}}}]},motion:{fast:125,medium:300,slow:700,ratio:.75},syntax:yP,tokens:{"--color-background-surface":[We.light[100],We.dark[15]],"--color-background-body":[We.light[95],We.dark[10]],"--color-background-card":[We.light[100],We.dark[10]],"--color-background-popover":[We.light[100],We.dark[10]],"--color-background-muted":[We.light[95],We.dark[10]],"--color-accent":[We.light[10],We.dark[95]],"--color-accent-muted":[We.light[95],We.dark[15]],"--color-neutral":[An(We.light[0],"0F"),An(We.dark[100],"1A")],"--color-overlay":[An(We.light[0],"80"),An(We.dark[0],"CC")],"--color-overlay-hover":[An(We.light[0],"0D"),An(We.dark[100],"0D")],"--color-overlay-pressed":[An(We.light[0],"1A"),An(We.dark[100],"1A")],"--color-text-primary":[We.light[0],We.dark[100]],"--color-text-secondary":[We.light[30],We.dark[65]],"--color-text-disabled":[We.light[60],We.dark[35]],"--color-text-accent":[We.light[10],We.dark[95]],"--color-on-dark":We.light[100],"--color-on-light":We.light[5],"--color-on-accent":[We.light[100],We.dark[5]],"--color-on-success":[We.light[100],We.dark[5]],"--color-on-error":[We.light[100],We.dark[5]],"--color-on-warning":We.light[5],"--color-icon-accent":[We.light[10],We.dark[95]],"--color-icon-primary":[We.light[0],We.dark[100]],"--color-icon-secondary":[We.light[45],We.dark[65]],"--color-icon-disabled":[We.light[60],We.dark[35]],"--color-success":[ia.light[25],ia.light[80]],"--color-error":[vr.light[25],vr.dark[85]],"--color-warning":[la.light[25],la.light[85]],"--color-success-muted":[ia.dark[85],An(ia.light[75],"3D")],"--color-error-muted":[vr.light[85],An(vr.dark[75],"3D")],"--color-warning-muted":[la.dark[90],An(la.light[75],"3D")],"--color-border":[An(We.light[0],"14"),An(We.dark[100],"1A")],"--color-border-emphasized":[We.light[85],We.dark[35]],"--color-skeleton":[We.light[95],We.dark[35]],"--color-shadow":[An(We.light[0],"1A"),An(We.dark[0],"4D")],"--color-tint-hover":["black","white"],"--color-background-red":[vr.light[85],vr.dark[25]],"--color-border-red":[vr.light[80],vr.light[65]],"--color-icon-red":[vr.light[25],vr.dark[75]],"--color-text-red":[vr.light[25],vr.dark[80]],"--color-background-orange":[ds.light[85],ds.dark[25]],"--color-border-orange":[ds.light[85],ds.dark[65]],"--color-icon-orange":[ds.light[25],ds.light[75]],"--color-text-orange":[ds.light[25],ds.dark[80]],"--color-background-yellow":[la.dark[90],la.dark[25]],"--color-border-yellow":[la.dark[80],la.light[65]],"--color-icon-yellow":[la.light[25],la.light[75]],"--color-text-yellow":[la.light[25],la.light[80]],"--color-background-green":[ia.dark[85],ia.dark[25]],"--color-border-green":[ia.dark[80],ia.light[65]],"--color-icon-green":[ia.light[25],ia.light[75]],"--color-text-green":[ia.light[25],ia.light[75]],"--color-background-teal":[ao.light[85],ao.dark[25]],"--color-border-teal":[ao.light[80],ao.dark[65]],"--color-icon-teal":[ao.light[25],ao.dark[75]],"--color-text-teal":[ao.light[25],ao.light[80]],"--color-background-cyan":[Si.dark[85],Si.dark[25]],"--color-border-cyan":[Si.dark[80],Si.dark[65]],"--color-icon-cyan":[Si.light[25],Si.dark[75]],"--color-text-cyan":[Si.light[25],Si.dark[80]],"--color-background-blue":[Sa.light[85],Sa.dark[25]],"--color-border-blue":[Sa.light[80],Sa.dark[65]],"--color-icon-blue":[Sa.light[25],Sa.dark[75]],"--color-text-blue":[Sa.light[25],Sa.dark[80]],"--color-background-purple":[fs.light[90],fs.dark[25]],"--color-border-purple":[fs.light[85],fs.light[70]],"--color-icon-purple":[fs.light[25],fs.light[75]],"--color-text-purple":[fs.light[25],fs.dark[80]],"--color-background-pink":[Ei.light[85],Ei.dark[25]],"--color-border-pink":[Ei.light[85],Ei.light[70]],"--color-icon-pink":[Ei.light[25],Ei.dark[75]],"--color-text-pink":[Ei.light[25],Ei.dark[80]],"--color-background-gray":[We.light[90],We.dark[20]],"--color-border-gray":[We.light[85],We.dark[15]],"--color-icon-gray":[We.light[30],We.dark[65]],"--color-text-gray":[We.light[10],We.dark[85]],"--radius-none":"0px","--radius-inner":"0.375rem","--radius-element":"0.625rem","--radius-container":"0.75rem","--radius-page":"1.75rem","--radius-full":"9999px","--shadow-low":"0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%))","--shadow-med":"0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%))","--shadow-high":"0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%))","--shadow-inset-hover":`inset 0px 0px 0px 2px ${An(Sa.light[50],"4D")}`,"--shadow-inset-selected":`inset 0px 0px 0px 2px ${An(Sa.light[50],"80")}`,"--shadow-inset-success":`inset 0px 0px 0px 2px ${An(ia.light[45],"4D")}`,"--shadow-inset-warning":`inset 0px 0px 0px 2px ${An(la.light[85],"4D")}`,"--shadow-inset-error":`inset 0px 0px 0px 2px ${An(vr.light[55],"4D")}`},components:{button:{"variant:destructive":{backgroundColor:"var(--color-error-muted)",color:"var(--color-error)","--color-overlay-hover":"var(--astryx-theme-neutral-color-destructive-overlay-hover)","--color-overlay-pressed":"var(--astryx-theme-neutral-color-destructive-overlay-pressed)"}},badge:{"variant:info":{backgroundColor:Mr.accent,color:"var(--color-on-accent)"},"variant:neutral":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"},"variant:success":{backgroundColor:Mr.success,color:"var(--color-on-success)"},"variant:warning":{backgroundColor:Mr.warning,color:"var(--color-on-warning)"},"variant:error":{backgroundColor:Mr.error,color:"var(--color-on-error)"},"variant:red":{backgroundColor:"var(--color-background-red)",color:"var(--color-text-red)"},"variant:orange":{backgroundColor:"var(--color-background-orange)",color:"var(--color-text-orange)"},"variant:yellow":{backgroundColor:"var(--color-background-yellow)",color:"var(--color-text-yellow)"},"variant:green":{backgroundColor:"var(--color-background-green)",color:"var(--color-text-green)"},"variant:teal":{backgroundColor:"var(--color-background-teal)",color:"var(--color-text-teal)"},"variant:cyan":{backgroundColor:"var(--color-background-cyan)",color:"var(--color-text-cyan)"},"variant:blue":{backgroundColor:"var(--color-background-blue)",color:"var(--color-text-blue)"},"variant:purple":{backgroundColor:"var(--color-background-purple)",color:"var(--color-text-purple)"},"variant:pink":{backgroundColor:"var(--color-background-pink)",color:"var(--color-text-pink)"},"variant:gray":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"}},"status-dot":{"variant:success":{backgroundColor:Mr.success},"variant:warning":{backgroundColor:Mr.warning},"variant:error":{backgroundColor:Mr.error},"variant:accent":{backgroundColor:Mr.accent}},"avatar-status-dot":{"variant:success":{backgroundColor:Mr.success},"variant:error":{backgroundColor:Mr.error}},"segmented-control":{base:{padding:"var(--spacing-1)"}},"segmented-control-item":{"size:sm":{height:"calc(var(--size-element-sm) - 8px)"},"size:md":{height:"calc(var(--size-element-md) - 8px)"},"size:lg":{height:"calc(var(--size-element-lg) - 8px)"},selected:{boxShadow:"none"}},banner:{base:{"--color-neutral":"var(--astryx-theme-neutral-color-on-tint-neutral)","--color-overlay-hover":"var(--astryx-theme-neutral-color-on-tint-overlay-hover)","--color-overlay-pressed":"var(--astryx-theme-neutral-color-on-tint-overlay-pressed)"},"status:info":{"--color-accent-muted":"var(--astryx-theme-neutral-color-status-muted-accent)","--color-text-primary":"var(--color-text-blue)","--color-text-secondary":"var(--color-text-blue)","--color-accent":"var(--color-text-blue)"},"status:success":{"--color-text-primary":"var(--color-text-green)","--color-text-secondary":"var(--color-text-green)","--color-success":"var(--color-text-green)"},"status:warning":{"--color-text-primary":"var(--color-text-yellow)","--color-text-secondary":"var(--color-text-yellow)","--color-warning":"var(--color-text-yellow)"},"status:error":{"--color-text-primary":"var(--color-text-red)","--color-text-secondary":"var(--color-text-red)","--color-error":"var(--color-text-red)"}},"step-indicator":{"status:accent":{"--color-accent":Mr.accent},"status:success":{"--color-success":Mr.success},"status:warning":{"--color-warning":Mr.warning},"status:error":{"--color-error":Mr.error}},switch:{base:{"--color-background-gray":"var(--color-border-emphasized)"}},"progress-bar":{base:{"--color-background-muted":"var(--color-border-emphasized)"},"variant:accent":{"--color-accent":Mr.accent},"variant:success":{"--color-success":Mr.success},"variant:warning":{"--color-warning":Mr.warning},"variant:error":{"--color-error":Mr.error}},card:{base:{padding:"var(--spacing-3)"}},section:{base:{padding:"var(--spacing-3)"}}},icons:mP});const IS='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',kP=K4({name:"foundry",extends:vP,typography:{scale:{base:14,ratio:1.2},body:{family:"Poppins",fallbacks:IS},heading:{family:"Poppins",fallbacks:IS,weights:{3:"bold",4:"bold"}},code:{family:"ui-monospace",fallbacks:'"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}}}),G1=x.createContext(null);G1.displayName="TitlebarActionsContext";function $j(){const e=x.use(G1);if(!e)throw new Error("Titlebar actions must be used within TitlebarActionsProvider");return e}function wP(){return $j().setTarget}function SP({children:e}){const[t,a]=x.useState(null);return p.jsx(G1,{value:{target:t,setTarget:a},children:e})}function Tu({children:e}){const{target:t}=$j();return t?gf.createPortal(e,t):null}const bt=e=>typeof e=="string",Nd=()=>{let e,t;const a=new Promise((s,i)=>{e=s,t=i});return a.resolve=e,a.reject=t,a},Sp=e=>e==null?"":String(e),EP=(e,t,a)=>{e.forEach(s=>{t[s]&&(a[s]=t[s])})},CP=/###/g,_S=e=>e&&e.includes("###")?e.replace(CP,"."):e,PS=e=>!e||bt(e),Vd=(e,t,a)=>{const s=bt(t)?t.split("."):t;let i=0;for(;i<s.length-1;){if(PS(e))return{};const c=_S(s[i]);!e[c]&&a&&(e[c]=new a),Object.prototype.hasOwnProperty.call(e,c)?e=e[c]:e={},++i}return PS(e)?{}:{obj:e,k:_S(s[i])}},BS=(e,t,a)=>{const{obj:s,k:i}=Vd(e,t,Object);if(s!==void 0||t.length===1){s[i]=a;return}let c=t[t.length-1],u=t.slice(0,t.length-1),d=Vd(e,u,Object);for(;d.obj===void 0&&u.length;)c=`${u[u.length-1]}.${c}`,u=u.slice(0,u.length-1),d=Vd(e,u,Object),d?.obj&&typeof d.obj[`${d.k}.${c}`]<"u"&&(d.obj=void 0);d.obj[`${d.k}.${c}`]=a},$P=(e,t,a,s)=>{const{obj:i,k:c}=Vd(e,t,Object);i[c]=i[c]||[],i[c].push(a)},wx=(e,t)=>{const{obj:a,k:s}=Vd(e,t);if(a&&Object.prototype.hasOwnProperty.call(a,s))return a[s]},jP=(e,t,a)=>{const s=wx(e,a);return s!==void 0?s:wx(t,a)},jj=(e,t,a)=>{for(const s in t)s!=="__proto__"&&s!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,s)?bt(e[s])||e[s]instanceof String||bt(t[s])||t[s]instanceof String?a&&(e[s]=t[s]):jj(e[s],t[s],a):e[s]=t[s]);return e},zo=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),TP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},RP=e=>bt(e)?e.replace(/[&<>"'\/]/g,t=>TP[t]):e;class AP{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const a=this.regExpMap.get(t);if(a!==void 0)return a;const s=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,s),this.regExpQueue.push(t),s}}const MP=[" ",",","?","!",";"],zP=new AP(20),NP=(e,t,a)=>{t=t||"",a=a||"";const s=MP.filter(u=>!t.includes(u)&&!a.includes(u));if(s.length===0)return!0;const i=zP.getRegExp(`(${s.map(u=>u==="?"?"\\?":u).join("|")})`);let c=!i.test(e);if(!c){const u=e.indexOf(a);u>0&&!i.test(e.substring(0,u))&&(c=!0)}return c},$b=(e,t,a=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const s=t.split(a);let i=e;for(let c=0;c<s.length;){if(!i||typeof i!="object")return;let u,d="";for(let f=c;f<s.length;++f)if(f!==c&&(d+=a),d+=s[f],u=i[d],(typeof u=="function"||d==="__proto__")&&!Object.prototype.hasOwnProperty.call(i,d)&&(u=void 0),u!==void 0){if(["string","number","boolean"].includes(typeof u)&&f<s.length-1)continue;c+=f-c+1;break}i=u}return i},bu=e=>e?.replace(/_/g,"-"),LP={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class Sx{constructor(t,a={}){this.init(t,a)}init(t,a={}){this.prefix=a.prefix||"i18next:",this.logger=t||LP,this.options=a,this.debug=a.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,a,s,i){return i&&!this.debug?null:(t=t.map(c=>bt(c)?c.replace(/[\r\n\x00-\x1F\x7F]/g," "):c),bt(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[a](t))}create(t){return new Sx(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Sx(this.logger,t)}}var so=new Sx;class um{constructor(){this.observers={}}on(t,a){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const i=this.observers[s].get(a)||0;this.observers[s].set(a,i+1)}),this}off(t,a){if(this.observers[t]){if(!a){delete this.observers[t];return}this.observers[t].delete(a)}}once(t,a){const s=(...i)=>{a(...i),this.off(t,s)};return this.on(t,s),this}emit(t,...a){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,c])=>{for(let u=0;u<c;u++)i(...a)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,c])=>{for(let u=0;u<c;u++)i(t,...a)})}}const FS=new WeakSet;class qS extends um{constructor(t,a={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const a=this.options.ns.indexOf(t);a>-1&&this.options.ns.splice(a,1)}getResource(t,a,s,i={}){const c=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let d;t.includes(".")?d=t.split("."):(d=[t,a],s&&(Array.isArray(s)?d.push(...s):bt(s)&&c?d.push(...s.split(c)):d.push(s)));const f=wx(this.data,d);return f==null&&!a&&!s&&t.includes(".")&&(t=d[0],a=d[1],s=d.slice(2).join(".")),f!=null||!u||!bt(s)?f:$b(this.data?.[t]?.[a],s,c)}addResource(t,a,s,i,c={silent:!1}){const u=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let d=[t,a];s&&(d=d.concat(u?s.split(u):s)),t.includes(".")&&(d=t.split("."),i=a,a=d[1]),this.addNamespaces(a),BS(this.data,d,i),c.silent||this.emit("added",t,a,s,i)}addResources(t,a,s,i={silent:!1}){for(const c in s)(bt(s[c])||Array.isArray(s[c]))&&this.addResource(t,a,c,s[c],{silent:!0});i.silent||this.emit("added",t,a,s)}addResourceBundle(t,a,s,i,c,u={silent:!1,skipCopy:!1}){let d=[t,a];t.includes(".")&&(d=t.split("."),i=s,s=a,a=d[1]),this.addNamespaces(a);let f=wx(this.data,d)||{};u.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?jj(f,s,c):f={...f,...s},BS(this.data,d,f),u.silent||this.emit("added",t,a,s)}removeResourceBundle(t,a){this.hasResourceBundle(t,a)&&delete this.data[t][a],this.removeNamespaces(a),this.emit("removed",t,a)}hasResourceBundle(t,a){return this.getResource(t,a)!==void 0}getResourceBundle(t,a){return a||(a=this.options.defaultNS),this.getResource(t,a)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const a=this.getDataByLanguage(t);return!!(a&&Object.keys(a)||[]).find(i=>{const c=a[i];return FS.has(c)?!0:!c||Object.keys(c).length===0?!1:(typeof c=="object"&&FS.add(c),!0)})}toJSON(){return this.data}}var Tj={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,a,s,i){return e.forEach(c=>{t=this.processors[c]?.process(t,a,s,i)??t}),t}};const Rj=Symbol("i18next/PATH_KEY");function DP(){const e=[],t=Object.create(null);let a;return t.get=(s,i)=>(a?.revoke?.(),i===Rj?e:(e.push(i),a=Proxy.revocable(s,t),a.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Tl(e,t){const{[Rj]:a}=e(DP()),s=t?.keySeparator??".",i=t?.nsSeparator??":",c=t?.enableSelector==="strict";if(a.length>1&&i){const u=t?.ns,d=c?Array.isArray(u)?u:u?[u]:null:Array.isArray(u)?u:null;if(d&&(c?d:d.length>1?d.slice(1):[]).includes(a[0]))return`${a[0]}${i}${a.slice(1).join(s)}`}return a.join(s)}const j0=e=>!bt(e)&&typeof e!="boolean"&&typeof e!="number";class Ex extends um{constructor(t,a={}){super(),EP(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=a,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=so.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,a={interpolation:{}}){const s={...a};if(t==null)return!1;const i=this.resolve(t,s);if(i?.res===void 0)return!1;const c=j0(i.res);return!(s.returnObjects===!1&&c)}extractFromKey(t,a){let s=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator;let c=a.ns||this.options.defaultNS||[];const u=s&&t.includes(s),d=!this.options.userDefinedKeySeparator&&!a.keySeparator&&!this.options.userDefinedNsSeparator&&!a.nsSeparator&&!NP(t,s,i);if(u&&!d){const f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:bt(c)?[c]:c};const g=t.split(s);(s!==i||s===i&&this.options.ns.includes(g[0]))&&(c=g.shift()),t=g.join(i)}return{key:t,namespaces:bt(c)?[c]:c}}translate(t,a,s){let i=typeof a=="object"?{...a}:a;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=Tl(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(V=>typeof V=="function"?Tl(V,{...this.options,...i}):String(V));const c=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,u=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:d,namespaces:f}=this.extractFromKey(t[t.length-1],i),g=f[f.length-1];let y=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;y===void 0&&(y=":");const b=i.lng||this.language,k=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(b?.toLowerCase()==="cimode")return k?c?{res:`${g}${y}${d}`,usedKey:d,exactUsedKey:d,usedLng:b,usedNS:g,usedParams:this.getUsedParamsDetails(i)}:`${g}${y}${d}`:c?{res:d,usedKey:d,exactUsedKey:d,usedLng:b,usedNS:g,usedParams:this.getUsedParamsDetails(i)}:d;const C=this.resolve(t,i);let w=C?.res;const v=C?.usedKey||d,S=C?.exactUsedKey||d,T=["[object Number]","[object Function]","[object RegExp]"],E=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,$=i.count!==void 0&&!bt(i.count),z=Ex.hasDefaultValue(i),L=$?this.pluralResolver.getSuffix(b,i.count,i):"",I=i.ordinal&&$?this.pluralResolver.getSuffix(b,i.count,{ordinal:!1}):"",N=$&&!i.ordinal&&i.count===0,D=N&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${L}`]||i[`defaultValue${I}`]||i.defaultValue;let P=w;j&&!w&&z&&(P=D);const K=j0(P),oe=Object.prototype.toString.apply(P);if(j&&P&&K&&!T.includes(oe)&&!(bt(E)&&Array.isArray(P))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const V=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,P,{...i,ns:f}):`key '${d} (${this.language})' returned an object instead of string.`;return c?(C.res=V,C.usedParams=this.getUsedParamsDetails(i),C):V}if(u){const V=Array.isArray(P),H=V?[]:{},Z=V?S:v;for(const F in P)if(Object.prototype.hasOwnProperty.call(P,F)){const q=`${Z}${u}${F}`;z&&!w?H[F]=this.translate(q,{...i,defaultValue:j0(D)?D[F]:void 0,joinArrays:!1,ns:f}):H[F]=this.translate(q,{...i,joinArrays:!1,ns:f}),H[F]===q&&(H[F]=P[F])}w=H}}else if(j&&bt(E)&&Array.isArray(w))w=w.join(E),w&&(w=this.extendTranslation(w,t,i,C,s));else{let V=!1,H=!1;!this.isValidLookup(w)&&z&&(V=!0,w=D),this.isValidLookup(w)||(H=!0,w=d);const F=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&H?void 0:w,q=z&&D!==w&&this.options.updateMissing;if(H||V||q){if(this.logger.log(q?"updateKey":"missingKey",b,g,$&&!q?`${d}${this.pluralResolver.getSuffix(b,i.count,i)}`:d,q?D:w),u){const se=this.resolve(d,{...i,keySeparator:!1});se&&se.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Q=[];const ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ae&&ae[0])for(let se=0;se<ae.length;se++)Q.push(ae[se]);else this.options.saveMissingTo==="all"?Q=this.languageUtils.toResolveHierarchy(i.lng||this.language):Q.push(i.lng||this.language);const J=(se,te,fe)=>{const B=z&&fe!==w?fe:F;this.options.missingKeyHandler?this.options.missingKeyHandler(se,g,te,B,q,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(se,g,te,B,q,i),this.emit("missingKey",se,g,te,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&$?Q.forEach(se=>{const te=this.pluralResolver.getSuffixes(se,i);N&&i[`defaultValue${this.options.pluralSeparator}zero`]&&!te.includes(`${this.options.pluralSeparator}zero`)&&te.push(`${this.options.pluralSeparator}zero`),te.forEach(fe=>{J([se],d+fe,i[`defaultValue${fe}`]||D)})}):J(Q,d,D))}w=this.extendTranslation(w,t,i,C,s),H&&w===d&&this.options.appendNamespaceToMissingKey&&(w=`${g}${y}${d}`),(H||V)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${y}${d}`:d,V?w:void 0,i))}return c?(C.res=w,C.usedParams=this.getUsedParamsDetails(i),C):w}extendTranslation(t,a,s,i,c){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const f=bt(t)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(f){const b=t.match(this.interpolator.nestingRegexp);g=b&&b.length}let y=s.replace&&!bt(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(y={...this.options.interpolation.defaultVariables,...y}),t=this.interpolator.interpolate(t,y,s.lng||this.language||i.usedLng,s),f){const b=t.match(this.interpolator.nestingRegexp),k=b&&b.length;g<k&&(s.nest=!1)}!s.lng&&i&&i.res&&(s.lng=this.language||i.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,(...b)=>c?.[0]===b[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${b[0]} in key: ${a[0]}`),null):this.translate(...b,a),s)),s.interpolation&&this.interpolator.reset()}const u=s.postProcess||this.options.postProcess,d=bt(u)?[u]:u;return t!=null&&d?.length&&s.applyPostProcessor!==!1&&(t=Tj.handle(d,t,a,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t,a={}){let s,i,c,u,d;return bt(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(f=>typeof f=="function"?Tl(f,{...this.options,...a}):f)),t.forEach(f=>{if(this.isValidLookup(s))return;const g=this.extractFromKey(f,a),y=g.key;i=y;let b=g.namespaces;this.options.fallbackNS&&(b=b.concat(this.options.fallbackNS));const k=a.count!==void 0&&!bt(a.count),C=k&&!a.ordinal&&a.count===0,w=a.context!==void 0&&(bt(a.context)||typeof a.context=="number")&&a.context!=="",v=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);b.forEach(S=>{this.isValidLookup(s)||(d=S,!this.checkedLoadedFor[`${v[0]}-${S}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(d)&&(this.checkedLoadedFor[`${v[0]}-${S}`]=!0,this.logger.warn(`key "${i}" for languages "${v.join(", ")}" won't get resolved as namespace "${d}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),v.forEach(T=>{if(this.isValidLookup(s))return;u=T;const E=[y];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(E,y,T,S,a);else{let $;k&&($=this.pluralResolver.getSuffix(T,a.count,a));const z=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(k&&(a.ordinal&&$.startsWith(L)&&E.push(y+$.replace(L,this.options.pluralSeparator)),E.push(y+$),C&&E.push(y+z)),w){const I=`${y}${this.options.contextSeparator||"_"}${a.context}`;E.push(I),k&&(a.ordinal&&$.startsWith(L)&&E.push(I+$.replace(L,this.options.pluralSeparator)),E.push(I+$),C&&E.push(I+z))}}let j;for(;j=E.pop();)this.isValidLookup(s)||(c=j,s=this.getResource(T,S,j,a))}))})}),{res:s,usedKey:i,exactUsedKey:c,usedLng:u,usedNS:d}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,a,s,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,a,s,i):this.resourceStore.getResource(t,a,s,i)}getUsedParamsDetails(t={}){const a=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!bt(t.replace);let i=s?t.replace:t;if(s&&typeof t.count<"u"&&(i={...i,count:t.count}),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!s){i={...i};for(const c of a)delete i[c]}return i}static hasDefaultValue(t){const a="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&s.startsWith(a)&&t[s]!==void 0)return!0;return!1}}class HS{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=so.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(t){if(t=bu(t),!t||!t.includes("-"))return null;const a=t.split("-");return a.length===2||(a.pop(),a[a.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(a.join("-"))}getLanguagePartFromCode(t){if(t=bu(t),!t||!t.includes("-"))return t;const a=t.split("-");return this.formatLanguageCode(a[0])}formatLanguageCode(t){if(bt(t)&&t.includes("-")){let a;try{a=Intl.getCanonicalLocales(t)[0]}catch{}return a&&this.options.lowerCaseLng&&(a=a.toLowerCase()),a||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let a;return t.forEach(s=>{if(a)return;const i=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(i))&&(a=i)}),!a&&this.options.supportedLngs&&t.forEach(s=>{if(a)return;const i=this.getScriptPartFromCode(s);if(this.isSupportedCode(i))return a=i;const c=this.getLanguagePartFromCode(s);if(this.isSupportedCode(c))return a=c;a=this.options.supportedLngs.find(u=>u===c?!0:!u.includes("-")&&!c.includes("-")?!1:!!(u.includes("-")&&!c.includes("-")&&u.slice(0,u.indexOf("-"))===c))}),a||(a=this.getFallbackCodes(this.options.fallbackLng)[0]),a}getFallbackCodes(t,a){if(!t)return[];if(typeof t=="function"&&(t=t(a)),bt(t)&&(t=[t]),Array.isArray(t))return t;if(!a)return t.default||[];let s=t[a];return s||(s=t[this.getScriptPartFromCode(a)]),s||(s=t[this.formatLanguageCode(a)]),s||(s=t[this.getLanguagePartFromCode(a)]),s||(s=t.default),s||[]}toResolveHierarchy(t,a){const s=this.options.fallbackLng,i=Array.isArray(s)?s.join("|"):s;i!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=i);const c=a===void 0||a===!1||bt(a),u=a===void 0&&typeof this.options.fallbackLng=="function",d=bt(t)&&c&&!u;let f=null;if(d){let k;a===void 0?k="undefined":a===!1?k="boolean:false":k=`string:${a}`,f=`${t.length}:${t}|${k}`}if(f!==null){const k=this.resolveHierarchyCache[f];if(k!==void 0)return k.slice()}const g=this.getFallbackCodes((a===!1?[]:a)||this.options.fallbackLng||[],t),y=[],b=k=>{k&&(this.isSupportedCode(k)?y.push(k):this.logger.warn(`rejecting language code not found in supportedLngs: ${k}`))};return bt(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&b(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&b(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&b(this.getLanguagePartFromCode(t))):bt(t)&&b(this.formatLanguageCode(t)),g.forEach(k=>{const C=this.formatLanguageCode(k);y.includes(C)||b(C)}),f!==null?(this.resolveHierarchyCache[f]=y,y.slice()):y}}const US={zero:0,one:1,two:2,few:3,many:4,other:5},VS={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class OP{constructor(t,a={}){this.languageUtils=t,this.options=a,this.logger=so.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,a={}){const s=bu(t==="dev"?"en":t),i=a.ordinal?"ordinal":"cardinal",c=JSON.stringify({cleanedCode:s,type:i});if(c in this.pluralRulesCache)return this.pluralRulesCache[c];let u;try{u=new Intl.PluralRules(s,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),VS;if(!t.match(/-|_/))return VS;const f=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(f,a)}return this.pluralRulesCache[c]=u,u}needsPlural(t,a={}){let s=this.getRule(t,a);return s||(s=this.getRule("dev",a)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,a,s={}){return this.getSuffixes(t,s).map(i=>`${a}${i}`)}getSuffixes(t,a={}){let s=this.getRule(t,a);return s||(s=this.getRule("dev",a)),s?s.resolvedOptions().pluralCategories.sort((i,c)=>US[i]-US[c]).map(i=>`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,a,s={}){const i=this.getRule(t,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(a)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",a,s))}}const GS=(e,t,a,s=".",i=!0)=>{let c=jP(e,t,a);return!c&&i&&bt(a)&&(c=$b(e,a,s),c===void 0&&(c=$b(t,a,s))),c};class KS{constructor(t={}){this.logger=so.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:a,escapeValue:s,useRawValueToEscape:i,prefix:c,prefixEscaped:u,suffix:d,suffixEscaped:f,formatSeparator:g,unescapeSuffix:y,unescapePrefix:b,nestingPrefix:k,nestingPrefixEscaped:C,nestingSuffix:w,nestingSuffixEscaped:v,nestingOptionsSeparator:S,maxReplaces:T,alwaysFormat:E}=t.interpolation;this.escape=a!==void 0?a:RP,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=c?zo(c):u||"{{",this.suffix=d?zo(d):f||"}}",this.formatSeparator=g||",",this.unescapePrefix=y?"":b?zo(b):"-",this.unescapeSuffix=this.unescapePrefix?"":y?zo(y):"",this.nestingPrefix=k?zo(k):C||zo("$t("),this.nestingSuffix=w?zo(w):v||zo(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=T||1e3,this.alwaysFormat=E!==void 0?E:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(a,s)=>a?.source===s?(a.lastIndex=0,a):new RegExp(s,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']|"[^"]*"|'[^']*'|\\((?:[^()"']|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,a,s,i){let c,u,d;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=v=>{if(!v.includes(this.formatSeparator)){const j=GS(a,f,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,s,{...i,...a,interpolationkey:v}):j}const S=v.split(this.formatSeparator),T=S.shift().trim(),E=S.join(this.formatSeparator).trim();return this.format(GS(a,f,T,this.options.keySeparator,this.options.ignoreJSONStructure),E,s,{...i,...a,interpolationkey:T})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const y=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,b=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,k=[{regex:this.regexpUnescape,safeValue:v=>v},{regex:this.regexp,safeValue:v=>this.escapeValue?this.escape(v):v}],C=[];let w=0;return k.forEach(v=>{for(d=0;c=v.regex.exec(t);){const S=c.index-w,T=C.find(([$,z])=>S>=$&&S<z);if(T){v.regex.lastIndex=T[1]+w;continue}const E=c[1].trim();if(u=g(E),u===void 0)if(typeof y=="function"){const $=y(t,c,i);u=bt($)?$:""}else if(i&&Object.prototype.hasOwnProperty.call(i,E))u="";else if(b){u=c[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),u="";else!bt(u)&&!this.useRawValueToEscape&&(u=Sp(u));const j=Sp(v.safeValue(u));if(t=t.slice(0,c.index)+j+t.slice(c.index+c[0].length),b?(v.regex===this.regexpUnescape?C.push([c.index,c.index+j.length]):w+=j.length-c[0].length,v.regex.lastIndex+=j.length,v.regex.lastIndex-=c[0].length):v.regex.lastIndex=0,d++,d>=this.maxReplaces)break}}),t}nest(t,a,s={}){let i,c,u;const d=(b,k)=>{const C=this.nestingOptionsSeparator;if(!b.includes(C))return b;const w=b.split(new RegExp(`${zo(C)}[ ]*{`));let v=`{${w[1]}`;b=w[0],v=this.interpolate(v,u);const S=v.match(/'/g),T=v.match(/"/g);((S?.length??0)%2===0&&!T||(T?.length??0)%2!==0)&&(v=v.replace(/'/g,'"'));try{u=JSON.parse(v),k&&(u={...k,...u})}catch(E){return this.logger.warn(`failed parsing options string in nesting for key ${b}`,E),`${b}${C}${v}`}return u.defaultValue&&u.defaultValue.includes(this.prefix)&&delete u.defaultValue,b},f=new RegExp(this.nestingRegexp);let g="",y=0;for(;i=f.exec(t);){let b=[];u={...s},u=u.replace&&!bt(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const k=/{.*}/s.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(k!==-1&&(b=i[1].slice(k).split(this.formatSeparator).map(C=>C.trim()).filter(Boolean),i[1]=i[1].slice(0,k)),c=a(d.call(this,i[1].trim(),u),u),c&&i[0]===t&&!bt(c))return c;bt(c)||(c=Sp(c)),c||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),c=""),b.length&&(c=b.reduce((C,w)=>this.format(C,w,s.lng,{...s,interpolationkey:i[1].trim()}),c.trim())),g+=t.slice(y,i.index)+Sp(c),y=f.lastIndex,this.regexp.lastIndex=0}return y?g+t.slice(y):t}}const IP=e=>{let t=e.toLowerCase().trim();const a={};if(e.includes("(")){const s=e.split("(");t=s[0].toLowerCase().trim();const i=s[1].slice(0,-1);t==="currency"&&!i.includes(":")?a.currency||(a.currency=i.trim()):t==="relativetime"&&!i.includes(":")?a.range||(a.range=i.trim()):i.split(";").forEach(u=>{if(u){const[d,...f]=u.split(":"),g=f.join(":").trim().replace(/^'+|'+$/g,""),y=d.trim();a[y]||(a[y]=g),g==="false"&&(a[y]=!1),g==="true"&&(a[y]=!0),isNaN(g)||(a[y]=parseInt(g,10))}})}return{formatName:t,formatOptions:a}},WS=e=>{const t={};return(a,s,i)=>{let c=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(c={...c,[i.interpolationkey]:void 0});let u;try{u=s+JSON.stringify(c)}catch{return e(bu(s),i)(a)}let d=t[u];return d||(d=e(bu(s),i),t[u]=d),d(a)}},_P=e=>(t,a,s)=>e(bu(a),s)(t);class PP{constructor(t={}){this.logger=so.create("formatter"),this.options=t,this.init(t)}init(t,a={interpolation:{}}){this.formatSeparator=a.interpolation.formatSeparator||",";const s=a.cacheInBuiltFormats?WS:_P;this.formats={number:s((i,c)=>{const u=new Intl.NumberFormat(i,{...c});return d=>u.format(d)}),currency:s((i,c)=>{const u=new Intl.NumberFormat(i,{...c,style:"currency"});return d=>u.format(d)}),datetime:s((i,c)=>{const u=new Intl.DateTimeFormat(i,{...c});return d=>u.format(d)}),relativetime:s((i,c)=>{const u=new Intl.RelativeTimeFormat(i,{...c});return d=>u.format(d,c.range||"day")}),list:s((i,c)=>{const u=new Intl.ListFormat(i,{...c});return d=>u.format(d)})}}add(t,a){this.formats[t.toLowerCase().trim()]=a}addCached(t,a){this.formats[t.toLowerCase().trim()]=WS(a)}format(t,a,s,i={}){if(!a||t==null)return t;const c=a.split(this.formatSeparator),u=[];for(let f=0;f<c.length;f++){let g=c[f];for(;g.indexOf("(")>-1&&!g.includes(")")&&f+1<c.length;)g=`${g}${this.formatSeparator}${c[++f]}`;u.push(g)}return u.reduce((f,g)=>{const{formatName:y,formatOptions:b}=IP(g);if(this.formats[y]){let k=f;try{const C=i?.formatParams?.[i.interpolationkey]||{},w=C.locale||C.lng||i.locale||i.lng||s;k=this.formats[y](f,w,{...b,...i,...C})}catch(C){this.logger.warn(C)}return k}else this.logger.warn(`there was no format function for ${y}`);return f},t)}}const BP=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class FP extends um{constructor(t,a,s,i={}){super(),this.backend=t,this.store=a,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=so.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,i.backend,i)}queueLoad(t,a,s,i){const c={},u={},d={},f={};return t.forEach(g=>{let y=!0;a.forEach(b=>{const k=`${g}|${b}`;!s.reload&&this.store.hasResourceBundle(g,b)?this.state[k]=2:this.state[k]<0||(this.state[k]===1?u[k]===void 0&&(u[k]=!0):(this.state[k]=1,y=!1,u[k]===void 0&&(u[k]=!0),c[k]===void 0&&(c[k]=!0),f[b]===void 0&&(f[b]=!0)))}),y||(d[g]=!0)}),(Object.keys(c).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(c),pending:Object.keys(u),toLoadLanguages:Object.keys(d),toLoadNamespaces:Object.keys(f)}}loaded(t,a,s){const i=t.split("|"),c=i[0],u=i[1];a&&this.emit("failedLoading",c,u,a),!a&&s&&this.store.addResourceBundle(c,u,s,void 0,void 0,{skipCopy:!0}),this.state[t]=a?-1:2,a&&s&&(this.state[t]=0);const d={};this.queue.forEach(f=>{$P(f.loaded,[c],u),BP(f,t),a&&f.errors.push(a),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(g=>{d[g]||(d[g]={});const y=f.loaded[g];y.length&&y.forEach(b=>{d[g][b]===void 0&&(d[g][b]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(f=>!f.done)}read(t,a,s,i=0,c=this.retryTimeout,u){if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:a,fcName:s,tried:i,wait:c,callback:u});return}this.readingCalls++;const d=(g,y)=>{if(this.readingCalls--,this.waitingReads.length>0){const b=this.waitingReads.shift();this.read(b.lng,b.ns,b.fcName,b.tried,b.wait,b.callback)}if(g&&y&&i<this.maxRetries){setTimeout(()=>{this.read(t,a,s,i+1,c*2,u)},c);return}u(g,y)},f=this.backend[s].bind(this.backend);if(f.length===2){try{const g=f(t,a);g&&typeof g.then=="function"?g.then(y=>d(null,y)).catch(d):d(null,g)}catch(g){d(g)}return}return f(t,a,d)}prepareLoading(t,a,s={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();bt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),bt(a)&&(a=[a]);const c=this.queueLoad(t,a,s,i);if(!c.toLoad.length)return c.pending.length||i(),null;c.toLoad.forEach(u=>{this.loadOne(u)})}load(t,a,s){this.prepareLoading(t,a,{},s)}reload(t,a,s){this.prepareLoading(t,a,{reload:!0},s)}loadOne(t,a=""){const s=t.split("|"),i=s[0],c=s[1];this.read(i,c,"read",void 0,void 0,(u,d)=>{u&&this.logger.warn(`${a}loading namespace ${c} for language ${i} failed`,u),!u&&d&&this.logger.log(`${a}loaded namespace ${c} for language ${i}`,d),this.loaded(t,u,d)})}saveMissing(t,a,s,i,c,u={},d=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(a)){this.logger.warn(`did not save key "${s}" as the namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend?.create){const f={...u,isUpdate:c},g=this.backend.create.bind(this.backend);if(g.length<6)try{let y;g.length===5?y=g(t,a,s,i,f):y=g(t,a,s,i),y&&typeof y.then=="function"?y.then(b=>d(null,b)).catch(d):d(null,y)}catch(y){d(y)}else g(t,a,s,i,d,f)}!t||!t[0]||this.store.addResource(t[0],a,s,i)}}}const T0=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),bt(e[1])&&(t.defaultValue=e[1]),bt(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const a=e[3]||e[2];Object.keys(a).forEach(s=>{t[s]=a[s]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),YS=e=>(bt(e.ns)&&(e.ns=[e.ns]),bt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),bt(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ep=()=>{},qP=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(a=>{typeof e[a]=="function"&&(e[a]=e[a].bind(e))})};class Gd extends um{constructor(t={},a){if(super(),this.options=YS(t),this.services={},this.logger=so,this.modules={external:[]},qP(this),a&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,a),this;setTimeout(()=>{this.init(t,a)},0)}}init(t={},a){this.isInitializing=!0,typeof t=="function"&&(a=t,t={}),t.defaultNS==null&&t.ns&&(bt(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const s=T0();this.options={...s,...this.options,...YS(t)},this.options.interpolation={...s.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler);const i=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?so.init(i(this.modules.logger),this.options):so.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=PP;const y=new HS(this.options);this.store=new qS(this.options.resources,this.options);const b=this.services;b.logger=so,b.resourceStore=this.store,b.languageUtils=y,b.pluralResolver=new OP(y,{prepend:this.options.pluralSeparator}),g&&(b.formatter=i(g),b.formatter.init&&b.formatter.init(b,this.options),this.options.interpolation.format=b.formatter.format.bind(b.formatter)),b.interpolator=new KS(this.options),b.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},b.backendConnector=new FP(i(this.modules.backend),b.resourceStore,b,this.options),b.backendConnector.on("*",(k,...C)=>{this.emit(k,...C)}),this.modules.languageDetector&&(b.languageDetector=i(this.modules.languageDetector),b.languageDetector.init&&b.languageDetector.init(b,this.options.detection,this.options)),this.modules.i18nFormat&&(b.i18nFormat=i(this.modules.i18nFormat),b.i18nFormat.init&&b.i18nFormat.init(this)),this.translator=new Ex(this.services,this.options),this.translator.on("*",(k,...C)=>{this.emit(k,...C)}),this.modules.external.forEach(k=>{k.init&&k.init(this)})}if(this.format=this.options.interpolation.format,a||(a=Ep),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...y)=>this.store[g](...y)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...y)=>(this.store[g](...y),this)});const d=Nd(),f=()=>{const g=(y,b)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),d.resolve(b),a(y,b)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?f():setTimeout(f,0),d}loadResources(t,a=Ep){let s=a;const i=bt(t)?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const c=[],u=d=>{if(!d||d==="cimode")return;this.services.languageUtils.toResolveHierarchy(d).forEach(g=>{g!=="cimode"&&(c.includes(g)||c.push(g))})};i?u(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>u(f)),this.options.preload?.forEach?.(d=>u(d)),this.services.backendConnector.load(c,this.options.ns,d=>{!d&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(d)})}else s(null)}reloadResources(t,a,s){const i=Nd();return typeof t=="function"&&(s=t,t=void 0),typeof a=="function"&&(s=a,a=void 0),t||(t=this.languages),a||(a=this.options.ns),s||(s=Ep),this.services.backendConnector.reload(t,a,c=>{i.resolve(),s(c)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&Tj.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let a=0;a<this.languages.length;a++){const s=this.languages[a];if(!["cimode","dev"].includes(s)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,a){this.isLanguageChangingTo=t;const s=Nd();this.emit("languageChanging",t);const i=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},c=(d,f)=>{f?this.isLanguageChangingTo===t&&(i(f),this.translator.changeLanguage(f),this.isLanguageChangingTo=void 0,this.emit("languageChanged",f),this.logger.log("languageChanged",f)):this.isLanguageChangingTo=void 0,s.resolve((...g)=>this.t(...g)),a&&a(d,(...g)=>this.t(...g))},u=d=>{!t&&!d&&this.services.languageDetector&&(d=[]);const f=bt(d)?d:d&&d[0],g=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(bt(d)?[d]:d);g&&(this.language||i(g),this.translator.language||this.translator.changeLanguage(g),this.services.languageDetector?.cacheUserLanguage?.(g)),this.loadResources(g,y=>{c(y,g)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?u(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(u):this.services.languageDetector.detect(u):u(t),s}getFixedT(t,a,s,i){const c=i?.scopeNs,u=(d,f,...g)=>{let y;typeof f!="object"?y=this.options.overloadTranslationOptionHandler([d,f].concat(g)):y={...f},y.lng=y.lng||u.lng,y.lngs=y.lngs||u.lngs;const b=y.ns!==void 0&&y.ns!==null;y.ns=y.ns||u.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||s||u.keyPrefix);const k={...this.options,...y};Array.isArray(c)&&!b&&(k.ns=c),typeof y.keyPrefix=="function"&&(y.keyPrefix=Tl(y.keyPrefix,k));const C=this.options.keySeparator||".";let w;return y.keyPrefix&&Array.isArray(d)?w=d.map(v=>(typeof v=="function"&&(v=Tl(v,k)),`${y.keyPrefix}${C}${v}`)):(typeof d=="function"&&(d=Tl(d,k)),w=y.keyPrefix?`${y.keyPrefix}${C}${d}`:d),this.t(w,y)};return bt(t)?u.lng=t:u.lngs=t,u.ns=a,u.keyPrefix=s,u}t(...t){return this.translator?.translate(...t)}exists(...t){return this.translator?.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,a={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=a.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,c=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const u=(g,y)=>{const b=this.services.backendConnector.state[`${g}|${y}`];return b===-1||b===0||b===2};if(a.precheck){const g=a.precheck(this,u);if(g!==void 0)return g}if(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;const{languageUtils:d}=this.services,f=a.lng?d.isSupportedCode(s)&&d.toResolveHierarchy(s,!1)[0]:s;return!!((!f||u(f,t))&&(!i||u(c,t)))}loadNamespaces(t,a){const s=Nd();return this.options.ns?(bt(t)&&(t=[t]),t.forEach(i=>{this.options.ns.includes(i)||this.options.ns.push(i)}),this.loadResources(i=>{s.resolve(),a&&a(i)}),s):(a&&a(),Promise.resolve())}loadLanguages(t,a){const s=Nd();bt(t)&&(t=[t]);const i=this.options.preload||[],c=t.filter(u=>!i.includes(u)&&this.services.languageUtils.isSupportedCode(u));return c.length?(this.options.preload=i.concat(c),this.loadResources(u=>{s.resolve(),a&&a(u)}),s):(a&&a(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const i=new Intl.Locale(t);if(i&&i.getTextInfo){const c=i.getTextInfo();if(c&&c.direction)return c.direction}}catch{}const a=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services?.languageUtils||new HS(T0());return t.toLowerCase().indexOf("-latn")>1?"ltr":a.includes(s.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},a){const s=new Gd(t,a);return s.createInstance=Gd.createInstance,s}cloneInstance(t={},a=Ep){const s=t.forkResourceStore;s&&delete t.forkResourceStore;const i={...this.options,preload:!1,...t,isClone:!0},c=new Gd(i);if((t.debug!==void 0||t.prefix!==void 0)&&(c.logger=c.logger.clone(t)),["store","services","language"].forEach(d=>{c[d]=this[d]}),c.services={...this.services},c.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},s){const d=g=>{const y=Array.isArray(g)?[...g]:{...g};return Object.keys(y).forEach(b=>{y[b]&&typeof y[b]=="object"&&(y[b]=d(y[b]))}),y},f=d(this.store.data);c.store=new qS(f,i),c.services.resourceStore=c.store}if(t.interpolation){const f={...T0().interpolation,...this.options.interpolation,...t.interpolation},g={...i,interpolation:f};c.services.interpolator=new KS(g)}return c.translator=new Ex(c.services,i),c.translator.on("*",(d,...f)=>{c.emit(d,...f)}),c.init(i,a),c.translator.options=i,c.translator.backendConnector.services.utils={hasLoadedNamespace:c.hasLoadedNamespace.bind(c)},c}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Cr=Gd.createInstance();Cr.createInstance;Cr.dir;Cr.init;Cr.loadResources;Cr.reloadResources;Cr.use;Cr.changeLanguage;Cr.getFixedT;Cr.t;Cr.exists;Cr.setDefaultNamespace;Cr.hasLoadedNamespace;Cr.loadNamespaces;Cr.loadLanguages;const K1={"navigation.overview":"Overview","navigation.capturesDescription":"Collect links first, then organize them later.","navigation.jobs":"Jobs","navigation.jobsDescription":"Review fetch history and errors for this capture.","navigation.captures":"Captures","navigation.captureDetails":"Capture details","navigation.captureDetailsDescription":"Inspect the latest successful response from the configured fetcher.","navigation.library":"Library","navigation.prompts":"Prompts","navigation.sessions":"Sessions","navigation.sessionsDescription":"Browse local agent sessions, grouped by working directory.","navigation.providers":"Providers","navigation.settings":"Settings","navigation.main":"Main","navigation.account":"Account","navigation.back":"Back","navigation.openNavigation":"Open navigation","navigation.windowTitlebar":"Window titlebar","sessions.source":"Session source","sessions.codex":"ChatGPT","sessions.claudeCode":"Claude Code","sessions.refresh":"Refresh","sessions.archived":"Archived","sessions.subagents":"Subagents","sessions.subagent":"Subagent","sessions.unknownDirectory":"Unknown directory","sessions.thread":"Session","sessions.updated":"Last activity","sessions.size":"File size","sessions.tokens":"Tokens","sessions.model":"Model","sessions.sessionCount":"{{count}} sessions","sessions.sessionCount_one":"{{count}} session","sessions.sessionCount_other":"{{count}} sessions","sessions.includeArchived":"Include archived","sessions.loading":"Reading local session records…","sessions.showArchivedHint":"Select “Include archived” to show archived sessions.","sessions.noReadableTitle":"No sessions could be read","sessions.noReadableDescription":"Refresh to try reading the session records again.","sessions.filesUnreadable_one":"{{count}} session file could not be fully read. Try refreshing.","sessions.filesUnreadable_other":"{{count}} session files could not be fully read. Try refreshing.","sessions.emptyTitle":"No {{source}} sessions","sessions.emptyDescription":"No local {{source}} session records were found. Start a conversation in {{source}}, then refresh.","sessions.errorTitle":"Could not read session records","sessions.errorDescription":"Local session records could not be read. Try refreshing.","sessions.noThreadsTitle":"No sessions match the filters","sessions.noThreadsDescription":"Try changing the session filters.","sessions.warningTitle":"Some records could not be read","sessions.filesUnreadable":"{{count}} session files could not be fully read. Try refreshing.","overview.title":"Good to see you","overview.description":"A summary of the local workspace.","prompts.description":"Reusable text fragments for agent conversations.","providers.add":"Add provider","providers.addFirst":"Add your first provider","providers.empty":"Connect a model service to make its models available in Foundry.","providers.emptyTitle":"No model providers yet","providers.deleteQuestion":"Delete provider?","providers.cancel":"Cancel","providers.delete":"Delete","providers.edit":"Edit provider","providers.deleteLabel":"Delete provider","providers.enable":"Enable provider","providers.disable":"Disable provider","providers.inUse":"Provider is currently in use","providers.customModels":"custom models","providers.enabled":"enabled","providers.formDescription":"Connect a model service using one of Foundry's supported protocols.","providers.failedFetchModels":"Failed to fetch models","providers.save":"Save provider","providers.name":"Name","providers.protocol":"Protocol","providers.baseUrl":"Base URL","providers.apiKey":"API key","providers.hideApiKey":"Hide API key","providers.showApiKey":"Show API key","providers.models":"Models","providers.required":"Required","providers.modelSources":"Model sources","providers.modelsTemporary":"Fetched models are temporary. Custom models are saved with this provider.","providers.aboutModelSources":"About model sources","providers.fetchModels":"Fetch models","providers.modelId":"Model ID","providers.customModelId":"Custom model ID","providers.displayName":"Display name","providers.displayNameOptional":"Display name (optional)","providers.addCustomModel":"Add custom model","fetchers.firecrawl":"Firecrawl","navigation.notFound":"Page not found","navigation.newProvider":"New provider","navigation.editProvider":"Edit provider","navigation.providersDescription":"Manage the model service connections used by Foundry.","settings.workspace":"Workspace","settings.features":"Features","settings.library":"Library","settings.captures":"Captures","settings.advanced":"Advanced","settings.configFolder":"Config folder","settings.openConfigFolder":"Open folder","settings.exportDataDescription":"Create an encrypted Foundry snapshot.","settings.exportData":"Export data","settings.exportDataAction":"Export","settings.finishJobsBeforeTransfer":"Finish active fetch jobs before transferring data.","settings.importData":"Import data","settings.importDataAction":"Import","settings.importDataDescription":"Restore data from an encrypted Foundry snapshot.","settings.appearance":"Appearance","settings.appearanceDescription":"Theme and density for this browser.","settings.languageRegion":"Language & region","settings.languageRegionDescription":"Language, formats, and time zone.","settings.search":"Search settings","providers.avatar":"Avatar","providers.avatarDescription":"Choose a PNG, JPEG, GIF, WebP, or SVG image up to 2 MB.","providers.avatarUpload":"Upload avatar","providers.avatarChange":"Change avatar","providers.avatarRemove":"Remove avatar","providers.avatarInvalid":"Choose a valid PNG, JPEG, GIF, WebP, or SVG image up to 2 MB.","providers.saveFailed":"Unable to save this provider. Please try again.","settings.colorTheme":"Color theme","settings.colorThemeDescription":"Applies to this browser only.","settings.language":"Language","settings.languageDescription":"Used across menus, buttons, and email.","settings.timeFormat":"Time format","settings.timeFormatDescription":"Timestamp pattern used across Foundry.","settings.timezone":"Time zone","settings.timezoneDescription":"Used for scheduling and every timestamp you see.","settings.system":"System","settings.light":"Light","settings.dark":"Dark","settings.losAngeles":"Los Angeles (GMT-08:00)","settings.newYork":"New York (GMT-05:00)","settings.shanghai":"Shanghai (GMT+08:00)","settings.taipei":"Taipei (GMT+08:00)","settings.tokyo":"Tokyo (GMT+09:00)","settings.utc":"UTC (GMT+00:00)","settings.noResults":"No settings found","settings.trySearch":"Try theme, language, or sessions.","settings.libraryDescription":"Capture and prompt settings.","settings.advancedDescription":"Agent skill, data transfer, and local configuration.","settings.downloadSkill":"Agent skill","settings.downloadSkillDescription":"Choose which user-level agent skill directories to install Foundry into.","settings.downloadSkillAction":"Download skill","settings.downloadSkillTargets":"Destinations","settings.downloadSkillResolvingPath":"Resolving destination path…","settings.skillCancel":"Cancel","settings.skillDownloaded":"Skill copied to","settings.skillDownloadFailed":"Unable to download the skill.","settings.capturesFetcher":"Fetcher","settings.capturesFetcherDescription":"The service used to discover context around saved links.","settings.capturesNotConfigured":"Not configured","settings.capturesApiKey":"API key","settings.capturesApiKeyDescription":"Authenticates requests to the configured fetcher.","settings.capturesApiKeyPlaceholder":"Enter an API key","settings.capturesMaxAttempts":"Maximum attempts","settings.capturesMaxAttemptsDescription":"Total requests per fetch job, from 1 to 10.","settings.capturesConcurrency":"Fetch concurrency","settings.capturesConcurrencyDescription":"Maximum simultaneous fetch jobs, from 1 to 5.","captures.captureAdded":"Capture added","captures.captureExists":"This link is already captured","captures.note":"Note","captures.toPaste":"to paste","captures.pasteLink":"Paste a link","captures.capturing":"Capturing…","captures.enterToCapture":"to capture","captures.configureFetcherFirst":"Configure a Fetcher in Settings before capturing pages.","captures.activeJobExists":"A fetch job is already running for this capture.","captures.dataTransferBusy":"Wait for the current data transfer to finish.","captures.captureNotFound":"Capture not found.","captures.invalidUrl":"Enter a valid HTTP or HTTPS URL.","captures.addCapture":"Add a capture","captures.title":"Title","captures.url":"URL","captures.viewDetails":"View details","captures.viewJobs":"View jobs","captures.recapture":"Re-capture","captures.delete":"Delete","captures.captureFilter":"Filter captures","captures.allCaptures":"All","captures.noCapturedContent":"No captured content","captures.refresh":"Refresh","captures.emptyTitle":"No captures yet","captures.emptyDescription":"Paste a link to start collecting.","captures.deleteCaptureTitle":"Delete capture?","captures.cancel":"Cancel","captures.recaptureStarted":"Re-capture started","captures.captureDeleted":"Capture deleted","captures.fetchFailed":"Link discovery failed","captures.jobStatus":"Status","captures.jobStatus.pending":"Pending","captures.jobStatus.running":"Running","captures.jobStatus.succeeded":"Succeeded","captures.jobStatus.failed":"Failed","captures.fetcher":"Fetcher","captures.creditsUsed":"Credits","captures.createdAt":"Created at","captures.updatedAt":"Updated at","captures.error":"Error","captures.noJobsTitle":"No fetch jobs","captures.noJobsDescription":"This capture does not have any fetch history.","captures.noResponseTitle":"No fetcher response yet","captures.noResponseDescription":"This capture has no successful response from the configured fetcher. Review its jobs or re-capture it.","captures.rawResponse":"Raw fetcher response","captures.detailUnavailable":"Capture details are unavailable","captures.addNote":"Add a note","dataTransfer.exportTitle":"Export Foundry data","dataTransfer.exportSubtitle":"Protect this snapshot with a passphrase.","dataTransfer.passphrase":"Passphrase","dataTransfer.passphraseDescription":"Used to encrypt and restore this backup.","dataTransfer.confirmPassphrase":"Confirm passphrase","dataTransfer.passphraseMismatch":"The passphrases do not match.","dataTransfer.passphraseRequired":"Enter a passphrase.","dataTransfer.passphraseWarning":"Foundry cannot recover a forgotten passphrase. Store it somewhere safe before exporting.","dataTransfer.cancel":"Cancel","dataTransfer.exportAction":"Choose location and export","dataTransfer.exported":"Foundry data exported.","dataTransfer.importTitle":"Import Foundry data","dataTransfer.importPassphraseDescription":"Enter the passphrase used when this snapshot was exported.","dataTransfer.inspectAction":"Unlock snapshot","dataTransfer.previewTitle":"Review import","dataTransfer.exportedAt":"Exported","dataTransfer.appVersion":"Foundry version","dataTransfer.schemaVersion":"Data version","dataTransfer.providers":"Providers","dataTransfer.captures":"Captures","dataTransfer.jobs":"Jobs","dataTransfer.replaceWarning":"Importing replaces all current Providers, Captures, Jobs, and application settings. Foundry will restart afterward.","dataTransfer.importAction":"Import and replace","dataTransfer.importingTitle":"Importing data","dataTransfer.importingDescription":"Importing Foundry data…","dataTransfer.importingHint":"Keep Foundry open until the import finishes.","dataTransfer.restartTitle":"Import complete","dataTransfer.restartDescription":"The data was imported successfully. Restart Foundry to load it.","dataTransfer.restartHint":"The current session remains locked until Foundry restarts.","dataTransfer.restartAction":"Restart Foundry","dataTransfer.activeJobs":"Finish active fetch jobs before exporting or importing data.","dataTransfer.archiveHasActiveJobs":"This snapshot contains unfinished fetch jobs and cannot be imported.","dataTransfer.busy":"Another data transfer is already in progress.","dataTransfer.importExpired":"The import session has expired. Select the file again.","dataTransfer.invalidPassphrase":"The passphrase is incorrect or the snapshot is corrupted.","dataTransfer.newerVersion":"This snapshot was created by a newer version of Foundry.","dataTransfer.unsupportedArchive":"This snapshot format is not supported by this version of Foundry.","dataTransfer.invalidArchive":"This is not a valid Foundry snapshot.","dataTransfer.ioError":"The data transfer could not be completed."},Aj={...K1,"navigation.overview":"概览","navigation.captures":"收藏","navigation.captureDetails":"收藏详情","navigation.captureDetailsDescription":"查看已配置抓取服务最近一次成功的响应。","navigation.library":"资料库","navigation.prompts":"提示词","navigation.sessions":"会话","navigation.sessionsDescription":"浏览本地智能体会话,按工作目录分组。","navigation.providers":"服务提供商","navigation.settings":"设置","navigation.main":"主要功能","navigation.account":"账户","navigation.back":"返回","navigation.openNavigation":"打开导航","navigation.windowTitlebar":"窗口标题栏","sessions.source":"会话来源","sessions.codex":"ChatGPT","sessions.claudeCode":"Claude Code","sessions.refresh":"刷新","sessions.archived":"已归档","sessions.subagents":"子代理","sessions.subagent":"子代理","sessions.unknownDirectory":"未知目录","sessions.thread":"会话","sessions.updated":"最近活动","sessions.size":"文件大小","sessions.tokens":"Token","sessions.model":"模型","sessions.sessionCount":"{{count}} 个会话","sessions.sessionCount_one":"{{count}} 个会话","sessions.sessionCount_other":"{{count}} 个会话","sessions.includeArchived":"包含已归档","sessions.loading":"正在读取本地会话记录…","sessions.showArchivedHint":"勾选“包含已归档”以显示已归档会话。","sessions.noReadableTitle":"未能读取到会话","sessions.noReadableDescription":"请刷新,重新尝试读取会话记录。","sessions.filesUnreadable_one":"{{count}} 个会话文件未能完整读取,请刷新重试。","sessions.filesUnreadable_other":"{{count}} 个会话文件未能完整读取,请刷新重试。","sessions.emptyTitle":"暂无 {{source}} 会话","sessions.emptyDescription":"未找到本地 {{source}} 会话记录。请先在 {{source}} 中开始对话,然后刷新。","sessions.errorTitle":"无法读取会话记录","sessions.errorDescription":"无法读取本地会话记录,请刷新重试。","sessions.noThreadsTitle":"没有符合筛选条件的会话","sessions.noThreadsDescription":"请尝试调整会话筛选条件。","sessions.warningTitle":"部分会话记录未能完整读取","sessions.filesUnreadable":"{{count}} 个会话文件未能完整读取,请刷新重试。","overview.description":"本地工作区摘要。","prompts.description":"可复用于智能体对话的文本片段。","providers.add":"添加服务提供商","providers.addFirst":"添加第一个服务提供商","providers.empty":"连接模型服务,即可在 Foundry 中使用其模型。","providers.emptyTitle":"还没有模型服务提供商","providers.deleteQuestion":"删除服务提供商?","providers.cancel":"取消","providers.delete":"删除","providers.edit":"编辑服务提供商","providers.deleteLabel":"删除服务提供商","providers.enable":"启用服务提供商","providers.disable":"停用服务提供商","providers.inUse":"服务提供商正在使用中","providers.customModels":"个自定义模型","providers.enabled":"已启用","providers.formDescription":"使用 Foundry 支持的协议连接模型服务。","providers.failedFetchModels":"获取模型失败","providers.save":"保存服务提供商","providers.name":"名称","providers.protocol":"协议","providers.baseUrl":"基础 URL","providers.apiKey":"API 密钥","providers.hideApiKey":"隐藏 API 密钥","providers.showApiKey":"显示 API 密钥","providers.models":"模型","providers.required":"必填","providers.modelSources":"模型来源","providers.modelsTemporary":"获取的模型为临时模型,自定义模型会随服务提供商一起保存。","providers.aboutModelSources":"关于模型来源","providers.fetchModels":"获取模型","providers.modelId":"模型 ID","providers.customModelId":"自定义模型 ID","providers.displayName":"显示名称","providers.displayNameOptional":"显示名称(可选)","providers.addCustomModel":"添加自定义模型","navigation.notFound":"页面未找到","navigation.newProvider":"新建服务提供商","navigation.editProvider":"编辑服务提供商","navigation.providersDescription":"管理 Foundry 使用的模型服务连接。","settings.workspace":"工作区","settings.advanced":"高级","settings.configFolder":"配置文件夹","settings.openConfigFolder":"打开文件夹","settings.appearance":"外观","settings.appearanceDescription":"此应用的明暗主题和密度。","settings.languageRegion":"语言和地区","settings.languageRegionDescription":"语言、格式和时区。","settings.search":"搜索设置","providers.avatar":"头像","providers.avatarDescription":"选择不超过 2 MB 的 PNG、JPEG、GIF、WebP 或 SVG 图片。","providers.avatarUpload":"上传头像","providers.avatarChange":"更换头像","providers.avatarRemove":"移除头像","providers.avatarInvalid":"请选择有效且不超过 2 MB 的 PNG、JPEG、GIF、WebP 或 SVG 图片。","providers.saveFailed":"服务商保存失败,请重试。","settings.colorTheme":"颜色主题","settings.colorThemeDescription":"仅应用于此应用。","settings.language":"语言","settings.languageDescription":"用于菜单、按钮和邮件。","settings.timeFormat":"时间格式","settings.timeFormatDescription":"Foundry 中所有时间戳使用的格式。","settings.timezone":"时区","settings.timezoneDescription":"用于日程安排和所有时间戳。","settings.system":"跟随系统","settings.light":"浅色","settings.dark":"深色","settings.losAngeles":"洛杉矶(GMT-08:00)","settings.newYork":"纽约(GMT-05:00)","settings.shanghai":"上海(GMT+08:00)","settings.taipei":"台北(GMT+08:00)","settings.tokyo":"东京(GMT+09:00)","settings.utc":"UTC(GMT+00:00)","settings.noResults":"未找到设置","settings.trySearch":"试试搜索主题、语言或会话。","settings.libraryDescription":"收藏和提示词设置。","settings.advancedDescription":"Agent Skill、数据传输和本地配置。","settings.downloadSkill":"Agent Skill","settings.downloadSkillDescription":"选择要安装 Foundry Skill 的用户级 agent 目录。","settings.downloadSkillAction":"下载 Skill","settings.downloadSkillTargets":"目标位置","settings.downloadSkillResolvingPath":"正在获取目标路径…","settings.skillCancel":"取消","settings.skillDownloaded":"Skill 已复制到","settings.skillDownloadFailed":"无法下载 Skill。","navigation.capturesDescription":"先收集链接,之后再整理。","navigation.jobs":"抓取记录","navigation.jobsDescription":"查看这条收藏的抓取任务历史与错误。","overview.title":"欢迎回来","settings.features":"功能","settings.library":"资料库","settings.captures":"收藏","settings.capturesFetcher":"抓取服务","settings.capturesFetcherDescription":"用于围绕收藏链接发现上下文的服务。","settings.capturesNotConfigured":"未配置","settings.capturesApiKey":"API 密钥","settings.capturesApiKeyDescription":"用于向已配置的抓取服务认证请求。","settings.capturesApiKeyPlaceholder":"输入 API 密钥","settings.capturesMaxAttempts":"最大尝试次数","settings.capturesMaxAttemptsDescription":"每个抓取任务的总请求次数,1 到 10。","settings.capturesConcurrency":"抓取并发数","settings.capturesConcurrencyDescription":"同时运行的抓取任务上限,1 到 5。","captures.captureAdded":"已收藏","captures.captureExists":"这个链接已经收藏过了","captures.note":"备注","captures.toPaste":"粘贴","captures.pasteLink":"粘贴链接","captures.capturing":"正在收藏…","captures.enterToCapture":"收藏","captures.configureFetcherFirst":"请先在设置中配置抓取服务。","captures.activeJobExists":"这条收藏已有正在运行的抓取任务。","captures.captureNotFound":"找不到这条收藏。","captures.invalidUrl":"请输入有效的 HTTP 或 HTTPS 链接。","captures.addCapture":"添加收藏","captures.title":"标题","captures.url":"链接","captures.viewDetails":"查看详情","captures.viewJobs":"查看抓取记录","captures.recapture":"重新抓取","captures.delete":"删除","captures.captureFilter":"筛选收藏","captures.allCaptures":"全部","captures.noCapturedContent":"尚未采集到内容","captures.refresh":"刷新","captures.emptyTitle":"还没有收藏","captures.emptyDescription":"粘贴一个链接开始收集。","captures.deleteCaptureTitle":"删除这条收藏?","captures.cancel":"取消","captures.recaptureStarted":"已开始重新抓取","captures.captureDeleted":"收藏已删除","captures.fetchFailed":"链接发现失败","captures.jobStatus":"状态","captures.jobStatus.pending":"等待中","captures.jobStatus.running":"抓取中","captures.jobStatus.succeeded":"已成功","captures.jobStatus.failed":"已失败","captures.fetcher":"抓取服务","captures.creditsUsed":"消耗额度","captures.createdAt":"创建时间","captures.updatedAt":"更新时间","captures.error":"错误","captures.noJobsTitle":"没有抓取记录","captures.noJobsDescription":"这条收藏还没有抓取历史。","captures.noResponseTitle":"还没有抓取服务响应","captures.noResponseDescription":"这条收藏尚无已配置抓取服务返回的成功响应。请查看任务记录或重新抓取。","captures.rawResponse":"抓取服务原始响应","captures.detailUnavailable":"无法加载收藏详情","captures.addNote":"添加备注","captures.dataTransferBusy":"请等待当前数据传输完成。","settings.exportDataDescription":"创建加密的 Foundry 快照。","settings.exportData":"导出数据","settings.exportDataAction":"导出","settings.finishJobsBeforeTransfer":"请先等待正在运行的抓取任务完成。","settings.importData":"导入数据","settings.importDataAction":"导入","settings.importDataDescription":"从加密的 Foundry 快照恢复数据。","dataTransfer.exportTitle":"导出 Foundry 数据","dataTransfer.exportSubtitle":"使用口令保护这个快照。","dataTransfer.passphrase":"口令","dataTransfer.passphraseDescription":"用于加密此备份,导入时需要输入。","dataTransfer.confirmPassphrase":"确认口令","dataTransfer.passphraseMismatch":"两次输入的口令不一致。","dataTransfer.passphraseRequired":"请输入口令。","dataTransfer.passphraseWarning":"Foundry 无法恢复遗忘的口令,请在导出前妥善保存。","dataTransfer.cancel":"取消","dataTransfer.exportAction":"选择位置并导出","dataTransfer.exported":"Foundry 数据已导出。","dataTransfer.importTitle":"导入 Foundry 数据","dataTransfer.importPassphraseDescription":"输入导出这个快照时使用的口令。","dataTransfer.inspectAction":"解锁快照","dataTransfer.previewTitle":"确认导入","dataTransfer.exportedAt":"导出时间","dataTransfer.appVersion":"Foundry 版本","dataTransfer.schemaVersion":"数据版本","dataTransfer.providers":"服务提供商","dataTransfer.captures":"收藏","dataTransfer.jobs":"抓取任务","dataTransfer.replaceWarning":"导入会替换当前全部服务提供商、收藏、抓取任务和应用设置。导入完成后 Foundry 将重新启动。","dataTransfer.importAction":"导入并替换","dataTransfer.importingTitle":"正在导入数据","dataTransfer.importingDescription":"正在导入 Foundry 数据…","dataTransfer.importingHint":"导入完成前请保持 Foundry 开启。","dataTransfer.restartTitle":"导入完成","dataTransfer.restartDescription":"数据已成功导入,请重启 Foundry 以载入数据。","dataTransfer.restartHint":"重启前当前会话会保持锁定。","dataTransfer.restartAction":"重启 Foundry","dataTransfer.activeJobs":"请先等待正在运行的抓取任务完成,再导出或导入数据。","dataTransfer.archiveHasActiveJobs":"这个快照包含未完成的抓取任务,无法导入。","dataTransfer.busy":"另一个数据传输正在进行中。","dataTransfer.importExpired":"导入会话已过期,请重新选择文件。","dataTransfer.invalidPassphrase":"口令错误或快照已损坏。","dataTransfer.newerVersion":"这个快照由更新版本的 Foundry 创建。","dataTransfer.unsupportedArchive":"当前 Foundry 版本不支持这个快照格式。","dataTransfer.invalidArchive":"这不是有效的 Foundry 快照。","dataTransfer.ioError":"数据传输未能完成。"},HP={...Aj,"navigation.overview":"總覽","navigation.captures":"收藏","navigation.captureDetails":"收藏詳情","navigation.captureDetailsDescription":"檢視已設定抓取服務最近一次成功的回應。","navigation.library":"資料庫","navigation.prompts":"提示詞","navigation.sessions":"對話","navigation.sessionsDescription":"瀏覽本機 AI 代理的對話,依工作目錄分組。","navigation.providers":"服務提供者","navigation.settings":"設定","navigation.main":"主要功能","navigation.account":"帳戶","navigation.back":"返回","navigation.openNavigation":"開啟導覽","navigation.windowTitlebar":"視窗標題列","sessions.source":"對話來源","sessions.codex":"ChatGPT","sessions.claudeCode":"Claude Code","sessions.refresh":"重新整理","sessions.archived":"已封存","sessions.subagents":"子代理","sessions.subagent":"子代理","sessions.unknownDirectory":"未知目錄","sessions.thread":"對話","sessions.updated":"最近活動","sessions.size":"檔案大小","sessions.tokens":"Token","sessions.model":"模型","sessions.sessionCount":"{{count}} 個對話","sessions.sessionCount_one":"{{count}} 個對話","sessions.sessionCount_other":"{{count}} 個對話","sessions.includeArchived":"包含已封存","sessions.loading":"正在讀取本機對話紀錄…","sessions.showArchivedHint":"勾選「包含已封存」以顯示已封存的對話。","sessions.noReadableTitle":"未能讀取任何對話","sessions.noReadableDescription":"請重新整理,再次嘗試讀取對話紀錄。","sessions.filesUnreadable_one":"{{count}} 個對話檔案未能完整讀取,請重新整理後再試一次。","sessions.filesUnreadable_other":"{{count}} 個對話檔案未能完整讀取,請重新整理後再試一次。","sessions.emptyTitle":"尚無 {{source}} 對話","sessions.emptyDescription":"找不到本機的 {{source}} 對話紀錄。請先在 {{source}} 中開始對話,再重新整理。","sessions.errorTitle":"無法讀取對話紀錄","sessions.errorDescription":"無法讀取本機對話紀錄,請重新整理後再試一次。","sessions.noThreadsTitle":"沒有符合篩選條件的對話","sessions.noThreadsDescription":"請嘗試調整對話篩選條件。","sessions.warningTitle":"部分對話紀錄未能完整讀取","sessions.filesUnreadable":"{{count}} 個對話檔案未能完整讀取,請重新整理後再試一次。","overview.description":"本機工作區摘要。","prompts.description":"可重複用於代理人對話的文字片段。","providers.add":"新增服務提供者","providers.addFirst":"新增第一個服務提供者","providers.empty":"連接模型服務,即可在 Foundry 中使用其模型。","providers.emptyTitle":"尚無模型服務提供者","providers.deleteQuestion":"刪除服務提供者?","providers.cancel":"取消","providers.delete":"刪除","providers.edit":"編輯服務提供者","providers.deleteLabel":"刪除服務提供者","providers.enable":"啟用服務提供者","providers.disable":"停用服務提供者","providers.inUse":"服務提供者目前正在使用中","providers.customModels":"個自訂模型","providers.enabled":"已啟用","providers.formDescription":"使用 Foundry 支援的協定連線模型服務。","providers.failedFetchModels":"取得模型失敗","providers.save":"儲存服務提供者","providers.name":"名稱","providers.protocol":"協定","providers.baseUrl":"基礎 URL","providers.apiKey":"API 金鑰","providers.hideApiKey":"隱藏 API 金鑰","providers.showApiKey":"顯示 API 金鑰","providers.models":"模型","providers.required":"必填","providers.modelSources":"模型來源","providers.modelsTemporary":"取得的模型為暫時模型,自訂模型會隨服務提供者一起儲存。","providers.aboutModelSources":"關於模型來源","providers.fetchModels":"取得模型","providers.modelId":"模型 ID","providers.customModelId":"自訂模型 ID","providers.displayName":"顯示名稱","providers.displayNameOptional":"顯示名稱(選填)","providers.addCustomModel":"新增自訂模型","navigation.notFound":"找不到頁面","navigation.newProvider":"新增服務提供者","navigation.editProvider":"編輯服務提供者","navigation.providersDescription":"管理 Foundry 使用的模型服務連線。","settings.workspace":"工作區","settings.advanced":"進階","settings.configFolder":"設定資料夾","settings.openConfigFolder":"開啟資料夾","settings.appearance":"外觀","settings.appearanceDescription":"此應用程式的外觀主題與密度。","settings.languageRegion":"語言與地區","settings.languageRegionDescription":"語言、格式與時區。","settings.search":"搜尋設定","providers.avatar":"頭像","providers.avatarDescription":"選擇不超過 2 MB 的 PNG、JPEG、GIF、WebP 或 SVG 圖片。","providers.avatarUpload":"上傳頭像","providers.avatarChange":"更換頭像","providers.avatarRemove":"移除頭像","providers.avatarInvalid":"請選擇有效且不超過 2 MB 的 PNG、JPEG、GIF、WebP 或 SVG 圖片。","providers.saveFailed":"服務商儲存失敗,請重試。","settings.colorTheme":"色彩主題","settings.colorThemeDescription":"僅套用於此應用程式。","settings.language":"語言","settings.languageDescription":"用於選單、按鈕與郵件。","settings.timeFormat":"時間格式","settings.timeFormatDescription":"Foundry 中所有時間戳記使用的格式。","settings.timezone":"時區","settings.timezoneDescription":"用於排程與所有時間戳記。","settings.system":"跟隨系統","settings.light":"淺色","settings.dark":"深色","settings.losAngeles":"洛杉磯(GMT-08:00)","settings.newYork":"紐約(GMT-05:00)","settings.shanghai":"上海(GMT+08:00)","settings.taipei":"台北(GMT+08:00)","settings.tokyo":"東京(GMT+09:00)","settings.utc":"UTC(GMT+00:00)","settings.noResults":"找不到設定","settings.trySearch":"試著搜尋主題、語言或工作階段。","settings.libraryDescription":"收藏與提示詞設定。","settings.advancedDescription":"Agent Skill、資料傳輸與本機設定。","settings.downloadSkill":"Agent Skill","settings.downloadSkillDescription":"選擇要安裝 Foundry Skill 的使用者層級 agent 目錄。","settings.downloadSkillAction":"下載 Skill","settings.downloadSkillTargets":"目標位置","settings.downloadSkillResolvingPath":"正在取得目標路徑…","settings.skillCancel":"取消","settings.skillDownloaded":"Skill 已複製到","settings.skillDownloadFailed":"無法下載 Skill。","navigation.capturesDescription":"先收集連結,之後再整理。","navigation.jobs":"抓取紀錄","navigation.jobsDescription":"查看這筆收藏的抓取工作紀錄與錯誤。","overview.title":"歡迎回來","settings.features":"功能","settings.library":"資料庫","settings.captures":"收藏","settings.capturesFetcher":"抓取服務","settings.capturesFetcherDescription":"用於圍繞收藏連結探索上下文的服務。","settings.capturesNotConfigured":"尚未設定","settings.capturesApiKey":"API 金鑰","settings.capturesApiKeyDescription":"用於向已設定的抓取服務驗證請求。","settings.capturesApiKeyPlaceholder":"輸入 API 金鑰","settings.capturesMaxAttempts":"最大嘗試次數","settings.capturesMaxAttemptsDescription":"每個抓取工作的總請求次數,1 到 10。","settings.capturesConcurrency":"抓取並行數","settings.capturesConcurrencyDescription":"同時執行的抓取工作上線,1 到 5。","captures.captureAdded":"已收藏","captures.captureExists":"這個連結已經收藏過了","captures.note":"備註","captures.toPaste":"貼上","captures.pasteLink":"貼上連結","captures.capturing":"正在收藏…","captures.enterToCapture":"收藏","captures.configureFetcherFirst":"請先在設定中設定抓取服務。","captures.activeJobExists":"這筆收藏已有正在執行的抓取工作。","captures.captureNotFound":"找不到這筆收藏。","captures.invalidUrl":"請輸入有效的 HTTP 或 HTTPS 連結。","captures.addCapture":"新增收藏","captures.title":"標題","captures.url":"連結","captures.viewDetails":"查看詳情","captures.viewJobs":"查看抓取紀錄","captures.recapture":"重新抓取","captures.delete":"刪除","captures.captureFilter":"篩選收藏","captures.allCaptures":"全部","captures.noCapturedContent":"尚未取得內容","captures.refresh":"重新整理","captures.emptyTitle":"還沒有收藏","captures.emptyDescription":"貼上一個連結開始收集。","captures.deleteCaptureTitle":"刪除這筆收藏?","captures.cancel":"取消","captures.recaptureStarted":"已開始重新抓取","captures.captureDeleted":"收藏已刪除","captures.fetchFailed":"連結探索失敗","captures.jobStatus":"狀態","captures.jobStatus.pending":"等待中","captures.jobStatus.running":"抓取中","captures.jobStatus.succeeded":"已成功","captures.jobStatus.failed":"已失敗","captures.fetcher":"抓取服務","captures.creditsUsed":"消耗額度","captures.createdAt":"建立時間","captures.updatedAt":"更新時間","captures.error":"錯誤","captures.noJobsTitle":"沒有抓取紀錄","captures.noJobsDescription":"這筆收藏還沒有抓取紀錄。","captures.noResponseTitle":"還沒有抓取服務回應","captures.noResponseDescription":"這筆收藏尚無已設定抓取服務傳回的成功回應。請查看工作紀錄或重新抓取。","captures.rawResponse":"抓取服務原始回應","captures.detailUnavailable":"無法載入收藏詳情","captures.addNote":"新增備註","captures.dataTransferBusy":"請等待目前的資料傳輸完成。","settings.exportDataDescription":"建立加密的 Foundry 快照。","settings.exportData":"匯出資料","settings.exportDataAction":"匯出","settings.finishJobsBeforeTransfer":"請先等待執行中的抓取工作完成。","settings.importData":"匯入資料","settings.importDataAction":"匯入","settings.importDataDescription":"從加密的 Foundry 快照還原資料。","dataTransfer.exportTitle":"匯出 Foundry 資料","dataTransfer.exportSubtitle":"使用通關密語保護這個快照。","dataTransfer.passphrase":"通關密語","dataTransfer.passphraseDescription":"用於加密此備份,匯入時需要輸入。","dataTransfer.confirmPassphrase":"確認通關密語","dataTransfer.passphraseMismatch":"兩次輸入的通關密語不一致。","dataTransfer.passphraseRequired":"請輸入通關密語。","dataTransfer.passphraseWarning":"Foundry 無法還原忘記的通關密語,請在匯出前妥善保存。","dataTransfer.cancel":"取消","dataTransfer.exportAction":"選擇位置並匯出","dataTransfer.exported":"Foundry 資料已匯出。","dataTransfer.importTitle":"匯入 Foundry 資料","dataTransfer.importPassphraseDescription":"輸入匯出這個快照時使用的通關密語。","dataTransfer.inspectAction":"解鎖快照","dataTransfer.previewTitle":"確認匯入","dataTransfer.exportedAt":"匯出時間","dataTransfer.appVersion":"Foundry 版本","dataTransfer.schemaVersion":"資料版本","dataTransfer.providers":"服務提供者","dataTransfer.captures":"收藏","dataTransfer.jobs":"抓取工作","dataTransfer.replaceWarning":"匯入會取代目前全部服務提供者、收藏、抓取工作與應用程式設定。匯入完成後 Foundry 將重新啟動。","dataTransfer.importAction":"匯入並取代","dataTransfer.importingTitle":"正在匯入資料","dataTransfer.importingDescription":"正在匯入 Foundry 資料…","dataTransfer.importingHint":"匯入完成前請保持 Foundry 開啟。","dataTransfer.restartTitle":"匯入完成","dataTransfer.restartDescription":"資料已成功匯入,請重新啟動 Foundry 以載入資料。","dataTransfer.restartHint":"重新啟動前目前工作階段會保持鎖定。","dataTransfer.restartAction":"重新啟動 Foundry","dataTransfer.activeJobs":"請先等待執行中的抓取工作完成,再匯出或匯入資料。","dataTransfer.archiveHasActiveJobs":"這個快照包含未完成的抓取工作,無法匯入。","dataTransfer.busy":"另一個資料傳輸正在進行中。","dataTransfer.importExpired":"匯入工作階段已過期,請重新選擇檔案。","dataTransfer.invalidPassphrase":"通關密語錯誤或快照已損壞。","dataTransfer.newerVersion":"這個快照由較新版本的 Foundry 建立。","dataTransfer.unsupportedArchive":"目前 Foundry 版本不支援這個快照格式。","dataTransfer.invalidArchive":"這不是有效的 Foundry 快照。","dataTransfer.ioError":"資料傳輸未能完成。"},UP={...K1,"navigation.overview":"概要","navigation.captures":"キャプチャ","navigation.library":"ライブラリ","navigation.prompts":"プロンプト","navigation.sessions":"セッション","navigation.sessionsDescription":"ローカルのエージェントセッションを作業ディレクトリ別に表示します。","navigation.providers":"プロバイダー","navigation.settings":"設定","navigation.main":"メイン","navigation.account":"アカウント","navigation.back":"戻る","navigation.openNavigation":"ナビゲーションを開く","navigation.windowTitlebar":"ウィンドウタイトルバー","sessions.source":"セッションの作成元","sessions.codex":"ChatGPT","sessions.claudeCode":"Claude Code","sessions.refresh":"再読み込み","sessions.archived":"アーカイブ済み","sessions.subagents":"サブエージェント","sessions.subagent":"サブエージェント","sessions.unknownDirectory":"不明なディレクトリ","sessions.thread":"セッション","sessions.updated":"最終アクティビティ","sessions.size":"ファイルサイズ","sessions.tokens":"Token","sessions.model":"モデル","sessions.sessionCount":"{{count}} 件のセッション","sessions.sessionCount_one":"{{count}} 件のセッション","sessions.sessionCount_other":"{{count}} 件のセッション","sessions.includeArchived":"アーカイブ済みを含める","sessions.loading":"セッション記録を読み込み中…","sessions.showArchivedHint":"「アーカイブ済みを含める」を選択すると、アーカイブ済みのセッションが表示されます。","sessions.noReadableTitle":"セッションを読み込めませんでした","sessions.noReadableDescription":"再読み込みして、セッション記録の読み込みをやり直してください。","sessions.filesUnreadable_one":"{{count}} 件のセッションファイルを完全に読み込めませんでした。再読み込みしてください。","sessions.filesUnreadable_other":"{{count}} 件のセッションファイルを完全に読み込めませんでした。再読み込みしてください。","sessions.emptyTitle":"{{source}} のセッションがありません","sessions.emptyDescription":"ローカルに {{source}} のセッション記録が見つかりません。{{source}} で会話を始めてから再読み込みしてください。","sessions.errorTitle":"セッション記録を読み込めませんでした","sessions.errorDescription":"ローカルのセッション記録を読み込めませんでした。再読み込みしてください。","sessions.noThreadsTitle":"条件に一致するセッションがありません","sessions.noThreadsDescription":"セッションの絞り込み条件を変更してください。","sessions.warningTitle":"一部の記録を読み込めませんでした","sessions.filesUnreadable":"{{count}} 件のセッションファイルを完全に読み込めませんでした。再読み込みしてください。","overview.description":"ローカルワークスペースの概要。","prompts.description":"エージェントとの会話で再利用できるテキスト。","providers.add":"プロバイダーを追加","providers.addFirst":"最初のプロバイダーを追加","providers.empty":"モデルサービスを接続すると、そのモデルを Foundry で利用できます。","providers.emptyTitle":"モデルプロバイダーがまだありません","providers.deleteQuestion":"プロバイダーを削除しますか?","providers.cancel":"キャンセル","providers.delete":"削除","providers.edit":"プロバイダーを編集","providers.deleteLabel":"プロバイダーを削除","providers.enable":"プロバイダーを有効化","providers.disable":"プロバイダーを無効化","providers.inUse":"プロバイダーは現在使用中です","providers.customModels":"個のカスタムモデル","providers.enabled":"有効","providers.formDescription":"Foundryがサポートするプロトコルでモデルサービスに接続します。","providers.failedFetchModels":"モデルの取得に失敗しました","providers.save":"プロバイダーを保存","providers.name":"名前","providers.protocol":"プロトコル","providers.baseUrl":"ベース URL","providers.apiKey":"API キー","providers.hideApiKey":"API キーを隠す","providers.showApiKey":"API キーを表示","providers.models":"モデル","providers.required":"必須","providers.modelSources":"モデルソース","providers.modelsTemporary":"取得したモデルは一時的なものです。カスタムモデルはこのプロバイダーと一緒に保存されます。","providers.aboutModelSources":"モデルソースについて","providers.fetchModels":"モデルを取得","providers.modelId":"モデル ID","providers.customModelId":"カスタムモデル ID","providers.displayName":"表示名","providers.displayNameOptional":"表示名(任意)","providers.addCustomModel":"カスタムモデルを追加","navigation.notFound":"ページが見つかりません","navigation.newProvider":"新しいプロバイダー","navigation.editProvider":"プロバイダーを編集","navigation.providersDescription":"Foundryで使用するモデルサービス接続を管理します。","settings.workspace":"ワークスペース","settings.advanced":"詳細設定","settings.configFolder":"設定フォルダー","settings.openConfigFolder":"フォルダーを開く","settings.appearance":"外観","settings.appearanceDescription":"このアプリのテーマと密度。","settings.languageRegion":"言語と地域","settings.languageRegionDescription":"言語、形式、タイムゾーン。","settings.search":"設定を検索","providers.avatar":"アバター","providers.avatarDescription":"2 MB 以下の PNG、JPEG、GIF、WebP、SVG 画像を選択してください。","providers.avatarUpload":"画像をアップロード","providers.avatarChange":"画像を変更","providers.avatarRemove":"画像を削除","providers.avatarInvalid":"2 MB 以下の有効な PNG、JPEG、GIF、WebP、SVG 画像を選択してください。","providers.saveFailed":"プロバイダーを保存できませんでした。もう一度お試しください。","settings.colorTheme":"カラーテーマ","settings.colorThemeDescription":"このアプリにのみ適用されます。","settings.language":"言語","settings.languageDescription":"メニュー、ボタン、メールで使用します。","settings.timeFormat":"時刻形式","settings.timeFormatDescription":"Foundry のすべてのタイムスタンプに使用する形式。","settings.timezone":"タイムゾーン","settings.timezoneDescription":"スケジュールとすべてのタイムスタンプに使用します。","settings.system":"システム","settings.light":"ライト","settings.dark":"ダーク","settings.losAngeles":"ロサンゼルス(GMT-08:00)","settings.newYork":"ニューヨーク(GMT-05:00)","settings.shanghai":"上海(GMT+08:00)","settings.taipei":"台北(GMT+08:00)","settings.tokyo":"東京(GMT+09:00)","settings.utc":"UTC(GMT+00:00)","settings.noResults":"設定が見つかりません","settings.trySearch":"テーマ、言語、セッションを検索してみてください。","settings.libraryDescription":"キャプチャとプロンプトの設定。","settings.advancedDescription":"Agent Skill、データ転送、ローカル設定。","settings.downloadSkill":"Agent Skill","settings.downloadSkillDescription":"Foundry Skill をインストールするユーザーレベルの agent ディレクトリを選択します。","settings.downloadSkillAction":"Skill をダウンロード","settings.downloadSkillTargets":"コピー先","settings.downloadSkillResolvingPath":"保存先を取得しています…","settings.skillCancel":"キャンセル","settings.skillDownloaded":"Skill のコピー先","settings.skillDownloadFailed":"Skill をダウンロードできませんでした。","navigation.capturesDescription":"まずリンクを集め、後から整理します。","navigation.jobs":"取得履歴","navigation.jobsDescription":"このキャプチャの取得履歴とエラーを確認します。","navigation.captureDetails":"キャプチャの詳細","navigation.captureDetailsDescription":"設定済みフェッチャーから最後に成功したレスポンスを表示します。","overview.title":"おかえりなさい","settings.features":"機能","settings.library":"ライブラリ","settings.captures":"キャプチャ","settings.capturesFetcher":"フェッチャー","settings.capturesFetcherDescription":"保存したリンクの周辺情報を探索するサービス。","settings.capturesNotConfigured":"未設定","settings.capturesApiKey":"API キー","settings.capturesApiKeyDescription":"設定済みフェッチャーへのリクエストを認証します。","settings.capturesApiKeyPlaceholder":"API キーを入力","settings.capturesMaxAttempts":"最大試行回数","settings.capturesMaxAttemptsDescription":"ジョブごとの総リクエスト数(1〜10)。","settings.capturesConcurrency":"取得の同時実行数","settings.capturesConcurrencyDescription":"同時に実行する取得ジョブの上限(1〜5)。","captures.captureAdded":"キャプチャしました","captures.captureExists":"このリンクはすでにキャプチャ済みです","captures.note":"メモ","captures.toPaste":"貼り付け","captures.pasteLink":"リンクを貼り付け","captures.capturing":"キャプチャ中…","captures.enterToCapture":"キャプチャする","captures.configureFetcherFirst":"先に設定でフェッチャーを構成してください。","captures.activeJobExists":"このキャプチャには実行中の取得ジョブがあります。","captures.captureNotFound":"キャプチャが見つかりません。","captures.invalidUrl":"有効な HTTP または HTTPS URL を入力してください。","captures.addCapture":"キャプチャを追加","captures.title":"タイトル","captures.url":"URL","captures.viewDetails":"詳細を表示","captures.viewJobs":"取得履歴を見る","captures.recapture":"再取得","captures.delete":"削除","captures.captureFilter":"キャプチャを絞り込む","captures.allCaptures":"すべて","captures.noCapturedContent":"取得内容なし","captures.refresh":"更新","captures.emptyTitle":"キャプチャはまだありません","captures.emptyDescription":"リンクを貼り付けて収集を始めましょう。","captures.deleteCaptureTitle":"キャプチャを削除しますか?","captures.cancel":"キャンセル","captures.recaptureStarted":"再取得を開始しました","captures.captureDeleted":"キャプチャを削除しました","captures.fetchFailed":"リンク探索に失敗しました","captures.jobStatus":"状態","captures.jobStatus.pending":"待機中","captures.jobStatus.running":"取得中","captures.jobStatus.succeeded":"成功","captures.jobStatus.failed":"失敗","captures.fetcher":"フェッチャー","captures.creditsUsed":"クレジット","captures.createdAt":"作成日時","captures.updatedAt":"更新日時","captures.error":"エラー","captures.noJobsTitle":"取得履歴はありません","captures.noJobsDescription":"このキャプチャには取得履歴がありません。","captures.noResponseTitle":"フェッチャーのレスポンスはまだありません","captures.noResponseDescription":"このキャプチャには設定済みフェッチャーから成功したレスポンスがありません。取得履歴を確認するか、再取得してください。","captures.rawResponse":"フェッチャーの生レスポンス","captures.detailUnavailable":"キャプチャの詳細を読み込めません","captures.addNote":"メモを追加","captures.dataTransferBusy":"現在のデータ転送が完了するまでお待ちください。","settings.exportDataDescription":"暗号化された Foundry スナップショットを作成します。","settings.exportData":"データをエクスポート","settings.exportDataAction":"エクスポート","settings.finishJobsBeforeTransfer":"実行中の取得ジョブが完了するまでお待ちください。","settings.importData":"データをインポート","settings.importDataAction":"インポート","settings.importDataDescription":"暗号化された Foundry スナップショットからデータを復元します。","dataTransfer.exportTitle":"Foundry データをエクスポート","dataTransfer.exportSubtitle":"パスフレーズでこのスナップショットを保護します。","dataTransfer.passphrase":"パスフレーズ","dataTransfer.passphraseDescription":"このバックアップの暗号化と復元に使用します。","dataTransfer.confirmPassphrase":"パスフレーズを確認","dataTransfer.passphraseMismatch":"パスフレーズが一致しません。","dataTransfer.passphraseRequired":"パスフレーズを入力してください。","dataTransfer.passphraseWarning":"忘れたパスフレーズは復元できません。エクスポート前に安全な場所へ保管してください。","dataTransfer.cancel":"キャンセル","dataTransfer.exportAction":"保存先を選択してエクスポート","dataTransfer.exported":"Foundry データをエクスポートしました。","dataTransfer.importTitle":"Foundry データをインポート","dataTransfer.importPassphraseDescription":"このスナップショットのエクスポート時に使用したパスフレーズを入力してください。","dataTransfer.inspectAction":"スナップショットを開く","dataTransfer.previewTitle":"インポートを確認","dataTransfer.exportedAt":"エクスポート日時","dataTransfer.appVersion":"Foundry バージョン","dataTransfer.schemaVersion":"データバージョン","dataTransfer.providers":"プロバイダー","dataTransfer.captures":"キャプチャ","dataTransfer.jobs":"ジョブ","dataTransfer.replaceWarning":"インポートすると、現在のプロバイダー、キャプチャ、ジョブ、アプリ設定がすべて置き換わります。完了後は Foundry が再起動します。","dataTransfer.importAction":"インポートして置き換える","dataTransfer.importingTitle":"データをインポート中","dataTransfer.importingDescription":"Foundry データをインポートしています…","dataTransfer.importingHint":"インポートが完了するまで Foundry を開いたままにしてください。","dataTransfer.restartTitle":"インポート完了","dataTransfer.restartDescription":"データをインポートしました。Foundry を再起動して読み込んでください。","dataTransfer.restartHint":"再起動するまで現在のセッションはロックされます。","dataTransfer.restartAction":"Foundry を再起動","dataTransfer.activeJobs":"データをエクスポートまたはインポートする前に、実行中の取得ジョブを完了してください。","dataTransfer.archiveHasActiveJobs":"このスナップショットには未完了の取得ジョブが含まれているため、インポートできません。","dataTransfer.busy":"別のデータ転送が進行中です。","dataTransfer.importExpired":"インポートセッションの有効期限が切れました。ファイルを選択し直してください。","dataTransfer.invalidPassphrase":"パスフレーズが正しくないか、スナップショットが破損しています。","dataTransfer.newerVersion":"このスナップショットは新しいバージョンの Foundry で作成されています。","dataTransfer.unsupportedArchive":"この Foundry バージョンではこのスナップショット形式をサポートしていません。","dataTransfer.invalidArchive":"有効な Foundry スナップショットではありません。","dataTransfer.ioError":"データ転送を完了できませんでした。"},VP={"en-US":K1,"zh-CN":Aj,"zh-TW":HP,"ja-JP":UP};function GP(e){if(["en-US","zh-CN","zh-TW","ja-JP"].includes(e))return e;const a=new Intl.DateTimeFormat().resolvedOptions().locale.toLowerCase();return a.startsWith("zh-tw")||a.startsWith("zh-hk")?"zh-TW":a.startsWith("zh")?"zh-CN":a.startsWith("ja")?"ja-JP":"en-US"}const KP=Object.fromEntries(Object.entries(VP).map(([e,t])=>[e,{translation:t}]));Cr.isInitialized||Cr.init({resources:KP,lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});const WP=(e,t,a,s)=>{const i=[a,{code:t,...s||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Dl(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...i):console?.warn&&console.warn(...i)},XS={},Zp=(e,t,a,s)=>{Dl(a)&&XS[a]||(Dl(a)&&(XS[a]=new Date),WP(e,t,a,s))},Mj=(e,t)=>()=>{if(e.isInitialized)t();else{const a=()=>{setTimeout(()=>{e.off("initialized",a)},0),t()};e.on("initialized",a)}},jb=(e,t,a)=>{e.loadNamespaces(t,Mj(e,a))},ZS=(e,t,a,s)=>{if(Dl(a)&&(a=[a]),e.options.preload&&e.options.preload.indexOf(t)>-1)return jb(e,a,s);a.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,Mj(e,s))},YP=(e,t,a={})=>!t.languages||!t.languages.length?(Zp(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:a.lng,precheck:(s,i)=>{if(a.bindI18n&&a.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!i(s.isLanguageChangingTo,e))return!1}}),Dl=e=>typeof e=="string",XP=e=>typeof e=="object"&&e!==null,ZP=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,QP={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},JP=e=>QP[e],eB=e=>e.replace(ZP,JP);let tB={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:eB,transDefaultProps:void 0};const nB=()=>tB;let rB;const aB=()=>rB,zj=x.createContext();class sB{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(a=>{this.usedNamespaces[a]||(this.usedNamespaces[a]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var R0={exports:{}},A0={};var QS;function oB(){if(QS)return A0;QS=1;var e=df();function t(b,k){return b===k&&(b!==0||1/b===1/k)||b!==b&&k!==k}var a=typeof Object.is=="function"?Object.is:t,s=e.useState,i=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function d(b,k){var C=k(),w=s({inst:{value:C,getSnapshot:k}}),v=w[0].inst,S=w[1];return c(function(){v.value=C,v.getSnapshot=k,f(v)&&S({inst:v})},[b,C,k]),i(function(){return f(v)&&S({inst:v}),b(function(){f(v)&&S({inst:v})})},[b]),u(C),C}function f(b){var k=b.getSnapshot;b=b.value;try{var C=k();return!a(b,C)}catch{return!0}}function g(b,k){return k()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:d;return A0.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,A0}var JS;function iB(){return JS||(JS=1,R0.exports=oB()),R0.exports}var lB=iB();const cB=(e,t)=>{if(Dl(t))return t;if(XP(t)&&Dl(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const a=e[e.length-1];return typeof a=="function"?"":a}return e},uB={t:cB,ready:!1},dB=()=>()=>{},fB=(e,t={})=>{const{i18n:a}=t,{i18n:s,defaultNS:i}=x.useContext(zj)||{},c=a||s||aB();c&&!c.reportNamespaces&&(c.reportNamespaces=new sB),c||Zp(c,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next or by passing it via props or context. In monorepo setups, make sure there is only one instance of react-i18next.");const u=x.useMemo(()=>({...nB(),...c?.options?.react,...t}),[c,t]),{useSuspense:d,keyPrefix:f,bindI18n:g,bindI18nStore:y}=u,b=i||c?.options?.defaultNS,k=Dl(b)?[b]:b||["translation"],C=JSON.stringify(k),w=x.useMemo(()=>k,[C]);c?.reportNamespaces?.addUsedNamespaces?.(w);const v=x.useRef(0),S=x.useCallback(H=>{if(!c)return dB;const Z=()=>{v.current+=1,H()};return g&&c.on(g,Z),y&&c.store.on(y,Z),()=>{g&&g.split(" ").forEach(F=>c.off(F,Z)),y&&y.split(" ").forEach(F=>c.store.off(F,Z))}},[c,g,y]),T=x.useRef(),E=x.useCallback(()=>{if(!c)return uB;const H=!!(c.isInitialized||c.initializedStoreOnce)&&w.every(se=>YP(se,c,u)),Z=t.lng||c.language,F=v.current,q=typeof f=="function"?Tl(f,{...c.options,ns:w}):f,Q=T.current;if(Q&&Q.i18n===c&&Q.ready===H&&Q.lng===Z&&Q.namespaces===w&&Q.keyPrefix===q&&Q.revision===F)return Q;const J={t:c.getFixedT(Z,u.nsMode==="fallback"?w:w[0],f,{scopeNs:w}),i18n:c,ready:H,lng:Z,namespaces:w,keyPrefix:q,revision:F};return T.current=J,J},[c,w,f,u,t.lng]),[j,$]=x.useState(0);let{t:z,ready:L}=lB.useSyncExternalStore(S,E,E),I;c&&d&&!L&&(I=new Promise(H=>{const Z=()=>H();t.lng?ZS(c,t.lng,w,Z):jb(c,w,Z)}),{t:z,ready:L}=E()),x.useEffect(()=>{if(c&&!L&&!d){const H=()=>$(Z=>Z+1);t.lng?ZS(c,t.lng,w,H):jb(c,w,H)}},[c,t.lng,w,L,d,j]);const N=c||{},D=x.useRef(null),P=x.useRef(),K=H=>`${H.language}|${H.resolvedLanguage}|${H.languages?.join(",")}`,oe=H=>{const Z=Object.getOwnPropertyDescriptors(H);Z.__original&&delete Z.__original;const F=Object.create(Object.getPrototypeOf(H),Z);if(!Object.prototype.hasOwnProperty.call(F,"__original"))try{Object.defineProperty(F,"__original",{value:H,writable:!1,enumerable:!1,configurable:!1})}catch{}return F},V=x.useMemo(()=>{const H=N,Z=H&&K(H);let F=H;H&&(D.current&&D.current.__original===H?P.current!==Z?(F=oe(H),D.current=F,P.current=Z):F=D.current:(F=oe(H),D.current=F,P.current=Z));const q=!L&&!d?(...ae)=>(Zp(c,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),z(...ae)):z,Q=[q,F,L];return Q.t=q,Q.i18n=F,Q.ready=L,Q},[z,N,L,N.resolvedLanguage,N.language,N.languages]);if(c&&d&&!L){let H=!1;try{H=!1}catch{}throw H&&Zp(c,"SUSPENDED_WHILE_LOADING","useTranslation: suspended while translations are loading (useSuspense is true by default). Add a <Suspense> boundary above this component, or set react.useSuspense: false in the i18next init options. https://react.i18next.com/latest/usetranslation-hook"),I}return V};function hB({i18n:e,defaultNS:t,children:a}){const s=x.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return x.createElement(zj.Provider,{value:s},a)}const pB={"@astryx.pagination.label":"分页","@astryx.pagination.previous":"转到上一页","@astryx.pagination.next":"转到下一页","@astryx.pagination.previousBy":"后退 {step, number} {step, plural, other {页}}","@astryx.pagination.nextBy":"前进 {step, number} {step, plural, other {页}}","@astryx.pagination.first":"转到第一页","@astryx.pagination.last":"转到最后一页","@astryx.pagination.goToPage":"转到第 {page, number} 页","@astryx.pagination.goToPageInput":"转到页面","@astryx.pagination.pageLabel":"页","@astryx.pagination.ofTotalPages":"/ {total, number}","@astryx.pagination.pageIndicators":"页码指示器","@astryx.pagination.itemsPerPage":"每页项目数","@astryx.pagination.count":"{from, number}–{to, number},共 {total, number}","@astryx.pagination.pageOfTotal":"第 {current, number} 页,共 {total, number} 页","@astryx.pagination.pageAnnounce":"第 {current, number} 页","@astryx.powersearch.editor.field":"字段","@astryx.powersearch.editor.operator":"运算符","@astryx.powersearch.editor.addFilter":"+ 添加筛选条件","@astryx.powersearch.editor.removeFilter":"移除筛选条件","@astryx.powersearch.editor.groupOperator":"分组运算符","@astryx.powersearch.editor.group":"分组","@astryx.powersearch.editor.delete":"删除","@astryx.powersearch.editor.cancel":"取消","@astryx.powersearch.editor.apply":"应用","@astryx.powersearch.valueEditor.value":"值","@astryx.powersearch.valueEditor.values":"值","@astryx.powersearch.valueEditor.time":"时间","@astryx.powersearch.valueEditor.date":"日期","@astryx.powersearch.valueEditor.relativeDate":"相对日期","@astryx.powersearch.valueEditor.startDate":"开始日期","@astryx.powersearch.valueEditor.endDate":"结束日期","@astryx.powersearch.valueEditor.entities":"实体","@astryx.powersearch.valueEditor.searchPlaceholder":"搜索……","@astryx.powersearch.valueEditor.enterValuePlaceholder":"输入值……","@astryx.powersearch.valueEditor.addValuesPlaceholder":"添加值……","@astryx.powersearch.valueEditor.enterNumberPlaceholder":"输入数字……","@astryx.powersearch.valueEditor.selectValuesPlaceholder":"选择值……","@astryx.powersearch.operator.contains":"包含","@astryx.powersearch.operator.notContains":"不包含","@astryx.powersearch.operator.startsWith":"以此开头","@astryx.powersearch.operator.notStartsWith":"不以此开头","@astryx.powersearch.operator.endsWith":"以此结尾","@astryx.powersearch.operator.notEndsWith":"不以此结尾","@astryx.powersearch.operator.is":"等于","@astryx.powersearch.operator.isNot":"不等于","@astryx.powersearch.operator.equals":"等于","@astryx.powersearch.operator.notEquals":"不等于","@astryx.powersearch.operator.greaterThan":"大于","@astryx.powersearch.operator.lessThan":"小于","@astryx.powersearch.operator.greaterThanOrEqual":"大于或等于","@astryx.powersearch.operator.lessThanOrEqual":"小于或等于","@astryx.powersearch.operator.before":"早于","@astryx.powersearch.operator.after":"晚于","@astryx.powersearch.operator.between":"介于","@astryx.powersearch.operator.isTrue":"为真","@astryx.powersearch.operator.isFalse":"为假","@astryx.powersearch.operator.isAnyOf":"是其中任一","@astryx.powersearch.operator.isNoneOf":"不是其中任何一个","@astryx.powersearch.valueEditor.itemsCount":"{count, number} {count, plural, other {个项目}}","@astryx.powersearch.valueEditor.entitiesCount":"{count, number} {count, plural, other {个实体}}","@astryx.powersearch.valueEditor.dateRange":"日期范围","@astryx.powersearch.valueEditor.filtersCount":"{count, number} {count, plural, other {个筛选条件}}","@astryx.powersearch.resultCount":"{count, number} {count, plural, other {个结果}}","@astryx.alertDialog.cancel":"取消","@astryx.appShell.mobileNavigation":"移动导航","@astryx.appShell.skipToContent":"跳至内容","@astryx.avatar.nameWithStatus":"{name},{status}","@astryx.avatarGroup.label":"头像","@astryx.avatarGroup.keyboardHint":"使用箭头键在头像之间移动","@astryx.avatarGroup.overflow":"还有 {count, number} 个","@astryx.banner.dismiss":"关闭","@astryx.banner.dismissTitled":"{dismiss} {title}","@astryx.calendar.previousMonth":"上个月","@astryx.calendar.nextMonth":"下个月","@astryx.calendar.daySelected":"{date},已选择","@astryx.calendar.dayRangeStart":"{date},范围开始","@astryx.calendar.dayRangeEnd":"{date},范围结束","@astryx.calendar.dayRangeStartAndEnd":"{date},范围开始及结束","@astryx.calendar.dayInRange":"{date},范围内","@astryx.calendar.rangeStartAnnounce":"开始日期 {date}。请选择结束日期。","@astryx.calendar.rangeCompleteAnnounce":"已选范围:{start} 至 {end}。","@astryx.calendar.rangeClearedAnnounce":"已清除开始日期 {date}。请选择开始日期。","@astryx.carousel.label":"轮播","@astryx.carousel.scrollLeft":"向左滚动","@astryx.carousel.scrollRight":"向右滚动","@astryx.carousel.slideLabel":"第 {current, number} 张幻灯片,共 {total, number} 张","@astryx.chart.label":"图表","@astryx.chart.labelWithSeries":"按 {xKey} 显示 {series} 的图表","@astryx.chart.dataTableCaption":"{label}的数据","@astryx.chartLegend.label":"图表图例","@astryx.chat.status.sending":"发送中","@astryx.chat.status.sent":"已发送","@astryx.chat.status.delivered":"已送达","@astryx.chat.status.read":"已读","@astryx.chat.status.failed":"失败","@astryx.chat.messageAriaLabel":"消息 {status}","@astryx.chat.pastedText.expand":"展开","@astryx.checkboxList.item.checkbox":"复选框","@astryx.commandPalette.emptySearch":"无结果","@astryx.commandPalette.emptyBootstrap":"输入以搜索","@astryx.commandPalette.resultCount":"{count, number} {count, plural, other {个结果}}","@astryx.commandPalette.noResultsFor":"没有关于 {query} 的结果","@astryx.commandPalette.loading":"加载中","@astryx.dateRangeInput.presetDateRanges":"预设日期范围","@astryx.dateTimeInput.timePlaceholder":"选择时间","@astryx.dialog.close":"关闭","@astryx.dropdownMenu.label":"菜单","@astryx.dropdownMenu.back":"返回","@astryx.lightbox.close":"关闭","@astryx.lightbox.previous":"上一个","@astryx.lightbox.next":"下一个","@astryx.chatTypingIndicator.one":"{name} 正在输入……","@astryx.chatTypingIndicator.many":"{names} 正在输入……","@astryx.chatTypingIndicator.others":"另外 {count, number} {count, plural, one {人} other {人}}","@astryx.listInput.emptyTitle":"尚未添加 {itemName}","@astryx.listInput.emptyDescription":"添加 {itemName} 即可开始。","@astryx.listInput.addItem":"添加 {itemName}","@astryx.listInput.removeItem":"移除 {itemName} {position, number}","@astryx.listInput.removeUnavailable":"列表禁用时无法移除","@astryx.listInput.reorderItem":"调整 {itemName} {position, number} 的顺序","@astryx.listInput.fieldLabelWithPosition":"{header},{itemName} {position, number},共 {total, number} 项","@astryx.listInput.reorderInstructions":"使用 Arrow Up 或 Arrow Down 将此项目移动一个位置。按 Space 或 Enter 将其拾起,以使用键盘继续重新排序。","@astryx.listInput.announceAdded":"已添加 {itemName} {position, number}。","@astryx.listInput.announceRemoved":"已移除 {itemName} {position, number}。","@astryx.listInput.announceGrabbed":"已拾起 {itemName} {position, number}。使用箭头键移动,按 Space 或 Enter 放下,按 Escape 取消。","@astryx.listInput.announceMovedToPosition":"已将 {itemName} 移至第 {position, number} 个位置,共 {total, number} 个位置。","@astryx.listInput.announceReorderCancelled":"已取消重新排序。","@astryx.listInput.announceReturnedToPosition":"{itemName} 已返回第 {position, number} 个位置。","@astryx.listInput.announceDropped":"已将 {itemName} 放在第 {position, number} 个位置,共 {total, number} 个位置。","@astryx.listInput.announceAlreadyAtBoundary":"此 {itemName} 已位于{boundary, select, first {最前面} last {最后面} other {}}。","@astryx.markdown.taskList":"任务列表","@astryx.markdown.table":"表格","@astryx.mobileNav.closeNavigation":"关闭导航","@astryx.multiSelector.selectAll":"全选","@astryx.multiSelector.searchPlaceholder":"搜索……","@astryx.multiSelector.searchOptions":"搜索选项","@astryx.multiSelector.empty":"无选项","@astryx.multiSelector.selectAllPartiallySelected":"{label},部分选择","@astryx.popover.close":"关闭弹出框","@astryx.selector.searchPlaceholder":"搜索……","@astryx.selector.searchOptions":"搜索选项","@astryx.selector.empty":"无选项","@astryx.sideNav.label":"侧边导航","@astryx.sideNav.resizeSidebar":"调整侧边栏尺寸","@astryx.sideNav.heading.openMenu":"打开菜单","@astryx.tabList.label":"标签页","@astryx.table.label":"表格","@astryx.table.noData":"暂无数据","@astryx.table.filter.allPlaceholder":"全部","@astryx.table.filter.reset":"重置","@astryx.table.filter.apply":"应用","@astryx.table.rowStatus.columnHeader":"行状态","@astryx.table.selection.selectAllRows":"选择所有行","@astryx.table.selection.selectRow":"选择行","@astryx.table.selection.selectRowNamed":"选择 {label}","@astryx.table.sort.ascending":"升序排序","@astryx.table.sort.descending":"降序排序","@astryx.table.sort.clear":"清除排序","@astryx.table.sort.direction.ascending":"升序","@astryx.table.sort.direction.descending":"降序","@astryx.table.sort.sortBy":"按 {label} 排序","@astryx.table.sort.sortedBy":"按 {label} 排序,{direction}","@astryx.table.sort.sortedByWithPriority":"按 {label} 排序,{direction},优先级 {rank, number}/{total, number}","@astryx.toast.dismiss":"关闭通知","@astryx.toast.viewport":"通知","@astryx.tokenizer.clearAll":"全部清除","@astryx.topNav.heading.openMenu":"打开菜单","@astryx.topNav.landmarkLabel":"顶部导航","@astryx.treeList.toggleChildren":"切换子项","@astryx.typeahead.emptySearchResults":"未找到结果","@astryx.typeahead.loading":"加载中","@astryx.typeahead.searchResults":"搜索结果","@astryx.typeahead.clearSelection":"清除选择","@astryx.breadcrumbs.label":"面包屑导航","@astryx.chat.composer.placeholder":"输入消息……","@astryx.chat.composerDrawer.label":"项目","@astryx.chat.composerInput.label":"消息输入框","@astryx.chat.speechRecognition.noSpeechDetected":"未检测到语音。","@astryx.commandPalette.label":"命令面板","@astryx.commandPalette.input.placeholder":"搜索……","@astryx.commandPalette.list.label":"命令","@astryx.contextMenu.label":"上下文菜单","@astryx.dateInput.placeholder":"选择日期","@astryx.dateInput.dialogLabel":"选择日期","@astryx.dateInput.closeCalendar":"关闭日历","@astryx.dateInput.openCalendar":"打开日历","@astryx.dateInput.toggleCalendarClose":"关闭日历","@astryx.dateInput.clear":"清除 {label}","@astryx.dateInput.invalidDate":"日期无效","@astryx.dateInput.resetPicking":"重置","@astryx.dateInput.savePicking":"保存","@astryx.dateInput.doneChoosingMonth":"完成","@astryx.dateInput.chooseMonthYear":"{monthYear},选择月份和年份","@astryx.dateInput.monthWheel":"月份","@astryx.dateInput.yearWheel":"年份","@astryx.dateTimeInput.timeHint12h":"例如:下午 2:30","@astryx.dateTimeInput.timeHint24h":"例如:14:30","@astryx.dateTimeInput.timeSuffix":"{label}时间","@astryx.dateTimeInput.timeOptionsLabel":"{label}选项","@astryx.dateRangeInput.placeholder":"选择日期范围","@astryx.dateRangeInput.dialogLabel":"选择日期范围","@astryx.dateTimeInput.placeholder":"选择日期","@astryx.dateTimeInput.dialogLabel":"选择日期和时间","@astryx.dateTimeInput.pickerMode":"日期/时间部分","@astryx.dateTimeInput.dateTab":"日期","@astryx.dateTimeInput.timeTab":"时间","@astryx.dateTimeInput.openTimePicker":"打开 {label}","@astryx.dateTimeInput.saveDatePicking":"保存日期","@astryx.dateTimeInput.hourWheel":"小时","@astryx.dateTimeInput.minuteWheel":"分钟","@astryx.dateTimeInput.secondWheel":"秒","@astryx.dateTimeInput.meridiemWheel":"上午/下午","@astryx.dateTimeInput.meridiemAM":"上午","@astryx.dateTimeInput.meridiemPM":"下午","@astryx.link.newTab":"(在新标签页中打开)","@astryx.mobileNav.toggle.open":"打开导航","@astryx.moreMenu.label":"更多选项","@astryx.multiSelector.selectPlaceholder":"选择……","@astryx.outline.label":"目录","@astryx.powersearch.label":"搜索","@astryx.powersearch.placeholder":"搜索……","@astryx.resizable.collapsed":"已折叠","@astryx.resizable.handle.label":"尺寸调整手柄","@astryx.selector.placeholder":"选择……","@astryx.sideNav.heading.dialogLabel":"导航菜单","@astryx.table.pagination.label":"表格分页","@astryx.table.pagination.labelAbove":"{label}(顶部)","@astryx.table.pagination.labelBelow":"{label}(底部)","@astryx.timeInput.placeholder":"选择时间","@astryx.timeInput.invalidTime":"时间无效","@astryx.timeInput.openPicker":"打开 {label}","@astryx.topNav.heading.dialogLabel":"导航菜单","@astryx.typeahead.searchPlaceholder":"搜索……","@astryx.banner.collapse":"折叠","@astryx.banner.expand":"展开","@astryx.button.loading":"加载中","@astryx.spinner.loading":"加载中","@astryx.chatComposerDrawer.expand":"展开 {label}","@astryx.chatComposerDrawer.collapse":"折叠 {label}","@astryx.chatDictationButton.startDictation":"开始语音输入","@astryx.chatDictationButton.stopDictation":"停止语音输入","@astryx.chatLayout.newMessages":"新消息","@astryx.chatLayoutScrollButton.scrollToBottom":"滚动到底部","@astryx.chatMessage.messageFrom":"来自 {sender} 的消息","@astryx.chatSendButton.stop":"停止","@astryx.chatSendButton.send":"发送","@astryx.chatToolCalls.error":"错误:{message}","@astryx.chatToolCalls.status.pending":"待处理","@astryx.chatToolCalls.status.running":"运行中","@astryx.chatToolCalls.status.complete":"已完成","@astryx.chatToolCalls.status.error":"失败","@astryx.chatToolCalls.groupLabel":"{count} 次工具调用","@astryx.chatTriggerMenu.suggestions":"建议","@astryx.citation.label":"引用 {number}:{title}","@astryx.codeBlock.copied":"已复制","@astryx.codeBlock.copyCode":"复制代码","@astryx.codeBlock.code":"代码","@astryx.field.optional":"可选","@astryx.field.required":"必填","@astryx.fileInput.clearLabel":"清除 {label}","@astryx.fileInput.dropHint":"将文件拖放到此处","@astryx.fileInput.errorInvalidType":"“{fileName}”不是受支持的文件类型","@astryx.fileInput.errorMaxFiles":"最多允许 {maxFiles} 个文件","@astryx.fileInput.errorMaxSize":"“{fileName}”超出 {maxSize} 限制","@astryx.fileInput.fileSelected":"已选择 1 个文件:{fileName}","@astryx.fileInput.filesSelected":"已选择 {count} 个文件","@astryx.fileInput.placeholder":"选择文件","@astryx.fileInput.placeholderMultiple":"选择文件","@astryx.fileInput.required":"必填","@astryx.fileInput.triggerWithFiles":"{label},{fileNames}","@astryx.keyboardHint.toNavigate":"进行导航","@astryx.lightbox.mediaViewer":"媒体查看器","@astryx.lightbox.zoom":"缩放","@astryx.lightbox.zoomedIn":"已放大,使用箭头键平移","@astryx.lightbox.zoomedOut":"已缩小","@astryx.metadataList.showMore":"显示更多","@astryx.metadataList.showLess":"收起","@astryx.mobileNav.navigation":"导航","@astryx.multiSelector.clearAll":"清除全部 {label}","@astryx.input.readOnly":"只读","@astryx.input.statusButton.error":"错误详情","@astryx.input.statusButton.warning":"警告详情","@astryx.input.statusButton.success":"成功详情","@astryx.numberInput.clearLabel":"清除 {label}","@astryx.numberInput.decrementLabel":"减少 {label}","@astryx.numberInput.incrementLabel":"增加 {label}","@astryx.selector.clearLabel":"清除 {label}","@astryx.sideNavCollapseButton.expandSidebar":"展开侧边栏","@astryx.sideNavCollapseButton.collapseSidebar":"折叠侧边栏","@astryx.sideNavItem.expand":"展开 {label}","@astryx.sideNavItem.collapse":"折叠 {label}","@astryx.sideNavItem.submenuLabel":"{label}子菜单","@astryx.tableFiltering.filterByColumn":"筛选 {header}","@astryx.tableGroupedRows.expandGroup":"展开分组 {groupKey}","@astryx.tableGroupedRows.collapseGroup":"折叠分组 {groupKey}","@astryx.tableRowExpansion.collapseRow":"折叠行","@astryx.tableRowExpansion.expandRow":"展开行","@astryx.tableRowExpansion.columnHeader":"行展开","@astryx.tableRowExpansion.collapseAllRows":"折叠所有行","@astryx.tableRowExpansion.expandAllRows":"展开所有行","@astryx.stepper.label":"进度","@astryx.stepper.previousStep":"上一步","@astryx.stepper.nextStep":"下一步","@astryx.step.goToStep":"转到步骤 {stepNumber, number}:{label}","@astryx.step.goToStepWithStatus":"转到步骤 {stepNumber, number}:{label},{status}","@astryx.step.optional":"可选","@astryx.step.status.completed":"已完成","@astryx.step.status.warning":"警告","@astryx.step.status.error":"错误","@astryx.tableTree.collapseRow":"折叠行","@astryx.tableTree.expandRow":"展开行","@astryx.tableTree.collapseAllRows":"折叠所有行","@astryx.tableTree.expandAllRows":"展开所有行","@astryx.textArea.charactersRemaining":"还剩 {count, number} {count, plural, other {个字符}}","@astryx.textArea.charactersOverLimit":"超出 {count, number} {count, plural, other {个字符}}","@astryx.textInput.clearLabel":"清除 {label}","@astryx.thumbnail.remove":"移除 {accessibleName}","@astryx.thumbnail.open":"打开 {accessibleName}","@astryx.thumbnail.fallbackName":"缩略图","@astryx.timeInput.clearLabel":"清除 {label}","@astryx.timestamp.copyValue":"复制 {value}","@astryx.timestamp.copy":"复制","@astryx.timestamp.copied":"已复制","@astryx.timestamp.detailsLabel":"时间戳详情","@astryx.token.remove":"移除 {label}","@astryx.commandPalette.footer.navigate":"导航","@astryx.commandPalette.footer.select":"选择","@astryx.commandPalette.footer.close":"关闭","@astryx.multiSelector.selectionCleared":"已清除选择","@astryx.multiSelector.allSelected":"已全选","@astryx.multiSelector.selectionCount":"已选择 {count, number} 项,共 {total, number} 项","@astryx.multiSelector.emptySearchResults":"未找到结果","@astryx.multiSelector.resultCount":"{count, number} {count, plural, one {个结果} other {个结果}}","@astryx.selector.emptySearchResults":"未找到结果","@astryx.selector.resultCount":"{count, number} {count, plural, one {个结果} other {个结果}}","@astryx.typeahead.resultCount":"{count, number} {count, plural, one {个结果} other {个结果}}","@astryx.tokenizer.tokenAdded":"已添加 {label}","@astryx.tokenizer.tokenRemoved":"已移除 {label}","@astryx.lightbox.imagePosition":"第 {index, number} 张图片,共 {total, number} 张","@astryx.lightbox.mediaPosition":"{alt},第 {index, number} 项,共 {total, number} 项","@astryx.transferList.selectedLabel":"已选","@astryx.transferList.availableLabel":"可选","@astryx.transferList.ungroupedLabel":"其他","@astryx.transferList.searchPlaceholder":"搜索……","@astryx.transferList.searchLabel":"搜索 {label}","@astryx.transferList.selectedEmpty":"未选择任何选项","@astryx.transferList.availableEmpty":"没有可用选项","@astryx.transferList.noResults":"无结果","@astryx.transferList.clear":"清除","@astryx.transferList.addAll":"全部添加","@astryx.transferList.addOption":"添加 {label}","@astryx.transferList.removeOption":"移除 {label}","@astryx.transferList.reorderOption":"调整 {label} 的顺序","@astryx.transferList.transferDisabled":"{label} 无法移动","@astryx.transferList.reorderDisabled":"{label} 无法调整顺序","@astryx.transferList.reorderInstructions":"按 Space 或 Enter 拾起项目。使用 Arrow Up、Arrow Down、Home 或 End 移动项目。按 Space 或 Enter 放下,或按 Escape 取消。","@astryx.transferList.announceAdded":"已添加 {label}。已选择 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferList.announceRemoved":"已移除 {label}。已选择 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferList.announceBulkAdded":"已添加 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferList.announceBulkRemoved":"已移除 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferList.announceGrabbed":"已拾起 {label},位于第 {position, number} 个位置,共 {total, number} 个位置。使用箭头键移动,按 Space 或 Enter 放下,或按 Escape 取消。","@astryx.transferList.announceMoveCancelled":"已取消移动 {label}。","@astryx.transferList.announceDropped":"已将 {label} 放在第 {position, number} 个位置,共 {total, number} 个位置。","@astryx.transferList.announceReturned":"{label} 已返回第 {position, number} 个位置。","@astryx.transferList.announceMovedToPosition":"{label},第 {position, number} 个位置,共 {total, number} 个位置。","@astryx.transferList.announceSearchResults":"找到 {count, number} {count, plural, one {个项目} other {个项目}}。","@astryx.transferListSelector.apply":"应用","@astryx.transferListSelector.cancel":"取消","@astryx.transferListSelector.triggerLabel":"已选择 {count, number} 项"},xB={"@astryx.pagination.label":"分頁","@astryx.pagination.previous":"前往上一頁","@astryx.pagination.next":"前往下一頁","@astryx.pagination.previousBy":"後退 {step, number} {step, plural, other {頁}}","@astryx.pagination.nextBy":"前進 {step, number} {step, plural, other {頁}}","@astryx.pagination.first":"前往第一頁","@astryx.pagination.last":"前往最後一頁","@astryx.pagination.goToPage":"前往第 {page, number} 頁","@astryx.pagination.goToPageInput":"前往頁面","@astryx.pagination.pageLabel":"頁","@astryx.pagination.ofTotalPages":"/ {total, number}","@astryx.pagination.pageIndicators":"頁碼指示器","@astryx.pagination.itemsPerPage":"每頁項目數","@astryx.pagination.count":"{from, number}–{to, number},共 {total, number}","@astryx.pagination.pageOfTotal":"第 {current, number} 頁,共 {total, number} 頁","@astryx.pagination.pageAnnounce":"第 {current, number} 頁","@astryx.powersearch.editor.field":"欄位","@astryx.powersearch.editor.operator":"運算子","@astryx.powersearch.editor.addFilter":"+ 新增篩選條件","@astryx.powersearch.editor.removeFilter":"移除篩選條件","@astryx.powersearch.editor.groupOperator":"群組運算子","@astryx.powersearch.editor.group":"群組","@astryx.powersearch.editor.delete":"刪除","@astryx.powersearch.editor.cancel":"取消","@astryx.powersearch.editor.apply":"套用","@astryx.powersearch.valueEditor.value":"值","@astryx.powersearch.valueEditor.values":"值","@astryx.powersearch.valueEditor.time":"時間","@astryx.powersearch.valueEditor.date":"日期","@astryx.powersearch.valueEditor.relativeDate":"相對日期","@astryx.powersearch.valueEditor.startDate":"開始日期","@astryx.powersearch.valueEditor.endDate":"結束日期","@astryx.powersearch.valueEditor.entities":"實體","@astryx.powersearch.valueEditor.searchPlaceholder":"搜尋……","@astryx.powersearch.valueEditor.enterValuePlaceholder":"輸入值……","@astryx.powersearch.valueEditor.addValuesPlaceholder":"新增值……","@astryx.powersearch.valueEditor.enterNumberPlaceholder":"輸入數字……","@astryx.powersearch.valueEditor.selectValuesPlaceholder":"選擇值……","@astryx.powersearch.operator.contains":"包含","@astryx.powersearch.operator.notContains":"不包含","@astryx.powersearch.operator.startsWith":"以此開頭","@astryx.powersearch.operator.notStartsWith":"不以此開頭","@astryx.powersearch.operator.endsWith":"以此結尾","@astryx.powersearch.operator.notEndsWith":"不以此結尾","@astryx.powersearch.operator.is":"等於","@astryx.powersearch.operator.isNot":"不等於","@astryx.powersearch.operator.equals":"等於","@astryx.powersearch.operator.notEquals":"不等於","@astryx.powersearch.operator.greaterThan":"大於","@astryx.powersearch.operator.lessThan":"小於","@astryx.powersearch.operator.greaterThanOrEqual":"大於或等於","@astryx.powersearch.operator.lessThanOrEqual":"小於或等於","@astryx.powersearch.operator.before":"早於","@astryx.powersearch.operator.after":"晚於","@astryx.powersearch.operator.between":"介於","@astryx.powersearch.operator.isTrue":"為真","@astryx.powersearch.operator.isFalse":"為假","@astryx.powersearch.operator.isAnyOf":"是其中任一","@astryx.powersearch.operator.isNoneOf":"不是其中任何一個","@astryx.powersearch.valueEditor.itemsCount":"{count, number} {count, plural, other {個項目}}","@astryx.powersearch.valueEditor.entitiesCount":"{count, number} {count, plural, other {個實體}}","@astryx.powersearch.valueEditor.dateRange":"日期範圍","@astryx.powersearch.valueEditor.filtersCount":"{count, number} {count, plural, other {個篩選條件}}","@astryx.powersearch.resultCount":"{count, number} {count, plural, other {個結果}}","@astryx.alertDialog.cancel":"取消","@astryx.appShell.mobileNavigation":"行動裝置導覽","@astryx.appShell.skipToContent":"跳至內容","@astryx.avatar.nameWithStatus":"{name},{status}","@astryx.avatarGroup.label":"頭像","@astryx.avatarGroup.keyboardHint":"使用方向鍵在頭像之間移動","@astryx.avatarGroup.overflow":"還有 {count, number} 個","@astryx.banner.dismiss":"關閉","@astryx.banner.dismissTitled":"{dismiss} {title}","@astryx.calendar.previousMonth":"上個月","@astryx.calendar.nextMonth":"下個月","@astryx.calendar.daySelected":"{date},已選取","@astryx.calendar.dayRangeStart":"{date},範圍開始","@astryx.calendar.dayRangeEnd":"{date},範圍結束","@astryx.calendar.dayRangeStartAndEnd":"{date},範圍開始及結束","@astryx.calendar.dayInRange":"{date},範圍內","@astryx.calendar.rangeStartAnnounce":"開始日期 {date}。請選擇結束日期。","@astryx.calendar.rangeCompleteAnnounce":"已選範圍:{start} 至 {end}。","@astryx.calendar.rangeClearedAnnounce":"已清除開始日期 {date}。請選擇開始日期。","@astryx.carousel.label":"輪播","@astryx.carousel.scrollLeft":"向左捲動","@astryx.carousel.scrollRight":"向右捲動","@astryx.carousel.slideLabel":"第 {current, number} 張投影片,共 {total, number} 張","@astryx.chart.label":"圖表","@astryx.chart.labelWithSeries":"依 {xKey} 顯示 {series} 的圖表","@astryx.chart.dataTableCaption":"{label}的資料","@astryx.chartLegend.label":"圖表圖例","@astryx.chat.status.sending":"傳送中","@astryx.chat.status.sent":"已傳送","@astryx.chat.status.delivered":"已送達","@astryx.chat.status.read":"已讀","@astryx.chat.status.failed":"失敗","@astryx.chat.messageAriaLabel":"訊息 {status}","@astryx.chat.pastedText.expand":"展開","@astryx.checkboxList.item.checkbox":"核取方塊","@astryx.commandPalette.emptySearch":"無結果","@astryx.commandPalette.emptyBootstrap":"輸入以搜尋","@astryx.commandPalette.resultCount":"{count, number} {count, plural, other {個結果}}","@astryx.commandPalette.noResultsFor":"找不到關於 {query} 的結果","@astryx.commandPalette.loading":"載入中","@astryx.dateRangeInput.presetDateRanges":"預設日期範圍","@astryx.dateTimeInput.timePlaceholder":"選擇時間","@astryx.dialog.close":"關閉","@astryx.dropdownMenu.label":"功能表","@astryx.dropdownMenu.back":"返回","@astryx.lightbox.close":"關閉","@astryx.lightbox.previous":"上一個","@astryx.lightbox.next":"下一個","@astryx.chatTypingIndicator.one":"{name} 正在輸入……","@astryx.chatTypingIndicator.many":"{names} 正在輸入……","@astryx.chatTypingIndicator.others":"另外 {count, number} {count, plural, one {人} other {人}}","@astryx.listInput.emptyTitle":"尚未新增 {itemName}","@astryx.listInput.emptyDescription":"新增 {itemName} 即可開始。","@astryx.listInput.addItem":"新增 {itemName}","@astryx.listInput.removeItem":"移除 {itemName} {position, number}","@astryx.listInput.removeUnavailable":"清單停用時無法移除","@astryx.listInput.reorderItem":"調整 {itemName} {position, number} 的順序","@astryx.listInput.fieldLabelWithPosition":"{header},{itemName} {position, number},共 {total, number} 項","@astryx.listInput.reorderInstructions":"使用 Arrow Up 或 Arrow Down 將此項目移動一個位置。按 Space 或 Enter 將其拿起,以使用鍵盤繼續重新排序。","@astryx.listInput.announceAdded":"已新增 {itemName} {position, number}。","@astryx.listInput.announceRemoved":"已移除 {itemName} {position, number}。","@astryx.listInput.announceGrabbed":"已拿起 {itemName} {position, number}。使用方向鍵移動,按 Space 或 Enter 放下,按 Escape 取消。","@astryx.listInput.announceMovedToPosition":"已將 {itemName} 移至第 {position, number} 個位置,共 {total, number} 個位置。","@astryx.listInput.announceReorderCancelled":"已取消重新排序。","@astryx.listInput.announceReturnedToPosition":"{itemName} 已回到第 {position, number} 個位置。","@astryx.listInput.announceDropped":"已將 {itemName} 放在第 {position, number} 個位置,共 {total, number} 個位置。","@astryx.listInput.announceAlreadyAtBoundary":"此 {itemName} 已位於{boundary, select, first {最前面} last {最後面} other {}}。","@astryx.markdown.taskList":"工作清單","@astryx.markdown.table":"表格","@astryx.mobileNav.closeNavigation":"關閉導覽","@astryx.multiSelector.selectAll":"全選","@astryx.multiSelector.searchPlaceholder":"搜尋……","@astryx.multiSelector.searchOptions":"搜尋選項","@astryx.multiSelector.empty":"無選項","@astryx.multiSelector.selectAllPartiallySelected":"{label},部分選取","@astryx.popover.close":"關閉彈出視窗","@astryx.selector.searchPlaceholder":"搜尋……","@astryx.selector.searchOptions":"搜尋選項","@astryx.selector.empty":"無選項","@astryx.sideNav.label":"側邊導覽","@astryx.sideNav.resizeSidebar":"調整側邊欄大小","@astryx.sideNav.heading.openMenu":"開啟功能表","@astryx.tabList.label":"索引標籤","@astryx.table.label":"表格","@astryx.table.noData":"無資料","@astryx.table.filter.allPlaceholder":"全部","@astryx.table.filter.reset":"重設","@astryx.table.filter.apply":"套用","@astryx.table.rowStatus.columnHeader":"列狀態","@astryx.table.selection.selectAllRows":"選取所有列","@astryx.table.selection.selectRow":"選取列","@astryx.table.selection.selectRowNamed":"選取 {label}","@astryx.table.sort.ascending":"遞增排序","@astryx.table.sort.descending":"遞減排序","@astryx.table.sort.clear":"清除排序","@astryx.table.sort.direction.ascending":"遞增","@astryx.table.sort.direction.descending":"遞減","@astryx.table.sort.sortBy":"依 {label} 排序","@astryx.table.sort.sortedBy":"依 {label} 排序,{direction}","@astryx.table.sort.sortedByWithPriority":"依 {label} 排序,{direction},優先順序 {rank, number}/{total, number}","@astryx.toast.dismiss":"關閉通知","@astryx.toast.viewport":"通知","@astryx.tokenizer.clearAll":"全部清除","@astryx.topNav.heading.openMenu":"開啟功能表","@astryx.topNav.landmarkLabel":"頂部導覽","@astryx.treeList.toggleChildren":"切換子項目","@astryx.typeahead.emptySearchResults":"找不到結果","@astryx.typeahead.loading":"載入中","@astryx.typeahead.searchResults":"搜尋結果","@astryx.typeahead.clearSelection":"清除選取","@astryx.breadcrumbs.label":"麵包屑導覽","@astryx.chat.composer.placeholder":"輸入訊息……","@astryx.chat.composerDrawer.label":"項目","@astryx.chat.composerInput.label":"訊息輸入框","@astryx.chat.speechRecognition.noSpeechDetected":"未偵測到語音。","@astryx.commandPalette.label":"命令選擇區","@astryx.commandPalette.input.placeholder":"搜尋……","@astryx.commandPalette.list.label":"命令","@astryx.contextMenu.label":"快顯功能表","@astryx.dateInput.placeholder":"選擇日期","@astryx.dateInput.dialogLabel":"選擇日期","@astryx.dateInput.closeCalendar":"關閉行事曆","@astryx.dateInput.openCalendar":"開啟行事曆","@astryx.dateInput.toggleCalendarClose":"關閉行事曆","@astryx.dateInput.clear":"清除 {label}","@astryx.dateInput.invalidDate":"日期無效","@astryx.dateInput.resetPicking":"重設","@astryx.dateInput.savePicking":"儲存","@astryx.dateInput.doneChoosingMonth":"完成","@astryx.dateInput.chooseMonthYear":"{monthYear},選擇月份和年份","@astryx.dateInput.monthWheel":"月份","@astryx.dateInput.yearWheel":"年份","@astryx.dateTimeInput.timeHint12h":"例如:下午 2:30","@astryx.dateTimeInput.timeHint24h":"例如:14:30","@astryx.dateTimeInput.timeSuffix":"{label}時間","@astryx.dateTimeInput.timeOptionsLabel":"{label}選項","@astryx.dateRangeInput.placeholder":"選擇日期範圍","@astryx.dateRangeInput.dialogLabel":"選擇日期範圍","@astryx.dateTimeInput.placeholder":"選擇日期","@astryx.dateTimeInput.dialogLabel":"選擇日期和時間","@astryx.dateTimeInput.pickerMode":"日期/時間區段","@astryx.dateTimeInput.dateTab":"日期","@astryx.dateTimeInput.timeTab":"時間","@astryx.dateTimeInput.openTimePicker":"開啟 {label}","@astryx.dateTimeInput.saveDatePicking":"儲存日期","@astryx.dateTimeInput.hourWheel":"小時","@astryx.dateTimeInput.minuteWheel":"分鐘","@astryx.dateTimeInput.secondWheel":"秒","@astryx.dateTimeInput.meridiemWheel":"上午/下午","@astryx.dateTimeInput.meridiemAM":"上午","@astryx.dateTimeInput.meridiemPM":"下午","@astryx.link.newTab":"(在新分頁中開啟)","@astryx.mobileNav.toggle.open":"開啟導覽","@astryx.moreMenu.label":"更多選項","@astryx.multiSelector.selectPlaceholder":"選擇……","@astryx.outline.label":"目錄","@astryx.powersearch.label":"搜尋","@astryx.powersearch.placeholder":"搜尋……","@astryx.resizable.collapsed":"已收合","@astryx.resizable.handle.label":"大小調整控點","@astryx.selector.placeholder":"選擇……","@astryx.sideNav.heading.dialogLabel":"導覽功能表","@astryx.table.pagination.label":"表格分頁","@astryx.table.pagination.labelAbove":"{label}(頂部)","@astryx.table.pagination.labelBelow":"{label}(底部)","@astryx.timeInput.placeholder":"選擇時間","@astryx.timeInput.invalidTime":"時間無效","@astryx.timeInput.openPicker":"開啟 {label}","@astryx.topNav.heading.dialogLabel":"導覽功能表","@astryx.typeahead.searchPlaceholder":"搜尋……","@astryx.banner.collapse":"收合","@astryx.banner.expand":"展開","@astryx.button.loading":"載入中","@astryx.spinner.loading":"載入中","@astryx.chatComposerDrawer.expand":"展開 {label}","@astryx.chatComposerDrawer.collapse":"收合 {label}","@astryx.chatDictationButton.startDictation":"開始語音輸入","@astryx.chatDictationButton.stopDictation":"停止語音輸入","@astryx.chatLayout.newMessages":"新訊息","@astryx.chatLayoutScrollButton.scrollToBottom":"捲動至底部","@astryx.chatMessage.messageFrom":"來自 {sender} 的訊息","@astryx.chatSendButton.stop":"停止","@astryx.chatSendButton.send":"傳送","@astryx.chatToolCalls.error":"錯誤:{message}","@astryx.chatToolCalls.status.pending":"待處理","@astryx.chatToolCalls.status.running":"執行中","@astryx.chatToolCalls.status.complete":"已完成","@astryx.chatToolCalls.status.error":"失敗","@astryx.chatToolCalls.groupLabel":"{count} 次工具呼叫","@astryx.chatTriggerMenu.suggestions":"建議","@astryx.citation.label":"引用 {number}:{title}","@astryx.codeBlock.copied":"已複製","@astryx.codeBlock.copyCode":"複製程式碼","@astryx.codeBlock.code":"程式碼","@astryx.field.optional":"選填","@astryx.field.required":"必填","@astryx.fileInput.clearLabel":"清除 {label}","@astryx.fileInput.dropHint":"將檔案拖放到此處","@astryx.fileInput.errorInvalidType":"「{fileName}」不是支援的檔案類型","@astryx.fileInput.errorMaxFiles":"最多允許 {maxFiles} 個檔案","@astryx.fileInput.errorMaxSize":"「{fileName}」超出 {maxSize} 限制","@astryx.fileInput.fileSelected":"已選取 1 個檔案:{fileName}","@astryx.fileInput.filesSelected":"已選取 {count} 個檔案","@astryx.fileInput.placeholder":"選擇檔案","@astryx.fileInput.placeholderMultiple":"選擇檔案","@astryx.fileInput.required":"必填","@astryx.fileInput.triggerWithFiles":"{label},{fileNames}","@astryx.keyboardHint.toNavigate":"進行導覽","@astryx.lightbox.mediaViewer":"媒體檢視器","@astryx.lightbox.zoom":"縮放","@astryx.lightbox.zoomedIn":"已放大,使用方向鍵平移","@astryx.lightbox.zoomedOut":"已縮小","@astryx.metadataList.showMore":"顯示更多","@astryx.metadataList.showLess":"收合","@astryx.mobileNav.navigation":"導覽","@astryx.multiSelector.clearAll":"清除全部 {label}","@astryx.input.readOnly":"唯讀","@astryx.input.statusButton.error":"錯誤詳細資料","@astryx.input.statusButton.warning":"警告詳細資料","@astryx.input.statusButton.success":"成功詳細資料","@astryx.numberInput.clearLabel":"清除 {label}","@astryx.numberInput.decrementLabel":"減少 {label}","@astryx.numberInput.incrementLabel":"增加 {label}","@astryx.selector.clearLabel":"清除 {label}","@astryx.sideNavCollapseButton.expandSidebar":"展開側邊欄","@astryx.sideNavCollapseButton.collapseSidebar":"收合側邊欄","@astryx.sideNavItem.expand":"展開 {label}","@astryx.sideNavItem.collapse":"收合 {label}","@astryx.sideNavItem.submenuLabel":"{label}子功能表","@astryx.tableFiltering.filterByColumn":"篩選 {header}","@astryx.tableGroupedRows.expandGroup":"展開群組 {groupKey}","@astryx.tableGroupedRows.collapseGroup":"收合群組 {groupKey}","@astryx.tableRowExpansion.collapseRow":"收合列","@astryx.tableRowExpansion.expandRow":"展開列","@astryx.tableRowExpansion.columnHeader":"列展開","@astryx.tableRowExpansion.collapseAllRows":"收合所有列","@astryx.tableRowExpansion.expandAllRows":"展開所有列","@astryx.stepper.label":"進度","@astryx.stepper.previousStep":"上一步","@astryx.stepper.nextStep":"下一步","@astryx.step.goToStep":"前往步驟 {stepNumber, number}:{label}","@astryx.step.goToStepWithStatus":"前往步驟 {stepNumber, number}:{label},{status}","@astryx.step.optional":"選填","@astryx.step.status.completed":"已完成","@astryx.step.status.warning":"警告","@astryx.step.status.error":"錯誤","@astryx.tableTree.collapseRow":"收合列","@astryx.tableTree.expandRow":"展開列","@astryx.tableTree.collapseAllRows":"收合所有列","@astryx.tableTree.expandAllRows":"展開所有列","@astryx.textArea.charactersRemaining":"還剩 {count, number} {count, plural, other {個字元}}","@astryx.textArea.charactersOverLimit":"超出 {count, number} {count, plural, other {個字元}}","@astryx.textInput.clearLabel":"清除 {label}","@astryx.thumbnail.remove":"移除 {accessibleName}","@astryx.thumbnail.open":"開啟 {accessibleName}","@astryx.thumbnail.fallbackName":"縮圖","@astryx.timeInput.clearLabel":"清除 {label}","@astryx.timestamp.copyValue":"複製 {value}","@astryx.timestamp.copy":"複製","@astryx.timestamp.copied":"已複製","@astryx.timestamp.detailsLabel":"時間戳記詳細資料","@astryx.token.remove":"移除 {label}","@astryx.commandPalette.footer.navigate":"導覽","@astryx.commandPalette.footer.select":"選擇","@astryx.commandPalette.footer.close":"關閉","@astryx.multiSelector.selectionCleared":"已清除選取","@astryx.multiSelector.allSelected":"已全選","@astryx.multiSelector.selectionCount":"已選取 {count, number} 項,共 {total, number} 項","@astryx.multiSelector.emptySearchResults":"找不到結果","@astryx.multiSelector.resultCount":"{count, number} {count, plural, one {個結果} other {個結果}}","@astryx.selector.emptySearchResults":"找不到結果","@astryx.selector.resultCount":"{count, number} {count, plural, one {個結果} other {個結果}}","@astryx.typeahead.resultCount":"{count, number} {count, plural, one {個結果} other {個結果}}","@astryx.tokenizer.tokenAdded":"已新增 {label}","@astryx.tokenizer.tokenRemoved":"已移除 {label}","@astryx.lightbox.imagePosition":"第 {index, number} 張圖片,共 {total, number} 張","@astryx.lightbox.mediaPosition":"{alt},第 {index, number} 項,共 {total, number} 項","@astryx.transferList.selectedLabel":"已選取","@astryx.transferList.availableLabel":"可用","@astryx.transferList.ungroupedLabel":"其他","@astryx.transferList.searchPlaceholder":"搜尋……","@astryx.transferList.searchLabel":"搜尋 {label}","@astryx.transferList.selectedEmpty":"沒有已選取的選項","@astryx.transferList.availableEmpty":"沒有可用選項","@astryx.transferList.noResults":"無結果","@astryx.transferList.clear":"清除","@astryx.transferList.addAll":"全部新增","@astryx.transferList.addOption":"新增 {label}","@astryx.transferList.removeOption":"移除 {label}","@astryx.transferList.reorderOption":"調整 {label} 的順序","@astryx.transferList.transferDisabled":"{label} 無法移動","@astryx.transferList.reorderDisabled":"{label} 無法調整順序","@astryx.transferList.reorderInstructions":"按 Space 或 Enter 拿起項目。使用 Arrow Up、Arrow Down、Home 或 End 移動項目。按 Space 或 Enter 放下,或按 Escape 取消。","@astryx.transferList.announceAdded":"已新增 {label}。已選取 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferList.announceRemoved":"已移除 {label}。已選取 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferList.announceBulkAdded":"已新增 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferList.announceBulkRemoved":"已移除 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferList.announceGrabbed":"已拿起 {label},位於第 {position, number} 個位置,共 {total, number} 個位置。使用方向鍵移動,按 Space 或 Enter 放下,或按 Escape 取消。","@astryx.transferList.announceMoveCancelled":"已取消移動 {label}。","@astryx.transferList.announceDropped":"已將 {label} 放在第 {position, number} 個位置,共 {total, number} 個位置。","@astryx.transferList.announceReturned":"{label} 已回到第 {position, number} 個位置。","@astryx.transferList.announceMovedToPosition":"{label},第 {position, number} 個位置,共 {total, number} 個位置。","@astryx.transferList.announceSearchResults":"找到 {count, number} {count, plural, one {個項目} other {個項目}}。","@astryx.transferListSelector.apply":"套用","@astryx.transferListSelector.cancel":"取消","@astryx.transferListSelector.triggerLabel":"已選取 {count, number} 項"},mB={"@astryx.pagination.label":"ページネーション","@astryx.pagination.previous":"前のページへ","@astryx.pagination.next":"次のページへ","@astryx.pagination.previousBy":"{step, number} {step, plural, other {ページ}}戻る","@astryx.pagination.nextBy":"{step, number} {step, plural, other {ページ}}進む","@astryx.pagination.first":"最初のページへ","@astryx.pagination.last":"最後のページへ","@astryx.pagination.goToPage":"{page, number} ページへ移動","@astryx.pagination.goToPageInput":"ページへ移動","@astryx.pagination.pageLabel":"ページ","@astryx.pagination.ofTotalPages":"/ {total, number}","@astryx.pagination.pageIndicators":"ページインジケーター","@astryx.pagination.itemsPerPage":"1 ページあたりの件数","@astryx.pagination.count":"{from, number}–{to, number} / {total, number}","@astryx.pagination.pageOfTotal":"{total, number} ページ中 {current, number} ページ","@astryx.pagination.pageAnnounce":"{current, number} ページ","@astryx.powersearch.editor.field":"フィールド","@astryx.powersearch.editor.operator":"演算子","@astryx.powersearch.editor.addFilter":"+ フィルターを追加","@astryx.powersearch.editor.removeFilter":"フィルターを削除","@astryx.powersearch.editor.groupOperator":"グループ演算子","@astryx.powersearch.editor.group":"グループ","@astryx.powersearch.editor.delete":"削除","@astryx.powersearch.editor.cancel":"キャンセル","@astryx.powersearch.editor.apply":"適用","@astryx.powersearch.valueEditor.value":"値","@astryx.powersearch.valueEditor.values":"値","@astryx.powersearch.valueEditor.time":"時刻","@astryx.powersearch.valueEditor.date":"日付","@astryx.powersearch.valueEditor.relativeDate":"相対日付","@astryx.powersearch.valueEditor.startDate":"開始日","@astryx.powersearch.valueEditor.endDate":"終了日","@astryx.powersearch.valueEditor.entities":"エンティティ","@astryx.powersearch.valueEditor.searchPlaceholder":"検索…","@astryx.powersearch.valueEditor.enterValuePlaceholder":"値を入力…","@astryx.powersearch.valueEditor.addValuesPlaceholder":"値を追加…","@astryx.powersearch.valueEditor.enterNumberPlaceholder":"数値を入力…","@astryx.powersearch.valueEditor.selectValuesPlaceholder":"値を選択…","@astryx.powersearch.operator.contains":"次を含む","@astryx.powersearch.operator.notContains":"次を含まない","@astryx.powersearch.operator.startsWith":"次で始まる","@astryx.powersearch.operator.notStartsWith":"次で始まらない","@astryx.powersearch.operator.endsWith":"次で終わる","@astryx.powersearch.operator.notEndsWith":"次で終わらない","@astryx.powersearch.operator.is":"次と等しい","@astryx.powersearch.operator.isNot":"次と等しくない","@astryx.powersearch.operator.equals":"次と等しい","@astryx.powersearch.operator.notEquals":"次と等しくない","@astryx.powersearch.operator.greaterThan":"次より大きい","@astryx.powersearch.operator.lessThan":"次より小さい","@astryx.powersearch.operator.greaterThanOrEqual":"次以上","@astryx.powersearch.operator.lessThanOrEqual":"次以下","@astryx.powersearch.operator.before":"次より前","@astryx.powersearch.operator.after":"次より後","@astryx.powersearch.operator.between":"次の範囲内","@astryx.powersearch.operator.isTrue":"真である","@astryx.powersearch.operator.isFalse":"偽である","@astryx.powersearch.operator.isAnyOf":"次のいずれか","@astryx.powersearch.operator.isNoneOf":"次のいずれでもない","@astryx.powersearch.valueEditor.itemsCount":"{count, number} {count, plural, other {アイテム}}","@astryx.powersearch.valueEditor.entitiesCount":"{count, number} {count, plural, other {エンティティ}}","@astryx.powersearch.valueEditor.dateRange":"期間","@astryx.powersearch.valueEditor.filtersCount":"{count, number} {count, plural, other {フィルター}}","@astryx.powersearch.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.alertDialog.cancel":"キャンセル","@astryx.appShell.mobileNavigation":"モバイルナビゲーション","@astryx.appShell.skipToContent":"コンテンツへスキップ","@astryx.avatar.nameWithStatus":"{name}、{status}","@astryx.avatarGroup.label":"アバター","@astryx.avatarGroup.keyboardHint":"矢印キーでアバター間を移動できます","@astryx.avatarGroup.overflow":"他 {count, number} 件","@astryx.banner.dismiss":"閉じる","@astryx.banner.dismissTitled":"{title}を{dismiss}","@astryx.calendar.previousMonth":"前月","@astryx.calendar.nextMonth":"翌月","@astryx.calendar.daySelected":"{date}、選択済み","@astryx.calendar.dayRangeStart":"{date}、範囲の開始","@astryx.calendar.dayRangeEnd":"{date}、範囲の終了","@astryx.calendar.dayRangeStartAndEnd":"{date}、範囲の開始および終了","@astryx.calendar.dayInRange":"{date}、範囲内","@astryx.calendar.rangeStartAnnounce":"開始日 {date}。終了日を選択してください。","@astryx.calendar.rangeCompleteAnnounce":"選択した期間: {start} から {end} まで。","@astryx.calendar.rangeClearedAnnounce":"開始日 {date} をクリアしました。開始日を選択してください。","@astryx.carousel.label":"カルーセル","@astryx.carousel.scrollLeft":"左へスクロール","@astryx.carousel.scrollRight":"右へスクロール","@astryx.carousel.slideLabel":"{total, number} 枚中 {current, number} 枚目のスライド","@astryx.chart.label":"グラフ","@astryx.chart.labelWithSeries":"{xKey} 別の {series} のグラフ","@astryx.chart.dataTableCaption":"{label}のデータ","@astryx.chartLegend.label":"グラフの凡例","@astryx.chat.status.sending":"送信中","@astryx.chat.status.sent":"送信済み","@astryx.chat.status.delivered":"配信済み","@astryx.chat.status.read":"既読","@astryx.chat.status.failed":"失敗","@astryx.chat.messageAriaLabel":"メッセージ {status}","@astryx.chat.pastedText.expand":"展開","@astryx.checkboxList.item.checkbox":"チェックボックス","@astryx.commandPalette.emptySearch":"結果がありません","@astryx.commandPalette.emptyBootstrap":"入力して検索","@astryx.commandPalette.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.commandPalette.noResultsFor":"{query} の結果がありません","@astryx.commandPalette.loading":"読み込み中","@astryx.dateRangeInput.presetDateRanges":"定義済みの期間","@astryx.dateTimeInput.timePlaceholder":"時刻を選択","@astryx.dialog.close":"閉じる","@astryx.dropdownMenu.label":"メニュー","@astryx.dropdownMenu.back":"戻る","@astryx.lightbox.close":"閉じる","@astryx.lightbox.previous":"前へ","@astryx.lightbox.next":"次へ","@astryx.chatTypingIndicator.one":"{name} が入力中…","@astryx.chatTypingIndicator.many":"{names} が入力中…","@astryx.chatTypingIndicator.others":"他 {count, number} {count, plural, other {人}}","@astryx.listInput.emptyTitle":"{itemName}はまだありません","@astryx.listInput.emptyDescription":"{itemName}を追加して始めましょう。","@astryx.listInput.addItem":"{itemName} を追加","@astryx.listInput.removeItem":"{itemName} {position, number} を削除","@astryx.listInput.removeUnavailable":"リストが無効な間は削除できません","@astryx.listInput.reorderItem":"{itemName} {position, number} を並べ替え","@astryx.listInput.fieldLabelWithPosition":"{header}、{itemName}、{total, number} 件中 {position, number} 件目","@astryx.listInput.reorderInstructions":"Arrow Up または Arrow Down でこのアイテムを 1 つ移動します。Space または Enter を押してつかむと、キーボードでさらに並べ替え操作ができます。","@astryx.listInput.announceAdded":"{itemName} {position, number} を追加しました。","@astryx.listInput.announceRemoved":"{itemName} {position, number} を削除しました。","@astryx.listInput.announceGrabbed":"{itemName} {position, number} をつかみました。矢印キーで移動、Space または Enter で配置、Escape でキャンセルします。","@astryx.listInput.announceMovedToPosition":"{itemName} を {total, number} 件中 {position, number} 番目に移動しました。","@astryx.listInput.announceReorderCancelled":"並べ替えをキャンセルしました。","@astryx.listInput.announceReturnedToPosition":"{itemName} は {position, number} 番目に戻りました。","@astryx.listInput.announceDropped":"{itemName} を {total, number} 件中 {position, number} 番目に配置しました。","@astryx.listInput.announceAlreadyAtBoundary":"この {itemName} はすでに{boundary, select, first {先頭} last {末尾} other {}}です。","@astryx.markdown.taskList":"タスクリスト","@astryx.markdown.table":"テーブル","@astryx.mobileNav.closeNavigation":"ナビゲーションを閉じる","@astryx.multiSelector.selectAll":"すべて選択","@astryx.multiSelector.searchPlaceholder":"検索…","@astryx.multiSelector.searchOptions":"検索オプション","@astryx.multiSelector.empty":"オプションがありません","@astryx.multiSelector.selectAllPartiallySelected":"{label}、一部選択","@astryx.popover.close":"ポップオーバーを閉じる","@astryx.selector.searchPlaceholder":"検索…","@astryx.selector.searchOptions":"検索オプション","@astryx.selector.empty":"オプションがありません","@astryx.sideNav.label":"サイドナビゲーション","@astryx.sideNav.resizeSidebar":"サイドバーのサイズを変更","@astryx.sideNav.heading.openMenu":"メニューを開く","@astryx.tabList.label":"タブ","@astryx.table.label":"テーブル","@astryx.table.noData":"データがありません","@astryx.table.filter.allPlaceholder":"すべて","@astryx.table.filter.reset":"リセット","@astryx.table.filter.apply":"適用","@astryx.table.rowStatus.columnHeader":"行の状態","@astryx.table.selection.selectAllRows":"すべての行を選択","@astryx.table.selection.selectRow":"行を選択","@astryx.table.selection.selectRowNamed":"{label} を選択","@astryx.table.sort.ascending":"昇順で並べ替え","@astryx.table.sort.descending":"降順で並べ替え","@astryx.table.sort.clear":"並べ替えをクリア","@astryx.table.sort.direction.ascending":"昇順","@astryx.table.sort.direction.descending":"降順","@astryx.table.sort.sortBy":"{label} で並べ替え","@astryx.table.sort.sortedBy":"{label} で並べ替え、{direction}","@astryx.table.sort.sortedByWithPriority":"{label} で並べ替え、{direction}、優先度 {total, number} 中 {rank, number}","@astryx.toast.dismiss":"通知を閉じる","@astryx.toast.viewport":"通知","@astryx.tokenizer.clearAll":"すべてクリア","@astryx.topNav.heading.openMenu":"メニューを開く","@astryx.topNav.landmarkLabel":"トップナビゲーション","@astryx.treeList.toggleChildren":"子要素の表示を切り替え","@astryx.typeahead.emptySearchResults":"結果が見つかりません","@astryx.typeahead.loading":"読み込み中","@astryx.typeahead.searchResults":"検索結果","@astryx.typeahead.clearSelection":"選択をクリア","@astryx.breadcrumbs.label":"パンくずリスト","@astryx.chat.composer.placeholder":"メッセージを入力…","@astryx.chat.composerDrawer.label":"アイテム","@astryx.chat.composerInput.label":"メッセージ入力","@astryx.chat.speechRecognition.noSpeechDetected":"音声が検出されませんでした。","@astryx.commandPalette.label":"コマンドパレット","@astryx.commandPalette.input.placeholder":"検索…","@astryx.commandPalette.list.label":"コマンド","@astryx.contextMenu.label":"コンテキストメニュー","@astryx.dateInput.placeholder":"日付を選択","@astryx.dateInput.dialogLabel":"日付を選択","@astryx.dateInput.closeCalendar":"カレンダーを閉じる","@astryx.dateInput.openCalendar":"カレンダーを開く","@astryx.dateInput.toggleCalendarClose":"カレンダーを閉じる","@astryx.dateInput.clear":"{label} をクリア","@astryx.dateInput.invalidDate":"無効な日付","@astryx.dateInput.resetPicking":"リセット","@astryx.dateInput.savePicking":"保存","@astryx.dateInput.doneChoosingMonth":"完了","@astryx.dateInput.chooseMonthYear":"{monthYear}、月と年を選択","@astryx.dateInput.monthWheel":"月","@astryx.dateInput.yearWheel":"年","@astryx.dateTimeInput.timeHint12h":"例: 午後 2:30","@astryx.dateTimeInput.timeHint24h":"例: 14:30","@astryx.dateTimeInput.timeSuffix":"{label}の時刻","@astryx.dateTimeInput.timeOptionsLabel":"{label}のオプション","@astryx.dateRangeInput.placeholder":"期間を選択","@astryx.dateRangeInput.dialogLabel":"期間を選択","@astryx.dateTimeInput.placeholder":"日付を選択","@astryx.dateTimeInput.dialogLabel":"日付と時刻を選択","@astryx.dateTimeInput.pickerMode":"日付/時刻セクション","@astryx.dateTimeInput.dateTab":"日付","@astryx.dateTimeInput.timeTab":"時刻","@astryx.dateTimeInput.openTimePicker":"{label} を開く","@astryx.dateTimeInput.saveDatePicking":"日付を保存","@astryx.dateTimeInput.hourWheel":"時","@astryx.dateTimeInput.minuteWheel":"分","@astryx.dateTimeInput.secondWheel":"秒","@astryx.dateTimeInput.meridiemWheel":"午前/午後","@astryx.dateTimeInput.meridiemAM":"午前","@astryx.dateTimeInput.meridiemPM":"午後","@astryx.link.newTab":"(新しいタブで開く)","@astryx.mobileNav.toggle.open":"ナビゲーションを開く","@astryx.moreMenu.label":"その他のオプション","@astryx.multiSelector.selectPlaceholder":"選択…","@astryx.outline.label":"目次","@astryx.powersearch.label":"検索","@astryx.powersearch.placeholder":"検索…","@astryx.resizable.collapsed":"折りたたみ済み","@astryx.resizable.handle.label":"サイズ変更ハンドル","@astryx.selector.placeholder":"選択…","@astryx.sideNav.heading.dialogLabel":"ナビゲーションメニュー","@astryx.table.pagination.label":"テーブルのページネーション","@astryx.table.pagination.labelAbove":"{label}(上部)","@astryx.table.pagination.labelBelow":"{label}(下部)","@astryx.timeInput.placeholder":"時刻を選択","@astryx.timeInput.invalidTime":"無効な時刻","@astryx.timeInput.openPicker":"{label} を開く","@astryx.topNav.heading.dialogLabel":"ナビゲーションメニュー","@astryx.typeahead.searchPlaceholder":"検索…","@astryx.banner.collapse":"折りたたむ","@astryx.banner.expand":"展開","@astryx.button.loading":"読み込み中","@astryx.spinner.loading":"読み込み中","@astryx.chatComposerDrawer.expand":"{label} を展開","@astryx.chatComposerDrawer.collapse":"{label} を折りたたむ","@astryx.chatDictationButton.startDictation":"音声入力を開始","@astryx.chatDictationButton.stopDictation":"音声入力を停止","@astryx.chatLayout.newMessages":"新着メッセージ","@astryx.chatLayoutScrollButton.scrollToBottom":"一番下へスクロール","@astryx.chatMessage.messageFrom":"{sender} からのメッセージ","@astryx.chatSendButton.stop":"停止","@astryx.chatSendButton.send":"送信","@astryx.chatToolCalls.error":"エラー: {message}","@astryx.chatToolCalls.status.pending":"待機中","@astryx.chatToolCalls.status.running":"実行中","@astryx.chatToolCalls.status.complete":"完了","@astryx.chatToolCalls.status.error":"失敗","@astryx.chatToolCalls.groupLabel":"{count} 件のツール呼び出し","@astryx.chatTriggerMenu.suggestions":"候補","@astryx.citation.label":"引用 {number}: {title}","@astryx.codeBlock.copied":"コピーしました","@astryx.codeBlock.copyCode":"コードをコピー","@astryx.codeBlock.code":"コード","@astryx.field.optional":"任意","@astryx.field.required":"必須","@astryx.fileInput.clearLabel":"{label} をクリア","@astryx.fileInput.dropHint":"ここにファイルをドロップ","@astryx.fileInput.errorInvalidType":"「{fileName}」は対応していないファイル形式です","@astryx.fileInput.errorMaxFiles":"ファイルは最大 {maxFiles} 件まで選択できます","@astryx.fileInput.errorMaxSize":"「{fileName}」はサイズ上限 {maxSize} を超えています","@astryx.fileInput.fileSelected":"1 件のファイルを選択しました: {fileName}","@astryx.fileInput.filesSelected":"{count} 件のファイルを選択しました","@astryx.fileInput.placeholder":"ファイルを選択","@astryx.fileInput.placeholderMultiple":"ファイルを選択","@astryx.fileInput.required":"必須","@astryx.fileInput.triggerWithFiles":"{label}、{fileNames}","@astryx.keyboardHint.toNavigate":"移動","@astryx.lightbox.mediaViewer":"メディアビューアー","@astryx.lightbox.zoom":"ズーム","@astryx.lightbox.zoomedIn":"ズームイン中。矢印キーで移動できます","@astryx.lightbox.zoomedOut":"ズームアウト中","@astryx.metadataList.showMore":"もっと見る","@astryx.metadataList.showLess":"一部を表示","@astryx.mobileNav.navigation":"ナビゲーション","@astryx.multiSelector.clearAll":"{label} をすべてクリア","@astryx.input.readOnly":"読み取り専用","@astryx.input.statusButton.error":"エラーの詳細","@astryx.input.statusButton.warning":"警告の詳細","@astryx.input.statusButton.success":"成功の詳細","@astryx.numberInput.clearLabel":"{label} をクリア","@astryx.numberInput.decrementLabel":"{label} を減らす","@astryx.numberInput.incrementLabel":"{label} を増やす","@astryx.selector.clearLabel":"{label} をクリア","@astryx.sideNavCollapseButton.expandSidebar":"サイドバーを展開","@astryx.sideNavCollapseButton.collapseSidebar":"サイドバーを折りたたむ","@astryx.sideNavItem.expand":"{label} を展開","@astryx.sideNavItem.collapse":"{label} を折りたたむ","@astryx.sideNavItem.submenuLabel":"{label} のサブメニュー","@astryx.tableFiltering.filterByColumn":"{header} をフィルター","@astryx.tableGroupedRows.expandGroup":"グループ {groupKey} を展開","@astryx.tableGroupedRows.collapseGroup":"グループ {groupKey} を折りたたむ","@astryx.tableRowExpansion.collapseRow":"行を折りたたむ","@astryx.tableRowExpansion.expandRow":"行を展開","@astryx.tableRowExpansion.columnHeader":"行の展開","@astryx.tableRowExpansion.collapseAllRows":"すべての行を折りたたむ","@astryx.tableRowExpansion.expandAllRows":"すべての行を展開","@astryx.stepper.label":"進捗","@astryx.stepper.previousStep":"前のステップ","@astryx.stepper.nextStep":"次のステップ","@astryx.step.goToStep":"ステップ {stepNumber, number}: {label} へ移動","@astryx.step.goToStepWithStatus":"ステップ {stepNumber, number}: {label} へ移動、{status}","@astryx.step.optional":"任意","@astryx.step.status.completed":"完了","@astryx.step.status.warning":"警告","@astryx.step.status.error":"エラー","@astryx.tableTree.collapseRow":"行を折りたたむ","@astryx.tableTree.expandRow":"行を展開","@astryx.tableTree.collapseAllRows":"すべての行を折りたたむ","@astryx.tableTree.expandAllRows":"すべての行を展開","@astryx.textArea.charactersRemaining":"残り {count, number} {count, plural, other {文字}}","@astryx.textArea.charactersOverLimit":"{count, number} {count, plural, other {文字}}超過","@astryx.textInput.clearLabel":"{label} をクリア","@astryx.thumbnail.remove":"{accessibleName} を削除","@astryx.thumbnail.open":"{accessibleName} を開く","@astryx.thumbnail.fallbackName":"サムネイル","@astryx.timeInput.clearLabel":"{label} をクリア","@astryx.timestamp.copyValue":"{value} をコピー","@astryx.timestamp.copy":"コピー","@astryx.timestamp.copied":"コピーしました","@astryx.timestamp.detailsLabel":"タイムスタンプの詳細","@astryx.token.remove":"{label} を削除","@astryx.commandPalette.footer.navigate":"移動","@astryx.commandPalette.footer.select":"選択","@astryx.commandPalette.footer.close":"閉じる","@astryx.multiSelector.selectionCleared":"選択をクリアしました","@astryx.multiSelector.allSelected":"すべて選択しました","@astryx.multiSelector.selectionCount":"{total, number} 件中 {count, number} 件選択済み","@astryx.multiSelector.emptySearchResults":"結果が見つかりません","@astryx.multiSelector.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.selector.emptySearchResults":"結果が見つかりません","@astryx.selector.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.typeahead.resultCount":"{count, number} {count, plural, other {件の結果}}","@astryx.tokenizer.tokenAdded":"{label} を追加しました","@astryx.tokenizer.tokenRemoved":"{label} を削除しました","@astryx.lightbox.imagePosition":"{total, number} 枚中 {index, number} 枚目の画像","@astryx.lightbox.mediaPosition":"{alt}、{total, number} 件中 {index, number} 件目","@astryx.transferList.selectedLabel":"選択済み","@astryx.transferList.availableLabel":"選択可能","@astryx.transferList.ungroupedLabel":"その他","@astryx.transferList.searchPlaceholder":"検索…","@astryx.transferList.searchLabel":"{label} を検索","@astryx.transferList.selectedEmpty":"選択したオプションはありません","@astryx.transferList.availableEmpty":"選択可能なオプションはありません","@astryx.transferList.noResults":"結果がありません","@astryx.transferList.clear":"クリア","@astryx.transferList.addAll":"すべて追加","@astryx.transferList.addOption":"{label} を追加","@astryx.transferList.removeOption":"{label} を削除","@astryx.transferList.reorderOption":"{label} を並べ替え","@astryx.transferList.transferDisabled":"{label} は移動できません","@astryx.transferList.reorderDisabled":"{label} は並べ替えできません","@astryx.transferList.reorderInstructions":"Space または Enter を押してアイテムをつかみます。Arrow Up、Arrow Down、Home、End で移動します。Space または Enter で配置、Escape でキャンセルします。","@astryx.transferList.announceAdded":"{label} を追加しました。{count, number} {count, plural, other {件のアイテム}}を選択済みです。","@astryx.transferList.announceRemoved":"{label} を削除しました。{count, number} {count, plural, other {件のアイテム}}を選択済みです。","@astryx.transferList.announceBulkAdded":"{count, number} {count, plural, other {件のアイテム}}を追加しました。","@astryx.transferList.announceBulkRemoved":"{count, number} {count, plural, other {件のアイテム}}を削除しました。","@astryx.transferList.announceGrabbed":"{label} をつかみました。位置は {total, number} 件中 {position, number} 番目です。矢印キーで移動、Space または Enter で配置、Escape でキャンセルします。","@astryx.transferList.announceMoveCancelled":"{label} の移動をキャンセルしました。","@astryx.transferList.announceDropped":"{label} を {total, number} 件中 {position, number} 番目に配置しました。","@astryx.transferList.announceReturned":"{label} は {position, number} 番目に戻りました。","@astryx.transferList.announceMovedToPosition":"{label}、{total, number} 件中 {position, number} 番目。","@astryx.transferList.announceSearchResults":"{count, number} {count, plural, other {件のアイテム}}が見つかりました。","@astryx.transferListSelector.apply":"適用","@astryx.transferListSelector.cancel":"キャンセル","@astryx.transferListSelector.triggerLabel":"{count, number} 件選択済み"},dm=x.createContext(null);dm.displayName="ToastContext";const W1=["button","a","input","select","textarea",'[role="button"]','[role="link"]','[role="checkbox"]','[role="radio"]','[role="switch"]','[role="tab"]','[role="menuitem"]','[role="option"]','[role="combobox"]','[role="listbox"]','[role="slider"]','[role="spinbutton"]',"[data-pressable-container]"].join(","),gB='[aria-readonly="true"]';function eE(e,t){let a=e;for(;a!=null&&a!==t&&a!==document.body;){if(a.matches(W1)&&!a.matches(gB))return!0;a=a.parentElement}return!1}function yB(e){if(typeof document>"u"||!("getSelection"in document))return!1;const t=document.getSelection();return t==null||t.isCollapsed?!1:e.contains(t.anchorNode)}function fm({containerRef:e,interactiveRef:t,onClick:a,href:s,target:i,disabled:c=!1}){x.useEffect(()=>{const f=e.current;f&&f.setAttribute("data-pressable-container","true")},[e]);const u=x.useCallback(f=>{if(c)return;const g=e.current;if(!g||yB(g))return;const y=f.target;if(y instanceof Element&&!(y!==f.currentTarget&&eE(y,g))&&(a?.(f),!f.defaultPrevented&&(s!=null&&vl(s)&&(i==="_blank"||f.ctrlKey||f.metaKey?window.open(s,"_blank","noopener"):t?.current?t.current.click():window.location.href=s),s==null&&a==null&&t?.current))){const b=new MouseEvent("click",{bubbles:f.bubbles,cancelable:f.cancelable,ctrlKey:f.ctrlKey,metaKey:f.metaKey,shiftKey:f.shiftKey,altKey:f.altKey,button:f.button});t.current.dispatchEvent(b),f.stopPropagation()}},[e,t,a,s,i,c]),d=x.useCallback(f=>{if(c)return;const g=e.current;if(!g)return;const y=f.target;if(!(y instanceof Element))return;f.button===1&&s!=null&&vl(s)&&(y===f.currentTarget||!eE(y,g))&&window.open(s,"_blank","noopener")},[e,s,c]);return{onClick:u,onMouseUp:d}}const bB="data-astryx-live-region",vB="position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;inset-block-start:0;inset-inline-start:0;pointer-events:none;user-select:none;",kB=2e3,Cx={polite:null,assertive:null};function Nj(e){const t=Cx[e];t!=null&&(clearTimeout(t),Cx[e]=null)}const $x={polite:new Set,assertive:new Set};function wB(e){for(const t of $x[e])cancelAnimationFrame(t);$x[e].clear()}function SB(e,t){Nj(e),Cx[e]=setTimeout(()=>{Cx[e]=null,t.textContent=""},kB)}let Ns=null;function tE(e){const t=document.createElement("div");return t.setAttribute(bB,e),t.setAttribute("aria-live",e),t.setAttribute("aria-atomic","true"),t.setAttribute("role",e==="assertive"?"alert":"status"),t.style.cssText=vB,document.body.appendChild(t),t}function EB(){return typeof document>"u"?null:Ns?(Ns.polite.isConnected||document.body.appendChild(Ns.polite),Ns.assertive.isConnected||document.body.appendChild(Ns.assertive),Ns):(Ns={polite:tE("polite"),assertive:tE("assertive")},Ns)}function CB(e,t){const a=EB();if(!a)return;const s=t==="assertive"?a.assertive:a.polite;s.textContent="";const i=requestAnimationFrame(()=>{$x[t].delete(i),s.textContent=e});$x[t].add(i),SB(t,s)}function $B(e){if(wB(e),Nj(e),!Ns)return;const t=e==="assertive"?Ns.assertive:Ns.polite;t.textContent=""}function $f(){return x.useCallback((e,t="polite")=>{if(!e){$B(t);return}CB(e,t)},[])}const Rl=[],Tb=new Set;function Lj(){for(const e of Tb)e()}function jB(e){const t=Rl.indexOf(e);t!==-1&&Rl.splice(t,1),Rl.push(e),Lj()}function M0(e){const t=Rl.indexOf(e);t!==-1&&(Rl.splice(t,1),Lj())}function TB(){return Rl[Rl.length-1]??null}function RB(e){return Tb.add(e),()=>{Tb.delete(e)}}function AB(e,t){x.useEffect(()=>{const a=e.current;if(!t||a==null)return;const s=()=>{M0(a)};return a.addEventListener("close",s),jB(a),()=>{a.removeEventListener("close",s),M0(a)}},[e,t]),x.useLayoutEffect(()=>{const a=e.current;return()=>{a!=null&&M0(a)}},[e])}const nE=8,MB=.4,rE=48,zB=1.2,NB=1.2,aE="120%",LB=.4,DB=.02;function OB(e,t){return Math.min(Math.max(e/t,0),1)}function z0(e){e.style.removeProperty("transition-duration"),e.style.removeProperty("--_toast-swipe-y"),e.style.removeProperty("--_toast-swipe-exit-y"),e.style.removeProperty("--_toast-swipe-opacity"),e.style.removeProperty("--_toast-swipe-scale")}function IB({direction:e,enabled:t,canPauseTimer:a,isTimerPaused:s,pauseTimer:i,resumeTimer:c,dismiss:u,shouldIgnoreTarget:d}){const f=x.useRef(null),g=x.useRef(null),y=x.useCallback(E=>{const j=f.current,$=g.current;g.current=null,j&&z0(j),E&&$?.pausedTimer&&c()},[c]),b=x.useCallback((E,j)=>{const $=f.current;if(!$||!t||g.current!=null||d(j,$))return!1;const z=a&&!s();z&&i();const L=Math.max($.getBoundingClientRect().height,1);return g.current={source:E.source,pointerId:E.pointerId,startX:E.clientX,startY:E.clientY,startTime:Date.now(),direction:e,intent:"pending",pausedTimer:z,surfaceSize:L,dismissThreshold:Math.max(L*MB,rE)},!0},[a,e,t,s,i,d]),k=x.useCallback((E,j,$)=>{const z=g.current,L=f.current;if(!z||!L||E.source!==z.source||E.pointerId!==z.pointerId)return;const I=E.clientX-z.startX,N=E.clientY-z.startY,D=Math.abs(I),P=Math.abs(N);if(z.intent==="pending"){if(D>nE&&D>P){$?.(),y(!0);return}if(P<=nE||P<=D*NB)return;if(z.intent=N*z.direction>0?"vertical":"opposite",z.intent==="opposite"){$?.(),y(!0);return}L.style.setProperty("transition-duration","0s")}j();const K=Math.max(0,N*z.direction),oe=OB(K,z.surfaceSize);L.style.setProperty("--_toast-swipe-y",`${K*z.direction}px`),L.style.setProperty("--_toast-swipe-opacity",(1-oe*LB).toFixed(3)),L.style.setProperty("--_toast-swipe-scale",(1-oe*DB).toFixed(3))},[y]),C=x.useCallback(E=>{const j=g.current,$=f.current;if(!j||!$||E.source!==j.source||E.pointerId!==j.pointerId)return;const z=Math.max(0,(E.clientY-j.startY)*j.direction),L=Math.max(1,Date.now()-j.startTime),I=j.intent==="vertical"&&(z>=j.dismissThreshold||z>=rE&&z/L>zB);if(g.current=null,$.style.removeProperty("transition-duration"),I){z0($),$.style.setProperty("--_toast-swipe-exit-y",j.direction===1?aE:`calc(-1 * ${aE})`),u();return}z0($),j.pausedTimer&&c()},[u,c]),w=x.useCallback(E=>{E.pointerType==="pen"&&(E.button==null||E.button===0)&&b({source:"pen",pointerId:E.pointerId,clientX:E.clientX,clientY:E.clientY},E.target)&&f.current?.setPointerCapture?.(E.pointerId)},[b]),v=x.useCallback(E=>{E.pointerType==="pen"&&k({source:"pen",pointerId:E.pointerId,clientX:E.clientX,clientY:E.clientY},()=>E.preventDefault(),()=>f.current?.releasePointerCapture?.(E.pointerId))},[k]),S=x.useCallback(E=>{E.pointerType==="pen"&&(f.current?.releasePointerCapture?.(E.pointerId),C({source:"pen",pointerId:E.pointerId,clientX:E.clientX,clientY:E.clientY}))},[C]),T=x.useCallback(E=>{E.pointerType==="pen"&&g.current?.source==="pen"&&g.current?.pointerId===E.pointerId&&y(!0)},[y]);return x.useEffect(()=>{const E=f.current;if(!E||!t)return;const j=D=>({source:"touch",pointerId:D.identifier,clientX:D.clientX,clientY:D.clientY}),$=D=>{const P=g.current,K=P?.source==="touch"?P.pointerId:null;return K==null?void 0:[...D.changedTouches].find(oe=>oe.identifier===K)},z=D=>{if(D.touches?.length!==1){y(!0);return}const P=D.changedTouches[0];P!=null&&b(j(P),D.target)},L=D=>{if(D.touches?.length!==1){y(!0);return}const P=$(D);P&&k(j(P),()=>{D.cancelable&&D.preventDefault()})},I=D=>{if(D.touches.length>0){y(!0);return}const P=$(D);P?C(j(P)):D.touches.length===0&&y(!0)},N=()=>y(!0);return E.addEventListener("touchstart",z,{passive:!0}),E.addEventListener("touchmove",L,{passive:!1}),E.addEventListener("touchend",I,{passive:!0}),E.addEventListener("touchcancel",N,{passive:!0}),()=>{E.removeEventListener("touchstart",z),E.removeEventListener("touchmove",L),E.removeEventListener("touchend",I),E.removeEventListener("touchcancel",N)}},[b,t,C,k,y]),{rootRef:f,bindings:{onPointerDown:w,onPointerMove:v,onPointerUp:S,onPointerCancel:T,onLostPointerCapture:T}}}const _B=`${W1},[tabindex],[contenteditable]:not([contenteditable="false"])`;function PB(e,t){if(!(e instanceof Element))return!1;let a=e;for(;a!=null&&a!==t&&a!==document.body;){if(a.matches(_B))return!0;a=a.parentElement}return!1}function Dj({type:e,body:t,endContent:a,isAutoHide:s,autoHideDuration:i,isExiting:c=!1,onDismiss:u,renderContent:d,gestureDirection:f}){const g=pn(),y=x.useRef(null),b=x.useRef(!1),k=x.useRef(i),C=x.useRef(null),w=x.useRef(u);w.current=u;const v=x.useCallback(()=>{!s||b.current||(y.current&&clearTimeout(y.current),C.current=Date.now(),y.current=setTimeout(()=>{w.current("auto")},k.current))},[s]),S=x.useCallback(()=>{if(!(!s||b.current)&&(b.current=!0,y.current&&(clearTimeout(y.current),y.current=null),C.current!=null)){const P=Date.now()-C.current;k.current=Math.max(k.current-P,1e3)}},[s]),T=x.useCallback(()=>{!s||!b.current||(b.current=!1,v())},[s,v]);x.useEffect(()=>(k.current=i,v(),()=>{y.current&&clearTimeout(y.current)}),[i,v]),x.useEffect(()=>{if(s)return window.addEventListener("blur",S),window.addEventListener("focus",T),()=>{window.removeEventListener("blur",S),window.removeEventListener("focus",T)}},[s,S,T]);const E=x.useCallback(()=>b.current,[]),j=x.useCallback(()=>{w.current("manual")},[]),{rootRef:$,bindings:z}=IB({direction:f,enabled:!c,canPauseTimer:s,isTimerPaused:E,pauseTimer:S,resumeTimer:T,dismiss:j,shouldIgnoreTarget:PB}),L=x.useCallback(()=>{u("manual")},[u]),I=e==="error",{mode:N}=j1(),D=I||N==="light"?"dark":"light";return p.jsx("div",{ref:$,role:I?"alert":"status","aria-live":I?"assertive":"polite","aria-atomic":"true",onMouseEnter:S,onMouseLeave:T,onFocusCapture:S,onBlurCapture:T,...z,...Te(Ee("toast",{type:e}),{0:{className:"x1na6nto x1pzlopt x1hviunn x9f619 x1l2rt3b x193iq5w x14hfi27 x1i7u4iq x9ynric xjm74w1 xw6l6zx x1qk3xlt x6o7n8i xuedmi6 xsagj69 xlr8y92 x4itv7f x6s140c xenstv7"},2:{className:"x1na6nto x1pzlopt x1hviunn x9f619 x1l2rt3b x193iq5w x14hfi27 x1i7u4iq x9ynric xjm74w1 xw6l6zx x1qk3xlt x6o7n8i xuedmi6 xsagj69 xlr8y92 x4itv7f x6s140c x1l5t2a3"},1:{className:"x1na6nto x1pzlopt x1hviunn x9f619 x1l2rt3b x193iq5w x14hfi27 x9ynric xjm74w1 xw6l6zx x6o7n8i xuedmi6 xsagj69 xlr8y92 x4itv7f x6s140c xenstv7 xg01cxk x149p1fo"},3:{className:"x1na6nto x1pzlopt x1hviunn x9f619 x1l2rt3b x193iq5w x14hfi27 x9ynric xjm74w1 xw6l6zx x6o7n8i xuedmi6 xsagj69 xlr8y92 x4itv7f x6s140c x1l5t2a3 xg01cxk x149p1fo"}}[!!I<<1|!!c<<0]),children:p.jsx(f$,{mode:"auto",fallback:D,children:d?d({body:t,endContent:a,type:e,isAutoHide:s,autoHideDuration:i,dismiss:L}):p.jsxs("div",{className:"x78zum5 x1cy8zhl xozqiw3 xjcht0a xh8yej3",children:[p.jsx("div",{className:"x98rzlu xeuugli xj0a0fe",children:t}),p.jsxs("div",{className:"x2lah0s x78zum5 x6s0dn4 x1txdalj x1q370uo xmequkd",children:[a,p.jsx(Bt,{variant:"ghost",size:"sm",icon:p.jsx(jt,{icon:"close",size:"sm",color:"inherit"}),label:g("@astryx.toast.dismiss"),onClick:L,isIconOnly:!0})]})]})})})}Dj.displayName="ToastSurface";const Hc={viewport:{kVAEAm:"xixxii4",kY2c9j:"x6cuj84",k1xSpc:"x78zum5",kB7OPa:"x9f619",kXwgrk:"xdt5ytf",kLKAdn:"x1vjezoa",kGO01o:"xew4nw4",kZCmMZ:"xf4btlh x19efkpl",kwRFfy:"x1g0rcpp x1n6uwha",kfzvcC:"x47corl",kpwlN0:"xh3736h",kzqmXN:"x14atkfc",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kVQacm:"x1rea2x4",$$css:!0},viewportInlineSpan:{kLqNvP:"xsrzrpt",kt4wiu:"xu9ngte",$$css:!0},bottomEnd:{krVfgx:"xvxfwfv",kGNEyG:"xuk3077",$$css:!0},bottomStart:{krVfgx:"xvxfwfv",kGNEyG:"x1cy8zhl",$$css:!0},topEnd:{k87sOh:"xawarol",kGNEyG:"xuk3077",kXwgrk:"x3ieub6",$$css:!0},topStart:{k87sOh:"xawarol",kGNEyG:"x1cy8zhl",kXwgrk:"x3ieub6",$$css:!0}};function Rb(e){if(e==null||typeof e=="boolean")return"";if(typeof e=="string")return e;if(typeof e=="number")return String(e);if(Array.isArray(e))return e.map(Rb).filter(Boolean).join(" ");if(x.isValidElement(e)){const{children:t}=e.props;return Rb(t)}return""}const BB=e=>t=>{if(!t.has(e))return t;const a=new Set(t);return a.delete(e),a};function Oj({entry:e,isExiting:t,isReversed:a,onExited:s,onDismiss:i}){const c=e.options,u=c.type??"info",d=c.isAutoHide??u!=="error",f=c.autoHideDuration??5e3,[g,y]=x.useState(!1);return p.jsx("div",{"data-toast-id":e.id,...{0:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli x1tu4anv xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x1heqljd x1wesfrj xup0pd7"},4:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli x1tu4anv xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x87gnkx x1wesfrj xup0pd7"},2:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli x1tu4anv xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x1heqljd x1wesfrj x1vjq31q"},6:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli x1tu4anv xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x87gnkx x1wesfrj x1vjq31q"},1:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x1heqljd xihq33y x18d9i69"},5:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x87gnkx xihq33y x18d9i69"},3:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x1heqljd xihq33y x18d9i69"},7:{className:"x67bb7w xrvj5dj xh8yej3 x1j9u4d2 xeuugli xjshnde xuedmi6 xsagj69 xlr8y92 x1sopeo2 x5rzir7 x87gnkx xihq33y x18d9i69"}}[!!a<<2|!!a<<1|!!t<<0],onTransitionEnd:b=>{if(b.target===b.currentTarget&&b.propertyName==="grid-template-rows"){if(t){s(e.id);return}y(!0)}},children:p.jsx("div",{...{0:{className:"xh8yej3 x193iq5w xeuugli x2lwn1j xb3r6kr"},1:{className:"xh8yej3 x193iq5w xeuugli x2lwn1j x1rea2x4"}}[!!(g&&!t)<<0],children:p.jsx(Dj,{type:u,body:c.body,endContent:c.endContent,isAutoHide:d,autoHideDuration:f,isExiting:t,gestureDirection:a?-1:1,onDismiss:b=>i(e.id,b),renderContent:c.renderContent})})})}Oj.displayName="ToastRow";function Ij({position:e="bottomEnd",maxVisible:t=5,inset:a,layerInset:s,isTopLayer:i=!0,children:c}){const u=pn(),[d,f]=x.useState([]),[g,y]=x.useState(new Set),b=x.useRef(d);b.current=d;const k=x.useRef(null),C=x.useRef(new Set),w=x.useRef(null),v=x.useRef(null),S=x.useRef(null),T=x.useCallback(q=>{if(!q)return null;const Q=q.querySelectorAll(W1);for(const ae of Q)if(!(ae.getAttribute("tabindex")==="-1"||ae.hasAttribute("disabled")||ae.getAttribute("aria-disabled")==="true"))return ae;return null},[]),E=$f(),j=x.useCallback(q=>{const{uniqueID:Q,collisionBehavior:ae="overwrite"}=q.options;if(Q&&ae==="ignore"&&b.current.some(se=>se.options.uniqueID===Q))return;const J=Rb(q.options.body);J&&E(J,q.options.type==="error"?"assertive":"polite"),f(se=>Q&&se.find(fe=>fe.options.uniqueID===Q)?se.map(fe=>fe.options.uniqueID===Q?q:fe):[...se,q])},[E]),$=x.useCallback((q,Q)=>{if(C.current.has(q))return;C.current.add(q);const ae=b.current.find(fe=>fe.id===q);ae&&ae.options.onHide?.(Q);const J=k.current,se=document.activeElement,te=J?.querySelector(`[data-toast-id="${q}"]`)??null;if(te&&se instanceof Node&&te.contains(se))if(v.current=q,b.current.filter(B=>B.id!==q).length>0){const B=b.current.findIndex(me=>me.id===q),ee=b.current[B+1]??b.current[B-1];S.current=ee?ee.id:"restore"}else S.current="restore";y(fe=>fe.has(q)?fe:new Set(fe).add(q))},[]),z=x.useCallback(q=>{C.current.delete(q),y(BB(q)),f(Q=>Q.filter(ae=>ae.id!==q))},[]);x.useLayoutEffect(()=>{const q=v.current,Q=S.current;if(q==null||Q==null||d.some(se=>se.id===q))return;v.current=null,S.current=null;const ae=k.current;if(Q!=="restore"&&ae){const se=ae.querySelector(`[data-toast-id="${Q}"]`),te=T(se)??se;if(te){te.focus();return}}const J=w.current;w.current=null,J&&J.isConnected?J.focus():ae&&ae.focus()},[d,T]);const L=x.useCallback(q=>b.current.find(Q=>Q.options.uniqueID===q),[]),I=x.useMemo(()=>({addToast:j,removeToast:$,findByUniqueID:L}),[j,$,L]),N=d.slice(-t),D={...LC(s)};a?.top&&(D.top=a.top),a?.bottom&&(D.bottom=a.bottom),a?.start&&(D.insetInlineStart=a.start),a?.end&&(D.insetInlineEnd=a.end);const P=x.useRef(null),[K,oe]=x.useState(null);x.useLayoutEffect(()=>{if(!i)return;const q=document.createElement("div");return q.style.display="contents",oe(q),()=>{q.remove(),oe(null)}},[i]),x.useLayoutEffect(()=>{if(!i||K==null)return;const q=()=>{const Q=TB()??P.current;if(Q==null)return;if(K.parentNode!==Q){const se=document.activeElement,te=se instanceof HTMLElement&&K.contains(se);Q.appendChild(K),te&&se.focus({preventScroll:!0})}const ae=k.current;if(ae==null||typeof ae.showPopover!="function")return;let J=!1;try{J=ae.matches(":popover-open")}catch{}if(!J)try{ae.showPopover()}catch{}};return q(),RB(q)},[i,K]);const V=d.length>0;x.useEffect(()=>{if(!V)return;const q=Q=>{if(Q.key!=="F6")return;const ae=k.current;if(!ae)return;const J=document.activeElement;if(J instanceof Node&&ae.contains(J))return;Q.preventDefault(),J instanceof HTMLElement&&(w.current=J);const se=ae.querySelectorAll("[data-toast-id]"),te=se[se.length-1]??null;(T(te)??te??ae).focus()};return document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}},[V,T]);const H=e==="topEnd"?Hc.topEnd:e==="topStart"?Hc.topStart:e==="bottomStart"?Hc.bottomStart:Hc.bottomEnd,Z=e==="topEnd"||e==="topStart",F=p.jsx("div",{ref:k,role:V?"region":void 0,"aria-label":V?u("@astryx.toast.viewport"):void 0,tabIndex:V?-1:void 0,popover:i?"manual":void 0,...Te(Se(xu.reset,mu.reset,Hc.viewport,Hc.viewportInlineSpan,H),{style:Object.keys(D).length>0?D:void 0}),children:p.jsx(pu,{children:N.map(q=>p.jsx(Oj,{entry:q,isExiting:g.has(q.id),isReversed:Z,onExited:z,onDismiss:$},q.id))})});return p.jsxs(dm,{value:I,children:[c,i?p.jsxs(p.Fragment,{children:[p.jsx("div",{ref:P,className:"xjp7ctv"}),K!=null?gf.createPortal(F,K):null]}):F]})}Ij.displayName="ToastViewport";let Ha=null,sE=null;const oE=["data-theme",Ea("theme")];function FB(e){const t=()=>{let s=null;for(const i of oE){const c=document.documentElement.getAttribute(i);c==null?e.removeAttribute(i):(e.setAttribute(i,c),i==="data-theme"&&(s=c))}s==="light"||s==="dark"?e.style.colorScheme=s:e.style.removeProperty("color-scheme")};t(),new MutationObserver(t).observe(document.documentElement,{attributes:!0,attributeFilter:[...oE]})}function qB(){if(Ha)return Ha;if(typeof document>"u")throw new Error("useToast: Cannot create fallback viewport during SSR. Wrap your app with <LayerProvider> or <AppShell>.");Ux();const e=document.createElement("div");e.setAttribute("data-astryx-toast-fallback",""),document.body.appendChild(e),FB(e);let t;const a=new Promise(u=>{t=u}),s=()=>{const u=x.use(dm),d=x.useRef(!1);return x.useEffect(()=>{u&&!d.current&&(d.current=!0,Ha=u,t?.(u))},[u]),null};sE=k3.createRoot(e),sE.render(p.jsx(Ij,{children:p.jsx(s,{})}));const i=[],c={addToast:u=>{Ha&&Ha!==c?Ha.addToast(u):(i.push(u),a.then(d=>{for(const f of i)d.addToast(f);i.length=0}))},removeToast:(u,d)=>{Ha&&Ha!==c&&Ha.removeToast(u,d)},findByUniqueID:u=>{if(Ha&&Ha!==c)return Ha.findByUniqueID(u)}};return Ha=c,c}let HB=0;function UB(){return`astryx-toast-${++HB}`}function VB(){const e=x.use(dm);return x.useCallback(a=>{const s=e??qB(),i=UB(),c={id:i,options:a,createdAt:Date.now()};return s.addToast(c),()=>s.removeToast(i,"manual")},[e])}class jx extends Error{constructor(t,a){super(t),this.code=a,this.name="ApiError"}code}async function rr(e,t){const a=await fetch(e,t),s=await GB(a);if(!a.ok)throw jf(s,a.status);return s}function jf(e,t){return new jx(WB(e)??(t===void 0?"The request failed":`Request failed with HTTP ${t}`),KB(e))}async function GB(e){try{return await e.json()}catch{return null}}function KB(e){return typeof e=="object"&&e!==null&&"error"in e&&typeof e.error=="object"&&e.error!==null&&"code"in e.error&&typeof e.error.code=="string"?e.error.code:void 0}function WB(e){if(typeof e=="object"&&e!==null&&"error"in e){if(typeof e.error=="string")return e.error;if(typeof e.error=="object"&&e.error!==null&&"message"in e.error&&typeof e.error.message=="string")return e.error.message}}function _j(e){const t=e instanceof jx?e:new jx(e instanceof Error?e.message:"The request failed");return{ok:!1,error:{code:t.code??"REQUEST_FAILED",message:t.message}}}function qo(){const e=VB();return x.useCallback(t=>e({...t,isAutoHide:!0,autoHideDuration:2500}),[e])}const Pj=new G7({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),Li={current:()=>["settings","current"]};function hm(){return Bj()}function Ps(){return Pj.query({queryKey:Li.current(),queryFn:Bj})}async function YB(){return(await Ps()).configFolder}async function XB(){await rr("/api/settings/config-folder/open",{method:"POST"})}function ZB(e){return Tf({theme:e})}function QB(e){return Tf({language:e})}function JB(e){return Tf({timeFormat:e})}function eF(e){return Tf({timezone:e})}function tF(e){const t=e.captures;return Tf({captures:t?{fetcher:t.fetcher,maxAttempts:t.maxAttempts,fetchConcurrency:t.fetchConcurrency,firecrawlApiKey:t.firecrawl.apiKey}:void 0})}async function Bj(){const e=await rr("/api/settings");return Fj(e)}async function Tf(e){const t=await rr("/api/settings",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return Fj(t)}function Fj(e){const t=e.features,a=t.library.captures;return{workspace:e.workspace,features:{...t,library:{...t.library,captures:{...a,firecrawl:{apiKey:a.firecrawl.apiKey}}}},configFolder:typeof e.configFolder=="string"?e.configFolder:""}}function nF({children:e}){const a=Va({queryKey:Li.current(),queryFn:hm}).data?.workspace["language-region"].language??"system",s=x.useMemo(()=>GP(a),[a]);return x.useEffect(()=>{Cr.changeLanguage(s)},[s]),p.jsx(f4,{locale:s,messages:{"zh-CN":pB,"zh-TW":xB,"ja-JP":mB},children:p.jsx(hB,{i18n:Cr,children:e})})}function en(){const{t:e}=fB(),t=Cr.language||"en-US",a=x.useCallback((s,i)=>e(s,i),[e]);return x.useMemo(()=>({locale:t,language:t,t:a}),[t,a])}function of(e){switch(e){case"ACTIVE_JOB_EXISTS":return"captures.activeJobExists";case"DATA_TRANSFER_BUSY":return"captures.dataTransferBusy";case"FETCHER_NOT_CONFIGURED":return"captures.configureFetcherFirst";case"CAPTURE_ALREADY_EXISTS":return"captures.captureExists";case"CAPTURE_NOT_FOUND":return"captures.captureNotFound";case"INVALID_URL":return"captures.invalidUrl"}}function Ab(e){switch(e){case"ACTIVE_JOBS":return"dataTransfer.activeJobs";case"ARCHIVE_HAS_ACTIVE_JOBS":return"dataTransfer.archiveHasActiveJobs";case"BUSY":return"dataTransfer.busy";case"IMPORT_NOT_FOUND":return"dataTransfer.importExpired";case"INVALID_PASSPHRASE":return"dataTransfer.invalidPassphrase";case"PASSPHRASE_REQUIRED":return"dataTransfer.passphraseRequired";case"NEWER_SCHEMA":return"dataTransfer.newerVersion";case"UNSUPPORTED_ARCHIVE":return"dataTransfer.unsupportedArchive";case"INVALID_ARCHIVE":return"dataTransfer.invalidArchive";case"IO_ERROR":return"dataTransfer.ioError"}}const iE=1,qj="capture.job.changed",Hj="captures.changed",rF="data-transfer.status.changed",aF="data-transfer.imported",sF="providers.changed",oF="settings.changed";function iF(e){let t;try{t=JSON.parse(e)}catch{return null}return!lF(t)||t.version!==iE||typeof t.id!="string"||typeof t.type!="string"||typeof t.occurredAt!="string"||!("data"in t)?null:{version:iE,id:t.id,type:t.type,occurredAt:t.occurredAt,data:t.data}}function lF(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Y1=x.createContext(null);Y1.displayName="FoundryEventsContext";function cF({children:e}){const[t,a]=x.useState("connecting"),s=x.useRef(new Set),i=x.useCallback(c=>(s.current.add(c),()=>{s.current.delete(c)}),[]);return x.useEffect(()=>{const c=new EventSource("/api/events"),u=()=>{a("open")},d=()=>{a("connecting")},f=g=>{const y=iF(g.data);if(y)for(const b of s.current)b(y)};return c.addEventListener("open",u),c.addEventListener("error",d),c.addEventListener("foundry",f),()=>{c.removeEventListener("open",u),c.removeEventListener("error",d),c.removeEventListener("foundry",f),c.close()}},[]),p.jsx(Y1,{value:{status:t,subscribe:i},children:e})}function pm(){const e=x.use(Y1);if(!e)throw new Error("useFoundryEvents must be used within FoundryEventsProvider");return e}const uF="_drawer_15igm_1",dF={drawer:uF};function fF(){const{t:e}=en();return p.jsx(ct,{gap:5,children:p.jsxs(ct,{gap:2,children:[p.jsx(_i,{level:1,children:e("overview.title")}),p.jsx(tt,{type:"supporting",children:e("overview.description")})]})})}function hF(){const{t:e}=en();return p.jsx(ct,{gap:2,children:p.jsx(tt,{type:"supporting",children:e("prompts.description")})})}const lE={horizontal:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kzqmXN:"xh8yej3",$$css:!0},vertical:{k1xSpc:"x3nfvp2",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kZKoxP:"x5yr21d",$$css:!0}},Uc={horizontalLine:{kZKoxP:"xsyqizj",kzQI83:"x1iyjqo2",kmuXW:"xs83m0k",$$css:!0},verticalLine:{kzqmXN:"xjk4fl7",kzQI83:"x1iyjqo2",kmuXW:"xs83m0k",$$css:!0},subtle:{kWkggS:"x1m4xfpy",$$css:!0},strong:{kWkggS:"x7njt3n",$$css:!0}},cE={horizontal:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",$$css:!0},vertical:{keoZOQ:"x1sa9bsh",k1K539:"x6h7pi7",kZKoxP:"x12qplqi",$$css:!0}};function Ol({orientation:e="horizontal",label:t,variant:a="subtle",isFullBleed:s=!1,xstyle:i,className:c,style:u,ref:d,"aria-label":f,"aria-labelledby":g,...y}){const b=e==="horizontal",k=x.useId(),C=g??(t&&f==null?k:void 0);return p.jsxs("div",{ref:d,...y,role:"separator","aria-orientation":e,"aria-label":f,"aria-labelledby":C,...Te(Ee("divider",{variant:a,orientation:e}),Se(b?lE.horizontal:lE.vertical,s&&(b?cE.horizontal:cE.vertical),i),c,u),children:[p.jsx("div",{...Se(b?Uc.horizontalLine:Uc.verticalLine,Uc[a])}),t&&p.jsx("div",{id:k,...{0:{className:"x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4"},1:{className:"x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82"}}[!b<<0],children:t}),t&&p.jsx("div",{...Se(b?Uc.horizontalLine:Uc.verticalLine,Uc[a])})]})}Ol.displayName="Divider";function pF(){if(typeof navigator>"u")return!1;const e="userAgentData"in navigator?navigator.userAgentData:null;if(e&&typeof e=="object"&&"platform"in e){const t=e.platform,a=typeof t=="string"?t.trim():"";if(a!==""&&a.toLowerCase()!=="unknown")return/mac/i.test(a)}return/Mac|iPhone|iPad|iPod/.test(navigator.platform??"")}function xF(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!Uj(e)&&e.key!==" "}function Uj(e){return e.isComposing===!0?!0:e.nativeEvent?.isComposing===!0}function X1(e){const{getItemLabels:t,onMatch:a,getCurrentIndex:s,resetMs:i=750,isDisabled:c}=e,u=x.useRef(""),d=x.useRef(void 0),f=x.useCallback(()=>{u.current="",d.current&&(clearTimeout(d.current),d.current=void 0)},[]),g=x.useCallback(()=>{d.current&&clearTimeout(d.current),d.current=setTimeout(()=>{u.current="",d.current=void 0},i)},[i]);return{onKeyDown:x.useCallback(b=>{const k=b.key===" "&&!b.ctrlKey&&!b.metaKey&&!Uj(b)&&u.current.length>0;if(!xF(b)&&!k)return!1;const C=t();if(C.length===0)return!1;const w=b.key.toLowerCase(),S=u.current.length>0&&u.current.split("").every(L=>L===w)?w:u.current+w;u.current=S,g();const T=s?.()??-1,E=C.length,j=T>=0,$=j?T:0,z=j&&S.length===1?1:0;for(let L=0;L<E;L++){const I=($+z+L+E)%E;if(c?.(I))continue;const N=C[I];if(N!=null&&N.trim().toLowerCase().startsWith(S))return a(I),!0}return!0},[t,a,s,g,c]),reset:f}}const mF=300,uE={phase:"idle"},Di={type:"none"};function zi(e){return{gesture:{phase:"idle"},effect:e}}function Z1(e){return e==null?{type:"clear"}:{type:"highlight",row:e}}function Vj(e,t){return t.row!=null?zi({type:"act",row:t.row}):t.isInMenu||t.isOnTrigger?zi({type:"settle",stray:!0,dismiss:!1}):zi({type:"settle",stray:!0,dismiss:e==="mouse"})}function gF(e,t){switch(e.phase){case"idle":return yF(e,t);case"triggerPress":return bF(e,t);case"open":return vF(e,t);case"tracking":return kF(e,t)}}function yF(e,t){return t.type!=="down"?{gesture:e,effect:Di}:t.target==="menu"?{gesture:{phase:"tracking",pointerType:t.pointerType,origin:"menu",row:t.row},effect:Z1(t.row)}:t.pointerType==="mouse"?{gesture:{phase:"open",pointerType:"mouse",openedAt:t.time},effect:{type:"open"}}:{gesture:{phase:"triggerPress",pointerType:t.pointerType,startedAt:t.time},effect:Di}}function bF(e,t){switch(t.type){case"opened":return{gesture:{phase:"open",pointerType:e.pointerType,openedAt:t.time},effect:Di};case"up":return zi({type:"settle",stray:!1,dismiss:!1});case"cancel":return zi({type:"settle",stray:!1,dismiss:!1});case"down":case"move":return{gesture:e,effect:Di}}}function vF(e,t){switch(t.type){case"move":return t.isInMenu?{gesture:{phase:"tracking",pointerType:e.pointerType,origin:"trigger",row:t.row},effect:Z1(t.row)}:{gesture:e,effect:Di};case"up":return t.time-e.openedAt>=mF?Vj(e.pointerType,t):zi({type:"settle",stray:!0,dismiss:!1});case"cancel":return zi({type:"settle",stray:!1,dismiss:!1});case"down":case"opened":return{gesture:e,effect:Di}}}function kF(e,t){switch(t.type){case"move":return t.row===e.row?{gesture:e,effect:Di}:{gesture:{...e,row:t.row},effect:Z1(t.row)};case"up":return Vj(e.pointerType,t);case"cancel":return zi({type:"settle",stray:!1,dismiss:!1});case"down":case"opened":return{gesture:e,effect:Di}}}const wF=500,SF=10;function Gj(e){const{onLongPress:t,disabled:a=!1,delayMs:s=wF,moveCancelPx:i=SF}=e,c=x.useRef(null),u=x.useRef(null),d=x.useRef(t);d.current=t;const f=x.useCallback(()=>{c.current!=null&&(clearTimeout(c.current),c.current=null),u.current=null},[]),g=x.useCallback(C=>{a||(f(),u.current={x:C.x,y:C.y},c.current=setTimeout(()=>{const w=u.current;w!=null&&d.current({x:w.x,y:w.y})},s))},[a,s,f]),y=x.useCallback(C=>{const w=u.current;return w==null?!1:Math.abs(C.x-w.x)>i||Math.abs(C.y-w.y)>i?(f(),!1):!0},[i,f]),b=x.useCallback(C=>{if(a)return;if(C.touches.length!==1){f();return}const w=C.touches[0];g({x:w.clientX,y:w.clientY})},[a,f,g]),k=x.useCallback(C=>{if(u.current==null)return;if(C.touches.length!==1){f();return}const w=C.touches[0];y({x:w.clientX,y:w.clientY})},[f,y]);return x.useEffect(()=>f,[f]),{onTouchStart:b,onTouchMove:k,onTouchEnd:f,onTouchCancel:f,start:g,moveTo:y,cancel:f}}const Kj="data-astryx-menu-press",Wj=`[${Kj}]`,EF=400,CF=500,dE=24,$F=6,jF=16,TF="[tabindex], a[href], button, input, select, textarea, [contenteditable]",RF="a[href], button, [tabindex]";let Tx=!1;function AF(){return Tx}let da=null;function Fd(){da!=null&&(da.isArmed=!1,da.timer!=null&&(clearTimeout(da.timer),da.timer=null))}function fE(e){da==null||!da.isArmed||e.detail===0||Tx||(e.preventDefault(),e.stopImmediatePropagation(),Fd())}function hE(e){const t=e.defaultView;t!=null&&((da==null||da.doc!==e)&&(da!=null&&(da.doc.defaultView?.removeEventListener("click",fE,!0),da.doc.removeEventListener("pointerdown",Fd,!0)),t.addEventListener("click",fE,!0),e.addEventListener("pointerdown",Fd,!0),da={doc:e,isArmed:!1,timer:null}),Fd(),da.isArmed=!0,da.timer=setTimeout(Fd,EF))}function pE(e){return e==="mouse"||e==="touch"||e==="pen"?e:null}function MF(e){return e.matches(TF)}function zF(e){let t=e;for(;;){const a=t.parentElement?.closest(Wj);if(a==null)return t;t=a}}function xm(e){const t=x.useRef(e);t.current=e;const a=x.useRef(uE),s=x.useRef(null),i=x.useRef(null),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),f=x.useRef(null),g=x.useRef(null),y=x.useRef(null),b=x.useCallback(()=>t.current.menuRef.current?.ownerDocument??t.current.triggerRef?.current?.ownerDocument??document,[]),k=x.useCallback(V=>{const{menuRef:H,triggerRef:Z,itemSelector:F,hitTest:q}=t.current,Q=H.current,ae=b();let J;q!=null?J=q(V.clientX,V.clientY):typeof ae.elementFromPoint=="function"?J=ae.elementFromPoint(V.clientX,V.clientY):J=V.target instanceof Element?V.target:null;const se=Q==null?null:zF(Q),te=se!=null&&J!=null&&se.contains(J),fe=Z?.current??null,B=fe!=null&&J!=null&&fe.contains(J);let ee=null;return te&&J!=null&&(ee=J.closest(F),ee!=null&&!se.contains(ee)&&(ee=null)),{row:ee,isInMenu:te,isOnTrigger:B}},[b]),C=x.useCallback(()=>{d.current!=null&&(clearInterval(d.current.timer),d.current=null)},[]),w=x.useCallback(()=>{c.current?.cancel(),u.current?.(),u.current=null,C(),i.current?.(),i.current=null,s.current=null,f.current=null,a.current=uE},[C]),v=x.useCallback(V=>{const{onHighlight:H,menuRef:Z}=t.current;if(H!=null){H(V);return}const F=V==null?Z.current:MF(V)?V:V.querySelector(RF);F!=null&&F!==b().activeElement&&F.focus({preventScroll:!0})},[b]),S=x.useCallback((V,H)=>{const{onActivate:Z}=t.current;Tx=!0;try{if(Z!=null){Z(V,H);return}V.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:0,button:H.button,clientX:H.clientX,clientY:H.clientY,screenX:H.screenX,screenY:H.screenY,ctrlKey:H.ctrlKey,shiftKey:H.shiftKey,altKey:H.altKey,metaKey:H.metaKey}))}finally{Tx=!1}},[]),T=x.useRef(()=>{}),E=x.useCallback((V,H,Z)=>{const F=b();switch(V.type){case"none":return;case"open":{const q=H.phase==="open"?H.pointerType:"mouse";g.current=Cl(),(t.current.onTriggerPress?.(q)??!1)||w();return}case"highlight":v(V.row);return;case"clear":v(null);return;case"act":{w(),hE(F),Z!=null&&S(V.row,Z);return}case"settle":{w(),V.stray&&hE(F),V.dismiss&&t.current.onDismiss?.();return}}},[S,w,b,v]),j=x.useCallback((V,H)=>{const Z=gF(a.current,V);a.current=Z.gesture,E(Z.effect,Z.gesture,H)},[E]);T.current=j;const $=x.useCallback(()=>{const{getScroller:V,menuRef:H}=t.current;if(V!=null)return V();const Z=H.current;return Z==null?null:Z.scrollHeight>Z.clientHeight+1?Z:null},[]),z=x.useCallback(V=>{if(a.current.phase!=="tracking"){C();return}const H=$();if(H==null){C();return}const Z=H.getBoundingClientRect();if(Z.height<=0){C();return}let F=0;if(V.clientY<=Z.top+dE?F=-1:V.clientY>=Z.bottom-dE&&(F=1),F===0){C();return}if(d.current?.direction===F)return;C();const q=()=>{const Q=H.scrollTop;if(H.scrollTop=Q+F*$F,H.scrollTop===Q){C();return}const ae=f.current;if(ae!=null){const J=k(ae);T.current({type:"move",row:J.row,isInMenu:J.isInMenu,time:Date.now()},ae)}};d.current={direction:F,timer:setInterval(q,jF)},q()},[$,k,C]),L=x.useCallback(V=>{i.current?.();const H=b(),Z=H.defaultView;s.current=V;const F=se=>{if(se.pointerId!==s.current)return;if(f.current=se,a.current.phase==="triggerPress"){c.current?.moveTo({x:se.clientX,y:se.clientY})===!1&&T.current({type:"cancel"});return}const fe=k(se);T.current({type:"move",row:fe.row,isInMenu:fe.isInMenu,time:Date.now()},se),z(se)},q=se=>{if(se.pointerId!==s.current)return;const te=k(se);T.current({type:"up",row:te.row,isInMenu:te.isInMenu,isOnTrigger:te.isOnTrigger,time:Date.now()},se)},Q=se=>{se.pointerId===s.current&&T.current({type:"cancel"})},ae=se=>{se.pointerId!==s.current&&(y.current=se.pointerId,T.current({type:"cancel"}))},J=()=>{T.current({type:"cancel"})};H.addEventListener("pointermove",F,!0),H.addEventListener("pointerup",q,!0),H.addEventListener("pointercancel",Q,!0),H.addEventListener("pointerdown",ae,!0),Z?.addEventListener("blur",J),i.current=()=>{H.removeEventListener("pointermove",F,!0),H.removeEventListener("pointerup",q,!0),H.removeEventListener("pointercancel",Q,!0),H.removeEventListener("pointerdown",ae,!0),Z?.removeEventListener("blur",J)}},[b,k,z]),I=x.useCallback(()=>{const V=a.current;if(V.phase!=="triggerPress")return;if(g.current=Cl(),!(t.current.onTriggerPress?.(V.pointerType)??!1)){j({type:"cancel"});return}const Z=b(),F=q=>{q.cancelable&&q.preventDefault()};Z.addEventListener("touchmove",F,{passive:!1,capture:!0}),u.current=()=>{Z.removeEventListener("touchmove",F,!0)},j({type:"opened",time:Date.now()})},[b,j]);c.current=Gj({onLongPress:I,delayMs:e.longPressDelayMs??CF});const N=x.useCallback(V=>{const{menuRef:H,isEnabled:Z=!0}=t.current,F=H.current;if(!Z||F==null)return;if(V.pointerId===y.current){y.current=null;return}if(a.current.phase!=="idle"){j({type:"cancel"});return}const q=pE(V.pointerType);if(q==null||q==="mouse"&&V.button!==0||V.target?.closest(Wj)!==F)return;q!=="mouse"&&V.preventDefault();const ae=V.nativeEvent;L(ae.pointerId),f.current=ae;const J=k(ae);j({type:"down",target:"menu",pointerType:q,row:J.row,time:Date.now()},ae)},[L,k,j]),D=x.useCallback(V=>{const{isEnabled:H=!0}=t.current;if(V.pointerId===y.current){y.current=null;return}if(!H||a.current.phase!=="idle")return;const Z=pE(V.pointerType);if(Z==null||V.button!==0||Z==="mouse"&&V.ctrlKey)return;const F=V.nativeEvent;L(F.pointerId),f.current=F,Z!=="mouse"&&c.current?.start({x:F.clientX,y:F.clientY}),j({type:"down",target:"trigger",pointerType:Z,row:null,time:Date.now()},F)},[L,j]),P=x.useCallback(V=>{const H=a.current;H.phase!=="idle"&&H.pointerType!=="mouse"&&V.preventDefault()},[]),K=x.useCallback(()=>g.current!=null&&g.current===Cl(),[]),oe=x.useCallback(()=>{a.current.phase!=="idle"&&j({type:"cancel"}),w()},[w,j]);return x.useEffect(()=>(Cl(),()=>{w()}),[w]),x.useMemo(()=>({menuProps:{onPointerDown:N,[Kj]:""},triggerProps:{onPointerDown:D,onContextMenu:P},isTriggerClickFromPress:K,cancel:oe}),[N,D,P,K,oe])}const NF={wrapper:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kmuXW:"x2lah0s",$$css:!0}},LF=new Map([["ctrl","⌃"],["alt","⌥"],["shift","⇧"],["enter","↵"],["backspace","⌫"],["escape","Esc"],["tab","⇥"],["up","↑"],["down","↓"],["left","←"],["right","→"],["plus","+"]]),DF=new Map([["esc","escape"],["return","enter"]]);function OF(e,t){return e==="mod"?t?"⌘":"Ctrl":LF.get(e)??e.toUpperCase()}const IF=new Map([["ctrl","Control"],["alt","Alt"],["shift","Shift"],["enter","Enter"],["backspace","Backspace"],["escape","Escape"],["tab","Tab"],["up","Up arrow"],["down","Down arrow"],["left","Left arrow"],["right","Right arrow"],["plus","Plus"]]);function _F(e,t){return e==="mod"?t?"Command":"Control":IF.get(e)??e.toUpperCase()}function PF(){return()=>{}}function BF(){return!1}function Rx({keys:e,ref:t,xstyle:a,className:s,style:i,...c}){const u=x.useSyncExternalStore(PF,pF,BF),d=new Map,f=e.split("+").map(y=>y.trim().toLowerCase()).map(y=>{const b=d.get(y)??0;return d.set(y,b+1),{key:DF.get(y)??y,reactKey:`${y}:${b}`}}),g=f.map(({key:y})=>_F(y,u)).join(" + ");return p.jsx("span",{...c,ref:t,role:"img","aria-label":g,...Te(Ee("kbd"),Se(NF.wrapper,a),s,i),children:f.map(({key:y,reactKey:b})=>p.jsx("kbd",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x16asifk x1grt7ep x7a5moj xx3sua9 x17x4s8c xlxy82 x1q0q8m5 xib2hle x1tgivj0 x9ynric x141an7d x1e4wzip x1ltkj2j x87ps6o",children:OF(y,u)},b))})}Rx.displayName="Kbd";const FF=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),qF={horizontal:["left","right"],vertical:["up","down"],both:["left","right","up","down"]},HF={hint:{kVAEAm:"xixxii4",kpwlN0:"x1anvkwx",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"x1prclbq",kaIpWk:"xh6dtrn",kGVxlE:"x1i5ehqx",kLKAdn:"xfsso4q",kGO01o:"xy143xn",kZCmMZ:"x12gdq22",kwRFfy:"x1djylfy",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",kMwMTN:"xv1l7n4",khDVqt:"xuxw1ft",kSiTet:"xg01cxk xofkqq2",k1ekBW:"xsm4mo9",kIyJzY:"xx6bhzk",kzIqYQ:"xd00j3c",kfzvcC:"x47corl",$$css:!0}};function UF(e={}){const{orientation:t="horizontal",dismissAfterMs:a=3e3,isEnabled:s=!0}=e,i=pn(),c=x.useRef(null),u=x.useRef(!1),d=x.useRef(!1),f=x.useRef(()=>{}),g=x.useCallback(()=>{c.current&&(clearTimeout(c.current),c.current=null)},[]),y=x.useCallback(()=>{d.current=!0},[]),b=x.useCallback(()=>{d.current=!1,g(),f.current(null)},[g]),k=bf({mode:"context",onShow:y,onHide:b});f.current=k.ref;const C=x.useCallback(()=>{u.current=!0,g(),k.hide(),d.current=!1,f.current(null)},[g,k]),w=x.useCallback($=>{u.current||!s||(f.current($),k.show(),g(),c.current=setTimeout(()=>{C()},a))},[g,C,a,s,k]);x.useEffect(()=>()=>{g(),f.current(null)},[g]);const v=x.useCallback($=>{if(u.current||!s)return;const z=$.target;if(!z.matches(":focus-visible"))return;const L=$.currentTarget;$.relatedTarget instanceof Node&&L.contains($.relatedTarget)||w(z)},[w,s]),S=x.useCallback($=>{if(!d.current)return;const z=$.currentTarget;if($.relatedTarget instanceof Node&&z.contains($.relatedTarget)){!u.current&&$.relatedTarget instanceof HTMLElement&&f.current($.relatedTarget);return}C()},[C]),T=x.useCallback($=>{d.current&&FF.has($.key)&&C()},[C]),E=p.jsx("span",{className:"x3nfvp2 x6s0dn4 xzye2dw",children:qF[t].map($=>p.jsx(Rx,{keys:$},$))});return{hintElement:k.render(p.jsxs("span",{"aria-hidden":"true",children:[E,p.jsx("span",{className:"x11g1kdw",children:i("@astryx.keyboardHint.toNavigate")})]}),{placement:"below",alignment:"start",xstyle:HF.hint,style:{marginBlockStart:kr["--spacing-2"]}}),onFocus:v,onBlur:S,onKeyDown:T}}const Q1=new WeakMap;function xE(e,t){Q1.set(e,t)}function VF(e){Q1.delete(e)}function GF(e){return Q1.get(e)}const KF=new Set(["article","banner","complementary","contentinfo","definition","directory","document","figure","form","generic","group","heading","list","listitem","main","navigation","none","note","paragraph","presentation","region","section","status","table","term"]);function mE(e){if(e.tabIndex<0||e.matches(":disabled")||e.closest("[inert], [hidden]")!=null||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).visibility;return t!=="hidden"&&t!=="collapse"}function WF(e,t){const a=t.querySelectorAll(vx);let s=t.matches(vx)&&mE(t)?t:null;for(const c of a)if(!(s!=null&&c.tabIndex<=0)&&mE(c)){if(c.tabIndex>0)return null;s??=c}if(s==null||s.tabIndex!==0||!s.matches("a[href], button")||s.closest('[aria-hidden="true"]')!=null||s.matches('[aria-disabled="true"], [aria-haspopup]:not([aria-haspopup="false"])'))return null;let i=s;for(;i!=null&&i!==e;){const c=i.getAttribute("role")?.trim().toLowerCase(),u=i===s&&(c==="button"&&s.localName==="button"||c==="link"&&s.localName==="a");if(c!=null&&c!==""&&!u&&!KF.has(c)||i===s&&c!=null&&c!==""&&!u||i.hasAttribute("aria-activedescendant")||i.isContentEditable||i.matches('[contenteditable]:not([contenteditable="false"])')||GF(i)!=null)return null;const d=getComputedStyle(i);if(/^(auto|scroll|overlay)$/.test(d.overflowX)&&i.scrollWidth>i.clientWidth+1||/^(auto|scroll|overlay)$/.test(d.overflowY)&&i.scrollHeight>i.clientHeight+1)return null;i=i.parentElement}return i===e?s:null}function YF(e,t){const a=e.ownerDocument,s=a.defaultView;if(s==null)return()=>{};let i=null,c=null,u=null,d,f;const g=()=>{i=null,c=null,s.clearTimeout(d),f?.(),f=void 0},y=k=>{if(g(),!(k.key!=="Tab"||k.ctrlKey||k.metaKey)){if(i=k,c=k.target,k.shiftKey&&u!=null&&a.activeElement===u&&e.contains(u)){const C=e.getAttribute("tabindex");e.tabIndex=-1,f=()=>{e.getAttribute("tabindex")==="-1"&&(C==null?e.removeAttribute("tabindex"):e.setAttribute("tabindex",C))}}d=s.setTimeout(g,0)}},b=k=>{const C=i,w=c;if(g(),k.target!==e){e.contains(k.target)||(u=null);return}if(u=null,C==null||C.shiftKey||C.defaultPrevented||C.eventPhase!==0||k.relatedTarget!=null&&k.relatedTarget!==w)return;const v=WF(e,t);v!=null&&(u=v,v.focus(),a.activeElement!==v&&(u=null))};return a.addEventListener("keydown",y,!0),a.addEventListener("keyup",g,!0),a.addEventListener("pointerdown",g,!0),a.addEventListener("focusin",b,!0),s.addEventListener("blur",g),()=>{g(),a.removeEventListener("keydown",y,!0),a.removeEventListener("keyup",g,!0),a.removeEventListener("pointerdown",g,!0),a.removeEventListener("focusin",b,!0),s.removeEventListener("blur",g)}}const Qp=1,XF={isScrollable:!1,atStart:!0,atEnd:!0};function ZF(e,t){const a=e.toLowerCase(),s=a.startsWith("vertical")||a.startsWith("sideways"),i=t==="rtl";if(!s)return{inline:"x",block:"y",inlineReversed:i,blockReversed:!1};const c=a==="sideways-lr"?!i:i,u=a.endsWith("-rl");return{inline:"y",block:"x",inlineReversed:c,blockReversed:u}}function QF(e){return e==="auto"||e==="scroll"||e==="overlay"}function JF(e,t){const a=getComputedStyle(e);return t==="x"?{clientExtent:e.clientWidth,contentExtent:e.scrollWidth,offset:e.scrollLeft,overflow:a.overflowX}:{clientExtent:e.clientHeight,contentExtent:e.scrollHeight,offset:e.scrollTop,overflow:a.overflowY}}function Yj(e,t){return e.isConnected&&t.display!=="none"&&e.clientWidth>0&&e.clientHeight>0}function gE(e,t,a){const s=getComputedStyle(e);if(!Yj(e,s))return null;const i=a[t],c=i==="x"?e.clientWidth:e.clientHeight;return(i==="x"?e.scrollWidth:e.scrollHeight)-c>Qp}function yE(e,t,a){const s=getComputedStyle(e);if(!Yj(e,s))return null;const i=a[t],c=JF(e,i),u=c.contentExtent-c.clientExtent;if(!QF(c.overflow)||u<=Qp)return XF;const d=a[`${t}Reversed`],f=Math.min(u,Math.max(0,d?Math.abs(c.offset):c.offset));return{isScrollable:!0,atStart:f<=Qp,atEnd:f>=u-Qp}}const eu={isScrollable:!1,atStart:!0,atEnd:!0},bE={inline:eu,block:eu},eq={inline:!1,block:!1},tq={inline:"x",block:"y",inlineReversed:!1,blockReversed:!1},nq={overflow:(e,t)=>[{kXHlph:e!=null?"xyto64x":e,kORKVm:t!=null?"x4ncuvb":t,$$css:!0},{"--x-overflowX":e??void 0,"--x-overflowY":t??void 0}]};function os(e,t){return e===t||e==="both"}function rq(e,t){return e.inline.isScrollable===t.inline.isScrollable&&e.inline.atStart===t.inline.atStart&&e.inline.atEnd===t.inline.atEnd&&e.block.isScrollable===t.block.isScrollable&&e.block.atStart===t.block.atStart&&e.block.atEnd===t.block.atEnd}function aq(e,t){return e.inline===t.inline&&e.block===t.block}function sq(e,t){return e.inline===t.inline&&e.block===t.block&&e.inlineReversed===t.inlineReversed&&e.blockReversed===t.blockReversed}function oq(e){if(e==null)return;const t={...e};return delete t.overflow,delete t.overflowX,delete t.overflowY,delete t.overflowInline,delete t.overflowBlock,t}function vE(e){const t=x.useRef(void 0),a=x.useRef(null);return x.useCallback(s=>{if(a.current!=null&&Object.is(t.current,s))return a.current;const i=o1(s,e);return t.current=s,a.current=i,i},[e])}function iq({axis:e,keyboardAccess:t,overscroll:a="allow",stickyContainment:s="whenScrollable"}){const[i,c]=x.useState(null),[u,d]=x.useState(null),[f,g]=x.useState(bE),[y,b]=x.useState(eq),[k,C]=x.useState(tq),w=x.useRef(bE),v=x.useCallback(I=>{c(N=>N===I?N:I)},[]),S=x.useCallback(I=>{d(N=>N===I?N:I)},[]),T=vE(v),E=vE(S);Sr(()=>{if(i==null||u==null)return;let I=null,N=!0;const D=()=>{I=null;const F=getComputedStyle(i),q=ZF(F.writingMode,F.direction),Q=os(e,"inline")?gE(i,"inline",q):!1,ae=os(e,"block")?gE(i,"block",q):!1,J=os(e,"inline")?yE(i,"inline",q):eu,se=os(e,"block")?yE(i,"block",q):eu;if(Q==null||ae==null||J==null||se==null)return;const te={inline:Q,block:ae},fe={inline:J,block:se};w.current=fe,xE(i,fe),b(B=>aq(B,te)?B:te),g(B=>rq(B,fe)?B:fe),C(B=>sq(B,q)?B:q)},P=()=>{!N||I!=null||(I=window.requestAnimationFrame(D))};xE(i,w.current),D();const K=Jd(i,P),oe=Jd(u,P);i.addEventListener("scroll",P,{passive:!0}),window.addEventListener("resize",P),window.visualViewport?.addEventListener("resize",P),u.addEventListener("load",P,!0),i.addEventListener("transitionend",P),i.addEventListener("animationend",P),u.addEventListener("transitionend",P),u.addEventListener("animationend",P);const V=typeof MutationObserver>"u"?null:new MutationObserver(P);V?.observe(i,{attributes:!0,attributeFilter:["class","dir","hidden","style"]}),V?.observe(u,{attributes:!0,attributeFilter:["class","dir","hidden","style"],characterData:!0,childList:!0,subtree:!0});let H=i.parentElement;for(;H!=null;)V?.observe(H,{attributes:!0,attributeFilter:["class","dir","hidden","style"]}),H=H.parentElement;const Z=document.fonts;return Z?.addEventListener?.("loadingdone",P),Z?.ready.then(P),()=>{N=!1,VF(i),K(),oe(),V?.disconnect(),i.removeEventListener("scroll",P),window.removeEventListener("resize",P),window.visualViewport?.removeEventListener("resize",P),u.removeEventListener("load",P,!0),i.removeEventListener("transitionend",P),i.removeEventListener("animationend",P),u.removeEventListener("transitionend",P),u.removeEventListener("animationend",P),Z?.removeEventListener?.("loadingdone",P),I!=null&&window.cancelAnimationFrame(I)}},[e,u,i]);const j=x.useMemo(()=>({inline:os(e,"inline")?f.inline:eu,block:os(e,"block")?f.block:eu}),[e,f]),$=j.inline.isScrollable||j.block.isScrollable;Sr(()=>{if(!(t.owner!=="contentOrViewport"||!$||i==null||u==null))return YF(i,u)},[u,$,t.owner,i]);const z=x.useCallback((I={})=>{const N=j.inline.isScrollable||j.block.isScrollable,D=os(e,"inline")&&k.inline==="x"||os(e,"block")&&k.block==="x",P=os(e,"inline")&&k.inline==="y"||os(e,"block")&&k.block==="y",K=y.inline&&k.inline==="x"||y.block&&k.block==="x",oe=y.inline&&k.inline==="y"||y.block&&k.block==="y",V=K||oe||s==="always",H=s==="always"?D:K,Z=s==="always"?P:oe,{xstyle:F,...q}=I,Q={...q,style:oq(q.style)},ae=Te(Q,Se(F,nq.overflow(V?H?"auto":"hidden":"clip",V?Z?"auto":"hidden":"clip"))),J=t.owner!=="content",se=(!J||!N)&&i!=null&&typeof document<"u"&&document.activeElement===i,te={...ae.style},fe=a==="contain"&&j.inline.isScrollable,B=a==="contain"&&j.block.isScrollable,ee=k.inline,me=k.block;os(e,"inline")&&(te[ee==="x"?"overscrollBehaviorX":"overscrollBehaviorY"]=fe?"contain":"auto"),os(e,"block")&&(te[me==="x"?"overscrollBehaviorX":"overscrollBehaviorY"]=B?"contain":"auto");const pe=t.owner!=="content"?{role:t.role??"group","aria-label":t.label,tabIndex:J&&N?0:se?-1:void 0}:{};return{...ae,...pe,ref:T(ae.ref),style:te,"data-scroll-axis":e,"data-scrollable-inline":j.inline.isScrollable?"true":void 0,"data-scrollable-block":j.block.isScrollable?"true":void 0,"data-scroll-inline-start":j.inline.atStart?"true":void 0,"data-scroll-inline-end":j.inline.atEnd?"true":void 0,"data-scroll-block-start":j.block.atStart?"true":void 0,"data-scroll-block-end":j.block.atEnd?"true":void 0}},[e,T,t,k,y,a,j,s,i]),L=x.useCallback((I={})=>({...I,ref:E(I.ref),"data-scroll-content":""}),[E]);return{getViewportProps:z,getContentProps:L,state:j}}let Cp=0,$p=null;function lq(e){x.useEffect(()=>{if(!e)return;const{body:t}=document;if(Cp===0){const a=window.scrollX,s=window.scrollY,i=r$(t);$p={scrollX:a,scrollY:s,overflow:t.style.overflow,position:t.style.position,top:t.style.top,left:t.style.left,right:t.style.right,gutter:i},t.style.overflow="hidden",t.style.position="fixed",t.style.top=`-${s}px`,t.style.left="0",t.style.right="0",i.settle()}return Cp+=1,()=>{if(Cp-=1,Cp!==0||$p==null)return;const a=$p;$p=null,t.style.overflow=a.overflow,t.style.position=a.position,t.style.top=a.top,t.style.left=a.left,t.style.right=a.right,a.gutter.release(),window.scrollTo(a.scrollX,a.scrollY)}},[e])}let Xj=!1;typeof window<"u"&&requestAnimationFrame(()=>{Xj=!0});const cq={slideDown:{kKVMdj:"x1srr2gu x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},slideUp:{kKVMdj:"x1dvww92 x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},fadeIn:{kKVMdj:"xqcmdr3 x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},scaleIn:{kKVMdj:"x97zbip x1aquc0h",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0}};function uq(e="slideDown"){const[t]=x.useState(()=>Xj);return t?cq[e]:null}const dq=new Set(["text","password","email","number","search","tel","url","date","datetime-local","month","time","week"]),fq=new Set(["true","menu","listbox","tree","grid","dialog"]);function hq(e){if(e.getAttribute("role")==="combobox")return!0;const t=e.getAttribute("aria-haspopup");return t!=null&&fq.has(t)}function J1({containerRef:e,inputRef:t,disabled:a=!1}){const s=x.useCallback(()=>{const i=t.current;i!=null&&(i instanceof HTMLElement&&hq(i)?i.click():i instanceof HTMLInputElement&&dq.has(i.type)||i instanceof HTMLTextAreaElement?i.focus():i instanceof HTMLElement?i.click():"focus"in i&&i.focus())},[t]);return fm({containerRef:e,interactiveRef:t,onClick:s,disabled:a})}const pq={warning:"warning",error:"error",success:"success"},xq={warning:"@astryx.input.statusButton.warning",error:"@astryx.input.statusButton.error",success:"@astryx.input.statusButton.success"},mq={statusButton:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kkrTdU:"x1ypdohk x16khyan",kfzvcC:"x67bb7w",kaIpWk:"xjspbzw",kInvED:"x7s97pk",$$css:!0}};function Zj({status:e,statusVariant:t="attached",isInGroup:a=!1,size:s="md"}){const i=pn(),u=t==="tooltip"&&!!e?.message,[d,f]=x.useState(void 0),g=Os({placement:"above",isEnabled:u,isOpen:d}),y=x.useCallback(()=>{f(void 0)},[]),b=x.useCallback(()=>{typeof window>"u"||typeof window.matchMedia!="function"||!window.matchMedia("(hover: none)").matches||f(w=>w!==!0)},[]);if(x.useEffect(()=>{if(d!==!0)return;const w=v=>{v.key==="Escape"&&f(void 0)};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[d]),!(!!e&&!a&&t!=="detached"))return{statusIcon:null,describedBy:void 0};const C=p.jsx(jt,{icon:pq[e.type],size:s,color:e.type,...Ee("input-status-icon",{size:s,status:e.type})});return u?{statusIcon:p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",ref:g.ref,"aria-label":i(xq[e.type]),"aria-describedby":g.describedBy,onClick:b,onBlur:y,...Se(Io.focusVisible,mq.statusButton),children:C}),g.renderTooltip(e.message)]}),describedBy:g.describedBy}:{statusIcon:C,describedBy:void 0}}function gq(e,t=!1){const a=x.useCallback(c=>{const u=e.current?.firstElementChild;u instanceof HTMLElement&&Object.assign(u.style,c?g9:y9)},[e]),s=x.useCallback(c=>{if(t)return;const u=c.target;u instanceof HTMLElement&&!u.matches(":focus-visible")||a(!0)},[t,a]),i=x.useCallback(()=>a(!1),[a]);return x.useMemo(()=>({focusProps:{onFocus:s,onBlur:i}}),[s,i])}const Rf=Ra({direction:"vertical"});Rf.displayName="FormLayoutContext";const N0={label:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kMv6JI:"x9ynric",kGuDYH:"xcr08ib",kLWn49:"x1kq96og",k63SB2:"x1e4wzip",kMwMTN:"xv1l7n4",kkrTdU:"x1ypdohk x16khyan",$$css:!0},labelDisabled:{kMwMTN:"xnbbluu",kkrTdU:"xt0e3qv",$$css:!0},srOnly:{ksu8eU:"xng3xce",kMcinP:"xzpqnlu",kZKoxP:"xjm9jq1",kLqNvP:"x1o0tod",kogj98:"xkdpibf",kVQacm:"xb3r6kr",kmVPX3:"x1717udv",kfzvcC:"x47corl",kVAEAm:"x10l6tqk",k87sOh:"x13vifvy",kfSwDN:"x87ps6o",khDVqt:"xuxw1ft",kzqmXN:"x1i1rx1s",$$css:!0}};function mm({label:e,inputID:t,labelID:a,isGroupLabel:s=!1,isLabelHidden:i=!1,isDisabled:c=!1,isOptional:u=!1,isRequired:d=!1,labelIcon:f,labelTooltip:g,description:y,descriptionID:b,className:k,style:C,xstyle:w,ref:v,...S}){const T=pn(),{defaultOptionality:E}=x.use(Rf),z=u&&E!=="optional"?T("@astryx.field.optional"):d&&E!=="required"?T("@astryx.field.required"):null,L=s?"span":"label",I=!s&&t!=null,N=x.useRef(null),D=x.useMemo(()=>({get current(){return t==null?null:N.current?.ownerDocument.getElementById(t)??null},set current(V){}}),[t]),P=J1({containerRef:N,inputRef:D,disabled:!I}),K=p.jsxs(p.Fragment,{children:[f&&Is(f,{size:"sm",color:"inherit"}),e,z&&p.jsxs("span",{className:"x1sodnla x141an7d x1ltkj2j xv1l7n4",children:[p.jsx("span",{"aria-hidden":"true",children:" ∙ "}),z]}),g&&p.jsx(Bo,{content:g,placement:"above",children:p.jsx(jt,{icon:"info",size:"sm",color:"inherit"})})]}),oe=p.jsx(L,{ref:v,id:a,htmlFor:s?void 0:t,...S,...Te(Ee("field-label"),Se(N0.label,c&&N0.labelDisabled,i&&N0.srOnly,w),k,C),children:K});return y?p.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf"},1:{className:"xdt5ytf xjp7ctv"}}[!!i<<0],children:[oe,p.jsx("span",{ref:I?N:void 0,id:b,...I?P:void 0,...{0:{className:"x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4"},2:{className:"x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 x1ypdohk x16khyan"},1:{className:"x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 xng3xce xzpqnlu xjm9jq1 x1o0tod xkdpibf xb3r6kr x1717udv x47corl x10l6tqk x13vifvy x87ps6o xuxw1ft x1i1rx1s"},3:{className:"x9ynric x141an7d x1ltkj2j x1sodnla xv1l7n4 x1ypdohk x16khyan xng3xce xzpqnlu xjm9jq1 x1o0tod xkdpibf xb3r6kr x1717udv x47corl x10l6tqk x13vifvy x87ps6o xuxw1ft x1i1rx1s"}}[!!I<<1|!!i<<0],children:y})]}):oe}mm.displayName="FieldLabel";function Qj(e,t){const a=$f();x.useEffect(()=>{e&&a(e,t==="error"?"assertive":"polite")},[a,e,t])}const yq={warning:"warning",error:"error",success:"success"},L0={base:{kMv6JI:"x9ynric",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0},attached:{keoZOQ:"x3dbumh",kLKAdn:"xdgtoc0",kGO01o:"x1wesfrj",kg3NbH:"xf314gf",kVL7Gh:"xquck67",kT0f0o:"x14i3lts",kfzvcC:"x47corl",$$css:!0},detached:{keoZOQ:"xcsaf9d",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kaIpWk:"xh6dtrn",$$css:!0}},bq={warning:{kWkggS:"x24i8r5",kMwMTN:"xdhq94a",$$css:!0},error:{kWkggS:"x1pritpl",kMwMTN:"x1joocv1",$$css:!0},success:{kWkggS:"xu13z74",kMwMTN:"xltfdvo",$$css:!0}};function gm({ref:e,type:t,message:a,id:s,variant:i="attached",xstyle:c,className:u,style:d,...f}){const g=uq("slideDown");return Qj(a,t),p.jsx("div",{ref:e,id:s,...f,...Te(Ee("field-status",{type:t,variant:i}),Se(L0.base,g,i==="attached"?L0.attached:L0.detached,bq[t],c),u,d),children:i==="detached"?p.jsxs("span",{className:"x78zum5 x1cy8zhl xzye2dw",children:[p.jsx("span",{className:"x3nfvp2 x6s0dn4 x14o5nre x2lah0s",children:p.jsx(jt,{icon:yq[t],size:"sm",color:"inherit",...Ee("field-status-icon",{type:t})})}),p.jsx("span",{children:a})]}):a})}gm.displayName="FieldStatus";const jp={container:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kHBbk8:"xc8icb0",k7Eaqz:"xeuugli",$$css:!0},containerGap:{kOIVth:"xzye2dw",$$css:!0},horizontalLabels:{k1xSpc:"xjp7ctv",$$css:!0},attachedStatusLayer:{kVAEAm:"x1n2onr6",kY2c9j:"x8knxv4",$$css:!0}},vq={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function Ru({label:e,isLabelHidden:t=!1,description:a,inputID:s,labelID:i,isGroupLabel:c=!1,descriptionID:u,isOptional:d=!1,isRequired:f=!1,isDisabled:g=!1,labelIcon:y,status:b,labelTooltip:k,statusVariant:C="attached",width:w,xstyle:v,children:S,className:T,style:E,ref:j,...$}){const{direction:z}=x.use(Rf),L=z==="horizontal-labels",I=u??(a?`${s}-desc`:void 0),N=b?.messageID??(b?.message?`${s}-status`:void 0);Ll("Field","isOptional and isRequired are mutually exclusive. isOptional takes precedence.",d&&f);const D=p.jsx(mm,{label:e,inputID:s,labelID:i,isGroupLabel:c,isLabelHidden:t,isDisabled:g,isOptional:d,isRequired:f,labelIcon:y,labelTooltip:k,description:L?void 0:a,descriptionID:L?void 0:I});Qj(C==="tooltip"?b?.message:void 0,b?.type);const P=b?.message&&C!=="tooltip"?p.jsx(gm,{type:b.type,message:b.message,id:N,variant:C,xstyle:C==="attached"?jp.attachedStatusLayer:void 0}):null;return L?p.jsxs("div",{ref:j,...Te(Ee("field",{layout:"horizontal-labels"}),Se(jp.horizontalLabels,v),T,E),...$,children:[p.jsx("div",{className:"x1enrzb7",children:D}),p.jsxs("div",{className:"x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq",children:[a&&p.jsx(tt,{type:"supporting",display:"block",id:I,children:a}),S,P]})]}):p.jsxs("div",{ref:j,...Te(Ee("field"),Se(jp.container,!t&&jp.containerGap,w!=null&&vq.width(w),v),T,E),...$,children:[D,C==="attached"?p.jsxs("div",{className:"x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq",children:[S,P]}):p.jsxs(p.Fragment,{children:[S,P]})]})}Ru.displayName="Field";const vu={base:{kB7OPa:"x9f619",kVAEAm:"x1n2onr6",kY2c9j:"x1vjfegm",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"xvy26l8 x6q1khz","--_field-radius":"x1832zxr",kaIpWk:"xvdfih8",kWkggS:"x10xzikg",k1ekBW:"x12zzom9",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kGVxlE:"x1gnnqk1 x1xqjsvb xuihb5h",kI3sdo:"x1a2a7pz",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",kVAM5u:"xvy26l8",kGVxlE:"x1gnnqk1",$$css:!0}},ev={warning:{kVAM5u:"x8wg1ba",$$css:!0},error:{kVAM5u:"x1ofxpqo",$$css:!0},success:{kVAM5u:"x16m2moy",$$css:!0}},tv={warning:{kGVxlE:"x1gnnqk1 x9156jc",$$css:!0},error:{kGVxlE:"x1gnnqk1 x1bgmis8",$$css:!0},success:{kGVxlE:"x1gnnqk1 x8wp45d",$$css:!0}},Jj={warning:{kVAM5u:"x8wg1ba xa1yw2k",$$css:!0},error:{kVAM5u:"x1ofxpqo xk2sxw7",$$css:!0},success:{kVAM5u:"x16m2moy xyq33ac",$$css:!0}},kq={button:{kZKoxP:"x1qx5ct2",kmuXW:"x2lah0s",kVAEAm:"x1n2onr6","--_input-clear-hit-inset":"xtoycft x181bpwf","--_input-clear-hit-content":"xqxtgf4 xp8r40j",k5JduY:"xh3pasq",kwXMNM:"x1j6awrg",kv0HGH:"xht581f",$$css:!0}};function eT({label:e,onClick:t,onPointerDown:a,onClickCapture:s,xstyle:i,iconClassName:c}){const{className:u}=Ee("input-clear-icon"),{className:d}=Ee("input-clear-button");return p.jsx(Bt,{variant:"ghost",size:"sm",label:e,tooltip:e,className:d,icon:p.jsx(jt,{icon:"close",size:"sm",color:"secondary",className:c!=null?`${u} ${c}`:u}),onPointerDown:f=>{f.preventDefault(),a?.(f)},onMouseDown:f=>f.preventDefault(),onClick:t,onClickCapture:s,isIconOnly:!0,xstyle:[kq.button,i]})}function ym(e){return eT(e)}function wq(e){return eT(e)}ym.displayName="InputClearButton";const nv={inGroup:{kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",kZKoxP:"x5yr21d",keTefX:"xd10s4z x1pwwqoy",krdFHd:"x15mokao x8eehn2",kVL7Gh:"xbiv7yw x1xrp5p4",kfmiAY:"x1ga7v0g x149bkfe",kT0f0o:"x16uus16 x1ursds5",kXnDq0:"x1rm9qnc",$$css:!0}};function Af({isRequired:e=!1,isOptional:t=!1}){const{defaultOptionality:a}=x.use(Rf);return!t&&(e||a==="required")}const rv=Ra(null);rv.displayName="InputGroupContext";function bm(){return x.use(rv)}const Sq="`xstyle`, `className`, and `style` are not supported on Field-composed inputs and were ignored. Style the field with `containerXstyle`/`containerClassName`/`containerStyle` and the control box with `controlXstyle`/`controlClassName`/`controlStyle`. `astryx upgrade` rewrites existing usage.",Eq="`containerXstyle`/`containerClassName`/`containerStyle` have no effect here because no Field box renders (inside InputGroup or a `horizontal-labels` FormLayout). Inside InputGroup, style the InputGroup.";function vm(e,t,a){const s=bm(),{direction:i}=x.use(Rf),c=s==null&&i!=="horizontal-labels",u=t,d=u.xstyle!=null||u.className!=null||u.style!=null;let f=t;if(d){const{xstyle:C,className:w,style:v,...S}=u;f=S}Ll(e,Sq,d);const{containerXstyle:g,containerClassName:y,containerStyle:b}=a,k=g!=null||y!=null||b!=null;return Ll(e,Eq,k&&!c),{rest:f,hasFieldBox:c,container:c?{xstyle:g,className:y,style:b}:{}}}const Cq={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function Ls({type:e="text",label:t,isLabelHidden:a=!1,description:s,isOptional:i=!1,isRequired:c=!1,isDisabled:u=!1,isReadOnly:d=!1,disabledMessage:f,startIcon:g,status:y,statusVariant:b="attached",size:k,onChange:C,changeAction:w,isLoading:v=!1,value:S,placeholder:T,labelTooltip:E,hasClear:j=!1,hasAutoFocus:$=!1,htmlName:z,onEnter:L,onKeyDown:I,width:N,containerXstyle:D,containerClassName:P,containerStyle:K,controlXstyle:oe,controlClassName:V,controlStyle:H,ref:Z,id:F,"aria-describedby":q,...Q}){const{rest:ae,container:J}=vm("TextInput",Q,{containerXstyle:D,containerClassName:P,containerStyle:K}),se=pn(),te=Af({isRequired:c,isOptional:i}),fe=Cu(k,"md"),B=x.useId(),ee=F??B,me=x.useId(),pe=x.useId(),ve=x.useId(),ye=x.useRef(null),Oe=x.useRef(null),ie=bm(),[,$e]=x.useTransition(),[Pe,He]=x.useOptimistic(S),Ze=v||Pe!==S,Fe=u&&!!f,Ie=Os({placement:"above",focusTrigger:"always",isEnabled:Fe}),{statusIcon:at,describedBy:wt}=Zj({status:y,statusVariant:b,isInGroup:!!ie}),{ariaLabelledBy:Nt,ariaDescribedBy:gt}=i1(me,[s?pe:null,!ie&&b!=="tooltip"&&y?.message?ve:null,wt,Fe?Ie.describedBy:null],ie),st=xt=>{if(u||d)return;const Tt=xt.target.value;C?.(Tt,xt),w&&!xt.defaultPrevented&&$e(async()=>{He(Tt),await w(Tt,xt)})},Lt=x.useCallback(xt=>{C?.("",null),!xt||xt.detail===0?ye.current?.focus():requestAnimationFrame(()=>{ye.current?.focus({preventScroll:!0})})},[C]),{onClick:nt,onMouseUp:vt}=J1({containerRef:Oe,inputRef:ye,disabled:u}),St=p.jsxs("div",{ref:xt=>{Oe.current=xt,Ie.ref(xt)},onClick:nt,onMouseUp:vt,...Te(Ee("text-input",{size:fe,status:y?.type??null,disabled:u?"disabled":null,readonly:d?"readonly":null}),Se(vu.base,Cq[fe],u&&vu.disabled,y&&ev[y.type],y&&!u&&tv[y.type],y&&Jj[y.type],ie&&nv.inGroup,oe),V,H),children:[g&&Is(g,{size:"sm",color:"secondary"}),ie&&p.jsx(lo,{id:me,children:t}),p.jsx("input",{...ae,ref:Zn(Z,ye),id:ee,name:u?void 0:z,type:e,value:Pe,onChange:st,onKeyDown:L||I?xt=>{xt.key==="Enter"&&!yf(xt.nativeEvent)&&L?.(),I?.(xt)}:void 0,placeholder:T,disabled:u&&!Fe,"aria-disabled":Fe?"true":void 0,readOnly:d||Fe||void 0,autoFocus:$,"data-autofocus":$||void 0,"aria-describedby":[q,gt].filter(Boolean).join(" ")||void 0,"aria-required":te?"true":void 0,"aria-invalid":y?.type==="error"?"true":void 0,"aria-busy":Ze||void 0,"aria-labelledby":Nt,...{0:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5"},1:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5 xt0e3qv"}}[!!u<<0]}),j&&S!==""&&!u&&!d&&p.jsx(ym,{label:se("@astryx.textInput.clearLabel",{label:t}),onClick:Lt}),Ze&&p.jsx(Fo,{size:"sm"}),at]});return ie?p.jsxs(p.Fragment,{children:[St,Fe&&Ie.renderTooltip(f)]}):p.jsxs(Ru,{...J,label:t,isLabelHidden:a,description:s,inputID:ee,descriptionID:s?pe:void 0,isOptional:i,isRequired:c,isDisabled:u,status:y?{type:y.type,message:y.message,messageID:y.message?ve:void 0}:void 0,statusVariant:b,labelTooltip:E,width:N,children:[St,Fe&&Ie.renderTooltip(f)]})}Ls.displayName="TextInput";const $q={firecrawl:"fetchers.firecrawl"};function tT(e){return $q[e]}const jq=["firecrawl"],lf=Ra(null);lf.displayName="ListContext";const D0={list:{kogj98:"x1ghz6dp",kZCmMZ:"x1c1uobl",kH6xsr:"x3ct3a4",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x1lsbc85",kXHlph:"x101abm8",$$css:!0},withDividers:{kOIVth:"xxhr3t",$$css:!0},withCounter:{kt6KFK:"xif0320",$$css:!0}},Tq={kt6KFK:"x1khind5",$$css:!0},Rq={counterStart:e=>[Tq,{"--x-counterReset":`astryx-list ${e}`!=null?`astryx-list ${e}`:void 0}]};function cf({children:e,density:t="balanced",hasDividers:a=!1,edgeCompensation:s,header:i,listStyle:c="none",start:u,xstyle:d,className:f,style:g,"data-testid":y,ref:b,...k}){const C=x.useId(),w=c==="decimal",v=w?"ol":"ul",S=x.useMemo(()=>({density:t,hasDividers:a,listStyle:c,edgeCompensation:s}),[t,a,c,s]),T=p.jsx(v,{ref:b,...k,"data-testid":y,...i!=null?{"aria-labelledby":C}:null,...w&&u!=null&&u!==1?{start:u}:{},role:"list",...Te(Ee("list",{density:t,listStyle:c}),Se(D0.list,a&&D0.withDividers,c!=="none"&&(u!=null&&u!==1?Rq.counterStart(u-1):D0.withCounter),d),f,g),children:e});return i==null?p.jsx(lf,{value:S,children:T}):p.jsx(lf,{value:S,children:p.jsxs("div",{className:"x78zum5 xdt5ytf",children:[p.jsx("div",{id:C,className:"x1p37lm5",children:i}),T]})})}cf.displayName="List";const Aq={x1odsvnm:"x1odsvnm",$$css:!0},No={box:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kaIpWk:"xx3sua9",k1ekBW:"xts7igz",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},unchecked:{kMwMTN:"xqwr325",kVAM5u:"xvy26l8 xilc7fp",kWkggS:"x10xzikg xeultfy",$$css:!0},checked:{kMwMTN:"x17wrial",kVAM5u:"xad5do x1ozl1p1",kWkggS:"x1ewilqj x17srpfb",$$css:!0},disabled:{kSiTet:"xbyyjgo",kVAM5u:"x14i3s5s x61roa7",$$css:!0},disabledUnchecked:{kWkggS:"xwmxj5m xqxnq6d",$$css:!0},checkmark:{k1xSpc:"x1s85apg",kMwMTN:"x17wrial xs5hli",$$css:!0},checkmarkVisible:{k1xSpc:"x1lliihq",$$css:!0},indeterminateMark:{k1xSpc:"x1s85apg",kWkggS:"x1azo05 xwvh9j7",kaIpWk:"xjspbzw",$$css:!0},indeterminateMarkVisible:{k1xSpc:"x1lliihq",$$css:!0}},Mq={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},zq={sm:{kzqmXN:"xsmyaan",kZKoxP:"x1kpxq89",$$css:!0},md:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",$$css:!0}},Nq={sm:{kzqmXN:"x1fsd2vl",kZKoxP:"x36qwtl",$$css:!0},md:{kzqmXN:"xsmyaan",kZKoxP:"x36qwtl",$$css:!0}};function nT({state:e,size:t="md",isDisabled:a=!1,children:s,ref:i,className:c,style:u,xstyle:d,...f}){const g=e==="checked",y=e==="indeterminate",b=g||y;return p.jsx("span",{...f,ref:i,"aria-hidden":"true",...Te(Ee("checkbox-indicator",{size:t,checked:g?"checked":y?"indeterminate":null,disabled:a?"disabled":null}),Se(No.box,Mq[t],b?No.checked:No.unchecked,a&&No.disabled,a&&!b&&No.disabledUnchecked,d),c,u),children:Zr(s)?s:p.jsxs(p.Fragment,{children:[p.jsx("svg",{viewBox:"0 0 10 10",...Te(Ee("checkbox-indicator-check",{size:t}),Se(No.checkmark,zq[t],g&&No.checkmarkVisible)),children:p.jsx("path",{d:"M8.5 2.5L4 7.5L1.5 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),p.jsx("span",{...Te(Ee("checkbox-indicator-dash",{size:t}),Se(No.indeterminateMark,Nq[t],y&&No.indeterminateMarkVisible))})]})})}nT.displayName="CheckboxIndicator";const Lq={sm:"sm",md:"sm"},O0={slot:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kzqmXN:"xcdlrvm",kZKoxP:"x1l36t39",$$css:!0},enabled:{kMwMTN:"xqwr325",$$css:!0},disabled:{kMwMTN:"xqa6c3m",$$css:!0}};function rT({state:e,size:t="md",isDisabled:a=!1,children:s,ref:i,className:c,style:u,xstyle:d,...f}){const g=e==="checked";return Zr(s)?p.jsx("span",{...f,ref:i,"aria-hidden":"true",...Te(Se(O0.slot,a?O0.disabled:O0.enabled,d),c,u),children:s}):g?p.jsx(jt,{...f,"aria-hidden":"true",icon:"check",size:Lq[t],color:a?"disabled":"accent",xstyle:d,className:c,style:u}):null}rT.displayName="CheckIndicator";const Vc={circle:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kaIpWk:"xjspbzw",k1ekBW:"xts7igz",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},unchecked:{kVAM5u:"xvy26l8 xilc7fp",kWkggS:"x10xzikg xeultfy",$$css:!0},checked:{kVAM5u:"xad5do x1ozl1p1",kWkggS:"x1ewilqj x17srpfb",$$css:!0},disabled:{kSiTet:"xbyyjgo",kVAM5u:"x14i3s5s x61roa7",$$css:!0},disabledUnchecked:{kWkggS:"xwmxj5m xqxnq6d",$$css:!0},dot:{kaIpWk:"xjspbzw",kWkggS:"x1azo05 xwvh9j7",$$css:!0}},Dq={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},Oq={sm:{kzqmXN:"x1xc55vz",kZKoxP:"xdk7pt",$$css:!0},md:{kzqmXN:"x1fsd2vl",kZKoxP:"x170jfvy",$$css:!0}};function aT({state:e,size:t="md",isDisabled:a=!1,children:s,ref:i,className:c,style:u,xstyle:d,...f}){const g=e!=="unchecked";return p.jsx("span",{...f,ref:i,"aria-hidden":"true",...Te(Ee("radio-indicator",{size:t,checked:g?"checked":null,disabled:a?"disabled":null}),Se(Vc.circle,Dq[t],g?Vc.checked:Vc.unchecked,a&&Vc.disabled,a&&!g&&Vc.disabledUnchecked,d),c,u),children:Zr(s)?s:g&&p.jsx("span",{...Te(Ee("radio-indicator-dot",{size:t}),Se(Vc.dot,Oq[t]))})})}aT.displayName="RadioIndicator";const Iq={check:rT,checkbox:nT,radio:aT};function _q(e){return e==null?null:typeof e=="string"?Jx(e):e}function Pq(e){return _q(e)?.indicators??null}function Bq(e,t){return Pq(t)?.[e]??Iq[e]}function sT(e){return Bq(e,Q4())}const km=Ra(null);km.displayName="CheckboxListContext";const ml={container:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",$$css:!0},containerLabelHidden:{kOIVth:"xxhr3t",$$css:!0},checkboxWrapper:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kHBbk8:"xc8icb0",$$css:!0},indicatorPressOverlay:{k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",kv0HGH:"xarstr8",kUfP38:"xtb6wbx",kloYau:"x2q1x1w",ks3ayO:"xyhc2n1 xzywxsk x1gybruy",kNctxI:"x1ikgzpo xsozn46",$$css:!0},input:{kVAEAm:"x10l6tqk",k87sOh:"xwa60dl",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",kSiTet:"xg01cxk",kkrTdU:"x1ypdohk x16khyan",kY2c9j:"x1vjfegm",$$css:!0},inputCoarse:{kjFi6P:"xkagaj0",kHzOjL:"x80b3aj",$$css:!0},inputDisabled:{kkrTdU:"xt0e3qv",$$css:!0}},kE={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},Fq={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function wm({label:e,isLabelHidden:t=!1,description:a,onChange:s,changeAction:i,isLoading:c=!1,value:u,isDisabled:d=!1,htmlName:f,disabledMessage:g,isReadOnly:y=!1,isOptional:b=!1,isRequired:k=!1,size:C="md",onFocus:w,onBlur:v,labelIcon:S,status:T,width:E,xstyle:j,className:$,style:z,ref:L,"aria-describedby":I,...N}){const D=Ka(),P=x.useId(),K=x.useId(),oe=x.useId(),V=Af({isRequired:k,isOptional:b}),[,H]=x.useTransition(),[Z,F]=x.useOptimistic(u),q=c||Z!==u,Q=d&&!!g,ae=x.use(km),J=d&&(Q||(ae?.hasDisabledMessage??!1)),se=Os({placement:"above",focusTrigger:"always",isEnabled:Q}),te=sT("checkbox"),fe=x.useRef(null),{focusProps:B}=gq(fe,d),ee=Z==="indeterminate",me=Z===!0,pe=x.useCallback(Oe=>{Oe&&(Oe.indeterminate=ee)},[ee]),ve=[];I&&ve.push(I),a&&ve.push(K),T?.message&&ve.push(oe),Q&&ve.push(se.describedBy);const ye=ve.length>0?ve.join(" "):void 0;return p.jsxs("div",{...Te(Ee("checkbox-input",{size:C}),Se(E!=null&&Fq.width(E),j),$,z),children:[p.jsxs("div",{ref:Oe=>{se.interactionRef(Oe)},...d?void 0:D,...Se(ml.container,t&&ml.containerLabelHidden,!d&&Aq,!d&&Nr.pressedAlpha),children:[p.jsxs("div",{...Se(ml.checkboxWrapper,kE[C],!d&&ml.indicatorPressOverlay),...B,children:[p.jsx("input",{...N,ref:Zn(L,pe,se.positionRef),id:P,type:"checkbox",name:d?void 0:f,checked:me,disabled:d&&!J,"aria-disabled":J?"true":void 0,form:J?"":void 0,readOnly:y,required:k,"aria-required":V?"true":void 0,onChange:Oe=>{if(d||q||y)return;const ie=Oe.target.checked;s?.(ie,Oe),i&&!Oe.defaultPrevented&&H(async()=>{F(ie),await i(ie,Oe)})},onFocus:w,onBlur:v,"aria-readonly":y||void 0,"aria-describedby":ye,"aria-invalid":T?.type==="error"?!0:void 0,"aria-busy":q||void 0,...Se(ml.input,io.centerInline("-50%"),ml.inputCoarse,kE[C],d&&ml.inputDisabled)}),p.jsx("span",{ref:fe,className:"xjp7ctv",children:p.jsx(te,{state:ee?"indeterminate":me?"checked":"unchecked",size:C,isDisabled:d,children:q?p.jsx(Fo,{size:"sm",shade:"inherit"}):null})})]}),p.jsx("div",{className:"x78zum5 xdt5ytf",children:p.jsx(mm,{...Ee("checkbox-label"),label:e,inputID:P,isLabelHidden:t,isDisabled:d,isOptional:b,isRequired:k,labelIcon:S,description:a,descriptionID:K})})]}),T?.message&&p.jsx(gm,{type:T.type,message:T.message,id:oe,variant:"detached"}),Q&&se.renderTooltip(g)]})}wm.displayName="CheckboxInput";const av=x.createContext(null);av.displayName="ItemDescriptionContext";const qq=x.lazy(async()=>kf(()=>import("./ItemSwipeLayer-C8uG5Wte.js"),[])),Hq=new Set(["option","tab","row","gridcell","columnheader","rowheader","treeitem"]),Uq=new Set(["listitem"]),zr={root:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj","--_item-inset-inline":"xw1s368",kg3NbH:"xaip428",kVAEAm:"x1n2onr6",kB7OPa:"x9f619",k9WMMc:"x1yc453h",kaIpWk:"xh6dtrn",$$css:!0},alignStart:{kGNEyG:"x1cy8zhl",$$css:!0},interactive:{kkrTdU:"x1ypdohk x16khyan",k1ekBW:"x15406qy",kIyJzY:"xkvfbh3",kAMwcw:"xlr8y92",$$css:!0},highlighted:{kWkggS:"x1lmrjuc",$$css:!0},selected:{kWkggS:"xgcxg3y",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kfzvcC:"x47corl",$$css:!0},linkRoot:{kMwMTN:"x1heor9g",kybGjl:"x1hl2dhg",$$css:!0},inlineLabel:{kmuXW:"x2lah0s",$$css:!0},inlineDescription:{kmuXW:"xs83m0k",k7Eaqz:"xeuugli",$$css:!0},label:{kMwMTN:"x5tbw38",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},labelSingleTruncate:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",$$css:!0},labelMultiTruncate:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0},description:{kMwMTN:"x1gb3s7i",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0},descriptionSingleTruncate:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",$$css:!0},descriptionMultiTruncate:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0},swipeRoot:{kHBbk8:"xc8icb0",kFalU9:"xx69xxh",k3aq6I:"x1kncwj0",k1ekBW:"xuo13n2",kIyJzY:"x15p14ac",kAMwcw:"x158wxwp",$$css:!0}},wE={lineClamp:e=>[{kJFfOR:e!=null?"x1yhjpo9":e,$$css:!0},{"--x-WebkitLineClamp":e??void 0}]},Vq={compact:{k8WAf4:"xu0wf1k",$$css:!0},balanced:{k8WAf4:"xce4md1",$$css:!0},spacious:{k8WAf4:"x8o8v82","--_item-inset-inline":"x1ytau7y",$$css:!0}};function Mf({as:e="div",marker:t,startContent:a,label:s,description:i,endContent:c,align:u="center",density:d="balanced",labelLines:f,descriptionLines:g,layout:y="stacked",onClick:b,interactiveRef:k,href:C,target:w,rel:v,isHighlighted:S=!1,isSelected:T=!1,isDisabled:E=!1,swipeActions:j,swipeBehavior:$="reveal",xstyle:z,className:L,style:I,ref:N,role:D,...P}){const K=Ka(),oe=$u(),V=k!=null,H=x.useRef(null),{onClick:Z}=fm({containerRef:H,interactiveRef:k??void 0,disabled:E});Ll("Item","`interactiveRef` is mutually exclusive with `onClick`/`href`. In delegation mode the row only forwards clicks to the referenced control, so `onClick`/`href` are ignored. Drop one of them.",V&&(b!=null||C!=null));const F=b!=null||C!=null||V,{target:q,rel:Q}=c$(w,v),ae=D!=null,J=typeof e!="string"&&C!=null,se=j?.leading??[],te=j?.trailing??[],fe=j!=null&&(se.length>0||te.length>0)&&!E&&!V&&!J&&(D==null||Uq.has(D));Ll("Item",'`swipeBehavior="commit"` fires only the outermost entry of a side; the other entries have no touch path. Give a committing side one entry, or use `swipeBehavior="reveal"`.',fe&&$==="commit"&&(se.length>1||te.length>1));const B=x.useRef(null),ee=x.useRef(null),me=x.useCallback(nt=>{ee.current=nt},[]),pe=J?{href:E?void 0:C,target:E?void 0:q,rel:E?void 0:Q}:null,ve=D!=null&&Hq.has(D),ye=x.useId(),Oe=Zr(i),ie=typeof s=="string",$e=typeof i=="string",Pe=f!=null?f===1?zr.labelSingleTruncate:zr.labelMultiTruncate:ie?zr.labelSingleTruncate:null,He=y==="inline"&&i!=null,Ze=g!=null?g===1?zr.descriptionSingleTruncate:zr.descriptionMultiTruncate:$e||He?zr.descriptionSingleTruncate:null,Fe=p.jsxs(p.Fragment,{children:[p.jsx("span",{...Se(zr.label,He&&zr.inlineLabel,Pe,f!=null&&f>1&&wE.lineClamp(f)),children:s}),i!=null&&p.jsx("span",{id:Oe?ye:void 0,...Se(zr.description,He&&zr.inlineDescription,Ze,g!=null&&g>1&&wE.lineClamp(g)),children:i})]}),Ie=nt=>{E||nt.target.closest("button, a, input, select, textarea")||b?.(nt)},at=p.jsxs(p.Fragment,{children:[t,a!=null&&p.jsx("span",{className:"x3psx0u x78zum5",children:a}),ae||V?p.jsx("span",{...{0:{className:"x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h"},2:{className:"x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9"},1:{className:"x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo"},3:{className:"x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"}}[!!He<<1|!!E<<0],children:Fe}):C!=null&&!J?p.jsx(oe,{href:C,target:q,rel:Q,"aria-disabled":E||void 0,tabIndex:E?-1:void 0,...{0:{className:"xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz"},2:{className:"xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9"},1:{className:"xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz xbyyjgo"},3:{className:"xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1hl2dhg x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"}}[!!He<<1|!!E<<0],children:Fe}):b!=null?p.jsx("button",{type:"button",onClick:b,disabled:E,...{0:{className:"xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz"},2:{className:"xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9"},1:{className:"xmper1u x16khyan x1heor9g x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h x1a2a7pz xbyyjgo"},3:{className:"xmper1u x16khyan x1heor9g x78zum5 x98rzlu xeuugli x1yc453h x1a2a7pz x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"}}[!!He<<1|!!E<<0],children:Fe}):p.jsx("span",{...{0:{className:"x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h"},2:{className:"x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9"},1:{className:"x78zum5 xdt5ytf x98rzlu xeuugli x1yc453h xbyyjgo"},3:{className:"x78zum5 x98rzlu xeuugli x1yc453h x1q0g3np x6s0dn4 x1lfs0n9 xbyyjgo"}}[!!He<<1|!!E<<0],children:Fe}),c!=null&&p.jsx("span",{...{0:{className:"x3psx0u x78zum5 xvc5jky"},1:{className:"x3psx0u x78zum5 xvc5jky xbyyjgo"}}[!!E<<0],children:c})]}),wt=Zn(N,H),Nt=Zn(V?wt:N,fe?B:void 0),gt=V?Z:ae?b:F?Ie:void 0,st=fe&&gt!=null?nt=>{ee.current?.shouldSuppressClick()!==!0&&gt(nt)}:gt,Lt=fe?{onPointerDown:nt=>ee.current?.handlers.onPointerDown(nt),onPointerMove:nt=>ee.current?.handlers.onPointerMove(nt),onPointerUp:nt=>ee.current?.handlers.onPointerUp(nt),onPointerCancel:nt=>ee.current?.handlers.onPointerCancel(nt),onClickCapture:nt=>ee.current?.handlers.onClickCapture(nt),onKeyDown:nt=>ee.current?.handlers.onKeyDown(nt)}:void 0;return p.jsxs(e,{ref:Nt,...P,...Lt,...pe,"aria-selected":ve&&T||void 0,"aria-current":P["aria-current"]??(T&&!ve?!0:void 0),"aria-disabled":E||void 0,...F?K:void 0,...Te(Ee("item",{density:d,align:u}),Xn.focusWithin(zr.root,Vq[d],u==="start"&&zr.alignStart,F&&zr.interactive,F&&Nr.backgroundColor,J&&zr.linkRoot,S&&zr.highlighted,T&&zr.selected,E&&!ae&&zr.disabled,fe&&zr.swipeRoot,z),L,I),role:D,onClick:st,children:[p.jsx(av,{value:Oe?ye:null,children:at}),fe&&p.jsx(x.Suspense,{fallback:null,children:p.jsx(qq,{rootRef:B,onBridge:me,leading:se,trailing:te,behavior:$})})]})}Mf.displayName="Item";const I0={withCounter:{kAmcRD:"xfrknyr",$$css:!0},inlineEdgeCompensation:{keTefX:"x1t1czy8",k71WvV:"x1cphv78",$$css:!0},withDivider:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",kx8K5S:"x1t1lzn6",$$css:!0}},$l={dot:{kzqmXN:"x1v4s8kt",kZKoxP:"xols6we",kaIpWk:"x16rqkct",kWkggS:"x19aspcf",$$css:!0},circle:{kzqmXN:"x1v4s8kt",kZKoxP:"xols6we",kaIpWk:"x16rqkct",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"xqcx1ss",kWkggS:"xjbqb8w",$$css:!0},square:{kzqmXN:"x1v4s8kt",kZKoxP:"xols6we",kWkggS:"x19aspcf",$$css:!0},number:{kSGwAc:"xoi2r2e",kmuXW:"x2lah0s",kMwMTN:"x1tgivj0",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",kzqmXN:"x12xnipv",$$css:!0},decimal:{kgeoSG:"xc2ndz5",$$css:!0},lowerAlpha:{kgeoSG:"x1mls8ih",$$css:!0},lowerRoman:{kgeoSG:"xdaf9gw",$$css:!0}},Gq={decimal:$l.decimal,"lower-alpha":$l.lowerAlpha,"lower-roman":$l.lowerRoman},Kq={noRadius:{kaIpWk:"x2u8bby",$$css:!0}};function zf({label:e,description:t,startContent:a,endContent:s,onClick:i,interactiveRef:c,href:u,target:d,rel:f,isDisabled:g=!1,isSelected:y=!1,xstyle:b,className:k,style:C,ref:w,...v}){const S=x.use(lf),T=S?.density??"balanced",E=S?.hasDividers??!1,j=S?.listStyle??"none",$=S?.edgeCompensation,z=j!=="none",L=j==="none"?null:S?.marker??j,I=L==null?void 0:S?.task,N=I!=null?p.jsx("span",{className:"xqcrz7y x78zum5 x2lah0s x1oms9s6",children:p.jsx(wm,{size:"sm",value:I.isChecked,label:I.label,isLabelHidden:!0,isReadOnly:!0})}):L==="disc"||L==="circle"||L==="square"?p.jsx("span",{className:"xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv",children:p.jsx("span",{...Se(L==="disc"?$l.dot:L==="circle"?$l.circle:$l.square)})}):L!=null?p.jsx("span",{...Se($l.number,Gq[L])}):null;return p.jsx(Mf,{as:"li",ref:w,marker:N,startContent:a,label:e,description:t,endContent:s,onClick:i,interactiveRef:c,href:u,target:d,rel:f,isDisabled:g,isSelected:y,density:T,xstyle:[z&&I0.withCounter,E&&I0.withDivider,E&&Kq.noRadius,$==="inline"&&I0.inlineEdgeCompensation,b],...Te(Ee("list-item"),{className:k,style:C}),...v})}zf.displayName="ListItem";const oT=[{labelKey:"settings.workspace",panels:[{id:"appearance",labelKey:"settings.appearance",descriptionKey:"settings.appearanceDescription",icon:H1},{id:"language",labelKey:"settings.languageRegion",descriptionKey:"settings.languageRegionDescription",icon:cm},{id:"advanced",labelKey:"settings.advanced",descriptionKey:"settings.advancedDescription",icon:n_}]},{labelKey:"settings.features",panels:[{id:"library",labelKey:"settings.library",descriptionKey:"settings.libraryDescription",icon:F1}]}],SE=oT.flatMap(e=>e.panels),Wq="appearance",Yq=[{id:"color-theme",titleKey:"settings.colorTheme",descriptionKey:"settings.colorThemeDescription",panel:"appearance",icon:H1},{id:"time-zone",titleKey:"settings.timezone",descriptionKey:"settings.timezoneDescription",panel:"language",icon:cm},{id:"time-format",titleKey:"settings.timeFormat",descriptionKey:"settings.timeFormatDescription",panel:"language",icon:g$},{id:"fetcher",titleKey:"settings.capturesFetcher",descriptionKey:"settings.capturesFetcherDescription",panel:"library",icon:x$},{id:"fetch-concurrency",titleKey:"settings.capturesConcurrency",descriptionKey:"settings.capturesConcurrencyDescription",panel:"library",icon:p$},{id:"export-data",titleKey:"settings.exportData",descriptionKey:"settings.exportDataDescription",panel:"advanced",icon:Eb},{id:"import-data",titleKey:"settings.importData",descriptionKey:"settings.importDataDescription",panel:"advanced",icon:Sb},{id:"download-skill",titleKey:"settings.downloadSkill",descriptionKey:"settings.downloadSkillDescription",panel:"advanced",icon:B1}];function iT(e){return SE.find(t=>t.id===e)??SE[0]}function Xq(e,t,a){return[a(e.titleKey),a(e.descriptionKey),a(iT(e.panel).labelKey)].some(s=>s.toLowerCase().includes(t))}const Zq={grid:{k1xSpc:"xrvj5dj",$$css:!0}},Qq={kJBjZk:"xhij9v2",$$css:!0},EE={templateColumns:e=>[{kumcoG:e!=null?"xqketvx":e,$$css:!0},{"--x-gridTemplateColumns":e??void 0}],autoRows:e=>[Qq,{"--x-gridAutoRows":`${e}px`!=null?`${e}px`:void 0}]},Jq={start:{kGNEyG:"x7a106z",$$css:!0},center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xpqajaz",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},eH={start:{kAPf3g:"x619ttb",$$css:!0},center:{kAPf3g:"x1o2pa38",$$css:!0},end:{kAPf3g:"x4xo5sw",$$css:!0},stretch:{kAPf3g:"xl4xnwh",$$css:!0}},tH={0:{kOIVth:"xsn7fz1",$$css:!0},1:{kOIVth:"xzye2dw",$$css:!0},2:{kOIVth:"x1txdalj",$$css:!0},3:{kOIVth:"xjcht0a",$$css:!0},4:{kOIVth:"x18g69wz",$$css:!0},5:{kOIVth:"x9mgr7n",$$css:!0},6:{kOIVth:"x1qh66ti",$$css:!0},8:{kOIVth:"x4t41sb",$$css:!0},10:{kOIVth:"x3hoi3v",$$css:!0},"0.5":{kOIVth:"x1lsbc85",$$css:!0},"1.5":{kOIVth:"x1s4dlld",$$css:!0}},nH={0:{khm7nJ:"x6yxi7o",$$css:!0},1:{khm7nJ:"x1ngg2t4",$$css:!0},2:{khm7nJ:"x1x7z4sm",$$css:!0},3:{khm7nJ:"x4olc9o",$$css:!0},4:{khm7nJ:"xtx9w7w",$$css:!0},5:{khm7nJ:"x1iu6piu",$$css:!0},6:{khm7nJ:"xczp1bk",$$css:!0},8:{khm7nJ:"xgx0vcf",$$css:!0},10:{khm7nJ:"x1xpicb7",$$css:!0},"0.5":{khm7nJ:"x1tw44j4",$$css:!0},"1.5":{khm7nJ:"xhq53yo",$$css:!0}},rH={0:{k1C7PZ:"x1o57wo1",$$css:!0},1:{k1C7PZ:"x1lfs0n9",$$css:!0},2:{k1C7PZ:"xak3so",$$css:!0},3:{k1C7PZ:"xewh9hi",$$css:!0},4:{k1C7PZ:"xty4p9g",$$css:!0},5:{k1C7PZ:"x1eqhezk",$$css:!0},6:{k1C7PZ:"x3qlgwd",$$css:!0},8:{k1C7PZ:"xicv188",$$css:!0},10:{k1C7PZ:"x1p37tyl",$$css:!0},"0.5":{k1C7PZ:"x1kihgfc",$$css:!0},"1.5":{k1C7PZ:"x1thn6ci",$$css:!0}},CE={0:"--spacing-0",.5:"--spacing-0-5",1:"--spacing-1",1.5:"--spacing-1-5",2:"--spacing-2",3:"--spacing-3",4:"--spacing-4",5:"--spacing-5",6:"--spacing-6",8:"--spacing-8",10:"--spacing-10"};function aH(e,t,a,s,i){const c=i!=null?CE[i]:s!=null?CE[s]:null,u=c?`calc((100% - ${t-1} * var(${c})) / ${t})`:`calc(100% / ${t})`,d=`min(100%, max(${e}px, ${u}))`;return`repeat(${a}, minmax(${d}, 1fr))`}function lT({columns:e,rowHeight:t,width:a,height:s,maxWidth:i,minHeight:c,gap:u,rowGap:d,columnGap:f,align:g,justify:y,xstyle:b,className:k,style:C,children:w,ref:v,...S}){let T;if(typeof e=="object"&&e!=null){const $=e.repeat==="fit"?"auto-fit":"auto-fill";e.max!=null&&e.max>0?T=aH(e.minWidth,e.max,$,u,f):T=`repeat(${$}, minmax(${e.minWidth}px, 1fr))`}else typeof e=="number"&&e>0?T=`repeat(${e}, 1fr)`:T="1fr";const E={...a!=null&&{width:typeof a=="number"?`${a}px`:a},...s!=null&&{height:typeof s=="number"?`${s}px`:s},...i!=null&&{maxWidth:typeof i=="number"?`${i}px`:i},...c!=null&&{minHeight:typeof c=="number"?`${c}px`:c}},j=typeof e=="number"?e:void 0;return p.jsx("div",{ref:v,...Te(Ee("grid",{columns:j,gap:u,align:g,justify:y}),Se(Zq.grid,EE.templateColumns(T),t!=null&&EE.autoRows(t),u!=null&&tH[u],d!=null&&nH[d],f!=null&&rH[f],g!=null&&Jq[g],y!=null&&eH[y],b),k,{...C,...E}),...S,children:w})}lT.displayName="Grid";const ca={interactive:{"--selectable-card-ring-color":"x11rj6l1",kVAEAm:"x1n2onr6",kkrTdU:"x1ypdohk x16khyan",k1ekBW:"x16mfhj0",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},overlay:{"--_press-overlay":"x1s9pv7w xb8awce x1a5qima x1sad4of x1s2lk0z xmfmiv1 x1hn5ov8","--_press-overlay-transition":"x1wkyqe6 xbb2ue6 x1wphrdb",k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",kv0HGH:"xarstr8",kUfP38:"x1k48kgn",kloYau:"x2q1x1w",kRicXK:"x1ywzrc5",kPNhGg:"x18w5vxb",kA8PQs:"x1dlmc9c",ks3ayO:"x1l0fnur",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",$$css:!0},selected:{kVAM5u:"xad5do","--_card-ring":"xr9ms2c",$$css:!0},selectedBlue:{kVAM5u:"xlee4gx","--_card-ring":"xgwwt2v",$$css:!0},selectedCyan:{kVAM5u:"xb1xfl","--_card-ring":"xcdi0x3",$$css:!0},selectedGray:{kVAM5u:"x1w9ec3u","--_card-ring":"x1m1zkwp",$$css:!0},selectedGreen:{kVAM5u:"xy90a9n","--_card-ring":"x1485227",$$css:!0},selectedOrange:{kVAM5u:"xloqurj","--_card-ring":"x1cclxpp",$$css:!0},selectedPink:{kVAM5u:"x1czkbn8","--_card-ring":"xzs6dn4",$$css:!0},selectedPurple:{kVAM5u:"xq98wne","--_card-ring":"x9zgi83",$$css:!0},selectedRed:{kVAM5u:"xjqgoec","--_card-ring":"xo8718j",$$css:!0},selectedTeal:{kVAM5u:"x1r9gxr1","--_card-ring":"xp4e5fy",$$css:!0},selectedYellow:{kVAM5u:"x1kpnwn1","--_card-ring":"x1glw7ee",$$css:!0},selectedUnknown:{"--_card-ring":"x3zsw4j",$$css:!0}},sH=e=>{switch(e){case"default":case"transparent":case"muted":return ca.selected;case"blue":return ca.selectedBlue;case"cyan":return ca.selectedCyan;case"gray":return ca.selectedGray;case"green":return ca.selectedGreen;case"orange":return ca.selectedOrange;case"pink":return ca.selectedPink;case"purple":return ca.selectedPurple;case"red":return ca.selectedRed;case"teal":return ca.selectedTeal;case"yellow":return ca.selectedYellow;default:return ca.selectedUnknown}};function cT({label:e,isSelected:t,onChange:a,onClick:s,onMouseUp:i,isDisabled:c=!1,children:u,padding:d,variant:f="default",elevation:g="none",width:y,height:b,maxWidth:k,ref:C,xstyle:w,className:v,style:S,...T}){const E=Ka(),j=x.useRef(null),$=x.useRef(null),z=x.useCallback(K=>{c||a(!t)},[c,t,a]),L=x.useCallback(K=>{if(c){(K.key===" "||K.key==="Enter")&&K.preventDefault();return}K.key==="Enter"&&(K.preventDefault(),a(!t))},[c,t,a]),{onClick:I,onMouseUp:N}=fm({containerRef:j,interactiveRef:$,onClick:z,disabled:c}),D=s?K=>{I(K),s(K)}:I,P=i?K=>{N(K),i(K)}:N;return p.jsxs(Po,{ref:Zn(C,j),...c?void 0:E,width:y,height:b,maxWidth:k,padding:d,variant:f,elevation:g,...Te(Ee("selectable-card",{variant:f,selected:t?"true":"false"}),Xn.focusWithin(),v,S),xstyle:[ca.interactive,t&&sH(f),!c&&ca.overlay,!c&&Nr.pressedAlpha,c&&ca.disabled,w],onClick:c?void 0:D,onMouseUp:c?void 0:P,...T,children:[p.jsx("input",{ref:$,type:"checkbox",checked:t,"aria-label":e,"aria-disabled":c?"true":void 0,onChange:()=>{c||a(!t)},onKeyDown:L,className:"x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km"}),u]})}cT.displayName="SelectableCard";var hn={size:"1em","aria-hidden":!0},oH={close:p.jsx(Cj,{...hn}),chevronDown:p.jsx(D$,{...hn}),chevronLeft:p.jsx(I$,{...hn}),chevronRight:p.jsx(P$,{...hn}),chevronsLeft:p.jsx(F$,{...hn}),chevronsRight:p.jsx(H$,{...hn}),check:p.jsx(N$,{...hn}),success:p.jsx(V$,{...hn}),error:p.jsx(K$,{...hn}),warning:p.jsx(bj,{...hn}),info:p.jsx(cj,{...hn}),calendar:p.jsx(R$,{...hn}),clock:p.jsx(Y$,{...hn}),externalLink:p.jsx(rj,{...hn}),menu:p.jsx(dj,{...hn}),moreHorizontal:p.jsx(tj,{...hn}),search:p.jsx(xj,{...hn}),upload:p.jsx(kj,{...hn}),arrowUp:p.jsx(j$,{...hn}),arrowDown:p.jsx(S$,{...hn}),arrowsUpDown:p.jsx(C$,{...hn}),funnel:p.jsx(ij,{...hn}),eyeSlash:p.jsx(sj,{...hn}),viewColumns:p.jsx(Z$,{...hn}),copy:p.jsx(J$,{...hn}),checkDouble:p.jsx(M$,{...hn}),wrench:p.jsx(Sj,{...hn}),stop:p.jsx(gj,{...hn}),microphone:p.jsx(hj,{...hn})};const iH={name:"neutral",__built:!0,tokens:{"--font-size-4xs":"0.375rem","--font-size-3xs":"0.4375rem","--font-size-2xs":"0.5rem","--font-size-xs":"0.625rem","--font-size-sm":"0.75rem","--font-size-base":"0.875rem","--font-size-lg":"1.0625rem","--font-size-xl":"1.25rem","--font-size-2xl":"1.5rem","--font-size-3xl":"1.8125rem","--font-size-4xl":"2.1875rem","--font-size-5xl":"2.625rem","--text-heading-1-size":"var(--font-size-2xl)","--text-heading-1-weight":"var(--font-weight-semibold)","--text-heading-1-leading":"1.3333","--text-heading-2-size":"var(--font-size-xl)","--text-heading-2-weight":"var(--font-weight-semibold)","--text-heading-2-leading":"1.4","--text-heading-3-size":"var(--font-size-lg)","--text-heading-3-weight":"var(--font-weight-bold)","--text-heading-3-leading":"1.4118","--text-heading-4-size":"var(--font-size-base)","--text-heading-4-weight":"var(--font-weight-bold)","--text-heading-4-leading":"1.4286","--text-heading-5-size":"var(--font-size-sm)","--text-heading-5-weight":"var(--font-weight-semibold)","--text-heading-5-leading":"1.6667","--text-heading-6-size":"var(--font-size-xs)","--text-heading-6-weight":"var(--font-weight-semibold)","--text-heading-6-leading":"1.6","--text-body-size":"var(--font-size-base)","--text-body-weight":"var(--font-weight-normal)","--text-body-leading":"1.4286","--text-large-size":"var(--font-size-lg)","--text-large-weight":"var(--font-weight-semibold)","--text-large-leading":"1.4118","--text-label-size":"var(--font-size-base)","--text-label-weight":"var(--font-weight-medium)","--text-label-leading":"1.4286","--text-code-size":"var(--font-size-base)","--text-code-weight":"var(--font-weight-normal)","--text-code-leading":"1.4286","--text-supporting-size":"var(--font-size-sm)","--text-supporting-weight":"var(--font-weight-normal)","--text-supporting-leading":"1.6667","--text-display-1-size":"var(--font-size-5xl)","--text-display-1-weight":"var(--font-weight-normal)","--text-display-1-leading":"1.2381","--text-display-2-size":"var(--font-size-4xl)","--text-display-2-weight":"var(--font-weight-normal)","--text-display-2-leading":"1.2571","--text-display-3-size":"var(--font-size-3xl)","--text-display-3-weight":"var(--font-weight-normal)","--text-display-3-leading":"1.3793","--duration-fast-min":"95ms","--duration-fast":"125ms","--duration-fast-max":"165ms","--duration-medium-min":"225ms","--duration-medium":"300ms","--duration-medium-max":"400ms","--duration-slow-min":"525ms","--duration-slow":"700ms","--duration-slow-max":"935ms","--font-family-body":'Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',"--font-family-heading":'Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',"--font-family-code":'ui-monospace, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace',"--color-syntax-keyword":"light-dark(#6b187c, #efa8ff)","--color-syntax-string":"light-dark(#0b5615, #a4d6a3)","--color-syntax-comment":"light-dark(#6a6a6a, #9e9e9e)","--color-syntax-number":"light-dark(#733100, #ffb37e)","--color-syntax-function":"light-dark(#00458c, #a1caff)","--color-syntax-type":"light-dark(#6b187c, #efa8ff)","--color-syntax-variable":"light-dark(#111111, #e2e2e2)","--color-syntax-operator":"light-dark(#6a6a6a, #9e9e9e)","--color-syntax-constant":"light-dark(#733100, #ffb37e)","--color-syntax-tag":"light-dark(#8a0011, #ffaea7)","--color-syntax-attribute":"light-dark(#584400, #eec448)","--color-syntax-property":"light-dark(#005348, #90d7c8)","--color-syntax-punctuation":"light-dark(#6a6a6a, #9e9e9e)","--color-syntax-background":"light-dark(#ffffff, #111111)","--color-background-surface":"light-dark(#ffffff, #262626)","--color-background-body":"light-dark(#f1f1f1, #1b1b1b)","--color-background-card":"light-dark(#ffffff, #1b1b1b)","--color-background-popover":"light-dark(#ffffff, #1b1b1b)","--color-background-muted":"light-dark(#f1f1f1, #1b1b1b)","--color-accent":"light-dark(#1b1b1b, #f1f1f1)","--color-accent-muted":"light-dark(#f1f1f1, #262626)","--color-neutral":"light-dark(#0000000F, #ffffff1A)","--color-overlay":"light-dark(#00000080, #000000CC)","--color-overlay-hover":"light-dark(#0000000D, #ffffff0D)","--color-overlay-pressed":"light-dark(#0000001A, #ffffff1A)","--color-text-primary":"light-dark(#000000, #ffffff)","--color-text-secondary":"light-dark(#474747, #9e9e9e)","--color-text-disabled":"light-dark(#919191, #525252)","--color-text-accent":"light-dark(#1b1b1b, #f1f1f1)","--color-on-dark":"#ffffff","--color-on-light":"#111111","--color-on-accent":"light-dark(#ffffff, #111111)","--color-on-success":"light-dark(#ffffff, #111111)","--color-on-error":"light-dark(#ffffff, #111111)","--color-on-warning":"#111111","--color-icon-accent":"light-dark(#1b1b1b, #f1f1f1)","--color-icon-primary":"light-dark(#000000, #ffffff)","--color-icon-secondary":"light-dark(#6a6a6a, #9e9e9e)","--color-icon-disabled":"light-dark(#919191, #525252)","--color-success":"light-dark(#00490b, #a4d6a3)","--color-error":"light-dark(#76000c, #ffc4be)","--color-warning":"light-dark(#4b3900, #f8d36a)","--color-success-muted":"light-dark(#bce0bb, #90ca903D)","--color-error-muted":"light-dark(#ffc4be, #ff98903D)","--color-warning-muted":"light-dark(#fae19e, #e2b6233D)","--color-border":"light-dark(#00000014, #ffffff1A)","--color-border-emphasized":"light-dark(#d4d4d4, #525252)","--color-skeleton":"light-dark(#f1f1f1, #525252)","--color-shadow":"light-dark(#0000001A, #0000004D)","--color-tint-hover":"light-dark(black, white)","--color-background-red":"light-dark(#ffc4be, #5b2b28)","--color-border-red":"light-dark(#ffaea7, #fa6762)","--color-icon-red":"light-dark(#76000c, #ff9890)","--color-text-red":"light-dark(#76000c, #ffaea7)","--color-background-orange":"light-dark(#ffc7a1, #503424)","--color-border-orange":"light-dark(#ffc7a1, #df843f)","--color-icon-orange":"light-dark(#622700, #ff9e55)","--color-text-orange":"light-dark(#622700, #ffb37e)","--color-background-yellow":"light-dark(#fae19e, #453a1c)","--color-border-yellow":"light-dark(#e3c36c, #c29900)","--color-icon-yellow":"light-dark(#4b3900, #e2b623)","--color-text-yellow":"light-dark(#4b3900, #eec448)","--color-background-green":"light-dark(#bce0bb, #2b422b)","--color-border-green":"light-dark(#aad4a9, #6ab26b)","--color-icon-green":"light-dark(#00490b, #90ca90)","--color-text-green":"light-dark(#00490b, #90ca90)","--color-background-teal":"light-dark(#a9e2d6, #28413c)","--color-border-teal":"light-dark(#90d7c8, #4fb1a0)","--color-icon-teal":"light-dark(#00463d, #81c9bb)","--color-text-teal":"light-dark(#00463d, #90d7c8)","--color-background-cyan":"light-dark(#9ae2f4, #274046)","--color-border-cyan":"light-dark(#85d5e9, #49adc4)","--color-icon-cyan":"light-dark(#004351, #71c7dd)","--color-text-cyan":"light-dark(#004351, #85d5e9)","--color-background-blue":"light-dark(#b9d7ff, #253c5a)","--color-border-blue":"light-dark(#a1caff, #5aa0f8)","--color-icon-blue":"light-dark(#003978, #88bcff)","--color-text-blue":"light-dark(#003978, #a1caff)","--color-background-purple":"light-dark(#f7d5ff, #4a2f51)","--color-border-purple":"light-dark(#f3bfff, #d885eb)","--color-icon-purple":"light-dark(#5c0e6c, #e496f6)","--color-text-purple":"light-dark(#5c0e6c, #eaacf8)","--color-background-pink":"light-dark(#ffc0d7, #572b3d)","--color-border-pink":"light-dark(#ffc0d7, #fc78b1)","--color-icon-pink":"light-dark(#70003f, #fd92bd)","--color-text-pink":"light-dark(#70003f, #ffa9ca)","--color-background-gray":"light-dark(#e2e2e2, #303030)","--color-border-gray":"light-dark(#d4d4d4, #262626)","--color-icon-gray":"light-dark(#474747, #9e9e9e)","--color-text-gray":"light-dark(#1b1b1b, #d4d4d4)","--radius-none":"0px","--radius-inner":"0.375rem","--radius-element":"0.625rem","--radius-container":"0.75rem","--radius-page":"1.75rem","--radius-full":"9999px","--shadow-low":"0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 25%)), 0 4px 8px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 40%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 8%))","--shadow-med":"0 2px 4px light-dark(oklch(0 0 0 / 5%), oklch(0 0 0 / 35%)), 0 4px 12px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 12%))","--shadow-high":"0 4px 6px light-dark(oklch(0 0 0 / 10%), oklch(0 0 0 / 50%)), 0 12px 24px light-dark(oklch(0 0 0 / 15%), oklch(0 0 0 / 70%)), inset 0 0 0 1px light-dark(transparent, oklch(1 0 0 / 15%))","--shadow-inset-hover":"inset 0px 0px 0px 2px #0074e24D","--shadow-inset-selected":"inset 0px 0px 0px 2px #0074e280","--shadow-inset-success":"inset 0px 0px 0px 2px #2f7d334D","--shadow-inset-warning":"inset 0px 0px 0px 2px #f8d36a4D","--shadow-inset-error":"inset 0px 0px 0px 2px #de47454D"},localTokens:{"--astryx-theme-neutral-color-status-fill-accent":"light-dark(#0074e2, #6d9cfe)","--astryx-theme-neutral-color-status-fill-success":"light-dark(#198100, #64af4c)","--astryx-theme-neutral-color-status-fill-warning":"#ffce2f","--astryx-theme-neutral-color-status-fill-error":"light-dark(#c9303a, #ff705d)","--astryx-theme-neutral-color-status-muted-accent":"light-dark(#b9d7ff, #88bcff3D)","--astryx-theme-neutral-color-on-tint-neutral":"light-dark(#fafafa4D, #0a0a0a4D)","--astryx-theme-neutral-color-on-tint-overlay-hover":"light-dark(#fafafa1A, #0a0a0a1A)","--astryx-theme-neutral-color-on-tint-overlay-pressed":"light-dark(#fafafa33, #0a0a0a33)","--astryx-theme-neutral-color-destructive-overlay-hover":"light-dark(#ff7f770D, #ee736c0D)","--astryx-theme-neutral-color-destructive-overlay-pressed":"light-dark(#ff7f771A, #ee736c1A)"},__localTokenOwners:{"--astryx-theme-neutral-color-status-fill-accent":"neutral","--astryx-theme-neutral-color-status-fill-success":"neutral","--astryx-theme-neutral-color-status-fill-warning":"neutral","--astryx-theme-neutral-color-status-fill-error":"neutral","--astryx-theme-neutral-color-status-muted-accent":"neutral","--astryx-theme-neutral-color-on-tint-neutral":"neutral","--astryx-theme-neutral-color-on-tint-overlay-hover":"neutral","--astryx-theme-neutral-color-on-tint-overlay-pressed":"neutral","--astryx-theme-neutral-color-destructive-overlay-hover":"neutral","--astryx-theme-neutral-color-destructive-overlay-pressed":"neutral"},__localTokenLineage:["neutral"],components:{heading:{"level:1":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-1-size)",fontWeight:"var(--text-heading-1-weight)",lineHeight:"var(--text-heading-1-leading)"},"level:2":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-2-size)",fontWeight:"var(--text-heading-2-weight)",lineHeight:"var(--text-heading-2-leading)"},"level:3":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-3-size)",fontWeight:"var(--text-heading-3-weight)",lineHeight:"var(--text-heading-3-leading)"},"level:4":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-4-size)",fontWeight:"var(--text-heading-4-weight)",lineHeight:"var(--text-heading-4-leading)"},"level:5":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-5-size)",fontWeight:"var(--text-heading-5-weight)",lineHeight:"var(--text-heading-5-leading)"},"level:6":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-heading-6-size)",fontWeight:"var(--text-heading-6-weight)",lineHeight:"var(--text-heading-6-leading)"},"type:display-1":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-1-size)",lineHeight:"var(--text-display-1-leading)"},"type:display-2":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-2-size)",lineHeight:"var(--text-display-2-leading)"},"type:display-3":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-3-size)",lineHeight:"var(--text-display-3-leading)"}},text:{"type:body":{fontFamily:"var(--font-family-body)",fontSize:"var(--text-body-size)",lineHeight:"var(--text-body-leading)"},"type:large":{fontFamily:"var(--font-family-body)",fontSize:"var(--text-large-size)",lineHeight:"var(--text-large-leading)"},"type:label":{fontFamily:"var(--font-family-body)",fontSize:"var(--text-label-size)",lineHeight:"var(--text-label-leading)"},"type:code":{fontFamily:"var(--font-family-code)",fontSize:"var(--text-code-size)",lineHeight:"var(--text-code-leading)"},"type:supporting":{fontFamily:"var(--font-family-body)",fontSize:"var(--text-supporting-size)",lineHeight:"var(--text-supporting-leading)"},"type:display-1":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-1-size)",lineHeight:"var(--text-display-1-leading)"},"type:display-2":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-2-size)",lineHeight:"var(--text-display-2-leading)"},"type:display-3":{fontFamily:"var(--font-family-heading)",fontSize:"var(--text-display-3-size)",lineHeight:"var(--text-display-3-leading)"}},button:{"variant:destructive":{backgroundColor:"var(--color-error-muted)",color:"var(--color-error)","--color-overlay-hover":"var(--astryx-theme-neutral-color-destructive-overlay-hover)","--color-overlay-pressed":"var(--astryx-theme-neutral-color-destructive-overlay-pressed)"}},badge:{"variant:info":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-accent)",color:"var(--color-on-accent)"},"variant:neutral":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"},"variant:success":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-success)",color:"var(--color-on-success)"},"variant:warning":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-warning)",color:"var(--color-on-warning)"},"variant:error":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-error)",color:"var(--color-on-error)"},"variant:red":{backgroundColor:"var(--color-background-red)",color:"var(--color-text-red)"},"variant:orange":{backgroundColor:"var(--color-background-orange)",color:"var(--color-text-orange)"},"variant:yellow":{backgroundColor:"var(--color-background-yellow)",color:"var(--color-text-yellow)"},"variant:green":{backgroundColor:"var(--color-background-green)",color:"var(--color-text-green)"},"variant:teal":{backgroundColor:"var(--color-background-teal)",color:"var(--color-text-teal)"},"variant:cyan":{backgroundColor:"var(--color-background-cyan)",color:"var(--color-text-cyan)"},"variant:blue":{backgroundColor:"var(--color-background-blue)",color:"var(--color-text-blue)"},"variant:purple":{backgroundColor:"var(--color-background-purple)",color:"var(--color-text-purple)"},"variant:pink":{backgroundColor:"var(--color-background-pink)",color:"var(--color-text-pink)"},"variant:gray":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"}},"status-dot":{"variant:success":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-success)"},"variant:warning":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-warning)"},"variant:error":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-error)"},"variant:accent":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-accent)"}},"avatar-status-dot":{"variant:success":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-success)"},"variant:error":{backgroundColor:"var(--astryx-theme-neutral-color-status-fill-error)"}},"segmented-control":{base:{padding:"var(--spacing-1)"}},"segmented-control-item":{"size:sm":{height:"calc(var(--size-element-sm) - 8px)"},"size:md":{height:"calc(var(--size-element-md) - 8px)"},"size:lg":{height:"calc(var(--size-element-lg) - 8px)"},selected:{boxShadow:"none"}},banner:{base:{"--color-neutral":"var(--astryx-theme-neutral-color-on-tint-neutral)","--color-overlay-hover":"var(--astryx-theme-neutral-color-on-tint-overlay-hover)","--color-overlay-pressed":"var(--astryx-theme-neutral-color-on-tint-overlay-pressed)"},"status:info":{"--color-accent-muted":"var(--astryx-theme-neutral-color-status-muted-accent)","--color-text-primary":"var(--color-text-blue)","--color-text-secondary":"var(--color-text-blue)","--color-accent":"var(--color-text-blue)"},"status:success":{"--color-text-primary":"var(--color-text-green)","--color-text-secondary":"var(--color-text-green)","--color-success":"var(--color-text-green)"},"status:warning":{"--color-text-primary":"var(--color-text-yellow)","--color-text-secondary":"var(--color-text-yellow)","--color-warning":"var(--color-text-yellow)"},"status:error":{"--color-text-primary":"var(--color-text-red)","--color-text-secondary":"var(--color-text-red)","--color-error":"var(--color-text-red)"}},"step-indicator":{"status:accent":{"--color-accent":"var(--astryx-theme-neutral-color-status-fill-accent)"},"status:success":{"--color-success":"var(--astryx-theme-neutral-color-status-fill-success)"},"status:warning":{"--color-warning":"var(--astryx-theme-neutral-color-status-fill-warning)"},"status:error":{"--color-error":"var(--astryx-theme-neutral-color-status-fill-error)"}},switch:{base:{"--color-background-gray":"var(--color-border-emphasized)"}},"progress-bar":{base:{"--color-background-muted":"var(--color-border-emphasized)"},"variant:accent":{"--color-accent":"var(--astryx-theme-neutral-color-status-fill-accent)"},"variant:success":{"--color-success":"var(--astryx-theme-neutral-color-status-fill-success)"},"variant:warning":{"--color-warning":"var(--astryx-theme-neutral-color-status-fill-warning)"},"variant:error":{"--color-error":"var(--astryx-theme-neutral-color-status-fill-error)"}},card:{base:{padding:"var(--spacing-3)"}},section:{base:{padding:"var(--spacing-3)"}}},__onDark:{tokens:{"color-scheme":"dark","--color-text-primary":"var(--color-on-dark)","--color-icon-primary":"var(--color-on-dark)","--color-accent":"var(--color-on-dark)"}},__onLight:{tokens:{"color-scheme":"light","--color-text-primary":"var(--color-on-light)","--color-icon-primary":"var(--color-on-light)","--color-accent":"var(--color-on-light)"}},__adaptations:{widthBreakpoints:{sm:640,md:768,lg:1024,xl:1280,"2xl":1536},rules:[{when:{pointer:"coarse",width:{below:"lg"}},value:{typography:{scale:{base:16,ratio:1.1736}}}}]},__axes:{typography:{scale:{base:14,ratio:1.2},body:{family:"Figtree",fallbacks:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},heading:{family:"Figtree",fallbacks:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',weights:{3:"bold",4:"bold"}},code:{family:"ui-monospace",fallbacks:'"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}},motion:{fast:125,medium:300,slow:700,ratio:.75}},icons:oH},$E={container:{kVAEAm:"x1n2onr6",kzqmXN:"xh8yej3",kVQacm:"x7giv3",kAzted:"x2lwn1j",kmuXW:"x2lah0s",$$css:!0},ellipse:{kaIpWk:"x16rqkct",$$css:!0}},lH={ratio:e=>[{kOBAk4:e!=null?"x10y9f9r":e,$$css:!0},{"--x-aspectRatio":e??void 0}]};function uT({ratio:e,shape:t="rectangle",fit:a,children:s,xstyle:i,className:c,style:u,ref:d,...f}){return p.jsx("div",{ref:d,...Te(Ee("aspect-ratio",{shape:t}),Se($E.container,lH.ratio(e),t==="ellipse"&&$E.ellipse,i),c,u),...f,children:p.jsx("div",{"data-astryx-aspect-ratio-override":a,...{0:{className:"x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d"},1:{className:"x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d x78zum5 x6s0dn4 xl56j7k"}}[(a==="center")<<0],children:s})})}uT.displayName="AspectRatio";const jE={wrapper:{k8WAf4:"xu0wf1k",kg3NbH:"x7a5moj",$$css:!0},icon:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kmuXW:"x2lah0s",$$css:!0}};function dT({ref:e,label:t,clearLabel:a,placeholder:s,value:i,onValueChange:c,onKeyDown:u,onFocus:d,onBlur:f,onContainerKeyDown:g,xstyle:y,className:b,style:k,...C}){const[w,v]=x.useState(!1);Gx();const S=x.useCallback(j=>{v(yu()==="keyboard"),d?.(j)},[d]),T=x.useCallback(j=>{v(!1),f?.(j)},[f]),E=x.useCallback(j=>{c(""),!j||j.detail===0?typeof e=="object"&&e?.current&&e.current.focus():requestAnimationFrame(()=>{typeof e=="object"&&e?.current&&e.current.focus({preventScroll:!0})})},[c,e]);return p.jsx("div",{onKeyDown:g,...Te(Se(jE.wrapper,y),b,k),children:p.jsxs("div",{"data-keyboard-focus":w?"true":void 0,...{0:{className:"x9f619 x78zum5 x6s0dn4 x1txdalj xh8yej3 x1vofgu7 xf314gf xh6dtrn xkdsq27 xuedmi6 x12w9bfk xlr8y92"},1:{className:"x9f619 x78zum5 x6s0dn4 x1txdalj xh8yej3 x1vofgu7 xf314gf xh6dtrn xkdsq27 xuedmi6 x12w9bfk xlr8y92 x1gnnqk1 x1btxeh5"}}[!!w<<0],children:[p.jsx(jt,{icon:"search",size:"sm",color:"secondary",xstyle:jE.icon}),p.jsx("input",{ref:e,type:"text","aria-label":t,placeholder:s,value:i,onChange:j=>c(j.target.value),onKeyDown:u,onFocus:S,onBlur:T,className:"x1iyjqo2 xs83m0k xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w x1tgivj0 x9ynric xcr08ib x1w61h2b x1kq96og x1a2a7pz xeyghm5",...C}),i!==""&&p.jsx(ym,{label:a,onClick:E})]})})}dT.displayName="PanelSearchInput";function cH(e){const t=e.cloneNode(!0);for(const a of t.querySelectorAll('[aria-hidden="true"]'))a.remove();return(t.textContent??"").replace(/\s+/g," ").trim()}function uH(e,t,a){const s=$f(),i=x.useRef(null);x.useEffect(()=>{if(!t){i.current=null;return}const c=e.current;if(!c)return;const u=cH(c);if(u==="")return;const d=`${a}\0${u}`;i.current!==d&&(i.current=d,s(u))})}function fT(e){return typeof e=="string"?!0:!("type"in e)}function dH(e){return typeof e=="object"&&"type"in e&&e.type==="divider"}function hT(e){return typeof e=="object"&&"type"in e&&e.type==="section"}function Ax(e){return typeof e=="string"?{value:e,label:e}:{...e,label:e.label??e.value}}function fH(e){const t=[];for(const a of e)if(fT(a))t.push(Ax(a));else if(hT(a))for(const s of a.options)t.push(Ax(s));return t}function hH({isOpen:e,highlightedIndex:t,setHighlightedIndex:a,getOptionId:s,itemCount:i}){const c=x.useRef(!1),u=x.useCallback(d=>{d!==t&&(c.current=!0),a(d)},[t,a]);return x.useEffect(()=>{if(c.current){c.current=!1;return}!e||t<0||document.getElementById(s(t))?.scrollIntoView?.({block:"nearest"})},[e,t,s,i]),u}const pH=1;function TE(e){let t=0,a=e;for(;a;)t+=a.offsetTop,a=a.offsetParent;return t}function xH({isOpen:e,selectedItemIndex:t,listboxId:a,listboxRef:s,anchorRef:i}){const[c,u]=x.useState(0),[d,f]=x.useState(!1),g=x.useCallback((y,b)=>{u(y),f(b)},[]);return Sr(()=>{if(!e){g(0,!1);return}if(!s.current||!i.current){g(0,!0);return}const y=t>=0?t:0,b=`${a}-item-${y}`,k=document.getElementById(b);if(!k){g(0,!0);return}const C=s.current,w=i.current.getBoundingClientRect(),v=C.offsetHeight;if(v<=0){g(0,!0);return}const S=TE(k)-TE(C)-C.scrollTop+k.offsetHeight/2,E=w.top+w.height/2-S-pH,j=window.innerHeight,$=Math.max(0,j-v),z=Math.min(Math.max(E,0),$),L=Math.max(0,w.bottom-z);g(L,!0)},[e,t,a,s,i,g]),{offset:c,isPositioned:d}}function mH({selectableItems:e,value:t,isDisabled:a=!1,isOpen:s,hasSearch:i=!1,onOpen:c,onClose:u,onSelect:d,onClear:f,onSearchSeed:g,listboxId:y}){const[b,k]=x.useState(-1),C=x.useCallback(L=>`${y}-item-${L}`,[y]),w=x.useCallback(()=>e.map((L,I)=>L.disabled?-1:I).filter(L=>L>=0),[e]),v=x.useCallback(()=>e.findIndex(L=>L.value===t),[e,t]),S=x.useCallback(()=>{k(-1),u()},[u]),T=x.useCallback(L=>{L.disabled||(d?.(L.value),S())},[d,S]),E=x.useCallback(()=>{if(!a){if(s)S();else if(c()!==!1&&!i){const I=v();k(I>=0?I:0)}}},[a,s,c,S,v,i]),j=hH({isOpen:s,highlightedIndex:b,setHighlightedIndex:k,getOptionId:C}),$=x.useCallback((L,I)=>{L.disabled||j(I)},[j]),z=x.useCallback(L=>{if(a)return;const I=w();switch(L.key){case"ArrowDown":if(L.preventDefault(),!s)c()!==!1&&k(0);else{const N=I.indexOf(b),D=Math.min(N+1,I.length-1);k(I[D]??b)}break;case"ArrowUp":if(L.preventDefault(),!s)c()!==!1&&k(e.length-1);else{const N=I.indexOf(b),D=Math.max(N-1,0);k(I[D]??b)}break;case" ":if(i)break;case"Enter":if(L.preventDefault(),s&&b>=0){const N=e[b];N&&!N.disabled&&T(N)}else if(!s&&c()!==!1&&!i){const D=v();k(D>=0?D:0)}break;case"Escape":s&&(L.preventDefault(),S());break;case"Tab":s&&S();break;case"Home":L.preventDefault(),s&&I.length>0&&k(I[0]);break;case"End":L.preventDefault(),s&&I.length>0&&k(I[I.length-1]);break;case"PageUp":L.preventDefault(),s&&I.length>0&&k(I[0]);break;case"PageDown":L.preventDefault(),s&&I.length>0&&k(I[I.length-1]);break;case"Delete":case"Backspace":!i&&!s&&f!=null&&t!=null&&(L.preventDefault(),f());break;default:i&&g&&L.key.length===1&&!L.ctrlKey&&!L.metaKey&&(s||c()!==!1)&&g(L.key);break}},[a,s,c,S,e,b,T,v,w,i,f,g,t]);return{highlightedIndex:b,setHighlightedIndex:k,getItemId:C,onTriggerClick:E,onKeyDown:z,onItemSelect:T,onItemMouseEnter:$}}function sv(e,t,a){const[s,i]=x.useState(!1),c=x.useCallback(()=>{const u=e.current;if(!u)return;const d=u.scrollHeight>u.clientHeight+1;i(f=>f===d?f:d)},[e]);return Sr(()=>{if(!a)return;const u=e.current;if(!u)return;c();const d=typeof ResizeObserver>"u"?null:new ResizeObserver(c),f=typeof MutationObserver>"u"?null:new MutationObserver(c);return d?.observe(u),f?.observe(u,{childList:!0,characterData:!0,subtree:!0}),u.addEventListener("load",c,!0),window.addEventListener("resize",c),window.visualViewport?.addEventListener("resize",c),()=>{d?.disconnect(),f?.disconnect(),u.removeEventListener("load",c,!0),window.removeEventListener("resize",c),window.visualViewport?.removeEventListener("resize",c)}},[a,c,e]),Sr(()=>{a&&c()},[t,a,c]),s}const ov=Ra("stacked");ov.displayName="SelectorRowLayoutContext";function gH(){return x.use(ov)}const yH={root:{k8WAf4:"xt970qd",kg3NbH:"xnjsko4",kaIpWk:"x2u8bby",$$css:!0}};function pT({icon:e,label:t,description:a,layout:s,endContent:i,xstyle:c,className:u,style:d}){const f=gH();return p.jsx(Mf,{startContent:e?Is(e,{size:"sm",color:"secondary"}):void 0,label:t,description:a,layout:f==="inline"?"inline":s,endContent:i,xstyle:[yH.root,c],...Te(Ee("selector-option"),{className:u,style:d})})}pT.displayName="SelectorOption";const bH=x.lazy(async()=>kf(()=>import("./BottomSheet-BFGTK8Fb.js"),[]).then(e=>({default:e.BottomSheet}))),vH={heading:{k1K539:"x1p37lm5",kUOVxO:"xam6yil",$$css:!0}};function kH({isOpen:e,targetRef:t}){return x.useEffect(()=>{if(!e)return;const a=requestAnimationFrame(()=>{t.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(a)},[e,t]),null}function xT({children:e,finalFocusRef:t,initialFocusRef:a,isOpen:s,label:i,onOpenChange:c}){return p.jsx(x.Suspense,{fallback:null,children:p.jsx(bH,{isOpen:s,onOpenChange:c,finalFocusRef:t,label:i,height:"hug",purpose:"info",children:p.jsx(n$,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:p.jsxs("div",{className:"xh8yej3",children:[p.jsx(_i,{level:3,xstyle:vH.heading,children:i}),e,p.jsx(kH,{isOpen:s,targetRef:a})]})})})})}xT.displayName="SelectorBottomSheet";const mT="(max-width: 768px) and (pointer: coarse)";function gT(e){const t=nm(mT);return e==="adaptive"?t?"bottom-sheet":"popover":e}function wH(){const[e,t]=x.useState(!1);Gx();const a=x.useCallback(()=>{t(yu()==="pointer")},[]),s=x.useCallback(()=>{t(!1)},[]),i=x.useCallback(()=>{yu()==="keyboard"&&t(!1)},[]);return{isFocusRingSuppressed:e,onFocusReturnTargetFocus:i,prepareFocusReturn:a,resetFocusReturn:s}}function SH({presentation:e,onHide:t,onShow:a,popoverOptions:s,triggerRef:i}){const c=gT(e),u=x.useRef(c),[d,f]=x.useState(!1),g=x.useRef(!1),[y,b]=x.useState(!1),k=x.useRef(t),C=x.useRef(a),w=x.useRef(!1),{isFocusRingSuppressed:v,onFocusReturnTargetFocus:S,prepareFocusReturn:T,resetFocusReturn:E}=wH();k.current=t,C.current=a;const j=x.useCallback(()=>{T(),k.current(),i.current?.focus()},[T,i]),$=x.useCallback(()=>{w.current=!0,E(),C.current()},[E]),z=I1({...s,onHide:j,onShow:$}),{hide:L,show:I}=z,N=x.useCallback(()=>(u.current=c,c==="bottom-sheet"?(E(),C.current(),g.current=!0,b(!0),f(!0),!0):(b(!1),w.current=!1,I(),w.current)),[E,c,I]),D=x.useCallback(()=>{g.current?(T(),g.current=!1,f(!1),k.current()):L()},[L,T]),P=x.useCallback(H=>{S(),!g.current&&u.current==="bottom-sheet"&&b(!1)},[S]),K=x.useCallback(H=>{H?N():D()},[D,N]),oe=z.isOpen||d;return{activePresentation:oe||y?u.current:c,hide:D,isOpen:oe,isSheetOpen:d,isSheetPresented:y,isTriggerFocusRingSuppressed:v,onSheetOpenChange:K,onTriggerFocus:P,popover:z,show:N}}const EH={pointerRestoredFocus:{kVAM5u:"xvy26l8",kGVxlE:"x1gnnqk1",kMeerF:"x1k57tk5",k3XXqK:"x1t137rt",$$css:!0}},dr={triggerContainer:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x1txdalj",kzqmXN:"xh8yej3",k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kMv6JI:"x9ynric",kGuDYH:"xcr08ib x1w61h2b",kMwMTN:"x1tgivj0",kkrTdU:"x1ypdohk x16khyan",$$css:!0},triggerPlaceholder:{kMwMTN:"xv1l7n4",$$css:!0},triggerInGroup:{kAzted:"x2lwn1j",k8WAf4:"xt970qd",kLWn49:"x8vohu",$$css:!0},triggerIcon:{kmuXW:"x2lah0s",$$css:!0},triggerIconRotation:{k1ekBW:"x11xpdln",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",k3nNDw:"x1g0ag68",$$css:!0},triggerIconOpen:{k3aq6I:"x19jd1h0",$$css:!0},triggerGhost:{kzqmXN:"x14atkfc",kMzoRj:"xc342km",kLWn49:"x8vohu",kWkggS:"xjbqb8w",kGVxlE:"x1gnnqk1 x1s17dad x15ysqaf",k63SB2:"x1e4wzip",k1ekBW:"xrafxwg",k3aq6I:"x3oybdh xk4oym4 x5lqen6 x3y5scg",$$css:!0},triggerGhostDisabled:{kKwaWg:"x18o3ruo",k3aq6I:"x1c071of x1pdlv7q x1ylxtyb",$$css:!0},triggerReadOnly:{kkrTdU:"xt0e3qv",$$css:!0},triggerGhostReadOnly:{kKwaWg:"x18o3ruo",k3aq6I:"x1c071of x1pdlv7q x1ylxtyb",$$css:!0},statusButton:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kkrTdU:"x1ypdohk x16khyan",kaIpWk:"xh6dtrn",$$css:!0},searchRowInput:{kg3NbH:"x2hg6jq",$$css:!0},popover:{k7Eaqz:"xrzjruh",$$css:!0},divider:{kqGvvJ:"xsq74q5",$$css:!0},item:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x1txdalj",kzqmXN:"xh8yej3",kmVPX3:"xlsj2fj",kaIpWk:"xh6dtrn",kMv6JI:"x9ynric",kGuDYH:"xcr08ib",kMwMTN:"x1tgivj0",kWkggS:"xjbqb8w",kMzoRj:"xc342km",ksu8eU:"xng3xce",kkrTdU:"x1ypdohk x16khyan",k9WMMc:"x1yc453h",kI3sdo:"x1a2a7pz",$$css:!0},itemHighlighted:{kWkggS:"x1lmrjuc",$$css:!0},itemSelected:{k63SB2:"x1e4wzip",$$css:!0},itemDisabled:{kSiTet:"xbyyjgo",kkrTdU:"xt0e3qv",$$css:!0}},CH={sm:{kAzted:"x1gdqauq",kLWn49:"x1j3cc6x",k8WAf4:"x9ccq01",$$css:!0},md:{kAzted:"x1uogy3y",kLWn49:"xe5am2i",k8WAf4:"xj646f7",$$css:!0},lg:{kAzted:"x1xf4nls",kLWn49:"xkwxim8",k8WAf4:"xsmncjp",$$css:!0}},$H={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}},RE={warning:"warning",error:"error",success:"success"},AE={warning:"warning",error:"error",success:"success"},jH={warning:"@astryx.input.statusButton.warning",error:"@astryx.input.statusButton.error",success:"@astryx.input.statusButton.success"};function TH({option:e}){return p.jsx(pT,{icon:e.icon,label:e.label??e.value,description:e.description})}function Mb(e,t){return t?(e.label??e.value).toLowerCase().includes(t.toLowerCase()):!0}function ME(e,t){return t?e.filter(a=>Mb(a,t)):e}function cu(e){const t=pn(),a=Ka(),{label:s,isLabelHidden:i=!1,description:c,isOptional:u=!1,isRequired:d=!1,isDisabled:f=!1,isReadOnly:g=!1,disabledMessage:y,options:b,value:k,onChange:C,changeAction:w,isLoading:v=!1,placeholder:S,size:T,variant:E="input",status:j,statusVariant:$="attached",labelTooltip:z,startIcon:L,htmlName:I,renderOption:N,renderValue:D,indicatorPosition:P="end",hasSearch:K=!1,searchPlaceholder:oe,emptyText:V,emptySearchText:H,placement:Z,presentation:F="popover",isDefaultOpen:q=!1,width:Q,containerXstyle:ae,containerClassName:J,containerStyle:se,controlXstyle:te,controlClassName:fe,controlStyle:B,ref:ee,onFocus:me,onKeyDown:pe,"aria-describedby":ve,hasClear:ye,id:Oe,...ie}=e,{rest:$e,container:Pe}=vm("Selector",ie,{containerXstyle:ae,containerClassName:J,containerStyle:se}),He=Af({isRequired:d,isOptional:u}),Ze=S??t("@astryx.selector.placeholder"),Fe=oe??t("@astryx.selector.searchPlaceholder"),Ie=V??t("@astryx.selector.empty"),at=H??t("@astryx.selector.emptySearchResults"),wt=ye===!0,Nt=Cu(T,"md"),gt=E==="ghost"&&$==="attached"?"detached":$,st=g&&!f,Lt=k===null?void 0:k,nt=x.useId(),vt=Oe??nt,St=x.useId(),xt=x.useRef(null),Tt=x.useId(),Me=x.useId(),ut=x.useId(),tn=x.useId(),qn=x.useId(),Mn=x.useRef(null),Qn=x.useRef(null),an=Zn(Qn,ee),Hn=x.useRef(null),mn=bm(),[_n,ft]=x.useState(""),Ue=x.useRef(""),Cn=_n.length>0,[,bn]=x.useTransition(),[vn,Lr]=x.useOptimistic(Lt),Aa=v||vn!==Lt,Dr=$f(),ea=f&&!!y,hr=Os({placement:"above",focusTrigger:"always",isEnabled:ea}),nn=Os({placement:"above",isEnabled:gt==="tooltip"&&!!j?.message}),{ariaLabelledBy:Or,ariaDescribedBy:Jn}=i1(ut,[c?Tt:null,!mn&&gt!=="tooltip"&&j?.message?Me:null,gt==="tooltip"&&j?.message?nn.describedBy:null,ea?hr.describedBy:null,st?tn:null],mn),er=x.useMemo(()=>fH(b),[b]);x.useEffect(()=>{er.some(Ne=>Ne.action!=null)&&Ux()},[er]);const W=x.useMemo(()=>ME(er,_n),[er,_n]),Y=x.useMemo(()=>er.findIndex(Ne=>Ne.value===vn),[er,vn]),ue=x.useMemo(()=>Y>=0?er[Y]:void 0,[er,Y]),be=x.useRef(null),je=x.useRef(()=>{}),Qe=x.useCallback(()=>{ft(""),Ue.current="",je.current(),Dr("")},[Dr]),Xe=x.useCallback(()=>{K&&requestAnimationFrame(()=>{const Ne=Hn.current;Ne&&(Ne.focus(),Ne.setSelectionRange(Ne.value.length,Ne.value.length))})},[K]),ze=SH({presentation:F,onHide:Qe,onShow:Xe,triggerRef:Qn,popoverOptions:{hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:"none",surfaceTarget:"selector-popup"}}),{popover:qe}=ze,dt=ze.hide,rt=ze.isOpen,pt=iz(qe.id,qe.isOpen);x.useEffect(()=>{q&&!st&&ze.show()},[]),x.useEffect(()=>{st&&rt&&dt()},[st,rt,dt]);const ot=x.useCallback(Ne=>{if(Ne.length===0){Dr("");return}if(v){Dr("");return}const Ct=ME(er,Ne).length;Ct!==0&&Dr(t("@astryx.selector.resultCount",{count:Ct}))},[Dr,v,er,t]),Ft=x.useCallback(Ne=>{ft(Ne),Ue.current=Ne,ot(Ne)},[ot]),Zt=ze.isOpen&&!v&&W.length===0;uH(xt,Zt,_n);const ln=Z==null&&!K,{offset:Vt,isPositioned:It}=xH({isOpen:qe.isOpen&&ln,selectedItemIndex:Y,listboxId:St,listboxRef:be,anchorRef:Mn}),zn=ln?Vt:0,Un=ln?It:!0,ha=Z??"below",Vn=zn>0?{marginBlockStart:`-${zn}px`}:void 0,sn=x.useCallback(()=>{je.current(),C?.(null),w&&bn(async()=>{Lr(void 0),await w(null)})},[C,w,bn,Lr]),kn=x.useCallback(Ne=>{const Ct=Ue.current+Ne;Ue.current=Ct,ft(Ct),ot(Ct)},[ot]),Gn=x.useCallback(Ne=>{C?.(Ne),w&&bn(async()=>{Lr(Ne),await w(Ne)})},[C,w,bn,Lr]),{highlightedIndex:ar,setHighlightedIndex:$r,getItemId:Gr,onTriggerClick:bs,onKeyDown:pr,onItemSelect:Et,onItemMouseEnter:wn}=mH({selectableItems:W,value:vn,isDisabled:f||st,isOpen:ze.isOpen,hasSearch:K,onOpen:x.useCallback(()=>ze.show(),[ze]),onClose:ze.hide,onSelect:Gn,onClear:wt?sn:void 0,onSearchSeed:kn,listboxId:St}),Nn=X1({getItemLabels:()=>er.map(Ne=>Ne.label??Ne.value),isDisabled:Ne=>er[Ne]?.disabled===!0,getCurrentIndex:()=>ze.isOpen?ar:Y,onMatch:Ne=>{const Ct=er[Ne];ze.isOpen?$r(Ne):Ct.value!==vn&&(Gn(Ct.value),Dr(Ct.label??Ct.value))}});je.current=Nn.reset;const tr=x.useCallback(Ne=>{const Ct=/-item-(\d+)$/.exec(Ne.id);return Ct==null?-1:Number(Ct[1])},[]),Ma=sv(be,W.length,ze.isOpen),ta=xm({menuRef:be,itemSelector:'[role="option"]:not([aria-disabled="true"])',onHighlight:Ne=>{if(Ne==null){$r(-1);return}const Ct=tr(Ne),na=W[Ct];na!=null&&wn(na,Ct)},onActivate:Ne=>{const Ct=W[tr(Ne)];Ct!=null&&Et(Ct)},onDismiss:ze.hide}),kt=x.useCallback(Ne=>{if(!(f||st)){if(!K&&Nn.onKeyDown(Ne)){Ne.preventDefault();return}pr(Ne)}},[f,st,K,Nn,pr]),pa=x.useCallback(Ne=>{Ne.stopPropagation(),sn()},[sn]),uo=x.useCallback(()=>K?p.jsx(dT,{ref:Hn,id:qn,label:t("@astryx.selector.searchOptions"),clearLabel:t("@astryx.textInput.clearLabel",{label:t("@astryx.selector.searchOptions")}),...Ee("selector-search"),xstyle:ze.activePresentation==="popover"&&E!=="ghost"&&dr.searchRowInput,role:"combobox","aria-expanded":ze.isOpen,"aria-controls":St,"aria-autocomplete":"list","aria-activedescendant":ze.isOpen&&ar>=0?Gr(ar):void 0,value:_n,onValueChange:Ft,onContainerKeyDown:Ne=>{Ne.target!==Hn.current&&Ne.key==="Tab"&&!Ne.shiftKey&&pr(Ne)},onKeyDown:Ne=>{if(!yf(Ne.nativeEvent)){if(Ne.key==="ArrowDown"||Ne.key==="ArrowUp"||Ne.key==="PageUp"||Ne.key==="PageDown"||Ne.key==="Enter"||Ne.key==="Escape"){pr(Ne);return}Ne.key==="Tab"&&(Ne.shiftKey||!Cn)&&pr(Ne)}},placeholder:Fe}):null,[K,qn,St,_n,Cn,Fe,Ft,pr,ze.isOpen,ze.activePresentation,ar,Gr,E,t]),fo=sT("check"),za=x.useCallback((Ne,Ct)=>{const na=Ct===ar,ra=Ne.value===Lt,Ir=p.jsx("span",{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s xgomdpo xjl7jj",children:p.jsx(fo,{state:ra?"checked":"unchecked",size:"sm",isDisabled:Ne.disabled??!1,...Ee("selector-check")})}),xr=p.jsx("span",{className:"x78zum5 x6s0dn4 x1txdalj x98rzlu xeuugli",children:N?N(Ne):p.jsx(TH,{option:Ne})}),Bi=P==="start"?p.jsxs(p.Fragment,{children:[Ir,xr]}):p.jsxs(p.Fragment,{children:[xr,Ir]});return p.jsx("div",{id:Gr(Ct),role:"option","aria-selected":ra,"aria-disabled":Ne.disabled,onClick:()=>Et(Ne),onMouseEnter:()=>wn(Ne,Ct),...Te(Ee("selector-option-row",{size:Nt,selected:ra?"selected":null,disabled:Ne.disabled?"disabled":null}),Se(dr.item,$H[Nt],na&&dr.itemHighlighted,ra&&dr.itemSelected,Ne.disabled&&dr.itemDisabled)),children:Bi},Ne.value)},[N,P,ar,Nt,Lt,Gr,Et,wn,fo]),vs=x.useCallback(()=>{const Ne=K&&!!_n;if(W.length===0&&!v)return[p.jsx("div",{ref:xt,role:"presentation",...Te(Ee("selector-empty-state"),{className:"x1b2ylru x2b8uid xv1l7n4 x9ynric xcr08ib"}),children:Ne?at:Ie},"empty")];let Ct=0;const na=[];for(let ra=0;ra<b.length;ra++){const Ir=b[ra];if(dH(Ir)){if(Ne)continue;na.push(p.jsx(Ol,{"aria-hidden":"true",xstyle:dr.divider},`divider-${ra}`))}else if(hT(Ir)){const xr=[];for(const Bi of Ir.options){const _r=Ax(Bi);Ne&&!Mb(_r,_n)||(xr.push(za(_r,Ct)),Ct++)}if(xr.length===0)continue;na.push(p.jsxs("div",{role:"group","aria-label":Ir.title,children:[Ir.title&&p.jsx("div",{"aria-hidden":"true",...Te(Ee("selector-section-heading"),{className:"xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o"}),children:Ir.title}),xr]},`section-${ra}`))}else if(fT(Ir)){const xr=Ax(Ir);if(Ne&&!Mb(xr,_n))continue;na.push(za(xr,Ct)),Ct++}}return na},[b,za,K,_n,W,v,Ie,at]),Mu=j!=null&&gt!=="detached",Pi=j!=null&&gt==="tooltip"&&!!j.message,Bl=mn?"inline":"stacked",zu=ue&&D?p.jsx(ov,{value:Bl,children:p.jsx("span",{...{0:{className:"x1iyjqo2 xeuugli xb3r6kr x1yc453h"},1:{className:"x1iyjqo2 xeuugli xb3r6kr x1yc453h xmz0i5r"}}[!!mn<<0],children:D(ue)})}):p.jsxs(p.Fragment,{children:[!L&&ue?.icon!=null&&Is(ue.icon,{size:"sm",color:"secondary"}),p.jsx("span",{className:"x1iyjqo2 xeuugli xb3r6kr xlyipyv xuxw1ft x1yc453h",children:ue?.label??Ze})]}),_t=K?p.jsxs("div",{children:[uo(),p.jsx(Ol,{}),p.jsx("div",{ref:be,id:St,role:"listbox","aria-labelledby":vt,...ta.menuProps,...{0:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo x1j4r261"},2:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo xge0x1e xish69e"},1:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x1j4r261 x2hg6jq"},3:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo xge0x1e xish69e x2hg6jq"}}[!!Ma<<1|(ze.activePresentation==="popover"&&E!=="ghost")<<0],children:vs()})]}):p.jsx("div",{ref:be,id:St,role:"listbox",...ta.menuProps,"aria-label":ze.activePresentation==="bottom-sheet"?s:void 0,"aria-labelledby":ze.activePresentation==="bottom-sheet"?void 0:vt,"aria-activedescendant":ze.isOpen&&ar>=0?Gr(ar):void 0,tabIndex:ze.activePresentation==="bottom-sheet"?0:void 0,onKeyDown:ze.activePresentation==="bottom-sheet"?kt:void 0,...{0:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo x1j4r261"},4:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1hc1fzr x1ey1afo xge0x1e xish69e"},2:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo x1j4r261 x2hg6jq"},6:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1hc1fzr x1ey1afo xge0x1e xish69e x2hg6jq"},1:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj x1j4r261 xg01cxk xq2gx43"},5:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x7a5moj xge0x1e xish69e xg01cxk xq2gx43"},3:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k x1j4r261 x2hg6jq xg01cxk xq2gx43"},7:{className:"x9f619 xuyqlj2 x1odjw0f x1a2a7pz xu0wf1k xge0x1e xish69e x2hg6jq xg01cxk xq2gx43"}}[!!Ma<<2|(ze.activePresentation==="popover"&&E!=="ghost")<<1|(ze.activePresentation==="popover"&&!Un)<<0],children:vs()});let ho=null;ze.activePresentation==="bottom-sheet"?(!st||ze.isSheetPresented)&&(ho=p.jsx(xT,{isOpen:ze.isSheetOpen,onOpenChange:ze.onSheetOpenChange,finalFocusRef:Qn,initialFocusRef:K?Hn:be,label:s,children:_t})):st||(ho=qe.render(_t,{placement:ha,alignment:"start",offset:ln?void 0:kr["--spacing-1"],xstyle:[dr.popover,vf[ha]],style:Vn}));const Ho={...$e,id:vt,"aria-describedby":[ve,Jn].filter(Boolean).join(" ")||void 0,"aria-labelledby":Or,"aria-required":He?"true":void 0,"aria-invalid":j?.type==="error"?"true":void 0,"aria-busy":Aa||void 0,onKeyDown:Jr(kt,pe),onFocus:Ne=>{me?.(Ne),ze.onTriggerFocus(Ne)},tabIndex:f&&!ea?-1:0,...{0:{className:"x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x16khyan x1a2a7pz"},2:{className:"x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1a2a7pz xt0e3qv"},1:{className:"x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1ypdohk x16khyan x1a2a7pz xkh2ocl"},3:{className:"x78zum5 x6s0dn4 x1qughib x1txdalj x1iyjqo2 xs83m0k x1r8uery xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x15bjb6t x1heor9g x1a2a7pz xt0e3qv xkh2ocl"}}[!!st<<1|!!mn<<0]},ks=p.jsxs(p.Fragment,{children:[p.jsxs("div",{ref:Ne=>{Mn.current=Ne,qe.triggerRef(Ne),hr.ref(Ne)},onClick:bs,...a,...Te(Ee("selector",{variant:E,size:Nt,status:j?.type??null,disabled:f?"disabled":null,readonly:st?"readonly":null}),Se(vu.base,dr.triggerContainer,CH[Nt],E==="ghost"&&dr.triggerGhost,E==="ghost"&&Nr.backgroundImage,E==="ghost"&&Io.focusWithin,ze.isTriggerFocusRingSuppressed&&EH.pointerRestoredFocus,f&&vu.disabled,st&&dr.triggerReadOnly,E==="ghost"&&f&&dr.triggerGhostDisabled,E==="ghost"&&st&&dr.triggerGhostReadOnly,!ue&&dr.triggerPlaceholder,E!=="ghost"&&j&&ev[j.type],E!=="ghost"&&j&&!f&&tv[j.type],E!=="ghost"&&mn&&nv.inGroup,mn&&dr.triggerInGroup,te),fe,B),children:[L&&Is(L,{size:"sm",color:"secondary"}),mn&&p.jsx(lo,{id:ut,children:s}),st&&p.jsx(lo,{id:tn,children:t("@astryx.input.readOnly")}),p.jsx("button",{...Ho,ref:an,type:"button",role:st||!K?"combobox":void 0,"aria-haspopup":st?void 0:ze.activePresentation==="bottom-sheet"?"dialog":"listbox","aria-expanded":st?!1:ze.isOpen,"aria-controls":st?void 0:St,"aria-readonly":st||void 0,"aria-activedescendant":!st&&!K&&ze.isOpen&&ar>=0?Gr(ar):void 0,disabled:f&&!ea,"aria-disabled":ea?"true":void 0,children:zu}),I!=null&&p.jsx("input",{type:"hidden",name:I,value:k??"",disabled:f}),Aa&&p.jsx(Fo,{size:"sm"}),wt&&k!=null&&!f&&!st&&p.jsx(wq,{...pt,label:t("@astryx.selector.clearLabel",{label:s}),onClick:pa}),Mu?Pi?p.jsx("button",{ref:nn.ref,type:"button","aria-label":t(jH[j.type]),"aria-describedby":nn.describedBy,...pt,onClick:Ne=>Ne.stopPropagation(),...Se(Io.focusVisible,dr.statusButton),children:p.jsx(jt,{icon:RE[j.type],size:"sm",color:AE[j.type],xstyle:dr.triggerIcon})}):p.jsx(jt,{icon:RE[j.type],size:"sm",color:AE[j.type],xstyle:dr.triggerIcon}):st?null:p.jsx(jt,{icon:"chevronDown",size:"sm",color:"secondary",xstyle:[dr.triggerIcon,dr.triggerIconRotation,ze.isOpen&&dr.triggerIconOpen],...Ee("selector-indicator-icon",{state:ze.isOpen?"expanded":"collapsed"})})]}),ho,Pi&&nn.renderTooltip(j?.message??""),ea&&hr.renderTooltip(y)]});return mn?ks:p.jsx(Ru,{label:s,isLabelHidden:i,description:c,inputID:vt,descriptionID:c?Tt:void 0,isOptional:u,isRequired:d,isDisabled:f,status:j?{type:j.type,message:j.message,messageID:j.message?Me:void 0}:void 0,statusVariant:gt,labelTooltip:z,width:Q,...Pe,children:ks})}cu.displayName="Selector";const zE=new Map;function yT(e){const t=e??"";let a=zE.get(t);if(a===void 0){let s;try{s=new Intl.NumberFormat(e)}catch{s=new Intl.NumberFormat("en")}const i=s.formatToParts(12345.6),c=s.formatToParts(11111111111).filter(d=>d.type==="integer").map(d=>d.value.length),u=c.length>1;a={group:(i.find(d=>d.type==="group")?.value??",").normalize("NFKC"),decimal:i.find(d=>d.type==="decimal")?.value??".",primaryGroupSize:u?c[c.length-1]:3,secondaryGroupSize:u?c[c.length-2]:3},zE.set(t,a)}return a}const bT=new RegExp("\\p{Nd}","u"),NE=new RegExp("\\p{Sc}","u"),RH=/[\u200B-\u200D\u200E\u200F\u061C\u2066-\u2069\uFEFF]/g,LE="−‒–-",AH=",.' ’٫٬",MH=new RegExp(`^[0-9${AH}]+$`),zH=/^(?:\d+\.?\d*|\.\d+)$/;function NH(e){const t=e.codePointAt(0);if(t==null)return null;for(let a=t;t-a<10;a--)if(!bT.test(String.fromCodePoint(a-1)))return t-a;return null}function LH(e){let t="";for(const a of e){if(!bT.test(a)){t+=a;continue}const s=NH(a);if(s==null)return null;t+=String(s)}return t}function DE(e,t,a,s,i,c){let u=e,d=null;if(a!==""&&e.includes(a)){const g=e.indexOf(a);if(e.includes(a,g+a.length)||(u=e.slice(0,g),d=e.slice(g+a.length),!/^\d*$/.test(d)))return null}let f;if(t!==""&&u.includes(t)){const g=u.split(t);if(g.length-1<c||!g.every(k=>/^\d+$/.test(k)))return null;const y=g[0];if(g[g.length-1].length!==s||y.length>i)return null;for(let k=1;k<g.length-1;k++)if(g[k].length!==i)return null;f=g.join("")}else{if(!/^\d*$/.test(u))return null;f=u}return f===""&&(d==null||d==="")?null:d==null?f:`${f}.${d}`}function DH(e){return/^[\s'\u2019]$/.test(e)}function OH(e,t){if(!MH.test(e))return null;const{group:a,decimal:s,primaryGroupSize:i,secondaryGroupSize:c}=yT(t),u=DE(e,a,s,i,c,1);if(u!=null)return u;if(zH.test(e))return e;const d=[...new Set(e.replace(/\d/g,""))];if(d.length===0||d.length>2)return null;for(const f of d){const g=e.split(f).length-1,y=DH(f)?1:2;if(g<y)continue;const b=d.find(C=>C!==f)??"";if(b!==""&&e.split(b).length-1!==1)continue;const k=DE(e,f,b,3,3,y);if(k!=null)return k}return null}function IH(e,t){const a=LH(e.normalize("NFKC").replace(RH,""));if(a==null)return null;let s=a.trim(),i=1;const c=/^\((.*)\)$/s.exec(s);c&&(i=-1,s=c[1].trim()),s=OE(s);let u=!1;const d=new RegExp(`^([+${LE}])\\s*`).exec(s);if(d)u=!0,i=d[1]==="+"?i:-i,s=s.slice(d[0].length);else{const v=new RegExp(`\\s*([+${LE}])$`).exec(s);v&&(u=!0,i=v[1]==="+"?i:-i,s=s.slice(0,s.length-v[0].length))}if(c&&u)return null;s=OE(s);let f=0;const g=/\s*[eE]\s*([+-]?\d+)$/.exec(s);g&&(f=Number(g[1]),s=s.slice(0,s.length-g[0].length));const y=s.trim();if(y==="")return null;const b=OH(y,t);if(b==null)return null;const k=Number(b);if(!Number.isFinite(k))return null;const C=f===0?k:Number((k*10**f).toPrecision(15));if(!Number.isFinite(C))return null;const w=i*C;return Object.is(w,-0)?0:w}function OE(e){let t=e.trim();return NE.test(t.charAt(0))&&(t=t.slice(1).trim()),NE.test(t.charAt(t.length-1))&&(t=t.slice(0,-1).trim()),t}function _H(e,t){const{decimal:a}=yT(t),s=String(e);return a==="."?s:s.replace(".",a)}function vT(e,t){const a=e.trim();if(a==="")return null;const s=IH(a,t.locale);return s==null||!Number.isFinite(s)||t.isIntegerOnly&&!Number.isInteger(s)?null:s}function PH(e,t){const a=vT(e,t);return a===null||t.min!=null&&a<t.min||t.max!=null&&a>t.max?null:a}function BH(e,t){if(e.trim()==="")return t.hasClear?{type:"clear"}:{type:"revert"};const a=vT(e,t);if(a===null)return{type:"revert"};const s=t.min==null?null:t.isIntegerOnly?Math.ceil(t.min):t.min,i=t.max==null?null:t.isIntegerOnly?Math.floor(t.max):t.max;if(s!=null&&i!=null&&s>i)return{type:"revert"};const c=s!=null&&a<s?s:i!=null&&a>i?i:a;return{type:"commit",value:c,didClamp:c!==a}}const Ci={wrapper:{kY2c9j:"x1vjfegm",kLKAdn:"x4kswst",kGO01o:"x3jnfsm",kZCmMZ:"x1jni19p",kwRFfy:"x17sfb9",$$css:!0},wrapperWithNumberSteppers:{kwRFfy:"xyri2b",$$css:!0},numberStepperButton:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kUk6DE:"x98rzlu",kAzted:"x2lwn1j",kmVPX3:"x1717udv",kogj98:"x1ghz6dp",kMzoRj:"xc342km",ksu8eU:"xng3xce",kMwMTN:"xv9yike",kWkggS:"x10xzikg",kkrTdU:"x1ypdohk x16khyan",kI3sdo:"x1a2a7pz",$$css:!0},numberStepperButtonDisabled:{kMwMTN:"xqa6c3m",kkrTdU:"xt0e3qv",kKwaWg:"x18o3ruo",$$css:!0},decrementButton:{kEafiO:"x11xkdxz",kPef9Z:"x13fuv20",kLZC3w:"x1mly77v",$$css:!0},incrementIcon:{k3aq6I:"x19jd1h0",$$css:!0}},FH={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function IE(e){const[t,a]=String(e).toLowerCase().split("e"),s=t.split(".")[1]?.length??0,i=a==null?0:Number(a);return Math.max(0,s-i)}function qH(e,t){return e==null||!Number.isFinite(e)||e<=0||t&&!Number.isInteger(e)?1:e}function HH({currentValue:e,direction:t,min:a,max:s,step:i,isIntegerOnly:c}){const u=qH(i,c),d=a!=null&&(!c||Number.isInteger(a))?a:0;let f;if(e==null)f=t===1?a??0:s??0,c&&(f=t===1?Math.ceil(f):Math.floor(f));else{const y=(e-d)/u,b=Number.EPSILON*Math.max(1,Math.abs(y))*4,k=t===1?Math.floor(y+b)+1:Math.ceil(y-b)-1;f=d+k*u}const g=Math.min(12,Math.max(IE(u),IE(d)));return f=Number(f.toFixed(g)),a!=null&&(f=Math.max(a,f)),s!=null&&(f=Math.min(s,f)),!Number.isFinite(f)||c&&!Number.isInteger(f)?e:Object.is(f,-0)?0:f}function zb({label:e,isLabelHidden:t=!1,description:a,isOptional:s=!1,isRequired:i=!1,isDisabled:c=!1,isReadOnly:u=!1,disabledMessage:d,startIcon:f,labelIcon:g,status:y,statusVariant:b="attached",size:k,onChange:C,value:w,placeholder:v,labelTooltip:S,hasAutoFocus:T=!1,htmlName:E,autoComplete:j,min:$,max:z,step:L,formatValue:I,isWheelEnabled:N=!0,hasNumberSteppers:D=!1,units:P,isIntegerOnly:K=!1,onFocus:oe,onBlur:V,hasClear:H,onEnter:Z,onKeyDown:F,width:q,containerXstyle:Q,containerClassName:ae,containerStyle:J,controlXstyle:se,controlClassName:te,controlStyle:fe,ref:B,id:ee,"aria-describedby":me,...pe}){const{rest:ve,container:ye}=vm("NumberInput",pe,{containerXstyle:Q,containerClassName:ae,containerStyle:J}),Oe=Ka(),ie=pn(),$e=zN(),Pe=Af({isRequired:i,isOptional:s}),He=Cu(k,"md"),Ze=x.useId(),Fe=ee??Ze,Ie=x.useId(),at=x.useId(),wt=x.useId(),Nt=x.useId(),gt=x.useRef(null),st=x.useRef(null),Lt=bm(),[nt,vt]=x.useState(null),[St,xt]=x.useState(!1),Tt=c&&!!d,Me=Os({placement:"above",focusTrigger:"always",isEnabled:Tt}),{statusIcon:ut,describedBy:tn}=Zj({status:y,statusVariant:b,isInGroup:!!Lt}),{ariaLabelledBy:qn,ariaDescribedBy:Mn}=i1(Ie,[a?at:null,!Lt&&b!=="tooltip"&&y?.message?wt:null,tn,P?Nt:null,Tt?Me.describedBy:null],Lt),Qn=x.useCallback(Y=>PH(Y,{min:$,max:z,isIntegerOnly:K,locale:$e}),[K,$e,z,$]),an=x.useMemo(()=>w==null?"":I?.(w)??String(w),[I,w]),Hn=x.useMemo(()=>nt!==null?nt:w==null?"":St?_H(w,$e):an,[an,St,$e,nt,w]),mn=x.useMemo(()=>nt===null||!nt.trim()?!0:Qn(nt)!==null,[nt,Qn]),_n=x.useCallback(Y=>{c||u||vt(Y.target.value)},[c,u]),ft=x.useCallback(Y=>{xt(!0),oe?.(Y)},[oe]),Ue=x.useCallback(Y=>{if(nt===null)return;const ue=BH(nt,{min:$,max:z,isIntegerOnly:K,locale:$e,hasClear:!!H});(Y==="blur"||ue.type==="commit"&&ue.didClamp)&&vt(null),ue.type==="clear"?H&&w!=null&&C(null):ue.type==="commit"&&ue.value!==w&&C(ue.value)},[H,K,$e,z,$,C,nt,w]),Cn=x.useCallback(Y=>{Ue("blur"),xt(!1),V?.(Y)},[Ue,V]),bn=x.useMemo(()=>nt===null?w??null:nt.trim()===""?null:Qn(nt)??w??null,[Qn,nt,w]),vn=x.useCallback(Y=>HH({currentValue:bn,direction:Y,min:$,max:z,step:L,isIntegerOnly:K}),[K,z,$,L,bn]),Lr=x.useCallback(Y=>{if(c||u)return;const ue=vn(Y);ue!=null&&(vt(null),ue!==w&&C(ue))},[vn,c,u,C,w]),Aa=x.useCallback(Y=>{if(yf(Y.nativeEvent))return;if(!(Y.altKey||Y.ctrlKey||Y.metaKey||Y.shiftKey)&&(Y.key==="ArrowUp"||Y.key==="ArrowDown")){if(F?.(Y),Y.defaultPrevented)return;Y.preventDefault(),Lr(Y.key==="ArrowUp"?1:-1);return}Y.key==="Enter"&&(Ue("Enter"),Z?.()),F?.(Y)},[Ue,Z,F,Lr]),Dr=x.useCallback(Y=>{if(Y==null||!N)return;const ue=be=>{document.activeElement!==Y||c||u||be.deltaY===0||be.altKey||be.ctrlKey||be.metaKey||be.shiftKey||(be.preventDefault(),be.stopPropagation(),Lr(be.deltaY<0?1:-1))};return Y.addEventListener("wheel",ue,{passive:!1}),()=>Y.removeEventListener("wheel",ue)},[c,u,N,Lr]),ea=x.useMemo(()=>o1(B,gt,Dr),[B,Dr]),hr=vn(1)!==bn,nn=vn(-1)!==bn,Or=x.useCallback(Y=>{H&&C(null),vt(null),!Y||Y.detail===0?gt.current?.focus():requestAnimationFrame(()=>{gt.current?.focus({preventScroll:!0})})},[H,C]),{onClick:Jn,onMouseUp:er}=J1({containerRef:st,inputRef:gt,disabled:c}),W=p.jsxs("div",{ref:Y=>{st.current=Y,Me.ref(Y)},onClick:Jn,onMouseUp:er,...Te(Ee("number-input",{size:He,status:y?.type??null,disabled:c?"disabled":null,readonly:u?"readonly":null}),Se(vu.base,Ci.wrapper,D&&Ci.wrapperWithNumberSteppers,FH[He],c&&vu.disabled,y&&ev[y.type],y&&!c&&tv[y.type],y&&Jj[y.type],Lt&&nv.inGroup,se),te,fe),children:[f&&Is(f,{size:"sm",color:"secondary"}),Lt&&p.jsx(lo,{id:Ie,children:e}),p.jsx("input",{...ve,ref:ea,id:Fe,name:c||I?void 0:E,type:"text",inputMode:K?"numeric":"decimal",role:"spinbutton",autoComplete:j,value:Hn,onChange:_n,onFocus:ft,onBlur:Cn,onKeyDown:Aa,placeholder:v,disabled:c&&!Tt,"aria-disabled":Tt?"true":void 0,readOnly:u||Tt||void 0,autoFocus:T,"data-autofocus":T||void 0,"aria-valuemin":$??void 0,"aria-valuemax":z??void 0,"aria-valuenow":w??void 0,"aria-valuetext":w==null||!I?void 0:an,"aria-describedby":[me,Mn].filter(Boolean).join(" ")||void 0,"aria-required":Pe?"true":void 0,"aria-invalid":y?.type==="error"||!mn?"true":void 0,"aria-labelledby":qn,...{0:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5"},2:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx x1tgivj0 xjbqb8w x1a2a7pz xeyghm5 xt0e3qv"},1:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx xjbqb8w x1a2a7pz xeyghm5 xv1l7n4"},3:{className:"x1lliihq x98rzlu xeuugli xc342km xng3xce x1717udv x9ynric xjm74w1 xf9zqsd xw6l6zx xjbqb8w x1a2a7pz xeyghm5 xt0e3qv xv1l7n4"}}[!!c<<1|!mn<<0]}),I&&E&&!c&&p.jsx("input",{type:"hidden",name:E,value:w==null?"":String(w)}),P&&p.jsx("span",{id:Nt,className:"x9ynric xjm74w1 xw6l6zx xv1l7n4 x2lah0s",children:P}),p.jsx(lo,{as:"div",role:"alert","aria-live":"assertive",children:mn?"":"Invalid number"}),H&&w!=null&&!c&&!u&&p.jsx(ym,{label:ie("@astryx.numberInput.clearLabel",{label:e}),onClick:Or}),ut,D&&p.jsxs("div",{className:"xkh2ocl x78zum5 xdt5ytf x2lah0s x12xnipv x5j3pgv x13i4uq0 xgbv0en x1t7ytsu x14ydlgx xb3r6kr x1g2gkjz xoao14b",children:[p.jsx("button",{type:"button",tabIndex:-1,...Oe,disabled:c||u||!hr,"aria-label":ie("@astryx.numberInput.incrementLabel",{label:e}),onPointerDown:Y=>Y.preventDefault(),onClick:()=>{gt.current?.focus(),Lr(1)},...Se(Ci.numberStepperButton,Nr.backgroundImage,(c||u||!hr)&&Ci.numberStepperButtonDisabled),children:p.jsx(jt,{icon:"numberInput:stepperDown",size:"xsm",color:"inherit",xstyle:Ci.incrementIcon})}),p.jsx("button",{type:"button",tabIndex:-1,...Oe,disabled:c||u||!nn,"aria-label":ie("@astryx.numberInput.decrementLabel",{label:e}),onPointerDown:Y=>Y.preventDefault(),onClick:()=>{gt.current?.focus(),Lr(-1)},...Se(Ci.numberStepperButton,Nr.backgroundImage,Ci.decrementButton,(c||u||!nn)&&Ci.numberStepperButtonDisabled),children:p.jsx(jt,{icon:"numberInput:stepperDown",size:"xsm",color:"inherit"})})]})]});return Lt?p.jsxs(p.Fragment,{children:[W,Tt&&Me.renderTooltip(d)]}):p.jsxs(Ru,{...ye,label:e,isLabelHidden:t,description:a,inputID:Fe,descriptionID:a?at:void 0,isOptional:s,isRequired:i,isDisabled:c,labelIcon:g,status:y?{type:y.type,message:y.message,messageID:y.message?wt:void 0}:void 0,statusVariant:b,labelTooltip:S,width:q,children:[W,Tt&&Me.renderTooltip(d)]})}zb.displayName="NumberInput";const Mx={all:["data-transfer"],status:()=>[...Mx.all,"status"]};function UH(){return rr("/api/data-transfer/status")}async function VH(e){try{const t=await fetch("/api/data-transfer/export",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({passphrase:e})});if(!t.ok)throw jf(await kT(t),t.status);const a=ZH(t),s=await t.blob(),i=URL.createObjectURL(s),c=document.createElement("a");return c.href=i,c.download=a,document.body.append(c),c.click(),c.remove(),setTimeout(()=>URL.revokeObjectURL(i),0),{ok:!0,data:{providerCount:_0(t,"x-foundry-provider-count"),captureCount:_0(t,"x-foundry-capture-count"),jobCount:_0(t,"x-foundry-job-count")}}}catch(t){return iv(t)}}function GH(){return new Promise(e=>{const t=document.createElement("input");t.type="file",t.accept=".foundry-backup,application/octet-stream",t.addEventListener("change",()=>{const a=t.files?.[0];e(a?{status:"selected",file:a,fileName:a.name}:{status:"canceled"})},{once:!0}),t.addEventListener("cancel",()=>{e({status:"canceled"})},{once:!0}),t.click()})}async function KH(e,t){try{return{ok:!0,data:await rr("/api/data-transfer/inspect",{method:"POST",headers:{"content-type":"application/octet-stream","x-foundry-filename":encodeURIComponent(e.name),"x-foundry-passphrase":encodeURIComponent(t)},body:e})}}catch(a){return iv(a)}}async function WH(e){const t=await fetch(`/api/data-transfer/imports/${e}`,{method:"DELETE"});if(!t.ok)throw jf(await kT(t),t.status)}async function YH(e){try{return{ok:!0,data:await rr(`/api/data-transfer/imports/${e}/commit`,{method:"POST"})}}catch(t){return iv(t)}}function XH(){location.reload()}function iv(e){const t=_j(e);return{ok:!1,error:{code:t.error.code,message:t.error.message}}}function ZH(e){const t=e.headers.get("content-disposition")??"";return/filename="([^"]+)"/u.exec(t)?.[1]??"foundry.foundry-backup"}function _0(e,t){return Number(e.headers.get(t)??0)}async function kT(e){try{return await e.json()}catch{return null}}const lv=x.createContext(null);lv.displayName="DialogContext";function QH(){return x.use(lv)}function _E(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e.isContentEditable||yu()!=="pointer"){e.focus();return}e.matches(":focus-visible")&&e.blur(),e.focus({focusVisible:!1})}function JH(e,t=16){const a=e.getBoundingClientRect(),s=a.left+a.width/2-window.innerWidth/2,i=a.top+a.height/2-window.innerHeight/2,c=Math.sqrt(s*s+i*i)||1;return{x:Math.round(s/c*t),y:Math.round(i/c*t)}}const Lo={dialog:{kVAEAm:"xixxii4",kogj98:"x1bpp3o7",kmVPX3:"x1717udv",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"x10xzikg","--_dialog-radius":"xvuvksw",kaIpWk:"xuacgfc",kGVxlE:"x1kcpxr7",k1xSpc:"x1s85apg",kXwgrk:"xdt5ytf",kZKoxP:"xg7h5cd",kZeWKH:"xish69e",kSiTet:"xg01cxk",k44tkh:"xqgcaz",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},open:{k1xSpc:"x78zum5",kSiTet:"x1hc1fzr",kKVMdj:"x1ewfqum x1aquc0h",$$css:!0},backdrop:{kGyWv1:"xnixb3f",kba3nw:"x1abwkk1",$$css:!0},fullscreen:{kzqmXN:"x1o6l61p",kZKoxP:"xtdtrs8",ks0D6T:"xlbgzzq",kskxy:"x1wj9ous",kaIpWk:"x2u8bby",kogj98:"x1ghz6dp",kpwlN0:"x10a8y8t",$$css:!0},fullscreenOpen:{kKVMdj:"xqcmdr3 x1aquc0h",$$css:!0},fullscreenSafeArea:{kLKAdn:"x15ld1ci",kGO01o:"x1rgxemn",kZCmMZ:"xqmdmw x1i7f2ot",kwRFfy:"x1by8st6 xtjjor6",$$css:!0},inner:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kUk6DE:"x12lumcd",kAzted:"x2lwn1j",kVQacm:"xb3r6kr",kaIpWk:"x1pjcqnp",$$css:!0},inlineWrapper:{kmVPX3:"x1717udv",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"x10xzikg","--_dialog-radius":"xvuvksw",kaIpWk:"xuacgfc",kGVxlE:"x1kcpxr7",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kZKoxP:"xg7h5cd",kZeWKH:"xish69e",$$css:!0}},PE=kr["--spacing-4"],eU=`calc(100dvw - ${PE} - ${PE})`,tU=`min(100%, ${eU})`;function BE(e){return typeof e=="number"?`${e}px`:e}function nU(e,t){return{width:BE(e),maxWidth:tU,maxHeight:BE(t)}}const rU={kogj98:"x1ghz6dp",$$css:!0},P0={sizing:(e,t,a)=>[{kzqmXN:e!=null?"x5lhr3w":e,ks0D6T:t!=null?"xf68679":t,kskxy:a!=null?"x1jols5v":a,$$css:!0},{"--x-width":(s=>typeof s=="number"?s+"px":s??void 0)(e),"--x-maxWidth":(s=>typeof s=="number"?s+"px":s??void 0)(t),"--x-maxHeight":(s=>typeof s=="number"?s+"px":s??void 0)(a)}],position:(e,t,a,s)=>[rU,{k87sOh:e!=null?"xjbys53":e,kLqNvP:t!=null?"x1lxsm33":t,kt4wiu:a!=null?"xqxgn94":a,krVfgx:s!=null?"x1nqzi6q":s,$$css:!0},{"--x-top":(i=>typeof i=="number"?i+"px":i??void 0)(e),"--x-insetInlineStart":(i=>typeof i=="number"?i+"px":i??void 0)(t),"--x-insetInlineEnd":(i=>typeof i=="number"?i+"px":i??void 0)(a),"--x-bottom":(i=>typeof i=="number"?i+"px":i??void 0)(s)}]};function Tp(e){return typeof e=="number"?`${e}px`:e}function aU(e){const{top:t,bottom:a,start:s,end:i}=e;return{top:t!==void 0?Tp(t):"auto",bottom:a!==void 0?Tp(a):"auto",insetInlineStart:s!==void 0?Tp(s):"auto",insetInlineEnd:i!==void 0?Tp(i):"auto"}}function Nf({isOpen:e,isInline:t=!1,onOpenChange:a,width:s=400,maxHeight:i="75dvh",position:c,variant:u="standard",purpose:d="info",padding:f,children:g,xstyle:y,className:b,style:k,ref:C,...w}){const v=f==null,S=f??4,T=c1[S],E=u==="fullscreen",j=E?null:nU(s,i),$=x.useId(),z=x.useMemo(()=>({isInline:t,titleId:$}),[t,$]),L=w["aria-label"]!=null||w["aria-labelledby"]!=null,I=x.useRef(null),N=x.useCallback(se=>{if(I.current=se,!se||L)return;se.querySelector(`#${CSS.escape($)}`)!=null?se.setAttribute("aria-labelledby",$):se.removeAttribute("aria-labelledby")},[$,L]),D=Zn(C,N),P=x.useRef(null);Gx();const K=d!=="required",oe=d==="info";x.useEffect(()=>{if(t)return;const se=I.current;if(se)if(e){P.current=document.activeElement;const te=P.current;if(te&&te!==document.body){const fe=JH(te);se.style.setProperty("--dialog-dir-x",`${fe.x}px`),se.style.setProperty("--dialog-dir-y",`${fe.y}px`)}else se.style.setProperty("--dialog-dir-x","0px"),se.style.setProperty("--dialog-dir-y","16px");if(!se.open){se.showModal();const fe=se.querySelector("[data-autofocus]");fe&&_E(fe)}}else se.open&&se.close(),P.current&&_E(P.current),P.current=null},[e,t]),AB(I,e&&!t),lq(e&&!t);const{shouldDismissOnCloseRequest:V}=Wx({isActive:e,isEnabled:!t,escapeBehavior:K?"close":"block",onDismiss:()=>{a(!1)}}),H=x.useRef(!1);x.useEffect(()=>{const se=I.current?.querySelector(`#${CSS.escape($)}`)!=null;e&&!t&&!L&&!se&&!H.current&&(H.current=!0,ms())},[e,t,L,$]);const Z=se=>{se.target===se.currentTarget&&oe&&a(!1)},F=se=>{se.preventDefault(),V()&&K&&a(!1)},q=p.jsx("div",{...Se(Lo.inner,...M1(v?{useThemeDefault:"dialog",maxHeight:j?.maxHeight}:{paddingInnerX:T,paddingInnerY:T,paddingOuterX:T,paddingOuterY:T,maxHeight:j?.maxHeight}),!v&&S!==4&&_l[S],!v&&S!==4&&Ml[S],!v&&S!==4&&Mi[S],!v&&S!==4&&_o[S],E&&v&&Lo.fullscreenSafeArea),children:p.jsx(lv,{value:z,children:g})}),Q=c!=null&&!E,{open:ae,...J}=w;return t?e?p.jsx("div",{...J,...Te(Ee("dialog",{variant:u}),Se(xu.reset,mu.reset,Lo.inlineWrapper,tf.reset,j&&P0.sizing(j.width,j.maxWidth,j.maxHeight),E&&Lo.fullscreen,y),b,k),"data-testid":w["data-testid"],children:p.jsx(nf,{children:p.jsx(pu,{children:q})})}):null:p.jsx("dialog",{ref:D,...J,...Te(Ee("dialog",{variant:u}),Xn.focusVisible(xu.reset,mu.reset,Lo.dialog,tf.reset,e&&Lo.open,Lo.backdrop,j&&P0.sizing(j.width,j.maxWidth,j.maxHeight),Q&&(()=>{const se=aU(c);return P0.position(se.top,se.insetInlineStart,se.insetInlineEnd,se.bottom)})(),E&&Lo.fullscreen,E&&e&&Lo.fullscreenOpen,y),b,k),onClick:Z,onCancel:F,"aria-modal":"true",...d==="required"?{role:"alertdialog"}:void 0,children:p.jsx(nf,{children:p.jsx(pu,{children:q})})})}Nf.displayName="Dialog";const sU={titleFocusable:{kI3sdo:"x1a2a7pz",$$css:!0}};function Sm({title:e,subtitle:t,onOpenChange:a,startContent:s,endContent:i,endContentEdgeCompensation:c,hasDivider:u,xstyle:d,className:f,style:g,ref:y,...b}){const k=pn(),C=x.useRef(null),w=QH(),v=w?.isInline!==!0,S=w?.titleId,T=t!=null&&typeof t!="boolean"&&t!=="",E=c==null?a!=null:c==="block"||c==="all",j=c==null?a!=null:c==="inline"||c==="all";return x.useEffect(()=>{v&&C.current&&C.current.focus()},[v]),p.jsx(sx,{ref:y,hasDivider:u,xstyle:d,className:f,style:g,...b,children:p.jsxs("div",{...Te(Ee("dialog-header"),{className:"x78zum5 x1cy8zhl x1qughib xjcht0a"}),children:[s&&p.jsx("div",{...Te(Ee("dialog-header-start-content"),{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s"}),children:s}),p.jsxs("div",{...Te(Ee("dialog-header-title-block"),{className:"x78zum5 xdt5ytf xsn7fz1 x98rzlu xeuugli xqixskq"}),children:[p.jsx(_i,{ref:C,id:S,level:2,tabIndex:-1,xstyle:sU.titleFocusable,children:e}),T&&p.jsx(tt,{type:"body",size:"sm",color:"secondary",children:t})]}),(i||a)&&p.jsxs("div",{...Te(Ee("dialog-header-end-content"),{0:{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s"},2:{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s xhzvc8f"},1:{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s x3kzqx6"},3:{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s xhzvc8f x3kzqx6"}}[!!E<<1|!!j<<0]),children:[i,a&&p.jsx(Bt,{variant:"ghost",label:k("@astryx.dialog.close"),tooltip:k("@astryx.dialog.close"),icon:p.jsx(jt,{icon:"close",color:"inherit",...Ee("dialog-header-close-icon")}),onClick:()=>{a?.(!1)},isIconOnly:!0})]})]})})}Sm.displayName="DialogHeader";function wT({passphrase:e,confirmation:t,onPassphraseChange:a,onConfirmationChange:s,onEnter:i,isDisabled:c}){const{t:u}=en();return p.jsxs(ct,{gap:3,children:[p.jsx(Ls,{label:u("dataTransfer.passphrase"),description:u("dataTransfer.passphraseDescription"),type:"password",size:"sm",width:"100%",value:e,onChange:a,isDisabled:c,isRequired:!0,hasAutoFocus:!0,autoComplete:"new-password"}),p.jsx(Ls,{label:u("dataTransfer.confirmPassphrase"),type:"password",size:"sm",width:"100%",value:t,onChange:s,onEnter:i,isDisabled:c,isRequired:!0,status:e!==t&&t.length>0?{type:"error",message:u("dataTransfer.passphraseMismatch")}:void 0,autoComplete:"new-password"})]})}function oU({onClose:e}){const{t}=en(),a=qo(),[s,i]=x.useState(""),[c,u]=x.useState(""),d=Qr({mutationFn:()=>VH(s),onSuccess:g=>{if(!g.ok){a({body:t(Ab(g.error.code)),type:"error",uniqueID:`data-transfer-export-${g.error.code}`});return}a({body:t("dataTransfer.exported"),uniqueID:"data-transfer-exported"}),e()},onError:()=>{a({body:t("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-export-error"})}}),f=()=>{s!==c||s.length===0||d.isPending||d.mutate()};return p.jsx(Nf,{isOpen:!0,onOpenChange:g=>{!g&&!d.isPending&&e()},width:560,padding:5,purpose:"form",children:p.jsx(Oi,{header:p.jsx(Sm,{title:t("dataTransfer.exportTitle"),subtitle:t("dataTransfer.exportSubtitle"),onOpenChange:()=>{d.isPending||e()}}),content:p.jsx(Ii,{children:p.jsxs(ct,{gap:5,children:[p.jsx(wT,{passphrase:s,confirmation:c,onPassphraseChange:i,onConfirmationChange:u,onEnter:f,isDisabled:d.isPending}),p.jsx(Po,{padding:2,variant:"muted",children:p.jsxs(Ut,{gap:2,align:"start",children:[p.jsx(jt,{icon:B_,size:"sm",color:"secondary"}),p.jsx(tt,{type:"supporting",color:"secondary",children:t("dataTransfer.passphraseWarning")})]})})]})}),footer:p.jsx(am,{children:p.jsxs(Ut,{gap:2,hAlign:"end",children:[p.jsx(Bt,{label:t("dataTransfer.cancel"),variant:"ghost",size:"sm",isDisabled:d.isPending,onClick:e}),p.jsx(Bt,{label:t("dataTransfer.exportAction"),variant:"primary",size:"sm",isLoading:d.isPending,isDisabled:s!==c||s.length===0,onClick:f})]})})})})}function Gc({label:e,value:t}){return p.jsxs(Ut,{gap:2,children:[p.jsx(tt,{type:"supporting",color:"secondary",children:e}),p.jsx(tt,{type:"label",children:String(t)})]})}function iU({file:e,fileName:t,onClose:a}){const{t:s,locale:i}=en(),c=qo(),[u,d]=x.useState(""),[f,g]=x.useState(""),[y,b]=x.useState(null),[k,C]=x.useState("passphrase"),[w,v]=x.useState(!1),S=Qr({mutationFn:()=>KH(e,u),onSuccess:P=>{if(!P.ok){c({body:s(Ab(P.error.code)),type:"error",uniqueID:`data-transfer-import-${P.error.code}`});return}b(P.data),d(""),C("preview")},onError:()=>{c({body:s("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-inspect-error"})}}),T=Qr({mutationFn:P=>YH(P),onSuccess:P=>{if(!P.ok){c({body:s(Ab(P.error.code)),type:"error",uniqueID:`data-transfer-commit-${P.error.code}`}),C("preview");return}C("complete")},onError:()=>{c({body:s("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-commit-error"}),C("preview")}}),E=u===f&&u.length>0,j=k==="importing"||k==="complete",$=()=>{j||T.isPending||(y&&WH(y.importId),a())},z=()=>{!E||S.isPending||S.mutate()},L=()=>{!y||T.isPending||(C("importing"),T.mutate(y.importId))},I=()=>{v(!0);try{XH()}catch{v(!1)}},N=(()=>{switch(k){case"passphrase":return s("dataTransfer.importTitle");case"preview":return s("dataTransfer.previewTitle");case"importing":return s("dataTransfer.importingTitle");case"complete":return s("dataTransfer.restartTitle")}})(),D=y?new Intl.DateTimeFormat(i,{dateStyle:"medium",timeStyle:"short"}).format(new Date(y.exportedAt)):"";return p.jsx(Nf,{isOpen:!0,onOpenChange:P=>{P||$()},width:520,padding:5,purpose:j?"required":"form",children:p.jsx(Oi,{header:p.jsx(Sm,{title:N,subtitle:t,onOpenChange:j?void 0:$}),content:p.jsxs(Ii,{children:[k==="passphrase"&&p.jsxs(ct,{gap:4,children:[p.jsx(wT,{passphrase:u,confirmation:f,onPassphraseChange:d,onConfirmationChange:g,onEnter:z,isDisabled:S.isPending}),p.jsx(Po,{padding:3,variant:"muted",children:p.jsx(tt,{type:"supporting",color:"secondary",children:s("dataTransfer.importPassphraseDescription")})})]}),k==="preview"&&y&&p.jsxs(ct,{gap:4,children:[p.jsx(Po,{padding:3,variant:"muted",children:p.jsxs(ct,{gap:2,children:[p.jsx(Gc,{label:s("dataTransfer.exportedAt"),value:D}),p.jsx(Gc,{label:s("dataTransfer.appVersion"),value:y.appVersion}),p.jsx(Gc,{label:s("dataTransfer.schemaVersion"),value:y.dataFormatVersion}),p.jsx(Gc,{label:s("dataTransfer.providers"),value:y.providerCount}),p.jsx(Gc,{label:s("dataTransfer.captures"),value:y.captureCount}),p.jsx(Gc,{label:s("dataTransfer.jobs"),value:y.jobCount})]})}),p.jsx(tt,{type:"supporting",color:"secondary",children:s("dataTransfer.replaceWarning")})]}),k==="importing"&&p.jsxs(ct,{hAlign:"center",vAlign:"center",gap:4,paddingBlock:8,children:[p.jsx(Fo,{size:"lg",label:s("dataTransfer.importingDescription")}),p.jsx(tt,{type:"supporting",color:"secondary",children:s("dataTransfer.importingHint")})]}),k==="complete"&&p.jsxs(ct,{gap:3,children:[p.jsx(tt,{children:s("dataTransfer.restartDescription")}),p.jsx(tt,{type:"supporting",color:"secondary",children:s("dataTransfer.restartHint")})]})]}),footer:p.jsxs(am,{children:[k==="passphrase"&&p.jsxs(Ut,{gap:2,hAlign:"end",children:[p.jsx(Bt,{label:s("dataTransfer.cancel"),variant:"ghost",size:"sm",isDisabled:S.isPending,onClick:$}),p.jsx(Bt,{label:s("dataTransfer.inspectAction"),variant:"primary",size:"sm",isLoading:S.isPending,isDisabled:!E,onClick:z})]}),k==="preview"&&p.jsxs(Ut,{gap:2,hAlign:"end",children:[p.jsx(Bt,{label:s("dataTransfer.cancel"),variant:"ghost",size:"sm",onClick:$}),p.jsx(Bt,{label:s("dataTransfer.importAction"),variant:"destructive",size:"sm",isLoading:T.isPending,onClick:L})]}),k==="complete"&&p.jsx(Ut,{gap:2,hAlign:"end",children:p.jsx(Bt,{label:s("dataTransfer.restartAction"),variant:"primary",size:"sm",isLoading:w,onClick:I})})]})})})}function lU(e){const{t}=en(),[a,s]=x.useState(""),[i,c]=x.useState(0),u=a.trim().toLowerCase(),d=u.length>0,f=x.useMemo(()=>d?Yq.filter(y=>Xq(y,u,t)):[],[d,u,t]);return{query:a,setQuery:s,isActive:d,results:f,activeIndex:i,setActiveIndex:c,onKeyDown:y=>{if(a&&y.key==="Escape"){y.preventDefault(),s("");return}if(!(!d||f.length===0))switch(y.key){case"ArrowDown":{y.preventDefault(),c(b=>(b+1)%f.length);break}case"ArrowUp":{y.preventDefault(),c(b=>(b-1+f.length)%f.length);break}case"Enter":{y.preventDefault(),e(f[i].panel);break}}},activeResultId:d&&f.length>0?`settings-search-result-${i}`:void 0}}function Nb(e,t){const a=new Date(e);if(Number.isNaN(a.getTime()))return"";const{timeZone:s,pattern:i}=cU(t),c=uU(a,s),u={YYYY:c.year,MM:c.month,DD:c.day,HH:c.hour24,hh:c.hour12,mm:c.minute,ss:c.second,A:c.dayPeriod};return i.replaceAll(/YYYY|MM|DD|HH|hh|mm|ss|A/gu,d=>u[d]??d)}function co(e,t){return{...e,createdAt:Nb(e.createdAt,t),updatedAt:Nb(e.updatedAt,t)}}function cU(e){const t=e.workspace["language-region"];return{timeZone:t["time-zone"],pattern:t["time-format"]}}function uU(e,t){const a=FE(e,t,"h23"),s=FE(e,t,"h12");return{year:a.get("year")??"",month:a.get("month")??"",day:a.get("day")??"",hour24:a.get("hour")??"",hour12:s.get("hour")??"",minute:a.get("minute")??"",second:a.get("second")??"",dayPeriod:s.get("dayPeriod")??""}}function FE(e,t,a){const s=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:a,timeZone:t}).formatToParts(e);return new Map(s.filter(i=>i.type!=="literal").map(i=>[i.type,i.value]))}const Er={all:["captures"],list:e=>[...Er.all,"list",e],counts:()=>[...Er.all,"counts"],detail:e=>[...Er.all,"detail",e],jobs:e=>[...Er.all,"jobs",e]};async function dU(e="all"){const[t,a]=await Promise.all([rr(`/api/captures?filter=${e}`),Ps()]);return t.map(s=>co(s,a))}function fU(){return rr("/api/captures/counts")}async function hU(e){try{const[t,a]=await Promise.all([rr(`/api/captures/${e}`),Ps()]);return{ok:!0,data:{...t,capture:co(t.capture,a)}}}catch(t){return Au(t)}}async function pU(e){try{const[t,a]=await Promise.all([rr("/api/captures",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),Ps()]);return{ok:!0,data:{capture:co(t,a)}}}catch(t){return Au(t)}}async function ST(e){try{const[t,a]=await Promise.all([rr(`/api/captures/${e}/recapture`,{method:"POST"}),Ps()]);return{ok:!0,data:co(t,a)}}catch(t){return Au(t)}}async function xU(e){try{return await rr(`/api/captures/${e}`,{method:"DELETE"}),{ok:!0,data:null}}catch(t){return Au(t)}}async function mU(e,t){try{const[a,s]=await Promise.all([rr(`/api/captures/${e}/note`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({userNote:t})}),Ps()]);return{ok:!0,data:co(a,s)}}catch(a){return Au(a)}}async function gU(e){try{const[t,a]=await Promise.all([rr(`/api/captures/${e}/jobs`),Ps()]);return{ok:!0,data:t.map(s=>co(s,a))}}catch(t){return Au(t)}}function Au(e){const t=_j(e);return{ok:!1,error:{code:t.error.code,message:t.error.message}}}const oo={all:["providers"],list:()=>[...oo.all,"list"],detail:e=>[...oo.all,"detail",e]};async function yU(){const[e,t]=await Promise.all([rr("/api/providers"),Ps()]);return e.map(a=>({...co(a,t)}))}async function bU(e,t){const[a,s]=await Promise.all([rr(t?`/api/providers/${t}`:"/api/providers",{method:t?"PUT":"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),Ps()]);return co(a,s)}async function vU(e){try{const[t,a]=await Promise.all([rr(`/api/providers/${e}`),Ps()]);return co(t,a)}catch{return null}}async function qE(e,t){const[a,s]=await Promise.all([rr(`/api/providers/${e}/status`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({status:t})}),Ps()]);return co(a,s)}function kU(e){return rr("/api/providers/models",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}const Ld={theme:"system",language:"system",timeFormat:"YYYY-MM-DD HH:mm:ss",timezone:"America/Los_Angeles",library:{captures:{fetcher:null,maxAttempts:1,fetchConcurrency:2,firecrawl:{apiKey:""}}}};function wU(){const e=ja(),t=Va({queryKey:Li.current(),queryFn:hm}),a=Va({queryKey:["settings","config-folder"],queryFn:YB}),s=k=>e.setQueryData(Li.current(),k),i=k=>{s(k),e.invalidateQueries({queryKey:Er.all}),e.invalidateQueries({queryKey:oo.all})},c=Qr({mutationFn:ZB,onSuccess:s}),u=Qr({mutationFn:tF,onSuccess:s}),d=Qr({mutationFn:QB,onSuccess:s}),f=Qr({mutationFn:JB,onSuccess:i}),g=Qr({mutationFn:eF,onSuccess:i}),y={theme:t.data?.workspace.appearance["color-theme"]??Ld.theme,language:t.data?.workspace["language-region"].language??Ld.language,timeFormat:t.data?.workspace["language-region"]["time-format"]??Ld.timeFormat,timezone:t.data?.workspace["language-region"]["time-zone"]??Ld.timezone,library:t.data?.features.library??Ld.library},b=(k,C)=>{switch(k){case"theme":{c.mutate(C);break}case"language":{d.mutate(C);break}case"timeFormat":{f.mutate(C);break}case"timezone":{g.mutate(C);break}case"library":{u.mutate(C);break}}};return{settings:y,configFolderPath:a.data??"",update:b}}const HE=[];function ET({label:e,isLabelHidden:t=!1,description:a,status:s,value:i,onChange:c,changeAction:u,density:d="balanced",hasDividers:f=!1,isDisabled:g=!1,disabledMessage:y,isReadOnly:b=!1,children:k,ref:C,width:w,containerXstyle:v,containerClassName:S,containerStyle:T,controlXstyle:E,controlClassName:j,controlStyle:$,"aria-describedby":z,...L}){const{rest:I,container:N}=vm("CheckboxList",L,{containerXstyle:v,containerClassName:S,containerStyle:T}),D=x.useId(),P=x.useId(),K=x.useId(),oe=x.useId(),[,V]=x.useTransition(),H=i!==void 0,Z=i??HE,[F,q]=x.useOptimistic(Z),[Q,ae]=x.useOptimistic(HE,(B,ee)=>B.includes(ee)?B:[...B,ee]),J=g&&!!y,se=Os({placement:"above",focusTrigger:"always",isEnabled:J}),te=x.useCallback((B,ee)=>{c?.(B),u&&V(async()=>{q(B),ee!==void 0&&ae(ee),await u(B)})},[c,u,V,q,ae]),fe=x.useMemo(()=>({value:H?F:void 0,onChange:H?te:void 0,isDisabled:g,hasDisabledMessage:J,isReadOnly:b,loadingValues:Q}),[H,F,te,g,J,b,Q]);return p.jsxs(Ru,{label:e,isLabelHidden:t,description:a,inputID:D,labelID:P,isGroupLabel:!0,descriptionID:a?K:void 0,isDisabled:g,status:s?{type:s.type,message:s.message,messageID:s.message?oe:void 0}:void 0,statusVariant:"detached",width:w,xstyle:N.xstyle,...Te(Ee("checkbox-list"),{className:N.className,style:N.style}),children:[p.jsx(km,{value:fe,children:p.jsx("div",{...I,ref:Zn(C,se.ref),...Te(Se(E),j,$),role:"group","aria-labelledby":P,"aria-describedby":[z,a?K:null,s?.message?oe:null,J?se.describedBy:null].filter(Boolean).join(" ")||void 0,children:p.jsx(cf,{density:d,hasDividers:f,children:k})})}),J&&se.renderTooltip(y)]})}ET.displayName="CheckboxList";const SU={selected:{kWkggS:"xgcxg3y",$$css:!0}};function EU(e){const t=x.use(av);return p.jsx(wm,{...e,"aria-describedby":t??void 0})}function Lb({label:e,"aria-label":t,value:a,description:s,endContent:i,isDisabled:c=!1,isLoading:u=!1,isChecked:d,onCheck:f,ref:g,xstyle:y,className:b,style:k,onClick:C,...w}){const v=pn(),S=x.use(km);if(S&&S.value!==void 0&&a===void 0)throw new Error("CheckboxListItem requires a `value` prop when used inside CheckboxList with a value array.");const T=typeof e!="string",E=x.useId(),j=T&&t==null,$=t??(T?v("@astryx.checkboxList.item.checkbox"):e),I=(x.use(lf)?.density??"balanced")==="compact"?"sm":"md",N=(S?.isDisabled??!1)||c,D=S?.isReadOnly??!1,P=u||a!==void 0&&(S?.loadingValues?.includes(a)??!1);let K=!1;S&&S.value!==void 0&&a!==void 0?K=S.value.includes(a):d!==void 0&&(K=d);const oe=!D&&(S!=null||f!=null),V=x.useRef(null),H=oe||C!=null,Z=D&&C!=null?q=>{C(q),q.stopPropagation()}:C,F=()=>{N||D||P||(S&&S.value!==void 0&&a!==void 0?S.value.includes(a)?S.onChange?.(S.value.filter(Q=>Q!==a),a):S.onChange?.([...S.value,a],a):f?.(K!==!0))};return p.jsx(zf,{...w,ref:g,label:j?p.jsx("span",{id:E,children:e}):e,description:s,endContent:i,isDisabled:N,interactiveRef:H?V:void 0,"aria-busy":P||void 0,xstyle:[K===!0&&!N&&!D&&SU.selected,y],className:b,style:k,startContent:p.jsx(EU,{ref:V,label:$,"aria-labelledby":j?E:void 0,isLabelHidden:!0,value:K,onChange:()=>F(),onClick:Z,isDisabled:N,isReadOnly:D,isLoading:P,size:I})})}Lb.displayName="CheckboxListItem";async function CU(){const e=await fetch("/api/settings/skill-copy");if(!e.ok)throw jf(await CT(e),e.status);return await e.json()}async function $U(e){const t=await fetch("/api/settings/skill-copy",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({targets:e})});if(!t.ok)throw jf(await CT(t),t.status);return await t.json()}async function CT(e){try{return await e.json()}catch{return null}}function jU({isOpen:e,onClose:t}){const{t:a}=en(),s=qo(),[i,c]=x.useState(["agents"]),u=Va({queryKey:["settings","skill-copy-targets"],queryFn:CU,enabled:e}),d=Qr({mutationFn:()=>$U(i),onSuccess:f=>{s({body:`${a("settings.skillDownloaded")} ${f.installed.map(g=>g.destination).join(", ")}`,uniqueID:"skill-downloaded"}),t()},onError:()=>{s({body:a("settings.skillDownloadFailed"),type:"error",uniqueID:"skill-download-failed"})}});return p.jsx(Nf,{isOpen:e,onOpenChange:f=>{!f&&!d.isPending&&t()},width:520,padding:5,purpose:"form",children:p.jsx(Oi,{header:p.jsx(Sm,{title:a("settings.downloadSkill"),subtitle:a("settings.downloadSkillDescription"),onOpenChange:()=>{d.isPending||t()}}),content:p.jsx(Ii,{children:p.jsxs(ET,{label:a("settings.downloadSkillTargets"),value:i,onChange:f=>{c(f.filter(TU))},hasDividers:!0,width:"100%",children:[p.jsx(Lb,{label:".agents",value:"agents",description:UE(u.data,"agents")??a("settings.downloadSkillResolvingPath")}),p.jsx(Lb,{label:".claude",value:"claude",description:UE(u.data,"claude")??a("settings.downloadSkillResolvingPath")})]})}),footer:p.jsx(am,{children:p.jsxs(Ut,{gap:2,hAlign:"end",children:[p.jsx(Bt,{label:a("settings.skillCancel"),variant:"ghost",size:"sm",isDisabled:d.isPending,onClick:t}),p.jsx(Bt,{label:a("settings.downloadSkillAction"),variant:"primary",size:"sm",isLoading:d.isPending,isDisabled:i.length===0,onClick:()=>{d.mutate()}})]})})})})}function TU(e){return e==="agents"||e==="claude"}function UE(e,t){return e?.targets.find(a=>a.target===t)?.destination}function Em({title:e,children:t}){const a=(Array.isArray(t)?t:[t]).filter(s=>!!s);return p.jsxs(ct,{gap:1.5,children:[e!=null&&p.jsx(tt,{type:"supporting",weight:"semibold",color:"secondary",children:e}),p.jsx(Po,{padding:0,width:"100%",variant:"muted",children:p.jsx(ct,{as:"ul",role:"list",gap:0,children:a.map((s,i)=>{const c=i>0;return p.jsxs(ct,{as:"li",gap:0,children:[c&&p.jsx(Ol,{variant:"subtle"}),p.jsx(ct,{children:s})]},x.isValidElement(s)?s.key:void 0)})})})]})}const RU=4,Kd=260,Jp={panel:{k9g6sI:"x12h1iku",kanfag:"xisit5j",$$css:!0},line:{k1xSpc:"x78zum5",kXwgrk:"x1q0g3np x1cql26v",kGNEyG:"x6s0dn4 xp05mzj",kOIVth:"xjcht0a xpqkv5p",$$css:!0},textColumn:{ks0D6T:"x1lr1uin xet5618",$$css:!0},control:{kmuXW:"x2lah0s",$$css:!0}};function ps({title:e,titleAccessory:t,description:a,icon:s,control:i,detail:c}){return p.jsxs(ct,{padding:RU,gap:2,children:[p.jsxs(rm,{xstyle:Jp.line,"data-settings-line":!0,children:[p.jsx(Ni,{size:"fill",children:p.jsxs(Ut,{gap:2,align:"start",children:[p.jsx(ct,{paddingBlockStart:.5,children:p.jsx(jt,{icon:s,size:"sm",color:"secondary"})}),p.jsxs(ct,{gap:.5,xstyle:Jp.textColumn,children:[t==null?p.jsx(tt,{type:"label",children:e}):p.jsxs(Ut,{gap:1.5,align:"center",children:[p.jsx(tt,{type:"label",children:e}),t]}),a!=null&&p.jsx(tt,{type:"supporting",color:"secondary",children:a})]})]})}),i!=null&&p.jsx(ct,{"data-settings-control":!0,xstyle:Jp.control,children:i})]}),c]})}function AU({search:e}){const{t}=en();return p.jsx(Ls,{label:t("settings.search"),isLabelHidden:!0,placeholder:t("settings.search"),size:"sm",width:"100%",hasClear:!0,startIcon:q_,role:"combobox","aria-autocomplete":"list","aria-controls":"settings-search-results","aria-expanded":e.isActive&&e.results.length>0,"aria-activedescendant":e.activeResultId,value:e.query,onChange:e.setQuery,onKeyDown:e.onKeyDown})}function MU({results:e,activeIndex:t,onActiveIndexChange:a,onSelect:s}){const{t:i}=en();return e.length===0?p.jsxs(ct,{id:"settings-search-results",gap:.5,padding:2,children:[p.jsx(tt,{type:"label",children:i("settings.noResults")}),p.jsx(tt,{type:"supporting",color:"secondary",children:i("settings.trySearch")})]}):p.jsx(ct,{as:"ul",gap:0,id:"settings-search-results",role:"listbox","aria-label":"Search results",isScrollable:!0,children:e.map((c,u)=>p.jsx(zf,{id:`settings-search-result-${u}`,role:"option","aria-selected":u===t,label:i(c.titleKey),description:`${i(iT(c.panel).labelKey)} · ${i(c.descriptionKey)}`,startContent:p.jsx(jt,{icon:c.icon,size:"sm",color:"secondary"}),endContent:p.jsx(jt,{icon:d_,size:"sm",color:"secondary"}),isSelected:u===t,onMouseEnter:()=>a(u),onClick:()=>s(c)},c.id))})}const VE={sideNav:{kmuXW:"x2lah0s",$$css:!0},sideNavSection:{k8WAf4:"xce4md1",$$css:!0}};function zU({search:e,activePanel:t,onSelectPanel:a}){const{t:s}=en();return p.jsx(bx,{"aria-label":s("settings.search"),xstyle:VE.sideNav,topContent:p.jsx(AU,{search:e}),children:e.isActive?p.jsx(MU,{results:e.results,activeIndex:e.activeIndex,onActiveIndexChange:e.setActiveIndex,onSelect:i=>a(i.panel)}):oT.map(i=>p.jsx(kx,{title:s(i.labelKey),xstyle:VE.sideNavSection,children:i.panels.map(c=>p.jsx(lm,{label:s(c.labelKey),icon:p.jsx(jt,{icon:c.icon,size:"sm",color:"primary"}),size:"sm",isSelected:c.id===t,onClick:()=>a(c.id)},c.id))},i.labelKey))})}const NU=[{value:"light",labelKey:"settings.light",scheme:"light",icon:nP},{value:"dark",labelKey:"settings.dark",scheme:"dark",icon:U_},{value:"system",labelKey:"settings.system",scheme:"system",icon:k_}];function LU({value:e,onChange:t}){const{t:a}=en();return p.jsx(lT,{role:"radiogroup","aria-label":"Color theme",columns:{minWidth:96,max:3},gap:2,maxWidth:480,children:NU.map(s=>{const i=s.value===e,c=a(s.labelKey);return p.jsx(cT,{label:c,isSelected:i,padding:2,onChange:()=>{i||t(s.value)},children:p.jsxs(ct,{gap:1.5,children:[p.jsx(DU,{scheme:s.scheme}),p.jsxs(Ut,{gap:1,align:"center",justify:"center",children:[p.jsx(jt,{icon:s.icon,size:"sm",color:"secondary"}),p.jsx(tt,{type:"supporting",weight:i?"semibold":void 0,children:c})]})]})},s.value)})})}const ji={bar:{kZKoxP:"xqu0tyb",kzqmXN:"x3hqpx7",kaIpWk:"x1e6avla",kWkggS:"x7njt3n",$$css:!0},barWide:{kzqmXN:"x1vz4e29",$$css:!0},mutedSurface:{kWkggS:"xwmxj5m",$$css:!0},contentSurface:{kWkggS:"x10xzikg",$$css:!0},clip:{kVQacm:"xb3r6kr",kaIpWk:"xh6dtrn",$$css:!0},inert:{kfzvcC:"x47corl",$$css:!0}};function B0({mode:e}){return p.jsx(P1,{theme:iH,mode:e,children:p.jsxs(ct,{padding:2,gap:1.5,height:"100%",xstyle:ji.mutedSurface,children:[p.jsxs(ct,{gap:1,align:"center",children:[p.jsx(ct,{xstyle:[ji.bar,ji.barWide]}),p.jsx(ct,{xstyle:ji.bar})]}),p.jsx(Ni,{size:"fill",children:p.jsx(ct,{padding:2,gap:1,justify:"center",height:"100%",xstyle:ji.contentSurface,children:[0,1,2].map(t=>p.jsx(ct,{xstyle:ji.bar},t))})})]})})}function DU({scheme:e}){return p.jsx(uT,{ratio:3/2,xstyle:ji.inert,children:p.jsx(ct,{"aria-hidden":"true",height:"100%",xstyle:ji.clip,children:e==="system"?p.jsxs(Ut,{gap:0,height:"100%",children:[p.jsx(Ni,{size:"fill",children:p.jsx(B0,{mode:"light"})}),p.jsx(Ni,{size:"fill",children:p.jsx(B0,{mode:"dark"})})]}):p.jsx(B0,{mode:e})})})}function OU({settings:e,update:t}){const{t:a}=en();return p.jsx(ct,{gap:5,children:p.jsx(Em,{children:p.jsx(ps,{title:a("settings.colorTheme"),icon:H1,description:a("settings.colorThemeDescription"),detail:p.jsx(LU,{value:e.theme,onChange:s=>t("theme",s)})})})})}function IU({settings:e,update:t}){const{t:a}=en();return p.jsxs(Em,{children:[p.jsx(ps,{title:a("settings.language"),icon:I_,description:a("settings.languageDescription"),control:p.jsx(cu,{label:a("settings.language"),isLabelHidden:!0,size:"sm",width:Kd,value:e.language,onChange:s=>t("language",s),options:[{value:"system",label:a("settings.system")},{value:"en-US",label:"English"},{value:"zh-CN",label:"简体中文"},{value:"zh-TW",label:"繁體中文(台灣)"},{value:"ja-JP",label:"日本語"}]})}),p.jsx(ps,{title:a("settings.timeFormat"),icon:g$,description:a("settings.timeFormatDescription"),control:p.jsx(cu,{label:a("settings.timeFormat"),isLabelHidden:!0,size:"sm",width:Kd,value:e.timeFormat,onChange:s=>t("timeFormat",s),options:[{value:"YYYY-MM-DD HH:mm:ss",label:"YYYY-MM-DD HH:mm:ss"},{value:"YYYY-MM-DD",label:"YYYY-MM-DD"},{value:"YYYY/MM/DD HH:mm:ss",label:"YYYY/MM/DD HH:mm:ss"},{value:"DD/MM/YYYY HH:mm:ss",label:"DD/MM/YYYY HH:mm:ss"},{value:"MM/DD/YYYY hh:mm:ss A",label:"MM/DD/YYYY hh:mm:ss A"},{value:"HH:mm:ss",label:"HH:mm:ss"}]})}),p.jsx(ps,{title:a("settings.timezone"),icon:cm,description:a("settings.timezoneDescription"),control:p.jsx(cu,{label:a("settings.timezone"),isLabelHidden:!0,size:"sm",width:Kd,value:e.timezone,onChange:s=>t("timezone",s),options:[{value:"America/Los_Angeles",label:a("settings.losAngeles")},{value:"America/New_York",label:a("settings.newYork")},{value:"Asia/Shanghai",label:a("settings.shanghai")},{value:"Asia/Taipei",label:a("settings.taipei")},{value:"Asia/Tokyo",label:a("settings.tokyo")},{value:"UTC",label:a("settings.utc")}]})})]})}function _U({value:e,label:t,placeholder:a,onChange:s}){const[i,c]=x.useState(e);x.useEffect(()=>{c(e)},[e]);const u=()=>{i!==e&&s(i.trim())};return p.jsx(Ls,{label:t,isLabelHidden:!0,size:"sm",type:"password",value:i,onChange:c,onBlur:u,onEnter:u,placeholder:a,hasClear:!0,width:Kd})}function PU({settings:e,update:t}){const{t:a}=en(),s=e.library,i=s.captures,c=i.fetcher?i[i.fetcher].apiKey:"",u=f=>{t("library",{...s,captures:{...i,...f,firecrawl:{...i.firecrawl,...f.firecrawl}}})},d=f=>{i.fetcher&&u({[i.fetcher]:{apiKey:f}})};return p.jsxs(Em,{title:a("settings.captures"),children:[p.jsx(ps,{title:a("settings.capturesFetcher"),icon:x$,description:a("settings.capturesFetcherDescription"),control:p.jsx(cu,{label:a("settings.capturesFetcher"),isLabelHidden:!0,size:"sm",width:Kd,value:i.fetcher??"none",onChange:f=>{u({fetcher:f==="none"?null:f})},options:[{value:"none",label:a("settings.capturesNotConfigured")},...jq.map(f=>({value:f,label:a(tT(f))}))]})},"fetcher"),i.fetcher&&p.jsx(ps,{title:a("settings.capturesApiKey"),icon:D_,description:a("settings.capturesApiKeyDescription"),control:p.jsx(_U,{value:c,label:a("settings.capturesApiKey"),placeholder:a("settings.capturesApiKeyPlaceholder"),onChange:d},i.fetcher)},`api-key-${i.fetcher}`),p.jsx(ps,{title:a("settings.capturesMaxAttempts"),icon:h$,description:a("settings.capturesMaxAttemptsDescription"),control:p.jsx(zb,{label:a("settings.capturesMaxAttempts"),isLabelHidden:!0,size:"sm",value:i.maxAttempts,onChange:f=>{u({maxAttempts:f})},min:1,max:10,step:1,isIntegerOnly:!0,width:120})},"max-attempts"),p.jsx(ps,{title:a("settings.capturesConcurrency"),icon:p$,description:a("settings.capturesConcurrencyDescription"),control:p.jsx(zb,{label:a("settings.capturesConcurrency"),isLabelHidden:!0,size:"sm",value:i.fetchConcurrency,onChange:f=>{u({fetchConcurrency:f})},min:1,max:5,step:1,isIntegerOnly:!0,width:120})},"fetch-concurrency")]})}function BU(e){return p.jsx(ct,{gap:4,children:p.jsx(PU,{...e})})}function FU({configFolderPath:e,onOpenConfigFolder:t}){const{t:a}=en(),s=qo(),[i,c]=x.useState(!1),[u,d]=x.useState(!1),[f,g]=x.useState(!1),[y,b]=x.useState(null),k=Va({queryKey:Mx.status(),queryFn:UH}),C=k.data?.activeJobCount??0,w=k.isLoading||k.data?.isBusy===!0||C>0,v=a("settings.finishJobsBeforeTransfer"),S=C>0?v:a("settings.exportDataDescription"),T=C>0?v:a("settings.importDataDescription"),E=async()=>{d(!0);try{const j=await GH();j.status==="selected"&&b({file:j.file,fileName:j.fileName})}catch{s({body:a("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-select-file-error"})}finally{d(!1)}};return p.jsxs(p.Fragment,{children:[p.jsxs(Em,{children:[p.jsx(ps,{title:a("settings.downloadSkill"),icon:B1,description:a("settings.downloadSkillDescription"),control:p.jsx(Bt,{label:a("settings.downloadSkillAction"),icon:p.jsx(U1,{}),variant:"ghost",size:"sm",onClick:()=>g(!0)})}),p.jsx(ps,{title:a("settings.configFolder"),icon:F1,description:e,control:p.jsx(Bt,{label:a("settings.openConfigFolder"),icon:p.jsx(A_,{}),variant:"ghost",size:"sm",onClick:t})}),p.jsx(ps,{title:a("settings.exportData"),icon:Eb,description:S,control:p.jsx(Bt,{label:a("settings.exportDataAction"),icon:p.jsx(Eb,{}),variant:"ghost",size:"sm",isDisabled:w,onClick:()=>c(!0)})}),p.jsx(ps,{title:a("settings.importData"),icon:Sb,description:T,control:p.jsx(Bt,{label:a("settings.importDataAction"),icon:p.jsx(Sb,{}),variant:"ghost",size:"sm",isDisabled:w||u,isLoading:u,onClick:()=>{E()}})})]}),p.jsx(jU,{isOpen:f,onClose:()=>g(!1)}),i&&p.jsx(oU,{onClose:()=>c(!1)}),y&&p.jsx(iU,{file:y.file,fileName:y.fileName,onClose:()=>b(null)},`${y.fileName}:${y.file.lastModified}`)]})}const qU={contentTopAligned:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",kGO01o:"x1awphl8",kLKAdn:"xexx8yu",$$css:!0}};function HU({panel:e,settings:t,update:a,configFolderPath:s=""}){const i=(()=>{switch(e){case"appearance":return p.jsx(OU,{settings:t,update:a});case"language":return p.jsx(IU,{settings:t,update:a});case"library":return p.jsx(BU,{settings:t,update:a});case"advanced":return p.jsx(FU,{configFolderPath:s,onOpenConfigFolder:()=>{XB()}})}})();return p.jsx(Ii,{isScrollable:!0,padding:0,xstyle:qU.contentTopAligned,children:p.jsx(ct,{gap:4,xstyle:Jp.panel,children:i})})}function UU(){const[e]=gC(),[t,a]=x.useState(e.get("panel")==="library"?"library":Wq),{settings:s,configFolderPath:i,update:c}=wU(),u=lU(a),d=f=>{a(f),u.setQuery("")};return p.jsx(Oi,{height:"fill",start:p.jsx(zU,{search:u,activePanel:t,onSelectPanel:d}),content:p.jsx(HU,{panel:t,settings:s,update:c,configFolderPath:i})})}const VU={x1iwu4tg:"x1iwu4tg",$$css:!0},GU={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",$$css:!0}},KU={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",$$css:!0}},WU={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",kmVPX3:"x1i3ajwb",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",kmVPX3:"xfawy5m",$$css:!0}},YU={sm:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",k3aq6I:"xbryuvx",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",k3aq6I:"xbryuvx",$$css:!0}},XU={sm:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",k3aq6I:"xv5t66b xi9aj42",$$css:!0},md:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",k3aq6I:"x15481yp x12xz5k6",$$css:!0}},ZU={sm:{kAzted:"xisnujt",$$css:!0},md:{kAzted:"xjwf9q1",$$css:!0}},br={container:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",$$css:!0},containerLabelHidden:{kOIVth:"xxhr3t",$$css:!0},containerSpread:{kjj79g:"x1qughib",kzqmXN:"xh8yej3",$$css:!0},statusGap:{keoZOQ:"xtbrsbv",$$css:!0},switchWrapper:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kmuXW:"x2lah0s",kHBbk8:"xc8icb0",$$css:!0},input:{kVAEAm:"x10l6tqk",k87sOh:"xwa60dl",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",kSiTet:"xg01cxk",kkrTdU:"x1ypdohk x16khyan",kY2c9j:"x1vjfegm",$$css:!0},inputCoarse:{kjFi6P:"xkagaj0",kHzOjL:"x80b3aj",$$css:!0},inputDisabled:{kkrTdU:"xt0e3qv",$$css:!0},inputBusy:{kfzvcC:"x47corl",$$css:!0},track:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kaIpWk:"xjspbzw",k1ekBW:"x15406qy",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kB7OPa:"x9f619",kMzoRj:"xc342km x13rsnn2",ksu8eU:"xng3xce xx61lck",kVAM5u:"x1w1tqly",kKwaWg:"x1xm682w xowtp19 xphwcek x1p4304o",$$css:!0},trackFocus:{kI3sdo:"x1a2a7pz xafswnp",kInvED:"xwz5zln",$$css:!0},trackOff:{kWkggS:"xspzpui x1a8ae7b x9yvj25",$$css:!0},trackOn:{kWkggS:"x1ewilqj xcgwt1n x1jzqe4",$$css:!0},trackDisabled:{kSiTet:"xbyyjgo",kVAM5u:"xmnqt3w",$$css:!0},trackDisabledOff:{kWkggS:"xspzpui",$$css:!0},thumb:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kaIpWk:"xjspbzw",k1ekBW:"xh3q6i0",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kKwaWg:"x1xm682w xowtp19 xphwcek x1p4304o",$$css:!0},thumbOff:{kWkggS:"x10xzikg xwvh9j7",$$css:!0},thumbOn:{kWkggS:"x10xzikg x1sir5s4",$$css:!0},labelWrapper:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kjj79g:"xl56j7k",$$css:!0}},QU={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function $T({label:e,isLabelHidden:t=!1,description:a,onChange:s,changeAction:i,isLoading:c=!1,value:u,isDisabled:d=!1,htmlName:f,disabledMessage:g,isOptional:y=!1,isRequired:b=!1,onFocus:k,onBlur:C,labelIcon:w,labelTooltip:v,labelPosition:S="end",labelSpacing:T="hug",status:E,size:j="md",width:$,xstyle:z,className:L,style:I,ref:N,...D}){const P=pn(),K=x.useId(),oe=Ka(),V=x.useId(),H=x.useId(),Z=Af({isRequired:b,isOptional:y}),[,F]=x.useTransition(),[q,Q]=x.useOptimistic(u),ae=c||q!==u,J=$f();x.useEffect(()=>{ae&&J(P("@astryx.switch.loading"))},[J,ae,P]);const se=q===!0,te=d&&!!g,fe=Os({placement:"above",focusTrigger:"always",isEnabled:te}),B=[];a&&B.push(V),E?.message&&B.push(H),te&&B.push(fe.describedBy);const ee=B.length>0?B.join(" "):void 0,me=p.jsxs("div",{...Se(br.switchWrapper,GU[j]),children:[p.jsx("input",{ref:Zn(N,fe.positionRef),id:K,type:"checkbox",role:"switch",name:d?void 0:f,checked:se,disabled:d&&!te,"aria-disabled":te?"true":void 0,form:te?"":void 0,required:b,"aria-required":Z?"true":void 0,onChange:ve=>{if(d||ae)return;const ye=ve.target.checked;s?.(ye,ve),i&&!ve.defaultPrevented&&F(async()=>{Q(ye),await i(ye,ve)})},onFocus:k,onBlur:C,"aria-describedby":ee,"aria-invalid":E?.type==="error"?!0:void 0,"aria-busy":ae||void 0,...Se(br.input,io.centerInline("-50%"),br.inputCoarse,KU[j],d&&br.inputDisabled,ae&&br.inputBusy)}),p.jsx("div",{"aria-hidden":"true",...Te(Ee("switch",{checked:se?"checked":null,disabled:d?"disabled":null,size:j}),Se(br.track,WU[j],se?br.trackOn:br.trackOff,!d&&br.trackFocus,d&&br.trackDisabled,d&&!se&&br.trackDisabledOff)),children:p.jsx("div",{...Te(Ee("switch-thumb",{checked:se?"checked":null,size:j}),Se(br.thumb,se?XU[j]:YU[j],se?br.thumbOn:br.thumbOff)),children:ae&&p.jsx(Fo,{size:"sm"})})})]}),pe=p.jsx("div",{...Se(br.labelWrapper,ZU[j]),children:p.jsx(mm,{...Ee("switch-label"),label:e,inputID:K,isLabelHidden:t,isDisabled:d,isOptional:y,isRequired:b,labelIcon:w,labelTooltip:v,description:a,descriptionID:V})});return p.jsxs("div",{...Te(Ee("switch-field",{labelPosition:S!=="end"?S:void 0,labelSpacing:T!=="hug"?T:void 0}),Se($!=null&&QU.width($),z),L,I),...D,children:[p.jsxs("div",{ref:ve=>{fe.interactionRef(ve)},...d?void 0:oe,...Se(br.container,t&&br.containerLabelHidden,T==="spread"&&br.containerSpread,!d&&VU,!d&&Nr.pressedAlpha),children:[" ",S==="start"?p.jsxs(p.Fragment,{children:[pe,me]}):p.jsxs(p.Fragment,{children:[me,pe]})]}),E?.message&&p.jsx(gm,{type:E.type,message:E.message,id:H,variant:"detached",xstyle:br.statusGap}),te&&fe.renderTooltip(g)]})}$T.displayName="Switch";function jT({ref:e,href:t,isDisabled:a,LinkComponent:s,linkStyleProps:i,labelContent:c,icon:u,endContent:d,removeButton:f,onClick:g,onMouseUp:y,...b}){const k=x.useRef(null),C=x.useRef(null),{onClick:w,onMouseUp:v}=fm({containerRef:k,interactiveRef:C,href:t,disabled:a});return p.jsxs("span",{ref:Zn(e,k),...b,onClick:a?g:Jr(g,w),onMouseUp:a?y:Jr(y,v),children:[u,p.jsx(s,{ref:C,href:t,"aria-disabled":a||void 0,...i,children:c}),d,f]})}jT.displayName="TokenLink";const is={base:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",k8WAf4:"xt970qd",kMzoRj:"xc342km",ksu8eU:"xng3xce",kaIpWk:"xx3sua9",kMv6JI:"xjb2p0i",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",k63SB2:"x1e4wzip",khDVqt:"xuxw1ft",kybGjl:"x1hl2dhg",ks0D6T:"x193iq5w",kVQacm:"xb3r6kr",$$css:!0},interactive:{kkrTdU:"x1ypdohk x16khyan",k1ekBW:"x12qzo2w",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",kfzvcC:"x47corl",$$css:!0},removeButton:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kVAEAm:"x1n2onr6",kmVPX3:"x1717udv",k71WvV:"xkd40ry",kkrTdU:"x1ypdohk x16khyan",kaIpWk:"xjspbzw",kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",kMwMTN:"x1heor9g",k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",kv0HGH:"x1xsm0q9",$$css:!0}},Rp={sm:{kZKoxP:"xzydfjl",kGuDYH:"x141an7d",kg3NbH:"xf314gf",$$css:!0},md:{kZKoxP:"xrmxcn7",kg3NbH:"xf314gf",$$css:!0},lg:{kZKoxP:"x102lyln",kg3NbH:"xf314gf",$$css:!0}},Ap={default:{kWkggS:"x17x4s8c",kMwMTN:"x1tgivj0",$$css:!0},red:{kWkggS:"x1cibrc5",kMwMTN:"x1joocv1",$$css:!0},orange:{kWkggS:"x1e9xt6e",kMwMTN:"xm47u9q",$$css:!0},yellow:{kWkggS:"x1bo7t0x",kMwMTN:"xdhq94a",$$css:!0},green:{kWkggS:"x1sqjeoo",kMwMTN:"xltfdvo",$$css:!0},teal:{kWkggS:"x1jtji5o",kMwMTN:"x9x0lbs",$$css:!0},cyan:{kWkggS:"x1rgj867",kMwMTN:"x1txnczv",$$css:!0},blue:{kWkggS:"x1o0wnni",kMwMTN:"x1vvqiwl",$$css:!0},purple:{kWkggS:"x16i6n6f",kMwMTN:"x1m9wyeb",$$css:!0},pink:{kWkggS:"xnpoty2",kMwMTN:"xiuofww",$$css:!0},gray:{kWkggS:"xspzpui",kMwMTN:"xru1t7f",$$css:!0}};function cv({label:e,size:t="md",color:a="default",icon:s,isDisabled:i=!1,onRemove:c,onClick:u,href:d,description:f,endContent:g,isLabelHidden:y=!1,xstyle:b,className:k,style:C,"data-testid":w,ref:v,...S}){const T=Ka(),E=pn(),j=$u(),$=u$({href:d,onClick:u,isDisabled:i}),z=u??($==="button"?()=>{}:null),L=c!=null&&p.jsx("button",{type:"button","aria-label":E("@astryx.token.remove",{label:e}),onClick:D=>{D.stopPropagation(),c(D)},disabled:i,...Xn.focusVisible(is.removeButton),children:p.jsx(jt,{icon:"close",size:"xsm",color:"inherit"})}),I=p.jsxs(p.Fragment,{children:[s,p.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e}),g,L]}),N={"data-testid":w,...y?{"aria-label":e}:{},...f!=null?{"aria-description":f}:{}};if($==="link")return c==null?p.jsx(j,{ref:v,href:d,...T,...Te(Ee("token",{color:a,size:t}),Xn.focusVisible(is.base,Rp[t],Ap[a],is.interactive,Nr.backgroundImage,i&&is.disabled,b),k,C),...S,...i?{"aria-disabled":!0}:{},...N,children:I}):p.jsx(jT,{ref:v,href:d,isDisabled:i,LinkComponent:j,icon:s,endContent:g,removeButton:L,linkStyleProps:{className:"xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli"},...T,labelContent:p.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e}),...Te(Ee("token",{color:a,size:t}),Xn.focusWithin(is.base,Rp[t],Ap[a],is.interactive,Nr.backgroundImage,i&&is.disabled,b),k,C),...S,...N});if(z!=null){const D=P=>{P.target.closest("button, a")||z(P)};return p.jsxs("span",{ref:v,onClick:i?void 0:D,...T,...Te(Ee("token",{color:a,size:t}),Xn.focusWithin(is.base,Rp[t],Ap[a],is.interactive,Nr.backgroundImage,i&&is.disabled,b),k,C),...S,...N,children:[s,p.jsx("button",{type:"button",onClick:z,disabled:i,className:"xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli",children:p.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!y<<0],children:e})}),g,L]})}return p.jsx("span",{ref:v,...Te(Ee("token",{color:a,size:t}),Se(is.base,Rp[t],Ap[a],i&&is.disabled,b),k,C),...S,...N,children:I})}cv.displayName="Token";const JU=new Set(["auto","contain","fit-content","inherit","initial","max-content","min-content","revert","revert-layer","stretch","unset"]);function TT(e){const t=e.trim().toLowerCase();return JU.has(t)||t.startsWith("fit-content(")}function RT(e,t){return`min(${typeof e=="number"?`${e}px`:e.trim()}, ${t})`}const GE='button, [role="button"]';function KE(e){return e.matches(GE)?e:e.querySelector(GE)}const Mp={surfaceViewportFit:{kB7OPa:"x9f619",ks0D6T:"x1p5vr2b",kskxy:"xv8yize",$$css:!0},surfaceScrollable:{kVQacm:"xysyzu8",kZeWKH:"xish69e",$$css:!0},customWidth:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],matchTrigger:{k7Eaqz:"xviorkc",$$css:!0}};function Cm({children:e,anchorRef:t,content:a,placement:s="below",alignment:i="start",isOpen:c,onOpenChange:u,isEnabled:d=!0,width:f,padding:g=3,label:y,role:b="dialog",isModal:k,hasCloseButton:C,closeButtonLabel:w,hasAutoFocus:v,hasLightDismiss:S=!0,hasEscapeDismiss:T=!0,xstyle:E,className:j,style:$,"data-testid":z}){const L=x.useRef(null),I=x.useRef(null),[N,D]=x.useState(!1),P=c!==void 0,K=x.useCallback(()=>{u?.(!0)},[u]),oe=x.useCallback(()=>{u?.(!1)},[u]),V=I1({dialogLabel:y,role:b,isModal:k,hasLightDismiss:S,hasEscapeDismiss:T,hasCloseButton:C,closeButtonLabel:w,hasAutoFocus:v,surfaceTarget:"popover",padding:g,xstyle:[Mp.surfaceViewportFit,N&&Mp.surfaceScrollable,E],className:j,style:$,onShow:K,onHide:oe}),H=x.useCallback(()=>{const te=V.contentRef.current;if(!te)return;const fe=te.scrollHeight>te.clientHeight+1||te.scrollWidth>te.clientWidth+1;D(B=>B===fe?B:fe)},[V.contentRef]),Z=x.useCallback(()=>{I.current==null&&(I.current=window.requestAnimationFrame(()=>{I.current=null,H()}))},[H]);Sr(()=>{if(!V.isOpen)return;const te=V.contentRef.current;if(!te)return;H();const fe=typeof ResizeObserver>"u"?null:new ResizeObserver(Z),B=typeof MutationObserver>"u"?null:new MutationObserver(Z);return fe?.observe(te),B?.observe(te,{childList:!0,characterData:!0,subtree:!0}),te.addEventListener("load",Z,!0),window.addEventListener("resize",Z),window.visualViewport?.addEventListener("resize",Z),()=>{fe?.disconnect(),B?.disconnect(),te.removeEventListener("load",Z,!0),window.removeEventListener("resize",Z),window.visualViewport?.removeEventListener("resize",Z),I.current!=null&&(window.cancelAnimationFrame(I.current),I.current=null)}},[H,V.isOpen,Z]),Sr(()=>{V.isOpen&&Z()},[a,V.isOpen,Z]);const F=x.useCallback(()=>{d&&V.toggle()},[d,V]),q=x.useCallback(te=>{(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),F())},[F]),Q=x.useCallback(te=>{te.setAttribute("aria-haspopup",V.triggerProps["aria-haspopup"]),te.setAttribute("aria-expanded",String(V.triggerProps["aria-expanded"])),te.setAttribute("aria-controls",V.triggerProps["aria-controls"]),te.addEventListener("click",F);const fe=te.tagName!=="BUTTON"&&te.getAttribute("role")==="button";return fe&&te.addEventListener("keydown",q),()=>{te.removeAttribute("aria-haspopup"),te.removeAttribute("aria-expanded"),te.removeAttribute("aria-controls"),te.removeEventListener("click",F),fe&&te.removeEventListener("keydown",q)}},[V,F,q]);Sr(()=>{if(!t)return;const te=t.current;if(!te)return;const fe=KE(te);if(fe||ms(),!fe)return;V.triggerRef(te);const B=Q(fe);return()=>{V.triggerRef(null),B()}},[t,V,Q]),Sr(()=>{if(t||typeof e=="function")return;const te=L.current;if(!te)return;V.triggerRef(te);const fe=KE(te);if(fe||ms(),!fe)return;const B=Q(fe);return()=>{V.triggerRef(null),B()}},[t,V,Q]),Sr(()=>{P&&(c&&!V.isOpen?V.show():!c&&V.isOpen&&V.hide())},[c,P,V]);const J=[f?Mp.customWidth(typeof f=="string"&&TT(f)?f.trim():RT(f,gu.maxInlineSizeFallback)):Mp.matchTrigger,vf[s]];if(t&&e==null)return p.jsx(p.Fragment,{children:V.render(p.jsx("div",{"data-testid":z,children:a}),{placement:s,alignment:i,offset:kr["--spacing-1"],xstyle:J})});if(typeof e=="function"){const te={ref:V.triggerRef,onClick:F,"aria-haspopup":"dialog","aria-expanded":V.isOpen,"aria-controls":V.id};return p.jsxs(p.Fragment,{children:[e(te),V.render(p.jsx("div",{"data-testid":z,children:a}),{placement:s,alignment:i,offset:kr["--spacing-1"],xstyle:J})]})}return p.jsxs(p.Fragment,{children:[p.jsx(_1,{value:"button",children:p.jsx("div",{ref:L,className:"x3nfvp2",children:e})}),V.render(p.jsx("div",{"data-testid":z,children:a}),{placement:s,alignment:i,offset:kr["--spacing-1"],xstyle:J})]})}Cm.displayName="Popover";const WE={container:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",k9WMMc:"x2b8uid",kOIVth:"x18g69wz",k8WAf4:"xmfvnks",kg3NbH:"xm7rs69",$$css:!0},containerCompact:{kOIVth:"x1txdalj",k8WAf4:"x1na6nto",kg3NbH:"x1pzlopt",$$css:!0}};function ku({title:e,description:t,icon:a,actions:s,headingLevel:i=3,isCompact:c=!1,xstyle:u,className:d,style:f,ref:g,...y}){const b=`h${i}`;return p.jsxs("div",{ref:g,...y,role:"status",...Te(Ee("empty-state",{variant:c?"compact":null}),Se(WE.container,c&&WE.containerCompact,u),d,f),children:[a!=null&&p.jsx("div",{"aria-hidden":"true",children:a}),p.jsxs("div",{className:"x78zum5 xdt5ytf x6s0dn4 xxc7z9f",children:[x.createElement(b,Te(Ee("empty-state-title",{variant:c?"compact":null}),{0:{className:"x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0"},1:{className:"x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib"}}[!!c<<0]),e),t!=null&&p.jsx("div",{...Te(Ee("empty-state-description",{variant:c?"compact":null}),{0:{className:"x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4"},1:{className:"x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d"}}[!!c<<0]),children:t})]}),s!=null&&p.jsx("div",{...{0:{className:"x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d"},1:{className:"x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf"}}[!!c<<0],children:s})]})}ku.displayName="EmptyState";const Wd={illustration:{k8WAf4:"xu0wf1k",$$css:!0},satelliteNode:{kzqmXN:"xhgvbfk",kZKoxP:"x1k15mir",kaIpWk:"xjspbzw",kWkggS:"x1de1mus",kGVxlE:"x9iqb8x",$$css:!0},coreNode:{kzqmXN:"x1i8e1tz",kZKoxP:"x17u3quo",kaIpWk:"xjspbzw",kWkggS:"xgcxg3y",kGVxlE:"x9iqb8x",$$css:!0},connector:{kzqmXN:"xgc8j7m",kZKoxP:"xsyqizj",kWkggS:"x7njt3n",$$css:!0}};function $m({startIcon:e,centerIcon:t,endIcon:a,title:s,description:i,actions:c}){return p.jsx(Ut,{width:"100%",hAlign:"center",children:p.jsx(Po,{width:"100%",padding:0,children:p.jsx(ku,{headingLevel:2,icon:p.jsxs(Ut,{gap:2,vAlign:"center",xstyle:Wd.illustration,children:[p.jsx(F0,{icon:e,isCore:!1}),p.jsx(ct,{xstyle:Wd.connector}),p.jsx(F0,{icon:t,isCore:!0}),p.jsx(ct,{xstyle:Wd.connector}),p.jsx(F0,{icon:a,isCore:!1})]}),title:s,description:i,actions:c})})})}function F0({icon:e,isCore:t}){return p.jsx(Ut,{hAlign:"center",vAlign:"center",xstyle:t?Wd.coreNode:Wd.satelliteNode,children:p.jsx(jt,{icon:e,size:t?"lg":"sm",color:t?"accent":"secondary"})})}function AT({avatar:e,name:t,size:a=32}){const[s,i]=x.useState(null);return e&&s!==e?p.jsx("img",{...{0:{className:"x1td3qas x10w6t97 xl1xv1r x1kogg8i x2lah0s"},1:{className:"xl1xv1r x2lah0s x15yg21f xnnlda6 x4pepcl"}}[(a===56)<<0],src:e,alt:t,onError:()=>i(e)}):p.jsx(jt,{icon:V1,size:"lg",color:"secondary"})}const Do={providerList:{kOIVth:"x1txdalj",$$css:!0},providerItem:{kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"xvy26l8",kaIpWk:"x1hviunn",kWkggS:"x10xzikg",$$css:!0},providerDescription:{k7Eaqz:"xeuugli",kVQacm:"xb3r6kr",$$css:!0},providerProtocol:{k7Eaqz:"xeuugli",kmuXW:"xs83m0k",$$css:!0},providerBaseURLGroup:{k7Eaqz:"xeuugli",kUk6DE:"x12lumcd",kmuXW:"xs83m0k",$$css:!0},providerCustomModelsGroup:{kmuXW:"x2lah0s",$$css:!0},providerBaseURL:{ks0D6T:"xogpvq2",$$css:!0},providerActions:{kmuXW:"x2lah0s",$$css:!0},providerPopover:{kGVxlE:"xjppotg",$$css:!0}},eV={"openai-responses":"OpenAI Responses","anthropic-messages":"Anthropic Messages","openai-compatible-chat-completions":"OpenAI-compatible Chat Completions"};function tV(){const{t:e}=en(),t=ja(),[a,s]=x.useState(null),i=Va({queryKey:oo.list(),queryFn:yU}),c=Qr({mutationFn:({id:y,status:b})=>qE(y,b),onSuccess:()=>{t.invalidateQueries({queryKey:oo.list()})}}),u=Qr({mutationFn:y=>qE(y,"deleted"),onSuccess:()=>{s(null),t.invalidateQueries({queryKey:oo.list()})}}),d=i.data??[];function f(y,b){y.status==="deleted"||y.isInUse||c.mutate({id:y.id,status:b?"active":"disabled"})}function g(y){return y.isInUse?e("providers.inUse"):e(y.status==="active"?"providers.disable":"providers.enable")}return p.jsxs(p.Fragment,{children:[p.jsx(Tu,{children:p.jsx(Bt,{label:e("providers.add"),size:"sm",variant:"primary",href:"/providers/new",as:Hd})}),p.jsx(ct,{gap:5,children:d.length===0?p.jsx($m,{startIcon:m_,centerIcon:V1,endIcon:S_,title:e("providers.emptyTitle"),description:e("providers.empty"),actions:p.jsx(Bt,{label:e("providers.addFirst"),size:"sm",variant:"primary",icon:p.jsx(v$,{}),href:"/providers/new",as:Hd})}):p.jsx(cf,{density:"balanced",hasDividers:!1,xstyle:Do.providerList,children:d.map(y=>p.jsx(zf,{label:y.name,xstyle:Do.providerItem,startContent:p.jsx(AT,{avatar:y.avatar,name:y.name}),description:p.jsxs(Ut,{gap:1,wrap:"nowrap",xstyle:Do.providerDescription,children:[p.jsx(cv,{size:"sm",label:eV[y.protocol],xstyle:Do.providerProtocol}),p.jsxs(Ut,{gap:1,vAlign:"center",xstyle:Do.providerBaseURLGroup,children:[p.jsx(tt,{type:"supporting",children:"·"}),p.jsx(tt,{type:"supporting",maxLines:1,xstyle:Do.providerBaseURL,children:y.baseURL})]}),p.jsxs(Ut,{gap:1,vAlign:"center",xstyle:Do.providerCustomModelsGroup,children:[p.jsx(tt,{type:"supporting",children:"·"}),p.jsx(tt,{type:"supporting",maxLines:1,children:`${y.customModels.length} ${e("providers.customModels")}`})]})]}),endContent:p.jsxs(Ut,{gap:2,vAlign:"center",xstyle:Do.providerActions,children:[p.jsx($a,{label:`${e("providers.edit")} ${y.name}`,tooltip:e("providers.edit"),icon:p.jsx(K_,{}),variant:"ghost",size:"sm",href:`/providers/${y.id}`,as:Hd}),p.jsx(Cm,{label:`${e("providers.deleteLabel")} ${y.name}`,xstyle:Do.providerPopover,isOpen:a?.id===y.id,isEnabled:!y.isInUse,onOpenChange:b=>{s(b?y:null)},content:p.jsxs(ct,{gap:3,children:[p.jsx(ct,{gap:1,children:p.jsx(tt,{type:"label",children:e("providers.deleteQuestion")})}),p.jsxs(Ut,{gap:2,hAlign:"end",children:[p.jsx(Bt,{label:e("providers.cancel"),variant:"ghost",size:"sm",onClick:()=>{s(null)}}),p.jsx(Bt,{label:e("providers.delete"),variant:"destructive",size:"sm",isLoading:u.isPending&&a?.id===y.id,onClick:()=>{u.mutate(y.id)}})]})]}),children:p.jsx($a,{label:`${e("providers.deleteLabel")} ${y.name}`,tooltip:e("providers.deleteLabel"),icon:p.jsx(k$,{}),variant:"ghost",size:"sm",isDisabled:y.isInUse})}),p.jsx(Bo,{content:g(y),children:p.jsx($T,{label:`${y.name} ${e("providers.enabled")}`,isLabelHidden:!0,value:y.status==="active",onChange:b=>{f(y,b)},isDisabled:y.isInUse,size:"sm"})})]})},y.id))})})]})}const YE={group:{k1xSpc:"x3nfvp2",kGNEyG:"x1qjc9v5",kWkggS:"xjbqb8w",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",$$css:!0}},nV={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function MT({children:e,label:t,isLabelHidden:a=!1,description:s,isDisabled:i=!1,isOptional:c=!1,isRequired:u=!1,size:d,status:f,labelTooltip:g,xstyle:y,className:b,style:k,ref:C,"data-testid":w,...v}){const S=Cu(d,"md"),T=x.useId(),E=x.useId(),j=x.useId(),$=x.useId(),z=[s?j:null,f?.message?$:null].filter(Boolean).join(" ")||void 0,L=x.useMemo(()=>({isInGroup:!0,labelID:E,describedByIDs:z}),[E,z]);return p.jsx(rv,{value:L,children:p.jsx(Qc,{value:S,children:p.jsx(Ru,{label:t,isLabelHidden:a,description:s,inputID:T,labelID:E,descriptionID:s?j:void 0,isGroupLabel:!0,isOptional:c,isRequired:u,isDisabled:i,status:f?{type:f.type,message:f.message,messageID:f.message?$:void 0}:void 0,statusVariant:"detached",labelTooltip:g,children:p.jsx("div",{ref:C,"data-testid":w,...v,role:"group","aria-labelledby":E,"aria-describedby":z,...Te(Ee("input-group",{size:S,status:f?.type??null}),Se(YE.group,nV[S],i&&YE.disabled,y),b,k),children:e})})})})}MT.displayName="InputGroup";const rV={text:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kg3NbH:"xf314gf",kWkggS:"xwmxj5m",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",kMwMTN:"xv1l7n4",khDVqt:"xuxw1ft",kmuXW:"x2lah0s",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"xvy26l8",keTefX:"xd10s4z x1pwwqoy",krdFHd:"x15mokao x8eehn2",kVL7Gh:"xbiv7yw x1xrp5p4",kfmiAY:"x1ga7v0g x11xp8u1",kT0f0o:"x16uus16 x747jw7",$$css:!0}};function zT({ref:e,children:t,xstyle:a,className:s,style:i,...c}){return p.jsx("div",{ref:e,...c,...Te(Ee("input-group-text"),Se(rV.text,a),s,i),children:t})}zT.displayName="InputGroupText";const aV=2*1024*1024,XE=["image/png","image/jpeg","image/gif","image/webp","image/svg+xml"],sV={removeIcon:{kzqmXN:"x1xc55vz",kZKoxP:"xdk7pt",$$css:!0}};function oV({value:e,onChange:t,isDisabled:a,isReading:s,onReadingChange:i}){const{t:c}=en(),u=x.useRef(null),[d,f]=x.useState(!1),g=s||a,y=async b=>{if(f(!1),!XE.includes(b.type)||b.size===0||b.size>aV){f(!0);return}i(!0);try{const k=await iV(b),C=new Image;C.src=k,await C.decode(),t(k)}catch{f(!0)}finally{i(!1)}};return p.jsxs(ct,{gap:2,children:[p.jsx(tt,{type:"label",children:c("providers.avatar")}),p.jsxs("div",{className:"x1n2onr6 x15yg21f xnnlda6",children:[p.jsx(Bo,{content:c(e?"providers.avatarChange":"providers.avatarUpload"),children:p.jsx("button",{className:"x78zum5 x6s0dn4 xl56j7k xh8yej3 x5yr21d x1717udv xb3r6kr x4pepcl xwmxj5m x1ypdohk xw92b1d x17nn4n9 x7s97pk xtgyt42 xijokvz",type:"button","aria-label":c(e?"providers.avatarChange":"providers.avatarUpload"),"aria-busy":s,disabled:g,onClick:()=>u.current?.click(),children:s?p.jsx(Fo,{size:"lg"}):p.jsx(AT,{avatar:e,name:c("providers.avatar"),size:56})})}),e&&p.jsx(Bo,{content:c("providers.avatarRemove"),children:p.jsx("button",{className:"x10l6tqk x1fo6t33 xzkxjte x78zum5 x6s0dn4 xl56j7k x1kky2od xlup9mm x1717udv xjspbzw xwmxj5m xv9yike x1ypdohk x1xkhett xbb3pvg x9lcvmn x19l8q0q xnqwz4y xkxev3i x12w9bfk x17nn4n9 x7s97pk xtgyt42 xijokvz",type:"button","aria-label":c("providers.avatarRemove"),disabled:g,onClick:()=>{f(!1),t(null)},children:p.jsx(jt,{icon:sP,size:"xsm",xstyle:sV.removeIcon})})}),p.jsx("input",{ref:u,type:"file",accept:XE.join(","),"aria-label":c("providers.avatarUpload"),hidden:!0,disabled:g,onChange:b=>{const k=b.currentTarget.files?.[0];b.currentTarget.value="",k&&y(k)}})]}),p.jsx(tt,{type:"supporting",color:"secondary",children:c("providers.avatarDescription")}),d&&p.jsx(tt,{role:"alert",type:"supporting",children:c("providers.avatarInvalid")})]})}function iV(e){return new Promise((t,a)=>{const s=new FileReader;s.addEventListener("load",()=>typeof s.result=="string"?t(s.result):a(new Error("Unable to read image"))),s.addEventListener("error",()=>a(s.error??new Error("Unable to read image"))),s.readAsDataURL(e)})}const gl={formFieldRow:{kzqmXN:"xh8yej3",$$css:!0},formNameField:{kUk6DE:"x1oaxyc9",k7Eaqz:"xixw5x4",$$css:!0},formProtocolField:{kUk6DE:"xgdhuxi",k7Eaqz:"x184y65y",$$css:!0},formApiKeyField:{kzqmXN:"xh8yej3",$$css:!0},formModelInput:{k7Eaqz:"x184y65y",kUk6DE:"xgdhuxi",$$css:!0},formModelNameInput:{k7Eaqz:"xixw5x4",kUk6DE:"x1oaxyc9",$$css:!0},apiKeyVisibilityAddon:{kWkggS:"x10xzikg",$$css:!0}},lV=[{value:"openai-responses",label:"OpenAI Responses"},{value:"anthropic-messages",label:"Anthropic Messages"},{value:"openai-compatible-chat-completions",label:"OpenAI-compatible Chat Completions"}];function ZE(){const{providerId:e}=Zb(),{t}=en(),a=Eu(),s=ja(),i=qo(),[c,u]=x.useState(""),[d,f]=x.useState(null),[g,y]=x.useState(!1),[b,k]=x.useState("openai-responses"),[C,w]=x.useState(""),[v,S]=x.useState(""),[T,E]=x.useState(!1),[j,$]=x.useState(!1),z=x.useRef(null),[L,I]=x.useState([]),[N,D]=x.useState(""),[P,K]=x.useState(""),[oe,V]=x.useState(!1),[H,Z]=x.useState(!1);x.useEffect(()=>{e&&vU(e).then(me=>{me&&(u(me.name),f(me.avatar??null),k(me.protocol),w(me.baseURL),S(me.apiKey),I(me.customModels.map(pe=>({...pe,source:"custom"}))))})},[e]);const F=!!(C.trim()&&(b==="openai-compatible-chat-completions"||v.trim())),q=L.length>0&&!oe&&!H&&!g&&!!(c.trim()&&C.trim()),Q=x.useMemo(()=>L.filter(me=>me.source==="custom"),[L]),ae=x.useCallback(async()=>{if(F){V(!0);try{const me=await kU({protocol:b,baseURL:C,apiKey:v});I(pe=>[...me.map(ve=>({...ve,source:"remote"})),...pe.filter(ve=>ve.source==="custom")])}catch{I(me=>me.filter(pe=>pe.source==="custom")),i({body:t("providers.failedFetchModels"),type:"error"})}finally{V(!1)}}},[v,C,F,b,t,i]);x.useEffect(()=>{if(!F)return;const me=setTimeout(()=>{ae()},500);return()=>clearTimeout(me)},[F,ae]);function J(){const me=N.trim();!me||Q.some(pe=>pe.id===me)||(I(pe=>[...pe,{id:me,displayName:P.trim()||null,source:"custom"}]),D(""),K(""))}const se=x.useCallback(async()=>{if(!q)return;Z(!0);const me={avatar:d,name:c.trim(),protocol:b,baseURL:C.trim(),apiKey:v,customModels:Q.map(({source:pe,...ve})=>ve)};try{await bU(me,e),await s.invalidateQueries({queryKey:oo.all}),a("/providers")}catch{i({body:t("providers.saveFailed"),type:"error"})}finally{Z(!1)}},[d,v,C,q,Q,a,c,e,b,s,t,i]),te=x.useCallback(()=>{a("/providers")},[a]),fe=x.useCallback(()=>{se()},[se]),B=x.useCallback(()=>{z.current&&clearTimeout(z.current),$(!0)},[]),ee=x.useCallback(()=>{z.current=setTimeout(()=>{$(!1)},120)},[]);return p.jsxs(p.Fragment,{children:[p.jsx(Tu,{children:p.jsxs(Ut,{gap:2,children:[p.jsx(Bt,{label:t("providers.cancel"),variant:"ghost",size:"sm",onClick:te}),p.jsx(Bt,{label:t("providers.save"),variant:"primary",size:"sm",isDisabled:!q,isLoading:H,onClick:fe})]})}),p.jsxs(ct,{gap:5,children:[p.jsxs(ct,{gap:4,children:[p.jsx(oV,{value:d,onChange:f,isDisabled:H,isReading:g,onReadingChange:y}),p.jsxs(Ut,{gap:3,wrap:"wrap",xstyle:gl.formFieldRow,children:[p.jsx(Ls,{containerXstyle:gl.formNameField,size:"sm",label:t("providers.name"),value:c,onChange:u,isRequired:!0}),p.jsx(cu,{containerXstyle:gl.formProtocolField,size:"sm",label:t("providers.protocol"),options:lV,value:b,onChange:me=>k(me),isDisabled:!!e,isRequired:!0})]}),p.jsx(Ls,{size:"sm",label:t("providers.baseUrl"),value:C,onChange:w,placeholder:"https://api.example.com/v1",isRequired:!0}),p.jsxs(MT,{label:t("providers.apiKey"),size:"sm",isRequired:b!=="openai-compatible-chat-completions",xstyle:gl.formApiKeyField,children:[p.jsx(Ls,{size:"sm",label:t("providers.apiKey"),isLabelHidden:!0,type:T?"text":"password",value:v,onChange:S}),p.jsx(zT,{xstyle:gl.apiKeyVisibilityAddon,children:p.jsx($a,{label:t(T?"providers.hideApiKey":"providers.showApiKey"),tooltip:t(T?"providers.hideApiKey":"providers.showApiKey"),icon:T?p.jsx(j_,{}):p.jsx(y$,{}),variant:"ghost",size:"sm",onClick:()=>E(me=>!me)})})]})]}),p.jsxs(ct,{gap:3,children:[p.jsxs(Ut,{gap:1,vAlign:"center",children:[p.jsx(tt,{type:"label",color:"secondary",children:t("providers.models")}),p.jsxs(tt,{type:"supporting",children:["·",t("providers.required")]}),p.jsx(Cm,{label:t("providers.modelSources"),placement:"below",alignment:"start",isOpen:j,isEnabled:!1,onOpenChange:$,content:p.jsx(ct,{gap:1,onMouseEnter:B,onMouseLeave:ee,children:p.jsx(tt,{type:"supporting",children:t("providers.modelsTemporary")})}),children:p.jsx("button",{type:"button","aria-label":t("providers.aboutModelSources"),className:"x3nfvp2 x6s0dn4 xl56j7k x1717udv xjspbzw xjbqb8w xv9yike x1ypdohk x1cqbx0l x17nn4n9 x7s97pk",onMouseEnter:B,onMouseLeave:ee,children:p.jsx(jt,{icon:X_,size:"sm"})})}),p.jsx($a,{label:t("providers.fetchModels"),tooltip:t("providers.fetchModels"),icon:p.jsx(Cf,{}),variant:"ghost",size:"sm",isDisabled:!F,isLoading:oe,onClick:()=>{ae()}})]}),L.length>0&&p.jsx(Ut,{gap:1,wrap:"wrap",children:L.map(me=>p.jsx(cv,{size:"sm",label:me.displayName||me.id,color:me.source==="custom"?"blue":"default",onRemove:me.source==="custom"?()=>I(pe=>pe.filter(ve=>ve!==me)):void 0},`${me.source}-${me.id}`))}),p.jsxs(Ut,{gap:2,wrap:"wrap",children:[p.jsx(Ls,{size:"sm",containerXstyle:gl.formModelInput,label:t("providers.modelId"),isLabelHidden:!0,value:N,onChange:D,placeholder:t("providers.customModelId"),isRequired:!0}),p.jsx(Ls,{size:"sm",containerXstyle:gl.formModelNameInput,label:t("providers.displayName"),isLabelHidden:!0,value:P,onChange:K,isOptional:!0,placeholder:t("providers.displayNameOptional")}),p.jsx(Bt,{label:t("providers.addCustomModel"),variant:"secondary",size:"sm",isDisabled:!N.trim(),onClick:J})]})]})]})]})}const uv=Ra(null);uv.displayName="SegmentedControlContext";function cV(){const e=x.use(uv);if(e==null)throw new Error("useSegmentedControlContext must be used within SegmentedControl. Wrap your SegmentedControlItem in <SegmentedControl>.");return e}const zp={container:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kzqmXN:"xeq5yr9",ks0D6T:"x1x1rfll xzzx6db",k7Eaqz:"x15x72sd xmzx3xy",kOIVth:"x1lsbc85","--_segmented-control-padding":"x18jk3ff",kmVPX3:"xpoxszi",kWkggS:"x17x4s8c",$$css:!0},fill:{k1xSpc:"x78zum5",kzqmXN:"xh8yej3",$$css:!0},disabled:{kSiTet:"xbyyjgo",kfzvcC:"x47corl",$$css:!0},disabledWithMessage:{kSiTet:"xbyyjgo",$$css:!0}},uV={sm:{"--_segmented-control-radius":"x9icjy1",kaIpWk:"x1hapoqb",$$css:!0},md:{"--_segmented-control-radius":"x9icjy1",kaIpWk:"x1hapoqb",$$css:!0},lg:{"--_segmented-control-radius":"x9icjy1",kaIpWk:"x1hapoqb",$$css:!0}};function dv({ref:e,value:t,onChange:a,label:s,size:i,layout:c="hug",isDisabled:u=!1,disabledMessage:d,children:f,xstyle:g,className:y,style:b,onKeyDown:k,onFocus:C,onBlur:w,...v}){const S=Cu(i,"md"),T=u&&!!d,E=Os({placement:"above",focusTrigger:"always",isEnabled:T}),{listRef:j,handleKeyDown:$,handleFocus:z}=im({itemSelector:'[role="radio"]:not([aria-disabled="true"])',hasRovingTabIndex:!0,wrap:!0,orientation:"horizontal"}),L=UF({orientation:"horizontal",isEnabled:!u}),I=x.useCallback(P=>{k?.(P),!P.defaultPrevented&&(L.onKeyDown(P),$(P))},[k,L,$]),N=x.useCallback(P=>{if(C?.(P),P.defaultPrevented||(L.onFocus(P),z(P),u)||!P.currentTarget.contains(P.relatedTarget))return;const K=P.target?.closest('[role="radio"][data-value]');if(!K||K.getAttribute("aria-disabled")==="true")return;const oe=K.dataset.value;oe!=null&&oe!==t&&a(oe)},[C,L,z,u,a,t]),D=x.useMemo(()=>({value:t,onChange:a,size:S,layout:c,isDisabled:u,hasDisabledMessage:T}),[t,a,S,c,u,T]);return p.jsxs(uv,{value:D,children:[p.jsxs("div",{ref:Zn(e,j,E.ref),...v,role:"radiogroup","aria-label":s,"aria-disabled":u||void 0,"aria-describedby":T?E.describedBy:void 0,onKeyDown:I,onFocus:N,onBlur:Jr(w,L.onBlur),...Te(Ee("segmented-control",{size:S}),Se(zp.container,uV[S],c==="fill"&&zp.fill,u&&(T?zp.disabledWithMessage:zp.disabled),g),y,b),children:[f,L.hintElement]}),T&&E.renderTooltip(d)]})}dv.displayName="SegmentedControl";const Kc={base:{kVAEAm:"x1n2onr6",k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kOIVth:"xzye2dw",kg3NbH:"xrrkdod",kWkggS:"xjbqb8w",kMzoRj:"xc342km",ksu8eU:"xng3xce",kMv6JI:"xjb2p0i",kGuDYH:"xcr08ib",kLWn49:"x1kq96og",k63SB2:"x1e4wzip",kMwMTN:"xv1l7n4",kkrTdU:"x1ypdohk x16khyan",khDVqt:"xuxw1ft",k7Eaqz:"xeuugli",k1ekBW:"x1vix5yk",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},selected:{kAXs8y:"x1kzknox",kMwMTN:"x1tgivj0 x1k5gbb1",k63SB2:"x2mo6ok",kWkggS:"x10xzikg x1jzqe4",kGVxlE:"x1i5ehqx",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kMwMTN:"xnbbluu",$$css:!0},fill:{kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",kjj79g:"xl56j7k",$$css:!0},iconOnly:{kmuXW:"x2lah0s",$$css:!0},icon:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0}},dV={sm:{kZKoxP:"xzj98nu",kaIpWk:"xc910v0",kg3NbH:"xf314gf",kGuDYH:"x141an7d",$$css:!0},md:{kZKoxP:"x184gfjb",kaIpWk:"xc910v0",kg3NbH:"xrrkdod",$$css:!0},lg:{kZKoxP:"x1uiybsj",kaIpWk:"xc910v0",kg3NbH:"xrrkdod",$$css:!0}},fV={sm:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",$$css:!0},lg:{kzqmXN:"x1xp8n7a",kZKoxP:"xmix8c7",$$css:!0}};function uf({ref:e,value:t,label:a,isLabelHidden:s=!1,icon:i,isDisabled:c=!1,onClick:u,xstyle:d,...f}){const g=Ka(),y=cV(),b=y.value===t,k=c||y.isDisabled,C=b&&(y.hasDisabledMessage??!1)&&!c,w=y.size,v=y.layout==="fill",S=Jr(u,()=>{!k&&!b&&y.onChange(t)}),T=i?p.jsx("span",{...Se(Kc.icon,fV[w]),children:i}):null;return p.jsxs("button",{ref:e,...f,type:"button",role:"radio","aria-checked":b,"aria-disabled":k||void 0,"aria-label":s?a:void 0,"data-value":t,...!b&&!k?g:void 0,tabIndex:b&&!k||C?0:-1,onClick:S,...Te(Ee("segmented-control-item",{size:w,selected:b?"selected":null,disabled:k?"disabled":null}),Xn.focusVisible(Kc.base,dV[w],v&&Kc.fill,s&&Kc.iconOnly,b&&Kc.selected,!b&&!k&&Nr.backgroundColor,k&&Kc.disabled,d)),children:[T,!s&&p.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:a})]})}uf.displayName="SegmentedControlItem";const NT=120,LT=60;function DT(e){return e?.minWidth??(e==null?LT:NT)}function OT(e){let t=0,a=0;const s=[];for(const c of e){const u=c.width;if(u?.type==="pixel")a+=u.value;else{const d=u?.value??1;t+=d,s.push({proportion:d,minWidth:DT(u)})}}let i=0;if(t>0)for(const c of s){const u=c.minWidth*t/c.proportion;u>i&&(i=u)}return{totalProportion:t,pixelTotal:a,maxProportionalSpace:i}}function IT(e){const{totalProportion:t,maxProportionalSpace:a}=OT(e),s=new Map;for(const i of e){const c=i.width;if(c?.type==="pixel")s.set(i.key,c.value);else{const u=c?.value??1;s.set(i.key,t>0?a*u/t:0)}}return s}const hV=/^[+-]?(?:\d+\.?\d*|\.\d+)(?:px|r?em|r?lh|r?ex|r?ch|r?cap|r?ic|vw|vh|vi|vb|vmin|vmax|[sld]v(?:w|h|i|b|min|max)|cq(?:w|h|i|b|min|max)|cm|mm|q|in|pt|pc|%)$/i,pV=/^(?:calc|min|max|clamp|var)\(/i,xV=/^[+-]?(?:0+\.?0*|\.0+)(?:[a-z]+|%)?$/i,mV=/^(\d+(?:\.\d+)?)px$/i;function gV(e,t){const a=`${t}px`;if(e==null)return a;if(typeof e=="number")return`${Math.max(e,t)}px`;const s=e.trim();if(s===""||xV.test(s))return a;const i=mV.exec(s);return i?`${Math.max(Number(i[1]),t)}px`:hV.test(s)||pV.test(s)?`max(${s}, ${a})`:a}function yV(e){const{totalProportion:t,pixelTotal:a,maxProportionalSpace:s}=OT(e),i=a+s,c=new Map;for(const u of e){const d=u.width,f={};if(d?.type==="pixel")f.width=`${d.value}px`,f.minWidth=`${d.value}px`;else{const g=d?.value??1;t>0&&(f.width=`${g/t*100}%`),f.minWidth=`${DT(d)}px`}c.set(u.key,{style:f})}return{columns:c,tableMinWidth:i}}function uu(e=1,t){return{type:"proportional",value:e,minWidth:t?.minWidth??NT}}function hs(e){return{type:"pixel",value:e}}function QE(e){if(e.length===0)return e;const t=s9(e);return t.toUpperCase()+e.slice(t.length)}function bV(e,t){const a=e[t];return a==null?"":a instanceof Date?a.toISOString():typeof a=="string"||typeof a=="number"||typeof a=="boolean"||typeof a=="bigint"?String(a):""}function vV(e){return e==null?0:typeof e=="string"?e.length:typeof e=="number"||typeof e=="boolean"?String(e).length:0}function kV(e){if(e==null||typeof e!="string"&&typeof e!="number"&&typeof e!="boolean")return 0;const t=String(e);let a=0,s=0;for(let i=0;i<=t.length;i++)i===t.length||t[i]===" "||t[i]===" "||t[i]===`
94
+ `?(s>a&&(a=s),s=0):s++;return a}const wV=8;function SV(e){if(e.length===0)return[];const t=e[0],a=Object.keys(t),s=e.slice(0,Math.min(5,e.length));return a.map(c=>{const u=QE(c).length;let d=u,f=u;for(const g of s){const y=vV(g[c]);y>d&&(d=y);const b=kV(g[c]);b>f&&(f=b)}return{key:c,headerLen:u,maxContentLen:d,maxWordLen:f}}).map(c=>{const u=c.maxContentLen<=6?1:c.maxContentLen<=15?2:3,d=Math.max(Math.max(c.headerLen,c.maxWordLen)*wV,LT);return{key:c.key,header:QE(c.key),width:uu(u,{minWidth:d})}})}const JE={x139im0d:"x139im0d",$$css:!0},_T={cell:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",ks0D6T:"x1m189uc",$$css:!0}},EV={cell:{kVQacm:"xb3r6kr",kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",ks0D6T:"x1m189uc",$$css:!0}},PT={compact:{kZCmMZ:"x5uh4xs",kwRFfy:"xbg7gas",$$css:!0},balanced:{kZCmMZ:"x9bi00s",kwRFfy:"xpilulx",$$css:!0},spacious:{kZCmMZ:"x18c6q21",kwRFfy:"x1wzlfcn",$$css:!0}},jm=Ra(null);jm.displayName="TableContext";const CV={row:{kWkggS:"x189zj9d","--table-row-overlay":"xztvxw7",$$css:!0}},$V={row:{kWkggS:"xoevpu5","--table-row-overlay":"xc01ov8",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}},jV={row:{kWkggS:"x189zj9d xoevpu5","--table-row-overlay":"xztvxw7 xc01ov8",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}};function BT({children:e,xstyle:t,ref:a,isHeaderRow:s=!1,className:i,style:c,...u}){const d=x.use(jm);if(!d)return p.jsx("tr",{ref:a,...u,...Te(Ee("table-row"),Se(JE,t),i,c),children:e});const f=[];return s||(d.isStriped&&d.hasHover?f.push(jV.row):d.isStriped?f.push(CV.row):d.hasHover&&f.push($V.row)),d.dividers==="rows"||d.dividers,t&&f.push(...t),p.jsx("tr",{ref:a,...u,...Te(Ee("table-row"),Se(JE,...f),i,c),children:e})}BT.displayName="TableRow";const fv=new Set(["menuitem","menuitemradio","menuitemcheckbox"]),zx=[...fv].map(e=>`[role="${e}"]:not([aria-disabled="true"])`).join(","),FT='[role="menu"]';function qT(e){return e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0}function HT(e,t){e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,metaKey:t.metaKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey}))}const TV="button:not(:disabled), a[href]",Np={list:{k7VYTy:"xpdipgo",kfSwDN:"x87ps6o",$$css:!0},destructiveAction:{"--_item-label-color":"xufyqxy","--_item-description-color":"xqlix59",kMwMTN:"xjt36v0",$$css:!0},divider:{kqGvvJ:"xsq74q5",$$css:!0},sectionHeading:{kg3NbH:"xrrkdod",$$css:!0}};function RV(e,t){return`item-${e.id??t}`}function UT({items:e,onSelect:t,onOpenSubmenu:a}){const s=x.useRef(null),i=xm({menuRef:s,itemSelector:TV}),c=(u,d)=>{const f=u.items!=null&&u.items.length>0,g=u.variant==="destructive",y=!f&&u.href!=null,b=k=>{if(y&&u.isDisabled){k.preventDefault();return}yu()==="pointer"&&k.currentTarget.blur(),f?a(u):y&&qT(k)?t({...u,onClick:void 0},k):t(u,k)};return p.jsx(zf,{label:u.label,description:u.description,startContent:u.icon?Is(u.icon,{size:"sm",color:g?"error":"secondary"}):void 0,endContent:f?p.jsx(jt,{icon:"chevronRight",size:"sm",color:"secondary",xstyle:io.mirror}):u.endContent,isDisabled:u.isDisabled,href:y?u.href:void 0,target:y?u.target:void 0,rel:y?u.rel:void 0,onClick:y?void 0:b,onClickCapture:y?b:void 0,xstyle:g&&Np.destructiveAction},RV(u,d))};return p.jsx(cf,{ref:s,density:"spacious",xstyle:Np.list,...i.menuProps,children:e.map((u,d)=>"type"in u&&u.type==="divider"?p.jsx("li",{role:"presentation",className:"x3ct3a4",children:p.jsx(Ol,{xstyle:Np.divider})},`divider-${d}`):"type"in u&&u.type==="section"?p.jsx("li",{className:"x3ct3a4",children:p.jsxs("div",{role:"group","aria-label":u.title,className:"x78zum5 xdt5ytf xzye2dw",children:[u.title&&p.jsx(_i,{level:4,xstyle:Np.sectionHeading,children:u.title}),p.jsx(cf,{density:"spacious",children:u.items.map(c)})]})},`section-${u.id??d}`):c(u,d))})}UT.displayName="MenuBottomSheetActionList";const Tm=Ra(null);Tm.displayName="DropdownMenuContext";function VT(){return x.use(Tm)}const AV=x.createContext(null);AV.displayName="DropdownMenuRadioGroupContext";function GT(e,t){if(t||e.pointerType!=="mouse")return;const a=e.currentTarget;a!==a.ownerDocument.activeElement&&a.focus({preventScroll:!0})}const q0={root:{kB7OPa:"x9f619",kzqmXN:"xh8yej3",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kaIpWk:"x1ws5lxm",kMv6JI:"x9ynric",kGuDYH:"xcr08ib",kMwMTN:"x1tgivj0",kWkggS:"xjbqb8w x1c52tdz xprvw0a",kMzoRj:"xc342km",ksu8eU:"xng3xce",kkrTdU:"x1ypdohk x16khyan",k9WMMc:"x1yc453h",kI3sdo:"x1a2a7pz",$$css:!0},disabled:{kSiTet:"xbyyjgo",kkrTdU:"xt0e3qv",$$css:!0},destructive:{kMwMTN:"xjt36v0","--_item-label-color":"xufyqxy","--_item-description-color":"xqlix59",$$css:!0}},MV={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}};function hv({icon:e,label:t,description:a,onClick:s,href:i,target:c,rel:u,isDisabled:d=!1,endContent:f,hasCloseOnSelect:g=!0,variant:y="default",xstyle:b,className:k,style:C,ref:w,onPointerMove:v,onAuxClick:S,...T}){const E=VT(),j=E?.menuSize??"md",$=Ka(),z=x.useCallback(P=>{if(d){P.preventDefault();return}i!=null&&qT(P)||s?.(P),g&&E?.closeMenu()},[d,i,s,g,E]),L=x.useCallback(P=>{if(d){P.preventDefault();return}i==null||P.button!==1||g&&E?.closeMenu()},[d,i,g,E]),I=x.useCallback(P=>GT(P,d),[d]),N=y==="destructive",D=$u();return p.jsx(Mf,{...T,ref:w,as:i!=null?D:void 0,role:"menuitem",tabIndex:d?void 0:-1,onPointerMove:Jr(I,v),...$,startContent:e?Is(e,{size:"sm",color:N?"error":"secondary"}):void 0,label:t,description:a,endContent:f,onClick:z,onAuxClick:Jr(L,S),href:i,target:c,rel:u,draggable:i!=null?!1:void 0,isDisabled:d,xstyle:[q0.root,MV[j],N&&q0.destructive,d&&q0.disabled,b],...Te(Ee("dropdown-menu-item",{size:j,variant:N?"destructive":null}),{className:k,style:C})})}hv.displayName="DropdownMenuItem";const zV={divider:{kqGvvJ:"xsq74q5",$$css:!0}},e3=Ee("dropdown-menu-divider").className;function KT({xstyle:e,className:t,style:a,ref:s}){return p.jsx(Ol,{ref:s,xstyle:[zV.divider,e],className:t?`${e3} ${t}`:e3,style:a})}KT.displayName="DropdownMenuDivider";const WT=x.createContext(!1);WT.displayName="MenuRegionsContext";function NV(e,t){return typeof e=="string"&&TT(e)?{property:"inlineSize",value:e.trim()}:{property:"minWidth",value:RT(e,t)}}const H0={root:{kB7OPa:"x9f619",kzqmXN:"xh8yej3",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kaIpWk:"x1ws5lxm",kMv6JI:"x9ynric",kGuDYH:"xcr08ib",kMwMTN:"x1tgivj0",kWkggS:"xjbqb8w x1c52tdz",kMzoRj:"xc342km",ksu8eU:"xng3xce",kkrTdU:"x1ypdohk x16khyan",k9WMMc:"x1yc453h",kI3sdo:"x1a2a7pz",$$css:!0},open:{kWkggS:"x1lmrjuc",$$css:!0},disabled:{kSiTet:"xbyyjgo",kkrTdU:"xt0e3qv",$$css:!0}},LV={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}},DV={kzqmXN:"x1uyokj7",$$css:!0},Lp={popoverViewport:{kB7OPa:"x9f619",kskxy:"x1uh1i8a",$$css:!0},popover:{k7Eaqz:"x1b27s9g",$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:e!=null?"xkj4a21":e,$$css:!0},{"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],popoverCustomIntrinsicWidth:e=>[DV,{"--x-inlineSize":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function YT(e){const{icon:t,label:a,description:s,isDisabled:i=!1,hasSpinner:c=!1,menuWidth:u,onOpenChange:d,presentation:f="adaptive",children:g,xstyle:y,className:b,style:k,"data-testid":C,menuDataTestId:w,ref:v,id:S,onMouseEnter:T,onMouseLeave:E,onPointerMove:j,onClick:$,onKeyDown:z,...L}=e,I=pn(),N=VT(),D=x.use(WT),P=N?.menuSize??"md",K=!i,oe=x.useId(),V=x.useId(),H=S??V,Z=x.useRef(null),F=N?.drillIn,q=F!=null&&(f==="drill-in"||f==="adaptive"&&F.isCompactTouch)?F:null,Q=q!=null,ae=x.useId(),J=q?.viewStack.includes(ae)===!0,se=J&&q?.viewStack.at(-1)===ae,te=typeof a=="string"?a:void 0,fe=N?.menuLabel,B=fe!=null?I("@astryx.dropdownMenu.backTo",{parent:fe}):I("@astryx.dropdownMenu.back"),[ee,me]=x.useState(!1),pe=Q?J:ee,ve=bf({mode:"context",lightDismiss:!1,onShow:x.useCallback(()=>{me(!0),d?.(!0)},[d]),onHide:x.useCallback(()=>{me(!1),d?.(!1)},[d])}),ye=x.useCallback(()=>{K&&ve.show()},[K,ve]),Oe=x.useCallback(()=>{ve.hide()},[ve]),{listRef:ie,handleKeyDown:$e,focusFirst:Pe,focusItem:He,ownsEvent:Ze,getItems:Fe}=im({itemSelector:zx,boundarySelector:FT,wrap:!0,hasPaging:!0,onEscape:()=>vt({focusTrigger:!0})}),Ie=sv(ie,g,pe&&!Q),at=X1({getItemLabels:()=>Fe().map(Ue=>Ue.textContent),onMatch:He,getCurrentIndex:()=>Fe().findIndex(Ue=>Ue===document.activeElement||Ue.contains(document.activeElement))}),{triggerProps:wt,contentProps:Nt,confirmHoverOpen:gt}=d$({show:ye,hide:Oe,isOpen:ee,isEnabled:K&&!Q,flyoutRef:ie}),st=x.useRef(null),Lt=x.useRef(!1),nt=x.useCallback(Ue=>{if(K){if(q!=null){st.current=Ue?.focusFirst?"first":"container",q.push(ae),d?.(!0);return}ve.show(),Ue?.focusFirst&&(Pe()||ie.current?.focus())}},[K,q,ae,d,ve,Pe,ie]),vt=x.useCallback(Ue=>{if(q!=null){J&&(Lt.current=Ue?.focusTrigger!==!1,q.pop(),d?.(!1));return}ve.hide(),Ue?.focusTrigger!==!1&&Z.current?.focus()},[q,J,d,ve]);x.useEffect(()=>{if(!se||q?.host==null)return;const Ue=st.current;if(Ue==null)return;st.current=null;const Cn=Fe(),bn=Ue==="first"?Cn[1]??Cn[0]:null;bn!=null?bn.focus({preventScroll:!0}):ie.current?.focus({preventScroll:!0})},[se,q?.host,Fe,ie]),x.useEffect(()=>{J||!Lt.current||(Lt.current=!1,Z.current?.focus({preventScroll:!0}))},[J]);const St=ve.ref,xt=x.useCallback(Ue=>{Z.current=Ue,St(Ue)},[St]),Tt=Zn(xt,v),Me=x.useCallback(Ue=>{if(i){Ue.preventDefault();return}if(Q){const Cn=Ue.detail>0||AF();nt({focusFirst:!Cn});return}if(ee){if(gt()){Pe()||ie.current?.focus();return}vt({focusTrigger:!0})}else nt({focusFirst:!0})},[i,Q,ee,nt,vt,gt,Pe,ie]),ut=x.useCallback(Ue=>{Jr(Me,$)(Ue)},[Me,$]),tn=x.useCallback(Ue=>{if(i)return;const bn=(typeof window<"u"&&Z.current?window.getComputedStyle(Z.current).direction==="rtl":!1)?"ArrowLeft":"ArrowRight";(Ue.key===bn||Ue.key==="Enter"||Ue.key===" ")&&(Ue.preventDefault(),Ue.stopPropagation(),nt({focusFirst:!0}))},[i,nt]),qn=x.useCallback(Ue=>GT(Ue,i),[i]),Mn=x.useCallback(Ue=>{if(Ue.key==="Tab"&&D){vt({focusTrigger:!1});return}if(!Ze(Ue))return;if(Ue.key==="Escape"){Ue.preventDefault(),Ue.stopPropagation(),vt({focusTrigger:!0});return}if(Ue.key==="Enter"||Ue.key===" "){if(Ue.preventDefault(),Ue.repeat)return;const vn=document.activeElement;vn&&fv.has(vn.getAttribute("role")??"")&&HT(vn,Ue);return}const bn=(typeof window<"u"&&ie.current?window.getComputedStyle(ie.current).direction==="rtl":!1)?"ArrowRight":"ArrowLeft";if(Ue.key===bn){Ue.preventDefault(),vt({focusTrigger:!0});return}if(at.onKeyDown(Ue)){Ue.preventDefault();return}$e(Ue)},[Ze,vt,$e,at,ie,D]),Qn=x.useMemo(()=>({menuSize:P,closeMenu:()=>{vt({focusTrigger:!1}),N?.closeMenu()},drillIn:F,menuLabel:te}),[P,vt,N,F,te]),an=xm({menuRef:ie,itemSelector:zx,onDismiss:Qn.closeMenu}),Hn=c?p.jsx("span",{className:"x78zum5 x6s0dn4",children:p.jsx(Fo,{size:"sm"})}):p.jsx("span",{className:"x78zum5 x6s0dn4",children:p.jsx(jt,{icon:"chevronRight",size:"sm",color:"secondary",xstyle:io.mirror,...Ee("dropdown-menu-indicator-icon")})}),mn=u?NV(u,gu.maxInlineSizeFallback):null,_n=mn?mn.property==="inlineSize"?Lp.popoverCustomIntrinsicWidth(mn.value):Lp.popoverCustomWidth(mn.value):Lp.popover,ft=p.jsxs(Tm,{value:Qn,children:[Q&&p.jsx(hv,{icon:p.jsx(jt,{icon:"chevronLeft",size:"sm",color:"secondary",xstyle:io.mirror}),label:B,hasCloseOnSelect:!1,onClick:()=>vt({focusTrigger:!0})}),g]});return p.jsxs(p.Fragment,{children:[p.jsx(Mf,{...L,ref:Tt,id:H,role:"menuitem",tabIndex:i?void 0:-1,"aria-haspopup":"menu","aria-expanded":pe,"aria-controls":pe?oe:void 0,"aria-disabled":i||void 0,"data-testid":C,onMouseEnter:Jr(wt.onMouseEnter,T),onMouseLeave:Jr(wt.onMouseLeave,E),onPointerMove:Jr(qn,j),startContent:t?Is(t,{size:"sm",color:"secondary"}):void 0,label:a,description:s,endContent:Hn,onClick:ut,onKeyDown:Jr(tn,z),isDisabled:i,xstyle:[H0.root,LV[P],pe&&H0.open,i&&H0.disabled,y],...Te(Ee("dropdown-menu-item",{size:P}),{className:b,style:k})}),q!=null?J&&q.host!=null&&gf.createPortal(p.jsx("div",{ref:ie,id:oe,role:"menu",tabIndex:-1,"aria-label":te,"aria-labelledby":te==null?H:void 0,hidden:!se,inert:!se,onKeyDown:Mn,"data-testid":w,...an.menuProps,...{0:{className:"x78zum5 xdt5ytf x1lsbc85 x1a2a7pz xpdipgo x87ps6o"},1:{className:"xdt5ytf x1lsbc85 x1a2a7pz xpdipgo x87ps6o x1s85apg"}}[!se<<0],children:ft}),q.host):ve.render(p.jsx("div",{ref:ie,id:oe,role:"menu",tabIndex:Ie?0:-1,"aria-labelledby":H,onKeyDown:Mn,onMouseEnter:Nt.onMouseEnter,onMouseLeave:Nt.onMouseLeave,"data-testid":w,...an.menuProps,...Te(Ee("dropdown-menu"),{0:{className:"x9f619 x78zum5 xdt5ytf x1lsbc85 x1p5vr2b x1uh1i8a x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 xpdipgo x87ps6o x1j4r261"},2:{className:"x9f619 x78zum5 xdt5ytf x1lsbc85 x1p5vr2b x1uh1i8a x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 xpdipgo x87ps6o xge0x1e xish69e"},1:{className:"x9f619 x78zum5 xdt5ytf x1lsbc85 x1p5vr2b x1uh1i8a x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 xpdipgo x87ps6o x1j4r261 x1odjw0f x6ikm8r xish69e"},3:{className:"x9f619 x78zum5 xdt5ytf x1lsbc85 x1p5vr2b x1uh1i8a x1fcsqxe xgory14 x9epnlk x1n97fys x1prclbq x1i5ehqx x1hc1fzr x19991ni xuedmi6 xlr8y92 xpdipgo x87ps6o xge0x1e x1odjw0f x6ikm8r xish69e"}}[!!Ie<<1|!!Ie<<0]),children:ft}),{placement:"end",alignment:"start",offset:kr["--spacing-1"],xstyle:[Lp.popoverViewport,_n,vf.end]})]})}YT.displayName="DropdownMenuSubMenu";function XT(e,t){return`item-${e.id??t}`}function OV(e,t){return`section-${e.id??t}`}function t3(e,t){const{items:a,id:s,...i}=e;return p.jsx(hv,{...i},XT(e,t))}function ZT(e){const t=[];for(let a=0;a<e.length;a++){const s=e[a];"type"in s&&s.type==="divider"?t.push(p.jsx(KT,{},`divider-${a}`)):"type"in s&&s.type==="section"?t.push(p.jsxs("div",{role:"group","aria-label":s.title,children:[s.title&&p.jsx("div",{"aria-hidden":"true",...Te(Ee("dropdown-menu-section-heading"),{className:"xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o"}),children:s.title}),s.items.map(t3)]},OV(s,a))):"type"in s||(s.items&&s.items.length>0?t.push(p.jsx(YT,{icon:s.icon,label:s.label,isDisabled:s.isDisabled,children:ZT(s.items)},XT(s,a))):t.push(t3(s,a)))}return t}function IV(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(mT).matches}function _V(e){const[t,a]=x.useState(!1),[s,i]=x.useState([]),[c,u]=x.useState(null),[d,f]=x.useState(e);d!==e&&(f(e),e?a(IV()):s.length>0&&i([]));const g=x.useCallback(w=>{i(v=>v.includes(w)?v:[...v,w])},[]),y=x.useCallback(()=>{i(w=>w.length===0?w:w.slice(0,-1))},[]),b=x.useMemo(()=>({isCompactTouch:t,viewStack:s,host:c,push:g,pop:y}),[t,s,c,g,y]),k=s.length>0,C=x.useCallback(w=>p.jsxs(p.Fragment,{children:[p.jsx("div",{hidden:k,inert:k,...{0:{className:"xjp7ctv"},1:{className:"x1s85apg"}}[!!k<<0],children:w}),p.jsx("div",{ref:u,className:"xjp7ctv"})]}),[k]);return{drillIn:b,isDrilled:k,wrapContent:C}}const PV=x.lazy(async()=>kf(()=>import("./MenuBottomSheet-CIOl4-qj.js"),__vite__mapDeps([0,1])).then(e=>({default:e.MenuBottomSheet}))),no={trigger:{kVAEAm:"x1n2onr6",k7VYTy:"xpdipgo",kO7zv1:"x1winvzj",kfSwDN:"x87ps6o",$$css:!0},menu:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x1lsbc85",kskxy:"xuyqlj2",kORKVm:"x1odjw0f","--_dropdown-menu-radius":"x1fcsqxe","--_dropdown-menu-padding":"xgory14",kmVPX3:"x9epnlk",kaIpWk:"x1n97fys",kWkggS:"x1prclbq",kGVxlE:"x1i5ehqx",kSiTet:"x1hc1fzr",k1ekBW:"x19991ni",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",kfSwDN:"x87ps6o",k7VYTy:"xpdipgo",$$css:!0},touchPinchZoom:{kFalU9:"x1j4r261",$$css:!0},touchPanYPinchZoom:{kFalU9:"xge0x1e",kZeWKH:"xish69e",$$css:!0},popover:{k7Eaqz:"x5w4yej",$$css:!0},popoverCustomWidth:e=>[{k7Eaqz:(typeof e=="number"?`${e}px`:e)!=null?"xkj4a21":typeof e=="number"?`${e}px`:e,$$css:!0},{"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(typeof e=="number"?`${e}px`:e)}],sheetMenu:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x1lsbc85",kzqmXN:"xh8yej3","--_dropdown-menu-radius":"x1fcsqxe","--_dropdown-menu-padding":"xgory14",kmVPX3:"x9epnlk",kaIpWk:"x1n97fys",kWkggS:"x10xzikg",kI3sdo:"x1a2a7pz",kfSwDN:"x87ps6o",$$css:!0},sheetRootHeading:{keTefX:"x6i7dpz",$$css:!0},sheetViewHeading:{kI3sdo:"x1a2a7pz",$$css:!0}};function pv({children:e,menuWidth:t,size:a="md",label:s,isDisabled:i=!1,onOpenChange:c,presentation:u="popover",triggerAs:d="div",ref:f,className:g,style:y,xstyle:b,triggerXstyle:k,"data-testid":C,...w}){const v=pn(),S=s??v("@astryx.contextMenu.label"),T=v("@astryx.dropdownMenu.back"),j=gT(u)==="bottom-sheet",{items:$,menuContent:z,...L}=w,I=$??[],N=z,D=x.useId(),P=x.useRef({x:0,y:0}),K=x.useRef(null),oe=x.useRef(null),V=x.useRef(null),H=x.useRef(null),[Z,F]=x.useState(!1),[q,Q]=x.useState([]),ae=q.at(-1),J=ae?.items??I,se=ae?.label??S,te=typeof se=="string"?se:S,fe=x.useCallback(Me=>{Me||Q([]),F(Me),c?.(Me)},[c]),B=bf({mode:"context",onHide:x.useCallback(()=>{F(!1),c?.(!1);const Me=V.current;V.current=null,Me&&document.contains(Me)&&Me.focus()},[c]),onShow:x.useCallback(()=>{F(!0),c?.(!0)},[c]),lightDismiss:!1}),ee=x.useCallback(()=>{j?fe(!1):B.hide()},[B,fe,j]),me=x.useCallback((Me,ut)=>{Me.isDisabled||(Me.onClick?.(ut),Me.hasCloseOnSelect!==!1&&ee())},[ee]);x.useEffect(()=>{if(!Z||q.length===0)return;const Me=requestAnimationFrame(()=>{H.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(Me)},[Z,q.length]);const{listRef:pe,handleKeyDown:ve,focusFirst:ye,focusItem:Oe,ownsEvent:ie,getItems:$e}=im({itemSelector:zx,boundarySelector:FT,wrap:!0,hasPaging:!0,onEscape:ee}),Pe=X1({getItemLabels:()=>$e().map(Me=>Me.textContent),onMatch:Oe,getCurrentIndex:()=>$e().findIndex(Me=>Me===document.activeElement||Me.contains(document.activeElement))});x.useEffect(()=>{if(!Z||j)return;const Me=ut=>{const tn=pe.current;tn&&!tn.contains(ut.target)&&ee()};return document.addEventListener("mousedown",Me),()=>{document.removeEventListener("mousedown",Me)}},[Z,ee,pe,j]),x.useEffect(()=>{if(!Z||j)return;const Me=ut=>{ut.key==="Escape"&&(yf(ut)||(ut.preventDefault(),ee()))};return document.addEventListener("keydown",Me),()=>{document.removeEventListener("keydown",Me)}},[Z,ee,j]);const He=x.useCallback(Me=>{if(ie(Me)){if(Me.key==="Enter"||Me.key===" "){if(Me.preventDefault(),Me.repeat)return;const ut=document.activeElement;ut&&fv.has(ut.getAttribute("role")??"")&&HT(ut,Me);return}if(Me.key==="Tab"){ee();return}if(Pe.onKeyDown(Me)){Me.preventDefault();return}ve(Me)}},[ve,ee,Pe,ie]),Ze=x.useCallback((Me,ut,tn)=>{P.current={x:Me,y:ut};const qn=K.current;qn&&(qn.style.left=`${Me}px`,qn.style.top=`${ut}px`),V.current=document.activeElement instanceof HTMLElement?document.activeElement:tn,j?fe(!0):(B.show(),requestAnimationFrame(()=>ye()))},[B,ye,fe,j]),Fe=x.useCallback(()=>oe.current?.getBoundingClientRect(),[]),Ie=x.useCallback(Me=>{if(i)return;Me.preventDefault();const ut=Fe(),tn=Me.clientX===0&&Me.clientY===0&&Me.detail===0,qn=tn||!ut?0:Me.clientX-ut.left,Mn=tn||!ut?ut?.height??0:Me.clientY-ut.top;Ze(qn,Mn,Me.currentTarget)},[i,Ze,Fe]),at=Gj({disabled:i,onLongPress:x.useCallback(Me=>{const ut=Fe();Ze(ut?Me.x-ut.left:Me.x,ut?Me.y-ut.top:Me.y,oe.current)},[Ze,Fe])}),wt=t?no.popoverCustomWidth(t):no.popover,{drillIn:Nt,wrapContent:gt}=_V(Z&&!j),st=x.useMemo(()=>({closeMenu:ee,menuSize:a,drillIn:Nt,menuLabel:S}),[ee,a,Nt,S]),Lt=gt($!==void 0?ZT(I):N),nt=sv(pe,Lt,Z&&!j),vt=xm({menuRef:pe,itemSelector:zx,onDismiss:ee,isEnabled:!j}),St=p.jsx("div",{ref:pe,id:D,role:"menu","data-autofocus":j?"":void 0,tabIndex:j?0:-1,"aria-label":S,onKeyDown:He,onContextMenu:Me=>Me.preventDefault(),...vt.menuProps,...Te(Ee("context-menu"),Se(j?no.sheetMenu:no.menu,!j&&(nt?no.touchPanYPinchZoom:no.touchPinchZoom),b),g,y),children:p.jsx(Tm,{value:st,children:Lt})}),xt=$!==void 0?p.jsxs("div",{ref:pe,"data-autofocus":"",tabIndex:0,...Te(Ee("context-menu"),Se(no.sheetMenu,b),g,y),children:[p.jsxs("div",{className:"x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5",children:[q.length>0&&p.jsx(Bt,{label:T,variant:"ghost",size:"sm",icon:p.jsx(jt,{icon:"chevronLeft",size:"sm",xstyle:io.mirror}),isIconOnly:!0,onClick:()=>Q(Me=>Me.slice(0,-1))}),p.jsx(_i,{ref:H,level:3,tabIndex:-1,xstyle:[no.sheetViewHeading,q.length===0&&no.sheetRootHeading],children:se})]}),p.jsx(UT,{items:J,onSelect:me,onOpenSubmenu:Me=>Q(ut=>[...ut,Me])})]}):St,Tt=d==="div"?"div":"span";return p.jsxs(p.Fragment,{children:[p.jsxs(Tt,{ref:Zn(f,oe),...L,onContextMenu:Ie,onTouchStart:at.onTouchStart,onTouchMove:at.onTouchMove,onTouchEnd:at.onTouchEnd,onTouchCancel:at.onTouchCancel,"data-testid":C,...Se(no.trigger,...k?Array.isArray(k)?k:[k]:[]),children:[e,p.jsx("span",{ref:Zn(K,B.ref),"aria-hidden":"true",...Te({className:"x10l6tqk xnalus7 xqtp20y x47corl"},{style:{left:`${P.current.x}px`,top:`${P.current.y}px`}})})]}),j?p.jsx(x.Suspense,{fallback:null,children:p.jsx(PV,{isOpen:Z,onOpenChange:fe,label:te,children:xt})}):B.render(St,{placement:"below",alignment:"start",xstyle:[wt,vf.below]})]})}pv.displayName="ContextMenu";function QT(e){const t=[],a=new Map;for(const i of e){const c=i.group??"__ungrouped__";let u=a.get(c);u||(u=[],a.set(c,u),t.push(c)),u.push(i)}const s=[];return t.forEach((i,c)=>{c>0&&s.push({type:"divider"});for(const u of a.get(i)??[])s.push({label:typeof u.label=="string"?u.label:u.id,icon:u.checked?p.jsx(jt,{icon:"check",size:"xsm","aria-hidden":!0}):u.icon,isDisabled:u.disabled,onClick:u.onSelect,variant:u.variant})}),s}function BV({element:e,getActions:t,triggerXstyle:a}){const[s,i]=x.useState(null);return p.jsx(pv,{items:s??[],triggerXstyle:a,onOpenChange:c=>{i(c?QT(t()):null)},children:e})}function JT(e,t,a){return typeof t=="function"?p.jsx(BV,{element:e,getActions:t,triggerXstyle:a}):!t||t.length===0?e:p.jsx(pv,{items:QT(t),triggerXstyle:a,children:e})}function FV(e,t,a){const s=[];return(e.dividers==="rows"||e.dividers==="grid")&&s.push(t),(e.dividers==="columns"||e.dividers==="grid")&&s.push(a),s}function e6(e,t){return t?Array.isArray(t)?[...e,...t]:[...e,t]:e}function t6(){return x.use(jm)}const qV={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0}},HV={compact:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},balanced:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},spacious:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0}},UV={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",$$css:!0}},n3={fill:{k1xSpc:"x1lliihq",kB7OPa:"x9f619",kZKoxP:"x5yr21d",kzqmXN:"xh8yej3",$$css:!0}},VV={cell:{kZKoxP:"x5yr21d",$$css:!0}},GV={cell:{kt9PQ7:"x92x3c3 x1wp2rvj",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},KV={cell:{ke9TFa:"xw8tdv1 x1qlsc9e",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}},WV={middle:{kXLuUW:"xxymvpz",$$css:!0},top:{kXLuUW:"x16dsc37",$$css:!0},bottom:{kXLuUW:"x3ajldb",$$css:!0}};function n6({children:e,xstyle:t,ref:a,className:s,style:i,contextMenuActions:c,...u}){const d=t6(),f=typeof c=="function"||Array.isArray(c)&&c.length>0,g=d?[f?HV[d.density]:qV[d.density],d.textOverflow==="truncate"?_T.cell:EV.cell,PT[d.density],WV[d.verticalAlign],...FV(d,GV.cell,KV.cell),...f?[VV.cell]:[]]:[],y=f&&d?[n3.fill,UV[d.density]]:f?n3.fill:void 0,b=JT(e,c,y);return p.jsx("td",{ref:a,...u,...Te(Ee("table-cell",{density:d?.density}),Se(...e6(g,t)),s,i),children:b})}n6.displayName="TableCell";const YV={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0}},XV={cell:{k63SB2:"x2mo6ok",kMwMTN:"xv1l7n4",k9WMMc:"x1yc453h",$$css:!0}},ZV={cell:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},QV={cell:{ke9TFa:"xw8tdv1 x1qlsc9e",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}};function r6({children:e,xstyle:t,ref:a,className:s,style:i,contextMenuActions:c,...u}){const d=t6(),f=[];d&&(f.push(XV.cell,YV[d.density],ZV.cell,_T.cell,PT[d.density]),(d.dividers==="columns"||d.dividers==="grid")&&f.push(QV.cell));const g=JT(e,c);return p.jsx("th",{ref:a,...u,...Te(Ee("table-header-cell",{density:d?.density}),Se(...e6(f,t)),s,i),children:g})}r6.displayName="TableHeaderCell";function a6({ref:e,children:t,xstyle:a,className:s,style:i,...c}){return p.jsx("thead",{ref:e,...Te(Ee("table-header"),Se(a),s,i),...c,children:t})}a6.displayName="TableHeader";function s6({ref:e,children:t,xstyle:a,className:s,style:i,...c}){return p.jsx("tbody",{ref:e,...Te(Ee("table-body"),Se(a),s,i),...c,children:t})}s6.displayName="TableBody";const U0={table:{kzqmXN:"xh8yej3",kLvRdT:"x1mwwwfo",kheTzg:"x1gukg7c",kPzzVL:"x140o2bo",$$css:!0},tableAutoLayout:{kPzzVL:"x1drmoe9",$$css:!0}};function kl(e,t,a,...s){return e.reduce((i,c,u)=>{const d=t(c);if(!d)return i;try{return d(i,...s)}catch(f){return CC("Table",`Plugin at index ${u} threw in transform:`,f),i}},a)}const JV=[];function eG(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function tG({item:e,rowIndex:t,rowKey:a,columns:s,plugins:i,textOverflow:c,RowComponent:u,CellComponent:d,ariaRowIndex:f}){const g=s.map((k,C)=>{const w={};k.align&&(w.style={textAlign:k.align});const S=kl(i,$=>$.transformBodyCell,{htmlProps:w,xstyle:[],columnIndex:C,columns:s},k,e,C,s),T=!k.renderCell;let E=null;S.isContentSuppressed||(E=T?bV(e,k.key):k.renderCell?.(e)??null);let j;return T&&c==="truncate"&&typeof E=="string"&&E.length>0?j=p.jsx(tt,{type:"body",maxLines:1,children:E}):j=E,p.jsx(d,{...S.htmlProps,contextMenuActions:S.contextMenuActions,xstyle:S.xstyle,children:j},k.key)}),y=kl(i,k=>k.transformBodyRow,{htmlProps:f==null?{}:{"aria-rowindex":f},xstyle:[],children:p.jsx(p.Fragment,{children:g})},e,t),b=p.jsx(u,{ref:y.ref,...y.htmlProps,xstyle:y.xstyle,children:y.children},a);return y.afterRow?p.jsxs(p.Fragment,{children:[b,y.afterRow]}):b}function nG(e,t){if(e.rowKey!==t.rowKey||e.rowIndex!==t.rowIndex||e.ariaRowIndex!==t.ariaRowIndex||e.columns!==t.columns||e.plugins!==t.plugins||e.textOverflow!==t.textOverflow||e.RowComponent!==t.RowComponent||e.CellComponent!==t.CellComponent)return!1;if(e.item===t.item)return!0;const a=e.item,s=t.item,i=Object.keys(s);if(Object.keys(a).length!==i.length)return!1;for(const c of i)if(a[c]!==s[c])return!1;return!0}const rG=x.memo(tG,nG);function aG({data:e,columns:t,idKey:a,plugins:s,children:i,textOverflow:c="wrap",scrollWrapper:u,emptyState:d,rowIndexStart:f,rowCount:g,xstyle:y,className:b,style:k,ref:C,...w}){const v=pn(),S=s??JV,T=f!=null||g!=null,E=f??1,j=T?g??-1:void 0,$=BT,z=n6,L=r6,I=t??(e?SV(e):[]),N=kl(S,J=>J.transformColumns,I),D=x.useRef(N);eG(D.current,N)||(D.current=N);const P=D.current,K=yV(P),oe=kl(S,J=>J.transformTable,{htmlProps:{},xstyle:i?[U0.table,U0.tableAutoLayout]:[U0.table]}),V=P.map((J,se)=>{const te=J.header??J.key,fe={"data-column-key":J.key,scope:"col"};J.align&&(fe.style={textAlign:J.align});const ee=kl(S,Ie=>Ie.transformHeaderCell,{htmlProps:fe,xstyle:[],content:te,columnIndex:se,columns:P},J,se,P),me=K.columns.get(J.key)?.style??{},pe=ee.htmlProps.style,ve={...ee.htmlProps,style:pe?{...me,...pe}:me},ye=ee.content??te,Oe=typeof ye=="string"&&ye.length>0?{title:ye}:{},{before:ie,after:$e,overlay:Pe,below:He}=ee,Fe=ie!=null||$e!=null||Pe!=null||He!=null?p.jsxs(p.Fragment,{children:[ie,$e!=null?p.jsxs("div",{className:"x3nfvp2 x6s0dn4 xzye2dw xeuugli",children:[ye,$e]}):ye,Pe,He]}):ye;return p.jsx(L,{...ve,...Oe,contextMenuActions:ee.contextMenuActions,xstyle:ee.xstyle,children:Fe},J.key)}),H=kl(S,J=>J.transformHeaderRow,{htmlProps:{},xstyle:[],children:p.jsx(p.Fragment,{children:V})}),Z=e!=null&&e.length>0,F=P.length>0,q={...oe.htmlProps.style,...k},Q=K.tableMinWidth>0?{...q,minWidth:gV(q.minWidth,K.tableMinWidth)}:q;let ae=p.jsx("table",{ref:C,...j!=null?{"aria-rowcount":j}:null,...oe.htmlProps,...Te(Ee("table"),Se(...oe.xstyle,y),[oe.htmlProps.className,b].filter(Boolean).join(" ")||void 0,Q),...w,children:i||p.jsxs(p.Fragment,{children:[F&&p.jsx(a6,{children:p.jsx($,{...H.htmlProps,isHeaderRow:!0,xstyle:H.xstyle,children:H.children})}),p.jsx(s6,{children:Z?e.map((J,se)=>{const te=a==null?se:typeof a=="function"?a(J):String(J[a]);return p.jsx(rG,{item:J,rowIndex:se,rowKey:te,columns:P,plugins:S,textOverflow:c,RowComponent:$,CellComponent:z,ariaRowIndex:T?E+se:void 0},te)}):e!=null&&d!==!1&&p.jsx("tr",{children:p.jsx("td",{colSpan:P.length,children:d??p.jsx(ku,{title:v("@astryx.table.noData"),isCompact:!0})})})})]})});if(u){const J=kl(S,se=>se.transformScrollWrapper,{htmlProps:{},xstyle:[]});ae=p.jsx(u,{htmlProps:J.htmlProps,xstyle:J.xstyle,beforeTable:J.beforeTable,afterTable:J.afterTable,children:ae})}for(let J=S.length-1;J>=0;J--){const se=S[J];if(se.transformTableContext)try{ae=se.transformTableContext(ae)}catch(te){CC("Table","Plugin threw in transformTableContext:",te)}}return ae}const o6=aG;o6.displayName="BaseTable";const i6=["columnSettings","sort","tree","selection","pagination"],r3=new Map(i6.map((e,t)=>[e,t]));function sG(e){const t=i6.length;return e.sort(([a],[s])=>{const i=r3.get(a)??t,c=r3.get(s)??t;return i-c})}const Dp=new Set(["transformColumns","transformTable","transformHeaderRow","transformHeaderCell","transformBodyRow","transformBodyCell","transformScrollWrapper","transformTableContext"]);function oG(e,t){const a=Object.keys(t);for(const i of a)Dp.has(i)||ms("Table",`Plugin "${e}" has unknown key "${i}". Valid keys: ${[...Dp].join(", ")}. This key will be ignored.`);for(const i of a)if(Dp.has(i)){const c=t[i];c!=null&&typeof c!="function"&&ms()}a.some(i=>Dp.has(i)&&typeof t[i]=="function")||ms()}function iG(e,t){const a=x.useRef(null);if(a.current!=null){const c=a.current;if(c.basePlugins===e&&c.userPlugins===t)return c.result;if(c.basePlugins===e&&lG(c.userPlugins,t))return c.userPlugins=t,c.result}const s=t?sG(Object.entries(t)).map(([,c])=>c):[],i=[...e,...s];if(t)for(const[c,u]of Object.entries(t))oG(c,u);return a.current={basePlugins:e,userPlugins:t,result:i},i}function lG(e,t){if(e===t)return!0;if(e==null||t==null)return!1;const a=Object.keys(e),s=Object.keys(t);if(a.length!==s.length)return!1;for(const i of a)if(e[i]!==t[i])return!1;return!0}const cG={base:{kMv6JI:"xjb2p0i",kMwMTN:"x1tgivj0",$$css:!0}},a3={base:{kXHlph:"xw2csxc",kuHK5b:"x5lxg6s",$$css:!0},containerBleed:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",keoZOQ:"xkibk3",k1K539:"xlayyun",$$css:!0}};function uG({children:e,htmlProps:t,xstyle:a,beforeTable:s,afterTable:i}){const u=pn()("@astryx.table.label"),{getViewportProps:d,getContentProps:f,state:g}=iq({axis:"inline",keyboardAccess:{owner:"content"},overscroll:"contain"}),{ref:y,...b}=t??{},k=d({role:"group","aria-label":u,...g.inline.isScrollable?{tabIndex:0}:{},...b,ref:y,...Te(Ee("table-scroll-wrapper"),Se(a3.base,a3.containerBleed,...a??[]))});return p.jsx("div",{...k,children:p.jsxs("div",{...f(),children:[s,e,i]})})}function dG(){return{transformTable(e){return{...e,xstyle:[...e.xstyle,cG.base]}}}}function fG({density:e="balanced",dividers:t="rows",isStriped:a=!1,hasHover:s=!1,verticalAlign:i="middle",textOverflow:c="wrap",plugins:u,columns:d,data:f,ref:g,...y}){const b=x.useMemo(()=>dG(),[]),k=x.useMemo(()=>[b],[b]),C=iG(k,u),w=x.useMemo(()=>({density:e,dividers:t,isStriped:a,hasHover:s,verticalAlign:i,textOverflow:c}),[e,t,a,s,i,c]);return p.jsx(jm,{value:w,children:p.jsx(o6,{ref:g,data:f,columns:d,plugins:C,textOverflow:c,scrollWrapper:uG,...y})})}const Lf=fG;Lf.displayName="Table";function hG(e,t){if(!e||e.length===0||t.length===0)return null;let a=-1;for(let u=0;u<e.length;u++)t.includes(e[u].key)&&(a=u);if(a===-1)return null;const s=IT(e),i=new Map;let c=0;for(let u=0;u<=a;u++)i.set(e[u].key,c),c+=s.get(e[u].key)??0;return i}function pG(e,t){if(!e||e.length===0||t.length===0)return null;let a=-1;for(let u=0;u<e.length;u++)if(t.includes(e[u].key)){a=u;break}if(a===-1)return null;const s=IT(e),i=new Map;let c=0;for(let u=e.length-1;u>=a;u--)i.set(e[u].key,c),c+=s.get(e[u].key)??0;return i}function s3(e,t,a,s){const i=hG(e,a);if(i?.has(t))return{edge:"start",offset:i.get(t)??0};const c=pG(e,s);return c?.has(t)?{edge:"end",offset:c.get(t)??0}:null}const xG="--table-sticky-shadow-start",mG="--table-sticky-shadow-end",Op={cell:{kVAEAm:"x7wzq59",kWkggS:"x1fd97le",kgeoSG:"x1cpjm7i",kEoFBp:"x1hmns74",kFcpXp:"xxx281p",kxmVGU:"xy5mcqj",km8f2m:"xkk1bqk",kLkRvE:"x1uvfo0n",k7KCAZ:"xxcwgru",kKXxxB:"x1y1nw7a",kqUdNP:"xa5v58t",kHypHr:"xx83zyx",kVQacm:"x1rea2x4",$$css:!0},headerCell:{kY2c9j:"xzkaem6",$$css:!0},bodyCell:{kY2c9j:"x1vjfegm",$$css:!0}},Ip={start:{k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",k3foIR:"x1m1drc7",k8Iv0R:"x1xrz1ek",kH8aOt:"x1unh1gc",kkgrvl:"xzkji8o",kLigFv:"x1qyefdi x1c108yo",kloYau:"x2q1x1w",kFJxch:"x17s1k9h",kypkao:"x1sggmfs",kNctxI:"x1ppu1g5 xk7vujl",$$css:!0},end:{k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",k3foIR:"x1m1drc7",k8Iv0R:"x1xrz1ek",kc1e00:"x1iygr5g",kkgrvl:"xzkji8o",kLigFv:"xvs0bi2 x12ayhd5",kloYau:"x2q1x1w",kFJxch:"x17s1k9h",kypkao:"x1c2idit",kNctxI:"xccdyz0 xlptwl5",$$css:!0}},o3=[];function l6(e){const{startKeys:t,endKeys:a}=e,s=t??o3,i=a??o3,c=s.length>0,u=i.length>0,d=x.useRef({start:s,end:i,hasStart:c,hasEnd:u});d.current={start:s,end:i,hasStart:c,hasEnd:u};const f=x.useRef(null),g=x.useCallback(y=>{if(f.current?.(),f.current=null,!y)return;const b=()=>{const{hasStart:C,hasEnd:w}=d.current,v=y.scrollWidth-y.clientWidth,S=v>1,T=Math.abs(y.scrollLeft);C&&y.style.setProperty(xG,S&&T>1?"1":"0"),w&&y.style.setProperty(mG,S&&T<v-1?"1":"0")};y.addEventListener("scroll",b,{passive:!0});const k=typeof ResizeObserver<"u"?new ResizeObserver(b):null;k?.observe(y),b(),f.current=()=>{y.removeEventListener("scroll",b),k?.disconnect()}},[]);return x.useMemo(()=>({transformHeaderCell(y,b){const{start:k,end:C}=d.current,w=s3(y.columns,b.key,k,C);if(!w)return y;const v=w.edge==="start"?{position:"sticky",insetInlineStart:`${w.offset}px`}:{position:"sticky",insetInlineEnd:`${w.offset}px`};return{...y,htmlProps:{...y.htmlProps,style:{...y.htmlProps.style,...v}},xstyle:[...y.xstyle,Op.cell,Op.headerCell,w.edge==="start"?Ip.start:Ip.end]}},transformBodyCell(y,b){const{start:k,end:C}=d.current,w=s3(y.columns,b.key,k,C);if(!w)return y;const v=w.edge==="start"?{insetInlineStart:`${w.offset}px`}:{insetInlineEnd:`${w.offset}px`};return{...y,htmlProps:{...y.htmlProps,style:{...y.htmlProps.style,...v}},xstyle:[...y.xstyle,Op.cell,Op.bodyCell,w.edge==="start"?Ip.start:Ip.end]}},transformScrollWrapper(y){if(!d.current.hasStart&&!d.current.hasEnd)return y;const b=y.htmlProps.ref,k=C=>{g(C),typeof b=="function"?b(C):b!=null&&(b.current=C)};return{...y,htmlProps:{...y.htmlProps,ref:k}}}}),[g])}const xv=Symbol("tableGroupHeader");function V0(e){return typeof e=="object"&&e!==null&&e[xv]===!0}const gG={get(e,t){return t===xv||t==="groupKey"||t==="count"||t in e?e[t]:""}};function yG(e,t){const a={[xv]:!0,groupKey:e,count:t};return new Proxy(a,gG)}const _p={headerRow:{kkrTdU:"x1ypdohk x16khyan",kfSwDN:"x87ps6o",kWkggS:"xwmxj5m",kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0},chevronIcon:{k1ekBW:"x11xpdln",kIyJzY:"xx6bhzk",$$css:!0},chevronIconCollapsed:{k3aq6I:"x7p49u4 xaafvuh",$$css:!0},chevronIconExpanded:{k3aq6I:"x1iffjtl x1nxqau",$$css:!0}};function bG(e){const t=pn(),{data:a,groupBy:s,collapsedGroups:i,onToggleGroup:c,renderGroupHeader:u,getRowKey:d,groupOrder:f}=e,g=x.useMemo(()=>{if(a.length===0)return[];const C=new Map;for(const S of a){const T=s(S),E=C.get(T);E?E.push(S):C.set(T,[S])}let w=[...C.keys()];if(f&&f.length>0){const S=f.filter(E=>C.has(E)),T=w.filter(E=>!f.includes(E));w=[...S,...T]}const v=[];for(const S of w){const T=C.get(S)??[];v.push(yG(S,T.length)),i.has(S)||v.push(...T)}return v},[a,s,i,f]),y=x.useMemo(()=>{if(d)return null;const C=new Map;for(let w=0;w<g.length;w++)C.set(g[w],w);return C},[g,d]),b=x.useCallback(C=>V0(C)?`__group_${C.groupKey}`:d?d(C):String(y?.get(C)??-1),[d,y]);return{plugin:x.useMemo(()=>({transformBodyCell(C,w,v){return V0(v)?{...C,isContentSuppressed:!0}:C},transformBodyRow(C,w){if(!V0(w))return C;const v=w,S=i.has(v.groupKey),T=()=>c(v.groupKey),E=u?u(v.groupKey,v.count,S):p.jsxs("span",{className:"x2mo6ok x1tgivj0",children:[v.groupKey," ",p.jsxs("span",{className:"x1sodnla xv1l7n4",children:["(",v.count,")"]})]});return{...C,htmlProps:{...C.htmlProps,onClick:T},xstyle:[...C.xstyle,_p.headerRow],children:p.jsx("td",{colSpan:999,className:"xce4md1 x1c1uobl x1t818jl",children:p.jsxs("span",{...{0:{className:"x78zum5 x6s0dn4 xzye2dw x1vsv5vr"},1:{className:"x78zum5 x6s0dn4 xzye2dw x1vsv5vr x1o0tod x7wzq59 xeq5yr9"}}[!u<<0],children:[p.jsx("button",{type:"button",...{0:{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s x1717udv x1ghz6dp xjbqb8w xc342km xng3xce x1ypdohk x16khyan xv9yike xy5bzlh"},1:{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s x1717udv x1ghz6dp xjbqb8w xc342km xng3xce x1ypdohk x16khyan xv9yike xy5bzlh x1mzz43t x7wzq59 x1vjfegm"}}[!!u<<0],onClick:j=>{j.stopPropagation(),T()},"aria-label":S?t("@astryx.tableGroupedRows.expandGroup",{groupKey:v.groupKey}):t("@astryx.tableGroupedRows.collapseGroup",{groupKey:v.groupKey}),"aria-expanded":!S,children:p.jsx(jt,{icon:"chevronRight",size:"sm",xstyle:[_p.chevronIcon,S?_p.chevronIconCollapsed:_p.chevronIconExpanded]})}),E]})})}}}),[i,c,u,t]),data:g,idKey:b}}const vG={base:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kOIVth:"xzye2dw",kZKoxP:"x1grt7ep",k8WAf4:"xt970qd",kg3NbH:"xf314gf",kaIpWk:"xjspbzw",kMv6JI:"xjb2p0i",kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",k63SB2:"x1e4wzip",khDVqt:"xuxw1ft",ks0D6T:"x193iq5w",k7Eaqz:"xeuugli",$$css:!0}},kG={neutral:{kWkggS:"x17x4s8c",kMwMTN:"x1tgivj0",$$css:!0},info:{kWkggS:"x1ewilqj",kMwMTN:"x17wrial",$$css:!0},success:{kWkggS:"xdsz4j9",kMwMTN:"xri61p4",$$css:!0},warning:{kWkggS:"x1q8g9m5",kMwMTN:"xrebv38",$$css:!0},error:{kWkggS:"x1pjz0fi",kMwMTN:"x1m024r3",$$css:!0},blue:{kWkggS:"x1o0wnni",kMwMTN:"x1vvqiwl",$$css:!0},cyan:{kWkggS:"x1rgj867",kMwMTN:"x1txnczv",$$css:!0},green:{kWkggS:"x1sqjeoo",kMwMTN:"xltfdvo",$$css:!0},orange:{kWkggS:"x1e9xt6e",kMwMTN:"xm47u9q",$$css:!0},pink:{kWkggS:"xnpoty2",kMwMTN:"xiuofww",$$css:!0},purple:{kWkggS:"x16i6n6f",kMwMTN:"x1m9wyeb",$$css:!0},red:{kWkggS:"x1cibrc5",kMwMTN:"x1joocv1",$$css:!0},teal:{kWkggS:"x1jtji5o",kMwMTN:"x9x0lbs",$$css:!0},yellow:{kWkggS:"x1bo7t0x",kMwMTN:"xdhq94a",$$css:!0}};function c6({variant:e="neutral",label:t,icon:a,xstyle:s,className:i,style:c,ref:u,...d}){const f=typeof t=="number"?String(t):typeof t=="string"&&t.length>0?t:void 0;return p.jsxs("span",{ref:u,...Te(Ee("badge",{variant:e}),Se(vG.base,kG[e],s),i,c),title:f,...d,children:[a,p.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:t})]})}c6.displayName="Badge";const Pp={dropZone:{kAzted:"x15070dp",ksu8eU:"xbsl7fq",kMzoRj:"x1litavf",kVAM5u:"xvy26l8",kWkggS:"xwmxj5m",kkrTdU:"x1ed109x",kI3sdo:"x1a2a7pz",k3Woio:"x1p25gnr",kiEn40:"xh2nty3",$$css:!0},content:{kAzted:"x1jwcc43",$$css:!0},urlLink:{kjj79g:"xl56j7k",kzqmXN:"xh8yej3",k9WMMc:"x2b8uid",$$css:!0},enterKey:{kKVMdj:"x1cytxng",k44tkh:"x1sbju2s",ko0y90:"xa4qsjk",kyAemX:"x4hg4is",$$css:!0}};function wG(e){try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function SG({isOpen:e,onOpenChange:t,onCreated:a}){const{t:s}=en(),i=qo(),c=ja(),u=x.useRef(null),[d,f]=x.useState(""),g=Qr({mutationFn:pU,onSuccess:k=>{if(!k.ok){i({body:s(of(k.error.code)),type:"error",uniqueID:`capture-error-${k.error.code}`}),k.error.code==="CAPTURE_ALREADY_EXISTS"&&f(""),u.current?.focus();return}c.invalidateQueries({queryKey:Er.all}),i({body:s("captures.captureAdded"),uniqueID:"capture-added"}),a(k.data)}});x.useEffect(()=>{e&&(f(""),requestAnimationFrame(()=>{u.current?.focus()}))},[e]);const y=k=>{const C=k.clipboardData.getData("text/plain").trim();k.preventDefault(),C&&f(C)},b=k=>{if(!(k.key!=="Enter"||g.isPending)&&(k.preventDefault(),!!d)){if(!wG(d)){i({body:s("captures.invalidUrl"),type:"error",uniqueID:"invalid-capture-url"});return}g.mutate({url:d})}};return p.jsx(Nf,{isOpen:e,onOpenChange:t,width:620,padding:4,purpose:"form","aria-label":s("captures.addCapture"),children:p.jsx(Po,{ref:u,role:"button",tabIndex:0,"aria-label":s("captures.pasteLink"),padding:8,variant:"transparent",xstyle:Pp.dropZone,onClick:()=>{u.current?.focus()},onPaste:y,onKeyDown:b,children:p.jsx(ct,{hAlign:"center",vAlign:"center",gap:4,xstyle:Pp.content,children:d?p.jsxs(p.Fragment,{children:[p.jsx(om,{href:d,isStandalone:!0,size:"lg",display:"block",weight:"semibold",maxLines:3,target:"_blank",xstyle:Pp.urlLink,children:d}),g.isPending?p.jsx(tt,{type:"supporting",children:s("captures.capturing")}):p.jsxs(Ut,{gap:2,vAlign:"center",hAlign:"center",children:[p.jsx(Rx,{keys:"enter",xstyle:Pp.enterKey}),p.jsx(tt,{type:"supporting",children:s("captures.enterToCapture")})]})]}):p.jsxs(Ut,{gap:2,vAlign:"center",hAlign:"center",wrap:"wrap",children:[p.jsx(Rx,{keys:"mod+v"}),p.jsx(tt,{type:"supporting",children:s("captures.toPaste")})]})})})})}const i3={noteButton:{kzqmXN:"xh8yej3",kjj79g:"x1nhvcw1",k9WMMc:"x1yc453h",$$css:!0},noteInput:{k7Eaqz:"xeuugli",$$css:!0}};function EG({capture:e}){const{t}=en(),a=qo(),s=ja(),[i,c]=x.useState(!1),[u,d]=x.useState(e.userNote??""),f=Qr({mutationFn:g=>mU(e.id,g),onSuccess:g=>{if(!g.ok){a({body:t(of(g.error.code)),type:"error"});return}d(g.data.userNote??""),c(!1),s.invalidateQueries({queryKey:Er.all})}});if(i){const g=()=>{if(f.isPending||u===(e.userNote??"")){c(!1);return}f.mutate(u)};return p.jsx(Ls,{label:t("captures.note"),isLabelHidden:!0,size:"sm",value:u,onChange:d,onEnter:g,onBlur:g,hasAutoFocus:!0,isLoading:f.isPending,width:"100%",containerXstyle:i3.noteInput})}return p.jsx(Bt,{label:e.userNote||t("captures.addNote"),variant:"ghost",size:"sm",xstyle:i3.noteButton,onClick:()=>{d(e.userNote??""),c(!0)}})}const CG={urlLink:{kzqmXN:"xh8yej3",$$css:!0}},$G={"--table-sticky-background":"var(--color-background-surface)"};function l3(e,t){return t===void 0?e:`${e} (${t})`}function jG(){const{t:e}=en(),t=Eu(),a=ja(),s=qo(),[i,c]=x.useState("all"),[u,d]=x.useState(!1),[f,g]=x.useState(null),y=l6({endKeys:["actions"]}),b=Va({queryKey:Er.list(i),queryFn:()=>dU(i)}),k=Va({queryKey:Er.counts(),queryFn:fU}),C=Qr({mutationFn:ST,onSuccess:j=>{s(j.ok?{body:e("captures.recaptureStarted"),uniqueID:"recapture-started"}:{body:e(of(j.error.code)),type:"error",uniqueID:j.error.code})}}),w=Qr({mutationFn:xU,onSuccess:j=>{if(!j.ok){s({body:e(of(j.error.code)),type:"error",uniqueID:j.error.code}),g(null);return}a.invalidateQueries({queryKey:Er.all}),s({body:e("captures.captureDeleted"),uniqueID:"capture-deleted"}),g(null)}}),v=()=>{a.invalidateQueries({queryKey:Er.list(i)})},S=x.useMemo(()=>[{key:"url",header:e("captures.url"),width:uu(3),renderCell:j=>p.jsx(om,{href:j.url,isStandalone:!0,display:"block",maxLines:1,target:"_blank",tooltip:j.url,xstyle:CG.urlLink,children:j.url})},{key:"title",header:e("captures.title"),width:uu(2),renderCell:j=>p.jsx(tt,{maxLines:1,children:j.title??""})},{key:"note",header:e("captures.note"),width:uu(2),renderCell:j=>p.jsx(EG,{capture:j})},{key:"updatedAt",header:e("captures.updatedAt"),width:hs(160),renderCell:j=>p.jsx(tt,{color:"secondary",children:j.updatedAt})},{key:"createdAt",header:e("captures.createdAt"),width:hs(160),renderCell:j=>p.jsx(tt,{color:"secondary",children:j.createdAt})},{key:"actions",header:"",width:hs(184),align:"end",renderCell:j=>p.jsxs(Ut,{gap:1,hAlign:"end",children:[p.jsx($a,{label:e("captures.viewDetails"),tooltip:e("captures.viewDetails"),icon:p.jsx(y$,{}),size:"sm",variant:"ghost",onClick:()=>{t(`/library/captures/${j.id}`)}}),p.jsx($a,{label:e("captures.viewJobs"),tooltip:e("captures.viewJobs"),icon:p.jsx(h_,{}),size:"sm",variant:"ghost",onClick:()=>{t(`/library/captures/${j.id}/jobs`)}}),p.jsx($a,{label:e("captures.recapture"),tooltip:e("captures.recapture"),icon:p.jsx(h$,{}),size:"sm",variant:"ghost",onClick:()=>{C.mutate(j.id)}}),p.jsx(Cm,{label:`${e("captures.delete")} ${j.url}`,isOpen:f?.id===j.id,onOpenChange:$=>{g($?j:null)},content:p.jsxs(ct,{gap:3,children:[p.jsx(tt,{type:"label",children:e("captures.deleteCaptureTitle")}),p.jsxs(Ut,{gap:2,hAlign:"end",children:[p.jsx(Bt,{label:e("captures.cancel"),size:"sm",variant:"ghost",onClick:()=>{g(null)}}),p.jsx(Bt,{label:e("captures.delete"),size:"sm",variant:"destructive",isLoading:w.isPending&&f?.id===j.id,onClick:()=>{w.mutate(j.id)}})]})]}),children:p.jsx($a,{label:e("captures.delete"),tooltip:e("captures.delete"),icon:p.jsx(k$,{}),size:"sm",variant:"ghost"})})]})}],[w,f,t,C,e]),T=b.data??[],E=k.data;return p.jsxs(p.Fragment,{children:[p.jsx(Tu,{children:p.jsxs(Ut,{gap:2,vAlign:"center",children:[p.jsx($a,{label:e("captures.refresh"),tooltip:e("captures.refresh"),icon:p.jsx(Cf,{}),size:"sm",variant:"ghost",onClick:v}),p.jsx(Bt,{label:e("captures.addCapture"),size:"sm",variant:"primary",onClick:()=>{d(!0)}})]})}),p.jsxs(ct,{gap:5,children:[p.jsxs(dv,{label:e("captures.captureFilter"),size:"sm",value:i,onChange:j=>{c(j)},children:[p.jsx(uf,{value:"all",label:l3(e("captures.allCaptures"),E?.all)}),p.jsx(uf,{value:"no-successful",label:l3(e("captures.noCapturedContent"),E?.noSuccessful)})]}),T.length===0?p.jsx($m,{startIcon:cm,centerIcon:b$,endIcon:q1,title:e("captures.emptyTitle"),description:e("captures.emptyDescription"),actions:p.jsx(Bt,{label:e("captures.addCapture"),size:"sm",variant:"primary",icon:p.jsx(v$,{}),onClick:()=>{d(!0)}})}):p.jsx(Lf,{data:T,columns:S,idKey:"id",hasHover:!0,density:"compact",plugins:{stickyColumns:y},style:$G})]}),p.jsx(SG,{isOpen:u,onOpenChange:d,onCreated:()=>{d(!1)}})]})}const u6=x.createContext(null);u6.displayName="CollapsibleGroupContext";const Db=Ra(null);Db.displayName="CollapsibleGroupPresentationContext";function d6(e){const{isCollapsible:t,value:a}=e,s=x.use(u6),i=s!=null&&a!=null,c=t===!0?{}:t||null,u=c!=null,[d,f]=x.useState(()=>i?!0:c?.isOpen!==void 0?c.isOpen:c?.defaultIsOpen??!0);let g;return i&&a!=null?g=s.isOpen(a):c?.isOpen!==void 0?g=c.isOpen:g=d,{isEnabled:u,isOpen:g,toggle:()=>{if(i&&a!=null){s.toggle(a);return}const b=!g;c?.isOpen===void 0&&f(b),c?.onOpenChange?.(b)}}}const TG={info:"info",warning:"warning",error:"error",success:"success"},RG={info:"accent",warning:"warning",error:"error",success:"success"},Oo={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kMv6JI:"xjb2p0i",$$css:!0},rootElevatedCard:{kaIpWk:"x1vf2byn",$$css:!0},header:{k1xSpc:"x78zum5",kGNEyG:"x1cy8zhl",kwnvtZ:"x1a02dak",k1C7PZ:"xak3so",khm7nJ:"x4olc9o",k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",$$css:!0},headerCardStandalone:{kaIpWk:"x1vf2byn",$$css:!0},headerCardWithContent:{krdFHd:"xwxb7qi",kfmiAY:"x13nour3",kVL7Gh:"xbiv7yw",kT0f0o:"x16uus16",$$css:!0},headerCentered:{kGNEyG:"x6s0dn4",$$css:!0},endArea:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kwnvtZ:"x1a02dak",kjj79g:"x13a6bvl",kOIVth:"x1txdalj",kmuXW:"x2lah0s",ks0D6T:"x193iq5w",keTefX:"xvc5jky",kqGvvJ:"x81ka23",$$css:!0},chevron:{k1ekBW:"x11xpdln",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},chevronExpanded:{k3aq6I:"x19jd1h0",$$css:!0}},f6={info:{kWkggS:"xgcxg3y",$$css:!0},warning:{kWkggS:"x24i8r5",$$css:!0},error:{kWkggS:"x1pritpl",$$css:!0},success:{kWkggS:"xu13z74",$$css:!0}};function AG(e){return Object.prototype.hasOwnProperty.call(f6,e)}const MG={none:{kGVxlE:"x1gnnqk1",$$css:!0},low:{kGVxlE:"x1i5ehqx",$$css:!0},med:{kGVxlE:"x14hfi27",$$css:!0},high:{kGVxlE:"x1kcpxr7",$$css:!0}};function ex({status:e,title:t,description:a,icon:s,isDismissable:i=!1,onDismiss:c,dismissLabel:u,endContent:d,container:f="card",elevation:g="none",collapsible:y=!0,children:b,xstyle:k,className:C,style:w,ref:v,onFocusCapture:S,onPointerDownCapture:T,...E}){const j=pn(),[$,z]=x.useState(!1),L=y!=null&&typeof y=="object"?y:{},{isEnabled:I,isOpen:N,toggle:D}=d6({isCollapsible:y!==!1&&{...L,defaultIsOpen:L.defaultIsOpen??!1}}),P=x.useRef(null),K=x.useId(),oe=TG[e],V=RG[e],H=Zr(b),Z=j("@astryx.banner.dismiss"),F=u??Z,q=u??(typeof t=="string"?j("@astryx.banner.dismissTitled",{dismiss:Z,title:t}):Z);if($)return null;const Q=(ve,ye)=>{ve instanceof HTMLElement&&ve!==document.body&&!ye.contains(ve)&&(P.current=ve)},ae=ve=>{Q(ve.relatedTarget,ve.currentTarget)},J=ve=>{Q(document.activeElement,ve.currentTarget)},se=()=>{const ve=P.current;z(!0),c?.(),ve?.isConnected&&ve.focus()},te=I&&H,fe=Zr(d)||i||te,B=Zr(d)||i,ee=!Zr(a)&&B,me=H&&(!I||N),pe=f==="card";return p.jsxs("div",{ref:v,onFocusCapture:Jr(S,ae),onPointerDownCapture:Jr(T,J),...Te(Ee("banner-frame",{container:f,elevation:g}),Se(Oo.root,MG[g],pe&&g!=="none"&&Oo.rootElevatedCard,k),C,w),...E,children:[p.jsxs("div",{...Te(Ee("banner",{container:f,status:e}),Se(Oo.header,ee&&Oo.headerCentered,AG(e)&&f6[e],pe&&(me?Oo.headerCardWithContent:Oo.headerCardStandalone))),children:[p.jsx("div",{...Zr(s)?Te(Ee("banner-icon",{status:e}),{className:"x78zum5 x6s0dn4 x2lah0s"}):{className:"x78zum5 x6s0dn4 x2lah0s"},"aria-hidden":"true",children:Zr(s)?s:oe!=null?p.jsx(jt,{icon:oe,size:"md",color:V,...Ee("banner-icon",{status:e})}):null}),p.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli"},1:{className:"x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli xgualba"}}[!!Zr(d)<<0],children:[p.jsx("div",{className:"x1ghz6dp xjb2p0i xcr08ib x2mo6ok x1kq96og x1tgivj0 xj0a0fe",children:t}),Zr(a)&&p.jsx("div",{...Te(Ee("banner-description"),{className:"x1ghz6dp xjb2p0i x141an7d x1sodnla x1ltkj2j xv1l7n4 xj0a0fe"}),children:a})]}),fe&&p.jsxs("div",{...Se(Oo.endArea,KN.inset(kr["--spacing-2"])),children:[d,te&&p.jsx(Bt,{variant:"ghost",size:"sm",label:j(N?"@astryx.banner.collapse":"@astryx.banner.expand"),tooltip:j(N?"@astryx.banner.collapse":"@astryx.banner.expand"),icon:p.jsx(jt,{icon:"chevronDown",size:"sm",color:"inherit",xstyle:[Oo.chevron,N&&Oo.chevronExpanded]}),onClick:D,"aria-expanded":N,"aria-controls":me?K:void 0,isIconOnly:!0}),i&&p.jsx(Bt,{variant:"ghost",size:"sm",label:q,tooltip:F,icon:p.jsx(jt,{icon:"close",size:"sm",color:"inherit"}),onClick:se,isIconOnly:!0})]})]}),me&&p.jsx("div",{id:te?K:void 0,...Te(Ee("banner-content",{container:f,status:e}),{0:{className:"x1de1mus x8o8v82 x1pzlopt xgbv0en xw8tdv1 x92x3c3 x1t7ytsu x18b5jzi x1q0q8m5 x1j92z86 x1gejf6u xw8gpjh"},1:{className:"x1de1mus x8o8v82 x1pzlopt xgbv0en xw8tdv1 x92x3c3 x1t7ytsu x18b5jzi x1q0q8m5 x1j92z86 x1gejf6u xw8gpjh x1k5g1gk x1eprgri"}}[!!pe<<0]),children:b})]})}ex.displayName="Banner";const zG=1e3,NG=100,c3={root:{kWkggS:"xprdx6m x1j0df82 x1o55y2u",kSiTet:"xvpkmg4 x1tbh5bv",$$css:!0},animate:{kILWW9:"xpz12be",k44tkh:"xqgcaz",ko0y90:"xa4qsjk",kKVMdj:"xeuoslp x1aquc0h",kyAemX:"x193epu2",$$css:!0}},LG={0:{kaIpWk:"xwksslw",$$css:!0},1:{kaIpWk:"xx3sua9",$$css:!0},2:{kaIpWk:"xh6dtrn",$$css:!0},3:{kaIpWk:"x1hviunn",$$css:!0},4:{kaIpWk:"x1hviunn",$$css:!0},none:{kaIpWk:"x2u8bby",$$css:!0},rounded:{kaIpWk:"xjspbzw",$$css:!0}},DG={kKxzle:"xvo38ju",$$css:!0},u3={animationDelay:e=>[DG,{"--x-animationDelay":(t=>typeof t=="number"?t+"ms":t??void 0)(`${zG+NG*e}ms`)}],dimensions:(e,t)=>[{kzqmXN:(typeof e=="number"?`${e}px`:e)!=null?"x5lhr3w":typeof e=="number"?`${e}px`:e,kZKoxP:(typeof t=="number"?`${t}px`:t)!=null?"x16ye13r":typeof t=="number"?`${t}px`:t,$$css:!0},{"--x-width":(a=>typeof a=="number"?a+"px":a??void 0)(typeof e=="number"?`${e}px`:e),"--x-height":(a=>typeof a=="number"?a+"px":a??void 0)(typeof t=="number"?`${t}px`:t)}]};function Yd({width:e="100%",height:t="100%",radius:a=3,index:s=0,"data-testid":i,xstyle:c,className:u,style:d,ref:f,...g}){return p.jsx("div",{ref:f,"aria-hidden":"true","data-testid":i,...Te(Ee("skeleton"),Se(c3.root,c3.animate,LG[a],u3.dimensions(e,t),u3.animationDelay(s),c),u,d),...g})}Yd.displayName="Skeleton";const OG="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eOpenAI%3c/title%3e%3cpath%20d='M9.205%208.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357%201.356-.523%202.117-.523%202.854%200%204.662%202.212%204.662%204.566%200%20.167%200%20.357-.024.547l-4.71-2.759a.797.797%200%2000-.856%200l-5.97%203.473zm10.609%208.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473%201.95-1.118a.433.433%200%2001.476%200l4.543%202.617c1.309.76%202.189%202.378%202.189%203.948%200%201.808-1.07%203.473-2.76%204.163zM7.802%2012.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545%201.95-4.472%204.591-4.472%201%200%201.927.333%202.712.928L8.23%205.067c-.285.166-.428.404-.428.737v6.898zM12%2015.128l-2.795-1.57v-3.33L12%208.658l2.795%201.57v3.33L12%2015.128zm1.796%207.23c-1%200-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974%201.142c.167.095.238.238.238.428v5.233c0%202.545-1.974%204.472-4.614%204.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482%204.482%200%20014.21%206.327v5.423c0%20.333.143.571.428.738l5.947%203.449-1.95%201.118a.432.432%200%2001-.476%200zm-.262%203.9c-2.688%200-4.662-2.021-4.662-4.519%200-.19.024-.38.047-.57l4.686%202.71c.286.167.571.167.856%200l5.97-3.448v2.26c0%20.19-.07.333-.237.428l-4.543%202.616c-.619.357-1.356.523-2.117.523zm5.899%202.83a5.947%205.947%200%20005.827-4.756C22.287%2018.339%2024%2015.84%2024%2013.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498%200-3.401-2.759-5.947-5.946-5.947-.642%200-1.26.095-1.88.31A5.962%205.962%200%200010.205%200a5.947%205.947%200%2000-5.827%204.757C1.713%205.447%200%207.945%200%2010.49c0%201.666.713%203.283%201.998%204.448-.119.5-.19%201-.19%201.499%200%203.401%202.759%205.946%205.946%205.946.642%200%201.26-.095%201.88-.309a5.96%205.96%200%20004.162%201.713z'%3e%3c/path%3e%3c/svg%3e",IG="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClaude%20Code%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M20.998%2010.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6%2010.949h1.488V8.102H6v2.847zm10.51%200H18V8.102h-1.49v2.847z'%3e%3c/path%3e%3c/svg%3e",_G={codex:["sessions","codex"],claude:["sessions","claude"],source:e=>["sessions",e]};function PG(){return rr("/api/sessions/codex")}function BG(){return rr("/api/sessions/claude")}function FG(e){return e==="codex"?PG():BG()}const ls={root:{kzqmXN:"xh8yej3",$$css:!0},trigger:{kB7OPa:"x9f619",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kzqmXN:"xh8yej3",kkrTdU:"x1ypdohk x16khyan",kMv6JI:"x9ynric",kGuDYH:"x18juvz8",k63SB2:"x2mo6ok",kMwMTN:"x1tgivj0",k9WMMc:"x1yc453h",k8WAf4:"xt970qd",$$css:!0},triggerDisabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",$$css:!0},chevron:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",kzqmXN:"xta46cu",kZKoxP:"x1seg80s",kGuDYH:"x18juvz8",k1ekBW:"x11xpdln",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},chevronOpen:{k3aq6I:"x19jd1h0",$$css:!0},chevronClosed:{k3aq6I:"x7p49u4",$$css:!0},chevronStart:{k71WvV:"x1pezmd8",$$css:!0},chevronStartOpen:{k3aq6I:"x1iffjtl x1nxqau",$$css:!0},chevronStartClosed:{k3aq6I:"x7p49u4 xaafvuh",$$css:!0},contentHidden:{k1xSpc:"x1s85apg",$$css:!0},content:{kLKAdn:"xfsso4q",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",k63SB2:"xxovm9e",kLWn49:"xw6l6zx",kMwMTN:"x1tgivj0",$$css:!0},divided:{kEafiO:"x11xkdxz x1g31smg",kPef9Z:"x13fuv20",kLZC3w:"x1pc3f07",$$css:!0}},du={triggerCompact:{k8WAf4:"xu0wf1k",$$css:!0},triggerBalanced:{k8WAf4:"xce4md1",$$css:!0},triggerSpacious:{k8WAf4:"x8o8v82",$$css:!0},contentCompact:{kGO01o:"xy143xn",$$css:!0},contentBalanced:{kGO01o:"x1wesfrj",$$css:!0},contentSpacious:{kGO01o:"xvmdzux",$$css:!0}},qG={compact:du.triggerCompact,balanced:du.triggerBalanced,spacious:du.triggerSpacious},HG={compact:du.contentCompact,balanced:du.contentBalanced,spacious:du.contentSpacious};function h6({trigger:e,children:t,defaultIsOpen:a,isOpen:s,isDisabled:i=!1,onOpenChange:c,chevronPosition:u,value:d,ref:f,xstyle:g,className:y,style:b,...k}){const C=Ka(),w=s!==void 0?{isOpen:s,onOpenChange:c}:{defaultIsOpen:a??!0,onOpenChange:c},{isOpen:v,toggle:S}=d6({isCollapsible:w,value:d}),T=()=>{i||S()},E=x.use(Db),j=E?.hasDividers??!1,$=E?.density??null,z=u??E?.chevronPosition??"end",L=z==="start",I=x.useId(),N=p.jsx(jt,{icon:L?"chevronRight":"chevronDown",size:"sm",color:"secondary",xstyle:[ls.chevron,L&&ls.chevronStart,L?v?ls.chevronStartOpen:ls.chevronStartClosed:v?ls.chevronOpen:ls.chevronClosed]});return p.jsxs("div",{ref:f,...Te(Ee("collapsible",{density:$??void 0,divided:j?"divided":null}),Se(ls.root,j&&ls.divided,g),y,b),...k,children:[p.jsxs("button",{type:"button",onClick:T,"aria-disabled":i||void 0,"aria-expanded":v,"aria-controls":I,tabIndex:i?-1:void 0,...i?void 0:C,...Te(Ee("collapsible-trigger",{density:$??void 0,chevronPosition:z,open:v?"open":null,disabled:i?"disabled":null}),Xn.focusVisible(ls.trigger,$!=null&&qG[$],!i&&Nr.pressedBackgroundColor,i&&ls.triggerDisabled)),children:[L&&N,p.jsx("span",{className:"x1b2iylo xwgcxoh x1iyjqo2",children:e}),!L&&N]}),p.jsx("div",{id:I,...Te(Ee("collapsible-content",{density:$??void 0,open:v?"open":null}),Se(ls.content,$!=null&&HG[$],!v&&ls.contentHidden)),children:E!=null?p.jsx(Db,{value:null,children:t}):t})]})}h6.displayName="Collapsible";function p6(e){const t=typeof e=="number"&&Number.isFinite(e)?e:0;if(t<=0)return"—";const a=["B","KB","MB","GB","TB"];let s=t,i=0;for(;s>=1024&&i<a.length-1;)s/=1024,i+=1;return i===0?`${Math.round(s)} ${a[i]}`:`${s>=100?Math.round(s):s.toFixed(1).replace(/\.0$/u,"")} ${a[i]}`}function UG(e){const t=typeof e=="number"&&Number.isFinite(e)?e:0;return t<=0?"—":t<1e3?Math.round(t).toString():t<1e6?G0(t/1e3,"K"):t<1e9?G0(t/1e6,"M"):G0(t/1e9,"B")}function G0(e,t){return`${e>=100?Math.round(e):e.toFixed(1).replace(/\.0$/u,"")}${t}`}function VG(e){const t=new Map(e.map(i=>[i.id,{...i,children:[]}])),a=[];for(const i of t.values()){const c=i.subagent&&i.parentThreadId?t.get(i.parentThreadId):void 0,u=new Set([i.id]);let d=c;for(;d&&!u.has(d.id);)u.add(d.id),d=d.subagent&&d.parentThreadId?t.get(d.parentThreadId):void 0;c&&!d?c.children.push(i):a.push(i)}const s=i=>i.toSorted((c,u)=>u.updatedAt.localeCompare(c.updatedAt)).map(c=>({...c,children:s(c.children)}));return s(a)}const GG={x1v6iqhr:"x1v6iqhr",$$css:!0},mv={groupHeader:{kzqmXN:"xh8yej3",k7Eaqz:"xeuugli",kwnvtZ:"x1a02dak",khm7nJ:"x1ngg2t4",$$css:!0},title:{k7Eaqz:"xeuugli",$$css:!0},subagentSection:{kZCmMZ:"x31w388",kwRFfy:"x1djylfy",k8WAf4:"xce4md1",k52DlI:"x2tbzkx",$$css:!0}},KG={transformHeaderCell:e=>({...e,content:p.jsx(lo,{children:e.content}),htmlProps:{...e.htmlProps,style:{...e.htmlProps.style,paddingBlock:0,height:0,borderBottomWidth:0}}})};function WG({snapshot:e,isShowingArchived:t,formatUpdatedAt:a}){const{t:s}=en(),i=x.useMemo(()=>XG(e,t,s),[e,t,s]),c=x.useMemo(()=>new Map(i.map(v=>[v.key,v])),[i]),u=x.useMemo(()=>i.flatMap(v=>v.threads.map(S=>({...S,groupKey:v.key}))),[i]),d=x.useMemo(()=>new Set(i.map(v=>v.key)),[i]),[f,g]=x.useState(()=>new Map),y=x.useMemo(()=>{const v=new Set(d);for(const[S,T]of f)T?v.add(S):v.delete(S);return v},[d,f]),b=bG({data:u,groupBy:v=>v.groupKey,collapsedGroups:y,onToggleGroup:v=>{g(S=>{const T=new Map(S);return T.set(v,!y.has(v)),T})},renderGroupHeader:v=>{const S=c.get(v);if(!S)return null;const T=S.roots.length>0?S.roots.join(`
95
+ `):void 0;return p.jsxs(Ut,{gap:3,vAlign:"center",xstyle:mv.groupHeader,children:[p.jsx("span",{title:T,className:"xeuugli xs83m0k",children:p.jsx(tt,{weight:"semibold",maxLines:1,children:S.name})}),p.jsx(tt,{type:"supporting",children:s("sessions.sessionCount",{count:S.count})}),p.jsx(Ni,{size:"fill"}),p.jsx(tt,{type:"supporting",children:p6(S.totalBytes)}),p.jsx(tt,{type:"supporting",children:a(S.lastUpdatedAt)})]})},getRowKey:v=>v.id,groupOrder:i.map(v=>v.key)}),k=l6({startKeys:["thread"]}),C=x6(a),w=m6(C,a);return p.jsx(Lf,{data:b.data,columns:C,idKey:b.idKey,hasHover:!0,plugins:{groupedRows:b.plugin,stickyColumns:k,subagents:w}})}function x6(e){const{t}=en();return x.useMemo(()=>[{key:"thread",header:t("sessions.thread"),width:uu(4,{minWidth:240}),renderCell:a=>p.jsxs(ct,{gap:0,xstyle:mv.title,children:[p.jsx(tt,{maxLines:1,children:a.title}),d3(a,t)&&p.jsx(tt,{type:"supporting",maxLines:1,children:d3(a,t)})]})},{key:"updated",header:t("sessions.updated"),width:hs(190),align:"end",renderCell:a=>p.jsx(tt,{color:"secondary",maxLines:1,children:e(a.updatedAt)})},{key:"size",header:t("sessions.size"),width:hs(144),align:"end",renderCell:a=>p.jsx(tt,{color:"secondary",children:p6(a.sizeBytes)})},{key:"tokens",header:t("sessions.tokens"),width:hs(100),align:"end",renderCell:a=>p.jsx(tt,{color:"secondary",children:UG(a.tokensUsed)})},{key:"model",header:t("sessions.model"),width:uu(2,{minWidth:140}),renderCell:a=>p.jsx(tt,{maxLines:1,children:a.model??""})}],[e,t])}function YG({threads:e,formatUpdatedAt:t}){const{t:a}=en(),s=x6(t),i=m6(s,t);return p.jsx(h6,{trigger:p.jsxs(tt,{type:"supporting",children:[a("sessions.subagents")," ","(",e.length,")"]}),defaultIsOpen:!1,chevronPosition:"start",xstyle:mv.subagentSection,children:p.jsx("div",{className:"xrhngw9 xjsfl84 x1047aw6 xax9j7h x1xye8es",children:p.jsx(Lf,{data:e,columns:s,idKey:"id",hasHover:!0,plugins:{subagentHeaders:KG,subagents:i}})})})}function m6(e,t){return x.useMemo(()=>({transformBodyCell:(a,s,i)=>!("children"in i)||i.children.length===0?a:{...a,htmlProps:{...a.htmlProps,style:{...a.htmlProps.style,borderBottomWidth:0}}},transformBodyRow:(a,s)=>!("children"in s)||s.children.length===0?a:{...a,afterRow:p.jsxs(p.Fragment,{children:[a.afterRow,p.jsx("tr",{"data-expansion-panel":"",...Se(GG),children:p.jsx("td",{colSpan:e.length,className:"x1717udv x92x3c3 xe1k52c x1q0q8m5 xw8gpjh",children:p.jsx(YG,{threads:s.children,formatUpdatedAt:t})})})]})}}),[e,t])}function XG(e,t,a){const s=new Map,i=e.threads.filter(u=>t||!u.archived);for(const u of VG(i)){const d=u.cwd;let f=s.get(d);f||(f={key:d,name:u.cwd.split(/[\\/]/u).findLast(Boolean)||u.cwd||a("sessions.unknownDirectory"),roots:u.cwd?[u.cwd]:[],threads:[],count:0,totalBytes:0,lastUpdatedAt:u.updatedAt},s.set(d,f)),f.threads.push(u);const g=[u];for(;g.length>0;){const y=g.pop();f.count+=1,f.totalBytes+=y.sizeBytes,y.updatedAt>f.lastUpdatedAt&&(f.lastUpdatedAt=y.updatedAt),g.push(...y.children)}}return Array.from(s.values(),u=>({...u,threads:u.threads.toSorted((d,f)=>f.updatedAt.localeCompare(d.updatedAt))})).toSorted((u,d)=>d.lastUpdatedAt.localeCompare(u.lastUpdatedAt)||u.name.localeCompare(d.name))}function d3(e,t){const a=[];if(e.gitBranch&&a.push(e.gitBranch),e.cwd){const s=e.cwd.split(/[\\/]/u).findLast(Boolean);s&&a.push(s)}return e.subagent&&a.push(t("sessions.subagent")),e.archived&&a.push(t("sessions.archived")),a.join(" · ")}const ZG={kzqmXN:"xh8yej3",kZKoxP:"x5yr21d",kWkggS:"xtwfq29",kX1K2I:"xwjwp01",k2A1W4:"x1rudrqi",kJcbqH:"x16fucec",kn1fP1:"x2k2kcx",$$css:!0},f3={sourceIcon:e=>[ZG,{"--x-maskImage":`url("${e}")`!=null?`url("${e}")`:void 0}]};function QG(){const{t:e}=en(),[t,a]=gC(),s=t.get("source")==="claude"?"claude":"codex",[i,c]=x.useState(!1),u=Va({queryKey:Li.current(),queryFn:hm}),d=Va({queryKey:_G.source(s),queryFn:()=>FG(s),staleTime:0,refetchOnMount:"always"}),f=x.useCallback(k=>{if(!k)return"";if(u.data)return Nb(k,u.data);const C=new Date(k);return Number.isNaN(C.getTime())?"":C.toLocaleString()},[u.data]),g=d.data,y=g?.threads.filter(k=>k.archived).length??0,b=e(s==="codex"?"sessions.codex":"sessions.claudeCode");return p.jsxs(p.Fragment,{children:[p.jsx(Tu,{children:p.jsx(Ut,{gap:2,vAlign:"center",children:p.jsx($a,{label:e(d.isFetching?"sessions.loading":"sessions.refresh"),tooltip:e(d.isFetching?"sessions.loading":"sessions.refresh"),icon:p.jsx(Cf,{}),size:"sm",variant:"ghost",isLoading:d.isFetching,onClick:()=>{d.refetch()}})})}),p.jsxs(ct,{gap:4,children:[p.jsxs(dv,{label:e("sessions.source"),size:"sm",value:s,onChange:k=>{if(k!=="codex"&&k!=="claude")return;const C=new URLSearchParams(t);k==="claude"?C.set("source","claude"):C.delete("source"),a(C)},children:[p.jsx(uf,{value:"codex",label:e("sessions.codex"),icon:p.jsx("span",{"aria-hidden":"true",...Se(f3.sourceIcon(OG))})}),p.jsx(uf,{value:"claude",label:e("sessions.claudeCode"),icon:p.jsx("span",{"aria-hidden":"true",...Se(f3.sourceIcon(IG))})})]}),p.jsx(JG,{source:s,sourceLabel:b,isPending:d.isPending,isFetching:d.isFetching,error:d.error,snapshot:g,isShowingArchived:i,archivedCount:y,onShowArchivedChange:c,formatUpdatedAt:f},s)]})]})}function JG({source:e,sourceLabel:t,isPending:a,isFetching:s,error:i,snapshot:c,isShowingArchived:u,archivedCount:d,onShowArchivedChange:f,formatUpdatedAt:g}){const{t:y}=en();if(a)return p.jsx(p3,{});const b=i instanceof jx?i.code:void 0;if(!c&&b?.endsWith("_DATA_NOT_FOUND"))return p.jsx(h3,{source:t});if(i&&(!c||c.threads.length===0))return p.jsx(ex,{status:"error",title:y("sessions.errorTitle"),description:y("sessions.errorDescription")});if(!c)return p.jsx(p3,{});if(c.threads.length===0&&c.warnings.length===0)return p.jsx(h3,{source:t});const k=c.threads.some(v=>u||!v.archived),C=d>0&&!u;let w="sessions.noThreadsDescription";return c.threads.length===0?w="sessions.noReadableDescription":C&&(w="sessions.showArchivedHint"),p.jsxs(ct,{gap:4,"aria-busy":s,children:[i?p.jsx(ex,{status:"error",title:y("sessions.errorTitle"),description:y("sessions.errorDescription")}):null,c.warnings.map(v=>p.jsx(ex,{status:"warning",title:y("sessions.warningTitle"),description:eK(v,y)},`${v.code}-${v.count??"all"}`)),e==="codex"||d>0?p.jsx(wm,{label:`${y("sessions.includeArchived")} (${d})`,size:"sm",value:u,onChange:f}):null,k?p.jsx(WG,{snapshot:c,isShowingArchived:u,formatUpdatedAt:g},u?"archived":"active"):p.jsx($m,{startIcon:q1,centerIcon:B1,endIcon:U1,title:y(c.threads.length===0?"sessions.noReadableTitle":"sessions.noThreadsTitle"),description:y(w)})]})}function h3({source:e}){const{t}=en();return p.jsx($m,{startIcon:U1,centerIcon:m$,endIcon:q1,title:t("sessions.emptyTitle",{source:e}),description:t("sessions.emptyDescription",{source:e})})}function p3(){return p.jsx("div",{"aria-busy":"true",children:p.jsx(ct,{gap:2,children:Array.from({length:8},(e,t)=>p.jsx(Yd,{height:44,index:t},t))})})}function eK(e,t){return t("sessions.filesUnreadable",{count:e.count??0})}var tx={exports:{}},tK=tx.exports,x3;function nK(){return x3||(x3=1,(function(e,t){(function(a,s){e.exports=s(df())})(tK,a=>(()=>{var s={165(d,f,g){const y=g(877),b={};for(const w of Object.keys(y))b[y[w]]=w;const k={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};d.exports=k;for(const w of Object.keys(k)){if(!("channels"in k[w]))throw new Error("missing channels property: "+w);if(!("labels"in k[w]))throw new Error("missing channel labels property: "+w);if(k[w].labels.length!==k[w].channels)throw new Error("channel and label counts mismatch: "+w);const{channels:v,labels:S}=k[w];delete k[w].channels,delete k[w].labels,Object.defineProperty(k[w],"channels",{value:v}),Object.defineProperty(k[w],"labels",{value:S})}function C(w,v){return(w[0]-v[0])**2+(w[1]-v[1])**2+(w[2]-v[2])**2}k.rgb.hsl=function(w){const v=w[0]/255,S=w[1]/255,T=w[2]/255,E=Math.min(v,S,T),j=Math.max(v,S,T),$=j-E;let z,L;j===E?z=0:v===j?z=(S-T)/$:S===j?z=2+(T-v)/$:T===j&&(z=4+(v-S)/$),z=Math.min(60*z,360),z<0&&(z+=360);const I=(E+j)/2;return L=j===E?0:I<=.5?$/(j+E):$/(2-j-E),[z,100*L,100*I]},k.rgb.hsv=function(w){let v,S,T,E,j;const $=w[0]/255,z=w[1]/255,L=w[2]/255,I=Math.max($,z,L),N=I-Math.min($,z,L),D=function(P){return(I-P)/6/N+.5};return N===0?(E=0,j=0):(j=N/I,v=D($),S=D(z),T=D(L),$===I?E=T-S:z===I?E=.3333333333333333+v-T:L===I&&(E=.6666666666666666+S-v),E<0?E+=1:E>1&&(E-=1)),[360*E,100*j,100*I]},k.rgb.hwb=function(w){const v=w[0],S=w[1];let T=w[2];const E=k.rgb.hsl(w)[0],j=1/255*Math.min(v,Math.min(S,T));return T=1-.00392156862745098*Math.max(v,Math.max(S,T)),[E,100*j,100*T]},k.rgb.cmyk=function(w){const v=w[0]/255,S=w[1]/255,T=w[2]/255,E=Math.min(1-v,1-S,1-T);return[100*((1-v-E)/(1-E)||0),100*((1-S-E)/(1-E)||0),100*((1-T-E)/(1-E)||0),100*E]},k.rgb.keyword=function(w){const v=b[w];if(v)return v;let S,T=1/0;for(const E of Object.keys(y)){const j=C(w,y[E]);j<T&&(T=j,S=E)}return S},k.keyword.rgb=function(w){return y[w]},k.rgb.xyz=function(w){let v=w[0]/255,S=w[1]/255,T=w[2]/255;return v=v>.04045?((v+.055)/1.055)**2.4:v/12.92,S=S>.04045?((S+.055)/1.055)**2.4:S/12.92,T=T>.04045?((T+.055)/1.055)**2.4:T/12.92,[100*(.4124*v+.3576*S+.1805*T),100*(.2126*v+.7152*S+.0722*T),100*(.0193*v+.1192*S+.9505*T)]},k.rgb.lab=function(w){const v=k.rgb.xyz(w);let S=v[0],T=v[1],E=v[2];return S/=95.047,T/=100,E/=108.883,S=S>.008856?S**.3333333333333333:7.787*S+.13793103448275862,T=T>.008856?T**.3333333333333333:7.787*T+.13793103448275862,E=E>.008856?E**.3333333333333333:7.787*E+.13793103448275862,[116*T-16,500*(S-T),200*(T-E)]},k.hsl.rgb=function(w){const v=w[0]/360,S=w[1]/100,T=w[2]/100;let E,j,$;if(S===0)return $=255*T,[$,$,$];E=T<.5?T*(1+S):T+S-T*S;const z=2*T-E,L=[0,0,0];for(let I=0;I<3;I++)j=v+.3333333333333333*-(I-1),j<0&&j++,j>1&&j--,$=6*j<1?z+6*(E-z)*j:2*j<1?E:3*j<2?z+(E-z)*(.6666666666666666-j)*6:z,L[I]=255*$;return L},k.hsl.hsv=function(w){const v=w[0];let S=w[1]/100,T=w[2]/100,E=S;const j=Math.max(T,.01);return T*=2,S*=T<=1?T:2-T,E*=j<=1?j:2-j,[v,100*(T===0?2*E/(j+E):2*S/(T+S)),100*((T+S)/2)]},k.hsv.rgb=function(w){const v=w[0]/60,S=w[1]/100;let T=w[2]/100;const E=Math.floor(v)%6,j=v-Math.floor(v),$=255*T*(1-S),z=255*T*(1-S*j),L=255*T*(1-S*(1-j));switch(T*=255,E){case 0:return[T,L,$];case 1:return[z,T,$];case 2:return[$,T,L];case 3:return[$,z,T];case 4:return[L,$,T];case 5:return[T,$,z]}},k.hsv.hsl=function(w){const v=w[0],S=w[1]/100,T=w[2]/100,E=Math.max(T,.01);let j,$;$=(2-S)*T;const z=(2-S)*E;return j=S*E,j/=z<=1?z:2-z,j=j||0,$/=2,[v,100*j,100*$]},k.hwb.rgb=function(w){const v=w[0]/360;let S=w[1]/100,T=w[2]/100;const E=S+T;let j;E>1&&(S/=E,T/=E);const $=Math.floor(6*v),z=1-T;j=6*v-$,1&$&&(j=1-j);const L=S+j*(z-S);let I,N,D;switch($){default:case 6:case 0:I=z,N=L,D=S;break;case 1:I=L,N=z,D=S;break;case 2:I=S,N=z,D=L;break;case 3:I=S,N=L,D=z;break;case 4:I=L,N=S,D=z;break;case 5:I=z,N=S,D=L}return[255*I,255*N,255*D]},k.cmyk.rgb=function(w){const v=w[0]/100,S=w[1]/100,T=w[2]/100,E=w[3]/100;return[255*(1-Math.min(1,v*(1-E)+E)),255*(1-Math.min(1,S*(1-E)+E)),255*(1-Math.min(1,T*(1-E)+E))]},k.xyz.rgb=function(w){const v=w[0]/100,S=w[1]/100,T=w[2]/100;let E,j,$;return E=3.2406*v+-1.5372*S+-.4986*T,j=-.9689*v+1.8758*S+.0415*T,$=.0557*v+-.204*S+1.057*T,E=E>.0031308?1.055*E**.4166666666666667-.055:12.92*E,j=j>.0031308?1.055*j**.4166666666666667-.055:12.92*j,$=$>.0031308?1.055*$**.4166666666666667-.055:12.92*$,E=Math.min(Math.max(0,E),1),j=Math.min(Math.max(0,j),1),$=Math.min(Math.max(0,$),1),[255*E,255*j,255*$]},k.xyz.lab=function(w){let v=w[0],S=w[1],T=w[2];return v/=95.047,S/=100,T/=108.883,v=v>.008856?v**.3333333333333333:7.787*v+.13793103448275862,S=S>.008856?S**.3333333333333333:7.787*S+.13793103448275862,T=T>.008856?T**.3333333333333333:7.787*T+.13793103448275862,[116*S-16,500*(v-S),200*(S-T)]},k.lab.xyz=function(w){let v,S,T;S=(w[0]+16)/116,v=w[1]/500+S,T=S-w[2]/200;const E=S**3,j=v**3,$=T**3;return S=E>.008856?E:(S-.13793103448275862)/7.787,v=j>.008856?j:(v-.13793103448275862)/7.787,T=$>.008856?$:(T-.13793103448275862)/7.787,v*=95.047,S*=100,T*=108.883,[v,S,T]},k.lab.lch=function(w){const v=w[0],S=w[1],T=w[2];let E;return E=360*Math.atan2(T,S)/2/Math.PI,E<0&&(E+=360),[v,Math.sqrt(S*S+T*T),E]},k.lch.lab=function(w){const v=w[0],S=w[1],T=w[2]/360*2*Math.PI;return[v,S*Math.cos(T),S*Math.sin(T)]},k.rgb.ansi16=function(w,v=null){const[S,T,E]=w;let j=v===null?k.rgb.hsv(w)[2]:v;if(j=Math.round(j/50),j===0)return 30;let $=30+(Math.round(E/255)<<2|Math.round(T/255)<<1|Math.round(S/255));return j===2&&($+=60),$},k.hsv.ansi16=function(w){return k.rgb.ansi16(k.hsv.rgb(w),w[2])},k.rgb.ansi256=function(w){const v=w[0],S=w[1],T=w[2];return v===S&&S===T?v<8?16:v>248?231:Math.round((v-8)/247*24)+232:16+36*Math.round(v/255*5)+6*Math.round(S/255*5)+Math.round(T/255*5)},k.ansi16.rgb=function(w){let v=w%10;if(v===0||v===7)return w>50&&(v+=3.5),v=v/10.5*255,[v,v,v];const S=.5*(1+~~(w>50));return[(1&v)*S*255,(v>>1&1)*S*255,(v>>2&1)*S*255]},k.ansi256.rgb=function(w){if(w>=232){const S=10*(w-232)+8;return[S,S,S]}let v;return w-=16,[Math.floor(w/36)/5*255,Math.floor((v=w%36)/6)/5*255,v%6/5*255]},k.rgb.hex=function(w){const v=(((255&Math.round(w[0]))<<16)+((255&Math.round(w[1]))<<8)+(255&Math.round(w[2]))).toString(16).toUpperCase();return"000000".substring(v.length)+v},k.hex.rgb=function(w){const v=w.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!v)return[0,0,0];let S=v[0];v[0].length===3&&(S=S.split("").map(E=>E+E).join(""));const T=parseInt(S,16);return[T>>16&255,T>>8&255,255&T]},k.rgb.hcg=function(w){const v=w[0]/255,S=w[1]/255,T=w[2]/255,E=Math.max(Math.max(v,S),T),j=Math.min(Math.min(v,S),T),$=E-j;let z,L;return z=$<1?j/(1-$):0,L=$<=0?0:E===v?(S-T)/$%6:E===S?2+(T-v)/$:4+(v-S)/$,L/=6,L%=1,[360*L,100*$,100*z]},k.hsl.hcg=function(w){const v=w[1]/100,S=w[2]/100,T=S<.5?2*v*S:2*v*(1-S);let E=0;return T<1&&(E=(S-.5*T)/(1-T)),[w[0],100*T,100*E]},k.hsv.hcg=function(w){const v=w[1]/100,S=w[2]/100,T=v*S;let E=0;return T<1&&(E=(S-T)/(1-T)),[w[0],100*T,100*E]},k.hcg.rgb=function(w){const v=w[0]/360,S=w[1]/100,T=w[2]/100;if(S===0)return[255*T,255*T,255*T];const E=[0,0,0],j=v%1*6,$=j%1,z=1-$;let L=0;switch(Math.floor(j)){case 0:E[0]=1,E[1]=$,E[2]=0;break;case 1:E[0]=z,E[1]=1,E[2]=0;break;case 2:E[0]=0,E[1]=1,E[2]=$;break;case 3:E[0]=0,E[1]=z,E[2]=1;break;case 4:E[0]=$,E[1]=0,E[2]=1;break;default:E[0]=1,E[1]=0,E[2]=z}return L=(1-S)*T,[255*(S*E[0]+L),255*(S*E[1]+L),255*(S*E[2]+L)]},k.hcg.hsv=function(w){const v=w[1]/100,S=v+w[2]/100*(1-v);let T=0;return S>0&&(T=v/S),[w[0],100*T,100*S]},k.hcg.hsl=function(w){const v=w[1]/100,S=w[2]/100*(1-v)+.5*v;let T=0;return S>0&&S<.5?T=v/(2*S):S>=.5&&S<1&&(T=v/(2*(1-S))),[w[0],100*T,100*S]},k.hcg.hwb=function(w){const v=w[1]/100,S=v+w[2]/100*(1-v);return[w[0],100*(S-v),100*(1-S)]},k.hwb.hcg=function(w){const v=w[1]/100,S=1-w[2]/100,T=S-v;let E=0;return T<1&&(E=(S-T)/(1-T)),[w[0],100*T,100*E]},k.apple.rgb=function(w){return[w[0]/65535*255,w[1]/65535*255,w[2]/65535*255]},k.rgb.apple=function(w){return[w[0]/255*65535,w[1]/255*65535,w[2]/255*65535]},k.gray.rgb=function(w){return[w[0]/100*255,w[0]/100*255,w[0]/100*255]},k.gray.hsl=function(w){return[0,0,w[0]]},k.gray.hsv=k.gray.hsl,k.gray.hwb=function(w){return[0,100,w[0]]},k.gray.cmyk=function(w){return[0,0,0,w[0]]},k.gray.lab=function(w){return[w[0],0,0]},k.gray.hex=function(w){const v=255&Math.round(w[0]/100*255),S=((v<<16)+(v<<8)+v).toString(16).toUpperCase();return"000000".substring(S.length)+S},k.rgb.gray=function(w){return[(w[0]+w[1]+w[2])/3/255*100]}},880(d,f,g){const y=g(165),b=g(985),k={};Object.keys(y).forEach(C=>{k[C]={},Object.defineProperty(k[C],"channels",{value:y[C].channels}),Object.defineProperty(k[C],"labels",{value:y[C].labels});const w=b(C);Object.keys(w).forEach(v=>{const S=w[v];k[C][v]=(function(T){const E=function(...j){const $=j[0];if($==null)return $;$.length>1&&(j=$);const z=T(j);if(typeof z=="object")for(let L=z.length,I=0;I<L;I++)z[I]=Math.round(z[I]);return z};return"conversion"in T&&(E.conversion=T.conversion),E})(S),k[C][v].raw=(function(T){const E=function(...j){const $=j[0];return $==null?$:($.length>1&&(j=$),T(j))};return"conversion"in T&&(E.conversion=T.conversion),E})(S)})}),d.exports=k},985(d,f,g){const y=g(165);function b(w){const v=(function(){const T={},E=Object.keys(y);for(let j=E.length,$=0;$<j;$++)T[E[$]]={distance:-1,parent:null};return T})(),S=[w];for(v[w].distance=0;S.length;){const T=S.pop(),E=Object.keys(y[T]);for(let j=E.length,$=0;$<j;$++){const z=E[$],L=v[z];L.distance===-1&&(L.distance=v[T].distance+1,L.parent=T,S.unshift(z))}}return v}function k(w,v){return function(S){return v(w(S))}}function C(w,v){const S=[v[w].parent,w];let T=y[v[w].parent][w],E=v[w].parent;for(;v[E].parent;)S.unshift(v[E].parent),T=k(y[v[E].parent][E],T),E=v[E].parent;return T.conversion=S,T}d.exports=function(w){const v=b(w),S={},T=Object.keys(v);for(let E=T.length,j=0;j<E;j++){const $=T[j];v[$].parent!==null&&(S[$]=C($,v))}return S}},877(d){d.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},138(d,f,g){var y=g(877),b=g(403),k=Object.hasOwnProperty,C=Object.create(null);for(var w in y)k.call(y,w)&&(C[y[w]]=w);var v=d.exports={to:{},get:{}};function S(E,j,$){return Math.min(Math.max(j,E),$)}function T(E){var j=Math.round(E).toString(16).toUpperCase();return j.length<2?"0"+j:j}v.get=function(E){var j,$;switch(E.substring(0,3).toLowerCase()){case"hsl":j=v.get.hsl(E),$="hsl";break;case"hwb":j=v.get.hwb(E),$="hwb";break;default:j=v.get.rgb(E),$="rgb"}return j?{model:$,value:j}:null},v.get.rgb=function(E){if(!E)return null;var j,$,z,L=[0,0,0,1];if(j=E.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(z=j[2],j=j[1],$=0;$<3;$++){var I=2*$;L[$]=parseInt(j.slice(I,I+2),16)}z&&(L[3]=parseInt(z,16)/255)}else if(j=E.match(/^#([a-f0-9]{3,4})$/i)){for(z=(j=j[1])[3],$=0;$<3;$++)L[$]=parseInt(j[$]+j[$],16);z&&(L[3]=parseInt(z+z,16)/255)}else if(j=E.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for($=0;$<3;$++)L[$]=parseInt(j[$+1],0);j[4]&&(j[5]?L[3]=.01*parseFloat(j[4]):L[3]=parseFloat(j[4]))}else{if(!(j=E.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(j=E.match(/^(\w+)$/))?j[1]==="transparent"?[0,0,0,0]:k.call(y,j[1])?((L=y[j[1]])[3]=1,L):null:null;for($=0;$<3;$++)L[$]=Math.round(2.55*parseFloat(j[$+1]));j[4]&&(j[5]?L[3]=.01*parseFloat(j[4]):L[3]=parseFloat(j[4]))}for($=0;$<3;$++)L[$]=S(L[$],0,255);return L[3]=S(L[3],0,1),L},v.get.hsl=function(E){if(!E)return null;var j=E.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(j){var $=parseFloat(j[4]);return[(parseFloat(j[1])%360+360)%360,S(parseFloat(j[2]),0,100),S(parseFloat(j[3]),0,100),S(isNaN($)?1:$,0,1)]}return null},v.get.hwb=function(E){if(!E)return null;var j=E.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(j){var $=parseFloat(j[4]);return[(parseFloat(j[1])%360+360)%360,S(parseFloat(j[2]),0,100),S(parseFloat(j[3]),0,100),S(isNaN($)?1:$,0,1)]}return null},v.to.hex=function(){var E=b(arguments);return"#"+T(E[0])+T(E[1])+T(E[2])+(E[3]<1?T(Math.round(255*E[3])):"")},v.to.rgb=function(){var E=b(arguments);return E.length<4||E[3]===1?"rgb("+Math.round(E[0])+", "+Math.round(E[1])+", "+Math.round(E[2])+")":"rgba("+Math.round(E[0])+", "+Math.round(E[1])+", "+Math.round(E[2])+", "+E[3]+")"},v.to.rgb.percent=function(){var E=b(arguments),j=Math.round(E[0]/255*100),$=Math.round(E[1]/255*100),z=Math.round(E[2]/255*100);return E.length<4||E[3]===1?"rgb("+j+"%, "+$+"%, "+z+"%)":"rgba("+j+"%, "+$+"%, "+z+"%, "+E[3]+")"},v.to.hsl=function(){var E=b(arguments);return E.length<4||E[3]===1?"hsl("+E[0]+", "+E[1]+"%, "+E[2]+"%)":"hsla("+E[0]+", "+E[1]+"%, "+E[2]+"%, "+E[3]+")"},v.to.hwb=function(){var E=b(arguments),j="";return E.length>=4&&E[3]!==1&&(j=", "+E[3]),"hwb("+E[0]+", "+E[1]+"%, "+E[2]+"%"+j+")"},v.to.keyword=function(E){return C[E.slice(0,3)]}},742(d,f,g){const y=g(138),b=g(880),k=["keyword","gray","hex"],C={};for(const $ of Object.keys(b))C[[...b[$].labels].sort().join("")]=$;const w={};function v($,z){if(!(this instanceof v))return new v($,z);if(z&&z in k&&(z=null),z&&!(z in b))throw new Error("Unknown model: "+z);let L,I;if($==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if($ instanceof v)this.model=$.model,this.color=[...$.color],this.valpha=$.valpha;else if(typeof $=="string"){const N=y.get($);if(N===null)throw new Error("Unable to parse color from string: "+$);this.model=N.model,I=b[this.model].channels,this.color=N.value.slice(0,I),this.valpha=typeof N.value[I]=="number"?N.value[I]:1}else if($.length>0){this.model=z||"rgb",I=b[this.model].channels;const N=Array.prototype.slice.call($,0,I);this.color=j(N,I),this.valpha=typeof $[I]=="number"?$[I]:1}else if(typeof $=="number")this.model="rgb",this.color=[$>>16&255,$>>8&255,255&$],this.valpha=1;else{this.valpha=1;const N=Object.keys($);"alpha"in $&&(N.splice(N.indexOf("alpha"),1),this.valpha=typeof $.alpha=="number"?$.alpha:0);const D=N.sort().join("");if(!(D in C))throw new Error("Unable to parse color from object: "+JSON.stringify($));this.model=C[D];const{labels:P}=b[this.model],K=[];for(L=0;L<P.length;L++)K.push($[P[L]]);this.color=j(K)}if(w[this.model])for(I=b[this.model].channels,L=0;L<I;L++){const N=w[this.model][L];N&&(this.color[L]=N(this.color[L]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}v.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string($){let z=this.model in y.to?this:this.rgb();z=z.round(typeof $=="number"?$:1);const L=z.valpha===1?z.color:[...z.color,this.valpha];return y.to[z.model](L)},percentString($){const z=this.rgb().round(typeof $=="number"?$:1),L=z.valpha===1?z.color:[...z.color,this.valpha];return y.to.rgb.percent(L)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const $={},{channels:z}=b[this.model],{labels:L}=b[this.model];for(let I=0;I<z;I++)$[L[I]]=this.color[I];return this.valpha!==1&&($.alpha=this.valpha),$},unitArray(){const $=this.rgb().color;return $[0]/=255,$[1]/=255,$[2]/=255,this.valpha!==1&&$.push(this.valpha),$},unitObject(){const $=this.rgb().object();return $.r/=255,$.g/=255,$.b/=255,this.valpha!==1&&($.alpha=this.valpha),$},round($){return $=Math.max($||0,0),new v([...this.color.map(S($)),this.valpha],this.model)},alpha($){return $!==void 0?new v([...this.color,Math.max(0,Math.min(1,$))],this.model):this.valpha},red:T("rgb",0,E(255)),green:T("rgb",1,E(255)),blue:T("rgb",2,E(255)),hue:T(["hsl","hsv","hsl","hwb","hcg"],0,$=>($%360+360)%360),saturationl:T("hsl",1,E(100)),lightness:T("hsl",2,E(100)),saturationv:T("hsv",1,E(100)),value:T("hsv",2,E(100)),chroma:T("hcg",1,E(100)),gray:T("hcg",2,E(100)),white:T("hwb",1,E(100)),wblack:T("hwb",2,E(100)),cyan:T("cmyk",0,E(100)),magenta:T("cmyk",1,E(100)),yellow:T("cmyk",2,E(100)),black:T("cmyk",3,E(100)),x:T("xyz",0,E(95.047)),y:T("xyz",1,E(100)),z:T("xyz",2,E(108.833)),l:T("lab",0,E(100)),a:T("lab",1),b:T("lab",2),keyword($){return $!==void 0?new v($):b[this.model].keyword(this.color)},hex($){return $!==void 0?new v($):y.to.hex(this.rgb().round().color)},hexa($){if($!==void 0)return new v($);const z=this.rgb().round().color;let L=Math.round(255*this.valpha).toString(16).toUpperCase();return L.length===1&&(L="0"+L),y.to.hex(z)+L},rgbNumber(){const $=this.rgb().color;return(255&$[0])<<16|(255&$[1])<<8|255&$[2]},luminosity(){const $=this.rgb().color,z=[];for(const[L,I]of $.entries()){const N=I/255;z[L]=N<=.04045?N/12.92:((N+.055)/1.055)**2.4}return .2126*z[0]+.7152*z[1]+.0722*z[2]},contrast($){const z=this.luminosity(),L=$.luminosity();return z>L?(z+.05)/(L+.05):(L+.05)/(z+.05)},level($){const z=this.contrast($);return z>=7?"AAA":z>=4.5?"AA":""},isDark(){const $=this.rgb().color;return(2126*$[0]+7152*$[1]+722*$[2])/1e4<128},isLight(){return!this.isDark()},negate(){const $=this.rgb();for(let z=0;z<3;z++)$.color[z]=255-$.color[z];return $},lighten($){const z=this.hsl();return z.color[2]+=z.color[2]*$,z},darken($){const z=this.hsl();return z.color[2]-=z.color[2]*$,z},saturate($){const z=this.hsl();return z.color[1]+=z.color[1]*$,z},desaturate($){const z=this.hsl();return z.color[1]-=z.color[1]*$,z},whiten($){const z=this.hwb();return z.color[1]+=z.color[1]*$,z},blacken($){const z=this.hwb();return z.color[2]+=z.color[2]*$,z},grayscale(){const $=this.rgb().color,z=.3*$[0]+.59*$[1]+.11*$[2];return v.rgb(z,z,z)},fade($){return this.alpha(this.valpha-this.valpha*$)},opaquer($){return this.alpha(this.valpha+this.valpha*$)},rotate($){const z=this.hsl();let L=z.color[0];return L=(L+$)%360,L=L<0?360+L:L,z.color[0]=L,z},mix($,z){if(!$||!$.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof $);const L=$.rgb(),I=this.rgb(),N=z===void 0?.5:z,D=2*N-1,P=L.alpha()-I.alpha(),K=((D*P===-1?D:(D+P)/(1+D*P))+1)/2,oe=1-K;return v.rgb(K*L.red()+oe*I.red(),K*L.green()+oe*I.green(),K*L.blue()+oe*I.blue(),L.alpha()*N+I.alpha()*(1-N))}};for(const $ of Object.keys(b)){if(k.includes($))continue;const{channels:z}=b[$];v.prototype[$]=function(...L){return this.model===$?new v(this):L.length>0?new v(L,$):new v([...(I=b[this.model][$].raw(this.color),Array.isArray(I)?I:[I]),this.valpha],$);var I},v[$]=function(...L){let I=L[0];return typeof I=="number"&&(I=j(L,z)),new v(I,$)}}function S($){return function(z){return(function(L,I){return Number(L.toFixed(I))})(z,$)}}function T($,z,L){$=Array.isArray($)?$:[$];for(const I of $)(w[I]||(w[I]=[]))[z]=L;return $=$[0],function(I){let N;return I!==void 0?(L&&(I=L(I)),N=this[$](),N.color[z]=I,N):(N=this[$]().color[z],L&&(N=L(N)),N)}}function E($){return function(z){return Math.max(0,Math.min($,z))}}function j($,z){for(let L=0;L<z;L++)typeof $[L]!="number"&&($[L]=0);return $}d.exports=v},94(d){d.exports=function(f){return!(!f||typeof f=="string")&&(f instanceof Array||Array.isArray(f)||f.length>=0&&(f.splice instanceof Function||Object.getOwnPropertyDescriptor(f,f.length-1)&&f.constructor.name!=="String"))}},403(d,f,g){var y=g(94),b=Array.prototype.concat,k=Array.prototype.slice,C=d.exports=function(w){for(var v=[],S=0,T=w.length;S<T;S++){var E=w[S];y(E)?v=b.call(v,k.call(E)):v.push(E)}return v};C.wrap=function(w){return function(){return w(C(arguments))}}},119(d){d.exports=a},367(d){function f(){return d.exports=f=Object.assign?Object.assign.bind():function(g){for(var y=1;y<arguments.length;y++){var b=arguments[y];for(var k in b)({}).hasOwnProperty.call(b,k)&&(g[k]=b[k])}return g},d.exports.__esModule=!0,d.exports.default=d.exports,f.apply(null,arguments)}d.exports=f,d.exports.__esModule=!0,d.exports.default=d.exports},46(d){d.exports=function(f,g){if(f==null)return{};var y={};for(var b in f)if({}.hasOwnProperty.call(f,b)){if(g.indexOf(b)!==-1)continue;y[b]=f[b]}return y},d.exports.__esModule=!0,d.exports.default=d.exports}};const i={};function c(d){const f=i[d];if(f!==void 0)return f.exports;const g=i[d]={exports:{}};return s[d](g,g.exports,c),g.exports}c.n=d=>{const f=d&&d.__esModule?()=>d.default:()=>d;return c.d(f,{a:f}),f},c.cw=d=>{var f;return()=>{if(d){var g=d;d=0,f={exports:{}},g.call(f.exports,f,f.exports)}return f.exports}},c.d=(d,f)=>{for(var g in f)c.o(f,g)&&!c.o(d,g)&&Object.defineProperty(d,g,{enumerable:!0,get:f[g]})},c.o=(d,f)=>Object.prototype.hasOwnProperty.call(d,f),c.r=d=>{Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})};let u={};return(()=>{c.r(u),c.d(u,{default:()=>Dm});var d=c.cw(M=>{var A,O=typeof Reflect=="object"?Reflect:null,U=O&&typeof O.apply=="function"?O.apply:function(Ae,Ke,Ye){return Function.prototype.apply.call(Ae,Ke,Ye)};A=O&&typeof O.ownKeys=="function"?O.ownKeys:Object.getOwnPropertySymbols?function(Ae){return Object.getOwnPropertyNames(Ae).concat(Object.getOwnPropertySymbols(Ae))}:function(Ae){return Object.getOwnPropertyNames(Ae)};var X=Number.isNaN||function(Ae){return Ae!=Ae};function ne(){ne.init.call(this)}M.exports=ne,M.exports.once=function(Ae,Ke){return new Promise(function(Ye,it){function At(Kt){Ae.removeListener(Ke,Rt),it(Kt)}function Rt(){typeof Ae.removeListener=="function"&&Ae.removeListener("error",At),Ye([].slice.call(arguments))}Gt(Ae,Ke,Rt,{once:!0}),Ke!=="error"&&(function(Kt,gn,Sn){typeof Kt.on=="function"&&Gt(Kt,"error",gn,Sn)})(Ae,At,{once:!0})})},ne.EventEmitter=ne,ne.prototype._events=void 0,ne.prototype._eventsCount=0,ne.prototype._maxListeners=void 0;var Ce=10;function Re(Ae){if(typeof Ae!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Ae)}function De(Ae){return Ae._maxListeners===void 0?ne.defaultMaxListeners:Ae._maxListeners}function _e(Ae,Ke,Ye,it){var At,Rt,Kt,gn;if(Re(Ye),(Rt=Ae._events)===void 0?(Rt=Ae._events=Object.create(null),Ae._eventsCount=0):(Rt.newListener!==void 0&&(Ae.emit("newListener",Ke,Ye.listener?Ye.listener:Ye),Rt=Ae._events),Kt=Rt[Ke]),Kt===void 0)Kt=Rt[Ke]=Ye,++Ae._eventsCount;else if(typeof Kt=="function"?Kt=Rt[Ke]=it?[Ye,Kt]:[Kt,Ye]:it?Kt.unshift(Ye):Kt.push(Ye),(At=De(Ae))>0&&Kt.length>At&&!Kt.warned){Kt.warned=!0;var Sn=new Error("Possible EventEmitter memory leak detected. "+Kt.length+" "+String(Ke)+" listeners added. Use emitter.setMaxListeners() to increase limit");Sn.name="MaxListenersExceededWarning",Sn.emitter=Ae,Sn.type=Ke,Sn.count=Kt.length,gn=Sn,console&&console.warn&&console.warn(gn)}return Ae}function Ve(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function Ge(Ae,Ke,Ye){var it={fired:!1,wrapFn:void 0,target:Ae,type:Ke,listener:Ye},At=Ve.bind(it);return At.listener=Ye,it.wrapFn=At,At}function yt(Ae,Ke,Ye){var it=Ae._events;if(it===void 0)return[];var At=it[Ke];return At===void 0?[]:typeof At=="function"?Ye?[At.listener||At]:[At]:Ye?(function(Rt){for(var Kt=new Array(Rt.length),gn=0;gn<Kt.length;++gn)Kt[gn]=Rt[gn].listener||Rt[gn];return Kt})(At):Tn(At,At.length)}function ht(Ae){var Ke=this._events;if(Ke!==void 0){var Ye=Ke[Ae];if(typeof Ye=="function")return 1;if(Ye!==void 0)return Ye.length}return 0}function Tn(Ae,Ke){for(var Ye=new Array(Ke),it=0;it<Ke;++it)Ye[it]=Ae[it];return Ye}function Gt(Ae,Ke,Ye,it){if(typeof Ae.on=="function")it.once?Ae.once(Ke,Ye):Ae.on(Ke,Ye);else{if(typeof Ae.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Ae);Ae.addEventListener(Ke,function At(Rt){it.once&&Ae.removeEventListener(Ke,At),Ye(Rt)})}}Object.defineProperty(ne,"defaultMaxListeners",{enumerable:!0,get:function(){return Ce},set:function(Ae){if(typeof Ae!="number"||Ae<0||X(Ae))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Ae+".");Ce=Ae}}),ne.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},ne.prototype.setMaxListeners=function(Ae){if(typeof Ae!="number"||Ae<0||X(Ae))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+Ae+".");return this._maxListeners=Ae,this},ne.prototype.getMaxListeners=function(){return De(this)},ne.prototype.emit=function(Ae){for(var Ke=[],Ye=1;Ye<arguments.length;Ye++)Ke.push(arguments[Ye]);var it=Ae==="error",At=this._events;if(At!==void 0)it=it&&At.error===void 0;else if(!it)return!1;if(it){var Rt;if(Ke.length>0&&(Rt=Ke[0]),Rt instanceof Error)throw Rt;var Kt=new Error("Unhandled error."+(Rt?" ("+Rt.message+")":""));throw Kt.context=Rt,Kt}var gn=At[Ae];if(gn===void 0)return!1;if(typeof gn=="function")U(gn,this,Ke);else{var Sn=gn.length,Pt=Tn(gn,Sn);for(Ye=0;Ye<Sn;++Ye)U(Pt[Ye],this,Ke)}return!0},ne.prototype.addListener=function(Ae,Ke){return _e(this,Ae,Ke,!1)},ne.prototype.on=ne.prototype.addListener,ne.prototype.prependListener=function(Ae,Ke){return _e(this,Ae,Ke,!0)},ne.prototype.once=function(Ae,Ke){return Re(Ke),this.on(Ae,Ge(this,Ae,Ke)),this},ne.prototype.prependOnceListener=function(Ae,Ke){return Re(Ke),this.prependListener(Ae,Ge(this,Ae,Ke)),this},ne.prototype.removeListener=function(Ae,Ke){var Ye,it,At,Rt,Kt;if(Re(Ke),(it=this._events)===void 0)return this;if((Ye=it[Ae])===void 0)return this;if(Ye===Ke||Ye.listener===Ke)--this._eventsCount===0?this._events=Object.create(null):(delete it[Ae],it.removeListener&&this.emit("removeListener",Ae,Ye.listener||Ke));else if(typeof Ye!="function"){for(At=-1,Rt=Ye.length-1;Rt>=0;Rt--)if(Ye[Rt]===Ke||Ye[Rt].listener===Ke){Kt=Ye[Rt].listener,At=Rt;break}if(At<0)return this;At===0?Ye.shift():(function(gn,Sn){for(;Sn+1<gn.length;Sn++)gn[Sn]=gn[Sn+1];gn.pop()})(Ye,At),Ye.length===1&&(it[Ae]=Ye[0]),it.removeListener!==void 0&&this.emit("removeListener",Ae,Kt||Ke)}return this},ne.prototype.off=ne.prototype.removeListener,ne.prototype.removeAllListeners=function(Ae){var Ke,Ye,it;if((Ye=this._events)===void 0)return this;if(Ye.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ye[Ae]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ye[Ae]),this;if(arguments.length===0){var At,Rt=Object.keys(Ye);for(it=0;it<Rt.length;++it)(At=Rt[it])!=="removeListener"&&this.removeAllListeners(At);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(Ke=Ye[Ae])=="function")this.removeListener(Ae,Ke);else if(Ke!==void 0)for(it=Ke.length-1;it>=0;it--)this.removeListener(Ae,Ke[it]);return this},ne.prototype.listeners=function(Ae){return yt(this,Ae,!0)},ne.prototype.rawListeners=function(Ae){return yt(this,Ae,!1)},ne.listenerCount=function(Ae,Ke){return typeof Ae.listenerCount=="function"?Ae.listenerCount(Ke):ht.call(Ae,Ke)},ne.prototype.listenerCount=ht,ne.prototype.eventNames=function(){return this._eventsCount>0?A(this._events):[]}}),f=c.cw((M,A)=>{var O=C(),U=w(),X=k(),ne=b(),Ce=g();function Re(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}function De(Pt){if(Pt&&Pt.__esModule)return Pt;var sr=Object.create(null);return Pt&&Object.keys(Pt).forEach(function(Wr){if(Wr!=="default"){var Kn=Object.getOwnPropertyDescriptor(Pt,Wr);Object.defineProperty(sr,Wr,Kn.get?Kn:{enumerable:!0,get:function(){return Pt[Wr]}})}}),sr.default=Pt,Object.freeze(sr)}var _e=De(X),Ve=Re(ne),Ge=Re(Ce),yt=typeof document<"u",ht={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Tn=function(Pt){Object.keys(ht).forEach(function(sr){Pt.style.setProperty(sr,ht[sr],"important")})},Gt=null,Ae=function(Pt,sr){var Wr=Pt.scrollHeight;return sr.sizingStyle.boxSizing==="border-box"?Wr+sr.borderSize:Wr-sr.paddingSize},Ke=function(){},Ye=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],it=!!yt&&!!document.documentElement.currentStyle,At=function(Pt){var sr=window.getComputedStyle(Pt);if(sr===null)return null;var Wr,Kn=(Wr=sr,Ye.reduce(function(La,ws){return La[ws]=Wr[ws],La},{})),Fs=Kn.boxSizing;return Fs===""?null:(it&&Fs==="border-box"&&(Kn.width=parseFloat(Kn.width)+parseFloat(Kn.borderRightWidth)+parseFloat(Kn.borderLeftWidth)+parseFloat(Kn.paddingRight)+parseFloat(Kn.paddingLeft)+"px"),{sizingStyle:Kn,paddingSize:parseFloat(Kn.paddingBottom)+parseFloat(Kn.paddingTop),borderSize:parseFloat(Kn.borderBottomWidth)+parseFloat(Kn.borderTopWidth)})};function Rt(Pt,sr,Wr){var Kn=Ve.default(Wr);_e.useLayoutEffect(function(){var Fs=function(La){return Kn.current(La)};if(Pt)return Pt.addEventListener(sr,Fs),function(){return Pt.removeEventListener(sr,Fs)}},[])}var Kt=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],gn=function(Pt,sr){var Wr=Pt.cacheMeasurements,Kn=Pt.maxRows,Fs=Pt.minRows,La=Pt.onChange,ws=La===void 0?Ke:La,Kf=Pt.onHeightChange,Zl=Kf===void 0?Ke:Kf,Ql=U(Pt,Kt),Pu=Ql.value!==void 0,mo=_e.useRef(null),Jl=Ge.default(mo,sr),Bu=_e.useRef(0),ec=_e.useRef(),Xo=function(){var xa=mo.current,qs=Wr&&ec.current?ec.current:At(xa);if(qs){ec.current=qs;var Ui=(function(gr,Zo,Vi,nc){Vi===void 0&&(Vi=1),nc===void 0&&(nc=1/0),Gt||((Gt=document.createElement("textarea")).setAttribute("tabindex","-1"),Gt.setAttribute("aria-hidden","true"),Tn(Gt)),Gt.parentNode===null&&document.body.appendChild(Gt);var rc=gr.paddingSize,Fu=gr.borderSize,ac=gr.sizingStyle,sc=ac.boxSizing;Object.keys(ac).forEach(function(qu){var Hu=qu;Gt.style[Hu]=ac[Hu]}),Tn(Gt),Gt.value=Zo;var Gi=Ae(Gt,gr);Gt.value=Zo,Gi=Ae(Gt,gr),Gt.value="x";var Hs=Gt.scrollHeight-rc,Ki=Hs*Vi;sc==="border-box"&&(Ki=Ki+rc+Fu),Gi=Math.max(Ki,Gi);var go=Hs*nc;return sc==="border-box"&&(go=go+rc+Fu),[Gi=Math.min(go,Gi),Hs]})(qs,xa.value||xa.placeholder||"x",Fs,Kn),tc=Ui[0],Om=Ui[1];Bu.current!==tc&&(Bu.current=tc,xa.style.setProperty("height",tc+"px","important"),Zl(tc,{rowHeight:Om}))}};return yt?(_e.useLayoutEffect(Xo),(function(xa,qs){Rt(document.body,"reset",function(Ui){xa.current.form===Ui.target&&qs(Ui)})})(mo,function(){if(!Pu){var xa=mo.current.value;requestAnimationFrame(function(){var qs=mo.current;qs&&xa!==qs.value&&Xo()})}}),Rt(window,"resize",Xo),(function(xa){Rt(document.fonts,"loadingdone",xa)})(Xo),_e.createElement("textarea",O({},Ql,{onChange:function(xa){Pu||Xo(),ws(xa)},ref:Jl}))):_e.createElement("textarea",O({},Ql,{onChange:ws,ref:Jl}))},Sn=_e.forwardRef(gn);A.A=Sn}),g=c.cw((M,A)=>{c.r(A),c.d(A,{default:()=>U}),k();var O=function(X,ne){typeof X!="function"?X.current=ne:X(ne)},U=function(X,ne){var Ce=v()().useRef();return v()().useCallback(function(Re){X.current=Re,Ce.current&&O(Ce.current,null),Ce.current=ne,ne&&O(ne,Re)},[ne])}}),y=c.cw((M,A)=>{c.d(A,{A:()=>O}),k();var O=k().useLayoutEffect}),b=c.cw((M,A)=>{c.r(A),c.d(A,{default:()=>O}),k(),y();var O=function(U){var X=v()().useRef(U);return(0,y().A)(function(){X.current=U}),X}}),k=()=>c(119),C=()=>c(367),w=()=>c(46);function v(){return v.c||(v.c=c.n(k()))}function S(){var M=this.constructor.getDerivedStateFromProps(this.props,this.state);M!=null&&this.setState(M)}function T(M){this.setState((function(A){var O=this.constructor.getDerivedStateFromProps(M,A);return O??null}).bind(this))}function E(M,A){try{var O=this.props,U=this.state;this.props=M,this.state=A,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(O,U)}finally{this.props=O,this.state=U}}function j(M){var A=M.prototype;if(!A||!A.isReactComponent)throw new Error("Can only polyfill class components");if(typeof M.getDerivedStateFromProps!="function"&&typeof A.getSnapshotBeforeUpdate!="function")return M;var O=null,U=null,X=null;if(typeof A.componentWillMount=="function"?O="componentWillMount":typeof A.UNSAFE_componentWillMount=="function"&&(O="UNSAFE_componentWillMount"),typeof A.componentWillReceiveProps=="function"?U="componentWillReceiveProps":typeof A.UNSAFE_componentWillReceiveProps=="function"&&(U="UNSAFE_componentWillReceiveProps"),typeof A.componentWillUpdate=="function"?X="componentWillUpdate":typeof A.UNSAFE_componentWillUpdate=="function"&&(X="UNSAFE_componentWillUpdate"),O!==null||U!==null||X!==null){var ne=M.displayName||M.name,Ce=typeof M.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
96
+
97
+ `+ne+" uses "+Ce+" but also contains the following legacy lifecycles:"+(O!==null?`
98
+ `+O:"")+(U!==null?`
99
+ `+U:"")+(X!==null?`
100
+ `+X:"")+`
101
+
102
+ The above lifecycles should be removed. Learn more about this warning here:
103
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof M.getDerivedStateFromProps=="function"&&(A.componentWillMount=S,A.componentWillReceiveProps=T),typeof A.getSnapshotBeforeUpdate=="function"){if(typeof A.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");A.componentWillUpdate=E;var Re=A.componentDidUpdate;A.componentDidUpdate=function(De,_e,Ve){var Ge=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:Ve;Re.call(this,De,_e,Ge)}}return M}function $(M,A){if(A&&M?.constructor===A)return"bigNumber";let O=(function(U){return{}.toString.call(U).match(/\s([a-zA-Z]+)/)[1].toLowerCase()})(M);return O==="number"&&(O=isNaN(M)?"nan":(0|M)!==M?"float":"integer"),O}function z(M){return M.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/\t/g,"\\t").replace(/\r/g,"\\r").replace(/\f/g,"\\f")}k(),S.__suppressDeprecationWarning=!0,T.__suppressDeprecationWarning=!0,E.__suppressDeprecationWarning=!0;const L=class extends v()().PureComponent{render(){const{props:M}=this,{parent_type:A,namespace:O,quotesOnKeys:U,indentWidth:X,theme:ne,singleIndent:Ce,showComma:Re,isLast:De,jsvRoot:_e}=M,Ve=M.name?M.name:"";return v()().createElement("div",{className:"variable-row"},v()().createElement("span",{...Le(ne,"object-name"),key:O,...Le(ne,"objectKeyVal",{paddingLeft:X*Ce})},v()().createElement("span",{className:"object-key"},U&&v()().createElement("span",{style:{verticalAlign:"top"}},'"'),v()().createElement("span",null,Ve),U&&v()().createElement("span",{style:{verticalAlign:"top"}},'"')),v()().createElement("span",Le(ne,"colon"),":")),v()().createElement("span",Le(ne,"circularReference"),"[CIRCULAR REFERENCE]"),Re&&!De&&!_e&&v()().createElement("span",Le(ne,"comma"),","))}},I={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},N={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"},D={globalFontFamily:"monospace",globalCursor:"default",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px",dataTypeFontSize:"11px",dataTypeMarginRight:"4px",datatypeOpacity:"0.8",objectSizeBorderRadius:"3px",objectSizeFontStyle:"italic",objectSizeMargin:"0px 6px 0px 0px",clipboardCursor:"pointer",clipboardCheckMarginLeft:"-12px",metaDataPadding:"0px 0px 0px 10px",arrayGroupMetaPadding:"0px 0px 0px 4px",iconContainerWidth:"17px",tooltipPadding:"4px",editInputMinWidth:"130px",editInputBorderRadius:"2px",editInputPadding:"5px",editInputMarginRight:"4px",editInputFontFamily:"monospace",iconCursor:"pointer",iconFontSize:"15px",iconPaddingRight:"1px",dateValueMarginLeft:"2px",iconMarginRight:"3px",detectedRowPaddingTop:"3px",addKeyCoverBackground:"rgba(255, 255, 255, 0.3)",addKeyCoverPosition:"absolute",addKeyCoverPositionPx:"0px",addKeyModalWidth:"200px",addKeyModalMargin:"auto",addKeyModalPadding:"10px",addKeyModalRadius:"3px",commaColor:"#666",commaFontSize:"12px",commaMarginRight:"4px"};var P=c(742);const K=function(M){return M},oe=typeof sp=="object"&&sp&&sp.Object===Object&&sp;var V=typeof self=="object"&&self&&self.Object===Object&&self;const H=oe||V||Function("return this")(),Z=H.Symbol;var F=Object.prototype,q=F.hasOwnProperty,Q=F.toString,ae=Z?Z.toStringTag:void 0;const J=function(M){var A=q.call(M,ae),O=M[ae];try{M[ae]=void 0;var U=!0}catch{}var X=Q.call(M);return U&&(A?M[ae]=O:delete M[ae]),X};var se=Object.prototype.toString;const te=function(M){return se.call(M)};var fe=Z?Z.toStringTag:void 0;const B=function(M){return M==null?M===void 0?"[object Undefined]":"[object Null]":fe&&fe in Object(M)?J(M):te(M)},ee=function(M){var A=typeof M;return M!=null&&(A=="object"||A=="function")},me=function(M){if(!ee(M))return!1;var A=B(M);return A=="[object Function]"||A=="[object GeneratorFunction]"||A=="[object AsyncFunction]"||A=="[object Proxy]"},pe=H["__core-js_shared__"];var ve,ye=(ve=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||""))?"Symbol(src)_1."+ve:"";const Oe=function(M){return!!ye&&ye in M};var ie=Function.prototype.toString;const $e=function(M){if(M!=null){try{return ie.call(M)}catch{}try{return M+""}catch{}}return""};var Pe=/^\[object .+?Constructor\]$/,He=Function.prototype,Ze=Object.prototype,Fe=He.toString,Ie=Ze.hasOwnProperty,at=RegExp("^"+Fe.call(Ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const wt=function(M){return!(!ee(M)||Oe(M))&&(me(M)?at:Pe).test($e(M))},Nt=function(M,A){return M?.[A]},gt=function(M,A){var O=Nt(M,A);return wt(O)?O:void 0};var st=gt(H,"WeakMap");const Lt=st&&new st,nt=Lt?function(M,A){return Lt.set(M,A),M}:K;var vt=Object.create;const St=(function(){function M(){}return function(A){if(!ee(A))return{};if(vt)return vt(A);M.prototype=A;var O=new M;return M.prototype=void 0,O}})(),xt=function(M){return function(){var A=arguments;switch(A.length){case 0:return new M;case 1:return new M(A[0]);case 2:return new M(A[0],A[1]);case 3:return new M(A[0],A[1],A[2]);case 4:return new M(A[0],A[1],A[2],A[3]);case 5:return new M(A[0],A[1],A[2],A[3],A[4]);case 6:return new M(A[0],A[1],A[2],A[3],A[4],A[5]);case 7:return new M(A[0],A[1],A[2],A[3],A[4],A[5],A[6])}var O=St(M.prototype),U=M.apply(O,A);return ee(U)?U:O}},Tt=function(M,A,O){var U=1&A,X=xt(M);return function ne(){return(this&&this!==H&&this instanceof ne?X:M).apply(U?O:this,arguments)}},Me=function(M,A,O){switch(O.length){case 0:return M.call(A);case 1:return M.call(A,O[0]);case 2:return M.call(A,O[0],O[1]);case 3:return M.call(A,O[0],O[1],O[2])}return M.apply(A,O)};var ut=Math.max;const tn=function(M,A,O,U){for(var X=-1,ne=M.length,Ce=O.length,Re=-1,De=A.length,_e=ut(ne-Ce,0),Ve=Array(De+_e),Ge=!U;++Re<De;)Ve[Re]=A[Re];for(;++X<Ce;)(Ge||X<ne)&&(Ve[O[X]]=M[X]);for(;_e--;)Ve[Re++]=M[X++];return Ve};var qn=Math.max;const Mn=function(M,A,O,U){for(var X=-1,ne=M.length,Ce=-1,Re=O.length,De=-1,_e=A.length,Ve=qn(ne-Re,0),Ge=Array(Ve+_e),yt=!U;++X<Ve;)Ge[X]=M[X];for(var ht=X;++De<_e;)Ge[ht+De]=A[De];for(;++Ce<Re;)(yt||X<ne)&&(Ge[ht+O[Ce]]=M[X++]);return Ge},Qn=function(M,A){for(var O=M.length,U=0;O--;)M[O]===A&&++U;return U},an=function(){};function Hn(M){this.__wrapped__=M,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}Hn.prototype=St(an.prototype),Hn.prototype.constructor=Hn;const mn=Hn,_n=Lt?function(M){return Lt.get(M)}:function(){},ft={};var Ue=Object.prototype.hasOwnProperty;const Cn=function(M){for(var A=M.name+"",O=ft[A],U=Ue.call(ft,A)?O.length:0;U--;){var X=O[U],ne=X.func;if(ne==null||ne==M)return X.name}return A};function bn(M,A){this.__wrapped__=M,this.__actions__=[],this.__chain__=!!A,this.__index__=0,this.__values__=void 0}bn.prototype=St(an.prototype),bn.prototype.constructor=bn;const vn=bn,Lr=Array.isArray,Aa=function(M){return M!=null&&typeof M=="object"},Dr=function(M,A){var O=-1,U=M.length;for(A||(A=Array(U));++O<U;)A[O]=M[O];return A},ea=function(M){if(M instanceof mn)return M.clone();var A=new vn(M.__wrapped__,M.__chain__);return A.__actions__=Dr(M.__actions__),A.__index__=M.__index__,A.__values__=M.__values__,A};var hr=Object.prototype.hasOwnProperty;function nn(M){if(Aa(M)&&!Lr(M)&&!(M instanceof mn)){if(M instanceof vn)return M;if(hr.call(M,"__wrapped__"))return ea(M)}return new vn(M)}nn.prototype=an.prototype,nn.prototype.constructor=nn;const Or=nn,Jn=function(M){var A=Cn(M),O=Or[A];if(typeof O!="function"||!(A in mn.prototype))return!1;if(M===O)return!0;var U=_n(O);return!!U&&M===U[0]};var er=Date.now;const W=function(M){var A=0,O=0;return function(){var U=er(),X=16-(U-O);if(O=U,X>0){if(++A>=800)return arguments[0]}else A=0;return M.apply(void 0,arguments)}},Y=W(nt);var ue=/\{\n\/\* \[wrapped with (.+)\] \*/,be=/,? & /;const je=function(M){var A=M.match(ue);return A?A[1].split(be):[]};var Qe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const Xe=function(M,A){var O=A.length;if(!O)return M;var U=O-1;return A[U]=(O>1?"& ":"")+A[U],A=A.join(O>2?", ":" "),M.replace(Qe,`{
104
+ /* [wrapped with `+A+`] */
105
+ `)},ze=function(M){return function(){return M}},qe=(function(){try{var M=gt(Object,"defineProperty");return M({},"",{}),M}catch{}})(),dt=W(qe?function(M,A){return qe(M,"toString",{configurable:!0,enumerable:!1,value:ze(A),writable:!0})}:K),rt=function(M,A){for(var O=-1,U=M==null?0:M.length;++O<U&&A(M[O],O,M)!==!1;);return M},pt=function(M,A,O,U){for(var X=M.length,ne=O+-1;++ne<X;)if(A(M[ne],ne,M))return ne;return-1},ot=function(M){return M!=M},Ft=function(M,A,O){for(var U=O-1,X=M.length;++U<X;)if(M[U]===A)return U;return-1},Zt=function(M,A,O){return A==A?Ft(M,A,O):pt(M,ot,O)},ln=function(M,A){return!!(M!=null&&M.length)&&Zt(M,A,0)>-1};var Vt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const It=function(M,A){return rt(Vt,function(O){var U="_."+O[0];A&O[1]&&!ln(M,U)&&M.push(U)}),M.sort()},zn=function(M,A,O){var U=A+"";return dt(M,Xe(U,It(je(U),O)))},Un=function(M,A,O,U,X,ne,Ce,Re,De,_e){var Ve=8&A;A|=Ve?32:64,4&(A&=~(Ve?64:32))||(A&=-4);var Ge=[M,A,X,Ve?ne:void 0,Ve?Ce:void 0,Ve?void 0:ne,Ve?void 0:Ce,Re,De,_e],yt=O.apply(void 0,Ge);return Jn(M)&&Y(yt,Ge),yt.placeholder=U,zn(yt,M,A)},ha=function(M){return M.placeholder};var Vn=/^(?:0|[1-9]\d*)$/;const sn=function(M,A){var O=typeof M;return!!(A=A??9007199254740991)&&(O=="number"||O!="symbol"&&Vn.test(M))&&M>-1&&M%1==0&&M<A};var kn=Math.min;const Gn=function(M,A){for(var O=M.length,U=kn(A.length,O),X=Dr(M);U--;){var ne=A[U];M[U]=sn(ne,O)?X[ne]:void 0}return M};var ar="__lodash_placeholder__";const $r=function(M,A){for(var O=-1,U=M.length,X=0,ne=[];++O<U;){var Ce=M[O];Ce!==A&&Ce!==ar||(M[O]=ar,ne[X++]=O)}return ne},Gr=function M(A,O,U,X,ne,Ce,Re,De,_e,Ve){var Ge=128&O,yt=1&O,ht=2&O,Tn=24&O,Gt=512&O,Ae=ht?void 0:xt(A);return function Ke(){for(var Ye=arguments.length,it=Array(Ye),At=Ye;At--;)it[At]=arguments[At];if(Tn)var Rt=ha(Ke),Kt=Qn(it,Rt);if(X&&(it=tn(it,X,ne,Tn)),Ce&&(it=Mn(it,Ce,Re,Tn)),Ye-=Kt,Tn&&Ye<Ve){var gn=$r(it,Rt);return Un(A,O,M,Ke.placeholder,U,it,gn,De,_e,Ve-Ye)}var Sn=yt?U:this,Pt=ht?Sn[A]:A;return Ye=it.length,De?it=Gn(it,De):Gt&&Ye>1&&it.reverse(),Ge&&_e<Ye&&(it.length=_e),this&&this!==H&&this instanceof Ke&&(Pt=Ae||xt(Pt)),Pt.apply(Sn,it)}},bs=function(M,A,O){var U=xt(M);return function X(){for(var ne=arguments.length,Ce=Array(ne),Re=ne,De=ha(X);Re--;)Ce[Re]=arguments[Re];var _e=ne<3&&Ce[0]!==De&&Ce[ne-1]!==De?[]:$r(Ce,De);return(ne-=_e.length)<O?Un(M,A,Gr,X.placeholder,void 0,Ce,_e,void 0,void 0,O-ne):Me(this&&this!==H&&this instanceof X?U:M,this,Ce)}},pr=function(M,A,O,U){var X=1&A,ne=xt(M);return function Ce(){for(var Re=-1,De=arguments.length,_e=-1,Ve=U.length,Ge=Array(Ve+De),yt=this&&this!==H&&this instanceof Ce?ne:M;++_e<Ve;)Ge[_e]=U[_e];for(;De--;)Ge[_e++]=arguments[++Re];return Me(yt,X?O:this,Ge)}};var Et="__lodash_placeholder__",wn=128,Nn=Math.min;const tr=function(M,A){var O=M[1],U=A[1],X=O|U,ne=X<131,Ce=U==wn&&O==8||U==wn&&O==256&&M[7].length<=A[8]||U==384&&A[7].length<=A[8]&&O==8;if(!ne&&!Ce)return M;1&U&&(M[2]=A[2],X|=1&O?0:4);var Re=A[3];if(Re){var De=M[3];M[3]=De?tn(De,Re,A[4]):Re,M[4]=De?$r(M[3],Et):A[4]}return(Re=A[5])&&(De=M[5],M[5]=De?Mn(De,Re,A[6]):Re,M[6]=De?$r(M[5],Et):A[6]),(Re=A[7])&&(M[7]=Re),U&wn&&(M[8]=M[8]==null?A[8]:Nn(M[8],A[8])),M[9]==null&&(M[9]=A[9]),M[0]=A[0],M[1]=X,M};var Ma=/\s/;const ta=function(M){for(var A=M.length;A--&&Ma.test(M.charAt(A)););return A};var kt=/^\s+/;const pa=function(M){return M&&M.slice(0,ta(M)+1).replace(kt,"")},uo=function(M){return typeof M=="symbol"||Aa(M)&&B(M)=="[object Symbol]"};var fo=/^[-+]0x[0-9a-f]+$/i,za=/^0b[01]+$/i,vs=/^0o[0-7]+$/i,Mu=parseInt;const Pi=function(M){if(typeof M=="number")return M;if(uo(M))return NaN;if(ee(M)){var A=typeof M.valueOf=="function"?M.valueOf():M;M=ee(A)?A+"":A}if(typeof M!="string")return M===0?M:+M;M=pa(M);var O=za.test(M);return O||vs.test(M)?Mu(M.slice(2),O?2:8):fo.test(M)?NaN:+M};var Bl=1/0;const zu=function(M){return M?(M=Pi(M))===Bl||M===-1/0?17976931348623157e292*(M<0?-1:1):M==M?M:0:M===0?M:0},_t=function(M){var A=zu(M),O=A%1;return A==A?O?A-O:A:0};var ho=Math.max;const Ho=function(M,A,O,U,X,ne,Ce,Re){var De=2&A;if(!De&&typeof M!="function")throw new TypeError("Expected a function");var _e=U?U.length:0;if(_e||(A&=-97,U=X=void 0),Ce=Ce===void 0?Ce:ho(_t(Ce),0),Re=Re===void 0?Re:_t(Re),_e-=X?X.length:0,64&A){var Ve=U,Ge=X;U=X=void 0}var yt=De?void 0:_n(M),ht=[M,A,O,U,X,Ve,Ge,ne,Ce,Re];if(yt&&tr(ht,yt),M=ht[0],A=ht[1],O=ht[2],U=ht[3],X=ht[4],!(Re=ht[9]=ht[9]===void 0?De?0:M.length:ho(ht[9]-_e,0))&&24&A&&(A&=-25),A&&A!=1)Tn=A==8||A==16?bs(M,A,Re):A!=32&&A!=33||X.length?Gr.apply(void 0,ht):pr(M,A,O,U);else var Tn=Tt(M,A,O);return zn((yt?nt:Y)(Tn,ht),M,A)};function ks(M,A,O){var U=Ho(M,8,void 0,void 0,void 0,void 0,void 0,A=O?void 0:A);return U.placeholder=ks.placeholder,U}ks.placeholder={};const Ne=ks,Ct={threezerotwofour:{scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},apathy:{scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},ashes:{scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},atelierDune:{scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},atelierForest:{scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},atelierHeath:{scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},atelierLakeside:{scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},atelierSeaside:{scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},bespin:{scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},brewer:{scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},bright:{scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},chalk:{scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},codeschool:{scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},colors:{scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},default:{scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},eighties:{scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},embers:{scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},flat:{scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},google:{scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},grayscale:{scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},greenscreen:{scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},harmonic:{scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},hopscotch:{scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},isotope:{scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},marrakesh:{scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},mocha:{scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},monokai:{scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},nicinabox:{scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},ocean:{scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},paraiso:{scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},pop:{scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},railscasts:{scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},shapeshifter:{scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},solarized:{scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},summerfruit:{scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},tomorrow:{scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},tube:{scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},twilight:{scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"}},na=Ct.default,ra=Object.keys(na),Ir=M=>{const A=P(M),[O,U,X]=(function(Re){const De=Re[0]/255,_e=Re[1]/255,Ve=Re[2]/255;return[.299*De+.587*_e+.114*Ve,-.14713*De+-.28886*_e+.436*Ve,.615*De+-.51499*_e+-.10001*Ve]})(A.array());var ne;const Ce=(function(Re){const De=Re[0],_e=Re[1],Ve=Re[2];let Ge,yt,ht;return Ge=1*De+0*_e+1.13983*Ve,yt=1*De+-.39465*_e+-.5806*Ve,ht=1*De+2.02311*_e+0*Ve,Ge=Math.min(Math.max(0,Ge),1),yt=Math.min(Math.max(0,yt),1),ht=Math.min(Math.max(0,ht),1),[255*Ge,255*yt,255*ht]})([(ne=O,ne<.25?1:ne<.5?.9-ne:1.1-ne),U,X]);return P.rgb(Ce).hex()},xr=M=>A=>({className:[A.className,M.className].filter(Boolean).join(" "),style:{...A.style||{},...M.style||{}}}),Bi=(M,A)=>{const O=Object.keys(A);for(const U in M)O.indexOf(U)===-1&&O.push(U);return O.reduce((U,X)=>(U[X]=((ne,Ce)=>{if(ne===void 0)return Ce;if(Ce===void 0)return ne;const Re=typeof Ce;switch(typeof ne){case"string":switch(Re){case"string":return[Ce,ne].filter(Boolean).join(" ");case"object":return xr({className:ne,style:Ce});case"function":return(De,..._e)=>xr({className:ne})(Ce(De,..._e))}break;case"object":switch(Re){case"string":return xr({className:Ce,style:ne});case"object":return{...Ce,...ne};case"function":return(De,..._e)=>xr({style:ne})(Ce(De,..._e))}break;case"function":switch(Re){case"string":return(De,..._e)=>ne(xr(De)({className:Ce}),..._e);case"object":return(De,..._e)=>ne(xr(De)({style:Ce}),..._e);case"function":return(De,..._e)=>ne(Ce(De,..._e),..._e)}}})(M[X],A[X]),U),{})},_r=(M,A,...O)=>{if(A===null)return M;Array.isArray(A)||(A=[A]);const U=A.map(X=>M[X]).filter(Boolean).reduce((X,ne)=>(typeof ne=="string"?X.className=[X.className,ne].filter(Boolean).join(" "):typeof ne=="object"?X.style={...X.style,...ne}:typeof ne=="function"&&(X={...X,...ne(X,...O)}),X),{className:"",style:{}});return U.className||delete U.className,Object.keys(U.style).length===0&&delete U.style,U},Nu=M=>Object.keys(M).reduce((A,O)=>(A[O]=/^base/.test(O)?Ir(M[O]):O==="scheme"?M[O]+":inverted":M[O],A),{}),Df=Ne((M,A={},O={},...U)=>{const{defaultBase16:X=na,base16Themes:ne=null}=A,Ce=Uo(O,ne);Ce&&(O={...Ce,...O});const Re=ra.reduce((Ge,yt)=>(Ge[yt]=O[yt]||X[yt],Ge),{}),De=Object.keys(O).reduce((Ge,yt)=>(ra.indexOf(yt)===-1&&(Ge[yt]=O[yt]),Ge),{}),_e=M(Re),Ve=Bi(De,_e);return Ne(_r,2)(Ve,...U)},3),Lu=M=>!!M.extend,Uo=(M,A)=>{if(M&&Lu(M)&&M.extend&&(M=M.extend),typeof M=="string"){const[O,U]=M.split(":");M=A?A[O]:Ct[O],U==="inverted"&&(M=Nu(M))}return M&&Object.prototype.hasOwnProperty.call(M,"base00")?M:void 0},Of=M=>{const A=(O=>({backgroundColor:O.base00,ellipsisColor:O.base09,braceColor:O.base07,expandedIcon:O.base0D,collapsedIcon:O.base0E,keyColor:O.base07,arrayKeyColor:O.base0C,objectSize:O.base04,copyToClipboard:O.base0F,copyToClipboardCheck:O.base0D,objectBorder:O.base02,dataTypes:{boolean:O.base0E,date:O.base0D,float:O.base0B,function:O.base0D,integer:O.base0F,string:O.base09,nan:O.base08,null:O.base0A,undefined:O.base05,regexp:O.base0A,background:O.base02,bigNumber:O.base09},editVariable:{editIcon:O.base0E,cancelIcon:O.base09,removeIcon:O.base09,addIcon:O.base0E,checkIcon:O.base0E,background:O.base01,color:O.base0A,border:O.base07},addKeyModal:{background:O.base05,border:O.base04,color:O.base0A,labelColor:O.base01},validationFailure:{background:O.base09,iconColor:O.base01,fontColor:O.base01}}))(M);return{"app-container":{fontFamily:D.globalFontFamily,cursor:D.globalCursor,backgroundColor:A.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:A.ellipsisColor,fontSize:D.ellipsisFontSize,lineHeight:D.ellipsisLineHeight,cursor:D.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:D.braceCursor,fontWeight:D.braceFontWeight,color:A.braceColor},"expanded-icon":{color:A.expandedIcon},"collapsed-icon":{color:A.collapsedIcon},colon:{display:"inline-block",margin:D.keyMargin,color:A.keyColor,verticalAlign:"top"},objectKeyVal:(O,U)=>({style:{paddingTop:D.keyValPaddingTop,paddingRight:D.keyValPaddingRight,paddingBottom:D.keyValPaddingBottom,borderLeft:D.keyValBorderLeft+" "+A.objectBorder,":hover":{paddingLeft:U.paddingLeft-1+"px",borderLeft:D.keyValBorderHover+" "+A.objectBorder},...U}}),"object-key-val-no-border":{padding:D.keyValPadding},"pushed-content":{marginLeft:D.pushedContentMarginLeft},variableValue:(O,U)=>({style:{display:"inline-block",paddingRight:D.variableValuePaddingRight,position:"relative",...U}}),"object-name":{display:"inline-block",color:A.keyColor,letterSpacing:D.keyLetterSpacing,fontStyle:D.keyFontStyle,verticalAlign:D.keyVerticalAlign,opacity:D.keyOpacity,":hover":{opacity:D.keyOpacityHover}},"array-key":{display:"inline-block",color:A.arrayKeyColor,letterSpacing:D.keyLetterSpacing,fontStyle:D.keyFontStyle,verticalAlign:D.keyVerticalAlign,opacity:D.keyOpacity,":hover":{opacity:D.keyOpacityHover}},"object-size":{color:A.objectSize,borderRadius:D.objectSizeBorderRadius,fontStyle:D.objectSizeFontStyle,margin:D.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:D.dataTypeFontSize,marginRight:D.dataTypeMarginRight,opacity:D.datatypeOpacity},boolean:{display:"inline-block",color:A.dataTypes.boolean},date:{display:"inline-block",color:A.dataTypes.date},"date-value":{marginLeft:D.dateValueMarginLeft},float:{display:"inline-block",color:A.dataTypes.float},function:{display:"inline-block",color:A.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:A.dataTypes.integer},bigNumber:{display:"inline-block",color:A.dataTypes.bigNumber},string:{display:"inline-block",color:A.dataTypes.string},nan:{display:"inline-block",color:A.dataTypes.nan,fontSize:D.nanFontSize,fontWeight:D.nanFontWeight,backgroundColor:A.dataTypes.background,padding:D.nanPadding,borderRadius:D.nanBorderRadius},null:{display:"inline-block",color:A.dataTypes.null,fontSize:D.nullFontSize,fontWeight:D.nullFontWeight,backgroundColor:A.dataTypes.background,padding:D.nullPadding,borderRadius:D.nullBorderRadius},undefined:{display:"inline-block",color:A.dataTypes.undefined,fontSize:D.undefinedFontSize,padding:D.undefinedPadding,borderRadius:D.undefinedBorderRadius,backgroundColor:A.dataTypes.background},circularReference:{display:"inline-block",color:A.dataTypes.null,fontSize:D.nullFontSize,fontWeight:D.nullFontWeight,backgroundColor:A.dataTypes.background,padding:D.nullPadding,borderRadius:D.nullBorderRadius},regexp:{display:"inline-block",color:A.dataTypes.regexp},"copy-to-clipboard":{cursor:D.clipboardCursor},"copy-icon":{color:A.copyToClipboard,fontSize:D.iconFontSize,marginRight:D.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:A.copyToClipboardCheck,marginLeft:D.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:D.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:D.metaDataPadding},"icon-container":{display:"inline-block",width:D.iconContainerWidth},tooltip:{padding:D.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:A.editVariable.removeIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:A.editVariable.addIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:A.editVariable.editIcon,cursor:D.iconCursor,fontSize:D.iconFontSize,marginRight:D.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:D.iconCursor,color:A.editVariable.checkIcon,fontSize:D.iconFontSize,paddingRight:D.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:D.iconCursor,color:A.editVariable.cancelIcon,fontSize:D.iconFontSize,paddingRight:D.iconPaddingRight},"edit-input":{display:"inline-block",minWidth:D.editInputMinWidth,borderRadius:D.editInputBorderRadius,backgroundColor:A.editVariable.background,color:A.editVariable.color,padding:D.editInputPadding,marginRight:D.editInputMarginRight,fontFamily:D.editInputFontFamily},"detected-row":{paddingTop:D.detectedRowPaddingTop},"key-modal-request":{position:D.addKeyCoverPosition,top:D.addKeyCoverPositionPx,left:D.addKeyCoverPositionPx,right:D.addKeyCoverPositionPx,bottom:D.addKeyCoverPositionPx,backgroundColor:D.addKeyCoverBackground},"key-modal":{width:D.addKeyModalWidth,backgroundColor:A.addKeyModal.background,marginLeft:D.addKeyModalMargin,marginRight:D.addKeyModalMargin,padding:D.addKeyModalPadding,borderRadius:D.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:A.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:A.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:A.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:A.addKeyModal.labelColor,fontSize:D.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:A.editVariable.addIcon,fontSize:D.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:A.ellipsisColor,fontSize:D.ellipsisFontSize,lineHeight:D.ellipsisLineHeight,cursor:D.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:A.validationFailure.fontColor,backgroundColor:A.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:A.validationFailure.iconColor,fontSize:D.iconFontSize,transform:"rotate(45deg)"},comma:{display:"inline-block",color:D.commaColor,fontSize:D.commaFontSize,marginRight:D.commaMarginRight,cursor:"default"}}},If=M=>{let A=I;return M!==!1&&M!=="none"||(A=N),Df(Of,{defaultBase16:A})(M)};function Le(M,A,O){return M||console.error("theme has not been set"),If(M)(A,O)}const Bs=class extends v()().PureComponent{render(){const{typeName:M,displayDataTypes:A,theme:O}=this.props;return A?v()().createElement("span",{className:"data-type-label",...Le(O,"data-type-label")},M):null}},Du=class extends v()().PureComponent{render(){const{props:M}=this;return v()().createElement("div",Le(M.theme,"boolean"),v()().createElement(Bs,{typeName:"bool",...M}),M.value?"true":"false")}},Ou=class extends v()().PureComponent{render(){const{props:M}=this;return v()().createElement("div",Le(M.theme,"date"),v()().createElement(Bs,{typeName:"date",...M}),v()().createElement("span",{className:"date-value",...Le(M.theme,"date-value")},M.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}},Fl=class extends v()().PureComponent{render(){const{props:M}=this;return v()().createElement("div",Le(M.theme,"float"),v()().createElement(Bs,{typeName:"float",...M}),this.props.value)}};d();class Rm{handler=()=>{};register(A){this.handler=A}dispatch(A){this.handler?.(A)}}globalThis.__globalDispatcherInstance||(globalThis.__globalDispatcherInstance=new Rm);const Wa=globalThis.__globalDispatcherInstance,Vo="updated_src";class Ya extends d().EventEmitter{objects={};set=(A,O,U,X)=>{this.objects[A]===void 0&&(this.objects[A]={}),this.objects[A][O]===void 0&&(this.objects[A][O]={}),this.objects[A][O][U]=X};get=(A,O,U,X)=>this.objects[A]===void 0||this.objects[A][O]===void 0||this.objects[A][O][U]===void 0?X:this.objects[A][O][U];handleAction=A=>{const{rjvId:O,data:U,name:X}=A;switch(X){case"RESET":this.emit("reset-"+O);break;case"VARIABLE_UPDATED":A.data[Vo]=this.updateSrc(O,U),this.set(O,"action","variable-update",{...U,type:"variable-edited"}),this.emit("variable-update-"+O);break;case"VARIABLE_REMOVED":A.data[Vo]=this.updateSrc(O,U),this.set(O,"action","variable-update",{...U,type:"variable-removed"}),this.emit("variable-update-"+O);break;case"VARIABLE_ADDED":A.data[Vo]=this.updateSrc(O,U),this.set(O,"action","variable-update",{...U,type:"variable-added"}),this.emit("variable-update-"+O);break;case"ADD_VARIABLE_KEY_REQUEST":this.set(O,"action","new-key-request",U),this.emit("add-key-request-"+O)}};updateSrc=(A,O)=>{O.namespace=O.namespace.slice(1);const{name:U,namespace:X}=O,ne=O.new_value,Ce=O.variable_removed,Re=this.get(A,"global","src");let De=this.deepCopy(Re,[...X]),_e=De;for(const Ve of X)_e=_e[Ve];return Ce?$(_e)==="array"?_e.splice(U,1):delete _e[U]:U!==null?_e[U]=ne:De=ne,this.set(A,"global","src",De),De};deepCopy=(A,O)=>{const U=$(A);let X;const ne=O.shift();return U==="array"?X=[...A]:U==="object"&&(X={...A}),ne!==void 0&&(X[ne]=this.deepCopy(A[ne],O)),X}}const Fi=new Ya;Wa.register(Fi.handleAction.bind(Fi));const mr=Fi,po=class extends v()().PureComponent{constructor(M){super(M),this.state={collapsed:mr.get(M.rjvId,M.namespace,"collapsed",!0)}}handleToggleCollapsed=()=>{this.setState({collapsed:!this.state.collapsed},()=>{mr.set(this.props.rjvId,this.props.namespace,"collapsed",this.state.collapsed)})};render(){const{props:M}=this,{collapsed:A}=this.state;return v()().createElement("div",Le(M.theme,"function"),v()().createElement(Bs,{typeName:"function",...M}),v()().createElement("span",{...Le(M.theme,"function-value"),className:"rjv-function-container",onClick:this.handleToggleCollapsed},this.getFunctionDisplay(A)))}getFunctionDisplay=M=>{const{props:A}=this;return M?v()().createElement("span",null,this.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),v()().createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},v()().createElement("span",null,"{"),v()().createElement("span",Le(A.theme,"ellipsis"),"..."),v()().createElement("span",null,"}"))):this.props.value.toString().slice(9,-1)}},xo=class extends v()().PureComponent{render(){return v()().createElement("div",Le(this.props.theme,"nan"),"NaN")}},Iu=class extends v()().PureComponent{render(){return v()().createElement("div",Le(this.props.theme,"null"),"NULL")}},ql=class extends v()().PureComponent{render(){const{props:M}=this;return v()().createElement("div",Le(M.theme,"integer"),v()().createElement(Bs,{typeName:"int",...M}),this.props.value)}},_f=class extends v()().PureComponent{render(){const{props:M}=this;return v()().createElement("div",Le(M.theme,"regexp"),v()().createElement(Bs,{typeName:"regexp",...M}),this.props.value.toString())}},Go=class extends v()().PureComponent{constructor(M){super(M),this.state={collapsed:mr.get(M.rjvId,M.namespace,"collapsed",!0)}}handleToggleCollapsed=()=>{this.setState({collapsed:!this.state.collapsed},()=>{mr.set(this.props.rjvId,this.props.namespace,"collapsed",this.state.collapsed)})};render(){const{collapsed:M}=this.state,{props:A}=this,{collapseStringsAfterLength:O,theme:U,escapeStrings:X}=A;let{value:ne}=A;const Ce=$(O)==="integer",Re={style:{cursor:"default",wordBreak:"break-all"}};return X&&(ne=z(ne)),Ce&&ne.length>O&&(Re.style.cursor="pointer",M&&(ne=v()().createElement("span",null,ne.substring(0,O),v()().createElement("span",Le(U,"ellipsis")," ...")))),v()().createElement("div",Le(U,"string"),v()().createElement(Bs,{typeName:"string",...A}),v()().createElement("span",{className:"string-value",...Re,onClick:this.handleToggleCollapsed},'"',ne,'"'))}},Xa=class extends v()().PureComponent{render(){return v()().createElement("div",Le(this.props.theme,"undefined"),"undefined")}},Hl=class extends v()().PureComponent{render(){const{props:M}=this;return v()().createElement("div",Le(M.theme,"bigNumber"),v()().createElement(Bs,{typeName:"bigNumber",...M}),this.props.value.toString())}};function Ko(M,A){M=M.trim();try{if((M=structuredClone(M))[0]==="[")return Ln("array",JSON.parse(M));if(M[0]==="{")return Ln("object",JSON.parse(M));if(M.match(/-?\d+\.\d+/)&&M.match(/-?\d+\.\d+/)[0]===M)return A&&parseFloat(M).toString()!==M?Ln("bigNumber",M):Ln("float",parseFloat(M));if(M.match(/-?\d+e-\d+/)&&M.match(/-?\d+e-\d+/)[0]===M)return Ln("float",Number(M));if(M.match(/-?\d+/)&&M.match(/-?\d+/)[0]===M)return A&&parseInt(M).toString()!==M?Ln("bigNumber",M):Ln("integer",parseInt(M));if(M.match(/-?\d+e\+\d+/)&&M.match(/-?\d+e\+\d+/)[0]===M)return Ln("integer",Number(M))}catch{}switch(M=M.toLowerCase()){case"undefined":return Ln("undefined",void 0);case"nan":return Ln("nan",NaN);case"null":return Ln("null",null);case"true":return Ln("boolean",!0);case"false":return Ln("boolean",!1);default:if(M=Date.parse(M))return Ln("date",new Date(M))}return Ln(!1,null)}function Ln(M,A){return{type:M,value:A}}class _u extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{...Kr(O),viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"},v()().createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}class Ul extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{...Kr(O),viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"},v()().createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}class Pf extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A,X=Kr(O).style;return v()().createElement("span",U,v()().createElement("svg",{fill:X.color,width:X.height,height:X.width,style:X,viewBox:"0 0 1792 1792"},v()().createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}class Vl extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A,X=Kr(O).style;return v()().createElement("span",U,v()().createElement("svg",{fill:X.color,width:X.height,height:X.width,style:X,viewBox:"0 0 1792 1792"},v()().createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}class Gl extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{style:{...Kr(O).style,paddingLeft:"2px",verticalAlign:"top"},viewBox:"0 0 15 15",fill:"currentColor"},v()().createElement("path",{d:"M0 14l6-6-6-6z"})))}}class Bf extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{style:{...Kr(O).style,paddingLeft:"2px",verticalAlign:"top"},viewBox:"0 0 15 15",fill:"currentColor"},v()().createElement("path",{d:"M0 5l6 6 6-6z"})))}}class jr extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{...Kr(O),viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"},v()().createElement("g",null,v()().createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}class Za extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{...Kr(O),viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"},v()().createElement("g",null,v()().createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}class Kl extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{...Kr(O),viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"},v()().createElement("g",null,v()().createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}class Wo extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{...Kr(O),viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"},v()().createElement("g",null,v()().createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}class Am extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{...Kr(O),viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"},v()().createElement("g",null,v()().createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}class qi extends v()().PureComponent{render(){const{props:A}=this,{style:O,...U}=A;return v()().createElement("span",U,v()().createElement("svg",{...Kr(O),viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"},v()().createElement("g",null,v()().createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}function Kr(M){return M||(M={}),{style:{verticalAlign:"middle",...M,color:M.color?M.color:"#000000",height:"1em",width:"1em"}}}const Yo=class extends v()().PureComponent{constructor(M){super(M),this.state={copied:!1}}copiedTimer=null;componentWillUnmount(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}copyToClipboardFallback=M=>{const A=document.createElement("textarea");A.value=M,document.body.appendChild(A),A.select(),document.execCommand("copy"),document.body.removeChild(A)};handleCopy=()=>{const{clickCallback:M,src:A,namespace:O}=this.props,U=this.clipboardText(A);navigator.clipboard?navigator.clipboard.writeText(U).catch(()=>{this.copyToClipboardFallback(U)}):this.copyToClipboardFallback(U),this.copiedTimer=setTimeout(()=>{this.setState({copied:!1})},5500),this.setState({copied:!0},()=>{typeof M=="function"&&M({src:A,namespace:O,name:O[O.length-1]})})};getClippyIcon=()=>{const{theme:M}=this.props;return this.state.copied?v()().createElement("span",null,v()().createElement(jr,{className:"copy-icon",...Le(M,"copy-icon")}),v()().createElement("span",Le(M,"copy-icon-copied"),"✔")):v()().createElement(jr,{className:"copy-icon",...Le(M,"copy-icon")})};clipboardValue=M=>{switch($(M)){case"function":case"regexp":return M.toString();default:return M}};clipboardText=M=>{const A=this.clipboardValue(M);return typeof A=="string"?A:JSON.stringify(A,null," ")};render(){const{theme:M,hidden:A,rowHovered:O}=this.props,U=Le(M,"copy-to-clipboard").style;let X="inline";return A&&(X="none"),v()().createElement("span",{className:"copy-to-clipboard-container",title:"Copy to clipboard",style:{verticalAlign:"top",display:O?"inline-block":"none"}},v()().createElement("span",{style:{...U,display:X},onClick:this.handleCopy},this.getClippyIcon()))}};class Wl extends v()().PureComponent{constructor(A){super(A),this.state={editMode:!1,editValue:"",hovered:!1,renameKey:!1,parsedInput:{type:!1,value:null}}}render(){const{variable:A,singleIndent:O,type:U,theme:X,namespace:ne,indentWidth:Ce,enableClipboard:Re,onEdit:De,onDelete:_e,onSelect:Ve,displayArrayKey:Ge,quotesOnKeys:yt,showComma:ht,isLast:Tn}=this.props,{editMode:Gt}=this.state,Ae=Ve!==!1||De!==!1;return v()().createElement("div",{...Le(X,"objectKeyVal",{paddingLeft:Ce*O}),onMouseEnter:()=>this.setState({...this.state,hovered:!0}),onMouseLeave:()=>this.setState({...this.state,hovered:!1}),className:"variable-row",key:A.name},U==="array"?Ge?v()().createElement("span",{...Le(X,"array-key"),key:A.name+"_"+ne},A.name,v()().createElement("div",Le(X,"colon"),":")):null:v()().createElement("span",null,v()().createElement("span",{...Le(X,"object-name"),className:"object-key",key:A.name+"_"+ne,onClick:Ae?this.handleSelect:null},!!yt&&v()().createElement("span",{style:{verticalAlign:"top"}},'"'),v()().createElement("span",{style:{display:"inline-block"}},z(A.name)),!!yt&&v()().createElement("span",{style:{verticalAlign:"top"}},'"')),v()().createElement("span",Le(X,"colon"),":")),v()().createElement("div",{className:"variable-value",onClick:Ae?this.handleSelect:null,...Le(X,"variableValue",{cursor:Ve===!1?"default":"pointer"})},this.getValue(A,Gt)),ht&&!Tn&&v()().createElement("span",Le(X,"comma"),","),Re?v()().createElement(Yo,{rowHovered:this.state.hovered,hidden:Gt,src:A.value,clickCallback:Re,theme:X,namespace:[...ne,A.name]}):null,De!==!1&&Gt===!1?this.getEditIcon():null,_e!==!1&&Gt===!1?this.getRemoveIcon():null)}handleSelect=A=>{const{variable:O,namespace:U,onEdit:X,onSelect:ne,keyModifier:Ce}=this.props,Re=[...U];Ce(A,"edit")&&X!==!1?this.prepopInput(O):ne!==!1&&(Re.shift(),ne({...O,namespace:Re}))};getEditIcon=()=>{const{variable:A,theme:O}=this.props;return v()().createElement("div",{className:"click-to-edit",style:{verticalAlign:"top",display:this.state.hovered?"inline-block":"none"}},v()().createElement(Am,{className:"click-to-edit-icon",...Le(O,"editVarIcon"),onClick:()=>{this.prepopInput(A)}}))};prepopInput=A=>{if(this.props.onEdit!==!1){const O=((X,ne)=>{let Ce;switch($(X,ne)){case"undefined":Ce="undefined";break;case"nan":Ce="NaN";break;case"string":Ce=X;break;case"bigNumber":case"date":case"function":case"regexp":Ce=X.toString();break;default:try{Ce=JSON.stringify(X,null," ")}catch{Ce=""}}return Ce})(A.value,this.props.bigNumber),U=Ko(O,this.props.bigNumber);this.setState({editMode:!0,editValue:O,parsedInput:{type:U.type,value:U.value}})}};getRemoveIcon=()=>{const{variable:A,namespace:O,theme:U,rjvId:X}=this.props;return v()().createElement("div",{className:"click-to-remove",style:{verticalAlign:"top",display:this.state.hovered?"inline-block":"none"}},v()().createElement(Za,{className:"click-to-remove-icon",...Le(U,"removeVarIcon"),onClick:()=>{Wa.dispatch({name:"VARIABLE_REMOVED",rjvId:X,data:{name:A.name,namespace:O,existing_value:A.value,variable_removed:!0}})}}))};getValue=(A,O)=>{const U=!O&&A.type,{props:X}=this;switch(U){case!1:return this.getEditInput();case"string":return v()().createElement(Go,{value:A.value,...X});case"integer":return v()().createElement(ql,{value:A.value,...X});case"float":return v()().createElement(Fl,{value:A.value,...X});case"boolean":return v()().createElement(Du,{value:A.value,...X});case"function":return v()().createElement(po,{value:A.value,...X});case"null":return v()().createElement(Iu,X);case"nan":return v()().createElement(xo,X);case"undefined":return v()().createElement(Xa,X);case"date":return v()().createElement(Ou,{value:A.value,...X});case"regexp":return v()().createElement(_f,{value:A.value,...X});case"bigNumber":return v()().createElement(Hl,{value:A.value,...X});case"circularReference":return v()().createElement(JsonCircularReference,{value:A.value,...X});default:var ne="";try{ne=JSON.stringify(A.value)}catch{ne=""}return v()().createElement("div",{className:"object-value"},ne)}};getEditInput=()=>{const{keyModifier:A,selectOnFocus:O,theme:U}=this.props,{editValue:X}=this.state;return v()().createElement("div",null,v()().createElement(f().A,{type:"text",ref:ne=>{ne&&ne[O?"select":"focus"]()},value:X,className:"variable-editor",onChange:ne=>{const Ce=ne.target.value,Re=Ko(Ce,this.props.bigNumber);this.setState({editValue:Ce,parsedInput:{type:Re.type,value:Re.value}})},onKeyDown:ne=>{switch(ne.key){case"Escape":this.setState({editMode:!1,editValue:""});break;case"Enter":A(ne,"submit")&&this.submitEdit(!0)}ne.stopPropagation()},placeholder:"update this value",minRows:2,...Le(U,"edit-input")}),v()().createElement("div",Le(U,"edit-icon-container"),v()().createElement(Za,{className:"edit-cancel",...Le(U,"cancel-icon"),onClick:ne=>{ne&&ne.stopPropagation(),this.setState({editMode:!1,editValue:""})}}),v()().createElement(qi,{className:"edit-check string-value",...Le(U,"check-icon"),onClick:ne=>{ne&&ne.stopPropagation(),this.submitEdit()}}),v()().createElement("div",null,this.showDetected())))};submitEdit=A=>{const{variable:O,namespace:U,rjvId:X,bigNumber:ne}=this.props,{editValue:Ce,parsedInput:Re}=this.state;let De=Ce;A&&Re.type&&(De=Re.value,ne&&Re.type==="bigNumber"&&(De=new ne(De))),this.setState({editMode:!1}),Wa.dispatch({name:"VARIABLE_UPDATED",rjvId:X,data:{name:O.name,namespace:U,existing_value:O.value,new_value:De,variable_removed:!1}})};showDetected=()=>{const{theme:A}=this.props,O=this.getDetectedInput();if(O)return v()().createElement("div",null,v()().createElement("div",Le(A,"detected-row"),O,v()().createElement(qi,{className:"edit-check detected",style:{verticalAlign:"top",paddingLeft:"3px",...Le(A,"check-icon").style},onClick:U=>{U&&U.stopPropagation(),this.submitEdit(!0)}})))};getDetectedInput=()=>{const{parsedInput:A}=this.state,{type:O,value:U}=A,{props:X}=this,{theme:ne}=X;if(O!==!1)switch(O.toLowerCase()){case"object":return v()().createElement("span",null,v()().createElement("span",{style:{...Le(ne,"brace").style,cursor:"default"}},"{"),v()().createElement("span",{style:{...Le(ne,"ellipsis").style,cursor:"default"}},"..."),v()().createElement("span",{style:{...Le(ne,"brace").style,cursor:"default"}},"}"));case"array":return v()().createElement("span",null,v()().createElement("span",{style:{...Le(ne,"brace").style,cursor:"default"}},"["),v()().createElement("span",{style:{...Le(ne,"ellipsis").style,cursor:"default"}},"..."),v()().createElement("span",{style:{...Le(ne,"brace").style,cursor:"default"}},"]"));case"string":return v()().createElement(Go,{value:U,...X});case"integer":return v()().createElement(ql,{value:U,...X});case"float":return v()().createElement(Fl,{value:U,...X});case"boolean":return v()().createElement(Du,{value:U,...X});case"function":return v()().createElement(po,{value:U,...X});case"null":return v()().createElement(Iu,X);case"nan":return v()().createElement(xo,X);case"undefined":return v()().createElement(Xa,X);case"date":return v()().createElement(Ou,{value:new Date(U),...X});case"bignumber":return v()().createElement(Hl,{value:U,...X});case"circularreference":return v()().createElement(JsonCircularReference,{value:variable.value,...X})}}}const Ff=Wl,qf=class extends v()().PureComponent{getObjectSize=()=>{const{size:M,theme:A,displayObjectSize:O}=this.props;if(O)return v()().createElement("span",{className:"object-size",...Le(A,"object-size")},M," item",M===1?"":"s")};getAddAttribute=M=>{const{theme:A,namespace:O,name:U,src:X,rjvId:ne,depth:Ce}=this.props;return v()().createElement("span",{className:"click-to-add",style:{verticalAlign:"top",display:M?"inline-block":"none"}},v()().createElement(Kl,{className:"click-to-add-icon",...Le(A,"addVarIcon"),onClick:()=>{const Re={name:Ce>0?U:null,namespace:O.slice(0,O.length-1),existing_value:X,variable_removed:!1,key_name:null};$(X)==="object"?Wa.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:ne,data:Re}):Wa.dispatch({name:"VARIABLE_ADDED",rjvId:ne,data:{...Re,new_value:[...X,null]}})}}))};getRemoveObject=M=>{const{theme:A,namespace:O,name:U,src:X,rjvId:ne}=this.props;if(O.length!==1)return v()().createElement("span",{className:"click-to-remove",style:{display:M?"inline-block":"none"}},v()().createElement(Za,{className:"click-to-remove-icon",...Le(A,"removeVarIcon"),onClick:()=>{Wa.dispatch({name:"VARIABLE_REMOVED",rjvId:ne,data:{name:U,namespace:O.slice(0,O.length-1),existing_value:X,variable_removed:!0}})}}))};render=()=>{const{theme:M,onDelete:A,onAdd:O,enableClipboard:U,src:X,namespace:ne,rowHovered:Ce}=this.props;return v()().createElement("div",{...Le(M,"object-meta-data"),className:"object-meta-data",onClick:Re=>{Re.stopPropagation()}},this.getObjectSize(),U?v()().createElement(Yo,{rowHovered:Ce,clickCallback:U,src:X,theme:M,namespace:ne}):null,O!==!1?this.getAddAttribute(Ce):null,A!==!1?this.getRemoveObject(Ce):null)}};function Hf(M){const{parent_type:A,namespace:O,quotesOnKeys:U,theme:X,jsvRoot:ne,name:Ce,displayArrayKey:Re,onKeyClick:De}=M,_e=M.name?M.name:"",Ve=typeof De=="function"?De:null;return!ne||Ce!==!1&&Ce!==null?A==="array"?Re?v()().createElement("span",{...Le(X,"array-key"),key:O,onClick:Ve},v()().createElement("span",{className:"array-key"},_e),v()().createElement("span",Le(X,"colon"),":")):v()().createElement("span",null):v()().createElement("span",{...Le(X,"object-name"),key:O,onClick:Ve},v()().createElement("span",{className:"object-key"},U&&v()().createElement("span",{style:{verticalAlign:"top"}},'"'),v()().createElement("span",null,_e),U&&v()().createElement("span",{style:{verticalAlign:"top"}},'"')),v()().createElement("span",Le(X,"colon"),":")):v()().createElement("span",null)}function Uf(M){const{theme:A,iconStyle:O}=M;switch(O){case"triangle":return v()().createElement(Bf,{...Le(A,"expanded-icon"),className:"expanded-icon"});case"square":return v()().createElement(Pf,{...Le(A,"expanded-icon"),className:"expanded-icon"});default:return v()().createElement(_u,{...Le(A,"expanded-icon"),className:"expanded-icon"})}}function Yl(M){const{theme:A,iconStyle:O}=M;switch(O){case"triangle":return v()().createElement(Gl,{...Le(A,"collapsed-icon"),className:"collapsed-icon"});case"square":return v()().createElement(Vl,{...Le(A,"collapsed-icon"),className:"collapsed-icon"});default:return v()().createElement(Ul,{...Le(A,"collapsed-icon"),className:"collapsed-icon"})}}const Vf=class extends v()().PureComponent{constructor(M){super(M),this.state={expanded:[]}}toggleCollapsed=M=>{const{expanded:A}=this.state,O=[],U=Math.max(A.length||0,M+1);for(let X=0;X<U;X++)O[X]=A[X]===!0;O[M]=!O[M],this.setState({expanded:O})};getExpandedIcon(M){const{theme:A,iconStyle:O}=this.props;return this.state.expanded[M]?v()().createElement(Uf,{theme:A,iconStyle:O}):v()().createElement(Yl,{theme:A,iconStyle:O})}handleKeySelect=()=>{const{name:M,namespace:A,onSelect:O,src:U}=this.props;if(typeof O!="function")return;const X=[...A];X.shift(),X.length>0&&X.pop(),O({name:M,value:U,type:"array",namespace:X})};render(){const{src:M,groupArraysAfterLength:A,depth:O,name:U,theme:X,jsvRoot:ne,namespace:Ce,...Re}=this.props;let De=0;const _e=5*this.props.indentWidth;ne||(De=5*this.props.indentWidth);const Ve=A,Ge=Math.ceil(M.length/Ve);return v()().createElement("div",{className:"object-key-val",...Le(X,ne?"jsv-root":"objectKeyVal",{paddingLeft:De})},v()().createElement(Hf,{...this.props,onKeyClick:this.handleKeySelect}),v()().createElement("span",null,v()().createElement(qf,{size:M.length,...this.props})),[...Array(Ge)].map((yt,ht)=>v()().createElement("div",{key:ht,className:"object-key-val array-group",...Le(X,"objectKeyVal",{marginLeft:6,paddingLeft:_e})},v()().createElement("span",Le(X,"brace-row"),v()().createElement("div",{className:"icon-container",...Le(X,"icon-container"),onClick:Tn=>{this.toggleCollapsed(ht)}},this.getExpandedIcon(ht)),this.state.expanded[ht]?v()().createElement(Xl,{key:U+ht,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:Ve,index_offset:ht*Ve,src:M.slice(ht*Ve,ht*Ve+Ve),namespace:Ce,type:"array",parent_type:"array_group",theme:X,showComma:this.props.showComma,isLast:ht===Ge-1,...Re}):v()().createElement("span",{...Le(X,"brace"),onClick:Tn=>{this.toggleCollapsed(ht)},className:"array-group-brace"},"[",v()().createElement("div",{...Le(X,"array-group-meta-data"),className:"array-group-meta-data"},v()().createElement("span",{className:"object-size",...Le(X,"object-size")},ht*Ve," - ",ht*Ve+Ve-1>M.length?M.length-1:ht*Ve+Ve-1)),"]")))))}};class Hi extends v()().PureComponent{constructor(A){super(A);const O=Hi.getState(A);this.state={...O,prevProps:{}},this.listOfAncestors=Array.from(this.props.listOfAncestors||[]),this.listOfAncestors.push(A.src)}static getState=A=>{const O=Object.keys(A.src).length,U=(A.collapsed===!1||A.collapsed!==!0&&A.collapsed>A.depth)&&(!A.shouldCollapse||A.shouldCollapse({name:A.name,src:A.src,type:$(A.src),namespace:A.namespace})===!1)&&O!==0;return{expanded:mr.get(A.rjvId,A.namespace,"expanded",U),object_type:A.type==="array"?"array":"object",parent_type:A.type==="array"?"array":"object",size:O,hovered:!1}};static getDerivedStateFromProps(A,O){const{prevProps:U}=O,X=A.namespace!==U.namespace&&(!U.namespace||A.namespace.length!==U.namespace.length||A.namespace.some((ne,Ce)=>ne!==U.namespace[Ce]));return A.src!==U.src||A.collapsed!==U.collapsed||A.shouldCollapse!==U.shouldCollapse||A.name!==U.name||X||A.rjvId!==U.rjvId?{...Hi.getState(A),prevProps:A}:null}handleToggleCollapsed=()=>{this.setState({expanded:!this.state.expanded},()=>{mr.set(this.props.rjvId,this.props.namespace,"expanded",this.state.expanded)})};handleKeySelect=()=>{const{name:A,namespace:O,onSelect:U,src:X}=this.props,{object_type:ne}=this.state;if(typeof U!="function")return;const Ce=[...O];Ce.shift(),Ce.length>0&&Ce.pop(),U({name:A,value:X,type:ne,namespace:Ce})};getObjectContent=(A,O,U)=>v()().createElement("div",{className:"pushed-content object-container"},v()().createElement("div",{className:"object-content",...Le(this.props.theme,"pushed-content")},this.renderObjectContents(O,U)));getEllipsis=()=>{const{size:A}=this.state;return A===0?null:v()().createElement("div",{...Le(this.props.theme,"ellipsis"),className:"node-ellipsis",onClick:this.handleToggleCollapsed},"...")};getObjectMetaData=A=>{const{size:O,hovered:U}=this.state;return v()().createElement(qf,{rowHovered:U,size:O,...this.props})};getBraceStart(A,O){const{theme:U,iconStyle:X,parent_type:ne}=this.props;if(ne==="array_group")return v()().createElement("span",null,v()().createElement("span",Le(U,"brace"),A==="array"?"[":"{"));const Ce=O?Uf:Yl;return v()().createElement("span",null,v()().createElement("span",{onClick:this.handleToggleCollapsed,...Le(U,"brace-row")},v()().createElement("div",{className:"icon-container",...Le(U,"icon-container")},v()().createElement(Ce,{theme:U,iconStyle:X})),v()().createElement(Hf,{...this.props,onKeyClick:this.handleKeySelect}),v()().createElement("span",Le(U,"brace"),A==="array"?"[":"{")))}isCircularReference(A){return this.listOfAncestors.indexOf(A.value)>-1||A.value===this.props.src}render(){const{depth:A,src:O,namespace:U,name:X,type:ne,parent_type:Ce,theme:Re,jsvRoot:De,iconStyle:_e,showComma:Ve,isLast:Ge,...yt}=this.props,{object_type:ht,expanded:Tn}=this.state,Gt={};return De||Ce==="array_group"?Ce==="array_group"&&(Gt.borderLeft=0,Gt.display="inline"):Gt.paddingLeft=5*this.props.indentWidth,v()().createElement("div",{className:"object-key-val",onMouseEnter:()=>this.setState({...this.state,hovered:!0}),onMouseLeave:()=>this.setState({...this.state,hovered:!1}),...Le(Re,De?"jsv-root":"objectKeyVal",Gt)},this.getBraceStart(ht,Tn),Tn?this.getObjectContent(A,O,{theme:Re,iconStyle:_e,...yt}):this.getEllipsis(),v()().createElement("span",{className:"brace-row"},v()().createElement("span",{style:{...Le(Re,"brace").style,paddingLeft:Tn?"3px":"0px"}},ht==="array"?"]":"}")),Ve&&!Ge&&!De&&v()().createElement("span",Le(Re,"comma"),","),this.getObjectMetaData(O))}renderObjectContents=(A,O)=>{const{depth:U,parent_type:X,index_offset:ne,groupArraysAfterLength:Ce,namespace:Re,showComma:De}=this.props,{object_type:_e}=this.state,Ve=[];let Ge,yt=Object.keys(A||{});return this.props.sortKeys&&_e!=="array"&&(yt=yt.sort()),yt.forEach((ht,Tn)=>{Ge=new Mm(ht,A[ht],O.bigNumber);const Gt=Tn===yt.length-1;if(X==="array_group"&&ne&&(Ge.name=parseInt(Ge.name,10)+ne),Object.prototype.hasOwnProperty.call(A,ht)&&Ge.type.toLowerCase()!=="window")if(this.isCircularReference(Ge))Ve.push(v()().createElement(L,{key:Ge.name,depth:U+1,name:Ge.name,src:Ge.value,namespace:Re.concat(Ge.name),type:"array",parent_type:_e,isLast:Gt,showComma:De,singleIndent:5,indentWidth:this.props.indentWidth,...O}));else if(Ge.type==="object")Ve.push(v()().createElement(Xl,{key:Ge.name,depth:U+1,name:Ge.name,src:Ge.value,namespace:Re.concat(Ge.name),parent_type:_e,isLast:Gt,showComma:De,listOfAncestors:this.listOfAncestors.concat([this.props.src]),...O}));else if(Ge.type==="array"){let Ae=Xl;Ce&&Ge.value.length>Ce&&(Ae=Vf),Ve.push(v()().createElement(Ae,{key:Ge.name,depth:U+1,name:Ge.name,src:Ge.value,namespace:Re.concat(Ge.name),type:"array",parent_type:_e,isLast:Gt,showComma:De,listOfAncestors:this.listOfAncestors.concat([this.props.src]),...O}))}else Ve.push(v()().createElement(Ff,{key:Ge.name+"_"+Re,variable:Ge,singleIndent:5,namespace:Re,type:this.props.type,isLast:Gt,showComma:De,...O}))}),Ve}}class Mm{constructor(A,O,U){this.name=A,this.value=O,this.type=$(O,U)}}j(Hi);const Xl=Hi,zm=class extends v()().PureComponent{render=()=>{const{props:M}=this;let A=[M.name],O=Xl;return typeof M.name=="object"&&!Array.isArray(M.name)&&(A=[M.name?.displayName||M.name?.name||M.name?.type?.name||"Anonymous"]),Array.isArray(M.src)&&M.groupArraysAfterLength&&M.src.length>M.groupArraysAfterLength&&(O=Vf),v()().createElement("div",{className:"pretty-json-container object-container"},v()().createElement("div",{className:"object-content"},v()().createElement(O,{namespace:A,depth:0,jsvRoot:!0,...M})))}},Gf=class extends v()().PureComponent{constructor(M){super(M),this.state={input:M.input?M.input:""}}render(){const{theme:M,rjvId:A,isValid:O}=this.props,{input:U}=this.state,X=O(U);return v()().createElement("div",{className:"key-modal-request",...Le(M,"key-modal-request"),onClick:this.handleCloseModal},v()().createElement("div",{...Le(M,"key-modal"),onClick:ne=>{ne.stopPropagation()}},v()().createElement("div",Le(M,"key-modal-label"),"Key Name:"),v()().createElement("div",{style:{position:"relative"}},v()().createElement("input",{...Le(M,"key-modal-input"),className:"key-modal-input",ref:ne=>ne&&ne.focus(),spellCheck:!1,value:U,placeholder:"...",onChange:ne=>{this.setState({input:ne.target.value})},onKeyPress:ne=>{X&&ne.key==="Enter"?this.handleSubmit():ne.key==="Escape"&&this.handleCloseModal()}}),X?v()().createElement(qi,{...Le(M,"key-modal-submit"),className:"key-modal-submit",onClick:this.handleSubmit}):null),v()().createElement("span",Le(M,"key-modal-cancel"),v()().createElement(Wo,{...Le(M,"key-modal-cancel-icon"),className:"key-modal-cancel",onClick:()=>{Wa.dispatch({rjvId:A,name:"RESET"})}}))))}handleCloseModal=()=>{Wa.dispatch({rjvId:this.props.rjvId,name:"RESET"})};handleSubmit=()=>{this.props.submit(this.state.input)}},Nm=class extends v()().PureComponent{render(){const{active:M,theme:A,rjvId:O}=this.props;return M?v()().createElement(Gf,{rjvId:O,theme:A,isValid:this.isValid,submit:this.submit}):null}isValid=M=>{const{rjvId:A}=this.props,O=mr.get(A,"action","new-key-request");return M!==""&&Object.keys(O.existing_value).indexOf(M)===-1};submit=M=>{const{rjvId:A}=this.props,O=mr.get(A,"action","new-key-request");O.new_value={...O.existing_value},O.new_value[M]=this.props.defaultValue,Wa.dispatch({name:"VARIABLE_ADDED",rjvId:A,data:O})}},Lm=class extends v()().PureComponent{render(){const{message:M,active:A,theme:O,rjvId:U}=this.props;return A?v()().createElement("div",{className:"validation-failure",...Le(O,"validation-failure"),onClick:()=>{Wa.dispatch({rjvId:U,name:"RESET"})}},v()().createElement("span",Le(O,"validation-failure-label"),M),v()().createElement(Wo,Le(O,"validation-failure-clear"))):null}};class Na extends v()().PureComponent{constructor(A){super(A),this.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:Na.defaultProps.src,name:Na.defaultProps.name,theme:Na.defaultProps.theme,validationMessage:Na.defaultProps.validationMessage,prevSrc:Na.defaultProps.src,prevName:Na.defaultProps.name,prevTheme:Na.defaultProps.theme}}rjvId=Date.now().toString()+Math.random().toString(36).slice(2);static defaultProps={src:{},name:"root",theme:"rjv-default",collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,quotesOnKeys:!0,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,escapeStrings:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:"triangle",style:{},validationMessage:"Validation Error",defaultValue:null,displayArrayKey:!0,selectOnFocus:!1,keyModifier:A=>A.metaKey||A.ctrlKey,bigNumber:null,showComma:!0};static getDerivedStateFromProps(A,O){if(A.src!==O.prevSrc||A.name!==O.prevName||A.theme!==O.prevTheme){const U={src:A.src,name:A.name,theme:A.theme,validationMessage:A.validationMessage,prevSrc:A.src,prevName:A.name,prevTheme:A.theme};return Na.validateState(U)}return null}componentDidMount(){mr.set(this.rjvId,"global","src",this.state.src);const A=this.getListeners();for(const O in A)mr.on(O+"-"+this.rjvId,A[O]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}componentDidUpdate(A,O){O.addKeyRequest!==!1&&this.setState({addKeyRequest:!1}),O.editKeyRequest!==!1&&this.setState({editKeyRequest:!1}),A.src!==this.state.src&&mr.set(this.rjvId,"global","src",this.state.src)}componentWillUnmount(){const A=this.getListeners();for(const O in A)mr.removeListener(O+"-"+this.rjvId,A[O])}getListeners=()=>({reset:this.resetState,"variable-update":this.updateSrc,"add-key-request":this.addKeyRequest});static validateState=A=>{const O={};return $(A.theme)!=="object"||(function(U){const X=["base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F"];if($(U)==="object"){for(let ne=0;ne<X.length;ne++)if(!(X[ne]in U))return!1;return!0}return!1})(A.theme)||(console.error("react-json-view error:","theme prop must be a theme name or valid base-16 theme object.",'defaulting to "rjv-default" theme'),O.theme="rjv-default"),$(A.src)!=="object"&&$(A.src)!=="array"&&(console.error("react-json-view error:","src property must be a valid json object"),O.name="ERROR",O.src={message:"src property must be a valid json object"}),{...A,...O}};render(){const{validationFailure:A,validationMessage:O,addKeyRequest:U,theme:X,src:ne,name:Ce}=this.state,{style:Re,defaultValue:De}=this.props;return v()().createElement("div",{className:"react-json-view",style:{...Le(X,"app-container").style,...Re}},v()().createElement(Lm,{message:O,active:A,theme:X,rjvId:this.rjvId}),v()().createElement(zm,{...this.props,src:ne,name:Ce,theme:X,type:$(ne),rjvId:this.rjvId}),v()().createElement(Nm,{active:U,theme:X,rjvId:this.rjvId,defaultValue:De}))}updateSrc=()=>{const{name:A,namespace:O,new_value:U,existing_value:X,updated_src:ne,type:Ce}=mr.get(this.rjvId,"action","variable-update"),{onEdit:Re,onDelete:De,onAdd:_e}=this.props,{src:Ve}=this.state;let Ge;const yt={existing_src:Ve,new_value:U,updated_src:ne,name:A,namespace:O,existing_value:X};switch(Ce){case"variable-added":Ge=_e(yt);break;case"variable-edited":Ge=Re(yt);break;case"variable-removed":Ge=De(yt)}Ge!==!1?(mr.set(this.rjvId,"global","src",ne),this.setState({src:ne})):(mr.set(this.rjvId,"global","src",Ve),this.setState({validationFailure:!0}))};addKeyRequest=()=>{this.setState({addKeyRequest:!0})};resetState=()=>{this.setState({validationFailure:!1,addKeyRequest:!1})}}j(Na);const Dm=Na})(),u})())})(tx)),tx.exports}var rK=nK();const m3=b3(rK),aK=m3.default||m3,sK={jsonViewport:{kZKoxP:"x5yr21d",kAzted:"x2lwn1j",kMv6JI:"x19dn7l4",kGuDYH:"x4z9k3i",$$css:!0}};function oK(){const{captureId:e=""}=Zb(),t=ja(),{t:a}=en(),{mode:s}=j1(),i=Va({queryKey:Er.detail(e),queryFn:()=>hU(e),enabled:!!e}),c=()=>{t.invalidateQueries({queryKey:Er.detail(e)})},u=i.data?.ok?i.data.data:null,d=u?.rawResponse&&typeof u.rawResponse=="object"?u.rawResponse:null;return p.jsxs(p.Fragment,{children:[p.jsx(Tu,{children:p.jsx(Ut,{gap:2,vAlign:"center",children:p.jsx($a,{label:a("captures.refresh"),tooltip:a("captures.refresh"),icon:p.jsx(Cf,{}),size:"sm",variant:"ghost",onClick:c})})}),i.isPending?p.jsxs(ct,{gap:3,width:"100%",children:[p.jsx(Yd,{width:280,height:30}),p.jsx(Yd,{width:420,height:18,index:1}),p.jsx(Yd,{width:"100%",height:280,radius:2,index:2})]}):u?p.jsxs(ct,{gap:5,width:"100%",height:"100%",children:[p.jsxs(ct,{gap:2,children:[p.jsx(_i,{level:1,children:u.capture.title||a("navigation.captureDetails")}),p.jsx(om,{href:u.capture.url,isExternalLink:!0,type:"supporting",display:"block",maxLines:2,children:u.capture.url}),p.jsxs(Ut,{gap:4,wrap:"wrap",children:[p.jsx(tt,{type:"supporting",children:`${a("captures.createdAt")}: ${u.capture.createdAt}`}),p.jsx(tt,{type:"supporting",children:`${a("captures.updatedAt")}: ${u.capture.updatedAt}`})]}),u.capture.userNote&&p.jsx(tt,{color:"secondary",children:u.capture.userNote})]}),p.jsx(Ol,{}),d?p.jsx(Ni,{size:"fill",children:p.jsx(Po,{width:"100%",height:"100%",padding:5,variant:"muted",children:p.jsx(ct,{width:"100%",height:"100%",minHeight:0,isScrollable:!0,xstyle:sK.jsonViewport,children:p.jsx(aK,{src:d,name:!1,theme:s==="dark"?"twilight":"rjv-default",iconStyle:"square",indentWidth:2,collapsed:!1,collapseStringsAfterLength:!1,enableClipboard:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onAdd:!1,onDelete:!1,onSelect:!1,style:{minHeight:"100%",flexShrink:0,backgroundColor:"transparent"}})})})}):p.jsx(ku,{title:a("captures.noResponseTitle"),description:a("captures.noResponseDescription")})]}):p.jsx(ku,{title:a("captures.detailUnavailable")})]})}const iK={pending:"neutral",running:"neutral",succeeded:"success",failed:"error"};function lK(){const{captureId:e=""}=Zb(),{t}=en(),a=ja(),s=qo(),i=Va({queryKey:Er.jobs(e),queryFn:()=>gU(e),enabled:!!e}),c=Qr({mutationFn:ST,onSuccess:g=>{if(!g.ok){s({body:t(of(g.error.code)),type:"error",uniqueID:g.error.code});return}a.invalidateQueries({queryKey:Er.jobs(e)}),s({body:t("captures.recaptureStarted"),uniqueID:"recapture-started"})}}),u=i.data?.ok?i.data.data:[],d=()=>{a.invalidateQueries({queryKey:Er.jobs(e)})},f=x.useMemo(()=>[{key:"status",header:t("captures.jobStatus"),width:hs(120),renderCell:g=>p.jsx(c6,{label:t(`captures.jobStatus.${g.status}`),variant:iK[g.status]})},{key:"fetcher",header:t("captures.fetcher"),width:hs(160),renderCell:g=>p.jsx(tt,{children:t(tT(g.fetcher))})},{key:"creditsUsed",header:t("captures.creditsUsed"),width:hs(96),renderCell:g=>p.jsx(tt,{color:g.creditsUsed===null?"secondary":"primary",children:g.creditsUsed??"—"})},{key:"createdAt",header:t("captures.createdAt"),width:hs(200),renderCell:g=>p.jsx(tt,{color:"secondary",children:g.createdAt})},{key:"updatedAt",header:t("captures.updatedAt"),width:hs(200),renderCell:g=>p.jsx(tt,{color:"secondary",children:g.updatedAt})},{key:"error",header:t("captures.error"),width:hs(220),renderCell:g=>g.errorMessage?p.jsx(Bo,{content:g.errorMessage,children:p.jsx(tt,{color:"primary",display:"block",maxLines:2,textWrap:"wrap",children:g.errorMessage})}):p.jsx(tt,{color:"secondary",children:"—"})}],[t]);return p.jsxs(p.Fragment,{children:[p.jsx(Tu,{children:p.jsxs(Ut,{gap:2,vAlign:"center",children:[p.jsx($a,{label:t("captures.refresh"),tooltip:t("captures.refresh"),icon:p.jsx(Cf,{}),size:"sm",variant:"ghost",onClick:d}),p.jsx(Bt,{label:t("captures.recapture"),size:"sm",variant:"primary",onClick:()=>{c.mutate(e)}})]})}),p.jsx(ct,{gap:5,children:u.length===0?p.jsx(ku,{title:t("captures.noJobsTitle"),description:t("captures.noJobsDescription")}):p.jsx(Lf,{data:u,columns:f,idKey:"id",textOverflow:"truncate"})})]})}function cK(){const e=ja(),{subscribe:t,status:a}=pm();return x.useEffect(()=>t(s=>{(s.type===qj||s.type===Hj)&&e.invalidateQueries({queryKey:Er.all})}),[e,t]),x.useEffect(()=>{a==="open"&&e.invalidateQueries({queryKey:Er.all})},[e,a]),null}const uK=new Set([rF,qj,Hj]);function dK(){const e=ja(),{subscribe:t,status:a}=pm();return x.useEffect(()=>t(s=>{uK.has(s.type)?e.invalidateQueries({queryKey:Mx.status()}):s.type===aF&&e.invalidateQueries()}),[e,t]),x.useEffect(()=>{a==="open"&&e.invalidateQueries({queryKey:Mx.status()})},[e,a]),null}function fK(){const e=ja(),{subscribe:t,status:a}=pm();return x.useEffect(()=>t(s=>{s.type===sF&&e.invalidateQueries({queryKey:oo.all})}),[e,t]),x.useEffect(()=>{a==="open"&&e.invalidateQueries({queryKey:oo.all})},[e,a]),null}const hK=new Set(["timeFormat","timezone"]);function pK(){const e=ja(),{subscribe:t,status:a}=pm();return x.useEffect(()=>t(s=>{s.type===oF&&(e.invalidateQueries({queryKey:Li.current()}),xK(s.data)&&g3(e))}),[e,t]),x.useEffect(()=>{a==="open"&&(e.invalidateQueries({queryKey:Li.current()}),g3(e))},[e,a]),null}function g3(e){e.invalidateQueries({queryKey:Er.all}),e.invalidateQueries({queryKey:oo.all})}function xK(e){if(typeof e!="object"||e===null||!("fields"in e))return!1;const t=e.fields;return Array.isArray(t)&&t.some(a=>typeof a=="string"&&hK.has(a))}const Ds={appShell:{kMv6JI:"x14194xn",$$css:!0},sideNav:{kzqmXN:"x18nvf5t",$$css:!0},mobileSideNav:{kzqmXN:"x1ng3b2o",$$css:!0},sideNavCollapsed:{kzqmXN:"xw4jh6d",$$css:!0},compactNavItems:{khm7nJ:"xcd2776",$$css:!0},titlebarContent:{k7Eaqz:"xeuugli",$$css:!0},title:{kUk6DE:"xkz0k9k",k7Eaqz:"xeuugli",ks0D6T:"x110x0he",kXDg7o:"x2gurmm",$$css:!0},description:{k7Eaqz:"xeuugli",kmuXW:"xs83m0k",k2OY:"x16jr1d2",$$css:!0},actions:{kmuXW:"x2lah0s",$$css:!0}},mK={className:"x78zum5 x6s0dn4 x1txdalj xpx4bdk xbih8ty x1rey3nv xnjyzlh x87ps6o"},bl={overview:eP,captures:b$,sessions:m$,prompts:C_,library:F1,providers:V1,settings:y_},gK=[{kind:"item",id:"overview",label:"Overview",href:"/overview",icon:bl.overview},{kind:"section",id:"library",title:"Library",icon:bl.library,items:[{kind:"item",id:"sessions",label:"Sessions",href:"/library/sessions",icon:bl.sessions},{kind:"item",id:"prompts",label:"Prompts",href:"/library/prompts",icon:bl.prompts},{kind:"item",id:"captures",label:"Captures",href:"/library/captures",icon:bl.captures}]},{kind:"item",id:"providers",label:"Providers",href:"/providers",icon:bl.providers}],K0={kind:"item",id:"settings",label:"Settings",href:"/settings",icon:bl.settings};function g6({href:e="/",ref:t,...a}){return p.jsx(xC,{ref:t,to:e,...a})}function Ob({label:e,icon:t,href:a}){const{pathname:s}=Ta(),{isMobile:i,closeMobileNav:c}=Pl();return p.jsx(lm,{label:e,icon:t,href:a,as:g6,isSelected:s===a,size:"sm",onClick:i?c:void 0})}function yK({title:e,icon:t,items:a,getLabel:s}){const[i,c]=x.useState(!1),{isMobile:u,closeMobileNav:d}=Pl(),f=a[0];return p.jsx(lm,{label:e,icon:t,href:f.href,as:g6,collapsible:{isCollapsed:i,onCollapsedChange:c},onClick:()=>{c(!1),u&&d()},size:"sm",children:p.jsx(ct,{gap:0,xstyle:Ds.compactNavItems,children:a.map(g=>p.jsx(Ob,{label:s(g.id,g.label),icon:g.icon,href:g.href},g.id))})})}function y3(e){return typeof e=="object"&&e!==null&&"titleKey"in e&&typeof e.titleKey=="string"}function y6({collapsible:e,showBackButton:t=!1}){const a=NA(),s=Eu(),{t:i}=en(),{isMobile:c}=Pl(),u=wP(),d=a.findLast(f=>y3(f.handle))?.handle;return p.jsxs("header",{...mK,"aria-label":i("navigation.windowTitlebar"),children:[t&&p.jsx($a,{label:i("navigation.back"),icon:p.jsx(jt,{icon:"chevronLeft"}),variant:"ghost",size:"sm",tooltip:i("navigation.back"),onClick:()=>s(-1)}),p.jsx(R1,{label:i("navigation.openNavigation")}),!c&&e&&p.jsx(L1,{collapsible:e,size:"sm",children:p.jsx(jt,{icon:e.isCollapsed?"chevronsRight":"chevronsLeft",size:"sm"})}),y3(d)&&p.jsxs(Ut,{gap:2,vAlign:"center",width:"100%",xstyle:Ds.titlebarContent,children:[p.jsx(tt,{type:"large",weight:"semibold",maxLines:1,textWrap:"nowrap",xstyle:Ds.title,children:i(d.titleKey)}),d.descriptionKey&&p.jsx(tt,{type:"supporting",maxLines:1,textWrap:"nowrap",xstyle:Ds.description,children:i(d.descriptionKey)}),p.jsx(Ni,{size:"fill"}),p.jsx(Ut,{ref:u,vAlign:"center",xstyle:Ds.actions})]})]})}function bK(){const[e,t]=x.useState(!1),{t:a}=en(),s=(g,y)=>({overview:a("navigation.overview"),captures:a("navigation.captures"),sessions:a("navigation.sessions"),prompts:a("navigation.prompts"),providers:a("navigation.providers"),settings:a("navigation.settings"),library:a("navigation.library")})[g]??y,i={isCollapsed:e,onCollapsedChange:t},c=p.jsx(kx,{title:a("navigation.account"),isHeaderHidden:!0,children:p.jsx(Ob,{...K0,label:s(K0.id,K0.label)})}),u=p.jsx(kx,{title:a("navigation.main"),isHeaderHidden:!0,children:p.jsx(ct,{gap:0,xstyle:Ds.compactNavItems,children:gK.map(g=>g.kind==="item"?p.jsx(Ob,{...g,label:s(g.id,g.label)},g.id):p.jsx(yK,{title:s(g.id,g.title),icon:g.icon,items:g.items,getLabel:s},g.id))})}),d=p.jsx(bx,{collapsible:{...i,hasButton:!1},xstyle:e?Ds.sideNavCollapsed:Ds.sideNav,footer:c,children:u}),f=p.jsx(bx,{footer:c,xstyle:Ds.mobileSideNav,children:u});return p.jsx(A1,{height:"fill",variant:"surface",contentPadding:0,mobileNav:{content:p.jsx(z1,{className:dF.drawer,label:a("navigation.main"),side:"start",children:f})},xstyle:Ds.appShell,topNav:p.jsx(y6,{collapsible:i}),sideNav:d,children:p.jsx(Oi,{height:"fill",content:p.jsx(Ii,{padding:4,children:p.jsx(e1,{})})})})}function vK(){const{pathname:e}=Ta(),t=e==="/settings";return p.jsx(A1,{height:"fill",variant:"surface",contentPadding:0,mobileNav:!1,xstyle:Ds.appShell,topNav:p.jsx(y6,{showBackButton:!0}),children:p.jsx(Oi,{height:"fill",content:p.jsx(Ii,{padding:t?0:4,isScrollable:!t,children:p.jsx(e1,{})})})})}function kK(){const{pathname:e}=Ta(),{t}=en();return p.jsx(ct,{gap:2,children:p.jsxs(tt,{type:"supporting",children:[t("navigation.notFound"),":",e]})})}function wK(){return p.jsx(e1,{})}function Ms(e,t){return{titleKey:e,descriptionKey:t}}const SK=gM([{path:"/",element:p.jsx(wK,{}),children:[{index:!0,element:p.jsx(VA,{to:"/overview",replace:!0})},{element:p.jsx(bK,{}),children:[{path:"overview",element:p.jsx(fF,{}),handle:Ms("navigation.overview")},{path:"library/captures",element:p.jsx(jG,{}),handle:Ms("navigation.captures","navigation.capturesDescription")},{path:"library/sessions",element:p.jsx(QG,{}),handle:Ms("navigation.sessions","navigation.sessionsDescription")},{path:"library/prompts",element:p.jsx(hF,{}),handle:Ms("navigation.prompts")},{path:"providers",element:p.jsx(tV,{}),handle:Ms("navigation.providers","navigation.providersDescription")}]},{element:p.jsx(vK,{}),children:[{path:"library/captures/:captureId",element:p.jsx(oK,{}),handle:Ms("navigation.captureDetails","navigation.captureDetailsDescription")},{path:"library/captures/:captureId/jobs",element:p.jsx(lK,{}),handle:Ms("navigation.jobs","navigation.jobsDescription")},{path:"settings",element:p.jsx(UU,{}),handle:Ms("navigation.settings")},{path:"providers/new",element:p.jsx(ZE,{}),handle:Ms("navigation.newProvider","providers.formDescription")},{path:"providers/:providerId",element:p.jsx(ZE,{}),handle:Ms("navigation.editProvider","providers.formDescription")},{path:"*",element:p.jsx(kK,{}),handle:Ms("navigation.notFound")}]}]}]);function EK({children:e}){const a=Va({queryKey:Li.current(),queryFn:hm}).data?.workspace.appearance["color-theme"]??"system";return p.jsx(P1,{theme:kP,mode:a,children:e})}function CK(){return p.jsx(v7,{client:Pj,children:p.jsx(cF,{children:p.jsxs(SP,{children:[p.jsx(cK,{}),p.jsx(dK,{}),p.jsx(fK,{}),p.jsx(pK,{}),p.jsx(EK,{children:p.jsx(nF,{children:p.jsx(TM,{router:SK})})})]})})})}k3.createRoot(document.getElementById("root")).render(p.jsx(x.StrictMode,{children:p.jsx(CK,{})}));export{pu as L,n$ as S,Ll as a,iq as b,M1 as c,_l as d,Ml as e,Xn as f,Mi as g,_o as h,NI as i,p as j,Io as k,mu as l,Te as m,xu as n,tf as o,Se as p,lq as q,x as r,c1 as s,Ee as t,nm as u,Wx as v,nf as w};