@dhzh/foundry 4.0.1 → 5.0.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.
- package/README.md +4 -4
- package/dist/drizzle/{0001_numerous_scorpion.sql → 0000_lumpy_landau.sql} +15 -3
- package/dist/drizzle/meta/0000_snapshot.json +202 -1
- package/dist/drizzle/meta/_journal.json +2 -9
- package/dist/index.mjs +1 -1
- package/dist/skills/foundry/SKILL.md +8 -8
- package/dist/skills/foundry/references/captures.md +85 -103
- package/dist/skills/foundry/references/cli-conventions.md +3 -3
- package/dist/skills/foundry/references/data-transfer.md +2 -2
- package/dist/skills/foundry/references/settings.md +8 -11
- package/dist/web/assets/{BottomSheet-CCHJmC-l.js → BottomSheet-CWUeIGJ0.js} +1 -1
- package/dist/web/assets/{ItemSwipeLayer-X1u8YGUY.js → ItemSwipeLayer-4ExriXa6.js} +1 -1
- package/dist/web/assets/{MenuBottomSheet-BrAaAVcz.js → MenuBottomSheet-BzoE93x-.js} +1 -1
- package/dist/web/assets/index-CLqIiIT_.js +104 -0
- package/dist/web/assets/{index-D6Lneuo8.css → index-DPU18hWe.css} +16 -0
- package/dist/web/index.html +2 -2
- package/package.json +2 -1
- package/dist/drizzle/0000_fuzzy_spectrum.sql +0 -12
- package/dist/drizzle/meta/0001_snapshot.json +0 -302
- package/dist/web/assets/index-C2YHuD05.js +0 -179
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/MenuBottomSheet-BrAaAVcz.js","assets/BottomSheet-CCHJmC-l.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
function SM(e,t){for(var r=0;r<t.length;r++){const s=t[r];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(s,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>s[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=r(o);fetch(o.href,l)}})();function EM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sy={exports:{}},xu={};var mS;function $M(){if(mS)return xu;mS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(s,o,l){var u=null;if(l!==void 0&&(u=""+l),o.key!==void 0&&(u=""+o.key),"key"in o){l={};for(var f in o)f!=="key"&&(l[f]=o[f])}else l=o;return o=l.ref,{$$typeof:e,type:s,key:u,ref:o!==void 0?o:null,props:l}}return xu.Fragment=t,xu.jsx=r,xu.jsxs=r,xu}var yS;function TM(){return yS||(yS=1,sy.exports=$M()),sy.exports}var x=TM(),oy={exports:{}},nt={};var bS;function CM(){if(bS)return nt;bS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),k=Symbol.for("react.view_transition"),v=Symbol.iterator;function w(I){return I===null||typeof I!="object"?null:(I=v&&I[v]||I["@@iterator"],typeof I=="function"?I:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,R={};function C(I,ee,pe){this.props=I,this.context=ee,this.refs=R,this.updater=pe||S}C.prototype.isReactComponent={},C.prototype.setState=function(I,ee){if(typeof I!="object"&&typeof I!="function"&&I!=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,I,ee,"setState")},C.prototype.forceUpdate=function(I){this.updater.enqueueForceUpdate(this,I,"forceUpdate")};function T(){}T.prototype=C.prototype;function A(I,ee,pe){this.props=I,this.context=ee,this.refs=R,this.updater=pe||S}var N=A.prototype=new T;N.constructor=A,E(N,C.prototype),N.isPureReactComponent=!0;var L=Array.isArray;function D(){}var j={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function M(I,ee,pe){var ue=pe.ref;return{$$typeof:e,type:I,key:ee,ref:ue!==void 0?ue:null,props:pe}}function H(I,ee){return M(I.type,ee,I.props)}function F(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function q(I){var ee={"=":"=0",":":"=2"};return"$"+I.replace(/[=:]/g,function(pe){return ee[pe]})}var B=/\/+/g;function U(I,ee){return typeof I=="object"&&I!==null&&I.key!=null?q(""+I.key):ee.toString(36)}function _(I){switch(I.status){case"fulfilled":return I.value;case"rejected":throw I.reason;default:switch(typeof I.status=="string"?I.then(D,D):(I.status="pending",I.then(function(ee){I.status==="pending"&&(I.status="fulfilled",I.value=ee)},function(ee){I.status==="pending"&&(I.status="rejected",I.reason=ee)})),I.status){case"fulfilled":return I.value;case"rejected":throw I.reason}}throw I}function P(I,ee,pe,ue,ve){var xe=typeof I;(xe==="undefined"||xe==="boolean")&&(I=null);var $e=!1;if(I===null)$e=!0;else switch(xe){case"bigint":case"string":case"number":$e=!0;break;case"object":switch(I.$$typeof){case e:case t:$e=!0;break;case m:return $e=I._init,P($e(I._payload),ee,pe,ue,ve)}}if($e)return ve=ve(I),$e=ue===""?"."+U(I,0):ue,L(ve)?(pe="",$e!=null&&(pe=$e.replace(B,"$&/")+"/"),P(ve,ee,pe,"",function(Re){return Re})):ve!=null&&(F(ve)&&(ve=H(ve,pe+(ve.key==null||I&&I.key===ve.key?"":(""+ve.key).replace(B,"$&/")+"/")+$e)),ee.push(ve)),1;$e=0;var te=ue===""?".":ue+":";if(L(I))for(var he=0;he<I.length;he++)ue=I[he],xe=te+U(ue,he),$e+=P(ue,ee,pe,xe,ve);else if(he=w(I),typeof he=="function")for(I=he.call(I),he=0;!(ue=I.next()).done;)ue=ue.value,xe=te+U(ue,he++),$e+=P(ue,ee,pe,xe,ve);else if(xe==="object"){if(typeof I.then=="function")return P(_(I),ee,pe,ue,ve);throw ee=String(I),Error("Objects are not valid as a React child (found: "+(ee==="[object Object]"?"object with keys {"+Object.keys(I).join(", ")+"}":ee)+"). If you meant to render a collection of children, use an array instead.")}return $e}function G(I,ee,pe){if(I==null)return I;var ue=[],ve=0;return P(I,ue,"","",function(xe){return ee.call(pe,xe,ve++)}),ue}function X(I){if(I._status===-1){var ee=I._result,pe=ee();pe.then(function(ue){(I._status===0||I._status===-1)&&(I._status=1,I._result=ue,pe.status===void 0&&(pe.status="fulfilled",pe.value=ue))},function(ue){(I._status===0||I._status===-1)&&(I._status=2,I._result=ue,pe.status===void 0&&(pe.status="rejected",pe.reason=ue))}),I._status===-1&&(I._status=0,I._result=pe)}if(I._status===1)return I._result.default;throw I._result}var Z=typeof reportError=="function"?reportError:function(I){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ee=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof I=="object"&&I!==null&&typeof I.message=="string"?String(I.message):String(I),error:I});if(!window.dispatchEvent(ee))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",I);return}console.error(I)};function Q(I){var ee=j.T,pe={};pe.types=ee!==null?ee.types:null,j.T=pe;try{var ue=I(),ve=j.S;ve!==null&&ve(pe,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(D,Z)}catch(xe){Z(xe)}finally{ee!==null&&pe.types!==null&&(ee.types=pe.types),j.T=ee}}function K(I){var ee=j.T;if(ee!==null){var pe=ee.types;pe===null?ee.types=[I]:pe.indexOf(I)===-1&&pe.push(I)}else Q(K.bind(null,I))}var ae={map:G,forEach:function(I,ee,pe){G(I,function(){ee.apply(this,arguments)},pe)},count:function(I){var ee=0;return G(I,function(){ee++}),ee},toArray:function(I){return G(I,function(ee){return ee})||[]},only:function(I){if(!F(I))throw Error("React.Children.only expected to receive a single React element child.");return I}};return nt.Activity=y,nt.Children=ae,nt.Component=C,nt.Fragment=r,nt.Profiler=o,nt.PureComponent=A,nt.StrictMode=s,nt.Suspense=d,nt.ViewTransition=k,nt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,nt.__COMPILER_RUNTIME={__proto__:null,c:function(I){return j.H.useMemoCache(I)}},nt.addTransitionType=K,nt.cache=function(I){return function(){return I.apply(null,arguments)}},nt.cacheSignal=function(){return null},nt.cloneElement=function(I,ee,pe){if(I==null)throw Error("The argument must be a React element, but you passed "+I+".");var ue=E({},I.props),ve=I.key;if(ee!=null)for(xe in ee.key!==void 0&&(ve=""+ee.key),ee)!O.call(ee,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&ee.ref===void 0||(ue[xe]=ee[xe]);var xe=arguments.length-2;if(xe===1)ue.children=pe;else if(1<xe){for(var $e=Array(xe),te=0;te<xe;te++)$e[te]=arguments[te+2];ue.children=$e}return M(I.type,ve,ue)},nt.createContext=function(I){return I={$$typeof:u,_currentValue:I,_currentValue2:I,_threadCount:0,Provider:null,Consumer:null},I.Provider=I,I.Consumer={$$typeof:l,_context:I},I},nt.createElement=function(I,ee,pe){var ue,ve={},xe=null;if(ee!=null)for(ue in ee.key!==void 0&&(xe=""+ee.key),ee)O.call(ee,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ve[ue]=ee[ue]);var $e=arguments.length-2;if($e===1)ve.children=pe;else if(1<$e){for(var te=Array($e),he=0;he<$e;he++)te[he]=arguments[he+2];ve.children=te}if(I&&I.defaultProps)for(ue in $e=I.defaultProps,$e)ve[ue]===void 0&&(ve[ue]=$e[ue]);return M(I,xe,ve)},nt.createRef=function(){return{current:null}},nt.forwardRef=function(I){return{$$typeof:f,render:I}},nt.isValidElement=F,nt.lazy=function(I){return{$$typeof:m,_payload:{_status:-1,_result:I},_init:X}},nt.memo=function(I,ee){return{$$typeof:p,type:I,compare:ee===void 0?null:ee}},nt.startTransition=Q,nt.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},nt.use=function(I){return j.H.use(I)},nt.useActionState=function(I,ee,pe){return j.H.useActionState(I,ee,pe)},nt.useCallback=function(I,ee){return j.H.useCallback(I,ee)},nt.useContext=function(I){return j.H.useContext(I)},nt.useDebugValue=function(){},nt.useDeferredValue=function(I,ee){return j.H.useDeferredValue(I,ee)},nt.useEffect=function(I,ee){return j.H.useEffect(I,ee)},nt.useEffectEvent=function(I){return j.H.useEffectEvent(I)},nt.useId=function(){return j.H.useId()},nt.useImperativeHandle=function(I,ee,pe){return j.H.useImperativeHandle(I,ee,pe)},nt.useInsertionEffect=function(I,ee){return j.H.useInsertionEffect(I,ee)},nt.useLayoutEffect=function(I,ee){return j.H.useLayoutEffect(I,ee)},nt.useMemo=function(I,ee){return j.H.useMemo(I,ee)},nt.useOptimistic=function(I,ee){return j.H.useOptimistic(I,ee)},nt.useReducer=function(I,ee,pe){return j.H.useReducer(I,ee,pe)},nt.useRef=function(I){return j.H.useRef(I)},nt.useState=function(I){return j.H.useState(I)},nt.useSyncExternalStore=function(I,ee,pe){return j.H.useSyncExternalStore(I,ee,pe)},nt.useTransition=function(){return j.H.useTransition()},nt.version="19.3.1",nt}var kS;function Ip(){return kS||(kS=1,oy.exports=CM()),oy.exports}var g=Ip();const _p=EM(g),jM=SM({__proto__:null,default:_p},[g]);var iy={exports:{}},gu={},ly={exports:{}},cy={};var vS;function RM(){return vS||(vS=1,(function(e){function t(_,P){var G=_.length;_.push(P);e:for(;0<G;){var X=G-1>>>1,Z=_[X];if(0<o(Z,P))_[X]=P,_[G]=Z,G=X;else break e}}function r(_){return _.length===0?null:_[0]}function s(_){if(_.length===0)return null;var P=_[0],G=_.pop();if(G!==P){_[0]=G;e:for(var X=0,Z=_.length,Q=Z>>>1;X<Q;){var K=2*(X+1)-1,ae=_[K],I=K+1,ee=_[I];if(0>o(ae,G))I<Z&&0>o(ee,ae)?(_[X]=ee,_[I]=G,X=I):(_[X]=ae,_[K]=G,X=K);else if(I<Z&&0>o(ee,G))_[X]=ee,_[I]=G,X=I;else break e}}return P}function o(_,P){var G=_.sortIndex-P.sortIndex;return G!==0?G:_.id-P.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],p=[],m=1,y=null,k=3,v=!1,w=!1,S=!1,E=!1,R=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function A(_){for(var P=r(p);P!==null;){if(P.callback===null)s(p);else if(P.startTime<=_)s(p),P.sortIndex=P.expirationTime,t(d,P);else break;P=r(p)}}function N(_){if(S=!1,A(_),!w)if(r(d)!==null)w=!0,L||(L=!0,F());else{var P=r(p);P!==null&&U(N,P.startTime-_)}}var L=!1,D=-1,j=5,O=-1;function M(){return E?!0:!(e.unstable_now()-O<j)}function H(){if(E=!1,L){var _=e.unstable_now();O=_;var P=!0;try{e:{w=!1,S&&(S=!1,C(D),D=-1),v=!0;var G=k;try{t:{for(A(_),y=r(d);y!==null&&!(y.expirationTime>_&&M());){var X=y.callback;if(typeof X=="function"){y.callback=null,k=y.priorityLevel;var Z=X(y.expirationTime<=_);if(_=e.unstable_now(),typeof Z=="function"){y.callback=Z,A(_),P=!0;break t}y===r(d)&&s(d),A(_)}else s(d);y=r(d)}if(y!==null)P=!0;else{var Q=r(p);Q!==null&&U(N,Q.startTime-_),P=!1}}break e}finally{y=null,k=G,v=!1}P=void 0}}finally{P?F():L=!1}}}var F;if(typeof T=="function")F=function(){T(H)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,B=q.port2;q.port1.onmessage=H,F=function(){B.postMessage(null)}}else F=function(){R(H,0)};function U(_,P){D=R(function(){_(e.unstable_now())},P)}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(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_next=function(_){switch(k){case 1:case 2:case 3:var P=3;break;default:P=k}var G=k;k=P;try{return _()}finally{k=G}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(_,P){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var G=k;k=_;try{return P()}finally{k=G}},e.unstable_scheduleCallback=function(_,P,G){var X=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?X+G:X):G=X,_){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=G+Z,_={id:m++,callback:P,priorityLevel:_,startTime:G,expirationTime:Z,sortIndex:-1},G>X?(_.sortIndex=G,t(p,_),r(d)===null&&_===r(p)&&(S?(C(D),D=-1):S=!0,U(N,G-X))):(_.sortIndex=Z,t(d,_),w||v||(w=!0,L||(L=!0,F()))),_},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(_){var P=k;return function(){var G=k;k=P;try{return _.apply(this,arguments)}finally{k=G}}}})(cy)),cy}var wS;function AM(){return wS||(wS=1,ly.exports=RM()),ly.exports}var uy={exports:{}},ar={};var SS;function MM(){if(SS)return ar;SS=1;var e=Ip();function t(m){var y="https://react.dev/errors/"+m;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var k=2;k<arguments.length;k++)y+="&args[]="+encodeURIComponent(arguments[k])}return"Minified React error #"+m+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal"),l=Symbol.for("react.recoverable"),u=Symbol.for("react.optimistic_key");function f(m,y,k){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:v===u?u:""+v,children:m,containerInfo:y,implementation:k}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(m,y){if(m==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return ar.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ar.browser=function(m){return{$$typeof:l,_reason:m}},ar.createPortal=function(m,y){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(t(299));return f(m,y,null,k)},ar.flushSync=function(m){var y=d.T,k=s.p;try{if(d.T=null,s.p=2,m)return m()}finally{d.T=y,s.p=k,s.d.f()}},ar.preconnect=function(m,y){typeof m=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,s.d.C(m,y))},ar.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},ar.preinit=function(m,y){if(typeof m=="string"&&y&&typeof y.as=="string"){var k=y.as,v=p(k,y.crossOrigin),w=typeof y.integrity=="string"?y.integrity:void 0,S=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;k==="style"?s.d.S(m,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:S}):k==="script"&&s.d.X(m,{crossOrigin:v,integrity:w,fetchPriority:S,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},ar.preinitModule=function(m,y){if(typeof m=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var k=p(y.as,y.crossOrigin);s.d.M(m,{crossOrigin:k,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0})}}else y==null&&s.d.M(m)},ar.preload=function(m,y){if(typeof m=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var k=y.as,v=p(k,y.crossOrigin);s.d.L(m,k,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},ar.preloadModule=function(m,y){if(typeof m=="string")if(y){var k=p(y.as,y.crossOrigin);s.d.m(m,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:k,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0})}else s.d.m(m)},ar.requestFormReset=function(m){s.d.r(m)},ar.unstable_batchedUpdates=function(m,y){return m(y)},ar.useFormState=function(m,y,k){return d.H.useFormState(m,y,k)},ar.useFormStatus=function(){return d.H.useHostTransitionStatus()},ar.version="19.3.1",ar}var ES;function g$(){if(ES)return uy.exports;ES=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(),uy.exports=MM(),uy.exports}var $S;function NM(){if($S)return gu;$S=1;var e=AM(),t=Ip(),r=g$();function s(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function l(n){for(var a=n,i=a;i&&!i.alternate;)a=i,(a.flags&4098)!==0&&(n=a.return),i=a.return;for(;a.return;)a=a.return;return a.tag===3?n:null}function u(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(l(n)!==n)throw Error(s(188))}function p(n){var a=n.alternate;if(!a){if(a=l(n),a===null)throw Error(s(188));return a!==n?null:n}for(var i=n,c=a;;){var h=i.return;if(h===null)break;var b=h.alternate;if(b===null){if(c=h.return,c!==null){i=c;continue}break}if(h.child===b.child){for(b=h.child;b;){if(b===i)return d(h),n;if(b===c)return d(h),a;b=b.sibling}throw Error(s(188))}if(i.return!==c.return)i=h,c=b;else{for(var $=!1,z=h.child;z;){if(z===i){$=!0,i=h,c=b;break}if(z===c){$=!0,c=h,i=b;break}z=z.sibling}if(!$){for(z=b.child;z;){if(z===i){$=!0,i=b,c=h;break}if(z===c){$=!0,c=b,i=h;break}z=z.sibling}if(!$)throw Error(s(189))}}if(i.alternate!==c)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?n:a}function m(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=m(n),a!==null)return a;n=n.sibling}return null}function y(n,a,i,c,h,b){for(;n!==null;){if((n.tag===5||n.tag===27||n.tag===6)&&i(n,c,h,b)||(n.tag!==22||n.memoizedState===null)&&(a||n.tag!==5&&n.tag!==27)&&y(n.child,a,i,c,h,b))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 v(n){var a=!1;for(n=n.return;n!==null&&(n.tag===4&&(a=!0),!(n.tag===3||n.tag===5||n.tag===27));)n=n.return;return a}function w(n){var a=[null,null],i=k(n);return i===null||S(a,n,i.child,{foundSelf:!1}),a}function S(n,a,i,c){for(;i!==null;){if(i===a)c.foundSelf=!0;else if(i.tag===5||i.tag===27||i.tag===6){if(c.foundSelf)return n[1]=i,!0;n[0]=i}else if((i.tag!==22||i.memoizedState===null)&&S(n,a,i.child,c))return!0;i=i.sibling}return!1}function E(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 R=null,C=null;function T(n,a,i){return n===i?!0:n===a?(R=n,!0):!1}function A(n,a,i){return n===i?(C=n,!1):n===a?(C!==null&&(R=n),!0):!1}function N(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,a,i){for(var c=0,h=n;h;h=i(h))c++;h=0;for(var b=a;b;b=i(b))h++;for(;0<c-h;)n=i(n),c--;for(;0<h-c;)a=i(a),h--;for(;c--;){if(n===a||a!==null&&n===a.alternate)return n;n=i(n),a=i(a)}return null}var D=Object.assign,j=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),B=Symbol.for("react.consumer"),U=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),K=Symbol.for("react.legacy_hidden"),ae=Symbol.for("react.memo_cache_sentinel"),I=Symbol.for("react.view_transition"),ee=Symbol.for("react.recoverable"),pe=Symbol.iterator;function ue(n){return n===null||typeof n!="object"?null:(n=pe&&n[pe]||n["@@iterator"],typeof n=="function"?n:null)}var ve=Symbol.for("react.client.reference");function xe(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 H:return"Fragment";case q:return"Profiler";case F:return"StrictMode";case P:return"Suspense";case G:return"SuspenseList";case Q:return"Activity";case I:return"ViewTransition"}if(typeof n=="object")switch(n.$$typeof){case M:return"Portal";case U:return n.displayName||"Context";case B:return(n._context.displayName||"Context")+".Consumer";case _:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case X:return a=n.displayName||null,a!==null?a:xe(n.type)||"Memo";case Z:a=n._payload,n=n._init;try{return xe(n(a))}catch{}}return null}var $e=Array.isArray,te=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Re={pending:!1,data:null,method:null,action:null},Ce=[],Te=-1;function Me(n){return{current:n}}function je(n){0>Te||(n.current=Ce[Te],Ce[Te]=null,Te--)}function He(n,a){Te++,Ce[Te]=n.current,n.current=a}var at=Me(null),pt=Me(null),et=Me(null),Ve=Me(null);function bt(n,a){switch(He(et,a),He(pt,n),He(at,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?Tw(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=Tw(a),n=Cw(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}je(at),He(at,n)}function Pe(){je(at),je(pt),je(et)}function rt(n){var a=n.memoizedState;a!==null&&(El._currentValue=a.memoizedState,He(Ve,n)),a=at.current;var i=Cw(a,n.type);a!==i&&(He(pt,n),He(at,i))}function lt(n){pt.current===n&&(je(at),je(pt)),Ve.current===n&&(je(Ve),El._currentValue=Re)}var st,ct;function we(n){if(st===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);st=a&&a[1]||"",ct=-1<i.stack.indexOf(`
|
|
3
|
-
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
-
`+st+n+ct}var Ge=!1;function Pt(n,a){if(!n||Ge)return"";Ge=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(Ae){var ne=Ae}Reflect.construct(n,[],be)}else{try{be.call()}catch(Ae){ne=Ae}be=!1;try{var le=Object.getOwnPropertyDescriptor(n.prototype,"props");Object.defineProperty(n.prototype,"props",{configurable:!0,set:function(){throw Error()}}),be=!0,new n}finally{be&&(le!==void 0?Object.defineProperty(n.prototype,"props",le):delete n.prototype.props)}}}else{try{throw Error()}catch(Ae){ne=Ae}(be=n())&&typeof be.catch=="function"&&be.catch(function(){})}}catch(Ae){if(Ae&&ne&&typeof Ae.stack=="string")return[Ae.stack,ne.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=c.DetermineComponentFrameRoot(),$=b[0],z=b[1];if($&&z){var V=$.split(`
|
|
5
|
-
`),se=z.split(`
|
|
6
|
-
`);for(h=c=0;c<V.length&&!V[c].includes("DetermineComponentFrameRoot");)c++;for(;h<se.length&&!se[h].includes("DetermineComponentFrameRoot");)h++;if(c===V.length||h===se.length)for(c=V.length-1,h=se.length-1;1<=c&&0<=h&&V[c]!==se[h];)h--;for(;1<=c&&0<=h;c--,h--)if(V[c]!==se[h]){if(c!==1||h!==1)do if(c--,h--,0>h||V[c]!==se[h]){var ce=`
|
|
7
|
-
`+V[c].replace(" at new "," at ");return n.displayName&&ce.includes("<anonymous>")&&(ce=ce.replace("<anonymous>",n.displayName)),ce}while(1<=c&&0<=h);break}}}finally{Ge=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?we(i):""}function bn(n,a){switch(n.tag){case 26:case 27:case 5:return we(n.type);case 16:return we("Lazy");case 13:return n.child!==a&&a!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return Pt(n.type,!1);case 11:return Pt(n.type.render,!1);case 1:return Pt(n.type,!0);case 31:return we("Activity");case 30:return we("ViewTransition");default:return""}}function gn(n){try{var a="",i=null;do a+=bn(n,i),i=n,n=n.return;while(n);return a}catch(c){return`
|
|
8
|
-
Error generating stack: `+c.message+`
|
|
9
|
-
`+c.stack}}var An=Object.prototype.hasOwnProperty,Vt=e.unstable_scheduleCallback,Yn=e.unstable_cancelCallback,Jt=e.unstable_shouldYield,kn=e.unstable_requestPaint,Ye=e.unstable_now,Le=e.unstable_getCurrentPriorityLevel,en=e.unstable_ImmediatePriority,un=e.unstable_UserBlockingPriority,an=e.unstable_NormalPriority,ur=e.unstable_LowPriority,Ja=e.unstable_IdlePriority,Tr=e.log,Br=e.unstable_setDisableYieldValue,Xn=null,Gt=null;function dr(n){if(typeof Tr=="function"&&Br(n),Gt&&typeof Gt.setStrictMode=="function")try{Gt.setStrictMode(Xn,n)}catch{}}var Mn=Math.clz32?Math.clz32:Y,Nn=Math.log,W=Math.LN2;function Y(n){return n>>>=0,n===0?32:31-(Nn(n)/W|0)|0}var oe=256,ge=262144,ke=4194304;function Ie(n){var a=n&42;if(a!==0)return a;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 De(n,a,i){var c=n.pendingLanes;if(c===0)return 0;var h=0,b=n.suspendedLanes,$=n.pingedLanes;n=n.warmLanes;var z=c&134217727;return z!==0?(c=z&~b,c!==0?h=Ie(c):($&=z,$!==0?h=Ie($):i||(i=z&~n,i!==0&&(h=Ie(i))))):(z=c&~b,z!==0?h=Ie(z):$!==0?h=Ie($):i||(i=c&~n,i!==0&&(h=Ie(i)))),h===0?0:a!==0&&a!==h&&(a&b)===0&&(b=h&-h,i=a&-a,b>=i||b===32&&(i&4194048)!==0)?a:h}function Se(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Ne(n,a){(a&8)!==0&&(a|=a&32);var i=n.entangledLanes;if(i!==0)for(n=n.entanglements,i&=a;0<i;){var c=31-Mn(i),h=1<<c;a|=n[c],i&=~h}return a}function Ke(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Be(){var n=ke;return ke<<=1,(ke&62914560)===0&&(ke=4194304),n}function Ze(n){for(var a=[],i=0;31>i;i++)a.push(n);return a}function Fe(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function St(n,a,i,c,h,b){var $=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var z=n.entanglements,V=n.expirationTimes,se=n.hiddenUpdates;for(i=$&~i;0<i;){var ce=31-Mn(i),be=1<<ce;z[ce]=0,V[ce]=-1;var ne=se[ce];if(ne!==null)for(se[ce]=null,ce=0;ce<ne.length;ce++){var le=ne[ce];le!==null&&(le.lane&=-536870913)}i&=~be}c!==0&&At(n,c,0),b!==0&&h===0&&n.tag!==0&&(n.suspendedLanes|=b&~($&~a))}function At(n,a,i){n.pendingLanes|=a,n.suspendedLanes&=~a;var c=31-Mn(a);n.entangledLanes|=a,n.entanglements[c]=n.entanglements[c]|1073741824|i&261930}function Ft(n,a){var i=n.entangledLanes|=a;for(n=n.entanglements;i;){var c=31-Mn(i),h=1<<c;h&a|n[c]&a&&(n[c]|=a),i&=~h}}function Ct(n,a){var i=a&-a;return i=(i&42)!==0?1:kt(i),(i&(n.suspendedLanes|a))!==0?0:i}function kt(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 mn(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function zn(){var n=he.p;return n!==0?n:(n=window.event,n===void 0?32:uS(n.type))}function Aa(n,a){var i=he.p;try{return he.p=n,a()}finally{he.p=i}}var vn=Math.random().toString(36).slice(2),Bt="__reactFiber$"+vn,Yt="__reactProps$"+vn,wn="__reactContainer$"+vn,Zn="__reactEvents$"+vn,Hr="__reactListeners$"+vn,Fr="__reactHandles$"+vn,ks="__reactResources$"+vn,Qn="__reactMarker$"+vn,ot="__reactLoad$"+vn;function sn(n){delete n[Bt],delete n[Yt],delete n[Hr],delete n[Fr]}function dn(n){var a;if(a=n[Bt])return a;for(var i=n.parentNode;i;){if(a=i[wn]||i[Bt]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(n=Uw(n);n!==null;){if(i=n[Bt])return i;n=Uw(n)}return a}n=i,i=n.parentNode}return null}function Ln(n){if(n=n[Bt]||n[wn]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function Ma(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(s(33))}function Ur(n){var a=n[ks];return a||(a=n[ks]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function tt(n){n[Qn]=!0}function sa(n){n[ot]=void 0}var Po=new Set,Bo={};function Na(n,a){vs(n,a),vs(n+"Capture",a)}function vs(n,a){for(Bo[n]=a,n=0;n<a.length;n++)Po.add(a[n])}var Lx=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]*$"),$c={},Nd={};function Dx(n){return An.call(Nd,n)?!0:An.call($c,n)?!1:Lx.test(n)?Nd[n]=!0:($c[n]=!0,!1)}var Et=!1;function Pi(){var n=Et;return Et=!1,n}function Bi(n,a,i){if(Dx(a))if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,i)}}function Ho(n,a,i){if(i===null)n.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,i)}}function Ee(n,a,i,c){if(c===null)n.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(a,i,c)}}function it(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function oa(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ia(n,a,i){var c=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var h=c.get,b=c.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return h.call(this)},set:function($){i=""+$,b.call(this,$)}}),Object.defineProperty(n,a,{enumerable:c.enumerable}),{getValue:function(){return i},setValue:function($){i=""+$},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function fr(n){if(!n._valueTracker){var a=oa(n)?"checked":"value";n._valueTracker=ia(n,a,""+n[a])}}function la(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var i=a.getValue(),c="";return n&&(c=oa(n)?n.checked?"true":"false":n.value),n=c,n!==i?(a.setValue(n),!0):!1}var Tc=/[\n"\\]/g;function hr(n){return n.replace(Tc,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Ox(n,a,i,c,h,b,$,z){n.name="",$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?n.type=$:n.removeAttribute("type"),a!=null?$==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+it(a)):n.value!==""+it(a)&&(n.value=""+it(a)):$!=="submit"&&$!=="reset"||n.removeAttribute("value"),a!=null?$==="number"&&n.value==a?Ix(n,it(n.value)):Ix(n,it(a)):i!=null?Ix(n,it(i)):c!=null&&n.removeAttribute("value"),h==null&&b!=null&&(n.defaultChecked=!!b),h!=null&&(n.checked=h&&typeof h!="function"&&typeof h!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?n.name=""+it(z):n.removeAttribute("name")}function xk(n,a,i,c,h,b,$,z){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(n.type=b),a!=null||i!=null){if(!(b!=="submit"&&b!=="reset"||a!=null)){fr(n);return}i=i!=null?""+it(i):"",a=a!=null?""+it(a):i,z||a===n.value||(n.value=a),n.defaultValue=a}c=c??h,c=typeof c!="function"&&typeof c!="symbol"&&!!c,n.checked=z?n.checked:!!c,n.defaultChecked=!!c,$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(n.name=$),fr(n)}function Ix(n,a){n.defaultValue!==""+a&&(n.defaultValue=""+a)}function Hi(n,a,i,c){if(n=n.options,a){a={};for(var h=0;h<i.length;h++)a["$"+i[h]]=!0;for(i=0;i<n.length;i++)h=a.hasOwnProperty("$"+n[i].value),n[i].selected!==h&&(n[i].selected=h),h&&c&&(n[i].defaultSelected=!0)}else{for(i=""+it(i),a=null,h=0;h<n.length;h++){if(n[h].value===i){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}a!==null||n[h].disabled||(a=n[h])}a!==null&&(a.selected=!0)}}function gk(n,a,i){if(a!=null&&(a=""+it(a),a!==n.value&&(n.value=a),i==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=i!=null?""+it(i):""}function mk(n,a,i,c){if(a==null){if(c!=null){if(i!=null)throw Error(s(92));if($e(c)){if(1<c.length)throw Error(s(93));c=c[0]}i=c}i==null&&(i=""),a=i}i=it(a),n.defaultValue=i,c=n.textContent,c===i&&c!==""&&c!==null&&(n.value=c),fr(n)}function Fi(n,a){if(a){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=a;return}}n.textContent=a}var VR=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 yk(n,a,i){var c=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":c?n.setProperty(a,i):typeof i!="number"||i===0||VR.has(a)?a==="float"?n.cssFloat=i:n[a]=(""+i).trim():n[a]=i+"px"}function bk(n,a,i){if(a!=null&&typeof a!="object")throw Error(s(62));if(n=n.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?n.setProperty(c,""):c==="float"?n.cssFloat="":n[c]="",Et=!0);for(var h in a)c=a[h],a.hasOwnProperty(h)&&i[h]!==c&&(yk(n,h,c),Et=!0)}else for(var b in a)a.hasOwnProperty(b)&&yk(n,b,a[b])}function _x(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 GR=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"]]),KR=/^[\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 zd(n){return KR.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function es(){}var qx=null;function Px(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ui=null,Vi=null;function kk(n){var a=Ln(n);if(a&&(n=a.stateNode)){var i=n[Yt]||null;e:switch(n=a.stateNode,a.type){case"input":if(Ox(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+hr(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var c=i[a];if(c!==n&&c.form===n.form){var h=c[Yt]||null;if(!h)throw Error(s(90));Ox(c,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(a=0;a<i.length;a++)c=i[a],c.form===n.form&&la(c)}break e;case"textarea":gk(n,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&Hi(n,!!i.multiple,a,!1)}}}var Bx=!1;function vk(n,a,i){if(Bx)return n(a,i);Bx=!0;try{var c=n(a);return c}finally{if(Bx=!1,(Ui!==null||Vi!==null)&&(Lf(),Ui&&(a=Ui,n=Vi,Vi=Ui=null,kk(a),n)))for(a=0;a<n.length;a++)kk(n[a])}}function Cc(n,a){var i=n.stateNode;if(i===null)return null;var c=i[Yt]||null;if(c===null)return null;i=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(s(231,a,typeof i));return i}var ws=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hx=!1;if(ws)try{var jc={};Object.defineProperty(jc,"passive",{get:function(){Hx=!0}}),window.addEventListener("test",jc,jc),window.removeEventListener("test",jc,jc)}catch{Hx=!1}var Ys=null,Fx=null,Ld=null;function wk(){if(Ld)return Ld;var n,a=Fx,i=a.length,c,h="value"in Ys?Ys.value:Ys.textContent,b=h.length;for(n=0;n<i&&a[n]===h[n];n++);var $=i-n;for(c=1;c<=$&&a[i-c]===h[b-c];c++);return Ld=h.slice(n,1<c?1-c:void 0)}function Dd(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Od(){return!0}function Sk(){return!1}function pr(n){function a(i,c,h,b,$){this._reactName=i,this._targetInst=h,this.type=c,this.nativeEvent=b,this.target=$,this.currentTarget=null;for(var z in n)n.hasOwnProperty(z)&&(i=n[z],this[z]=i?i(b):b[z]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Od:Sk,this.isPropagationStopped=Sk,this}return D(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Od)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Od)},persist:function(){},isPersistent:Od}),a}var Xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Id=pr(Xs),Rc=D({},Xs,{view:0,detail:0}),WR=pr(Rc),Ux,Vx,Ac,_d=D({},Rc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kx,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!==Ac&&(Ac&&n.type==="mousemove"?(Ux=n.screenX-Ac.screenX,Vx=n.screenY-Ac.screenY):Vx=Ux=0,Ac=n),Ux)},movementY:function(n){return"movementY"in n?n.movementY:Vx}}),Ek=pr(_d),YR=D({},_d,{dataTransfer:0}),XR=pr(YR),ZR=D({},Rc,{relatedTarget:0}),Gx=pr(ZR),QR=D({},Xs,{animationName:0,elapsedTime:0,pseudoElement:0}),JR=pr(QR),eA=D({},Xs,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),tA=pr(eA),nA=D({},Xs,{data:0}),$k=pr(nA),rA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aA={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"},sA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oA(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=sA[n])?!!a[n]:!1}function Kx(){return oA}var iA=D({},Rc,{key:function(n){if(n.key){var a=rA[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Dd(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?aA[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kx,charCode:function(n){return n.type==="keypress"?Dd(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Dd(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),lA=pr(iA),cA=D({},_d,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tk=pr(cA),uA=D({},Xs,{submitter:0}),dA=pr(uA),fA=D({},Rc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kx}),hA=pr(fA),pA=D({},Xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),xA=pr(pA),gA=D({},_d,{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}),mA=pr(gA),yA=D({},Xs,{newState:0,oldState:0,source:0}),bA=pr(yA),kA=[9,13,27,32],Wx=ws&&"CompositionEvent"in window,Mc=null;ws&&"documentMode"in document&&(Mc=document.documentMode);var vA=ws&&"TextEvent"in window&&!Mc,Ck=ws&&(!Wx||Mc&&8<Mc&&11>=Mc),jk=" ",Rk=!1;function Ak(n,a){switch(n){case"keyup":return kA.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mk(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Gi=!1;function wA(n,a){switch(n){case"compositionend":return Mk(a);case"keypress":return a.which!==32?null:(Rk=!0,jk);case"textInput":return n=a.data,n===jk&&Rk?null:n;default:return null}}function SA(n,a){if(Gi)return n==="compositionend"||!Wx&&Ak(n,a)?(n=wk(),Ld=Fx=Ys=null,Gi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Ck&&a.locale!=="ko"?null:a.data;default:return null}}var EA={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 Nk(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!EA[n.type]:a==="textarea"}function zk(n,a,i,c){Ui?Vi?Vi.push(c):Vi=[c]:Ui=c,a=Pf(a,"onChange"),0<a.length&&(i=new Id("onChange","change",null,i,c),n.push({event:i,listeners:a}))}var Nc=null,zc=null;function $A(n){kw(n,0)}function qd(n){var a=Ma(n);if(la(a))return n}function Lk(n,a){if(n==="change")return a}var Dk=!1;if(ws){var Yx;if(ws){var Xx="oninput"in document;if(!Xx){var Ok=document.createElement("div");Ok.setAttribute("oninput","return;"),Xx=typeof Ok.oninput=="function"}Yx=Xx}else Yx=!1;Dk=Yx&&(!document.documentMode||9<document.documentMode)}function Ik(){Nc&&(Nc.detachEvent("onpropertychange",_k),zc=Nc=null)}function _k(n){if(n.propertyName==="value"&&qd(zc)){var a=[];zk(a,zc,n,Px(n)),vk($A,a)}}function TA(n,a,i){n==="focusin"?(Ik(),Nc=a,zc=i,Nc.attachEvent("onpropertychange",_k)):n==="focusout"&&Ik()}function CA(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return qd(zc)}function jA(n,a){if(n==="click")return qd(a)}function RA(n,a){if(n==="input"||n==="change")return qd(a)}function AA(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Vr=typeof Object.is=="function"?Object.is:AA;function Lc(n,a){if(Vr(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var i=Object.keys(n),c=Object.keys(a);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var h=i[c];if(!An.call(a,h)||!Vr(n[h],a[h]))return!1}return!0}function Zx(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 qk(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Pk(n,a){var i=qk(n);n=0;for(var c;i;){if(i.nodeType===3){if(c=n+i.textContent.length,n<=a&&c>=a)return{node:i,offset:a-n};n=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=qk(i)}}function Bk(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Bk(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Hk(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Zx(n.document);a instanceof n.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)n=a.contentWindow;else break;a=Zx(n.document)}return a}function Qx(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var MA=ws&&"documentMode"in document&&11>=document.documentMode,Ki=null,Jx=null,Dc=null,eg=!1;function Fk(n,a,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;eg||Ki==null||Ki!==Zx(c)||(c=Ki,"selectionStart"in c&&Qx(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Dc&&Lc(Dc,c)||(Dc=c,c=Pf(Jx,"onSelect"),0<c.length&&(a=new Id("onSelect","select",null,a,i),n.push({event:a,listeners:c}),a.target=Ki)))}function Fo(n,a){var i={};return i[n.toLowerCase()]=a.toLowerCase(),i["Webkit"+n]="webkit"+a,i["Moz"+n]="moz"+a,i}var Wi={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionrun:Fo("Transition","TransitionRun"),transitionstart:Fo("Transition","TransitionStart"),transitioncancel:Fo("Transition","TransitionCancel"),transitionend:Fo("Transition","TransitionEnd")},tg={},Uk={};ws&&(Uk=document.createElement("div").style,"AnimationEvent"in window||(delete Wi.animationend.animation,delete Wi.animationiteration.animation,delete Wi.animationstart.animation),"TransitionEvent"in window||delete Wi.transitionend.transition);function Uo(n){if(tg[n])return tg[n];if(!Wi[n])return n;var a=Wi[n],i;for(i in a)if(a.hasOwnProperty(i)&&i in Uk)return tg[n]=a[i];return n}var Vk=Uo("animationend"),Gk=Uo("animationiteration"),Kk=Uo("animationstart"),NA=Uo("transitionrun"),zA=Uo("transitionstart"),LA=Uo("transitioncancel"),Wk=Uo("transitionend"),Yk=new Map,ng="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(" ");ng.push("scrollEnd");function za(n,a){Yk.set(n,a),Na(a,[n])}var DA=0;function Ss(n,a){if(n.name!=null&&n.name!=="auto")return n.name;if(a.autoName!==null)return a.autoName;n=Ia.identifierPrefix;var i=DA++;return n="_"+n+"t_"+i.toString(32)+"_",a.autoName=n}function Xk(n){if(n==null||typeof n=="string")return n;var a=null,i=pl;if(i!==null)for(var c=0;c<i.length;c++){var h=n[i[c]];if(h!=null){if(h==="none")return"none";a=a==null?h:a+(" "+h)}}return a??n.default}function Es(n,a){return n=Xk(n),a=Xk(a),a==null?n==="auto"?null:n:a==="auto"?null:a}var Pd=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},ca=[],Yi=0,rg=0;function Bd(){for(var n=Yi,a=rg=Yi=0;a<n;){var i=ca[a];ca[a++]=null;var c=ca[a];ca[a++]=null;var h=ca[a];ca[a++]=null;var b=ca[a];if(ca[a++]=null,c!==null&&h!==null){var $=c.pending;$===null?h.next=h:(h.next=$.next,$.next=h),c.pending=h}b!==0&&Zk(i,h,b)}}function Hd(n,a,i,c){ca[Yi++]=n,ca[Yi++]=a,ca[Yi++]=i,ca[Yi++]=c,rg|=c,n.lanes|=c,n=n.alternate,n!==null&&(n.lanes|=c)}function ag(n,a,i,c){return Hd(n,a,i,c),Fd(n)}function Vo(n,a){return Hd(n,null,null,a),Fd(n)}function Zk(n,a,i){n.lanes|=i;var c=n.alternate;c!==null&&(c.lanes|=i);for(var h=!1,b=n.return;b!==null;)b.childLanes|=i,c=b.alternate,c!==null&&(c.childLanes|=i),b.tag===22&&(n=b.stateNode,n===null||n._visibility&1||(h=!0)),n=b,b=b.return;return n.tag===3?(b=n.stateNode,h&&a!==null&&(h=31-Mn(i),n=b.hiddenUpdates,c=n[h],c===null?n[h]=[a]:c.push(a),a.lane=i|536870912),b):null}function Fd(n){if(50<ru)throw ru=0,zf=null,Error(s(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Xi={};function OA(n,a,i,c){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cr(n,a,i,c){return new OA(n,a,i,c)}function sg(n){return n=n.prototype,!(!n||!n.isReactComponent)}function $s(n,a){var i=n.alternate;return i===null?(i=Cr(n.tag,a,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=a,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&1206910976,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,a=n.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function Qk(n,a){n.flags&=1206910978;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,a=i.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function Ud(n,a,i,c,h,b){var $=0;if(c=n,typeof c=="function")sg(c)&&($=1);else if(typeof c=="string")$=uM(n,i,at.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(c){case Q:return n=Cr(31,i,a,h),n.elementType=Q,n.lanes=b,n;case H:return Go(i.children,h,b,a);case F:$=8,h|=24;break;case q:return n=Cr(12,i,a,h|2),n.elementType=q,n.lanes=b,n;case P:return n=Cr(13,i,a,h),n.elementType=P,n.lanes=b,n;case G:return n=Cr(19,i,a,h),n.elementType=G,n.lanes=b,n;case K:case I:return n=h|32,n=Cr(30,i,a,n),n.elementType=I,n.lanes=b,n.stateNode={autoName:null,paired:null,clones:null,ref:null},n;default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case U:$=10;break e;case B:$=9;break e;case _:$=11;break e;case X:$=14;break e;case Z:$=16,c=null;break e}$=29,i=Error(s(130,n===null?"null":typeof n,"")),c=null}return a=Cr($,i,a,h),a.elementType=n,a.type=c,a.lanes=b,a}function Go(n,a,i,c){return n=Cr(7,n,c,a),n.lanes=i,n}function og(n,a,i){return n=Cr(6,n,null,a),n.lanes=i,n}function Jk(n){var a=Cr(18,null,null,0);return a.stateNode=n,a}function ig(n,a,i){return a=Cr(4,n.children!==null?n.children:[],n.key,a),a.lanes=i,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var ev=new WeakMap;function ua(n,a){if(typeof n=="object"&&n!==null){var i=ev.get(n);return i!==void 0?i:(a={value:n,source:a,stack:gn(a)},ev.set(n,a),a)}return{value:n,source:a,stack:gn(a)}}var Zi=[],Qi=0,Vd=null,Oc=0,da=[],fa=0,Zs=null,ts=1,ns="";function Ts(n,a){Zi[Qi++]=Oc,Zi[Qi++]=Vd,Vd=n,Oc=a}function tv(n,a,i){da[fa++]=ts,da[fa++]=ns,da[fa++]=Zs,Zs=n;var c=ts;n=ns;var h=32-Mn(c)-1;c&=~(1<<h),i+=1;var b=32-Mn(a)+h;if(30<b){var $=h-h%5;b=(c&(1<<$)-1).toString(32),c>>=$,h-=$,ts=1<<32-Mn(a)+h|i<<h|c,ns=b+n}else ts=1<<b|i<<h|c,ns=n}function Gd(n){n.return!==null&&(Ts(n,1),tv(n,1,0))}function lg(n){for(;n===Vd;)Vd=Zi[--Qi],Zi[Qi]=null,Oc=Zi[--Qi],Zi[Qi]=null;for(;n===Zs;)Zs=da[--fa],da[fa]=null,ns=da[--fa],da[fa]=null,ts=da[--fa],da[fa]=null}function nv(n,a){da[fa++]=ts,da[fa++]=ns,da[fa++]=Zs,ts=a.id,ns=a.overflow,Zs=n}var Fn=null,Kt=null,xt=!1,Qs=null,ha=!1,cg=Error(s(519));function Js(n){var a=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ic(ua(a,n)),cg}function rv(n){var a=n.stateNode,i=n.type,c=n.memoizedProps;switch(a[Bt]=n,a[Yt]=c,i){case"dialog":mt("cancel",a),mt("close",a);break;case"iframe":case"object":case"embed":mt("load",a);break;case"video":case"audio":for(i=0;i<su.length;i++)mt(su[i],a);break;case"source":mt("error",a);break;case"img":case"image":case"link":mt("error",a),mt("load",a);break;case"details":mt("toggle",a);break;case"input":mt("invalid",a),xk(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":mt("invalid",a);break;case"textarea":mt("invalid",a),mk(a,c.value,c.defaultValue,c.children)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||c.suppressHydrationWarning===!0||Ew(a.textContent,i)?(c.popover!=null&&(mt("beforetoggle",a),mt("toggle",a)),c.onScroll!=null&&mt("scroll",a),c.onScrollEnd!=null&&mt("scrollend",a),c.onClick!=null&&(a.onclick=es),a=!0):a=!1,a||Js(n,!0)}function Kd(n){for(Fn=n.return;Fn;)switch(Fn.tag){case 5:case 31:case 13:ha=!1;return;case 27:case 3:ha=!0;return;default:Fn=Fn.return}}function Ji(n){if(n!==Fn)return!1;if(!xt)return Kd(n),xt=!0,!1;var a=n.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||qm(n.type,n.memoizedProps)),i=!i),i&&Kt&&Js(n),Kd(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Kt=Fw(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));Kt=Fw(n)}else a===27?(a=Kt,go(n.type)?(n=Wm,Wm=null,Kt=n):Kt=a):Kt=Fn?xa(n.stateNode.nextSibling):null;return!0}function Ko(){Kt=Fn=null,xt=!1}function ug(){var n=Qs;return n!==null&&(Ar===null?Ar=n:Ar.push.apply(Ar,n),Qs=null),n}function Ic(n){Qs===null?Qs=[n]:Qs.push(n)}var dg=Me(null),Wo=null,Cs=null;function eo(n,a,i){He(dg,a._currentValue),a._currentValue=i}function js(n){n._currentValue=dg.current,je(dg)}function Wd(n,a,i){for(;n!==null;){var c=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),n===i)break;n=n.return}}function fg(n,a,i,c){var h=n.child;for(h!==null&&(h.return=n);h!==null;){var b=h.dependencies;if(b!==null){var $=h.child;b=b.firstContext;e:for(;b!==null;){var z=b;b=h;for(var V=0;V<a.length;V++)if(z.context===a[V]){b.lanes|=i,z=b.alternate,z!==null&&(z.lanes|=i),Wd(b.return,i,n),c||($=null);break e}b=z.next}}else if(h.tag===18){if($=h.return,$===null)throw Error(s(341));$.lanes|=i,b=$.alternate,b!==null&&(b.lanes|=i),Wd($,i,n),$=null}else h.tag===13&&h.memoizedState!==null&&h.memoizedState.dehydrated===null?(h.lanes|=i,$=h.alternate,$!==null&&($.lanes|=i),Wd(h.return,i,n),$=h.child,$=$!==null?$.sibling:null):$=h.child;if($!==null)$.return=h;else for($=h;$!==null;){if($===n){$=null;break}if(h=$.sibling,h!==null){h.return=$.return,$=h;break}$=$.return}h=$}}function Yo(n,a,i,c){n=null;for(var h=a,b=!1;h!==null;){if(!b){if((h.flags&524288)!==0)b=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var $=h.alternate;if($===null)throw Error(s(387));if($=$.memoizedProps,$!==null){var z=h.type;Vr(h.pendingProps.value,$.value)||(n!==null?n.push(z):n=[z])}}else if(h===Ve.current){if($=h.alternate,$===null)throw Error(s(387));$.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(n!==null?n.push(El):n=[El])}h=h.return}return n!==null&&fg(a,n,i,c),a.flags|=262144,n!==null}function Yd(n){for(n=n.firstContext;n!==null;){if(!Vr(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Xo(n){Wo=n,Cs=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Jn(n){return av(Wo,n)}function Xd(n,a){return Wo===null&&Xo(n),av(n,a)}function av(n,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Cs===null){if(n===null)throw Error(s(308));Cs=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Cs=Cs.next=a;return i}var IA=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(i,c){n.push(c)}};this.abort=function(){a.aborted=!0,n.forEach(function(i){return i()})}},_A=e.unstable_scheduleCallback,qA=e.unstable_NormalPriority,Sn={$$typeof:U,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hg(){return{controller:new IA,data:new Map,refCount:0}}function _c(n){n.refCount--,n.refCount===0&&_A(qA,function(){n.controller.abort()})}function sv(n,a){if((n.pendingLanes&4194048)!==0){var i=n.transitionTypes;for(i===null&&(i=n.transitionTypes=[]),n=0;n<a.length;n++){var c=a[n];i.indexOf(c)===-1&&i.push(c)}}}var qc=null;function PA(n){var a=n.transitionTypes;return n.transitionTypes=null,a}var Pc=null,pg=0,Zo=0,el=null;function BA(n,a){if(Pc===null){var i=Pc=[];pg=0,Zo=Am(),el={status:"pending",value:void 0,then:function(c){i.push(c)}}}return pg++,a.then(ov,ov),a}function ov(){if(--pg===0&&(qc=null,Pc!==null)){el!==null&&(el.status="fulfilled");var n=Pc;Pc=null,Zo=0,el=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function HA(n,a){var i=[],c={status:"pending",value:null,reason:null,then:function(h){i.push(h)}};return n.then(function(){c.status="fulfilled",c.value=a;for(var h=0;h<i.length;h++)(0,i[h])(a)},function(h){for(c.status="rejected",c.reason=h,h=0;h<i.length;h++)(0,i[h])(void 0)}),c}var iv=te.S;te.S=function(n,a){if(J2=Ye(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&BA(n,a),qc!==null)for(var i=yl;i!==null;)sv(i,qc),i=i.next;if(i=n.types,i!==null){for(var c=yl;c!==null;)sv(c,i),c=c.next;if(Zo!==0){c=qc,c===null&&(c=qc=[]);for(var h=0;h<i.length;h++){var b=i[h];c.indexOf(b)===-1&&c.push(b)}}}iv!==null&&iv(n,a)};var Qo=Me(null);function xg(){var n=Qo.current;return n!==null?n:Ut.pooledCache}function Zd(n,a){a===null?He(Qo,Qo.current):He(Qo,a.pool)}function lv(){var n=xg();return n===null?null:{parent:Sn._currentValue,pool:n}}var tl=Error(s(460)),gg=Error(s(474)),Qd=Error(s(542)),Jd={then:function(){}};function cv(n){return n=n.status,n==="fulfilled"||n==="rejected"}function uv(n,a,i){switch(i=n[i],i===void 0?n.push(a):i!==a&&(a.then(es,es),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,fv(n),n===void 0&&!("reason"in a)?Error(s(600)):n;default:if(typeof a.status=="string")a.then(es,es);else{if(n=Ut,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=a,n.status="pending",n.then(function(c){if(a.status==="pending"){var h=a;h.status="fulfilled",h.value=c}},function(c){if(a.status==="pending"){var h=a;h.status="rejected",h.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,fv(n),n}throw ei=a,tl}}function Jo(n){try{var a=n._init;return a(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ei=i,tl):i}}var ei=null;function dv(){if(ei===null)throw Error(s(459));var n=ei;return ei=null,n}function fv(n){if(n===tl||n===Qd)throw Error(s(483))}var nl=null,Bc=0;function ef(n){var a=Bc;return Bc+=1,nl===null&&(nl=[]),uv(nl,n,a)}function to(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function tf(n,a){throw a.$$typeof===j?Error(s(525)):(n=Object.prototype.toString.call(a),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function hv(n){function a(re,J){if(n){var ie=re.deletions;ie===null?(re.deletions=[J],re.flags|=16):ie.push(J)}}function i(re,J){if(!n)return null;for(;J!==null;)a(re,J),J=J.sibling;return null}function c(re){for(var J=new Map;re!==null;)re.key===null?J.set(re.index,re):J.set(re.key,re),re=re.sibling;return J}function h(re,J){return re=$s(re,J),re.index=0,re.sibling=null,re}function b(re,J,ie){return re.index=ie,n?(ie=re.alternate,ie!==null?(ie=ie.index,ie<J?(re.flags|=2,J):ie):(re.flags|=134217730,J)):(re.flags|=1048576,J)}function $(re){return n&&re.alternate===null&&(re.flags|=134217730),re}function z(re,J,ie,me){return J===null||J.tag!==6?(J=og(ie,re.mode,me),J.return=re,J):(J=h(J,ie),J.return=re,J)}function V(re,J,ie,me){var Oe=ie.type;return Oe===H?(re=ce(re,J,ie.props.children,me,ie.key),to(re,ie),re):J!==null&&(J.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===Z&&Jo(Oe)===J.type)?(J=h(J,ie.props),to(J,ie),J.return=re,J):(J=Ud(ie.type,ie.key,ie.props,null,re.mode,me),to(J,ie),J.return=re,J)}function se(re,J,ie,me){return J===null||J.tag!==4||J.stateNode.containerInfo!==ie.containerInfo||J.stateNode.implementation!==ie.implementation?(J=ig(ie,re.mode,me),J.return=re,J):(J=h(J,ie.children||[]),J.return=re,J)}function ce(re,J,ie,me,Oe){return J===null||J.tag!==7?(J=Go(ie,re.mode,me,Oe),J.return=re,J):(J=h(J,ie),J.return=re,J)}function be(re,J,ie){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=og(""+J,re.mode,ie),J.return=re,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case O:return ie=Ud(J.type,J.key,J.props,null,re.mode,ie),to(ie,J),ie.return=re,ie;case M:return J=ig(J,re.mode,ie),J.return=re,J;case Z:return J=Jo(J),be(re,J,ie)}if($e(J)||ue(J))return J=Go(J,re.mode,ie,null),J.return=re,J;if(typeof J.then=="function")return be(re,ef(J),ie);if(J.$$typeof===U)return be(re,Xd(re,J),ie);tf(re,J)}return null}function ne(re,J,ie,me){var Oe=J!==null?J.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return Oe!==null?null:z(re,J,""+ie,me);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case O:return ie.key===Oe?V(re,J,ie,me):null;case M:return ie.key===Oe?se(re,J,ie,me):null;case Z:return ie=Jo(ie),ne(re,J,ie,me)}if($e(ie)||ue(ie))return Oe!==null?null:ce(re,J,ie,me,null);if(typeof ie.then=="function")return ne(re,J,ef(ie),me);if(ie.$$typeof===U)return ne(re,J,Xd(re,ie),me);tf(re,ie)}return null}function le(re,J,ie,me,Oe){if(typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint")return re=re.get(ie)||null,z(J,re,""+me,Oe);if(typeof me=="object"&&me!==null){switch(me.$$typeof){case O:return re=re.get(me.key===null?ie:me.key)||null,V(J,re,me,Oe);case M:return re=re.get(me.key===null?ie:me.key)||null,se(J,re,me,Oe);case Z:return me=Jo(me),le(re,J,ie,me,Oe)}if($e(me)||ue(me))return re=re.get(ie)||null,ce(J,re,me,Oe,null);if(typeof me.then=="function")return le(re,J,ie,ef(me),Oe);if(me.$$typeof===U)return le(re,J,ie,Xd(J,me),Oe);tf(J,me)}return null}function Ae(re,J,ie,me){for(var Oe=null,wt=null,Ue=J,Xe=J=0,Tn=null;Ue!==null&&Xe<ie.length;Xe++){Ue.index>Xe?(Tn=Ue,Ue=null):Tn=Ue.sibling;var jt=ne(re,Ue,ie[Xe],me);if(jt===null){Ue===null&&(Ue=Tn);break}n&&Ue&&jt.alternate===null&&a(re,Ue),J=b(jt,J,Xe),wt===null?Oe=jt:wt.sibling=jt,wt=jt,Ue=Tn}if(Xe===ie.length)return i(re,Ue),xt&&Ts(re,Xe),Oe;if(Ue===null){for(;Xe<ie.length;Xe++)Ue=be(re,ie[Xe],me),Ue!==null&&(J=b(Ue,J,Xe),wt===null?Oe=Ue:wt.sibling=Ue,wt=Ue);return xt&&Ts(re,Xe),Oe}for(Ue=c(Ue);Xe<ie.length;Xe++)Tn=le(Ue,re,Xe,ie[Xe],me),Tn!==null&&(n&&(jt=Tn.alternate,jt!==null&&Ue.delete(jt.key===null?Xe:jt.key)),J=b(Tn,J,Xe),wt===null?Oe=Tn:wt.sibling=Tn,wt=Tn);return n&&Ue.forEach(function(vo){return a(re,vo)}),xt&&Ts(re,Xe),Oe}function _e(re,J,ie,me){if(ie==null)throw Error(s(151));for(var Oe=null,wt=null,Ue=J,Xe=J=0,Tn=null,jt=ie.next();Ue!==null&&!jt.done;Xe++,jt=ie.next()){Ue.index>Xe?(Tn=Ue,Ue=null):Tn=Ue.sibling;var vo=ne(re,Ue,jt.value,me);if(vo===null){Ue===null&&(Ue=Tn);break}n&&Ue&&vo.alternate===null&&a(re,Ue),J=b(vo,J,Xe),wt===null?Oe=vo:wt.sibling=vo,wt=vo,Ue=Tn}if(jt.done)return i(re,Ue),xt&&Ts(re,Xe),Oe;if(Ue===null){for(;!jt.done;Xe++,jt=ie.next())jt=be(re,jt.value,me),jt!==null&&(J=b(jt,J,Xe),wt===null?Oe=jt:wt.sibling=jt,wt=jt);return xt&&Ts(re,Xe),Oe}for(Ue=c(Ue);!jt.done;Xe++,jt=ie.next())jt=le(Ue,re,Xe,jt.value,me),jt!==null&&(n&&(Tn=jt.alternate,Tn!==null&&Ue.delete(Tn.key===null?Xe:Tn.key)),J=b(jt,J,Xe),wt===null?Oe=jt:wt.sibling=jt,wt=jt);return n&&Ue.forEach(function(wM){return a(re,wM)}),xt&&Ts(re,Xe),Oe}function dt(re,J,ie,me){if(typeof ie=="object"&&ie!==null&&ie.type===H&&ie.key===null&&ie.props.ref===void 0&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case O:e:{for(var Oe=ie.key;J!==null;){if(J.key===Oe){if(Oe=ie.type,Oe===H){if(J.tag===7){i(re,J.sibling),me=h(J,ie.props.children),to(me,ie),me.return=re,re=me;break e}}else if(J.elementType===Oe||typeof Oe=="object"&&Oe!==null&&Oe.$$typeof===Z&&Jo(Oe)===J.type){i(re,J.sibling),me=h(J,ie.props),to(me,ie),me.return=re,re=me;break e}i(re,J);break}else a(re,J);J=J.sibling}ie.type===H?(me=Go(ie.props.children,re.mode,me,ie.key),to(me,ie),me.return=re,re=me):(me=Ud(ie.type,ie.key,ie.props,null,re.mode,me),to(me,ie),me.return=re,re=me)}return $(re);case M:e:{for(Oe=ie.key;J!==null;){if(J.key===Oe)if(J.tag===4&&J.stateNode.containerInfo===ie.containerInfo&&J.stateNode.implementation===ie.implementation){i(re,J.sibling),me=h(J,ie.children||[]),me.return=re,re=me;break e}else{i(re,J);break}else a(re,J);J=J.sibling}me=ig(ie,re.mode,me),me.return=re,re=me}return $(re);case Z:return ie=Jo(ie),dt(re,J,ie,me)}if($e(ie))return Ae(re,J,ie,me);if(ue(ie)){if(Oe=ue(ie),typeof Oe!="function")throw Error(s(150));return ie=Oe.call(ie),_e(re,J,ie,me)}if(typeof ie.then=="function")return dt(re,J,ef(ie),me);if(ie.$$typeof===U)return dt(re,J,Xd(re,ie),me);tf(re,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,J!==null&&J.tag===6?(i(re,J.sibling),me=h(J,ie),me.return=re,re=me):(i(re,J),me=og(ie,re.mode,me),me.return=re,re=me),$(re)):i(re,J)}return function(re,J,ie,me){try{Bc=0;var Oe=dt(re,J,ie,me);return nl=null,Oe}catch(Ue){if(Ue===tl||Ue===Qd)throw Ue;var wt=Cr(29,Ue,null,re.mode);return wt.lanes=me,wt.return=re,wt}}}var ti=hv(!0),pv=hv(!1),no=!1;function mg(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yg(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ro(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ao(n,a,i){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Mt&2)!==0){var h=c.pending;return h===null?a.next=a:(a.next=h.next,h.next=a),c.pending=a,a=Fd(n),Zk(n,null,i),a}return Hd(n,c,a,i),Fd(n)}function Hc(n,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var c=a.lanes;c&=n.pendingLanes,i|=c,a.lanes=i,Ft(n,i)}}function bg(n,a){var i=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var h=null,b=null;if(i=i.firstBaseUpdate,i!==null){do{var $={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};b===null?h=b=$:b=b.next=$,i=i.next}while(i!==null);b===null?h=b=a:b=b.next=a}else h=b=a;i={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:b,shared:c.shared,callbacks:c.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=a:n.next=a,i.lastBaseUpdate=a}var kg=!1;function Fc(){if(kg){var n=el;if(n!==null)throw n}}function Uc(n,a,i,c){kg=!1;var h=n.updateQueue;no=!1;var b=h.firstBaseUpdate,$=h.lastBaseUpdate,z=h.shared.pending;if(z!==null){h.shared.pending=null;var V=z,se=V.next;V.next=null,$===null?b=se:$.next=se,$=V;var ce=n.alternate;ce!==null&&(ce=ce.updateQueue,z=ce.lastBaseUpdate,z!==$&&(z===null?ce.firstBaseUpdate=se:z.next=se,ce.lastBaseUpdate=V))}if(b!==null){var be=h.baseState;$=0,ce=se=V=null,z=b;do{var ne=z.lane&-536870913,le=ne!==z.lane;if(le?(vt&ne)===ne:(c&ne)===ne){ne!==0&&ne===Zo&&(kg=!0),ce!==null&&(ce=ce.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var Ae=n,_e=z;ne=a;var dt=i;switch(_e.tag){case 1:if(Ae=_e.payload,typeof Ae=="function"){be=Ae.call(dt,be,ne);break e}be=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=_e.payload,ne=typeof Ae=="function"?Ae.call(dt,be,ne):Ae,ne==null)break e;be=D({},be,ne);break e;case 2:no=!0}}ne=z.callback,ne!==null&&(n.flags|=64,le&&(n.flags|=8192),le=h.callbacks,le===null?h.callbacks=[ne]:le.push(ne))}else le={lane:ne,tag:z.tag,payload:z.payload,callback:z.callback,next:null},ce===null?(se=ce=le,V=be):ce=ce.next=le,$|=ne;if(z=z.next,z===null){if(z=h.shared.pending,z===null)break;le=z,z=le.next,le.next=null,h.lastBaseUpdate=le,h.shared.pending=null}}while(!0);ce===null&&(V=be),h.baseState=V,h.firstBaseUpdate=se,h.lastBaseUpdate=ce,b===null&&(h.shared.lanes=0),fo|=$,n.lanes=$,n.memoizedState=be}}function xv(n,a){if(typeof n!="function")throw Error(s(191,n));n.call(a)}function gv(n,a){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)xv(i[n],a)}var so=Me(null),nf=Me(0);function mv(n,a){n=zs,He(nf,n),He(so,a),zs=n|a.baseLanes}function vg(){He(nf,zs),He(so,so.current)}function wg(){zs=nf.current,je(so),je(nf)}var er=Me(null),ir=null;function oo(n){var a=n.alternate;He(tr,tr.current&1),He(er,n),ir===null&&(a===null||so.current!==null||a.memoizedState!==null)&&(ir=n)}function Sg(n){He(tr,tr.current),He(er,n),ir===null&&(ir=n)}function yv(n){n.tag===22?(He(tr,tr.current),He(er,n),ir===null&&(ir=n)):io()}function io(){He(tr,tr.current),He(er,er.current)}function Gr(n){je(er),ir===n&&(ir=null),je(tr)}var tr=Me(0);function Vc(n,a){He(er,er.current),He(tr,a)}function Eg(n){je(tr),je(er),ir===n&&(ir=null)}function rf(n){for(var a=n;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Gm(i)||Km(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!=="independent"){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Rs=0,ut=null,Ht=null,En=null,af=!1,rl=!1,ni=!1,sf=0,Gc=0,al=null,FA=0;function fn(){throw Error(s(321))}function $g(n,a){if(a===null)return!1;for(var i=0;i<a.length&&i<n.length;i++)if(!Vr(n[i],a[i]))return!1;return!0}function Tg(n,a,i,c,h,b){return Rs=b,ut=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,te.H=n===null||n.memoizedState===null?t2:n2,ni=!1,b=i(c,h),ni=!1,rl&&(b=kv(a,i,c,h)),bv(n),b}function bv(n){te.H=hf;var a=Ht!==null&&Ht.next!==null;if(Rs=0,En=Ht=ut=null,af=!1,Gc=0,al=null,a)throw Error(s(300));n===null||$n||(n=n.dependencies,n!==null&&Yd(n)&&($n=!0))}function kv(n,a,i,c){ut=n;var h=0;do{if(rl&&(al=null),Gc=0,rl=!1,25<=h)throw Error(s(301));if(h+=1,En=Ht=null,n.updateQueue!=null){var b=n.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}te.H=ZA,b=a(i,c)}while(rl);return b}function UA(){var n=te.H,a=n.useState()[0];return a=typeof a.then=="function"?Kc(a):a,n=n.useState()[0],(Ht!==null?Ht.memoizedState:null)!==n&&(ut.flags|=1024),a}function Cg(){var n=sf!==0;return sf=0,n}function jg(n,a,i){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~i}function Rg(n){if(af){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}af=!1}Rs=0,En=Ht=ut=null,rl=!1,Gc=sf=0,al=null}function xr(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return En===null?ut.memoizedState=En=n:En=En.next=n,En}function yn(){if(Ht===null){var n=ut.alternate;n=n!==null?n.memoizedState:null}else n=Ht.next;var a=En===null?ut.memoizedState:En.next;if(a!==null)En=a,Ht=n;else{if(n===null)throw ut.alternate===null?Error(s(467)):Error(s(310));Ht=n,n={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},En===null?ut.memoizedState=En=n:En=En.next=n}return En}function of(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kc(n){var a=Gc;return Gc+=1,al===null&&(al=[]),n=uv(al,n,a),a=ut,(En===null?a.memoizedState:En.next)===null&&(a=a.alternate,te.H=a===null||a.memoizedState===null?t2:n2),n}function lf(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return Kc(n);if(n.$$typeof===ee)return;if(n.$$typeof===U)return Jn(n)}throw Error(s(438,String(n)))}function Ag(n){var a=null,i=ut.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var c=ut.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(h){return h.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=of(),ut.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(n),c=0;c<n;c++)i[c]=ae;return a.index++,i}function As(n,a){return typeof a=="function"?a(n):a}function cf(n){var a=yn();return Mg(a,Ht,n)}function Mg(n,a,i){var c=n.queue;if(c===null)throw Error(s(311));c.lastRenderedReducer=i;var h=n.baseQueue,b=c.pending;if(b!==null){if(h!==null){var $=h.next;h.next=b.next,b.next=$}a.baseQueue=h=b,c.pending=null}if(b=n.baseState,h===null)n.memoizedState=b;else{a=h.next;var z=$=null,V=null,se=a,ce=!1;do{var be=se.lane&-536870913;if(be!==se.lane?(vt&be)===be:(Rs&be)===be){var ne=se.revertLane;if(ne===0)V!==null&&(V=V.next={lane:0,revertLane:0,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),be===Zo&&(ce=!0);else if((Rs&ne)===ne){se=se.next,ne===Zo&&(ce=!0);continue}else be={lane:0,revertLane:se.revertLane,gesture:null,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},V===null?(z=V=be,$=b):V=V.next=be,ut.lanes|=ne,fo|=ne;be=se.action,ni&&i(b,be),b=se.hasEagerState?se.eagerState:i(b,be)}else ne={lane:be,revertLane:se.revertLane,gesture:se.gesture,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null},V===null?(z=V=ne,$=b):V=V.next=ne,ut.lanes|=be,fo|=be;se=se.next}while(se!==null&&se!==a);if(V===null?$=b:V.next=z,!Vr(b,n.memoizedState)&&($n=!0,ce&&(i=el,i!==null)))throw i;n.memoizedState=b,n.baseState=$,n.baseQueue=V,c.lastRenderedState=b}return h===null&&(c.lanes=0),[n.memoizedState,c.dispatch]}function Ng(n){var a=yn(),i=a.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var c=i.dispatch,h=i.pending,b=a.memoizedState;if(h!==null){i.pending=null;var $=h=h.next;do b=n(b,$.action),$=$.next;while($!==h);Vr(b,a.memoizedState)||($n=!0),a.memoizedState=b,a.baseQueue===null&&(a.baseState=b),i.lastRenderedState=b}return[b,c]}function vv(n,a,i){var c=ut,h=yn(),b=xt;if(b){if(i===void 0)throw Error(s(407));i=i()}else i=a();var $=!Vr((Ht||h).memoizedState,i);if($&&(h.memoizedState=i,$n=!0),h=h.queue,Dg(Ev.bind(null,c,h,n),[n]),n=h.getSnapshot!==a||$||En!==null&&(En.memoizedState.tag&1)!==0,sl(n?9:8,{destroy:void 0},Sv.bind(null,c,h,i,a),null),n){if(c.flags|=2048,Ut===null)throw Error(s(349));b||(Rs&127)!==0||wv(c,a,i)}return i}function wv(n,a,i){n.flags|=16384,n={getSnapshot:a,value:i},a=ut.updateQueue,a===null?(a=of(),ut.updateQueue=a,a.stores=[n]):(i=a.stores,i===null?a.stores=[n]:i.push(n))}function Sv(n,a,i,c){a.value=i,a.getSnapshot=c,$v(a)&&Tv(n)}function Ev(n,a,i){return i(function(){$v(a)&&Tv(n)})}function $v(n){var a=n.getSnapshot;n=n.value;try{var i=a();return!Vr(n,i)}catch{return!0}}function Tv(n){var a=Vo(n,2);a!==null&&Mr(a,n,2)}function zg(n){var a=xr();if(typeof n=="function"){var i=n;if(n=i(),ni){dr(!0);try{i()}finally{dr(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:n},a}function Cv(n,a,i,c){return n.baseState=i,Mg(n,Ht,typeof c=="function"?c:As)}function VA(n,a,i,c,h){if(ff(n))throw Error(s(485));if(n=a.action,n!==null){var b={payload:h,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function($){b.listeners.push($)}};te.T!==null?i(!0):b.isTransition=!1,c(b),i=a.pending,i===null?(b.next=a.pending=b,jv(a,b)):(b.next=i.next,a.pending=i.next=b)}}function jv(n,a){var i=a.action,c=a.payload,h=n.state;if(a.isTransition){var b=te.T,$={};$.types=b!==null?b.types:null,te.T=$;try{var z=i(h,c),V=te.S;V!==null&&V($,z),Rv(n,a,z)}catch(se){Lg(n,a,se)}finally{b!==null&&$.types!==null&&(b.types=$.types),te.T=b}}else try{b=i(h,c),Rv(n,a,b)}catch(se){Lg(n,a,se)}}function Rv(n,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){Av(n,a,c)},function(c){return Lg(n,a,c)}):Av(n,a,i)}function Av(n,a,i){a.status="fulfilled",a.value=i,Mv(a),n.state=i,a=n.pending,a!==null&&(i=a.next,i===a?n.pending=null:(i=i.next,a.next=i,jv(n,i)))}function Lg(n,a,i){var c=n.pending;if(n.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=i,Mv(a),a=a.next;while(a!==c)}n.action=null}function Mv(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function Nv(n,a){return a}function zv(n,a){if(xt){var i=Ut.formState;if(i!==null){e:{var c=ut;if(xt){if(Kt){t:{for(var h=Kt,b=ha;h.nodeType!==8;){if(!b){h=null;break t}if(h=xa(h.nextSibling),h===null){h=null;break t}}b=h.data,h=b==="F!"||b==="F"?h:null}if(h){Kt=xa(h.nextSibling),c=h.data==="F!";break e}}Js(c)}c=!1}c&&(a=i[0])}}return i=xr(),i.memoizedState=i.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nv,lastRenderedState:a},i.queue=c,i=Qv.bind(null,ut,c),c.dispatch=i,c=zg(!1),b=Pg.bind(null,ut,!1,c.queue),c=xr(),h={state:a,dispatch:null,action:n,pending:null},c.queue=h,i=VA.bind(null,ut,h,b,i),h.dispatch=i,c.memoizedState=n,[a,i,!1]}function Lv(n){var a=yn();return Dv(a,Ht,n)}function Dv(n,a,i){if(a=Mg(n,a,Nv)[0],n=cf(As)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Kc(a)}catch($){throw $===tl?Qd:$}else c=a;a=yn();var h=a.queue,b=h.dispatch;return i!==a.memoizedState&&(ut.flags|=2048,sl(9,{destroy:void 0},GA.bind(null,h,i),null)),[c,b,n]}function GA(n,a){n.action=a}function Ov(n){var a=yn(),i=Ht;if(i!==null)return Dv(a,i,n);yn(),a=a.memoizedState,i=yn();var c=i.queue.dispatch;return i.memoizedState=n,[a,c,!1]}function sl(n,a,i,c){return n={tag:n,create:i,deps:c,inst:a,next:null},a=ut.updateQueue,a===null&&(a=of(),ut.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=n.next=n:(c=i.next,i.next=n,n.next=c,a.lastEffect=n),n}function Iv(){return yn().memoizedState}function uf(n,a,i,c){var h=xr();ut.flags|=n,h.memoizedState=sl(1|a,{destroy:void 0},i,c===void 0?null:c)}function df(n,a,i,c){var h=yn();c=c===void 0?null:c;var b=h.memoizedState.inst;Ht!==null&&c!==null&&$g(c,Ht.memoizedState.deps)?h.memoizedState=sl(a,b,i,c):(ut.flags|=n,h.memoizedState=sl(1|a,b,i,c))}function _v(n,a){uf(8390656,8,n,a)}function Dg(n,a){df(2048,8,n,a)}function KA(n){ut.flags|=4;var a=ut.updateQueue;if(a===null)a=of(),ut.updateQueue=a,a.events=[n];else{var i=a.events;i===null?a.events=[n]:i.push(n)}}function qv(n){var a=yn().memoizedState;return KA({ref:a,nextImpl:n}),function(){if((Mt&2)!==0)throw Error(s(440));return a.impl.apply(void 0,arguments)}}function Pv(n,a){return df(4,2,n,a)}function Bv(n,a){return df(4,4,n,a)}function Hv(n,a){if(typeof a=="function"){n=n();var i=a(n);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function Fv(n,a,i){i=i!=null?i.concat([n]):null,df(4,4,Hv.bind(null,a,n),i)}function Og(){}function Uv(n,a){var i=yn();a=a===void 0?null:a;var c=i.memoizedState;return a!==null&&$g(a,c[1])?c[0]:(i.memoizedState=[n,a],n)}function Vv(n,a){var i=yn();a=a===void 0?null:a;var c=i.memoizedState;if(a!==null&&$g(a,c[1]))return c[0];if(c=n(),ni){dr(!0);try{n()}finally{dr(!1)}}return i.memoizedState=[c,a],c}function Ig(n,a,i){return i===void 0||(Rs&1073741824)!==0&&(vt&261930)===0?n.memoizedState=a:(n.memoizedState=i,n=tw(),ut.lanes|=n,fo|=n,i)}function Gv(n,a,i,c){return Vr(i,a)?i:so.current!==null?(n=Ig(n,i,c),Vr(n,a)||($n=!0),n):(Rs&106)===0||(Rs&1073741824)!==0&&(vt&261930)===0?($n=!0,n.memoizedState=i):(n=tw(),ut.lanes|=n,fo|=n,a)}function Kv(n,a,i,c,h){var b=he.p;he.p=b!==0&&8>b?b:8;var $=te.T,z={};z.types=$!==null?$.types:null,te.T=z,Pg(n,!1,a,i);try{var V=h(),se=te.S;if(se!==null&&se(z,V),V!==null&&typeof V=="object"&&typeof V.then=="function"){var ce=HA(V,c);Wc(n,a,ce,Xr(n))}else Wc(n,a,c,Xr(n))}catch(be){Wc(n,a,{then:function(){},status:"rejected",reason:be},Xr())}finally{he.p=b,$!==null&&z.types!==null&&($.types=z.types),te.T=$}}function WA(){}function _g(n,a,i,c){if(n.tag!==5)throw Error(s(476));var h=Wv(n).queue;Kv(n,h,a,Re,i===null?WA:function(){return Yv(n),i(c)})}function Wv(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Re,baseState:Re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:Re},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:i},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Yv(n){var a=Wv(n);a.next===null&&(a=n.alternate.memoizedState),Wc(n,a.next.queue,{},Xr())}function qg(){return Jn(El)}function Xv(){return yn().memoizedState}function Zv(){return yn().memoizedState}function YA(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var i=Xr();n=ro(i);var c=ao(a,n,i);c!==null&&(Mr(c,a,i),Hc(c,a,i)),a={cache:hg()},n.payload=a;return}a=a.return}}function XA(n,a,i){var c=Xr();i={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ff(n)?Jv(a,i):(i=ag(n,a,i,c),i!==null&&(Mr(i,n,c),e2(i,a,c)))}function Qv(n,a,i){var c=Xr();Wc(n,a,i,c)}function Wc(n,a,i,c){var h={lane:c,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ff(n))Jv(a,h);else{var b=n.alternate;if(n.lanes===0&&(b===null||b.lanes===0)&&(b=a.lastRenderedReducer,b!==null))try{var $=a.lastRenderedState,z=b($,i);if(h.hasEagerState=!0,h.eagerState=z,Vr(z,$))return Hd(n,a,h,0),Ut===null&&Bd(),!1}catch{}if(i=ag(n,a,h,c),i!==null)return Mr(i,n,c),e2(i,a,c),!0}return!1}function Pg(n,a,i,c){if(c={lane:2,revertLane:Am(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},ff(n)){if(a)throw Error(s(479))}else a=ag(n,i,c,2),a!==null&&Mr(a,n,2)}function ff(n){var a=n.alternate;return n===ut||a!==null&&a===ut}function Jv(n,a){rl=af=!0;var i=n.pending;i===null?a.next=a:(a.next=i.next,i.next=a),n.pending=a}function e2(n,a,i){if((i&4194048)!==0){var c=a.lanes;c&=n.pendingLanes,i|=c,a.lanes=i,Ft(n,i)}}var hf={readContext:Jn,use:lf,useCallback:fn,useContext:fn,useEffect:fn,useImperativeHandle:fn,useLayoutEffect:fn,useInsertionEffect:fn,useMemo:fn,useReducer:fn,useRef:fn,useState:fn,useDebugValue:fn,useDeferredValue:fn,useTransition:fn,useSyncExternalStore:fn,useId:fn,useHostTransitionStatus:fn,useFormState:fn,useActionState:fn,useOptimistic:fn,useMemoCache:fn,useCacheRefresh:fn,useEffectEvent:fn},t2={readContext:Jn,use:lf,useCallback:function(n,a){return xr().memoizedState=[n,a===void 0?null:a],n},useContext:Jn,useEffect:_v,useImperativeHandle:function(n,a,i){i=i!=null?i.concat([n]):null,uf(4194308,4,Hv.bind(null,a,n),i)},useLayoutEffect:function(n,a){return uf(4194308,4,n,a)},useInsertionEffect:function(n,a){uf(4,2,n,a)},useMemo:function(n,a){var i=xr();a=a===void 0?null:a;var c=n();if(ni){dr(!0);try{n()}finally{dr(!1)}}return i.memoizedState=[c,a],c},useReducer:function(n,a,i){var c=xr();if(i!==void 0){var h=i(a);if(ni){dr(!0);try{i(a)}finally{dr(!1)}}}else h=a;return c.memoizedState=c.baseState=h,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:h},c.queue=n,n=n.dispatch=XA.bind(null,ut,n),[c.memoizedState,n]},useRef:function(n){var a=xr();return n={current:n},a.memoizedState=n},useState:function(n){n=zg(n);var a=n.queue,i=Qv.bind(null,ut,a);return a.dispatch=i,[n.memoizedState,i]},useDebugValue:Og,useDeferredValue:function(n,a){var i=xr();return Ig(i,n,a)},useTransition:function(){var n=zg(!1);return n=Kv.bind(null,ut,n.queue,!0,!1),xr().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,i){var c=ut,h=xr();if(xt){if(i===void 0)throw Error(s(407));i=i()}else{if(i=a(),Ut===null)throw Error(s(349));(vt&127)!==0||wv(c,a,i)}h.memoizedState=i;var b={value:i,getSnapshot:a};return h.queue=b,_v(Ev.bind(null,c,b,n),[n]),c.flags|=2048,sl(9,{destroy:void 0},Sv.bind(null,c,b,i,a),null),i},useId:function(){var n=xr(),a=Ut.identifierPrefix;if(xt){var i=ns,c=ts;i=(c&~(1<<32-Mn(c)-1)).toString(32)+i,a="_"+a+"R_"+i,i=sf++,0<i&&(a+="H"+i.toString(32)),a+="_"}else i=FA++,a="_"+a+"r_"+i.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:qg,useFormState:zv,useActionState:zv,useOptimistic:function(n){var a=xr();a.memoizedState=a.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=Pg.bind(null,ut,!0,i),i.dispatch=a,[n,a]},useMemoCache:Ag,useCacheRefresh:function(){return xr().memoizedState=YA.bind(null,ut)},useEffectEvent:function(n){var a=xr(),i={impl:n};return a.memoizedState=i,function(){if((Mt&2)!==0)throw Error(s(440));return i.impl.apply(void 0,arguments)}}},n2={readContext:Jn,use:lf,useCallback:Uv,useContext:Jn,useEffect:Dg,useImperativeHandle:Fv,useInsertionEffect:Pv,useLayoutEffect:Bv,useMemo:Vv,useReducer:cf,useRef:Iv,useState:function(){return cf(As)},useDebugValue:Og,useDeferredValue:function(n,a){var i=yn();return Gv(i,Ht.memoizedState,n,a)},useTransition:function(){var n=cf(As)[0],a=yn().memoizedState;return[typeof n=="boolean"?n:Kc(n),a]},useSyncExternalStore:vv,useId:Xv,useHostTransitionStatus:qg,useFormState:Lv,useActionState:Lv,useOptimistic:function(n,a){var i=yn();return Cv(i,Ht,n,a)},useMemoCache:Ag,useCacheRefresh:Zv,useEffectEvent:qv},ZA={readContext:Jn,use:lf,useCallback:Uv,useContext:Jn,useEffect:Dg,useImperativeHandle:Fv,useInsertionEffect:Pv,useLayoutEffect:Bv,useMemo:Vv,useReducer:Ng,useRef:Iv,useState:function(){return Ng(As)},useDebugValue:Og,useDeferredValue:function(n,a){var i=yn();return Ht===null?Ig(i,n,a):Gv(i,Ht.memoizedState,n,a)},useTransition:function(){var n=Ng(As)[0],a=yn().memoizedState;return[typeof n=="boolean"?n:Kc(n),a]},useSyncExternalStore:vv,useId:Xv,useHostTransitionStatus:qg,useFormState:Ov,useActionState:Ov,useOptimistic:function(n,a){var i=yn();return Ht!==null?Cv(i,Ht,n,a):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:Ag,useCacheRefresh:Zv,useEffectEvent:qv};function Bg(n,a,i,c){a=n.memoizedState,i=i(c,a),i=i==null?a:D({},a,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var Hg={enqueueSetState:function(n,a,i){n=n._reactInternals;var c=Xr(),h=ro(c);h.payload=a,i!=null&&(h.callback=i),a=ao(n,h,c),a!==null&&(Mr(a,n,c),Hc(a,n,c))},enqueueReplaceState:function(n,a,i){n=n._reactInternals;var c=Xr(),h=ro(c);h.tag=1,h.payload=a,i!=null&&(h.callback=i),a=ao(n,h,c),a!==null&&(Mr(a,n,c),Hc(a,n,c))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var i=Xr(),c=ro(i);c.tag=2,a!=null&&(c.callback=a),a=ao(n,c,i),a!==null&&(Mr(a,n,i),Hc(a,n,i))}};function r2(n,a,i,c,h,b,$){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,b,$):a.prototype&&a.prototype.isPureReactComponent?!Lc(i,c)||!Lc(h,b):!0}function a2(n,a,i,c){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,c),a.state!==n&&Hg.enqueueReplaceState(a,a.state,null)}function ri(n,a){var i=a;if("ref"in a){i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}if(n=n.defaultProps){i===a&&(i=D({},i));for(var h in n)i[h]===void 0&&(i[h]=n[h])}return i}function s2(n){Pd(n)}function o2(n){console.error(n)}function i2(n){Pd(n)}function pf(n,a){try{var i=n.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function l2(n,a,i){try{var c=n.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Fg(n,a,i){return i=ro(i),i.tag=3,i.payload={element:null},i.callback=function(){pf(n,a)},i}function c2(n){return n=ro(n),n.tag=3,n}function u2(n,a,i,c){var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var b=c.value;n.payload=function(){return h(b)},n.callback=function(){l2(a,i,c)}}var $=i.stateNode;$!==null&&typeof $.componentDidCatch=="function"&&(n.callback=function(){l2(a,i,c),typeof h!="function"&&(ho===null?ho=new Set([this]):ho.add(this));var z=c.stack;this.componentDidCatch(c.value,{componentStack:z!==null?z:""})})}function QA(n,a,i,c,h){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=i.alternate,a!==null&&Yo(a,i,h,!0),i=er.current,i!==null){switch(i.tag){case 31:case 13:case 19:return ir===null?Df():i.alternate===null&&hn===0&&(hn=3),i.flags&=-257,i.flags|=65536,i.lanes=h,c===Jd?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([c]):a.add(c),Cm(n,c,h)),!1;case 22:return i.flags|=65536,c===Jd?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([c]):i.add(c)),Cm(n,c,h)),!1}throw Error(s(435,i.tag))}return Cm(n,c,h),Df(),!1}if(xt)return a=er.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=h,c!==cg&&(n=Error(s(422),{cause:c}),Ic(ua(n,i)))):(c!==cg&&(a=Error(s(423),{cause:c}),Ic(ua(a,i))),n=n.current.alternate,n.flags|=65536,h&=-h,n.lanes|=h,c=ua(c,i),h=Fg(n.stateNode,c,h),bg(n,h),hn!==4&&(hn=2)),!1;var b=Error(s(520),{cause:c});if(b=ua(b,i),nu===null?nu=[b]:nu.push(b),hn!==4&&(hn=2),a===null)return!0;c=ua(c,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,n=h&-h,i.lanes|=n,n=Fg(i.stateNode,c,n),bg(i,n),!1;case 1:if(a=i.type,b=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ho===null||!ho.has(b))))return i.flags|=65536,h&=-h,i.lanes|=h,h=c2(h),u2(h,n,i,c),bg(i,h),!1;break;case 22:if(i.memoizedState!==null)return i.flags|=65536,!1}i=i.return}while(i!==null);return!1}var Ug=Error(s(461)),$n=!1;function Dn(n,a,i,c){a.child=n===null?pv(a,null,i,c):ti(a,n.child,i,c)}function d2(n,a,i,c,h){i=i.render;var b=a.ref;if("ref"in c){var $={};for(var z in c)z!=="ref"&&($[z]=c[z])}else $=c;return Xo(a),c=Tg(n,a,i,$,b,h),z=Cg(),n!==null&&!$n?(jg(n,a,h),Ms(n,a,h)):(xt&&z&&Gd(a),a.flags|=1,Dn(n,a,c,h),a.child)}function f2(n,a,i,c,h){if(n===null){var b=i.type;return typeof b=="function"&&!sg(b)&&b.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=b,h2(n,a,b,c,h)):(n=Ud(i.type,null,c,a,a.mode,h),n.ref=a.ref,n.return=a,a.child=n)}if(b=n.child,!Qg(n,h)){var $=b.memoizedProps;if(i=i.compare,i=i!==null?i:Lc,i($,c)&&n.ref===a.ref)return Ms(n,a,h)}return a.flags|=1,n=$s(b,c),n.ref=a.ref,n.return=a,a.child=n}function h2(n,a,i,c,h){if(n!==null){var b=n.memoizedProps;if(Lc(b,c)&&n.ref===a.ref)if($n=!1,a.pendingProps=c=b,Qg(n,h))(n.flags&131072)!==0&&($n=!0);else return a.lanes=n.lanes,Ms(n,a,h)}return Vg(n,a,i,c,h)}function p2(n,a,i,c){var h=c.children,b=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(b=b!==null?b.baseLanes|i:i,n!==null){for(c=a.child=n.child,h=0;c!==null;)h=h|c.lanes|c.childLanes,c=c.sibling;c=h&~b}else c=0,a.child=null;return x2(n,a,b,i,c)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Zd(a,b!==null?b.cachePool:null),b!==null?mv(a,b):vg(),yv(a);else return c=a.lanes=536870912,x2(n,a,b!==null?b.baseLanes|i:i,i,c)}else b!==null?(Zd(a,b.cachePool),mv(a,b),io(),a.memoizedState=null):(n!==null&&Zd(a,null),vg(),io());return Dn(n,a,h,i),a.child}function Yc(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function x2(n,a,i,c,h){var b=xg();return b=b===null?null:{parent:Sn._currentValue,pool:b},a.memoizedState={baseLanes:i,cachePool:b},n!==null&&Zd(a,null),vg(),yv(a),n!==null&&Yo(n,a,c,!0),a.childLanes=h,null}function xf(n,a){return a=gf({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function g2(n,a,i){return ti(a,n.child,null,i),n=xf(a,a.pendingProps),n.flags|=2,Gr(a),a.memoizedState=null,n}function JA(n,a,i){var c=a.pendingProps,h=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(xt){if(c.mode==="hidden")return n=xf(a,c),a.lanes=536870912,n.memoizedState={baseLanes:0,cachePool:null},Yc(null,n);if(Sg(a),(n=Kt)?(n=Hw(n,ha),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Zs!==null?{id:ts,overflow:ns}:null,retryLane:536870912,hydrationErrors:null},i=Jk(n),i.return=a,a.child=i,Fn=a,Kt=null)):n=null,n===null)throw Js(a);return a.lanes=536870912,null}return xf(a,c)}var b=n.memoizedState;if(b!==null){var $=b.dehydrated;if(Sg(a),h)if(a.flags&256)a.flags&=-257,a=g2(n,a,i);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(s(558));else if($n||Yo(n,a,i,!1),h=(i&n.childLanes)!==0,$n||h){if(so.current===null){if(c=Ut,c!==null&&($=Ct(c,i),$!==0&&$!==b.retryLane))throw b.retryLane=$,Vo(n,$),Mr(c,n,$),Ug;Df()}a=g2(n,a,i)}else n=b.treeContext,Kt=xa($.nextSibling),Fn=a,xt=!0,Qs=null,ha=!1,n!==null&&nv(a,n),a=xf(a,c),a.flags|=134221824;return a}return n=$s(n.child,{mode:c.mode,children:c.children}),n.ref=a.ref,a.child=n,n.return=a,n}function ol(n,a){var i=a.ref;if(i===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(n===null||n.ref!==i)&&(a.flags|=4194816)}}function Vg(n,a,i,c,h){return Xo(a),i=Tg(n,a,i,c,void 0,h),c=Cg(),n!==null&&!$n?(jg(n,a,h),Ms(n,a,h)):(xt&&c&&Gd(a),a.flags|=1,Dn(n,a,i,h),a.child)}function m2(n,a,i,c,h,b){return Xo(a),a.updateQueue=null,i=kv(a,c,i,h),bv(n),c=Cg(),n!==null&&!$n?(jg(n,a,b),Ms(n,a,b)):(xt&&c&&Gd(a),a.flags|=1,Dn(n,a,i,b),a.child)}function y2(n,a,i,c,h){if(Xo(a),a.stateNode===null){var b=Xi,$=i.contextType;typeof $=="object"&&$!==null&&(b=Jn($)),b=new i(c,b),a.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Hg,a.stateNode=b,b._reactInternals=a,b=a.stateNode,b.props=c,b.state=a.memoizedState,b.refs={},mg(a),$=i.contextType,b.context=typeof $=="object"&&$!==null?Jn($):Xi,b.state=a.memoizedState,$=i.getDerivedStateFromProps,typeof $=="function"&&(Bg(a,i,$,c),b.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||($=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),$!==b.state&&Hg.enqueueReplaceState(b,b.state,null),Uc(a,c,b,h),Fc(),b.state=a.memoizedState),typeof b.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(n===null){b=a.stateNode;var z=a.memoizedProps,V=ri(i,z);b.props=V;var se=b.context,ce=i.contextType;$=Xi,typeof ce=="object"&&ce!==null&&($=Jn(ce));var be=i.getDerivedStateFromProps;ce=typeof be=="function"||typeof b.getSnapshotBeforeUpdate=="function",z=a.pendingProps!==z,ce||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(z||se!==$)&&a2(a,b,c,$),no=!1;var ne=a.memoizedState;b.state=ne,Uc(a,c,b,h),Fc(),se=a.memoizedState,z||ne!==se||no?(typeof be=="function"&&(Bg(a,i,be,c),se=a.memoizedState),(V=no||r2(a,i,V,c,ne,se,$))?(ce||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(a.flags|=4194308)):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=se),b.props=c,b.state=se,b.context=$,c=V):(typeof b.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{b=a.stateNode,yg(n,a),$=a.memoizedProps,ce=ri(i,$),b.props=ce,be=a.pendingProps,ne=b.context,se=i.contextType,V=Xi,typeof se=="object"&&se!==null&&(V=Jn(se)),z=i.getDerivedStateFromProps,(se=typeof z=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||($!==be||ne!==V)&&a2(a,b,c,V),no=!1,ne=a.memoizedState,b.state=ne,Uc(a,c,b,h),Fc();var le=a.memoizedState;$!==be||ne!==le||no||n!==null&&n.dependencies!==null&&Yd(n.dependencies)?(typeof z=="function"&&(Bg(a,i,z,c),le=a.memoizedState),(ce=no||r2(a,i,ce,c,ne,le,V)||n!==null&&n.dependencies!==null&&Yd(n.dependencies))?(se||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,le,V),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,le,V)),typeof b.componentDidUpdate=="function"&&(a.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof b.componentDidUpdate!="function"||$===n.memoizedProps&&ne===n.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||$===n.memoizedProps&&ne===n.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=le),b.props=c,b.state=le,b.context=V,c=ce):(typeof b.componentDidUpdate!="function"||$===n.memoizedProps&&ne===n.memoizedState||(a.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||$===n.memoizedProps&&ne===n.memoizedState||(a.flags|=1024),c=!1)}return b=c,ol(n,a),c=(a.flags&128)!==0,b||c?(b=a.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:b.render(),a.flags|=1,n!==null&&c?(a.child=ti(a,n.child,null,h),a.child=ti(a,null,i,h)):Dn(n,a,i,h),a.memoizedState=b.state,n=a.child):n=Ms(n,a,h),n}function b2(n,a,i,c){return Ko(),a.flags|=256,Dn(n,a,i,c),a.child}var Gg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kg(n){return{baseLanes:n,cachePool:lv()}}function Wg(n,a,i){return n=n!==null?n.childLanes&~i:0,a&&(n|=Yr),n}function k2(n,a,i){var c=a.pendingProps,h=!1,b=(a.flags&128)!==0,$;if(($=b)||($=n!==null&&n.memoizedState===null?!1:(tr.current&2)!==0),$&&(h=!0,a.flags&=-129),$=(a.flags&32)!==0,a.flags&=-33,n===null){if(xt){if(h?oo(a):io(),(n=Kt)?(n=Hw(n,ha),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Zs!==null?{id:ts,overflow:ns}:null,retryLane:536870912,hydrationErrors:null},i=Jk(n),i.return=a,a.child=i,Fn=a,Kt=null)):n=null,n===null)throw Js(a);return Km(n)?a.lanes=32:a.lanes=536870912,null}return b=c.children,c=c.fallback,h?(io(),h=a.mode,b=gf({mode:"hidden",children:b},h),c=Go(c,h,i,null),b.return=a,c.return=a,b.sibling=c,a.child=b,c=a.child,c.memoizedState=Kg(i),c.childLanes=Wg(n,$,i),a.memoizedState=Gg,Yc(null,c)):(oo(a),Yg(a,b))}var z=n.memoizedState;if(z!==null){var V=z.dehydrated;if(V!==null)return e7(n,a,b,$,c,V,z,i)}return h?(io(),h=c.fallback,b=a.mode,z=n.child,V=z.sibling,c=$s(z,{mode:"hidden",children:c.children}),c.subtreeFlags=z.subtreeFlags&1206910976,V!==null?h=$s(V,h):(h=Go(h,b,i,null),h.flags|=2),h.return=a,c.return=a,c.sibling=h,a.child=c,Yc(null,c),c=a.child,h=n.child.memoizedState,h===null?h=Kg(i):(b=h.cachePool,b!==null?(z=Sn._currentValue,b=b.parent!==z?{parent:z,pool:z}:b):b=lv(),h={baseLanes:h.baseLanes|i,cachePool:b}),c.memoizedState=h,c.childLanes=Wg(n,$,i),a.memoizedState=Gg,Yc(n.child,c)):(oo(a),i=n.child,n=i.sibling,i=$s(i,{mode:"visible",children:c.children}),i.return=a,i.sibling=null,n!==null&&($=a.deletions,$===null?(a.deletions=[n],a.flags|=16):$.push(n)),a.child=i,a.memoizedState=null,i)}function Yg(n,a){return a=gf({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function gf(n,a){return n=Cr(22,n,null,a),n.lanes=0,n}function mf(n,a,i){return ti(a,n.child,null,i),n=Yg(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function e7(n,a,i,c,h,b,$,z){if(i)return a.flags&256?(oo(a),a.flags&=-257,mf(n,a,z)):a.memoizedState!==null?(io(),a.child=n.child,a.flags|=128,null):(io(),b=h.fallback,$=a.mode,h=gf({mode:"visible",children:h.children},$),b=Go(b,$,z,null),b.flags|=2,h.return=a,b.return=a,h.sibling=b,a.child=h,ti(a,n.child,null,z),h=a.child,h.memoizedState=Kg(z),h.childLanes=Wg(n,c,z),a.memoizedState=Gg,Yc(null,h));if(oo(a),Km(b)){if(c=b.nextSibling&&b.nextSibling.dataset,c)var V=c.dgst;return c=V,c!==""&&(h=Error(s(419)),h.stack="",h.digest=c,Ic({value:h,source:null,stack:null})),mf(n,a,z)}if($n||Yo(n,a,z,!1),c=(z&n.childLanes)!==0,$n||c){if(so.current!==null)return mf(n,a,z);if(c=Ut,c!==null&&(h=Ct(c,z),h!==0&&h!==$.retryLane))throw $.retryLane=h,Vo(n,h),Mr(c,n,h),Ug;return Gm(b)||Df(),mf(n,a,z)}return Gm(b)?(a.flags|=192,a.child=n.child,null):(n=$.treeContext,Kt=xa(b.nextSibling),Fn=a,xt=!0,Qs=null,ha=!1,n!==null&&nv(a,n),a=Yg(a,h.children),a.flags|=134221824,a)}function v2(n,a,i){n.lanes|=a;var c=n.alternate;c!==null&&(c.lanes|=a),Wd(n.return,a,i)}function w2(n){for(var a=null;n!==null;){var i=n.alternate;i!==null&&rf(i)===null&&(a=n),n=n.sibling}return a}function yf(n,a,i,c,h,b){var $=n.memoizedState;$===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:h,treeForkCount:b}:($.isBackwards=a,$.rendering=null,$.renderingStartTime=0,$.last=c,$.tail=i,$.tailMode=h,$.treeForkCount=b)}function Xg(n){var a=n.child;for(n.child=null;a!==null;){var i=a.sibling;a.sibling=n.child,n.child=a,a=i}}function Zg(n,a,i){var c=a.pendingProps,h=c.revealOrder,b=c.tail;c=c.children;var $=tr.current;if(a.flags&128)return Vc(a,$),null;var z=($&2)!==0;if(z?($=$&1|2,a.flags|=128):$&=1,Vc(a,$),h==="backwards"&&n!==null?(Xg(n),Dn(n,a,c,i),Xg(n)):Dn(n,a,c,i),c=xt?Oc:0,!z&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&v2(n,i,a);else if(n.tag===19)v2(n,i,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(h){case"backwards":i=w2(a.child),i===null?(h=a.child,a.child=null):(h=i.sibling,i.sibling=null,Xg(a)),yf(a,!0,h,null,b,c);break;case"unstable_legacy-backwards":for(i=null,h=a.child,a.child=null;h!==null;){if(n=h.alternate,n!==null&&rf(n)===null){a.child=h;break}n=h.sibling,h.sibling=i,i=h,h=n}yf(a,!0,i,null,b,c);break;case"together":yf(a,!1,null,null,void 0,c);break;case"independent":a.memoizedState=null;break;default:i=w2(a.child),i===null?(h=a.child,a.child=null):(h=i.sibling,i.sibling=null),yf(a,!1,h,i,b,c)}return a.child}function S2(n,a,i){var c=a.pendingProps;return eo(a,a.type,c.value),Dn(n,a,c.children,i),a.child}function Ms(n,a,i){if(n!==null&&(a.dependencies=n.dependencies),fo|=a.lanes,(i&a.childLanes)===0)if(n!==null){if(Yo(n,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(s(153));if(a.child!==null){for(n=a.child,i=$s(n,n.pendingProps),a.child=i,i.return=a;n.sibling!==null;)n=n.sibling,i=i.sibling=$s(n,n.pendingProps),i.return=a;i.sibling=null}return a.child}function Qg(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Yd(n)))}function t7(n,a,i){switch(a.tag){case 3:bt(a,a.stateNode.containerInfo),eo(a,Sn,n.memoizedState.cache),Ko();break;case 27:case 5:rt(a);break;case 4:bt(a,a.stateNode.containerInfo);break;case 10:eo(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Sg(a),null;break;case 13:var c=a.memoizedState;if(c!==null){if(c.dehydrated!==null)return oo(a),a.flags|=128,null;c=Yo(n,a,i,!1);var h=a.child.childLanes;return c||(i&h)!==0?k2(n,a,i):(oo(a),n=Ms(n,a,i),n!==null?n.sibling:null)}oo(a);break;case 19:if(a.flags&128)return Zg(n,a,i);if(h=(n.flags&128)!==0,c=(i&a.childLanes)!==0,c||(Yo(n,a,i,!1),c=(i&a.childLanes)!==0),h){if(c)return Zg(n,a,i);a.flags|=128}if(h=a.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),Vc(a,tr.current),c)break;return null;case 22:return a.lanes=0,p2(n,a,i,a.pendingProps);case 24:eo(a,Sn,n.memoizedState.cache)}return Ms(n,a,i)}function E2(n,a,i){if(n!==null)if(n.memoizedProps!==a.pendingProps)$n=!0;else{if(!Qg(n,i)&&(a.flags&128)===0)return $n=!1,t7(n,a,i);$n=(n.flags&131072)!==0}else $n=!1,xt&&(a.flags&1048576)!==0&&tv(a,Oc,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(n=Jo(a.elementType),a.type=n,typeof n=="function")sg(n)?(c=ri(n,c),a.tag=1,a=y2(null,a,n,c,i)):(a.tag=0,a=Vg(null,a,n,c,i));else{if(n!=null){var h=n.$$typeof;if(h===_){a.tag=11,a=d2(null,a,n,c,i);break e}else if(h===X){a.tag=14,a=f2(null,a,n,c,i);break e}else if(h===U){a.tag=10,a.type=n,a=S2(null,a,i);break e}}throw a=xe(n)||n,Error(s(306,a,""))}}return a;case 0:return Vg(n,a,a.type,a.pendingProps,i);case 1:return c=a.type,h=ri(c,a.pendingProps),y2(n,a,c,h,i);case 3:e:{if(bt(a,a.stateNode.containerInfo),n===null)throw Error(s(387));c=a.pendingProps;var b=a.memoizedState;h=b.element,yg(n,a),Uc(a,c,null,i);var $=a.memoizedState;if(c=$.cache,eo(a,Sn,c),c!==b.cache&&fg(a,[Sn],i,!0),Fc(),c=$.element,b.isDehydrated)if(b={element:c,isDehydrated:!1,cache:$.cache},a.updateQueue.baseState=b,a.memoizedState=b,a.flags&256){a=b2(n,a,c,i);break e}else if(c!==h){h=ua(Error(s(424)),a),Ic(h),a=b2(n,a,c,i);break e}else for(n=a.stateNode.containerInfo,n.nodeType===9?n=n.body:n=n.nodeName==="HTML"?n.ownerDocument.body:n,Kt=xa(n.firstChild),Fn=a,xt=!0,Qs=null,ha=!0,i=pv(a,null,c,i),a.child=i;i;)i.flags=i.flags&-3|134221824,i=i.sibling;else{if(Ko(),c===h){a=Ms(n,a,i);break e}Dn(n,a,c,i)}a=a.child}return a;case 26:return ol(n,a),n===null?(i=Yw(a.type,null,a.pendingProps,null))?a.memoizedState=i:xt||(a.stateNode=jw(a.type,a.pendingProps,et.current,a)):a.memoizedState=Yw(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return rt(a),n===null&&xt&&(c=a.stateNode=Vw(a.type,a.pendingProps,et.current),Fn=a,ha=!0,h=Kt,go(a.type)?(Wm=h,Kt=xa(c.firstChild)):Kt=h),Dn(n,a,a.pendingProps.children,i),ol(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&xt&&((h=c=Kt)&&(c=Y7(c,a.type,a.pendingProps,ha),c!==null?(a.stateNode=c,Fn=a,Kt=xa(c.firstChild),ha=!1,h=!0):h=!1),h||Js(a)),rt(a),h=a.type,b=a.pendingProps,$=n!==null?n.memoizedProps:null,c=b.children,qm(h,b)?c=null:$!==null&&qm(h,$)&&(a.flags|=32),a.memoizedState!==null&&(h=Tg(n,a,UA,null,null,i),El._currentValue=h),ol(n,a),Dn(n,a,c,i),a.child;case 6:return n===null&&xt&&((n=i=Kt)&&(i=X7(i,a.pendingProps,ha),i!==null?(a.stateNode=i,Fn=a,Kt=null,n=!0):n=!1),n||Js(a)),null;case 13:return k2(n,a,i);case 4:return bt(a,a.stateNode.containerInfo),c=a.pendingProps,n===null?a.child=ti(a,null,c,i):Dn(n,a,c,i),a.child;case 11:return d2(n,a,a.type,a.pendingProps,i);case 7:return c=a.pendingProps,ol(n,a),Dn(n,a,c,i),a.child;case 8:return Dn(n,a,a.pendingProps.children,i),a.child;case 12:return Dn(n,a,a.pendingProps.children,i),a.child;case 10:return S2(n,a,i);case 9:return h=a.type._context,c=a.pendingProps.children,Xo(a),h=Jn(h),c=c(h),a.flags|=1,Dn(n,a,c,i),a.child;case 14:return f2(n,a,a.type,a.pendingProps,i);case 15:return h2(n,a,a.type,a.pendingProps,i);case 19:return Zg(n,a,i);case 31:return JA(n,a,i);case 22:return p2(n,a,i,a.pendingProps);case 24:return Xo(a),c=Jn(Sn),n===null?(h=xg(),h===null&&(h=Ut,b=hg(),h.pooledCache=b,b.refCount++,b!==null&&(h.pooledCacheLanes|=i),h=b),a.memoizedState={parent:c,cache:h},mg(a),eo(a,Sn,h)):((n.lanes&i)!==0&&(yg(n,a),Uc(a,null,null,i),Fc()),h=n.memoizedState,b=a.memoizedState,h.parent!==c?(h={parent:c,cache:c},a.memoizedState=h,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=h),eo(a,Sn,c)):(c=b.cache,eo(a,Sn,c),c!==h.cache&&fg(a,[Sn],i,!0))),Dn(n,a,a.pendingProps.children,i),a.child;case 30:return a.stateNode===null&&(a.stateNode={autoName:null,paired:null,clones:null,ref:null}),c=a.pendingProps,c.name!=null&&c.name!=="auto"?a.flags|=n===null?18882560:18874368:xt&&Gd(a),n!==null&&n.memoizedProps.name!==c.name?a.flags|=4194816:ol(n,a),Dn(n,a,c.children,i),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function Ns(n){n.flags|=4}function Jg(n,a,i,c,h){var b;if((b=(n.mode&32)!==0)&&(b=i===null?Jw(a,c):Jw(a,c)&&(c.src!==i.src||c.srcSet!==i.srcSet)),b){if(n.flags|=16777216,(h&335544128)===h)if(n.stateNode.complete)n.flags|=8192;else if(sw())n.flags|=8192;else throw ei=Jd,gg}else n.flags&=-16777217}function $2(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!eS(a))if(sw())n.flags|=8192;else throw ei=Jd,gg}function bf(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Be():536870912,n.lanes|=a,dl|=a)}function Xc(n,a){if(!xt)switch(n.tailMode){case"visible":break;case"collapsed":for(var i=n.tail,c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null;break;default:for(a=n.tail,i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?n.tail=null:i.sibling=null}}function Wt(n){var a=n.alternate!==null&&n.alternate.child===n.child,i=0,c=0;if(a)for(var h=n.child;h!==null;)i|=h.lanes|h.childLanes,c|=h.subtreeFlags&1206910976,c|=h.flags&1206910976,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)i|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=i,a}function n7(n,a,i){var c=a.pendingProps;switch(lg(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(a),null;case 1:return Wt(a),null;case 3:return i=a.stateNode,c=null,n!==null&&(c=n.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),js(Sn),Pe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(Ji(a)?Ns(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,ug())),Wt(a),null;case 26:var h=a.type,b=a.memoizedState;return n===null?(Ns(a),b!==null?(Wt(a),$2(a,b)):(Wt(a),Jg(a,h,null,c,i))):b?b!==n.memoizedState?(Ns(a),Wt(a),$2(a,b)):(Wt(a),a.flags&=-16777217):(n=n.memoizedProps,n!==c&&Ns(a),Wt(a),Jg(a,h,n,c,i)),null;case 27:if(lt(a),i=et.current,h=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&Ns(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return Wt(a),a.subtreeFlags&=-33554433,null}n=at.current,Ji(a)?rv(a):(n=Vw(h,c,i),a.stateNode=n,Ns(a))}return Wt(a),a.subtreeFlags&=-33554433,null;case 5:if(lt(a),h=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==c&&Ns(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return Wt(a),a.subtreeFlags&=-33554433,null}if(b=at.current,Ji(a))rv(a);else{var $=iu(et.current);switch(b){case 1:b=$.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:b=$.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":b=$.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":b=$.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":b=$.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof c.is=="string"?$.createElement("select",{is:c.is}):$.createElement("select"),c.multiple?b.multiple=!0:c.size&&(b.size=c.size);break;default:b=typeof c.is=="string"?$.createElement(h,{is:c.is}):$.createElement(h)}}b[Bt]=a,b[Yt]=c;e:for($=a.child;$!==null;){if($.tag===5||$.tag===6)b.appendChild($.stateNode);else if($.tag!==4&&$.tag!==27&&$.child!==null){$.child.return=$,$=$.child;continue}if($===a)break e;for(;$.sibling===null;){if($.return===null||$.return===a)break e;$=$.return}$.sibling.return=$.return,$=$.sibling}a.stateNode=b;e:switch(rr(b,h,c),h){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Ns(a)}}return Wt(a),a.subtreeFlags&=-33554433,Jg(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,i),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==c&&Ns(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(s(166));if(n=et.current,Ji(a)){if(n=a.stateNode,i=a.memoizedProps,c=null,h=Fn,h!==null)switch(h.tag){case 27:case 5:c=h.memoizedProps}n[Bt]=a,n=!!(n.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||Ew(n.nodeValue,i)),n||Js(a,!0)}else n=iu(n).createTextNode(c),n[Bt]=a,a.stateNode=n}return Wt(a),null;case 31:if(i=a.memoizedState,n===null||n.memoizedState!==null){if(c=Ji(a),i!==null){if(n===null){if(!c)throw Error(s(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(557));n[Bt]=a}else Ko(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Wt(a),n=!1}else i=ug(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return a.flags&256?(Gr(a),a):(Gr(a),null);if((a.flags&128)!==0)throw Error(s(558))}return Wt(a),null;case 13:if(c=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(h=Ji(a),c!==null&&c.dehydrated!==null){if(n===null){if(!h)throw Error(s(318));if(h=a.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(s(317));h[Bt]=a}else Ko(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Wt(a),h=!1}else h=ug(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=h),h=!0;if(!h)return a.flags&256?(Gr(a),a):(Gr(a),null)}return Gr(a),(a.flags&128)!==0?(a.lanes=i,a):(i=c!==null,n=n!==null&&n.memoizedState!==null,i&&(c=a.child,h=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(h=c.alternate.memoizedState.cachePool.pool),b=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==h&&(c.flags|=2048)),i!==n&&i&&(a.child.flags|=8192),bf(a,a.updateQueue),Wt(a),null);case 4:return Pe(),n===null&&Lm(a.stateNode.containerInfo),a.flags|=67108864,Wt(a),null;case 10:return js(a.type),Wt(a),null;case 19:if(Eg(a),c=a.memoizedState,c===null)return Wt(a),null;if(h=(a.flags&128)!==0,b=c.rendering,b===null)if(h)Xc(c,!1);else{if(hn!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(b=rf(n),b!==null){for(a.flags|=128,Xc(c,!1),n=b.updateQueue,a.updateQueue=n,bf(a,n),a.subtreeFlags=0,n=i,i=a.child;i!==null;)Qk(i,n),i=i.sibling;return Vc(a,tr.current&1|2),xt&&Ts(a,c.treeForkCount),a.child}n=n.sibling}c.tail!==null&&Ye()>Mf&&(a.flags|=128,h=!0,Xc(c,!1),a.lanes=4194304)}else{if(!h)if(n=rf(b),n!==null){if(a.flags|=128,h=!0,n=n.updateQueue,a.updateQueue=n,bf(a,n),Xc(c,!0),c.tail===null&&c.tailMode!=="collapsed"&&c.tailMode!=="visible"&&!b.alternate&&!xt)return Wt(a),null}else 2*Ye()-c.renderingStartTime>Mf&&i!==536870912&&(a.flags|=128,h=!0,Xc(c,!1),a.lanes=4194304);c.isBackwards?(b.sibling=a.child,a.child=b):(n=c.last,n!==null?n.sibling=b:a.child=b,c.last=b)}if(c.tail!==null){n=c.tail;e:{for(i=n;i!==null;){if(i.alternate!==null){i=!1;break e}i=i.sibling}i=!0}return c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Ye(),n.sibling=null,b=tr.current,b=h?b&1|2:b&1,c.tailMode==="visible"||c.tailMode==="collapsed"||!i||xt?Vc(a,b):(i=b,He(er,a),He(tr,i),ir===null&&(ir=a)),xt&&Ts(a,c.treeForkCount),n}return Wt(a),null;case 22:case 23:return Gr(a),wg(),c=a.memoizedState!==null,n!==null?n.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(i&536870912)!==0&&(a.flags&128)===0&&(Wt(a),a.subtreeFlags&6&&(a.flags|=8192)):Wt(a),i=a.updateQueue,i!==null&&bf(a,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048),n!==null&&je(Qo),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),js(Sn),Wt(a),null;case 25:return null;case 30:return a.flags|=33554432,Wt(a),null}throw Error(s(156,a.tag))}function r7(n,a){switch(lg(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return js(Sn),Pe(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return lt(a),null;case 31:if(a.memoizedState!==null){if(Gr(a),a.alternate===null)throw Error(s(340));Ko()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(Gr(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(s(340));Ko()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return Eg(a),n=a.flags,n&65536?(a.flags=n&-65537|128,n=a.memoizedState,n!==null&&(n.rendering=null,n.tail=null),a.flags|=4,a):null;case 4:return Pe(),null;case 10:return js(a.type),null;case 22:case 23:return Gr(a),wg(),n!==null&&je(Qo),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return js(Sn),null;case 25:return null;default:return null}}function T2(n,a){switch(lg(a),a.tag){case 3:js(Sn),Pe();break;case 26:case 27:case 5:lt(a);break;case 4:Pe();break;case 31:a.memoizedState!==null&&Gr(a);break;case 13:Gr(a);break;case 19:Eg(a);break;case 10:js(a.type);break;case 22:case 23:Gr(a),wg(),n!==null&&je(Qo);break;case 24:js(Sn)}}function Zc(n,a){try{var i=a.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var h=c.next;i=h;do{if((i.tag&n)===n){c=void 0;var b=i.create,$=i.inst;c=b(),$.destroy=c}i=i.next}while(i!==h)}}catch(z){Dt(a,a.return,z)}}function lo(n,a,i){try{var c=a.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var b=h.next;c=b;do{if((c.tag&n)===n){var $=c.inst,z=$.destroy;if(z!==void 0){$.destroy=void 0,h=a;var V=i,se=z;try{se()}catch(ce){Dt(h,V,ce)}}}c=c.next}while(c!==b)}}catch(ce){Dt(a,a.return,ce)}}function C2(n){var a=n.updateQueue;if(a!==null){var i=n.stateNode;try{gv(a,i)}catch(c){Dt(n,n.return,c)}}}function j2(n,a,i){i.props=ri(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(c){Dt(n,a,c)}}function rs(n,a){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var c=n.stateNode;break;case 30:var h=n.stateNode,b=Ss(n.memoizedProps,h);(h.ref===null||h.ref.name!==b)&&(h.ref=Dw(b)),c=h.ref;break;case 7:if(n.stateNode===null){var $=new Zr(n);y(n.child,!1,K7,$,void 0,void 0),n.stateNode=$}c=n.stateNode;break;default:c=n.stateNode}typeof i=="function"?n.refCleanup=i(c):i.current=c}}catch(z){Dt(n,a,z)}}function nr(n,a){var i=n.ref,c=n.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(h){Dt(n,a,h)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(h){Dt(n,a,h)}else i.current=null}function kf(n,a){if((n.tag===5||n.tag===27||n.tag===6)&&n.alternate===null&&a!==null)for(var i=0;i<a.length;i++)Bw(n.stateNode,a[i])}function R2(n){for(var a=n.return;a!==null&&(tm(a)&&Bw(n.stateNode,a.stateNode),!em(a));)a=a.return}function Qc(n){for(var a=n.return;a!==null&&(tm(a)&&W7(n.stateNode,a.stateNode),!em(a));)a=a.return}function em(n){return n.tag===5||n.tag===3||n.tag===27}function tm(n){return n&&n.tag===7&&n.stateNode!==null}function nm(n){var a=n.type,i=n.memoizedProps,c=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(h){Dt(n,n.return,h)}}function rm(n,a,i){try{var c=n.stateNode;R7(c,n.type,i,a),c[Yt]=a}catch(h){Dt(n,n.return,h)}}function A2(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&go(n.type)||n.tag===4}function am(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||A2(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&&go(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 sm(n,a,i,c){var h=n.tag;if(h===5||h===6)h=n.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(h,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(h),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=es)),kf(n,c),Et=!0;else if(h!==4&&(h===27&&(kf(n,c),c=null,go(n.type)&&(i=n.stateNode,a=null)),n=n.child,n!==null))for(sm(n,a,i,c),n=n.sibling;n!==null;)sm(n,a,i,c),n=n.sibling}function vf(n,a,i,c){var h=n.tag;if(h===5||h===6)h=n.stateNode,a?i.insertBefore(h,a):i.appendChild(h),kf(n,c),Et=!0;else if(h!==4&&(h===27&&(kf(n,c),c=null,go(n.type)&&(i=n.stateNode)),n=n.child,n!==null))for(vf(n,a,i,c),n=n.sibling;n!==null;)vf(n,a,i,c),n=n.sibling}function M2(n){var a=n.stateNode,i=n.memoizedProps;try{for(var c=n.type,h=a.attributes;h.length;)a.removeAttributeNode(h[0]);rr(a,c,i),a[Bt]=n,a[Yt]=i}catch(b){Dt(n,n.return,b)}}var wf=!1,Kr=null;function N2(n){(n.tag===30||(n.subtreeFlags&33554432)!==0)&&(wf=!0)}var as=null;function z2(){var n=as;return as=null,n}var jr=0;function il(n,a,i,c,h){return jr=0,L2(n.child,a,i,c,h)}function L2(n,a,i,c,h){for(var b=!1;n!==null;){if(n.tag===5){var $=n.stateNode;if(c!==null){var z=Hm($);c.push(z),z.view&&(b=!0)}else b||Hm($).view&&(b=!0);wf=!0,zw($,jr===0?a:a+"_"+jr,i),jr++}else(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&h||L2(n.child,a,i,c,h)&&(b=!0));n=n.sibling}return b}function ss(n,a){for(;n!==null;)n.tag===5?Lw(n.stateNode,n.memoizedProps):(n.tag!==22||n.memoizedState===null)&&(n.tag===30&&a||ss(n.child,a)),n=n.sibling}function Sf(n){if((n.subtreeFlags&18874368)!==0)for(n=n.child;n!==null;){if((n.tag!==22||n.memoizedState===null)&&(Sf(n),n.tag===30&&(n.flags&18874368)!==0&&n.stateNode.paired)){var a=n.memoizedProps;if(a.name==null||a.name==="auto")throw Error(s(544));var i=a.name;a=Es(a.default,a.share),a!=="none"&&(il(n,i,a,null,!1)||ss(n.child,!1))}n=n.sibling}}function om(n,a){if(n.tag===30){var i=n.stateNode,c=n.memoizedProps,h=Ss(c,i),b=Es(c.default,i.paired?c.share:c.enter);b!=="none"?il(n,h,b,null,!1)?(Sf(n),i.paired||a||xl(n,c.onEnter)):ss(n.child,!1):Sf(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)om(n,a),n=n.sibling;else Sf(n)}function im(n){if(Kr!==null&&Kr.size!==0){var a=Kr;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 i=n.memoizedProps,c=i.name;if(c!=null&&c!=="auto"){var h=a.get(c);if(h!==void 0){var b=Es(i.default,i.share);if(b!=="none"&&(il(n,c,b,null,!1)?(b=n.stateNode,h.paired=b,b.paired=h,xl(n,i.onShare)):ss(n.child,!1)),a.delete(c),a.size===0)break}}}im(n)}n=n.sibling}}}function lm(n){if(n.tag===30){var a=n.memoizedProps,i=Ss(a,n.stateNode),c=Kr!==null?Kr.get(i):void 0,h=Es(a.default,c!==void 0?a.share:a.exit);h!=="none"&&(il(n,i,h,null,!1)?c!==void 0?(h=n.stateNode,c.paired=h,h.paired=c,Kr.delete(i),xl(n,a.onShare)):xl(n,a.onExit):ss(n.child,!1)),Kr!==null&&im(n)}else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)lm(n),n=n.sibling;else Kr!==null&&im(n)}function D2(n){for(n=n.child;n!==null;){if(n.tag===30){var a=n.memoizedProps,i=Ss(a,n.stateNode);a=Es(a.default,a.update),n.flags&=-5,a!=="none"&&il(n,i,a,n.memoizedState=[],!1)}else(n.subtreeFlags&33554432)!==0&&D2(n);n=n.sibling}}function cm(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 a=n.stateNode;a.paired!==null&&(a.paired=null,ss(n.child,!1))}cm(n)}n=n.sibling}}function Ef(n){if(n.tag===30)n.stateNode.paired=null,ss(n.child,!1),cm(n);else if((n.subtreeFlags&33554432)!==0)for(n=n.child;n!==null;)Ef(n),n=n.sibling;else cm(n)}function O2(n){for(n=n.child;n!==null;)n.tag===30?ss(n.child,!1):(n.subtreeFlags&33554432)!==0&&O2(n),n=n.sibling}function um(n,a,i,c,h,b,$){for(var z=!1;a!==null;){if(a.tag===5){var V=a.stateNode;if(b!==null&&jr<b.length){var se=b[jr],ce=Hm(V);(se.view||ce.view)&&(z=!0);var be;if(be=(n.flags&4)===0)if(ce.clip)be=!0;else{be=se.rect;var ne=ce.rect;be=be.y!==ne.y||be.x!==ne.x||be.height!==ne.height||be.width!==ne.width}be&&(n.flags|=4),ce.abs?ce=!se.abs:(se=se.rect,ce=ce.rect,ce=se.height!==ce.height||se.width!==ce.width),ce&&(n.flags|=32)}else n.flags|=32;(n.flags&4)!==0&&zw(V,jr===0?i:i+"_"+jr,h),z&&(n.flags&4)!==0||(as===null&&(as=[]),as.push(V,jr===0?c:c+"_"+jr,a.memoizedProps)),jr++}else(a.tag!==22||a.memoizedState===null)&&(a.tag===30&&$?n.flags|=a.flags&32:um(n,a.child,i,c,h,b,$)&&(z=!0));a=a.sibling}return z}function I2(n,a){for(n=n.child;n!==null;){if(n.tag===30){var i=n.memoizedProps,c=n.stateNode,h=Ss(i,c),b=Es(i.default,i.update),$;$=n.memoizedState,n.memoizedState=null,c=n;var z=n.child;jr=0,h=um(c,z,h,h,b,$,!1),(n.flags&4)!==0&&h&&xl(n,i.onUpdate)}else(n.subtreeFlags&33554432)!==0&&I2(n);n=n.sibling}}var Un=!1,zt=!1,os=!1,dm=!1,_2=typeof WeakSet=="function"?WeakSet:Set,Vn=null,is=!1,Jc=!1,$f=!1,fm=!1;function a7(n,a,i){if(n=n.containerInfo,Im=$l,n=Hk(n),Qx(n)){if("selectionStart"in n)var c={start:n.selectionStart,end:n.selectionEnd};else e:{c=(c=n.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var b=h.anchorOffset,$=h.focusNode;h=h.focusOffset;try{c.nodeType,$.nodeType}catch{c=null;break e}var z=0,V=-1,se=-1,ce=0,be=0,ne=n,le=null;t:for(;;){for(var Ae;ne!==c||b!==0&&ne.nodeType!==3||(V=z+b),ne!==$||h!==0&&ne.nodeType!==3||(se=z+h),ne.nodeType===3&&(z+=ne.nodeValue.length),(Ae=ne.firstChild)!==null;)le=ne,ne=Ae;for(;;){if(ne===n)break t;if(le===c&&++ce===b&&(V=z),le===$&&++be===h&&(se=z),(Ae=ne.nextSibling)!==null)break;ne=le,le=ne.parentNode}ne=Ae}c=V===-1||se===-1?null:{start:V,end:se}}else c=null}c=c||{start:0,end:0}}else c=null;for(_m={focusedElem:n,selectionRange:c},$l=!1,i=(i&335544064)===i,Vn=a,a=i?9270:1024;Vn!==null;){if(n=Vn,i&&(c=n.deletions,c!==null))for(b=0;b<c.length;b++)i&&lm(c[b]);if(n.alternate===null&&(n.flags&2)!==0)i&&N2(n),Tf(i);else{if(n.tag===22){if(c=n.alternate,n.memoizedState!==null){c!==null&&c.memoizedState===null&&i&&lm(c),Tf(i);continue}else if(c!==null&&c.memoizedState!==null){i&&N2(n),Tf(i);continue}}c=n.child,(n.subtreeFlags&a)!==0&&c!==null?(c.return=n,Vn=c):(i&&D2(n),Tf(i))}}Kr=null}function Tf(n){for(;Vn!==null;){var a=Vn,i=n,c=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 15:break;case 1:if((h&1024)!==0&&c!==null){i=void 0,h=c.memoizedProps,c=c.memoizedState;var b=a.stateNode;try{var $=ri(a.type,h);i=b.getSnapshotBeforeUpdate($,c),b.__reactInternalSnapshotBeforeUpdate=i}catch(z){Dt(a,a.return,z)}}break;case 3:if((h&1024)!==0){if(c=a.stateNode.containerInfo,i=c.nodeType,i===9)Vm(c);else if(i===1)switch(c.nodeName){case"HEAD":case"HTML":case"BODY":Vm(c);break;default:c.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:i&&c!==null&&(i=Ss(c.memoizedProps,c.stateNode),h=a.memoizedProps,h=Es(h.default,h.update),h!=="none"&&il(c,i,h,c.memoizedState=[],!0));break;default:if((h&1024)!==0)throw Error(s(163))}if(c=a.sibling,c!==null){c.return=a.return,Vn=c;break}Vn=a.return}}function q2(n,a,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:ls(n,i),c&4&&Zc(5,i);break;case 1:if(ls(n,i),c&4)if(n=i.stateNode,a===null)try{n.componentDidMount()}catch($){Dt(i,i.return,$)}else{var h=ri(i.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(h,a,n.__reactInternalSnapshotBeforeUpdate)}catch($){Dt(i,i.return,$)}}c&64&&C2(i),c&512&&rs(i,i.return);break;case 3:if(ls(n,i),c&64&&(n=i.updateQueue,n!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{gv(n,a)}catch($){Dt(i,i.return,$)}}break;case 27:a===null&&c&4&&M2(i);case 26:case 5:ls(n,i),a===null&&c&4&&nm(i),c&512&&rs(i,i.return);break;case 12:ls(n,i);break;case 31:ls(n,i),c&4&&F2(n,i);break;case 13:ls(n,i),c&4&&U2(n,i),c&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=g7.bind(null,i),Z7(n,i))));break;case 22:if(c=i.memoizedState!==null||Un,!c){var b=a!==null&&a.memoizedState!==null||zt;a=Un,h=zt,Un=c,(zt=b)&&!h?(c=2,(i.subtreeFlags&8772)!==0&&(c|=1),Oa(n,i,c)):ls(n,i),Un=a,zt=h}break;case 30:ls(n,i),c&512&&rs(i,i.return);break;case 7:c&512&&rs(i,i.return);default:ls(n,i)}}function hm(n,a){for(n=n.child;n!==null;)P2(n,a),n=n.sibling}function P2(n,a){switch(n.tag){case 5:case 26:try{var i=n.stateNode;if(a){var c=i.style;typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"}else{var h=n.stateNode,b=n.memoizedProps.style,$=b!=null&&b.hasOwnProperty("display")?b.display:null;h.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(V){Dt(n,n.return,V)}pm(n,a);break;case 6:try{n.stateNode.nodeValue=a?"":n.memoizedProps,Et=!0}catch(V){Dt(n,n.return,V)}break;case 18:try{var z=n.stateNode;a?Nw(z,!0):Nw(n.stateNode,!1)}catch(V){Dt(n,n.return,V)}break;case 22:case 23:n.memoizedState===null&&hm(n,a);break;default:hm(n,a)}}function pm(n,a){if(n.subtreeFlags&67108864)for(n=n.child;n!==null;){e:{var i=n,c=a;switch(i.tag){case 4:P2(i,c);break e;case 22:i.memoizedState===null&&pm(i,c);break e;default:pm(i,c)}}n=n.sibling}}function B2(n){var a=n.alternate;a!==null&&(n.alternate=null,B2(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&sn(a)),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 tn=null,Rr=!1;function La(n,a,i){for(i=i.child;i!==null;)H2(n,a,i),i=i.sibling}function H2(n,a,i){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Xn,i)}catch{}switch(i.tag){case 26:zt||nr(i,a),La(n,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&!zt&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:zt||nr(i,a),Qc(i);var c=tn,h=Rr;go(i.type)&&(tn=i.stateNode,Rr=!1),La(n,a,i),Gw(i.stateNode,i.type,i.memoizedProps),tn=c,Rr=h;break;case 5:zt||nr(i,a),Qc(i);case 6:if(i.tag===6&&Qc(i),c=tn,h=Rr,tn=null,La(n,a,i),tn=c,Rr=h,tn!==null)if(Rr)try{(tn.nodeType===9?tn.body:tn.nodeName==="HTML"?tn.ownerDocument.body:tn).removeChild(i.stateNode),Et=!0}catch(b){Dt(i,a,b)}else try{tn.removeChild(i.stateNode),Et=!0}catch(b){Dt(i,a,b)}break;case 18:tn!==null&&(Rr?(n=tn,Mw(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),Tl(n)):Mw(tn,i.stateNode));break;case 4:c=tn,h=Rr,tn=i.stateNode.containerInfo,Rr=!0,La(n,a,i),tn=c,Rr=h;break;case 0:case 11:case 14:case 15:lo(2,i,a),zt||lo(4,i,a),La(n,a,i);break;case 1:zt||(nr(i,a),c=i.stateNode,typeof c.componentWillUnmount=="function"&&j2(i,a,c)),La(n,a,i);break;case 21:La(n,a,i);break;case 22:zt=(c=zt)||i.memoizedState!==null,La(n,a,i),zt=c;break;case 30:nr(i,a),La(n,a,i);break;case 7:zt||nr(i,a),La(n,a,i);break;default:La(n,a,i)}}function F2(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Tl(n)}catch(i){Dt(a,a.return,i)}}}function U2(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Tl(n)}catch(i){Dt(a,a.return,i)}}function s7(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new _2),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new _2),a;default:throw Error(s(435,n.tag))}}function Cf(n,a){var i=s7(n);a.forEach(function(c){if(!i.has(c)){i.add(c);var h=m7.bind(null,n,c);c.then(h,h)}})}function gr(n,a,i){var c=a.deletions;if(c!==null)for(var h=0;h<c.length;h++){var b=c[h],$=n,z=a,V=z;e:for(;V!==null;){switch(V.tag){case 27:if(go(V.type)){tn=V.stateNode,Rr=!1;break e}break;case 5:tn=V.stateNode,Rr=!1;break e;case 3:case 4:tn=V.stateNode.containerInfo,Rr=!0;break e}V=V.return}if(tn===null)throw Error(s(160));H2($,z,b),tn=null,Rr=!1,$=b.alternate,$!==null&&($.return=null),b.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)V2(a,n,i),a=a.sibling}var Da=null;function V2(n,a,i){var c=n.alternate,h=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(h&4&&(c=n.updateQueue,c=c!==null?c.events:null,c!==null))for(var b=0;b<c.length;b++){var $=c[b];$.ref.impl=$.nextImpl}gr(a,n,i),mr(n),h&4&&(lo(3,n,n.return),Zc(3,n),lo(5,n,n.return));break;case 1:gr(a,n,i),mr(n),h&512&&(zt||c===null||nr(c,c.return)),h&64&&Un&&(n=n.updateQueue,n!==null&&(a=n.callbacks,a!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?a:i.concat(a))));break;case 26:if(b=Da,gr(a,n,i),mr(n),h&512&&(zt||c===null||nr(c,c.return)),h&4)if(h=c!==null?c.memoizedState:null,i=n.memoizedState,c===null)if(i===null)if(n.stateNode===null)if(Un)n.stateNode=jw(n.type,n.memoizedProps,a.containerInfo,n);else{e:{a=n.type,i=n.memoizedProps,h=b.ownerDocument||b;t:switch(a){case"title":c=h.getElementsByTagName("title")[0],(!c||c[Qn]||c[Bt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=h.createElement(a),h.head.insertBefore(c,h.querySelector("head > title"))),rr(c,a,i),c[Bt]=n,tt(c),a=c;break e;case"link":if(b=Qw("link","href",h).get(a+(i.href||""))){for($=0;$<b.length;$++)if(c=b[$],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice($,1);break t}}c=h.createElement(a),rr(c,a,i),h.head.appendChild(c);break;case"meta":if(b=Qw("meta","content",h).get(a+(i.content||""))){for($=0;$<b.length;$++)if(c=b[$],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice($,1);break t}}c=h.createElement(a),rr(c,a,i),h.head.appendChild(c);break;default:throw Error(s(468,a))}c[Bt]=n,tt(c),a=c}n.stateNode=a}else Un||Qm(b,n.type,n.stateNode);else n.stateNode=Zw(b,i,n.memoizedProps);else h!==i?(h===null?(a=c.stateNode,a===null||zt||a.parentNode.removeChild(a)):h.count--,i===null?Un||Qm(b,n.type,n.stateNode):Zw(b,i,n.memoizedProps)):i===null&&n.stateNode!==null&&rm(n,n.memoizedProps,c.memoizedProps);break;case 27:gr(a,n,i),mr(n),h&512&&(zt||c===null||nr(c,c.return)),c!==null&&h&4&&rm(n,n.memoizedProps,c.memoizedProps);break;case 5:if(b=os,os=!1,gr(a,n,i),os=b,mr(n),h&512&&(zt||c===null||nr(c,c.return)),n.flags&32){a=n.stateNode;try{Fi(a,""),Et=!0}catch(ce){Dt(n,n.return,ce)}}h&4&&n.stateNode!=null&&(a=n.memoizedProps,rm(n,a,c!==null?c.memoizedProps:a)),h&1024&&(dm=!0);break;case 6:if(gr(a,n,i),mr(n),h&4){if(n.stateNode===null)throw Error(s(162));a=n.memoizedProps,i=n.stateNode;try{i.nodeValue=a,Et=!0}catch(ce){Dt(n,n.return,ce)}}break;case 3:if(Et=!1,Hf=null,b=Da,Da=lu(a.containerInfo),gr(a,n,i),Da=b,mr(n),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Tl(a.containerInfo)}catch(ce){Dt(n,n.return,ce)}dm&&(dm=!1,G2(n)),Et=!1;break;case 4:h=os,os=Un,c=Pi(),b=Da,Da=lu(n.stateNode.containerInfo),gr(a,n,i),mr(n),Da=b,Et&&Jc&&($f=!0),Et=c,os=h;break;case 12:gr(a,n,i),mr(n);break;case 31:gr(a,n,i),mr(n),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,Cf(n,a)));break;case 13:gr(a,n,i),mr(n),n.child.flags&8192&&n.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Af=Ye()),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,Cf(n,a)));break;case 22:b=n.memoizedState!==null,$=c!==null&&c.memoizedState!==null;var z=Un,V=zt,se=os;Un=z||b,os=se||b,zt=V||$,gr(a,n,i),zt=V,os=se,Un=z,mr(n),h&8192&&(a=n.stateNode,a._visibility=b?a._visibility&-2:a._visibility|1,!b||c===null||$||Un||zt||(a=$||zt,i=Un,c=zt,Un=b||Un,zt=a,co(n,2),Un=i,zt=c),!b&&os||hm(n,b)),h&4&&(a=n.updateQueue,a!==null&&(i=a.retryQueue,i!==null&&(a.retryQueue=null,Cf(n,i))));break;case 19:gr(a,n,i),mr(n),h&4&&(a=n.updateQueue,a!==null&&(n.updateQueue=null,Cf(n,a)));break;case 30:h&512&&(zt||c===null||nr(c,c.return)),h=Pi(),b=Jc,$=(i&335544064)===i,z=n.memoizedProps,Jc=$&&Es(z.default,z.update)!=="none",gr(a,n,i),mr(n),$&&c!==null&&Et&&(n.flags|=4),Jc=b,Et=h;break;case 21:break;case 7:h&512&&(zt||c===null||nr(c,c.return)),c&&c.stateNode!==null&&(c.stateNode._fragmentFiber=n);default:gr(a,n,i),mr(n)}}function mr(n){var a=n.flags;if(a&2){try{for(var i,c=n.return;c!==null;){if(A2(c)){i=c;break}c=c.return}c=null;for(var h=n.return;h!==null;){if(tm(h)){var b=h.stateNode;c===null?c=[b]:c.push(b)}if(em(h))break;h=h.return}var $=c;if(i==null)throw Error(s(160));switch(i.tag){case 27:var z=i.stateNode,V=am(n);vf(n,V,z,$);break;case 5:var se=i.stateNode;i.flags&32&&(Fi(se,""),i.flags&=-33);var ce=am(n);vf(n,ce,se,$);break;case 3:case 4:var be=i.stateNode.containerInfo,ne=am(n);sm(n,ne,be,$);break;default:throw Error(s(161))}}catch(le){Dt(n,n.return,le)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function G2(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;G2(a),a.tag===5&&a.flags&1024&&(a=a.stateNode,$l=!0,a.reset(),$l=!1),n=n.sibling}}function ll(n,a){if(a.subtreeFlags&9270)for(a=a.child;a!==null;)K2(a,n),a=a.sibling;else I2(a)}function K2(n,a){var i=n.alternate;if(i===null)om(n,!1);else switch(n.tag){case 3:if(fm=is=!1,z2(),ll(a,n),!is&&!$f){if(n=as,n!==null)for(var c=0;c<n.length;c+=3){i=n[c];var h=n[c+1];Lw(i,n[c+2]),i=i.ownerDocument.documentElement,i!==null&&i.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+h+")"})}n=a.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"})),fm=!0}as=null;break;case 5:ll(a,n);break;case 4:c=is,is=!1,ll(a,n),is&&($f=!0),is=c;break;case 22:n.memoizedState===null&&(i.memoizedState!==null?om(n,!1):ll(a,n));break;case 30:c=is,h=z2(),is=!1,ll(a,n),is&&(n.flags|=4);var b=n.memoizedProps,$=n.stateNode;a=Ss(b,$),$=Ss(i.memoizedProps,$);var z=Es(b.default,b.update);z==="none"?a=!1:(b=i.memoizedState,i.memoizedState=null,i=n.child,jr=0,a=um(n,i,a,$,z,b,!0),jr!==(b===null?0:b.length)&&(n.flags|=32)),(n.flags&4)!==0&&a?(xl(n,n.memoizedProps.onUpdate),as=h):h!==null&&(h.push.apply(h,as),as=h),is=(n.flags&32)!==0?!0:c;break;default:ll(a,n)}}function ls(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)q2(n,a.alternate,a),a=a.sibling}function co(n,a){for(n=n.child;n!==null;){var i=n,c=a;switch(i.tag){case 0:case 11:case 14:case 15:lo(4,i,i.return),co(i,c);break;case 1:nr(i,i.return);var h=i.stateNode;typeof h.componentWillUnmount=="function"&&j2(i,i.return,h),co(i,c);break;case 27:(c&2)!==0&&Gw(i.stateNode,i.type,i.memoizedProps);case 5:nr(i,i.return),i.tag!==5&&i.tag!==27||Qc(i),co(i,c);break;case 6:Qc(i);break;case 26:nr(i,i.return),h=i.stateNode,i.memoizedState!==null||h===null||zt||h.parentNode.removeChild(h),co(i,c);break;case 22:i.memoizedState===null&&co(i,c);break;case 30:nr(i,i.return),co(i,c);break;case 7:nr(i,i.return);default:co(i,c)}n=n.sibling}}function Oa(n,a,i){for(i=(a.subtreeFlags&8772)!==0?i:i&-2,a=a.child;a!==null;){var c=a.alternate,h=n,b=a,$=b.flags,z=(i&1)!==0;switch(b.tag){case 0:case 11:case 15:Oa(h,b,i),Zc(4,b);break;case 1:if(Oa(h,b,i),c=b,h=c.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(ce){Dt(c,c.return,ce)}if(c=b,h=c.updateQueue,h!==null){var V=c.stateNode;try{var se=h.shared.hiddenCallbacks;if(se!==null)for(h.shared.hiddenCallbacks=null,h=0;h<se.length;h++)xv(se[h],V)}catch(ce){Dt(c,c.return,ce)}}z&&$&64&&C2(b),rs(b,b.return);break;case 27:(i&2)!==0&&M2(b);case 5:b.tag!==5&&b.tag!==27||R2(b),Oa(h,b,i),z&&c===null&&$&4&&nm(b),rs(b,b.return);break;case 6:R2(b);break;case 26:V=b.stateNode,b.memoizedState!==null||V===null||Un||Qm(lu(V.ownerDocument),b.type,V),Oa(h,b,i),z&&c===null&&$&4&&nm(b),rs(b,b.return);break;case 12:Oa(h,b,i);break;case 31:Oa(h,b,i),z&&$&4&&F2(h,b);break;case 13:Oa(h,b,i),z&&$&4&&U2(h,b);break;case 22:b.memoizedState===null&&Oa(h,b,i),rs(b,b.return);break;case 30:Oa(h,b,i),rs(b,b.return);break;case 7:rs(b,b.return);default:Oa(h,b,i)}a=a.sibling}}function xm(n,a){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&_c(i))}function gm(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&_c(n))}function pa(n,a,i,c){var h=(i&335544064)===i;if(a.subtreeFlags&(h?10262:10256))for(a=a.child;a!==null;)W2(n,a,i,c),a=a.sibling;else h&&O2(a)}function W2(n,a,i,c){var h=(i&335544064)===i;h&&a.alternate===null&&a.return!==null&&a.return.alternate!==null&&Ef(a);var b=a.flags;switch(a.tag){case 0:case 11:case 15:pa(n,a,i,c),b&2048&&Zc(9,a);break;case 1:pa(n,a,i,c);break;case 3:pa(n,a,i,c),h&&fm&&(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="")),b&2048&&(b=null,a.alternate!==null&&(b=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==b&&(a.refCount++,b!=null&&_c(b)));break;case 12:if(b&2048){pa(n,a,i,c),b=a.stateNode;try{var $=a.memoizedProps,z=$.id,V=$.onPostCommit;typeof V=="function"&&V(z,a.alternate===null?"mount":"update",b.passiveEffectDuration,-0)}catch(se){Dt(a,a.return,se)}}else pa(n,a,i,c);break;case 31:pa(n,a,i,c);break;case 13:pa(n,a,i,c);break;case 23:break;case 22:$=a.stateNode,z=a.alternate,a.memoizedState!==null?(h&&z!==null&&z.memoizedState===null&&Ef(z),$._visibility&2?pa(n,a,i,c):eu(n,a)):(h&&z!==null&&z.memoizedState!==null&&Ef(a),$._visibility&2?pa(n,a,i,c):($._visibility|=2,cl(n,a,i,c,(a.subtreeFlags&10256)!==0||!1))),b&2048&&xm(z,a);break;case 24:pa(n,a,i,c),b&2048&&gm(a.alternate,a);break;case 30:h&&(b=a.alternate,b!==null&&(ss(b.child,!0),ss(a.child,!0))),pa(n,a,i,c);break;default:pa(n,a,i,c)}}function cl(n,a,i,c,h){for(h=h&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var b=n,$=a,z=i,V=c,se=$.flags;switch($.tag){case 0:case 11:case 15:cl(b,$,z,V,h),Zc(8,$);break;case 23:break;case 22:var ce=$.stateNode;$.memoizedState!==null?ce._visibility&2?cl(b,$,z,V,h):eu(b,$):(ce._visibility|=2,cl(b,$,z,V,h)),h&&se&2048&&xm($.alternate,$);break;case 24:cl(b,$,z,V,h),h&&se&2048&&gm($.alternate,$);break;default:cl(b,$,z,V,h)}a=a.sibling}}function eu(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=n,c=a,h=c.flags;switch(c.tag){case 22:eu(i,c),h&2048&&xm(c.alternate,c);break;case 24:eu(i,c),h&2048&&gm(c.alternate,c);break;default:eu(i,c)}a=a.sibling}}var ai=8192;function si(n,a,i){if(n.subtreeFlags&ai)for(n=n.child;n!==null;)Y2(n,a,i),n=n.sibling}function Y2(n,a,i){switch(n.tag){case 26:si(n,a,i),n.flags&ai&&(n.memoizedState!==null?dM(i,Da,n.memoizedState,n.memoizedProps):(n=n.stateNode,(a&335544128)===a&&nS(i,n)));break;case 5:si(n,a,i),n.flags&ai&&(n=n.stateNode,(a&335544128)===a&&nS(i,n));break;case 3:case 4:var c=Da;Da=lu(n.stateNode.containerInfo),si(n,a,i),Da=c;break;case 22:n.memoizedState===null&&(c=n.alternate,c!==null&&c.memoizedState!==null?(c=ai,ai=16777216,si(n,a,i),ai=c):si(n,a,i));break;case 30:if((n.flags&ai)!==0&&(c=n.memoizedProps.name,c!=null&&c!=="auto")){var h=n.stateNode;h.paired=null,Kr===null&&(Kr=new Map),Kr.set(c,h)}si(n,a,i);break;default:si(n,a,i)}}function X2(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function tu(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];Vn=c,Q2(c,n)}X2(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Z2(n),n=n.sibling}function Z2(n){switch(n.tag){case 0:case 11:case 15:tu(n),n.flags&2048&&lo(9,n,n.return);break;case 3:tu(n);break;case 12:tu(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,jf(n)):tu(n);break;default:tu(n)}}function jf(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];Vn=c,Q2(c,n)}X2(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:lo(8,a,a.return),jf(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,jf(a));break;default:jf(a)}n=n.sibling}}function Q2(n,a){for(;Vn!==null;){var i=Vn;switch(i.tag){case 0:case 11:case 15:lo(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:_c(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,Vn=c;else e:for(i=n;Vn!==null;){c=Vn;var h=c.sibling,b=c.return;if(B2(c),c===i){Vn=null;break e}if(h!==null){h.return=b,Vn=h;break e}Vn=b}}}var o7={getCacheForType:function(n){var a=Jn(Sn),i=a.data.get(n);return i===void 0&&(i=n(),a.data.set(n,i)),i},cacheSignal:function(){return Jn(Sn).controller.signal}},i7=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Ut=null,gt=null,vt=0,Lt=0,Wr=null,uo=!1,ul=!1,mm=!1,zs=0,hn=0,fo=0,oi=0,Rf=0,Yr=0,dl=0,nu=null,Ar=null,ym=!1,Af=0,J2=0,Mf=1/0,Nf=null,ho=null,on=0,Ia=null,ii=null,cs=0,bm=0,km=null,ew=null,fl=null,hl=null,pl=null,ru=0,zf=null;function Xr(){return(Mt&2)!==0&&vt!==0?vt&-vt:te.T!==null?Am():zn()}function tw(){if(Yr===0)if((vt&536870912)===0||xt){var n=ge;ge<<=1,(ge&3932160)===0&&(ge=262144),Yr=n}else Yr=536870912;return n=er.current,n!==null&&(n.flags|=32),Yr}function xl(n,a){if(a!=null){var i=n.stateNode,c=i.ref;c===null&&(c=i.ref=Dw(Ss(n.memoizedProps,i))),hl===null&&(hl=[]),hl.push(a.bind(null,c))}}function Mr(n,a,i){(n===Ut&&(Lt===2||Lt===9)||n.cancelPendingCommit!==null)&&(gl(n,0),po(n,vt,Yr,!1)),Fe(n,i),((Mt&2)===0||n!==Ut)&&(n===Ut&&((Mt&2)===0&&(oi|=i),hn===4&&po(n,vt,Yr,!1)),us(n))}function nw(n,a,i){if((Mt&6)!==0)throw Error(s(327));var c=!i&&(a&127)===0&&(a&n.expiredLanes)===0||Se(n,a),h=c?u7(n,a):wm(n,a,!0),b=c;do{if(h===0){ul&&!c&&po(n,a,0,!1);break}else{if(i=n.current.alternate,b&&!l7(i)){h=wm(n,a,!1),b=!1;continue}if(h===2){if(b=a,n.errorRecoveryDisabledLanes&b)var $=0;else $=n.pendingLanes&-536870913,$=$!==0?$:$&536870912?536870912:0;if($!==0){a=$;e:{var z=n;h=nu;var V=z.current.memoizedState.isDehydrated;if(V&&(gl(z,$).flags|=256),$=wm(z,$,!1),$!==2&&$!==6){if(mm&&!V){z.errorRecoveryDisabledLanes|=b,oi|=b,h=4;break e}b=Ar,Ar=h,b!==null&&(Ar===null?Ar=b:Ar.push.apply(Ar,b))}h=$}if(b=!1,h!==2)continue}}if(h===1){gl(n,0),po(n,a,0,!0);break}e:{switch(c=n,b=h,b){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a&&(a&62914560)!==a)break;case 6:po(c,a,Yr,!uo);break e;case 2:Ar=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(h=Af+300-Ye(),10<h)){if(po(c,a,Yr,!uo),De(c,0,!0)!==0)break e;cs=a,c.timeoutHandle=Bm(rw.bind(null,c,i,Ar,Nf,ym,a,Yr,oi,dl,uo,b,"Throttled",-0,0),h);break e}rw(c,i,Ar,Nf,ym,a,Yr,oi,dl,uo,b,null,-0,0)}}break}while(!0);us(n)}function rw(n,a,i,c,h,b,$,z,V,se,ce,be,ne,le){n.timeoutHandle=-1;var Ae=a.subtreeFlags,_e=(b&335544064)===b;if(be=null,(_e||Ae&8192||(Ae&16785408)===16785408)&&(be={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:es},Kr=null,Y2(a,b,be),_e&&(Ae=be,_e=n.containerInfo,_e=(_e.nodeType===9?_e:_e.ownerDocument).__reactViewTransition,_e!=null&&(Ae.count++,Ae.waitingForViewTransition=!0,Ae=du.bind(Ae),_e.finished.then(Ae,Ae))),Ae=(b&62914560)===b?Af-Ye():(b&4194048)===b?J2-Ye():0,Ae=fM(be,Ae),Ae!==null)){cs=b,n.cancelPendingCommit=Ae(dw.bind(null,n,a,b,i,c,h,$,z,V,se,ce,be,null,ne,le)),po(n,b,$,!se);return}dw(n,a,b,i,c,h,$,z,V,se,ce,be)}function l7(n){for(var a=n;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var h=i[c],b=h.getSnapshot;h=h.value;try{if(!Vr(b(),h))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function po(n,a,i,c){a=Ne(n,a),a&=~Rf,a&=~oi,n.suspendedLanes|=a,n.pingedLanes&=~a,c&&(n.warmLanes|=a),c=n.expirationTimes;for(var h=a;0<h;){var b=31-Mn(h),$=1<<b;c[b]=-1,h&=~$}i!==0&&At(n,i,a)}function Lf(){return(Mt&6)===0?(au(0),!1):!0}function vm(){if(gt!==null){if(Lt===0)var n=gt.return;else n=gt,Cs=Wo=null,Rg(n),nl=null,Bc=0,n=gt;for(;n!==null;)T2(n.alternate,n),n=n.return;gt=null}}function gl(n,a){var i=n.timeoutHandle;return i!==-1&&(n.timeoutHandle=-1,N7(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),cs=0,vm(),Ut=n,gt=i=$s(n.current,null),vt=a,Lt=0,Wr=null,uo=!1,ul=Se(n,a),mm=!1,dl=Yr=Rf=oi=fo=hn=0,Ar=nu=null,ym=!1,zs=Ne(n,a),Bd(),i}function aw(n,a){ut=null,te.H=hf,a===tl||a===Qd?(a=dv(),Lt=3):a===gg?(a=dv(),Lt=4):Lt=a===Ug?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Wr=a,gt===null&&(hn=1,pf(n,ua(a,n.current)))}function sw(){var n=er.current;return n===null?!0:(vt&4194048)===vt?ir===null:(vt&62914560)===vt||(vt&536870912)!==0?n===ir:!1}function ow(){var n=te.H;return te.H=hf,n===null?hf:n}function iw(){var n=te.A;return te.A=o7,n}function Df(){hn=4,uo||(vt&4194048)!==vt&&er.current!==null||(ul=!0),(fo&134217727)===0&&(oi&134217727)===0||Ut===null||po(Ut,vt,Yr,!1)}function wm(n,a,i){var c=Mt;Mt|=2;var h=ow(),b=iw();(Ut!==n||vt!==a)&&(Nf=null,gl(n,a)),a=!1;var $=hn;e:do try{if(Lt!==0&>!==null){var z=gt,V=Wr;switch(Lt){case 8:vm(),$=6;break e;case 3:case 2:case 9:case 6:er.current===null&&(a=!0);var se=Lt;if(Lt=0,Wr=null,ml(n,z,V,se),i&&ul){$=0;break e}break;default:se=Lt,Lt=0,Wr=null,ml(n,z,V,se)}}c7(),$=hn;break}catch(ce){aw(n,ce)}while(!0);return a&&n.shellSuspendCounter++,Cs=Wo=null,Mt=c,te.H=h,te.A=b,gt===null&&(Ut=null,vt=0,Bd()),$}function c7(){for(;gt!==null;)lw(gt)}function u7(n,a){var i=Mt;Mt|=2;var c=ow(),h=iw();Ut!==n||vt!==a?(Nf=null,Mf=Ye()+500,gl(n,a)):ul=Se(n,a);e:do try{if(Lt!==0&>!==null){a=gt;var b=Wr;t:switch(Lt){case 1:Lt=0,Wr=null,ml(n,a,b,1);break;case 2:case 9:if(cv(b)){Lt=0,Wr=null,cw(a);break}a=function(){Lt!==2&&Lt!==9||Ut!==n||(Lt=7),us(n)},b.then(a,a);break e;case 3:Lt=7;break e;case 4:Lt=5;break e;case 7:cv(b)?(Lt=0,Wr=null,cw(a)):(Lt=0,Wr=null,ml(n,a,b,7));break;case 5:var $=null;switch(gt.tag){case 26:$=gt.memoizedState;case 5:case 27:var z=gt;if($?eS($):z.stateNode.complete){Lt=0,Wr=null;var V=z.sibling;if(V!==null)gt=V;else{var se=z.return;se!==null?(gt=se,Of(se)):gt=null}break t}}Lt=0,Wr=null,ml(n,a,b,5);break;case 6:Lt=0,Wr=null,ml(n,a,b,6);break;case 8:vm(),hn=6;break e;default:throw Error(s(462))}}d7();break}catch(ce){aw(n,ce)}while(!0);return Cs=Wo=null,te.H=c,te.A=h,Mt=i,gt!==null?0:(Ut=null,vt=0,Bd(),hn)}function d7(){for(;gt!==null&&!Jt();)lw(gt)}function lw(n){var a=E2(n.alternate,n,zs);n.memoizedProps=n.pendingProps,a===null?Of(n):gt=a}function cw(n){var a=n,i=a.alternate;switch(a.tag){case 15:case 0:a=m2(i,a,a.pendingProps,a.type,void 0,vt);break;case 11:a=m2(i,a,a.pendingProps,a.type.render,a.ref,vt);break;case 5:Rg(a);var c=a;c===Fn&&(xt?(Kd(c),c.tag===5&&c.stateNode!=null&&(Kt=c.stateNode)):(Kd(c),xt=!0));default:T2(i,a),a=gt=Qk(a,zs),a=E2(i,a,zs)}n.memoizedProps=n.pendingProps,a===null?Of(n):gt=a}function ml(n,a,i,c){Cs=Wo=null,Rg(a),nl=null,Bc=0;var h=a.return;try{if(QA(n,h,a,i,vt)){hn=1,pf(n,ua(i,n.current)),gt=null;return}}catch(b){if(h!==null)throw gt=h,b;hn=1,pf(n,ua(i,n.current)),gt=null;return}a.flags&32768?(xt||c===1?n=!0:ul||(vt&536870912)!==0?n=!1:(uo=n=!0,(c===2||c===9||c===3||c===6)&&(c=er.current,c!==null&&c.tag===13&&(c.flags|=16384))),uw(a,n)):Of(a)}function Of(n){var a=n;do{if((a.flags&32768)!==0){uw(a,uo);return}n=a.return;var i=n7(a.alternate,a,zs);if(i!==null){gt=i;return}if(a=a.sibling,a!==null){gt=a;return}gt=a=n}while(a!==null);hn===0&&(hn=5)}function uw(n,a){do{var i=r7(n.alternate,n);if(i!==null){i.flags&=32767,gt=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(n=n.sibling,n!==null)){gt=n;return}gt=n=i}while(n!==null);hn=6,gt=null}function dw(n,a,i,c,h,b,$,z,V,se,ce,be){n.cancelPendingCommit=null;do If();while(on!==0);if((Mt&6)!==0)throw Error(s(327));if(a!==null){if(a===n.current)throw Error(s(177));n===Ut&&(gt=Ut=null,vt=0),ii=a,Ia=n,cs=i,km=h,ew=c,f7(n,a,i,$,z,V,be)}}function f7(n,a,i,c,h,b,$){var z=a.lanes|a.childLanes;if(bm=z,z|=rg,St(n,i,z,c,h,b),hl=null,(i&335544064)===i?(pl=PA(n),c=10262):(pl=null,c=10256),(a.subtreeFlags&c)!==0||(a.flags&c)!==0?(n.callbackNode=null,n.callbackPriority=0,y7(an,function(){return Tm(),null})):(n.callbackNode=null,n.callbackPriority=0),wf=!1,c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=te.T,te.T=null,h=he.p,he.p=2,b=Mt,Mt|=4;try{a7(n,a,i)}finally{Mt=b,he.p=h,te.T=c}}on=1,wf?fl=_7($,n.containerInfo,pl,Sm,Em,p7,$m,Tm,h7):(Sm(),Em(),$m())}function h7(n){if(on!==0){var a=Ia.onRecoverableError;a(n,{componentStack:null})}}function p7(){on===3&&(on=0,K2(ii,Ia),on=4)}function Sm(){if(on===1){on=0;var n=Ia,a=ii,i=cs,c=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||c){c=te.T,te.T=null;var h=he.p;he.p=2;var b=Mt;Mt|=4;try{Jc=$f=!1,V2(a,n,i),i=_m;var $=Hk(n.containerInfo),z=i.focusedElem,V=i.selectionRange;if($!==z&&z&&z.ownerDocument&&Bk(z.ownerDocument.documentElement,z)){if(V!==null&&Qx(z)){var se=V.start,ce=V.end;if(ce===void 0&&(ce=se),"selectionStart"in z)z.selectionStart=se,z.selectionEnd=Math.min(ce,z.value.length);else{var be=z.ownerDocument||document,ne=be&&be.defaultView||window;if(ne.getSelection){var le=ne.getSelection(),Ae=z.textContent.length,_e=Math.min(V.start,Ae),dt=V.end===void 0?_e:Math.min(V.end,Ae);!le.extend&&_e>dt&&($=dt,dt=_e,_e=$);var re=Pk(z,_e),J=Pk(z,dt);if(re&&J&&(le.rangeCount!==1||le.anchorNode!==re.node||le.anchorOffset!==re.offset||le.focusNode!==J.node||le.focusOffset!==J.offset)){var ie=be.createRange();ie.setStart(re.node,re.offset),le.removeAllRanges(),_e>dt?(le.addRange(ie),le.extend(J.node,J.offset)):(ie.setEnd(J.node,J.offset),le.addRange(ie))}}}}for(be=[],le=z;le=le.parentNode;)le.nodeType===1&&be.push({element:le,left:le.scrollLeft,top:le.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<be.length;z++){var me=be[z];me.element.scrollLeft=me.left,me.element.scrollTop=me.top}}$l=!!Im,_m=Im=null}finally{Mt=b,he.p=h,te.T=c}}n.current=a,on=2}}function Em(){if(on===2){on=0;var n=Ia,a=ii,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=te.T,te.T=null;var c=he.p;he.p=2;var h=Mt;Mt|=4;try{q2(n,a.alternate,a)}finally{Mt=h,he.p=c,te.T=i}}on=3}}function $m(){if(on===4||on===3){on=0;var n=fl;fl=null,kn();var a=Ia,i=ii,c=cs,h=ew,b=(c&335544064)===c?10262:10256;if((i.subtreeFlags&b)!==0||(i.flags&b)!==0?on=5:(on=0,ii=Ia=null,fw(a,a.pendingLanes)),b=a.pendingLanes,b===0&&(ho=null),mn(c),i=i.stateNode,Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Xn,i,void 0,(i.current.flags&128)===128)}catch{}if(h!==null){i=te.T,b=he.p,he.p=2,te.T=null;try{for(var $=a.onRecoverableError,z=0;z<h.length;z++){var V=h[z];$(V.value,{componentStack:V.stack})}}finally{te.T=i,he.p=b}}if(h=hl,$=pl,pl=null,h!==null&&(hl=null,$===null&&($=[]),n!==null))for(V=0;V<h.length;V++)i=(0,h[V])($),i!==void 0&&n.finished.finally(i);(cs&3)!==0&&If(),us(a),b=a.pendingLanes,(c&261930)!==0&&(b&42)!==0?a===zf?ru++:(ru=0,zf=a):(ru=0,zf=null),au(0)}}function fw(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,_c(a)))}function If(){return fl!==null&&(fl.skipTransition(),fl=null),Sm(),Em(),$m(),Tm()}function Tm(){if(on!==5)return!1;var n=Ia,a=bm;bm=0;var i=mn(cs),c=te.T,h=he.p;try{he.p=32>i?32:i,te.T=null,i=km,km=null;var b=Ia,$=cs;if(on=0,ii=Ia=null,cs=0,(Mt&6)!==0)throw Error(s(331));var z=Mt;if(Mt|=4,Z2(b.current),W2(b,b.current,$,i),Mt=z,au(0,!1),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Xn,b)}catch{}return!0}finally{he.p=h,te.T=c,fw(n,a)}}function hw(n,a,i){a=ua(i,a),a=Fg(n.stateNode,a,2),n=ao(n,a,2),n!==null&&(Fe(n,2),us(n))}function Dt(n,a,i){if(n.tag===3)hw(n,n,i);else for(;a!==null;){if(a.tag===3){hw(a,n,i);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ho===null||!ho.has(c))){n=ua(i,n),i=c2(2),c=ao(a,i,2),c!==null&&(u2(i,c,a,n),Fe(c,2),us(c));break}}a=a.return}}function Cm(n,a,i){var c=n.pingCache;if(c===null){c=n.pingCache=new i7;var h=new Set;c.set(a,h)}else h=c.get(a),h===void 0&&(h=new Set,c.set(a,h));h.has(i)||(mm=!0,h.add(i),n=x7.bind(null,n,a,i),a.then(n,n))}function x7(n,a,i){var c=n.pingCache;c!==null&&c.delete(a),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Ut===n&&(vt&i)===i&&((hn===4||hn===3&&(vt&62914560)===vt&&300>Ye()-Af)&&(Mt&2)===0?gl(n,0):Rf|=i,dl===vt&&(dl=0)),us(n)}function pw(n,a){a===0&&(a=Be()),n=Vo(n,a),n!==null&&(Fe(n,a),us(n))}function g7(n){var a=n.memoizedState,i=0;a!==null&&(i=a.retryLane),pw(n,i)}function m7(n,a){var i=0;switch(n.tag){case 31:case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(i=h.retryLane);break;case 19:c=n.stateNode;break;case 22:c=n.stateNode._retryCache;break;default:throw Error(s(314))}c!==null&&c.delete(a),pw(n,i)}function y7(n,a){return Vt(n,a)}var yl=null,bl=null,jm=!1,_f=!1,Rm=!1,xo=0;function us(n){n!==bl&&n.next===null&&(bl===null?yl=bl=n:bl=bl.next=n),_f=!0,jm||(jm=!0,k7())}function au(n,a){if(!Rm&&_f){Rm=!0;do for(var i=!1,c=yl;c!==null;){if(n!==0){var h=c.pendingLanes;if(h===0)var b=0;else{var $=c.suspendedLanes,z=c.pingedLanes;b=(1<<31-Mn(42|n)+1)-1,b&=h&~($&~z),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(i=!0,yw(c,b))}else b=vt,b=De(c,c===Ut?b:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(b&3)===0||Se(c,b)||(i=!0,yw(c,b));c=c.next}while(i);Rm=!1}}function b7(){xw()}function xw(){_f=jm=!1;var n=0;xo!==0&&M7()&&(n=xo);for(var a=Ye(),i=null,c=yl;c!==null;){var h=c.next,b=gw(c,a);b===0?(c.next=null,i===null?yl=h:i.next=h,h===null&&(bl=i)):(i=c,(n!==0||(b&3)!==0)&&(_f=!0)),c=h}on!==0&&on!==5||au(n),xo!==0&&(xo=0)}function gw(n,a){for(var i=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,b=n.pendingLanes&-62914561;0<b;){var $=31-Mn(b),z=1<<$,V=h[$];V===-1?((z&i)===0||(z&c)!==0)&&(h[$]=Ke(z,a)):V<=a&&(n.expiredLanes|=z),b&=~z}if(a=Ut,i=vt,i=De(n,n===a?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c=n.callbackNode,i===0||n===a&&(Lt===2||Lt===9)||n.cancelPendingCommit!==null)return c!==null&&c!==null&&Yn(c),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||Se(n,i)){if(a=i&-i,a===n.callbackPriority)return a;switch(c!==null&&Yn(c),mn(i)){case 2:case 8:i=un;break;case 32:i=an;break;case 268435456:i=Ja;break;default:i=an}return c=mw.bind(null,n),i=Vt(i,c),n.callbackPriority=a,n.callbackNode=i,a}return c!==null&&c!==null&&Yn(c),n.callbackPriority=2,n.callbackNode=null,2}function mw(n,a){if(on!==0&&on!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(If()&&n.callbackNode!==i)return null;var c=vt;return c=De(n,n===Ut?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),c===0?null:(nw(n,c,a),gw(n,Ye()),n.callbackNode!=null&&n.callbackNode===i?mw.bind(null,n):null)}function yw(n,a){if(If())return null;nw(n,a,!0)}function k7(){z7(function(){(Mt&6)!==0?Vt(en,b7):xw()})}function Am(){if(xo===0){var n=Zo;n===0&&(n=oe,oe<<=1,(oe&261888)===0&&(oe=256)),xo=n}return xo}function bw(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:zd(n)}function v7(n,a,i,c,h){if(a==="submit"&&i&&i.stateNode===h){var b=bw((h[Yt]||null).action),$=c.submitter;$&&(a=(a=$[Yt]||null)?bw(a.formAction):$.getAttribute("formAction"),a!==null&&(b=a,$=null));var z=new Id("action","action",null,c,h);n.push({event:z,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(xo!==0){var V=new FormData(h,$);_g(i,{pending:!0,data:V,method:h.method,action:b},null,V)}}else typeof b=="function"&&(z.preventDefault(),V=new FormData(h,$),_g(i,{pending:!0,data:V,method:h.method,action:b},b,V))},currentTarget:h}]})}}for(var Mm=0;Mm<ng.length;Mm++){var Nm=ng[Mm],w7=Nm.toLowerCase(),S7=Nm[0].toUpperCase()+Nm.slice(1);za(w7,"on"+S7)}za(Vk,"onAnimationEnd"),za(Gk,"onAnimationIteration"),za(Kk,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za(NA,"onTransitionRun"),za(zA,"onTransitionStart"),za(LA,"onTransitionCancel"),za(Wk,"onTransitionEnd"),vs("onMouseEnter",["mouseout","mouseover"]),vs("onMouseLeave",["mouseout","mouseover"]),vs("onPointerEnter",["pointerout","pointerover"]),vs("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var su="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(" "),E7=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(su));function kw(n,a){a=(a&4)!==0;for(var i=0;i<n.length;i++){var c=n[i],h=c.event;c=c.listeners;e:{var b=void 0;if(a)for(var $=c.length-1;0<=$;$--){var z=c[$],V=z.instance,se=z.currentTarget;if(z=z.listener,V!==b&&h.isPropagationStopped())break e;b=z,h.currentTarget=se;try{b(h)}catch(ce){Pd(ce)}h.currentTarget=null,b=V}else for($=0;$<c.length;$++){if(z=c[$],V=z.instance,se=z.currentTarget,z=z.listener,V!==b&&h.isPropagationStopped())break e;b=z,h.currentTarget=se;try{b(h)}catch(ce){Pd(ce)}h.currentTarget=null,b=V}}}}function mt(n,a){var i=a[Zn];i===void 0&&(i=a[Zn]=new Set);var c=n+"__bubble";i.has(c)||(vw(a,n,2,!1),i.add(c))}function zm(n,a,i){var c=0;a&&(c|=4),vw(i,n,c,a)}var qf="_reactListening"+Math.random().toString(36).slice(2);function Lm(n){if(!n[qf]){n[qf]=!0,Po.forEach(function(i){i!=="selectionchange"&&(E7.has(i)||zm(i,!1,n),zm(i,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[qf]||(a[qf]=!0,zm("selectionchange",!1,a))}}function vw(n,a,i,c){switch(uS(a)){case 2:var h=gM;break;case 8:h=mM;break;default:h=ey}i=h.bind(null,a,i,n),h=void 0,!Hx||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(a,i,{capture:!0,passive:h}):n.addEventListener(a,i,!0):h!==void 0?n.addEventListener(a,i,{passive:h}):n.addEventListener(a,i,!1)}function Dm(n,a,i,c,h){var b=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var $=c.tag;if($===3||$===4){var z=c.stateNode.containerInfo;if(z===h)break;if($===4)for($=c.return;$!==null;){var V=$.tag;if((V===3||V===4)&&$.stateNode.containerInfo===h)return;$=$.return}for(;z!==null;){if($=dn(z),$===null)return;if(V=$.tag,V===5||V===6||V===26||V===27){c=b=$;continue e}z=z.parentNode}}c=c.return}vk(function(){var se=b,ce=Px(i),be=[];e:{var ne=Yk.get(n);if(ne!==void 0){var le=Id,Ae=n;switch(n){case"keypress":if(Dd(i)===0)break e;case"keydown":case"keyup":le=lA;break;case"focusin":Ae="focus",le=Gx;break;case"focusout":Ae="blur",le=Gx;break;case"beforeblur":case"afterblur":le=Gx;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=Ek;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=XR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=hA;break;case Vk:case Gk:case Kk:le=JR;break;case Wk:le=xA;break;case"scroll":case"scrollend":le=WR;break;case"wheel":le=mA;break;case"copy":case"cut":case"paste":le=tA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=Tk;break;case"submit":le=dA;break;case"toggle":case"beforetoggle":le=bA}var _e=(a&4)!==0,dt=!_e&&(n==="scroll"||n==="scrollend"),re=_e?ne!==null?ne+"Capture":null:ne;_e=[];for(var J=se,ie;J!==null;){var me=J;if(ie=me.stateNode,me=me.tag,me!==5&&me!==26&&me!==27||ie===null||re===null||(me=Cc(J,re),me!=null&&_e.push(ou(J,me,ie))),dt)break;J=J.return}0<_e.length&&(ne=new le(ne,Ae,null,i,ce),be.push({event:ne,listeners:_e}))}}if((a&7)===0){e:{if(le=n==="mouseover"||n==="pointerover",ne=n==="mouseout"||n==="pointerout",le&&i!==qx&&(Ae=i.relatedTarget||i.fromElement)&&(dn(Ae)||Ae[wn]))break e;(ne||le)&&(Ae=ce.window===ce?ce:(le=ce.ownerDocument)?le.defaultView||le.parentWindow:window,ne?(le=i.relatedTarget||i.toElement,ne=se,le=le?dn(le):null,le!==null&&(dt=l(le),_e=le.tag,le!==dt||_e!==5&&_e!==27&&_e!==6)&&(le=null)):(ne=null,le=se),ne!==le&&(_e=Ek,me="onMouseLeave",re="onMouseEnter",J="mouse",(n==="pointerout"||n==="pointerover")&&(_e=Tk,me="onPointerLeave",re="onPointerEnter",J="pointer"),dt=ne==null?Ae:Ma(ne),ie=le==null?Ae:Ma(le),Ae=new _e(me,J+"leave",ne,i,ce),Ae.target=dt,Ae.relatedTarget=ie,me=null,dn(ce)===se&&(_e=new _e(re,J+"enter",le,i,ce),_e.target=ie,_e.relatedTarget=dt,me=_e),dt=me,_e=ne&&le?L(ne,le,$7):null,ne!==null&&ww(be,Ae,ne,_e,!1),le!==null&&dt!==null&&ww(be,dt,le,_e,!0)))}e:{if(ne=se?Ma(se):window,le=ne.nodeName&&ne.nodeName.toLowerCase(),le==="select"||le==="input"&&ne.type==="file")var Oe=Lk;else if(Nk(ne))if(Dk)Oe=RA;else{Oe=CA;var wt=TA}else le=ne.nodeName,!le||le.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?se&&_x(se.elementType)&&(Oe=Lk):Oe=jA;if(Oe&&(Oe=Oe(n,se))){zk(be,Oe,i,ce);break e}wt&&wt(n,ne,se)}switch(wt=se?Ma(se):window,n){case"focusin":(Nk(wt)||wt.contentEditable==="true")&&(Ki=wt,Jx=se,Dc=null);break;case"focusout":Dc=Jx=Ki=null;break;case"mousedown":eg=!0;break;case"contextmenu":case"mouseup":case"dragend":eg=!1,Fk(be,i,ce);break;case"selectionchange":if(MA)break;case"keydown":case"keyup":Fk(be,i,ce)}var Ue;if(Wx)e:{switch(n){case"compositionstart":var Xe="onCompositionStart";break e;case"compositionend":Xe="onCompositionEnd";break e;case"compositionupdate":Xe="onCompositionUpdate";break e}Xe=void 0}else Gi?Ak(n,i)&&(Xe="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Xe="onCompositionStart");Xe&&(Ck&&i.locale!=="ko"&&(Gi||Xe!=="onCompositionStart"?Xe==="onCompositionEnd"&&Gi&&(Ue=wk()):(Ys=ce,Fx="value"in Ys?Ys.value:Ys.textContent,Gi=!0)),wt=Pf(se,Xe),0<wt.length&&(Xe=new $k(Xe,n,null,i,ce),be.push({event:Xe,listeners:wt}),Ue?Xe.data=Ue:(Ue=Mk(i),Ue!==null&&(Xe.data=Ue)))),(Ue=vA?wA(n,i):SA(n,i))&&(Xe=Pf(se,"onBeforeInput"),0<Xe.length&&(wt=new $k("onBeforeInput","beforeinput",null,i,ce),be.push({event:wt,listeners:Xe}),wt.data=Ue)),v7(be,n,se,i,ce)}kw(be,a)})}function ou(n,a,i){return{instance:n,listener:a,currentTarget:i}}function Pf(n,a){for(var i=a+"Capture",c=[];n!==null;){var h=n,b=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||b===null||(h=Cc(n,i),h!=null&&c.unshift(ou(n,h,b)),h=Cc(n,a),h!=null&&c.push(ou(n,h,b))),n.tag===3)return c;n=n.return}return[]}function $7(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ww(n,a,i,c,h){for(var b=a._reactName,$=[];i!==null&&i!==c;){var z=i,V=z.alternate,se=z.stateNode;if(z=z.tag,V!==null&&V===c)break;z!==5&&z!==26&&z!==27||se===null||(V=se,h?(se=Cc(i,b),se!=null&&$.unshift(ou(i,se,V))):h||(se=Cc(i,b),se!=null&&$.push(ou(i,se,V)))),i=i.return}$.length!==0&&n.push({event:a,listeners:$})}var T7=/\r\n?/g,C7=/\u0000|\uFFFD/g;function Sw(n){return(typeof n=="string"?n:""+n).replace(T7,`
|
|
10
|
-
`).replace(C7,"")}function Ew(n,a){return a=Sw(a),Sw(n)===a}function Ot(n,a,i,c,h,b){switch(i){case"children":if(typeof c=="string")a==="body"||a==="textarea"&&c===""||Fi(n,c);else if(typeof c=="number"||typeof c=="bigint")a!=="body"&&Fi(n,""+c);else return;break;case"className":Ho(n,"class",c);break;case"tabIndex":Ho(n,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ho(n,i,c);break;case"style":bk(n,c,b);return;case"data":if(a!=="object"){Ho(n,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||i!=="href")){n.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(i);break}c=zd(c),n.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){n.setAttribute(i,"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 b=="function"&&(i==="formAction"?(a!=="input"&&Ot(n,a,"name",h.name,h,null),Ot(n,a,"formEncType",h.formEncType,h,null),Ot(n,a,"formMethod",h.formMethod,h,null),Ot(n,a,"formTarget",h.formTarget,h,null)):(Ot(n,a,"encType",h.encType,h,null),Ot(n,a,"method",h.method,h,null),Ot(n,a,"target",h.target,h,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){n.removeAttribute(i);break}c=zd(c),n.setAttribute(i,c);break;case"onClick":c!=null&&(n.onclick=es);return;case"onScroll":c!=null&&mt("scroll",n);return;case"onScrollEnd":c!=null&&mt("scrollend",n);return;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(i=c.__html,i!=null){if(h.children!=null)throw Error(s(60));b?.__html!==i&&(n.innerHTML=i)}}break;case"multiple":n.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":n.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){n.removeAttribute("xlink:href");break}i=zd(c),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(i,c):n.removeAttribute(i);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":c&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":c===!0?n.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?n.setAttribute(i,c):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?n.setAttribute(i,c):n.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?n.removeAttribute(i):n.setAttribute(i,c);break;case"popover":mt("beforetoggle",n),mt("toggle",n),Bi(n,"popover",c);break;case"xlinkActuate":Ee(n,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Ee(n,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Ee(n,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Ee(n,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Ee(n,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Ee(n,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Ee(n,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Ee(n,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Ee(n,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Bi(n,"is",c);break;case"innerText":case"textContent":return;default:if(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")i=GR.get(i)||i,Bi(n,i,c);else return}Et=!0}function Om(n,a,i,c,h,b){switch(i){case"style":bk(n,c,b);return;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(i=c.__html,i!=null){if(h.children!=null)throw Error(s(60));b?.__html!==i&&(n.innerHTML=i)}}break;case"children":if(typeof c=="string")Fi(n,c);else if(typeof c=="number"||typeof c=="bigint")Fi(n,""+c);else return;break;case"onScroll":c!=null&&mt("scroll",n);return;case"onScrollEnd":c!=null&&mt("scrollend",n);return;case"onClick":c!=null&&(n.onclick=es);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Bo.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(h=i.endsWith("Capture"),b=i.slice(2,h?i.length-7:void 0),a=n[Yt]||null,a=a!=null?a[i]:null,typeof a=="function"&&n.removeEventListener(b,a,h),typeof c=="function")){typeof a!="function"&&a!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(b,c,h);break e}Et=!0,i in n?n[i]=c:c===!0?n.setAttribute(i,""):Bi(n,i,c)}return}Et=!0}function rr(n,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",n),mt("load",n);var c=!1,h=!1,b;for(b in i)if(i.hasOwnProperty(b)){var $=i[b];if($!=null)switch(b){case"src":c=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Ot(n,a,b,$,i,null)}}h&&Ot(n,a,"srcSet",i.srcSet,i,null),c&&Ot(n,a,"src",i.src,i,null);return;case"input":mt("invalid",n);var z=b=$=h=null,V=null,se=null;for(c in i)if(i.hasOwnProperty(c)){var ce=i[c];if(ce!=null)switch(c){case"name":h=ce;break;case"type":$=ce;break;case"checked":V=ce;break;case"defaultChecked":se=ce;break;case"value":b=ce;break;case"defaultValue":z=ce;break;case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(s(137,a));break;default:Ot(n,a,c,ce,i,null)}}xk(n,b,z,V,se,$,h,!1);return;case"select":mt("invalid",n),c=$=b=null;for(h in i)if(i.hasOwnProperty(h)&&(z=i[h],z!=null))switch(h){case"value":b=z;break;case"defaultValue":$=z;break;case"multiple":c=z;default:Ot(n,a,h,z,i,null)}a=b,i=$,n.multiple=!!c,a!=null?Hi(n,!!c,a,!1):i!=null&&Hi(n,!!c,i,!0);return;case"textarea":mt("invalid",n),b=h=c=null;for($ in i)if(i.hasOwnProperty($)&&(z=i[$],z!=null))switch($){case"value":c=z;break;case"defaultValue":h=z;break;case"children":b=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(91));break;default:Ot(n,a,$,z,i,null)}mk(n,c,h,b);return;case"option":for(V in i)i.hasOwnProperty(V)&&(c=i[V],c!=null)&&(V==="selected"?n.selected=c&&typeof c!="function"&&typeof c!="symbol":Ot(n,a,V,c,i,null));return;case"dialog":mt("beforetoggle",n),mt("toggle",n),mt("cancel",n),mt("close",n);break;case"iframe":case"object":mt("load",n);break;case"video":case"audio":for(c=0;c<su.length;c++)mt(su[c],n);break;case"image":mt("error",n),mt("load",n);break;case"details":mt("toggle",n);break;case"embed":case"source":case"link":mt("error",n),mt("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(se in i)if(i.hasOwnProperty(se)&&(c=i[se],c!=null))switch(se){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:Ot(n,a,se,c,i,null)}return;default:if(_x(a)){for(ce in i)i.hasOwnProperty(ce)&&(c=i[ce],c!==void 0&&Om(n,a,ce,c,i,void 0));return}}for(z in i)i.hasOwnProperty(z)&&(c=i[z],c!=null&&Ot(n,a,z,c,i,null))}var j7={};function R7(n,a,i,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,b=null,$=null,z=null,V=null,se=null,ce=null;for(le in i){var be=i[le];if(i.hasOwnProperty(le)&&be!=null)switch(le){case"checked":break;case"value":break;case"defaultValue":V=be;default:c.hasOwnProperty(le)||Ot(n,a,le,null,c,be)}}for(var ne in c){var le=c[ne];if(be=i[ne],c.hasOwnProperty(ne)&&(le!=null||be!=null))switch(ne){case"type":le!==be&&(Et=!0),b=le;break;case"name":le!==be&&(Et=!0),h=le;break;case"checked":le!==be&&(Et=!0),se=le;break;case"defaultChecked":le!==be&&(Et=!0),ce=le;break;case"value":le!==be&&(Et=!0),$=le;break;case"defaultValue":le!==be&&(Et=!0),z=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(s(137,a));break;default:le!==be&&Ot(n,a,ne,le,c,be)}}Ox(n,$,z,V,se,ce,b,h);return;case"select":le=$=z=ne=null;for(b in i)if(V=i[b],i.hasOwnProperty(b)&&V!=null)switch(b){case"value":break;case"multiple":le=V;default:c.hasOwnProperty(b)||Ot(n,a,b,null,c,V)}for(h in c)if(b=c[h],V=i[h],c.hasOwnProperty(h)&&(b!=null||V!=null))switch(h){case"value":b!==V&&(Et=!0),ne=b;break;case"defaultValue":b!==V&&(Et=!0),z=b;break;case"multiple":b!==V&&(Et=!0),$=b;default:b!==V&&Ot(n,a,h,b,c,V)}a=z,i=$,c=le,ne!=null?Hi(n,!!i,ne,!1):!!c!=!!i&&(a!=null?Hi(n,!!i,a,!0):Hi(n,!!i,i?[]:"",!1));return;case"textarea":le=ne=null;for(z in i)if(h=i[z],i.hasOwnProperty(z)&&h!=null&&!c.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:Ot(n,a,z,null,c,h)}for($ in c)if(h=c[$],b=i[$],c.hasOwnProperty($)&&(h!=null||b!=null))switch($){case"value":h!==b&&(Et=!0),ne=h;break;case"defaultValue":h!==b&&(Et=!0),le=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:h!==b&&Ot(n,a,$,h,c,b)}gk(n,ne,le);return;case"option":for(var Ae in i)ne=i[Ae],i.hasOwnProperty(Ae)&&ne!=null&&!c.hasOwnProperty(Ae)&&(Ae==="selected"?n.selected=!1:Ot(n,a,Ae,null,c,ne));for(V in c)ne=c[V],le=i[V],c.hasOwnProperty(V)&&ne!==le&&(ne!=null||le!=null)&&(V==="selected"?(ne!==le&&(Et=!0),n.selected=ne&&typeof ne!="function"&&typeof ne!="symbol"):Ot(n,a,V,ne,c,le));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in i)ne=i[_e],i.hasOwnProperty(_e)&&ne!=null&&!c.hasOwnProperty(_e)&&Ot(n,a,_e,null,c,ne);for(se in c)if(ne=c[se],le=i[se],c.hasOwnProperty(se)&&ne!==le&&(ne!=null||le!=null))switch(se){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(s(137,a));break;default:Ot(n,a,se,ne,c,le)}return;default:if(_x(a)){for(var dt in i)ne=i[dt],i.hasOwnProperty(dt)&&ne!==void 0&&!c.hasOwnProperty(dt)&&Om(n,a,dt,void 0,c,ne);for(ce in c)ne=c[ce],le=i[ce],!c.hasOwnProperty(ce)||ne===le||ne===void 0&&le===void 0||Om(n,a,ce,ne,c,le);return}}for(var re in i)ne=i[re],i.hasOwnProperty(re)&&ne!=null&&!c.hasOwnProperty(re)&&Ot(n,a,re,null,c,ne);for(be in c)ne=c[be],le=i[be],!c.hasOwnProperty(be)||ne===le||ne==null&&le==null||Ot(n,a,be,ne,c,le)}function $w(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function A7(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,i=performance.getEntriesByType("resource"),c=0;c<i.length;c++){var h=i[c],b=h.transferSize,$=h.initiatorType,z=h.duration;if(b&&z&&$w($)){for($=0,z=h.responseEnd,c+=1;c<i.length;c++){var V=i[c],se=V.startTime;if(se>z)break;var ce=V.transferSize,be=V.initiatorType;ce&&$w(be)&&(V=V.responseEnd,$+=ce*(V<z?1:(z-se)/(V-se)))}if(--c,a+=8*(b+$)/(h.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Im=null,_m=null;function iu(n){return n.nodeType===9?n:n.ownerDocument}function Tw(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 Cw(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function jw(n,a,i,c){return i=iu(i).createElement(n),i[Bt]=c,i[Yt]=a,rr(i,n,a),tt(i),i}function qm(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Pm=null;function M7(){var n=window.event;return n&&n.type==="popstate"?n===Pm?!1:(Pm=n,!0):(Pm=null,!1)}var Bm=typeof setTimeout=="function"?setTimeout:void 0,N7=typeof clearTimeout=="function"?clearTimeout:void 0,Rw=typeof Promise=="function"?Promise:void 0,Aw=typeof requestAnimationFrame=="function"?requestAnimationFrame:Bm,z7=typeof queueMicrotask=="function"?queueMicrotask:typeof Rw<"u"?function(n){return Rw.resolve(null).then(n).catch(L7)}:Bm;function L7(n){setTimeout(function(){throw n})}function go(n){return n==="head"}function Mw(n,a){var i=a,c=0;do{var h=i.nextSibling;if(n.removeChild(i),h&&h.nodeType===8)if(i=h.data,i==="/$"||i==="/&"){if(c===0){n.removeChild(h),Tl(a);return}c--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")c++;else if(i==="html")Ym(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,Ym(i);for(var b=i.firstChild;b;){var $=b.nextSibling,z=b.nodeName;b[Qn]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&b.rel.toLowerCase()==="stylesheet"||i.removeChild(b),b=$}}else i==="body"&&Ym(n.ownerDocument.body);i=h}while(i);Tl(a)}function Nw(n,a){var i=n;n=0;do{var c=i.nextSibling;if(i.nodeType===1?a?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(a?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=c}while(i)}function zw(n,a,i){if(a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,n.style.viewTransitionName=a,i!=null&&(n.style.viewTransitionClass=i),i=getComputedStyle(n),i.display==="inline"){if(a=n.getClientRects(),a.length===1)var c=1;else for(var h=c=0;h<a.length;h++){var b=a[h];0<b.width&&0<b.height&&c++}c===1&&(n=n.style,n.display=a.length===1?"inline-block":"block",n.marginTop="-"+i.paddingTop,n.marginBottom="-"+i.paddingBottom)}}function Lw(n,a){n=n.style,a=a.style;var i=a!=null?a.hasOwnProperty("viewTransitionName")?a.viewTransitionName:a.hasOwnProperty("view-transition-name")?a["view-transition-name"]:null:null;n.viewTransitionName=i==null||typeof i=="boolean"?"":(""+i).trim(),i=a!=null?a.hasOwnProperty("viewTransitionClass")?a.viewTransitionClass:a.hasOwnProperty("view-transition-class")?a["view-transition-class"]:null:null,n.viewTransitionClass=i==null||typeof i=="boolean"?"":(""+i).trim(),n.display==="inline-block"&&(a==null?n.display=n.margin="":(i=a.display,n.display=i==null||typeof i=="boolean"?"":i,i=a.margin,i!=null?n.margin=i:(i=a.hasOwnProperty("marginTop")?a.marginTop:a["margin-top"],n.marginTop=i==null||typeof i=="boolean"?"":i,a=a.hasOwnProperty("marginBottom")?a.marginBottom:a["margin-bottom"],n.marginBottom=a==null||typeof a=="boolean"?"":a)))}function D7(n,a,i){return i=i.ownerDocument.defaultView,{rect:n,abs:a.position==="absolute"||a.position==="fixed",clip:a.clipPath!=="none"||a.overflow!=="visible"||a.filter!=="none"||a.mask!=="none"||a.mask!=="none"||a.borderRadius!=="0px",view:0<=n.bottom&&0<=n.right&&n.top<=i.innerHeight&&n.left<=i.innerWidth}}function Hm(n){var a=n.getBoundingClientRect(),i=getComputedStyle(n);return D7(a,i,n)}function O7(n){return n.documentElement.clientHeight}function I7(n){this.addEventListener("load",n),this.addEventListener("error",n)}function _7(n,a,i,c,h,b,$,z,V){var se=a.nodeType===9?a:a.ownerDocument;try{var ce=se.startViewTransition({update:function(){var ne=se.defaultView,le=ne.navigation&&ne.navigation.transition,Ae=se.fonts.status;c();var _e=[];if(Ae==="loaded"&&(O7(se),se.fonts.status==="loading"&&_e.push(se.fonts.ready)),Ae=_e.length,n!==null)for(var dt=n.suspenseyImages,re=0,J=0;J<dt.length;J++){var ie=dt[J];if(!ie.complete){var me=ie.getBoundingClientRect();if(0<me.bottom&&0<me.right&&me.top<ne.innerHeight&&me.left<ne.innerWidth){if(re+=tS(ie),re>Ff){_e.length=Ae;break}ie=new Promise(I7.bind(ie)),_e.push(ie)}}}if(0<_e.length)return ne=Promise.race([Promise.all(_e),new Promise(function(Oe){return setTimeout(Oe,500)})]).then(h,h),(le?Promise.allSettled([le.finished,ne]):ne).then(b,b);if(h(),le)return le.finished.then(b,b);b()},types:i});se.__reactViewTransition=ce;var be=[];return ce.ready.then(function(){for(var ne=se.documentElement.getAnimations({subtree:!0}),le=0;le<ne.length;le++){var Ae=ne[le],_e=Ae.effect,dt=_e.pseudoElement;if(dt!=null&&dt.startsWith("::view-transition")){be.push(Ae),Ae=_e.getKeyframes();for(var re=dt=void 0,J=!0,ie=0;ie<Ae.length;ie++){var me=Ae[ie],Oe=me.width;if(dt===void 0)dt=Oe;else if(dt!==Oe){J=!1;break}if(Oe=me.height,re===void 0)re=Oe;else if(re!==Oe){J=!1;break}delete me.width,delete me.height,me.transform==="none"&&delete me.transform}J&&dt!==void 0&&re!==void 0&&(_e.setKeyframes(Ae),J=getComputedStyle(_e.target,_e.pseudoElement),J.width!==dt||J.height!==re)&&(J=Ae[0],J.width=dt,J.height=re,J=Ae[Ae.length-1],J.width=dt,J.height=re,_e.setKeyframes(Ae))}}$()},function(ne){se.__reactViewTransition===ce&&(se.__reactViewTransition=null);try{typeof ne=="object"&&ne!==null&&ne.name==="InvalidStateError"&&(ne.message==="View transition was skipped because document visibility state is hidden."||ne.message==="Skipping view transition because document visibility state has become hidden."||ne.message==="Skipping view transition because viewport size changed."||ne.message==="Transition was aborted because of invalid state")&&(ne=null),ne!==null&&V(ne)}finally{c(),h(),$()}}),ce.finished.finally(function(){for(var ne=0;ne<be.length;ne++)be[ne].cancel();se.__reactViewTransition===ce&&(se.__reactViewTransition=null),z()}),ce}catch{return c(),h(),$(),null}}function li(n,a){this._scope=document.documentElement,this._selector="::view-transition-"+n+"("+a+")"}li.prototype.animate=function(n,a){return a=typeof a=="number"?{duration:a}:D({},a),a.pseudoElement=this._selector,this._scope.animate(n,a)},li.prototype.getAnimations=function(){for(var n=this._scope,a=this._selector,i=n.getAnimations({subtree:!0}),c=[],h=0;h<i.length;h++){var b=i[h].effect;b!==null&&b.target===n&&b.pseudoElement===a&&c.push(i[h])}return c},li.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Dw(n){return{name:n,group:new li("group",n),imagePair:new li("image-pair",n),old:new li("old",n),new:new li("new",n)}}function Zr(n){this._fragmentFiber=n,this._observers=this._eventListeners=null}Zr.prototype.addEventListener=function(n,a,i){var c=null,h=null;if(!(i!=null&&typeof i!="boolean"&&(c=i.signal||null,c!==null&&c.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var b=this._eventListeners;if(Iw(b,n,a,i)===-1){var $=this,z=a;i!=null&&typeof i!="boolean"&&i.once===!0&&(z=function(V){$.removeEventListener(n,a,i),typeof a=="function"?a.call(this,V):a.handleEvent(V)}),c!==null&&(h=$.removeEventListener.bind($,n,a,i),c.addEventListener("abort",h,{once:!0}),h=c.removeEventListener.bind(c,"abort",h)),c=kl(i),b.push({type:n,listener:a,optionsOrUseCapture:i,attachedListener:z,cleanup:h}),y(this._fragmentFiber.child,!1,q7,n,z,c)}this._eventListeners=b}};function q7(n,a,i,c){return E(n).addEventListener(a,i,c),!1}Zr.prototype.removeEventListener=function(n,a,i){var c=this._eventListeners;if(c!==null&&(a=Iw(c,n,a,i),a!==-1)){var h=c[a];i=h.attachedListener;var b=h.cleanup;h=kl(h.optionsOrUseCapture),y(this._fragmentFiber.child,!1,P7,n,i,h),c.splice(a,1),b!==null&&b()}};function P7(n,a,i,c){return E(n).removeEventListener(a,i,c),!1}function kl(n){return n!=null&&typeof n!="boolean"&&(n.once===!0||n.signal instanceof AbortSignal)?{capture:n.capture,passive:n.passive}:n}function Ow(n){return n==null?"c=0":typeof n=="boolean"?"c="+(n?"1":"0"):"c="+(n.capture?"1":"0")}function Iw(n,a,i,c){if(n.length===0)return-1;c=Ow(c);for(var h=0;h<n.length;h++){var b=n[h];if(b.type===a&&b.listener===i&&Ow(b.optionsOrUseCapture)===c)return h}return-1}Zr.prototype.dispatchEvent=function(n){var a=k(this._fragmentFiber);if(a===null)return!0;a=E(a);var i=this._eventListeners;if(i!==null&&0<i.length||!n.bubbles){var c=a.nodeType===9?a.createComment(""):document.createTextNode("");if(i)for(var h=0;h<i.length;h++){var b=i[h];c.addEventListener(b.type,b.attachedListener,kl(b.optionsOrUseCapture))}if(a.appendChild(c),n=c.dispatchEvent(n),i)for(h=0;h<i.length;h++)b=i[h],c.removeEventListener(b.type,b.attachedListener,kl(b.optionsOrUseCapture));return a.removeChild(c),n}return a.dispatchEvent(n)},Zr.prototype.focus=function(n){y(this._fragmentFiber.child,!0,_w,n,void 0,void 0)};function _w(n,a){return n.tag===6?!1:(n=E(n),Q7(n,a))}Zr.prototype.focusLast=function(n){var a=[];y(this._fragmentFiber.child,!0,Fm,a,void 0,void 0);for(var i=a.length-1;0<=i&&!_w(a[i],n);i--);};function Fm(n,a){return a.push(n),!1}Zr.prototype.blur=function(){var n=k(this._fragmentFiber);n!==null&&(n=E(n),n=iu(n).activeElement,n!==null&&y(this._fragmentFiber.child,!1,B7,n,void 0,void 0))};function B7(n,a){return n.tag===6?!1:(n=E(n),n===a||n.contains(a)?(a.blur(),!0):!1)}Zr.prototype.observeUsing=function(n){this._observers===null&&(this._observers=new Set),this._observers.add(n),y(this._fragmentFiber.child,!1,H7,n,void 0,void 0)};function H7(n,a){return n.tag===6||(n=E(n),a.observe(n)),!1}Zr.prototype.unobserveUsing=function(n){var a=this._observers;if(a!==null&&a.has(n)){a.delete(n),y(this._fragmentFiber.child,!1,F7,n,void 0,void 0);for(var i=a=0;i<_a.length;i++){var c=_a[i];c.fragmentInstance===this&&c.observer===n?n.unobserve(c.instance):_a[a++]=c}_a.length=a}};function F7(n,a){return n.tag===6||(n=E(n),a.unobserve(n)),!1}var _a=[],Um=!1;function U7(n,a,i){_a.push({fragmentInstance:n,observer:a,instance:i}),Um||(Um=!0,J7(function(){Um=!1;var c=_a;_a=[];for(var h=0;h<c.length;h++){var b=c[h];b.observer.unobserve(b.instance)}}))}Zr.prototype.getClientRects=function(){var n=[];return y(this._fragmentFiber.child,!1,V7,n,void 0,void 0),n};function V7(n,a){if(n.tag===6){n=n.stateNode;var i=n.ownerDocument.createRange();i.selectNodeContents(n),a.push.apply(a,i.getClientRects())}else n=E(n),a.push.apply(a,n.getClientRects());return!1}Zr.prototype.getRootNode=function(n){var a=k(this._fragmentFiber);return a===null?this:E(a).getRootNode(n)},Zr.prototype.compareDocumentPosition=function(n){var a=k(this._fragmentFiber);if(a===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var i=[];y(this._fragmentFiber.child,!1,Fm,i,void 0,void 0);var c=E(a);if(i.length===0){if(i=c,v(this._fragmentFiber)){e:{for(a=this._fragmentFiber.return;a!==null;){if(a.tag===4){a=a.stateNode.containerInfo;break e}if(a.tag===3||a.tag===5||a.tag===27)break;a=a.return}a=null}a!=null&&(i=a)}a=this._fragmentFiber;var h=c=i.compareDocumentPosition(n);return i===n?h=Node.DOCUMENT_POSITION_CONTAINS:c&Node.DOCUMENT_POSITION_CONTAINED_BY&&(i=w(a)[1],i===null?h=Node.DOCUMENT_POSITION_PRECEDING:(n=E(i).compareDocumentPosition(n),h=n===0||n&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),h|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}a=E(i[0]),h=E(i[i.length-1]);var b=v(this._fragmentFiber)?a.parentElement:c;if(b==null)return Node.DOCUMENT_POSITION_DISCONNECTED;c=b.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY,b=b.compareDocumentPosition(h)&Node.DOCUMENT_POSITION_CONTAINED_BY;var $=a.compareDocumentPosition(n),z=h.compareDocumentPosition(n),V=$&Node.DOCUMENT_POSITION_CONTAINED_BY||z&Node.DOCUMENT_POSITION_CONTAINED_BY;return z=c&&b&&$&Node.DOCUMENT_POSITION_FOLLOWING&&z&Node.DOCUMENT_POSITION_PRECEDING,a=c&&a===n||b&&h===n||V||z?Node.DOCUMENT_POSITION_CONTAINED_BY:!c&&a===n||!b&&h===n?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:$,a&Node.DOCUMENT_POSITION_DISCONNECTED||a&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||G7(a,this._fragmentFiber,i[0],i[i.length-1],n)?a:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function G7(n,a,i,c,h){var b=dn(h);if(n&Node.DOCUMENT_POSITION_CONTAINED_BY){if(i=!!b)e:{for(;b!==null;){if(b.tag===7&&(b===a||b.alternate===a)){i=!0;break e}b=b.return}i=!1}return i}if(n&Node.DOCUMENT_POSITION_CONTAINS){if(b===null)return b=h.ownerDocument,h===b||h===b.documentElement||h===b.body;e:{for(b=a,a=k(a);b!==null;){if(!(b.tag!==5&&b.tag!==3&&b.tag!==27||b!==a&&b.alternate!==a)){b=!0;break e}b=b.return}b=!1}return b}return n&Node.DOCUMENT_POSITION_PRECEDING?((a=!!b)&&!(a=b===i)&&(a=L(i,b,N),a===null?a=!1:(y(a,!0,T,b,i),b=R,R=null,a=b!==null)),a):n&Node.DOCUMENT_POSITION_FOLLOWING?((a=!!b)&&!(a=b===c)&&(a=L(c,b,N),a===null?a=!1:(y(a,!0,A,b,c),b=R,C=R=null,a=b!==null)),a):!1}function qw(n,a){var i=n.ownerDocument.createRange();i.selectNodeContents(n),n=i.getBoundingClientRect(),window.scrollTo(window.scrollX+n.left,a?window.scrollY+n.top:window.scrollY+n.bottom-window.innerHeight)}Zr.prototype.scrollIntoView=function(n){if(typeof n=="object")throw Error(s(566));var a=[];y(this._fragmentFiber.child,!1,Fm,a,void 0,void 0);var i=n!==!1;if(a.length===0){var c=w(this._fragmentFiber);if(c=i?c[1]||c[0]||k(this._fragmentFiber):c[0]||c[1],c===null)return;if(c.tag===6){n=E(c),qw(n,i);return}if(c=E(c),c.nodeType!==9){if(c.nodeType===11){i="host"in c?c.host:null,i!==null&&i.scrollIntoView(n);return}c.scrollIntoView(n)}}for(c=i?a.length-1:0;c!==(i?-1:a.length);){var h=a[c];h.tag===6?(h=E(h),qw(h,i)):E(h).scrollIntoView(n),c+=i?-1:1}};function K7(n,a){return n=E(n),Pw(n,a),!1}function Pw(n,a){n.reactFragments==null&&(n.reactFragments=new Set),n.reactFragments.add(a)}function Bw(n,a){var i=a._eventListeners;if(i!==null)for(var c=0;c<i.length;c++){var h=i[c];n.addEventListener(h.type,h.attachedListener,kl(h.optionsOrUseCapture))}n.nodeType!==3&&(i=a._observers,i!==null&&i.forEach(function(b){for(var $=0,z=0;z<_a.length;z++){var V=_a[z];(V.fragmentInstance!==a||V.observer!==b||V.instance!==n)&&(_a[$++]=V)}_a.length=$,b.observe(n)}),Pw(n,a))}function W7(n,a){var i=a._eventListeners;if(i!==null)for(var c=0;c<i.length;c++){var h=i[c];n.removeEventListener(h.type,h.attachedListener,kl(h.optionsOrUseCapture))}n.nodeType!==3&&(i=a._observers,i!==null&&i.forEach(function(b){typeof b.rootMargin=="string"?U7(a,b,n):b.unobserve(n)}),n.reactFragments!=null&&n.reactFragments.delete(a))}function Vm(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Vm(i),sn(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function Y7(n,a,i,c){for(;n.nodeType===1;){var h=i;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(c){if(!n[Qn])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(b=n.getAttribute("rel"),b==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(b!==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(b=n.getAttribute("src"),(b!==(h.src==null?null:h.src)||n.getAttribute("type")!==(h.type==null?null:h.type)||n.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&b&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var b=h.name==null?null:""+h.name;if(h.type==="hidden"&&n.getAttribute("name")===b)return n}else return n;if(n=xa(n.nextSibling),n===null)break}return null}function X7(n,a,i){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=xa(n.nextSibling),n===null))return null;return n}function Hw(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=xa(n.nextSibling),n===null))return null;return n}function Gm(n){return n.data==="$?"||n.data==="$~"}function Km(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function Z7(n,a){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||i.readyState!=="loading")a();else{var c=function(){a(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),n._reactRetry=c}}function xa(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var Wm=null;function Fw(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(a===0)return xa(n.nextSibling);a--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||a++}n=n.nextSibling}return null}function Uw(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(a===0)return n;a--}else i!=="/$"&&i!=="/&"||a++}n=n.previousSibling}return null}function Q7(n,a){function i(){c=!0}if(n.ownerDocument.activeElement===n)return!0;var c=!1;try{n.ownerDocument.addEventListener("focus",i,!0),(n.focus||HTMLElement.prototype.focus).call(n,a)}finally{n.ownerDocument.removeEventListener("focus",i,!0)}return c}function J7(n){Aw(function(){Aw(function(a){return n(a)})})}function Vw(n,a,i){switch(a=iu(i),n){case"html":if(n=a.documentElement,!n)throw Error(s(452));return n;case"head":if(n=a.head,!n)throw Error(s(453));return n;case"body":if(n=a.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function Gw(n,a,i){for(var c in i){var h=i[c];i.hasOwnProperty(c)&&h!=null&&Ot(n,a,c,null,j7,h)}i.dangerouslySetInnerHTML!=null&&(n.textContent=""),n.onclick===es&&(n.onclick=null),sn(n)}function Ym(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);sn(n)}var ga=new Map,Kw=new Set;function lu(n){if(typeof n.getRootNode=="function"){var a=n.getRootNode();if(a.nodeType===9||a.nodeType===11)return a}return n.nodeType===9?n:n.ownerDocument}var Ls=he.d;he.d={f:eM,r:tM,D:nM,C:rM,L:aM,m:sM,X:iM,S:oM,M:lM};function eM(){var n=Ls.f(),a=Lf();return n||a}function tM(n){var a=Ln(n);a!==null&&a.tag===5&&a.type==="form"?Yv(a):Ls.r(n)}var vl=typeof document>"u"?null:document;function Ww(n,a,i){var c=vl;if(c&&typeof a=="string"&&a){var h=hr(a);h='link[rel="'+n+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),Kw.has(h)||(Kw.add(h),n={rel:n,crossOrigin:i,href:a},c.querySelector(h)===null&&(a=c.createElement("link"),rr(a,"link",n),tt(a),c.head.appendChild(a)))}}function nM(n){Ls.D(n),Ww("dns-prefetch",n,null)}function rM(n,a){Ls.C(n,a),Ww("preconnect",n,a)}function aM(n,a,i){Ls.L(n,a,i);var c=vl;if(c&&n&&a){var h='link[rel="preload"][as="'+hr(a)+'"]';a==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+hr(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+hr(i.imageSizes)+'"]')):h+='[href="'+hr(n)+'"]';var b=h;switch(a){case"style":b=wl(n);break;case"script":b=Sl(n)}if(!(ga.has(b)||(n=D({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:n,as:a},i),ga.set(b,n),c.querySelector(h)!==null||a==="style"&&c.querySelector(cu(b))||a==="script"&&c.querySelector(uu(b))))){var $=c.createElement("link");rr($,"link",n),a==="style"&&($[ot]=!0,$.onload=$.onerror=function(){sa($)}),tt($),c.head.appendChild($)}}}function sM(n,a){Ls.m(n,a);var i=vl;if(i&&n){var c=a&&typeof a.as=="string"?a.as:"script",h='link[rel="modulepreload"][as="'+hr(c)+'"][href="'+hr(n)+'"]',b=h;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Sl(n)}if(!ga.has(b)&&(n=D({rel:"modulepreload",href:n},a),ga.set(b,n),i.querySelector(h)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(uu(b)))return}c=i.createElement("link"),rr(c,"link",n),tt(c),i.head.appendChild(c)}}}function oM(n,a,i){Ls.S(n,a,i);var c=vl;if(c&&n){var h=Ur(c).hoistableStyles,b=wl(n);a=a||"default";var $=h.get(b);if(!$){var z={loading:0,preload:null};if($=c.querySelector(cu(b)))z.loading=5;else{n=D({rel:"stylesheet",href:n,"data-precedence":a},i),(i=ga.get(b))&&Xm(n,i);var V=$=c.createElement("link");tt(V),rr(V,"link",n),V._p=new Promise(function(se,ce){V.onload=se,V.onerror=ce}),V.addEventListener("load",function(){z.loading|=1}),V.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Bf($,a,c)}$={type:"stylesheet",instance:$,count:1,state:z},h.set(b,$)}}}function iM(n,a){Ls.X(n,a);var i=vl;if(i&&n){var c=Ur(i).hoistableScripts,h=Sl(n),b=c.get(h);b||(b=i.querySelector(uu(h)),b||(n=D({src:n,async:!0},a),(a=ga.get(h))&&Zm(n,a),b=i.createElement("script"),tt(b),rr(b,"link",n),i.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(h,b))}}function lM(n,a){Ls.M(n,a);var i=vl;if(i&&n){var c=Ur(i).hoistableScripts,h=Sl(n),b=c.get(h);b||(b=i.querySelector(uu(h)),b||(n=D({src:n,async:!0,type:"module"},a),(a=ga.get(h))&&Zm(n,a),b=i.createElement("script"),tt(b),rr(b,"link",n),i.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},c.set(h,b))}}function Yw(n,a,i,c){var h=(h=et.current)?lu(h):null;if(!h)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(i=wl(i.href),a=Ur(h).hoistableStyles,c=a.get(i),c||(c={type:"style",instance:null,count:0,state:null},a.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=wl(i.href);var b=Ur(h).hoistableStyles,$=b.get(n);if($||(h=h.ownerDocument||h,$={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(n,$),(b=h.querySelector(cu(n)))?b._p||($.instance=b,$.state.loading=5):(b=ga.get(n),b||(b={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},ga.set(n,b)),cM(h,n,b,$.state))),a&&c===null)throw Error(s(528,""));return $}if(a&&c!==null)throw Error(s(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(i=Sl(i),a=Ur(h).hoistableScripts,c=a.get(i),c||(c={type:"script",instance:null,count:0,state:null},a.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function wl(n){return'href="'+hr(n)+'"'}function cu(n){return'link[rel="stylesheet"]['+n+"]"}function Xw(n){return D({},n,{"data-precedence":n.precedence,precedence:null})}function cM(n,a,i,c){if(a=n.querySelector('link[rel="preload"][as="style"]['+a+"]")){if(a[ot]!==!0){c.loading=1;return}}else a=n.createElement("link"),a[ot]=!0,a.onload=a.onerror=sa.bind(null,a),rr(a,"link",i),tt(a),n.head.appendChild(a);c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2})}function Sl(n){return'[src="'+hr(n)+'"]'}function uu(n){return"script[async]"+n}function Zw(n,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var c=n.querySelector('style[data-href~="'+hr(i.href)+'"]');if(c)return a.instance=c,tt(c),c;var h=D({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(n.ownerDocument||n).createElement("style"),tt(c),rr(c,"style",h),Bf(c,i.precedence,n),a.instance=c;case"stylesheet":h=wl(i.href);var b=n.querySelector(cu(h));if(b)return a.state.loading|=4,a.instance=b,tt(b),b;c=Xw(i),(h=ga.get(h))&&Xm(c,h),b=(n.ownerDocument||n).createElement("link"),tt(b);var $=b;return $._p=new Promise(function(z,V){$.onload=z,$.onerror=V}),rr(b,"link",c),a.state.loading|=4,Bf(b,i.precedence,n),a.instance=b;case"script":return b=Sl(i.src),(h=n.querySelector(uu(b)))?(a.instance=h,tt(h),h):(c=i,(h=ga.get(b))&&(c=D({},i),Zm(c,h)),n=n.ownerDocument||n,h=n.createElement("script"),tt(h),rr(h,"link",c),n.head.appendChild(h),a.instance=h);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,Bf(c,i.precedence,n));return a.instance}function Bf(n,a,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=c.length?c[c.length-1]:null,b=h,$=0;$<c.length;$++){var z=c[$];if(z.dataset.precedence===a)b=z;else if(b!==h)break}b?b.parentNode.insertBefore(n,b.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(n,a.firstChild))}function Xm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Zm(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var Hf=null;function Qw(n,a,i){if(Hf===null){var c=new Map,h=Hf=new Map;h.set(i,c)}else h=Hf,c=h.get(i),c||(c=new Map,h.set(i,c));if(c.has(n))return c;for(c.set(n,null),i=i.getElementsByTagName(n),h=0;h<i.length;h++){var b=i[h];if(!(b[Qn]||b[Bt]||n==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var $=b.getAttribute(a)||"";$=n+$;var z=c.get($);z?z.push(b):c.set($,[b])}}return c}function Qm(n,a,i){n=n.ownerDocument||n,n.head.insertBefore(i,a==="title"?n.querySelector("head > title"):null)}function uM(n,a,i){if(i===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(n=a.disabled,typeof a.precedence=="string"&&n==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Jw(n,a){return n==="img"&&a.src!=null&&a.src!==""&&a.onLoad==null&&a.loading!=="lazy"}function eS(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function tS(n){return(n.width||100)*(n.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function nS(n,a){typeof a.decode=="function"&&(n.imgCount++,a.complete||(n.imgBytes+=tS(a),n.suspenseyImages.push(a)),n=hM.bind(n),a.decode().then(n,n))}function dM(n,a,i,c){if(i.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var h=wl(c.href),b=a.querySelector(cu(h));if(b){a=b._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=du.bind(n),a.then(n,n)),i.state.loading|=4,i.instance=b,tt(b);return}b=a.ownerDocument||a,c=Xw(c),(h=ga.get(h))&&Xm(c,h),b=b.createElement("link"),tt(b);var $=b;$._p=new Promise(function(z,V){$.onload=z,$.onerror=V}),rr(b,"link",c),i.instance=b}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,a),(a=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=du.bind(n),a.addEventListener("load",i),a.addEventListener("error",i))}}var Ff=0;function fM(n,a){return n.stylesheets&&n.count===0&&Vf(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var c=setTimeout(function(){if(n.stylesheets&&Vf(n,n.stylesheets),n.unsuspend){var b=n.unsuspend;n.unsuspend=null,b()}},6e4+a);0<n.imgBytes&&Ff===0&&(Ff=62500*A7());var h=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Vf(n,n.stylesheets),n.unsuspend)){var b=n.unsuspend;n.unsuspend=null,b()}},(n.imgBytes>Ff?50:800)+a);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(c),clearTimeout(h)}}:null}function rS(n){if(n.count===0&&(n.imgCount===0||!n.waitingForImages)){if(n.stylesheets)Vf(n,n.stylesheets);else if(n.unsuspend){var a=n.unsuspend;n.unsuspend=null,a()}}}function du(){this.count--,rS(this)}function hM(){this.imgCount--,rS(this)}var Uf=null;function Vf(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Uf=new Map,a.forEach(pM,n),Uf=null,du.call(n))}function pM(n,a){if(!(a.state.loading&4)){var i=Uf.get(n);if(i)var c=i.get(null);else{i=new Map,Uf.set(n,i);for(var h=n.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<h.length;b++){var $=h[b];($.nodeName==="LINK"||$.getAttribute("media")!=="not all")&&(i.set($.dataset.precedence,$),c=$)}c&&i.set(null,c)}h=a.instance,$=h.getAttribute("data-precedence"),b=i.get($)||c,b===c&&i.set(null,h),i.set($,h),this.count++,c=du.bind(this),h.addEventListener("load",c),h.addEventListener("error",c),b?b.parentNode.insertBefore(h,b.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(h,n.firstChild)),a.state.loading|=4}}var El={$$typeof:U,Provider:null,Consumer:null,_currentValue:Re,_currentValue2:Re,_threadCount:0};function xM(n,a,i,c,h,b,$,z,V){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=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=c,this.onUncaughtError=h,this.onCaughtError=b,this.onRecoverableError=$,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.transitionTypes=null,this.incompleteTransitions=new Map}function aS(n,a,i,c,h,b,$,z,V,se,ce,be){return n=new xM(n,a,i,$,V,se,ce,be,z),a=1,b===!0&&(a|=24),b=Cr(3,null,null,a),n.current=b,b.stateNode=n,a=hg(),a.refCount++,n.pooledCache=a,a.refCount++,b.memoizedState={element:c,isDehydrated:i,cache:a},mg(b),n}function sS(n){return n?(n=Xi,n):Xi}function oS(n,a,i,c,h,b){h=sS(h),c.context===null?c.context=h:c.pendingContext=h,c=ro(a),c.payload={element:i},b=b===void 0?null:b,b!==null&&(c.callback=b),i=ao(n,c,a),i!==null&&(Mr(i,n,a),Hc(i,n,a))}function iS(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<a?i:a}}function Jm(n,a){iS(n,a),(n=n.alternate)&&iS(n,a)}function lS(n){if(n.tag===13||n.tag===31){var a=Vo(n,67108864);a!==null&&Mr(a,n,67108864),Jm(n,67108864)}}function cS(n){if(n.tag===13||n.tag===31){var a=Xr();a=kt(a);var i=Vo(n,a);i!==null&&Mr(i,n,a),Jm(n,a)}}var $l=!0;function gM(n,a,i,c){var h=te.T;te.T=null;var b=he.p;try{he.p=2,ey(n,a,i,c)}finally{he.p=b,te.T=h}}function mM(n,a,i,c){var h=te.T;te.T=null;var b=he.p;try{he.p=8,ey(n,a,i,c)}finally{he.p=b,te.T=h}}function ey(n,a,i,c){if($l){var h=ty(c);if(h===null)Dm(n,a,c,Gf,i),dS(n,c);else if(bM(h,n,a,i,c))c.stopPropagation();else if(dS(n,c),a&4&&-1<yM.indexOf(n)){for(;h!==null;){var b=Ln(h);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var $=Ie(b.pendingLanes);if($!==0){var z=b;for(z.pendingLanes|=2,z.entangledLanes|=2;$;){var V=1<<31-Mn($);z.entanglements[1]|=V,$&=~V}us(b),(Mt&6)===0&&(Mf=Ye()+500,au(0))}}break;case 31:case 13:z=Vo(b,2),z!==null&&Mr(z,b,2),Lf(),Jm(b,2)}if(b=ty(c),b===null&&Dm(n,a,c,Gf,i),b===h)break;h=b}h!==null&&c.stopPropagation()}else Dm(n,a,c,null,i)}}function ty(n){return n=Px(n),ny(n)}var Gf=null;function ny(n){if(Gf=null,n=dn(n),n!==null){var a=l(n);if(a===null)n=null;else{var i=a.tag;if(i===13){if(n=u(a),n!==null)return n;n=null}else if(i===31){if(n=f(a),n!==null)return n;n=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Gf=n,null}function uS(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(Le()){case en:return 2;case un:return 8;case an:case ur:return 32;case Ja:return 268435456;default:return 32}default:return 32}}var ry=!1,mo=null,yo=null,bo=null,fu=new Map,hu=new Map,ko=[],yM="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 dS(n,a){switch(n){case"focusin":case"focusout":mo=null;break;case"dragenter":case"dragleave":yo=null;break;case"mouseover":case"mouseout":bo=null;break;case"pointerover":case"pointerout":fu.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":hu.delete(a.pointerId)}}function pu(n,a,i,c,h,b){return n===null||n.nativeEvent!==b?(n={blockedOn:a,domEventName:i,eventSystemFlags:c,nativeEvent:b,targetContainers:[h]},a!==null&&(a=Ln(a),a!==null&&lS(a)),n):(n.eventSystemFlags|=c,a=n.targetContainers,h!==null&&a.indexOf(h)===-1&&a.push(h),n)}function bM(n,a,i,c,h){switch(a){case"focusin":return mo=pu(mo,n,a,i,c,h),!0;case"dragenter":return yo=pu(yo,n,a,i,c,h),!0;case"mouseover":return bo=pu(bo,n,a,i,c,h),!0;case"pointerover":var b=h.pointerId;return fu.set(b,pu(fu.get(b)||null,n,a,i,c,h)),!0;case"gotpointercapture":return b=h.pointerId,hu.set(b,pu(hu.get(b)||null,n,a,i,c,h)),!0}return!1}function fS(n){var a=dn(n.target);if(a!==null){var i=l(a);if(i!==null){if(a=i.tag,a===13){if(a=u(i),a!==null){n.blockedOn=a,Aa(n.priority,function(){cS(i)});return}}else if(a===31){if(a=f(i),a!==null){n.blockedOn=a,Aa(n.priority,function(){cS(i)});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Kf(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var i=ty(n.nativeEvent);if(i===null){i=n.nativeEvent;var c=new i.constructor(i.type,i);qx=c,i.target.dispatchEvent(c),qx=null}else return a=Ln(i),a!==null&&lS(a),n.blockedOn=i,!1;a.shift()}return!0}function hS(n,a,i){Kf(n)&&i.delete(a)}function kM(){ry=!1,mo!==null&&Kf(mo)&&(mo=null),yo!==null&&Kf(yo)&&(yo=null),bo!==null&&Kf(bo)&&(bo=null),fu.forEach(hS),hu.forEach(hS)}function Wf(n,a){n.blockedOn===a&&(n.blockedOn=null,ry||(ry=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,kM)))}var Yf=null;function pS(n){Yf!==n&&(Yf=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yf===n&&(Yf=null);for(var a=0;a<n.length;a+=3){var i=n[a],c=n[a+1],h=n[a+2];if(typeof c!="function"){if(ny(c||i)===null)continue;break}var b=Ln(i);b!==null&&(n.splice(a,3),a-=3,_g(b,{pending:!0,data:h,method:i.method,action:c},c,h))}}))}function Tl(n){function a(V){return Wf(V,n)}mo!==null&&Wf(mo,n),yo!==null&&Wf(yo,n),bo!==null&&Wf(bo,n),fu.forEach(a),hu.forEach(a);for(var i=0;i<ko.length;i++){var c=ko[i];c.blockedOn===n&&(c.blockedOn=null)}for(;0<ko.length&&(i=ko[0],i.blockedOn===null);)fS(i),i.blockedOn===null&&ko.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var h=i[c],b=i[c+1],$=h[Yt]||null;if(typeof b=="function")$||pS(i);else if($){var z=null;if(b&&b.hasAttribute("formAction")){if(h=b,$=b[Yt]||null)z=$.formAction;else if(ny(h)!==null)continue}else z=$.action;typeof z=="function"?i[c+1]=z:(i.splice(c,3),c-=3),pS(i)}}}function xS(){function n(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function($){return h=$})},focusReset:"manual",scroll:"manual"})}function a(){h!==null&&(h(),h=null),c||setTimeout(i,20)}function i(){if(!c&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,h=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(i,100),function(){c=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),h!==null&&(h(),h=null)}}}function ay(n){this._internalRoot=n}Xf.prototype.render=ay.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(s(409));var i=a.current,c=Xr();oS(i,c,n,a,null,null)},Xf.prototype.unmount=ay.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;oS(n.current,2,null,n,null,null),Lf(),a[wn]=null}};function Xf(n){this._internalRoot=n}Xf.prototype.unstable_scheduleHydration=function(n){if(n){var a=zn();n={blockedOn:null,target:n,priority:a};for(var i=0;i<ko.length&&a!==0&&a<ko[i].priority;i++);ko.splice(i,0,n),i===0&&fS(n)}};var gS=t.version;if(gS!=="19.3.1")throw Error(s(527,gS,"19.3.1"));he.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=p(a),n=n!==null?m(n):null,n=n===null?null:n.stateNode,n};var vM={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:te,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zf.isDisabled&&Zf.supportsFiber)try{Xn=Zf.inject(vM),Gt=Zf}catch{}}return gu.createRoot=function(n,a){if(!o(n))throw Error(s(299));var i=!1,c="",h=s2,b=o2,$=i2;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&($=a.onRecoverableError)),a=aS(n,1,!1,null,null,i,c,null,h,b,$,xS),n[wn]=a.current,Lm(n),new ay(a)},gu.hydrateRoot=function(n,a,i){if(!o(n))throw Error(s(299));var c=!1,h="",b=s2,$=o2,z=i2,V=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(b=i.onUncaughtError),i.onCaughtError!==void 0&&($=i.onCaughtError),i.onRecoverableError!==void 0&&(z=i.onRecoverableError),i.formState!==void 0&&(V=i.formState)),a=aS(n,1,!0,a,i??null,c,h,V,b,$,z,xS),a.context=sS(null),i=a.current,c=Xr(),c=kt(c),h=ro(c),h.callback=null,ao(i,h,c),i=c,a.current.lanes=i,Fe(a,i),us(a),n[wn]=a.current,Lm(n),new Xf(a)},gu.version="19.3.1",gu}var TS;function zM(){if(TS)return iy.exports;TS=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(),iy.exports=NM(),iy.exports}var m$=zM();const y$=g.createContext(void 0),qr=e=>{const t=g.useContext(y$);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},LM=({client:e,children:t})=>(g.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),x.jsx(y$.Provider,{value:e,children:t})),DM={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)};var OM=class{#e=DM;#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 gi=new OM;function IM(e){setTimeout(e,0)}const _M=typeof window>"u"||"Deno"in globalThis;function Sr(){}function qM(e,t){return typeof e=="function"?e(t):e}function b$(e){return typeof e=="number"&&e>=0&&e!==1/0}function k$(e,t){return Math.max(e+(t||0)-Date.now(),0)}function rn(e,t){return typeof e=="function"?e(t):e}function CS(e,t){const{type:r="all",exact:s,fetchStatus:o,predicate:l,queryKey:u,stale:f}=e;if(u){if(s){if(t.queryHash!==Sb(u,t.options))return!1}else if(!tc(t.queryKey,u))return!1}if(r!=="all"){const d=t.isActive();if(r==="active"&&!d||r==="inactive"&&d)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||o&&o!==t.state.fetchStatus||l&&!l(t))}function jS(e,t){const{exact:r,status:s,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(r){if($i(t.options.mutationKey)!==$i(l))return!1}else if(!tc(t.options.mutationKey,l))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function Sb(e,t){return(t?.queryKeyHashFn||$i)(e)}function $i(e){return JSON.stringify(e,(t,r)=>k1(r)?Object.keys(r).sort().reduce((s,o)=>(s[o]=r[o],s),{}):r)}function tc(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(!tc(e[s],t[s]))return!1;return!0}const r=Object.keys(t);for(const s of r)if(!tc(e[s],t[s]))return!1;return!0}return!1}const PM=Object.prototype.hasOwnProperty;function v$(e,t,r=0){if(e===t)return e;if(r>500)return t;const s=RS(e)&&RS(t);if(!s&&!(k1(e)&&k1(t)))return t;const o=(s?e:Object.keys(e)).length,l=s?t:Object.keys(t),u=l.length,f=s?new Array(u):{};let d=0;for(let p=0;p<u;p++){const m=s?p:l[p],y=e[m],k=t[m];if(y===k){f[m]=y,(s?p<o:PM.call(e,m))&&d++;continue}if(y===null||k===null||typeof y!="object"||typeof k!="object"){f[m]=k;continue}const v=v$(y,k,r+1);f[m]=v,v===y&&d++}return o===u&&d===o?e:f}function Dh(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function RS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function k1(e){if(!AS(e))return!1;const t=Object.getPrototypeOf(e),r=t?.constructor;if(r===void 0)return!0;if(typeof r!="function")return!1;const s=r.prototype;return!(!AS(s)||!s.hasOwnProperty("isPrototypeOf")||t!==Object.prototype)}function AS(e){return Object.prototype.toString.call(e)==="[object Object]"}function BM(e){return new Promise(t=>{gi.setTimeout(t,e)})}function v1(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?v$(e,t):t}function HM(e,t,r=0){const s=[...e,t];return r&&s.length>r?s.slice(1):s}function FM(e,t,r=0){const s=[t,...e];return r&&s.length>r?s.slice(0,-1):s}const Eb=Symbol();function w$(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Eb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function $b(e,t){return typeof e=="function"?e(...t):!!e}function UM(e,t,r){let s=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),s||(s=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),e}let VM=()=>_M;const Tb=()=>VM();var gc=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(){}},GM=class extends gc{#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 Cb=new GM,KM=IM;function WM(){let e=[],t=0,r=f=>{f()},s=f=>{f()},o=KM;const l=f=>{t?e.push(f):o(()=>{r(f)})},u=()=>{const f=e;e=[],f.length&&o(()=>{s(()=>{f.forEach(d=>{r(d)})})})};return{batch:f=>{let d;t++;try{d=f()}finally{t--,t||u()}return d},batchCalls:f=>(...d)=>{l(()=>{f(...d)})},schedule:l,setNotifyFunction:f=>{r=f},setBatchNotifyFunction:f=>{s=f},setScheduler:f=>{o=f}}}const _n=WM();var YM=class extends gc{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}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 Qh=new YM;function XM(e){return Math.min(1e3*2**e,3e4)}function S$(e){return(e??"online")==="online"?Qh.isOnline():!0}var w1=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function E$(e){let t=!1,r=0,s,o="pending",l,u;const f=new Promise((C,T)=>{l=C,u=T});f.catch(Sr);const d=()=>o!=="pending",p=C=>{if(!d()){const T=new w1(C);S(T),e.onCancel?.(T)}},m=()=>{t=!0},y=()=>{t=!1},k=()=>Cb.isFocused()&&(e.networkMode==="always"||Qh.isOnline())&&e.canRun(),v=()=>S$(e.networkMode)&&e.canRun(),w=C=>{d()||(s?.(),o="resolved",l(C))},S=C=>{d()||(s?.(),o="rejected",u(C))},E=C=>new Promise(T=>{s=A=>{(d()||C())&&T(A)},e.onPause?.()}).then(()=>{s=void 0,d()||e.onContinue?.()}),R=()=>{if(d())return;let C;const T=r===0?e.initialPromise:void 0;try{C=T??e.fn()}catch(A){C=Promise.reject(A)}Promise.resolve(C).then(w).catch(A=>{if(d())return;const N=e.retry??(Tb()?0:3),L=e.retryDelay??XM,D=typeof L=="function"?L(r,A):L,j=N===!0||typeof N=="number"&&r<N||typeof N=="function"&&N(r,A);if(t||!j){S(A);return}r++,e.onFail?.(r,A),BM(D).then(()=>k()?void 0:E(k)).then(()=>{t?S(A):R()})})};return{promise:f,status:()=>o,cancel:p,continue:()=>(s?.(),f),cancelRetry:m,continueRetry:y,canStart:v,start:()=>(v()?R():E(v).then(R),f)}}var $$=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),b$(this.gcTime)&&(this.#e=gi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Tb()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(gi.clearTimeout(this.#e),this.#e=void 0)}};function ZM(e){return{onFetch:(t,r)=>{const s=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},d=0;const p=async()=>{let m=!1;const y=w=>{UM(w,()=>t.signal,()=>m=!0)},k=w$(t.options,t.fetchOptions),v=async(w,S,E)=>{if(m)return Promise.reject(t.signal.reason);if(S==null&&w.pages.length)return Promise.resolve(w);const C=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:S,direction:E?"backward":"forward",meta:t.options.meta};return y(L),L})(),T=await k(C),{maxPages:A}=t.options,N=E?FM:HM;return{pages:N(w.pages,T,A),pageParams:N(w.pageParams,S,A)}};if(o&&l.length){const w=o==="backward",S=w?QM:MS,E={pages:l,pageParams:u};f=await v(E,S(s,E),w)}else{const w=e??l.length;do{const S=d===0?u[0]===void 0?s.initialPageParam:u[0]:MS(s,f);if(d>0&&S==null)break;f=await v(f,S),d++}while(d<w)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=p}}}function MS(e,{pages:t,pageParams:r}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,r[s],r):void 0}function QM(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var JM=class extends $${#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=zS(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=zS(this.options);t.data!==void 0&&(this.setState(NS(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const r=v1(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#i({type:"setState",state:e})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Sr).catch(Sr):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=>rn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Eb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>rn(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:!k$(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 d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const r=new AbortController,s=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},o=()=>{const d=w$(this.options,t),m=(()=>{const y={client:this.#s,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#l=!1,this.options.persister?this.options.persister(d,m,this):d(m)},u=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return s(d),d})();(this.#e==="infinite"?ZM(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 f=this.#a=E$({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:d=>{d instanceof w1&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(d,p)=>{this.#i({type:"failed",failureCount:d,error:p})},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 d=await f.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#r.config.onSuccess?.(d,this),this.#r.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof w1){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#r.config.onError?.(d,this),this.#r.config.onSettled?.(this.state.data,d,this),d}finally{this.#a===f&&(this.#a=void 0),this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...T$(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,...NS(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?s:void 0,s;case"error":const o=e.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),_n.batch(()=>{this.observers.slice().forEach(r=>{r.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function T$(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:S$(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function NS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function zS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var e8=class extends gc{#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),LS(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return S1(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return S1(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#v(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,r=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 rn(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&&!Dh(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&DS(this.#t,r,this.options,t)&&this.#f(),this.updateResult(),s&&(this.#t!==r||rn(this.options.enabled,this.#t)!==rn(t.enabled,this.#t)||rn(this.options.staleTime,this.#t)!==rn(t.staleTime,this.#t))&&this.#g();const o=this.#m();s&&(this.#t!==r||rn(this.options.enabled,this.#t)!==rn(t.enabled,this.#t)||o!==this.#c)&&this.#y(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(t,e);return Dh(this.getCurrentResult(),r)||(this.#r=r,this.#a=this.options,this.#s=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),t?.(s),Reflect.get(r,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),r=this.#e.getQueryCache().build(this.#e,t);let s=()=>{},o;const l=new Promise(u=>{o=u,s=this.#e.getQueryCache().subscribe(f=>{f.type==="updated"&&f.query.queryHash===r.queryHash&&r.state.data!==void 0&&(s(),u(this.createResult(r,t)))})});return Promise.race([r.fetch(t).then(()=>{const u=this.createResult(r,t);return o?.(u),u}).finally(()=>{s()}),l])}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(Sr)),t}#x(e){return!Tb()&&rn(this.options.enabled,this.#t)!==!1&&b$(e)}#g(){this.#k();const e=rn(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#x(e))return;const t=k$(this.#r.dataUpdatedAt,e)+1;this.#u=gi.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#m(){return rn(this.options.refetchInterval,this.#t)??!1}#y(e){this.#v(),this.#c=e,!(this.#c===0||!this.#x(this.#c))&&(this.#d=gi.setInterval(()=>{(this.options.refetchIntervalInBackground||Cb.isFocused())&&this.#f()},this.#c))}#b(){this.#g(),this.#y(this.#m())}#k(){this.#u!==void 0&&(gi.clearTimeout(this.#u),this.#u=void 0)}#v(){this.#d!==void 0&&(gi.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const r=this.#t,s=this.options,o=this.#r,l=this.#s,u=this.#a,f=e!==r?e.state:this.#n,{state:d}=e;let p={...d},m=!1,y;if(t._optimisticResults){const N=this.hasListeners(),L=!N&&LS(e,t),D=N&&DS(e,r,t,s);(L||D)&&(p={...p,...T$(d.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:k,errorUpdatedAt:v,status:w}=p;y=p.data;let S=!1;if(t.placeholderData!==void 0&&y===void 0&&w==="pending"){let N;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(N=o.data,S=!0):N=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,N!==void 0&&(w="success",y=v1(o?.data,N,t),m=!0)}if(t.select&&y!==void 0&&!S)if(o&&y===l?.data&&t.select===this.#l)y=this.#i;else try{this.#l=t.select,y=t.select(y),y=v1(o?.data,y,t),this.#i=y,this.#o=null}catch(N){this.#o=N}else y===void 0&&(this.#o=null);this.#o&&(k=this.#o,y=this.#i,v=Date.now(),w="error",m=!1);const E=p.fetchStatus==="fetching",R=w==="pending",C=w==="error",T=R&&E,A=y!==void 0;return{status:w,fetchStatus:p.fetchStatus,isPending:R,isSuccess:w==="success",isError:C,isInitialLoading:T,isLoading:T,data:y,dataUpdatedAt:p.dataUpdatedAt,error:k,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:E,isRefetching:E&&!R,isLoadingError:C&&!A,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:C&&A,isStale:jb(e,t),refetch:this.refetch,isEnabled:rn(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),Dh(t,e))return;this.#r=t;const s=(()=>{if(!e)return!0;const{notifyOnChangeProps:o}=this.options,l=typeof o=="function"?o():o;if(l==="all"||!l&&!this.#p.size)return!0;const u=new Set(l??this.#p);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(f=>{const d=f;return this.#r[d]!==e[d]&&u.has(d)})})();_n.batch(()=>{s&&this.listeners.forEach(o=>{o(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 t8(e,t){return rn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&rn(t.retryOnMount,e)===!1)}function LS(e,t){return t8(e,t)||e.state.data!==void 0&&S1(e,t,t.refetchOnMount)}function S1(e,t,r){if(rn(t.enabled,e)!==!1&&rn(t.staleTime,e)!=="static"){const s=rn(r,e);return s==="always"||s!==!1&&jb(e,t)}return!1}function DS(e,t,r,s){return(e!==t||rn(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&jb(e,r)}function jb(e,t){return rn(t.enabled,e)!==!1&&e.isStaleByTime(rn(t.staleTime,e))}var n8=class extends $${#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||C$(),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"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},s=this.#r=E$({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(u,f)=>{this.#s({type:"failed",failureCount:u,error:f})},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)}),o=this.state.status==="pending",l=!s.canStart();try{if(o)t();else{this.#s({type:"pending",variables:e,isPaused:l}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,r);const f=await this.options.onMutate?.(e,r);f!==this.state.context&&this.#s({type:"pending",context:f,variables:e,isPaused:l})}const u=await s.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,r),await this.options.onSuccess?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(u,null,e,this.state.context,r),this.#s({type:"success",data:u}),u}catch(u){try{await this.#n.config.onError?.(u,e,this.state.context,this,r)}catch(f){Promise.reject(f)}try{await this.options.onError?.(u,e,this.state.context,r)}catch(f){Promise.reject(f)}try{await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,r)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,u,e,this.state.context,r)}catch(f){Promise.reject(f)}throw this.#s({type:"error",error:u}),u}finally{this.#r===s&&(this.#r=void 0),this.#n.runNext(this)}}#s(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),_n.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function C$(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var r8=class extends gc{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,r){const s=new n8({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:r});return this.add(s),s}add(e){this.#e.add(e);const t=Qf(e);if(typeof t=="string"){const r=this.#t.get(t);r?r.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Qf(e);if(typeof t=="string"){const r=this.#t.get(t);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Qf(e);if(typeof t=="string"){const r=this.#t.get(t)?.find(s=>s.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Qf(e);return typeof t=="string"?this.#t.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){_n.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(r=>jS(t,r))}findAll(e={}){return this.getAll().filter(t=>jS(e,t))}notify(e){_n.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return _n.batch(()=>Promise.all(e.map(t=>t.continue().catch(Sr))))}};function Qf(e){return e.options.scope?.id}var a8=class extends gc{#e;#t=void 0;#n;#r;constructor(t,r){super(),this.#e=t,this.setOptions(r),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#e.defaultMutationOptions(t),Dh(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&$i(r.mutationKey)!==$i(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,r){return this.#r=r,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??C$();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){_n.batch(()=>{const r=this.#r;if(r&&this.hasListeners()){const s=this.#t.variables,o=this.#t.context,l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{r.onSuccess?.(t.data,s,o,l)}catch(u){Promise.reject(u)}try{r.onSettled?.(t.data,null,s,o,l)}catch(u){Promise.reject(u)}}else if(t?.type==="error"){try{r.onError?.(t.error,s,o,l)}catch(u){Promise.reject(u)}try{r.onSettled?.(void 0,t.error,s,o,l)}catch(u){Promise.reject(u)}}}this.listeners.forEach(s=>{s(this.#t)})})}},s8=class extends gc{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,r){const s=t.queryKey,o=t.queryHash??Sb(s,t);let l=this.get(o);return l||(l=new JM({client:e,queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(l)),l}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(){_n.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(r=>CS(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>CS(e,r)):t}notify(e){_n.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){_n.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){_n.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},o8=class{#e;#t;#n;#r;#s;#a;#o;#l;constructor(e={}){this.#e=e.queryCache||new s8,this.#t=e.mutationCache||new r8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=Cb.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#l=Qh.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),r=this.#e.build(this,t),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(rn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:r})=>[t,r.data])}setQueryData(e,t,r){const s=this.defaultQueryOptions({queryKey:e}),o=this.#e.get(s.queryHash)?.state.data,l=qM(t,o);if(l!==void 0)return this.#e.build(this,s).setData(l,{...r,manual:!0})}setQueriesData(e,t,r){return _n.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;_n.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#e;return _n.batch(()=>{const s=r.findAll(e),o=new Set(s);return s.forEach(l=>{l.reset()}),this.refetchQueries({type:"active",predicate:l=>o.has(l)},t)})}cancelQueries(e,t={}){const r={revert:!0,...t},s=_n.batch(()=>this.#e.findAll(e).map(o=>o.cancel(r)));return Promise.all(s).then(Sr).catch(Sr)}invalidateQueries(e,t={}){return _n.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},s=_n.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,r);return r.throwOnError||(l=l.catch(Sr)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(s).then(Sr)}async query(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t),s=r.isStaleByTime(rn(t.staleTime,r))?await r.fetch(t):r.state.data,o=t.select;return o?o(s):s}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#e.build(this,t);return r.isStaleByTime(rn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Sr).catch(Sr)}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(Sr).catch(Sr)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Qh.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($i(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],r={};return t.forEach(s=>{tc(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,t){this.#s.set($i(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],r={};return t.forEach(s=>{tc(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Sb(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===Eb&&(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 j$=g.createContext(!1),i8=()=>g.useContext(j$);j$.Provider;function l8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const c8=g.createContext(l8()),u8=()=>g.useContext(c8),d8=(e,t,r)=>{const s=r?.state.status==="error"&&typeof e.throwOnError=="function"?$b(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||s)&&(t.isReset()||(e.retryOnMount=!1))},f8=e=>{g.useEffect(()=>{e.clearReset()},[e])},h8=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(o&&e.data===void 0||$b(r,[e.error,s])),p8=e=>{if(e.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...o)=>r(s(...o)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},x8=(e,t)=>e?.suspense&&t.isPending,g8=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function m8(e,t,r){const s=i8(),o=u8(),l=qr(),u=l.defaultQueryOptions(e),f=l.getQueryCache().get(u.queryHash),d=e.subscribed!==!1;u._optimisticResults=s?"isRestoring":d?"optimistic":void 0,p8(u),d8(u,o,f),f8(o);const[p]=g.useState(()=>new t(l,u)),m=p.getOptimisticResult(u),y=!s&&d;if(g.useSyncExternalStore(g.useCallback(k=>{const v=y?p.subscribe(_n.batchCalls(k)):Sr;return p.updateResult(),v},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),g.useEffect(()=>{p.setOptions(u)},[u,p]),x8(u,m))throw g8(u,p,o);if(h8({result:m,errorResetBoundary:o,throwOnError:u.throwOnError,query:f,suspense:u.suspense}))throw m.error;return u.notifyOnChangeProps?m:p.trackResult(m)}function Ka(e,t){return m8(e,e8)}function cr(e,t){const r=qr(),[s]=g.useState(()=>new a8(r,e));g.useEffect(()=>{s.setOptions(e)},[s,e]);const o=g.useSyncExternalStore(g.useCallback(u=>s.subscribe(_n.batchCalls(u)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),l=g.useCallback((...u)=>{s.mutate(u[0],u[1]).catch(Sr)},[s]);if(o.error&&$b(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}var R$=e=>{throw TypeError(e)},A$=(e,t,r)=>t.has(e)||R$("Cannot "+r),ba=(e,t,r)=>(A$(e,t,"read from private field"),r?r.call(e):t.get(e)),Ru=(e,t,r)=>t.has(e)?R$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ds=(e,t,r,s)=>(A$(e,t,"write to private field"),t.set(e,r),r),qp=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Pp=/^[\\/]{2}/;function M$(e,t){return t+e.replace(/\\/g,"/")}var OS="popstate";function IS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function y8(e={}){function t(o,l){let{pathname:u="/",search:f="",hash:d=""}=Za(o.location.hash.substring(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),Ku("",{pathname:u,search:f,hash:d},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(o,l){let u=o.document.querySelector("base"),f="";if(u&&u.getAttribute("href")){let d=o.location.href,p=d.indexOf("#");f=p===-1?d:d.slice(0,p)}return f+"#"+(typeof l=="string"?l:$r(l))}function s(o,l){cn(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(l)})`)}return k8(t,r,s,e)}function ht(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function b8(){return Math.random().toString(36).substring(2,10)}function _S(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 Ku(e,t,r=null,s,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Za(t):t,state:r,key:t&&t.key||s||b8(),mask:o}}function $r({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Za(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function k8(e,t,r,s={}){let{window:o=document.defaultView,v5Compat:l=!1}=s,u=o.history,f="POP",d=null,p=m();p==null&&(p=0,u.replaceState({...u.state,idx:p},""));function m(){return(u.state||{idx:null}).idx}function y(){f="POP";let E=m(),R=E==null?null:E-p;p=E,d&&d({action:f,location:S.location,delta:R})}function k(E,R){f="PUSH";let C=IS(E)?E:Ku(S.location,E,R);r&&r(C,E),p=m()+1;let T=_S(C,p),A=S.createHref(C.mask||C);try{u.pushState(T,"",A)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(A)}l&&d&&d({action:f,location:S.location,delta:1})}function v(E,R){f="REPLACE";let C=IS(E)?E:Ku(S.location,E,R);r&&r(C,E),p=m();let T=_S(C,p),A=S.createHref(C.mask||C);u.replaceState(T,"",A),l&&d&&d({action:f,location:S.location,delta:0})}function w(E){return N$(o,E)}let S={get action(){return f},get location(){return e(o,u)},listen(E){if(d)throw new Error("A history only accepts one active listener");return o.addEventListener(OS,y),d=E,()=>{o.removeEventListener(OS,y),d=null}},createHref(E){return t(o,E)},createURL:w,encodeLocation(E){let R=w(E);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:k,replace:v,go(E){return u.go(E)}};return S}function N$(e,t,r=!1){let s="http://localhost";e&&(s=e.location.origin!=="null"?e.location.origin:e.location.href),ht(s,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:$r(t);return o=o.replace(/ $/,"%20"),!r&&Pp.test(o)&&(o=s+o),new URL(o,s)}var Au,qS=class{constructor(e){if(Ru(this,Au,new Map),e)for(let[t,r]of e)this.set(t,r)}get(e){if(ba(this,Au).has(e))return ba(this,Au).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){ba(this,Au).set(e,t)}};Au=new WeakMap;var v8=new Set(["lazy","caseSensitive","path","id","index","children"]);function w8(e){return v8.has(e)}var S8=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function E8(e){return S8.has(e)}function $8(e){return e.index===!0}function Wu(e,t,r=[],s={},o=!1){return e.map((l,u)=>{let f=[...r,String(u)],d=typeof l.id=="string"?l.id:f.join("-");if(ht(l.index!==!0||!l.children,"Cannot specify children on an index route"),ht(o||!s[d],`Found a route id collision on id "${d}". Route id's must be globally unique within Data Router usages`),$8(l)){let p={...l,id:d};return s[d]=PS(p,t(p)),p}else{let p={...l,id:d,children:void 0};return s[d]=PS(p,t(p)),l.children&&(p.children=Wu(l.children,t,f,s,o)),p}})}function PS(e,t){return Object.assign(e,{...t,...typeof t.lazy=="object"&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function z$(e,t,r="/"){return Ha(e,t,r,!1)}function Ha(e,t,r,s,o){let l=typeof t=="string"?Za(t):t,u=Ta(l.pathname||"/",r);if(u==null)return null;let f=o??Oh(e),d=null,p=O8(u);for(let m=0;d==null&&m<f.length;++m)d=D8(f[m],p,s);return d}function L$(e,t){let{route:r,pathname:s,params:o}=e;return{id:r.id,pathname:s,params:o,data:t[r.id],loaderData:t[r.id],handle:r.handle}}function Oh(e){let t=D$(e);return T8(t),t}function D$(e,t=[],r=[],s="",o=!1){let l=(u,f,d=o,p)=>{let m={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(s)&&d)return;ht(m.relativePath.startsWith(s),`Absolute route path "${m.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(s.length)}let y=Ea([s,m.relativePath]),k=r.concat(m);u.children&&u.children.length>0&&(ht(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),D$(u.children,t,k,y,d)),!(u.path==null&&!u.index)&&t.push({path:y,score:z8(y,u.index),routesMeta:k.map((v,w)=>{let[S,E]=_$(v.relativePath,v.caseSensitive,w===k.length-1);return{...v,matcher:S,compiledParams:E}})})};return e.forEach((u,f)=>{if(u.path===""||!u.path?.includes("?"))l(u,f);else for(let d of O$(u.path))l(u,f,!0,d)}),t}function O$(e){let t=e.split("/");if(t.length===0)return[];let[r,...s]=t,o=r.endsWith("?"),l=r.replace(/\?$/,"");if(s.length===0)return o?[l,""]:[l];let u=O$(s.join("/")),f=[];return f.push(...u.map(d=>d===""?l:[l,d].join("/"))),o&&f.push(...u),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function T8(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:L8(t.routesMeta.map(s=>s.childrenIndex),r.routesMeta.map(s=>s.childrenIndex)))}var C8=/^:[\w-]+$/,j8=3,R8=2,A8=1,M8=10,N8=-2,BS=e=>e==="*";function z8(e,t){let r=e.split("/"),s=r.length;return r.some(BS)&&(s+=N8),t&&(s+=R8),r.filter(o=>!BS(o)).reduce((o,l)=>o+(C8.test(l)?j8:l===""?A8:M8),s)}function L8(e,t){return e.length===t.length&&e.slice(0,-1).every((s,o)=>s===t[o])?e[e.length-1]-t[t.length-1]:0}function D8(e,t,r=!1){let{routesMeta:s}=e,o={},l="/",u=[];for(let f=0;f<s.length;++f){let d=s[f],p=f===s.length-1,m=l==="/"?t:t.slice(l.length)||"/",y={path:d.relativePath,caseSensitive:d.caseSensitive,end:p},k=d.matcher&&d.compiledParams?I$(y,m,d.matcher,d.compiledParams):Jh(y,m),v=d.route;if(!k&&p&&r&&!s[s.length-1].route.index&&(k=Jh({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!k)return null;Object.assign(o,k.params),u.push({params:o,pathname:Ea([l,k.pathname]),pathnameBase:q8(Ea([l,k.pathnameBase])),route:v}),k.pathnameBase!=="/"&&(l=Ea([l,k.pathnameBase]))}return u}function Jh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,s]=_$(e.path,e.caseSensitive,e.end);return I$(e,t,r,s)}function I$(e,t,r,s){let o=t.match(r);if(!o)return null;let l=o[0],u=nc(l,1),f=o.slice(1);return{params:s.reduce((p,{paramName:m,isOptional:y},k)=>{if(m==="*"){let w=f[k]||"";u=nc(l.slice(0,l.length-w.length),1)}const v=f[k];return y&&!v?p[m]=void 0:p[m]=(v||"").replace(/%2F/g,"/"),p},{}),pathname:l,pathnameBase:u,pattern:e}}function _$(e,t=!1,r=!0){cn(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=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,d,p,m)=>{if(s.push({paramName:f,isOptional:d!=null}),d){let y=m.charAt(p+u.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),s]}function O8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return cn(!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 Ta(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,s=e.charAt(r);return s&&s!=="/"?null:e.slice(r)||"/"}function I8({basename:e,pathname:t}){return t==="/"?e:Ea([e,t])}var Rb=e=>qp.test(e);function _8(e,t="/"){let{pathname:r,search:s="",hash:o=""}=typeof e=="string"?Za(e):e,l;return r?(r=Ab(r),r.startsWith("/")||r.startsWith("\\")?l=HS(r.substring(1),"/"):l=HS(r,t)):l=t,{pathname:l,search:P8(s),hash:B8(o)}}function HS(e,t){let r=nc(t).split("/");return e.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function dy(e,t,r,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function q$(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function Bp(e){let t=q$(e);return t.map((r,s)=>s===t.length-1?r.pathname:r.pathnameBase)}function ud(e,t,r,s=!1){let o;typeof e=="string"?o=Za(e):(o={...e},ht(!o.pathname||!o.pathname.includes("?"),dy("?","pathname","search",o)),ht(!o.pathname||!o.pathname.includes("#"),dy("#","pathname","hash",o)),ht(!o.search||!o.search.includes("#"),dy("#","search","hash",o)));let l=e===""||o.pathname==="",u=l?"/":o.pathname,f;if(u==null)f=r;else{let y=t.length-1;if(!s&&u.startsWith("..")){let k=u.split("/");for(;k[0]==="..";)k.shift(),y-=1;o.pathname=k.join("/")}f=y>=0?t[y]:"/"}let d=_8(o,f),p=u&&u!=="/"&&u.endsWith("/"),m=(l||u===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(p||m)&&(d.pathname+="/"),d}var Ab=e=>e.replace(/[\\/]{2,}/g,"/"),Ea=e=>Ab(e.join("/"));function nc(e,t=0){let r=e.length;for(;r>t&&e.charCodeAt(r-1)===47;)r--;return r===e.length?e:e.slice(0,r)}var q8=e=>nc(e).replace(/^\/*/,"/"),P8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,B8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,H8=["EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],dd=class{constructor(e,t,r,s=!1){this.status=e,this.statusText=t||"",this.internal=s,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function Yu(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function fd(e){let t=e.map(r=>r.route.path).filter(Boolean);return Ea(t)||"/"}var P$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function B$(e,t){let r=e;if(typeof r!="string"||!qp.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let s=r,o=!1;if(P$)try{let l=new URL(window.location.href),u=Pp.test(r)?new URL(M$(r,l.protocol)):new URL(r),f=Ta(u.pathname,t);u.origin===l.origin&&f!=null?r=f+u.search+u.hash:o=!0}catch{cn(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:o,to:r}}var Ao=Symbol("Uninstrumented");function F8(e,t){let r={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:t.id,index:t.index,path:t.path,instrument(l){let u=Object.keys(r);for(let f of u)l[f]&&r[f].push(l[f])}}));let s={};if(typeof t.lazy=="function"&&r.lazy.length>0){let o=Pl(r.lazy,t.lazy,()=>{});o&&(s.lazy=o)}if(typeof t.lazy=="object"){let o=t.lazy;["middleware","loader","action"].forEach(l=>{let u=o[l],f=r[`lazy.${l}`];if(typeof u=="function"&&f.length>0){let d=Pl(f,u,()=>{});d&&(s.lazy=Object.assign(s.lazy||{},{[l]:d}))}})}return["loader","action"].forEach(o=>{let l=t[o];if(typeof l=="function"&&r[o].length>0){let u=l[Ao]??l,f=Pl(r[o],u,(...d)=>FS(d[0]));f&&(o==="loader"&&u.hydrate===!0&&(f.hydrate=!0),f[Ao]=u,s[o]=f)}}),t.middleware&&t.middleware.length>0&&r.middleware.length>0&&(s.middleware=t.middleware.map(o=>{let l=o[Ao]??o,u=Pl(r.middleware,l,(...f)=>FS(f[0]));return u?(u[Ao]=l,u):o})),s}function U8(e,t){let r={navigate:[],fetch:[]};if(t.forEach(s=>s({instrument(o){let l=Object.keys(o);for(let u of l)o[u]&&r[u].push(o[u])}})),r.navigate.length>0){let s=e.navigate[Ao]??e.navigate,o=Pl(r.navigate,s,(...l)=>{let[u,f]=l;return{to:typeof u=="number"||typeof u=="string"?u:u?$r(u):".",...US(e,f??{})}});o&&(o[Ao]=s,e.navigate=o)}if(r.fetch.length>0){let s=e.fetch[Ao]??e.fetch,o=Pl(r.fetch,s,(...l)=>{let[u,,f,d]=l;return{href:f??".",fetcherKey:u,...US(e,d??{})}});o&&(o[Ao]=s,e.fetch=o)}return e}function Pl(e,t,r){return e.length===0?null:async(...s)=>{let o=await H$(e,r(...s),()=>t(...s),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function H$(e,t,r,s){let o=e[s],l;if(o){let u,f=async()=>(u?console.error("You cannot call instrumented handlers more than once"):u=H$(e,t,r,s-1),l=await u,ht(l,"Expected a result"),l.type==="error"&&l.value instanceof Error?{status:"error",error:l.value}:{status:"success",error:void 0});try{await o(f,t)}catch(d){console.error("An instrumentation function threw an error:",d)}u||await f(),await u}else try{l={type:"success",value:await r()}}catch(u){l={type:"error",value:u}}return l||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function FS(e){let{request:t,context:r,params:s,pattern:o}=e;return{request:V8(t),params:{...s},pattern:o,context:G8(r)}}function US(e,t){return{currentUrl:$r(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 V8(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function G8(e){if(W8(e)){let t={...e};return Object.freeze(t),t}else return{get:t=>e.get(t)}}var K8=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function W8(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")===K8}var VS=new URL("http://localhost");function Mb(e){if(e.createURL)return e.createURL("/");try{return new URL(e.createHref("/"),VS)}catch{return VS}}function fy(e,t){return e.origin===t.origin&&(e.origin!=="null"||e.protocol===t.protocol&&e.host===t.host)}function Y8(e,t){if(e.startsWith("//"))return!0;let r=t.protocol.toLowerCase();return e.toLowerCase().startsWith(r)?t.host===""||e.slice(r.length).startsWith("//"):!1}function Ul(e,t,r,s){let o=null;try{o=e==null?null:new URL(e,r)}catch{}let l=new URL(t,r),u=o!=null&&!fy(o,r),f=!fy(l,r);if(s==="reject"){if(u||f)throw new Error("External navigation is not allowed")}else if(f&&(o==null||!Y8(e,o)||!fy(o,l)))throw new Error("External navigation is not allowed")}var F$=["POST","PUT","PATCH","DELETE"],X8=new Set(F$),Z8=["GET",...F$],Q8=new Set(Z8),U$=new Set([301,302,303,307,308]),J8=new Set([307,308]),hy={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},e9={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},mu={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},t9=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),V$="remix-router-transitions",G$=Symbol("ResetLoaderData"),pi,Ol,To,Il,n9=class{constructor(e){Ru(this,pi),Ru(this,Ol),Ru(this,To),Ru(this,Il),ds(this,pi,e),ds(this,Ol,Oh(e))}get stableRoutes(){return ba(this,pi)}get activeRoutes(){return ba(this,To)??ba(this,pi)}get branches(){return ba(this,Il)??ba(this,Ol)}get hasHMRRoutes(){return ba(this,To)!=null}setRoutes(e){ds(this,pi,e),ds(this,Ol,Oh(e))}setHmrRoutes(e){ds(this,To,e),ds(this,Il,Oh(e))}commitHmrRoutes(){ba(this,To)&&(ds(this,pi,ba(this,To)),ds(this,Ol,ba(this,Il)),ds(this,To,void 0),ds(this,Il,void 0))}};pi=new WeakMap;Ol=new WeakMap;To=new WeakMap;Il=new WeakMap;function r9(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";ht(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=e.hydrationRouteProperties||[],o=e.mapRouteProperties||t9,l=o;if(e.instrumentations){let W=e.instrumentations;l=Y=>({...o(Y),...F8(W.map(oe=>oe.route).filter(Boolean),Y)})}let u={},f=new n9(Wu(e.routes,l,void 0,u)),d=e.basename||"/";d.startsWith("/")||(d=`/${d}`);let p=e.dataStrategy||l9,m={...e.future},y=null,k=new Set,v=null,w=null,S=null,E=null,R=e.hydrationData!=null,C=Ha(f.activeRoutes,e.history.location,d,!1,f.branches),T=!1,A=null,N,L;if(C==null&&!e.patchRoutesOnNavigation){let W=ka(404,{pathname:e.history.location.pathname}),{matches:Y,route:oe}=Jf(f.activeRoutes);N=!0,L=!N,C=Y,A={[oe.id]:W}}else if(C&&!e.hydrationData&&Xn(C,f.activeRoutes,e.history.location.pathname).active&&(C=null),C)if(C.some(W=>W.route.lazy))N=!1,L=!N;else if(!C.some(W=>Nb(W.route)))N=!0,L=!N;else{let W=e.hydrationData?e.hydrationData.loaderData:null,Y=e.hydrationData?e.hydrationData.errors:null,oe=C;if(Y){let ge=C.findIndex(ke=>Y[ke.route.id]!==void 0);oe=oe.slice(0,ge+1)}L=!1,N=!0,oe.forEach(ge=>{let ke=K$(ge.route,W,Y);L=L||ke.renderFallback,N=N&&!ke.shouldLoad})}else{N=!1,L=!N,C=[];let W=Xn(null,f.activeRoutes,e.history.location.pathname);W.active&&W.matches&&(T=!0,C=W.matches)}let D,j={historyAction:e.history.action,location:e.history.location,matches:C,initialized:N,renderFallback:L,navigation:hy,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||A,fetchers:new Map,blockers:new Map},O="POP",M=null,H=!1,F,q=!1,B=new Map,U=null,_=!1,P=!1,G=new Set,X=new Map,Z=0,Q=-1,K=new Map,ae=new Set,I=new Map,ee=new Map,pe=new Set,ue=new Map,ve,xe=null;function $e(){if(y=e.history.listen(({action:W,location:Y,delta:oe})=>{if(ve){ve(),ve=void 0;return}cn(ue.size===0||oe!=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 ge=un({currentLocation:j.location,nextLocation:Y,historyAction:W});if(ge&&oe!=null){let ke=new Promise(Ie=>{ve=Ie});e.history.go(oe*-1),en(ge,{state:"blocked",location:Y,proceed(){en(ge,{state:"proceeding",proceed:void 0,reset:void 0,location:Y}),ke.then(()=>e.history.go(oe))},reset(){let Ie=new Map(j.blockers);Ie.set(ge,mu),Re({blockers:Ie})}}),M?.resolve(),M=null;return}return je(W,Y)}),r){C9(t,B);let W=()=>j9(t,B);t.addEventListener("pagehide",W),U=()=>t.removeEventListener("pagehide",W)}return j.initialized||je("POP",j.location,{initialHydration:!0}),D}function te(){y&&y(),U&&U(),k.clear(),F&&F.abort(),j.fetchers.forEach((W,Y)=>gn(j.fetchers,Y)),j.blockers.forEach((W,Y)=>Le(Y))}function he(W){if(k.add(W),v){let{newErrors:Y}=v;v=null,W(j,{deletedFetchers:[],newErrors:Y,viewTransitionOpts:void 0,flushSync:!1})}return()=>k.delete(W)}function Re(W,Y={}){W.matches&&(W.matches=W.matches.map(ke=>{let Ie=u[ke.route.id],De=ke.route;return De.element!==Ie.element||De.errorElement!==Ie.errorElement||De.hydrateFallbackElement!==Ie.hydrateFallbackElement?{...ke,route:Ie}:ke})),j={...j,...W};let oe=[],ge=[];j.fetchers.forEach((ke,Ie)=>{ke.state==="idle"&&(pe.has(Ie)?oe.push(Ie):ge.push(Ie))}),pe.forEach(ke=>{!j.fetchers.has(ke)&&!X.has(ke)&&oe.push(ke)}),k.size===0&&(v={newErrors:W.errors??null}),[...k].forEach(ke=>ke(j,{deletedFetchers:oe,newErrors:W.errors??null,viewTransitionOpts:Y.viewTransitionOpts,flushSync:Y.flushSync===!0})),oe.forEach(ke=>gn(j.fetchers,ke)),ge.forEach(ke=>j.fetchers.delete(ke))}function Ce(W,Y,{flushSync:oe}={}){let ge=j.actionData!=null&&j.navigation.formMethod!=null&&lr(j.navigation.formMethod)&&j.navigation.state==="loading"&&W.state?._isRedirect!==!0,ke;Y.actionData?Object.keys(Y.actionData).length>0?ke=Y.actionData:ke=null:ge?ke=j.actionData:ke=null;let Ie=Y.loaderData?t5(j.loaderData,Y.loaderData,Y.matches||[],Y.errors):j.loaderData,De=j.blockers;De.size>0&&(De=new Map(De),De.forEach((Be,Ze)=>De.set(Ze,mu)));let Se=_?!1:Br(W,Y.matches||j.matches),Ne=H===!0||j.navigation.formMethod!=null&&lr(j.navigation.formMethod)&&W.state?._isRedirect!==!0;f.commitHmrRoutes(),_||O==="POP"||(O==="PUSH"?e.history.push(W,W.state):O==="REPLACE"&&e.history.replace(W,W.state));let Ke;if(O==="POP"&&!_&&W!==j.location){let Be=B.get(j.location.pathname);Be&&Be.has(W.pathname)?Ke={currentLocation:j.location,nextLocation:W}:B.has(W.pathname)&&(Ke={currentLocation:W,nextLocation:j.location})}else if(q){let Be=B.get(j.location.pathname);Be?Be.add(W.pathname):(Be=new Set([W.pathname]),B.set(j.location.pathname,Be)),Ke={currentLocation:j.location,nextLocation:W}}Re({...Y,actionData:ke,loaderData:Ie,historyAction:O,location:W,initialized:!0,renderFallback:!1,navigation:hy,revalidation:"idle",restoreScrollPosition:Se,preventScrollReset:Ne,blockers:De},{viewTransitionOpts:Ke,flushSync:oe===!0}),O="POP",H=!1,q=!1,_=!1,P=!1,M?.resolve(),M=null,xe?.resolve(),xe=null}async function Te(W,Y){if(M?.resolve(),M=null,typeof W=="number"){M||(M=s5());let At=M.promise;return e.history.go(W),At}let oe=E1(j.location,j.matches,d,W,Y?.fromRouteId,Y?.relative),{path:ge,submission:ke,error:Ie}=GS(!1,oe,Y),De;if(Y?.mask){let At=typeof Y.mask=="string"?Za(Y.mask):{...j.location.mask,...Y.mask};if(De={pathname:At.pathname??"",search:At.search??"",hash:At.hash??""},Pp.test(De.pathname))throw new Error("External navigation is not allowed");De.pathname.startsWith("\\")&&(De.pathname=De.pathname.replace(/^\\+/,"/")),Ul(typeof Y.mask=="string"?Y.mask:$r(Y.mask),$r(De),e.history.createURL("/"),"reject")}let Se=j.location,Ne=Ku(Se,ge,Y&&Y.state,void 0,De);Ne={...Ne,...e.history.encodeLocation(Ne)},Ul(W==null?e.history.createHref(j.location):typeof W=="string"?W:$r(W),e.history.createHref(Ne.mask||Ne),e.history.createURL("/"),"reject");let Ke=Y&&Y.replace!=null?Y.replace:void 0,Be="PUSH";Ke===!0?Be="REPLACE":Ke===!1||ke!=null&&lr(ke.formMethod)&&ke.formAction===j.location.pathname+j.location.search&&(Be="REPLACE");let Ze=Y&&"preventScrollReset"in Y?Y.preventScrollReset===!0:void 0,Fe=(Y&&Y.flushSync)===!0,St=un({currentLocation:Se,nextLocation:Ne,historyAction:Be});if(St){en(St,{state:"blocked",location:Ne,proceed(){en(St,{state:"proceeding",proceed:void 0,reset:void 0,location:Ne}),Te(W,Y)},reset(){let At=new Map(j.blockers);At.set(St,mu),Re({blockers:At})}});return}await je(Be,Ne,{submission:ke,pendingError:Ie,preventScrollReset:Ze,replace:Y&&Y.replace,enableViewTransition:Y&&Y.viewTransition,flushSync:Fe,callSiteDefaultShouldRevalidate:Y&&Y.defaultShouldRevalidate})}function Me(){xe||(xe=s5()),ct(),Re({revalidation:"loading"});let W=xe.promise;return j.navigation.state==="submitting"?W:j.navigation.state==="idle"?(je(j.historyAction,j.location,{startUninterruptedRevalidation:!0}),W):(je(O||j.historyAction,j.navigation.location,{overrideNavigation:j.navigation,enableViewTransition:q===!0}),W)}async function je(W,Y,oe){F&&F.abort(),F=null,O=W,_=(oe&&oe.startUninterruptedRevalidation)===!0,Tr(j.location,j.matches),H=(oe&&oe.preventScrollReset)===!0,q=(oe&&oe.enableViewTransition)===!0;let ge=f.activeRoutes,ke=oe?.initialHydration&&j.matches&&j.matches.length>0&&!T?j.matches:Ha(ge,Y,d,!1,f.branches),Ie=(oe&&oe.flushSync)===!0;if(ke&&j.initialized&&!P&&m9(j.location,Y)&&!(oe&&oe.submission&&lr(oe.submission.formMethod))){Ce(Y,{matches:ke},{flushSync:Ie});return}let De=Xn(ke,ge,Y.pathname);if(De.active&&De.matches&&(ke=De.matches),!ke){let{error:Ct,notFoundMatches:kt,route:mn}=an(Y.pathname);Ce(Y,{matches:kt,loaderData:{},errors:{[mn.id]:Ct}},{flushSync:Ie});return}let Se=oe&&oe.overrideNavigation?{...oe.overrideNavigation,matches:ke,historyAction:W}:void 0;F=new AbortController;let Ne=_l(e.history,Y,F.signal,oe&&oe.submission),Ke=e.getContext?await e.getContext():new qS,Be;if(oe&&oe.pendingError)Be=[jo(ke).route.id,{type:"error",error:oe.pendingError}];else if(oe&&oe.submission&&lr(oe.submission.formMethod)){let Ct=await He(Ne,Y,oe.submission,ke,W,Ke,De.active,oe&&oe.initialHydration===!0,{replace:oe.replace,flushSync:Ie});if(Ct.shortCircuited)return;if(Ct.pendingActionResult){let[kt,mn]=Ct.pendingActionResult;if(ta(mn)&&Yu(mn.error)&&mn.error.status===404){F=null,Ce(Y,{matches:Ct.matches,loaderData:{},errors:{[kt]:mn.error}});return}}ke=Ct.matches||ke,Be=Ct.pendingActionResult,Se=py(Y,ke,W,oe.submission),Ie=!1,De.active=!1,Ne=_l(e.history,Ne.url,Ne.signal)}let{shortCircuited:Ze,matches:Fe,loaderData:St,errors:At,workingFetchers:Ft}=await at(Ne,Y,ke,W,Ke,De.active,Se,oe&&oe.submission,oe&&oe.fetcherSubmission,oe&&oe.replace,oe&&oe.initialHydration===!0,Ie,Be,oe&&oe.callSiteDefaultShouldRevalidate);Ze||(F=null,Ce(Y,{matches:Fe||ke,...n5(Be),loaderData:St,errors:At,...Ft?{fetchers:Ft}:{}}))}async function He(W,Y,oe,ge,ke,Ie,De,Se,Ne={}){ct();let Ke=$9(Y,ge,ke,oe);if(Re({navigation:Ke},{flushSync:Ne.flushSync===!0}),De){let Fe=await Gt(ge,Y.pathname,W.signal);if(Fe.type==="aborted")return{shortCircuited:!0};if(Fe.type==="error"){if(Fe.partialMatches.length===0){let{matches:At,route:Ft}=Jf(f.activeRoutes);return{matches:At,pendingActionResult:[Ft.id,{type:"error",error:Fe.error}]}}let St=jo(Fe.partialMatches).route.id;return{matches:Fe.partialMatches,pendingActionResult:[St,{type:"error",error:Fe.error}]}}else if(Fe.matches)ge=Fe.matches;else{let{notFoundMatches:St,error:At,route:Ft}=an(Y.pathname);return{matches:St,pendingActionResult:[Ft.id,{type:"error",error:At}]}}}let Be,Ze=Ih(ge,Y);if(!Ze.route.action&&!Ze.route.lazy)Be={type:"error",error:ka(405,{method:W.method,pathname:Y.pathname,routeId:Ze.route.id})};else{let Fe=Vl(l,u,W,Y,ge,Ze,Se?[]:s,Ie),St=await lt(W,Y,Fe,Ie,null);if(Be=St[Ze.route.id],!Be){for(let At of ge)if(St[At.route.id]){Be=St[At.route.id];break}}if(W.signal.aborted)return{shortCircuited:!0}}if(mi(Be)){let Fe;return Ne&&Ne.replace!=null?Fe=Ne.replace:Fe=QS(Be.response.headers.get("Location"),new URL(W.url),d,e.history)===j.location.pathname+j.location.search,await rt(W,Be,!0,{submission:oe,replace:Fe}),{shortCircuited:!0}}if(ta(Be)){let Fe=jo(ge,Ze.route.id);return(Ne&&Ne.replace)!==!0&&(O="PUSH"),{matches:ge,pendingActionResult:[Fe.route.id,Be,Ze.route.id]}}return{matches:ge,pendingActionResult:[Ze.route.id,Be]}}async function at(W,Y,oe,ge,ke,Ie,De,Se,Ne,Ke,Be,Ze,Fe,St){let At=De||py(Y,oe,ge,Se),Ft=Se||Ne||a5(At),Ct=!_&&!Be;if(Ie){if(Ct){let sn=pt(Fe);Re({navigation:At,...sn!==void 0?{actionData:sn}:{}},{flushSync:Ze})}let ot=await Gt(oe,Y.pathname,W.signal);if(ot.type==="aborted")return{shortCircuited:!0};if(ot.type==="error"){if(ot.partialMatches.length===0){let{matches:dn,route:Ln}=Jf(f.activeRoutes);return{matches:dn,loaderData:{},errors:{[Ln.id]:ot.error}}}let sn=jo(ot.partialMatches).route.id;return{matches:ot.partialMatches,loaderData:{},errors:{[sn]:ot.error}}}else if(ot.matches)oe=ot.matches;else{let{error:sn,notFoundMatches:dn,route:Ln}=an(Y.pathname);return{matches:dn,loaderData:{},errors:{[Ln.id]:sn}}}}let kt=f.activeRoutes,{dsMatches:mn,revalidatingFetchers:zn}=KS(W,ke,l,u,e.history,j,oe,Ft,Y,Be?[]:s,Be===!0,P,G,pe,I,ae,kt,d,e.patchRoutesOnNavigation!=null,f.branches,Fe,St);if(Q=++Z,!e.dataStrategy&&!mn.some(ot=>ot.shouldLoad)&&!mn.some(ot=>ot.route.middleware&&ot.route.middleware.length>0)&&zn.length===0){let ot=new Map(j.fetchers),sn=Jt(ot);return Ce(Y,{matches:oe,loaderData:{},errors:Fe&&ta(Fe[1])?{[Fe[0]]:Fe[1].error}:null,...n5(Fe),...sn?{fetchers:ot}:{}},{flushSync:Ze}),{shortCircuited:!0}}if(Ct){let ot={};if(!Ie){ot.navigation=At;let sn=pt(Fe);sn!==void 0&&(ot.actionData=sn)}zn.length>0&&(ot.fetchers=et(zn)),Re(ot,{flushSync:Ze})}zn.forEach(ot=>{Vt(ot.key),ot.controller&&X.set(ot.key,ot.controller)});let Aa=()=>zn.forEach(ot=>Vt(ot.key));F&&F.signal.addEventListener("abort",Aa);let{loaderResults:vn,fetcherResults:Bt}=await st(mn,zn,W,Y,ke);if(W.signal.aborted)return{shortCircuited:!0};F&&F.signal.removeEventListener("abort",Aa),zn.forEach(ot=>X.delete(ot.key));let Yt=eh(vn);if(Yt)return await rt(W,Yt.result,!0,{replace:Ke}),{shortCircuited:!0};if(Yt=eh(Bt),Yt)return ae.add(Yt.key),await rt(W,Yt.result,!0,{replace:Ke}),{shortCircuited:!0};let wn=new Map(j.fetchers),{loaderData:Zn,errors:Hr}=e5(j,oe,vn,Fe,zn,Bt,wn);Be&&j.errors&&(Hr={...j.errors,...Hr});let Fr=Jt(wn),ks=kn(Q,wn),Qn=Fr||ks||zn.length>0;return{matches:oe,loaderData:Zn,errors:Hr,...Qn?{workingFetchers:wn}:{}}}function pt(W){if(W&&!ta(W[1]))return{[W[0]]:W[1].data};if(j.actionData)return Object.keys(j.actionData).length===0?null:j.actionData}function et(W){let Y=new Map(j.fetchers);return W.forEach(oe=>{let ge=Y.get(oe.key),ke=yu(void 0,ge?ge.data:void 0);Y.set(oe.key,ke)}),Y}async function Ve(W,Y,oe,ge){Vt(W);let ke=(ge&&ge.flushSync)===!0,Ie=f.activeRoutes,De=E1(j.location,j.matches,d,oe,Y,ge?.relative),Se=Ha(Ie,De,d,!1,f.branches),Ne=Xn(Se,Ie,De);if(Ne.active&&Ne.matches&&(Se=Ne.matches),!Se){Ge(W,Y,ka(404,{pathname:De}),{flushSync:ke});return}let{path:Ke,submission:Be,error:Ze}=GS(!0,De,ge);if(Ze){Ge(W,Y,Ze,{flushSync:ke});return}let Fe=e.getContext?await e.getContext():new qS,St=(ge&&ge.preventScrollReset)===!0;if(Be&&lr(Be.formMethod)){await bt(W,Y,Ke,Se,Fe,Ne.active,ke,St,Be,ge&&ge.defaultShouldRevalidate);return}I.set(W,{routeId:Y,path:Ke}),await Pe(W,Y,Ke,Se,Fe,Ne.active,ke,St,Be)}async function bt(W,Y,oe,ge,ke,Ie,De,Se,Ne,Ke){ct(),I.delete(W);let Be=j.fetchers.get(W);we(W,T9(Ne,Be),{flushSync:De});let Ze=new AbortController,Fe=_l(e.history,oe,Ze.signal,Ne);if(Ie){let tt=await Gt(ge,new URL(Fe.url).pathname,Fe.signal,W);if(tt.type==="aborted")return;if(tt.type==="error"){Ge(W,Y,tt.error,{flushSync:De});return}else if(tt.matches)ge=tt.matches;else{Ge(W,Y,ka(404,{pathname:oe}),{flushSync:De});return}}let St=Ih(ge,oe);if(!St.route.action&&!St.route.lazy){let tt=ka(405,{method:Ne.formMethod,pathname:oe,routeId:Y});Ge(W,Y,tt,{flushSync:De});return}X.set(W,Ze);let At=Z,Ft=Vl(l,u,Fe,oe,ge,St,s,ke),Ct=await lt(Fe,oe,Ft,ke,W),kt=Ct[St.route.id];if(!kt){for(let tt of Ft)if(Ct[tt.route.id]){kt=Ct[tt.route.id];break}}if(Fe.signal.aborted){X.get(W)===Ze&&X.delete(W);return}if(pe.has(W)){if(mi(kt)||ta(kt)){we(W,xs(void 0));return}}else{if(mi(kt))if(X.delete(W),Q>At){we(W,xs(void 0));return}else return ae.add(W),we(W,yu(Ne)),rt(Fe,kt,!1,{fetcherSubmission:Ne,preventScrollReset:Se});if(ta(kt)){Ge(W,Y,kt.error);return}}let mn=j.navigation.location||j.location,zn=_l(e.history,mn,Ze.signal),Aa=f.activeRoutes,vn=j.navigation.state!=="idle"?Ha(Aa,j.navigation.location,d,!1,f.branches):j.matches;ht(vn,"Didn't find any matches after fetcher action");let Bt=++Z;K.set(W,Bt);let{dsMatches:Yt,revalidatingFetchers:wn}=KS(zn,ke,l,u,e.history,j,vn,Ne,mn,s,!1,P,G,pe,I,ae,Aa,d,e.patchRoutesOnNavigation!=null,f.branches,[St.route.id,kt],Ke),Zn=yu(Ne,kt.data),Hr=new Map(j.fetchers);Hr.set(W,Zn),wn.filter(tt=>tt.key!==W).forEach(tt=>{let sa=tt.key,Po=Hr.get(sa),Bo=yu(void 0,Po?Po.data:void 0);Hr.set(sa,Bo),Vt(sa),tt.controller&&X.set(sa,tt.controller)}),Re({fetchers:Hr});let Fr=()=>wn.forEach(tt=>Vt(tt.key));Ze.signal.addEventListener("abort",Fr);let{loaderResults:ks,fetcherResults:Qn}=await st(Yt,wn,zn,mn,ke);if(Ze.signal.aborted)return;Ze.signal.removeEventListener("abort",Fr),K.delete(W),X.delete(W),wn.forEach(tt=>X.delete(tt.key));let ot=j.fetchers.has(W),sn=tt=>{if(!ot)return tt;let sa=new Map(tt.fetchers);return sa.set(W,xs(kt.data)),{...tt,fetchers:sa}},dn=eh(ks);if(dn)return j=sn(j),rt(zn,dn.result,!1,{preventScrollReset:Se});if(dn=eh(Qn),dn)return ae.add(dn.key),j=sn(j),rt(zn,dn.result,!1,{preventScrollReset:Se});let Ln=new Map(j.fetchers);ot&&Ln.set(W,xs(kt.data));let{loaderData:Ma,errors:Ur}=e5(j,vn,ks,void 0,wn,Qn,Ln);kn(Bt,Ln),j.navigation.state==="loading"&&Bt>Q?(ht(O,"Expected pending action"),F&&F.abort(),Ce(j.navigation.location,{matches:vn,loaderData:Ma,errors:Ur,fetchers:Ln})):(Re({errors:Ur,loaderData:t5(j.loaderData,Ma,vn,Ur),fetchers:Ln}),P=!1)}async function Pe(W,Y,oe,ge,ke,Ie,De,Se,Ne){let Ke=j.fetchers.get(W);we(W,yu(Ne,Ke?Ke.data:void 0),{flushSync:De});let Be=new AbortController,Ze=_l(e.history,oe,Be.signal);if(Ie){let kt=await Gt(ge,new URL(Ze.url).pathname,Ze.signal,W);if(kt.type==="aborted")return;if(kt.type==="error"){Ge(W,Y,kt.error,{flushSync:De});return}else if(kt.matches)ge=kt.matches;else{Ge(W,Y,ka(404,{pathname:oe}),{flushSync:De});return}}let Fe=Ih(ge,oe);X.set(W,Be);let St=Z,At=Vl(l,u,Ze,oe,ge,Fe,s,ke),Ft=await lt(Ze,oe,At,ke,W),Ct=Ft[Fe.route.id];if(!Ct){for(let kt of ge)if(Ft[kt.route.id]){Ct=Ft[kt.route.id];break}}if(X.get(W)===Be&&X.delete(W),!Ze.signal.aborted){if(pe.has(W)){we(W,xs(void 0));return}if(mi(Ct))if(Q>St){we(W,xs(void 0));return}else{ae.add(W),await rt(Ze,Ct,!1,{preventScrollReset:Se});return}if(ta(Ct)){Ge(W,Y,Ct.error);return}we(W,xs(Ct.data))}}async function rt(W,Y,oe,{submission:ge,fetcherSubmission:ke,preventScrollReset:Ie,replace:De}={}){oe||(M?.resolve(),M=null),Y.response.headers.has("X-Remix-Revalidate")&&(P=!0);let Se=Y.response.headers.get("Location");ht(Se,"Expected a Location header on the redirect Response");let Ne=Se,Ke=new URL(W.url);Se=QS(Se,Ke,d,e.history),Ul(Ne,Se,Ke,"allow-explicit");let Be=Ku(j.location,Se,{_isRedirect:!0});if(r){let Ct=!1;if(Y.response.headers.has("X-Remix-Reload-Document"))Ct=!0;else if(Rb(Se)){const kt=N$(t,Se,!0);Ct=kt.origin!==t.location.origin||Ta(kt.pathname,d)==null}if(Ct){De?t.location.replace(Se):t.location.assign(Se);return}}F=null;let Ze=De===!0||Y.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Fe,formAction:St,formEncType:At}=j.navigation;!ge&&!ke&&Fe&&St&&At&&(ge=a5(j.navigation));let Ft=ge||ke;if(J8.has(Y.response.status)&&Ft&&lr(Ft.formMethod))await je(Ze,Be,{submission:{...Ft,formAction:Se},preventScrollReset:Ie||H,enableViewTransition:oe?q:void 0});else{let Ct=py(Be,[],Ze,ge);await je(Ze,Be,{overrideNavigation:Ct,fetcherSubmission:ke,preventScrollReset:Ie||H,enableViewTransition:oe?q:void 0})}}async function lt(W,Y,oe,ge,ke){let Ie,De={};try{Ie=await u9(p,W,Y,oe,ke,ge,!1)}catch(Se){return oe.filter(Ne=>Ne.shouldLoad).forEach(Ne=>{De[Ne.route.id]={type:"error",error:Se}}),De}if(W.signal.aborted)return De;if(!lr(W.method))for(let Se of oe){if(Ie[Se.route.id]?.type==="error")break;!Ie.hasOwnProperty(Se.route.id)&&!j.loaderData.hasOwnProperty(Se.route.id)&&(!j.errors||!j.errors.hasOwnProperty(Se.route.id))&&Se.shouldCallHandler()&&(Ie[Se.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${Se.route.id}`)})}for(let[Se,Ne]of Object.entries(Ie))if(v9(Ne)){let Ke=Ne.result;De[Se]={type:"redirect",response:p9(Ke,W,Se,oe,d)}}else De[Se]=await h9(Ne);return De}async function st(W,Y,oe,ge,ke){let Ie=lt(oe,ge,W,ke,null),De=Promise.all(Y.map(async Ke=>{if(Ke.matches&&Ke.match&&Ke.request&&Ke.controller){let Ze=(await lt(Ke.request,Ke.path,Ke.matches,ke,Ke.key))[Ke.match.route.id];return{[Ke.key]:Ze}}else return Promise.resolve({[Ke.key]:{type:"error",error:ka(404,{pathname:Ke.path})}})})),Se=await Ie,Ne=(await De).reduce((Ke,Be)=>Object.assign(Ke,Be),{});return{loaderResults:Se,fetcherResults:Ne}}function ct(){P=!0,I.forEach((W,Y)=>{X.has(Y)&&G.add(Y),Vt(Y)})}function we(W,Y,oe={}){let ge=new Map(j.fetchers);ge.set(W,Y),Re({fetchers:ge},{flushSync:(oe&&oe.flushSync)===!0})}function Ge(W,Y,oe,ge={}){let ke=jo(j.matches,Y),Ie=new Map(j.fetchers);gn(Ie,W),Re({errors:{[ke.route.id]:oe},fetchers:Ie},{flushSync:(ge&&ge.flushSync)===!0})}function Pt(W){return ee.set(W,(ee.get(W)||0)+1),pe.has(W)&&pe.delete(W),j.fetchers.get(W)||e9}function bn(W,Y){Vt(W,Y?.reason),we(W,xs(null))}function gn(W,Y){let oe=j.fetchers.get(Y);X.has(Y)&&!(oe&&oe.state==="loading"&&K.has(Y))&&Vt(Y),I.delete(Y),K.delete(Y),ae.delete(Y),pe.delete(Y),G.delete(Y),W.delete(Y)}function An(W){let Y=(ee.get(W)||0)-1;Y<=0?(ee.delete(W),pe.add(W)):ee.set(W,Y),Re({fetchers:new Map(j.fetchers)})}function Vt(W,Y){let oe=X.get(W);oe&&(oe.abort(Y),X.delete(W))}function Yn(W,Y){for(let oe of W){let ge=Y.get(oe);ht(ge,`Expected fetcher: ${oe}`);let ke=xs(ge.data);Y.set(oe,ke)}}function Jt(W){let Y=[],oe=!1;for(let ge of ae){let ke=W.get(ge);ht(ke,`Expected fetcher: ${ge}`),ke.state==="loading"&&(ae.delete(ge),Y.push(ge),oe=!0)}return Yn(Y,W),oe}function kn(W,Y){let oe=[];for(let[ge,ke]of K)if(ke<W){let Ie=Y.get(ge);ht(Ie,`Expected fetcher: ${ge}`),Ie.state==="loading"&&(Vt(ge),K.delete(ge),oe.push(ge))}return Yn(oe,Y),oe.length>0}function Ye(W,Y){let oe=j.blockers.get(W)||mu;return ue.get(W)!==Y&&ue.set(W,Y),oe}function Le(W){j.blockers.delete(W),ue.delete(W)}function en(W,Y){let oe=j.blockers.get(W)||mu;ht(oe.state==="unblocked"&&Y.state==="blocked"||oe.state==="blocked"&&Y.state==="blocked"||oe.state==="blocked"&&Y.state==="proceeding"||oe.state==="blocked"&&Y.state==="unblocked"||oe.state==="proceeding"&&Y.state==="unblocked",`Invalid blocker state transition: ${oe.state} -> ${Y.state}`);let ge=new Map(j.blockers);ge.set(W,Y),Re({blockers:ge})}function un({currentLocation:W,nextLocation:Y,historyAction:oe}){if(ue.size===0)return;ue.size>1&&cn(!1,"A router only supports one blocker at a time");let ge=Array.from(ue.entries()),[ke,Ie]=ge[ge.length-1],De=j.blockers.get(ke);if(!(De&&De.state==="proceeding")&&Ie({currentLocation:W,nextLocation:Y,historyAction:oe}))return ke}function an(W){let Y=ka(404,{pathname:W}),oe=f.activeRoutes,{matches:ge,route:ke}=Jf(oe);return{notFoundMatches:ge,route:ke,error:Y}}function ur(W,Y,oe){if(w=W,E=Y,S=oe||null,!R&&j.navigation===hy){R=!0;let ge=Br(j.location,j.matches);ge!=null&&Re({restoreScrollPosition:ge})}return()=>{w=null,E=null,S=null}}function Ja(W,Y){return S&&S(W,Y.map(ge=>L$(ge,j.loaderData)))||W.key}function Tr(W,Y){if(w&&E){let oe=Ja(W,Y);w[oe]=E()}}function Br(W,Y){if(w){let oe=Ja(W,Y),ge=w[oe];if(typeof ge=="number")return ge}return null}function Xn(W,Y,oe){if(e.patchRoutesOnNavigation){let ge=f.branches;if(W){if(Object.keys(W[0].params).length>0)return{active:!0,matches:Ha(Y,oe,d,!0,ge)}}else return{active:!0,matches:Ha(Y,oe,d,!0,ge)||[]}}return{active:!1,matches:null}}async function Gt(W,Y,oe,ge){if(!e.patchRoutesOnNavigation)return{type:"success",matches:W};let ke=W;for(;;){let Ie=u;try{await e.patchRoutesOnNavigation({signal:oe,path:Y,matches:ke,fetcherKey:ge,patch:(Ke,Be)=>{oe.aborted||WS(Ke,Be,f,Ie,l,!1)}})}catch(Ke){return{type:"error",error:Ke,partialMatches:ke}}if(oe.aborted)return{type:"aborted"};let De=f.branches,Se=Ha(f.activeRoutes,Y,d,!1,De),Ne=null;if(Se){if(Object.keys(Se[0].params).length===0)return{type:"success",matches:Se};if(Ne=Ha(f.activeRoutes,Y,d,!0,De),!(Ne&&ke.length<Ne.length&&dr(ke,Ne.slice(0,ke.length))))return{type:"success",matches:Se}}if(Ne||(Ne=Ha(f.activeRoutes,Y,d,!0,De)),!Ne||dr(ke,Ne))return{type:"success",matches:null};ke=Ne}}function dr(W,Y){return W.length===Y.length&&W.every((oe,ge)=>oe.route.id===Y[ge].route.id)}function Mn(W){u={},f.setHmrRoutes(Wu(W,l,void 0,u))}function Nn(W,Y,oe=!1){WS(W,Y,f,u,l,oe),f.hasHMRRoutes||Re({})}return D={get basename(){return d},get future(){return m},get state(){return j},get routes(){return f.stableRoutes},get branches(){return f.branches},get manifest(){return u},get window(){return t},initialize:$e,subscribe:he,enableScrollRestoration:ur,navigate:Te,fetch:Ve,revalidate:Me,createHref:W=>e.history.createHref(W),createURL:W=>e.history.createURL(W),encodeLocation:W=>e.history.encodeLocation(W),getFetcher:Pt,resetFetcher:bn,deleteFetcher:An,dispose:te,getBlocker:Ye,deleteBlocker:Le,patchRoutes:Nn,_internalFetchControllers:X,_internalSetRoutes:Mn,_internalSetStateDoNotUseOrYouWillBreakYourApp(W){Re(W)}},e.instrumentations&&(D=U8(D,e.instrumentations.map(W=>W.router).filter(Boolean))),D}function a9(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function E1(e,t,r,s,o,l){let u,f;if(o){u=[];for(let p of t)if(u.push(p),p.route.id===o){f=p;break}}else u=t,f=t[t.length-1];let d=ud(s||".",Bp(u),Ta(e.pathname,r)||e.pathname,l==="path");if(s==null&&(d.search=e.search,d.hash=e.hash),(s==null||s===""||s===".")&&f){let p=Lb(d.search);if(f.route.index&&!p)d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index";else if(!f.route.index&&p){let m=new URLSearchParams(d.search),y=m.getAll("index");m.delete("index"),y.filter(v=>v).forEach(v=>m.append("index",v));let k=m.toString();d.search=k?`?${k}`:""}}return r!=="/"&&(d.pathname=I8({basename:r,pathname:d.pathname})),$r(d)}function GS(e,t,r){if(!r||!a9(r))return{path:t};if(r.formMethod&&!E9(r.formMethod))return{path:t,error:ka(405,{method:r.formMethod})};let s=()=>({path:t,error:ka(400,{type:"invalid-body"})}),l=(r.formMethod||"get").toUpperCase(),u=eT(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!lr(l))return s();let y=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((k,[v,w])=>`${k}${v}=${w}
|
|
11
|
-
`,""):String(r.body);return{path:t,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:void 0,text:y}}}else if(r.formEncType==="application/json"){if(!lr(l))return s();try{let y=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:l,formAction:u,formEncType:r.formEncType,formData:void 0,json:y,text:void 0}}}catch{return s()}}}ht(typeof FormData=="function","FormData is not available in this environment");let f,d;if(r.formData)f=C1(r.formData),d=r.formData;else if(r.body instanceof FormData)f=C1(r.body),d=r.body;else if(r.body instanceof URLSearchParams)f=r.body,d=JS(f);else if(r.body==null)f=new URLSearchParams,d=new FormData;else try{f=new URLSearchParams(r.body),d=JS(f)}catch{return s()}let p={formMethod:l,formAction:u,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:d,json:void 0,text:void 0};if(lr(p.formMethod))return{path:t,submission:p};let m=Za(t);return e&&m.search&&Lb(m.search)&&f.append("index",""),m.search=`?${f}`,{path:$r(m),submission:p}}function KS(e,t,r,s,o,l,u,f,d,p,m,y,k,v,w,S,E,R,C,T,A,N){let L=A?ta(A[1])?A[1].error:A[1].data:void 0,D=o.createURL(l.location),j=o.createURL(d),O;if(m&&l.errors){let _=Object.keys(l.errors)[0];O=u.findIndex(P=>P.route.id===_)}else if(A&&ta(A[1])){let _=A[0];O=u.findIndex(P=>P.route.id===_)-1}let M=A?A[1].statusCode:void 0,H=M&&M>=400,F={currentUrl:D,currentParams:l.matches[0]?.params||{},nextUrl:j,nextParams:u[0].params,...f,actionResult:L,actionStatus:M},q=fd(u),B=u.map((_,P)=>{let{route:G}=_,X=null;if(O!=null&&P>O)X=!1;else if(G.lazy)X=!0;else if(!Nb(G))X=!1;else if(m){let{shouldLoad:ae}=K$(G,l.loaderData,l.errors);X=ae}else s9(l.loaderData,l.matches[P],_)&&(X=!0);if(X!==null)return $1(r,s,e,d,q,_,p,t,X);let Z=!1;typeof N=="boolean"?Z=N:H?Z=!1:(y||D.pathname+D.search===j.pathname+j.search||D.search!==j.search||o9(l.matches[P],_))&&(Z=!0);let Q={...F,defaultShouldRevalidate:Z},K=_u(_,Q);return $1(r,s,e,d,q,_,p,t,K,Q,N)}),U=[];return w.forEach((_,P)=>{if(m||!u.some(ee=>ee.route.id===_.routeId)||v.has(P))return;let G=l.fetchers.get(P),X=G&&G.state!=="idle"&&G.data===void 0,Z=Ha(E,_.path,R??"/",!1,T);if(!Z){if(C&&X)return;U.push({key:P,routeId:_.routeId,path:_.path,matches:null,match:null,request:null,controller:null});return}if(S.has(P))return;let Q=Ih(Z,_.path),K=new AbortController,ae=_l(o,_.path,K.signal),I=null;if(k.has(P))k.delete(P),I=Vl(r,s,ae,_.path,Z,Q,p,t);else if(X)y&&(I=Vl(r,s,ae,_.path,Z,Q,p,t));else{let ee;typeof N=="boolean"?ee=N:H?ee=!1:ee=y;let pe={...F,defaultShouldRevalidate:ee};_u(Q,pe)&&(I=Vl(r,s,ae,_.path,Z,Q,p,t,pe))}I&&U.push({key:P,routeId:_.routeId,path:_.path,matches:I,match:Q,request:ae,controller:K})}),{dsMatches:B,revalidatingFetchers:U}}function Nb(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function K$(e,t,r){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Nb(e))return{shouldLoad:!1,renderFallback:!1};let s=t!=null&&e.id in t,o=r!=null&&r[e.id]!==void 0;if(!s&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!s};let l=!s&&!o;return{shouldLoad:l,renderFallback:l}}function s9(e,t,r){let s=!t||r.route.id!==t.route.id,o=!e.hasOwnProperty(r.route.id);return s||o}function o9(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function _u(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function WS(e,t,r,s,o,l){let u;if(e){let p=s[e];ht(p,`No route found to patch children into: routeId = ${e}`),p.children||(p.children=[]),u=p.children}else u=r.activeRoutes;let f=[],d=[];if(t.forEach(p=>{let m=u.find(y=>W$(p,y));m?d.push({existingRoute:m,newRoute:p}):f.push(p)}),f.length>0){let p=Wu(f,o,[e||"_","patch",String(u?.length||"0")],s);u.push(...p)}if(l&&d.length>0)for(let p=0;p<d.length;p++){let{existingRoute:m,newRoute:y}=d[p],k=m,[v]=Wu([y],o,[],{},!0);Object.assign(k,{element:v.element?v.element:k.element,errorElement:v.errorElement?v.errorElement:k.errorElement,hydrateFallbackElement:v.hydrateFallbackElement?v.hydrateFallbackElement:k.hydrateFallbackElement})}r.hasHMRRoutes||r.setRoutes([...r.activeRoutes])}function W$(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((r,s)=>t.children?.some(o=>W$(r,o)))??!1:!1}var YS=new WeakMap,Y$=({key:e,route:t,manifest:r,mapRouteProperties:s})=>{let o=r[t.id];if(ht(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let l=o.lazy[e];if(!l)return;let u=YS.get(o);u||(u={},YS.set(o,u));let f=u[e];if(f)return f;let d=(async()=>{let p=w8(e),y=o[e]!==void 0&&e!=="hasErrorBoundary";if(p)cn(!p,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),u[e]=Promise.resolve();else if(y)cn(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let k=await l();k!=null&&(Object.assign(o,{[e]:k}),Object.assign(o,s(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(k=>k===void 0)&&(o.lazy=void 0))})();return u[e]=d,d},XS=new WeakMap;function i9(e,t,r,s,o){let l=r[e.id];if(ht(l,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let m=XS.get(l);if(m)return{lazyRoutePromise:m,lazyHandlerPromise:m};let y=(async()=>{ht(typeof e.lazy=="function","No lazy route function found");let k=await e.lazy(),v={};for(let w in k){let S=k[w];if(S===void 0)continue;let E=E8(w),C=l[w]!==void 0&&w!=="hasErrorBoundary";E?cn(!E,"Route property "+w+" is not a supported property to be returned from a lazy route function. This property will be ignored."):C?cn(!C,`Route "${l.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.`):v[w]=S}Object.assign(l,v),Object.assign(l,{...s(l),lazy:void 0})})();return XS.set(l,y),y.catch(()=>{}),{lazyRoutePromise:y,lazyHandlerPromise:y}}let u=Object.keys(e.lazy),f=[],d;for(let m of u){if(o&&o.includes(m))continue;let y=Y$({key:m,route:e,manifest:r,mapRouteProperties:s});y&&(f.push(y),m===t&&(d=y))}let p=f.length>0?Promise.all(f).then(()=>{}):void 0;return p?.catch(()=>{}),d?.catch(()=>{}),{lazyRoutePromise:p,lazyHandlerPromise:d}}async function ZS(e){let t=e.matches.filter(o=>o.shouldLoad),r={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,l)=>{r[t[l].route.id]=o}),r}async function l9(e){return e.matches.some(t=>t.route.middleware)?X$(e,()=>ZS(e)):ZS(e)}function X$(e,t){return c9(e,t,s=>{if(S9(s))throw s;return s},b9,r);function r(s,o,l){if(l)return Promise.resolve(Object.assign(l.value,{[o]:{type:"error",result:s}}));{let{matches:u}=e,f=Math.min(Math.max(u.findIndex(p=>p.route.id===o),0),Math.max(u.findIndex(p=>p.shouldCallHandler()),0)),d=jo(u,u[f].route.id).route.id;return Promise.resolve({[d]:{type:"error",result:s}})}}}async function c9(e,t,r,s,o){let{matches:l,...u}=e,f=l.flatMap(p=>p.route.middleware?p.route.middleware.map(m=>[p.route.id,m]):[]);return await Z$(u,f,t,r,s,o)}async function Z$(e,t,r,s,o,l,u=0){let{request:f}=e;if(f.signal.aborted)throw f.signal.reason??new Error(`Request aborted: ${f.method} ${f.url}`);let d=t[u];if(!d)return await r();let[p,m]=d,y,k=async()=>{if(y)throw new Error("You may only call `next()` once per middleware");try{return y={value:await Z$(e,t,r,s,o,l,u+1)},y.value}catch(v){return y={value:await l(v,p,y)},y.value}};try{let v=await m(e,k),w=v!=null?s(v):void 0;return o(w)?w:y?w??y.value:(y={value:await k()},y.value)}catch(v){return await l(v,p,y)}}function Q$(e,t,r,s,o){let l=Y$({key:"middleware",route:s.route,manifest:t,mapRouteProperties:e}),u=i9(s.route,lr(r.method)?"action":"loader",t,e,o);return{middleware:l,route:u.lazyRoutePromise,handler:u.lazyHandlerPromise}}function $1(e,t,r,s,o,l,u,f,d,p=null,m){let y=!1,k=Q$(e,t,r,l,u);return{...l,_lazyPromises:k,shouldLoad:d,shouldRevalidateArgs:p,shouldCallHandler(v){return y=!0,p?typeof m=="boolean"?_u(l,{...p,defaultShouldRevalidate:m}):typeof v=="boolean"?_u(l,{...p,defaultShouldRevalidate:v}):_u(l,p):d},resolve(v){let{lazy:w,loader:S,middleware:E}=l.route,R=y||d||v&&!lr(r.method)&&(w||S),C=E&&E.length>0&&!S&&!w;return R&&(lr(r.method)||!C)?d9({request:r,path:s,pattern:o,match:l,lazyHandlerPromise:k?.handler,lazyRoutePromise:k?.route,handlerOverride:v,scopedContext:f}):Promise.resolve({type:"data",result:void 0})}}}function Vl(e,t,r,s,o,l,u,f,d=null){return o.map(p=>p.route.id!==l.route.id?{...p,shouldLoad:!1,shouldRevalidateArgs:d,shouldCallHandler:()=>!1,_lazyPromises:Q$(e,t,r,p,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:$1(e,t,r,s,fd(o),p,u,f,!0,d))}async function u9(e,t,r,s,o,l,u){s.some(m=>m._lazyPromises?.middleware)&&await Promise.all(s.map(m=>m._lazyPromises?.middleware));let f={request:t,url:J$(t,r),pattern:fd(s),params:s[0].params,context:l,matches:s},p=await e({...f,fetcherKey:o,runClientMiddleware:m=>{let y=f;return X$(y,()=>m({...y,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(s.flatMap(m=>[m._lazyPromises?.handler,m._lazyPromises?.route]))}catch{}return p}async function d9({request:e,path:t,pattern:r,match:s,lazyHandlerPromise:o,lazyRoutePromise:l,handlerOverride:u,scopedContext:f}){let d,p,m=lr(e.method),y=m?"action":"loader",k=v=>{let w,S=new Promise((C,T)=>w=T);p=()=>w(),e.signal.addEventListener("abort",p);let E=C=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${y}" [routeId: ${s.route.id}]`)):v({request:e,url:J$(e,t),pattern:r,params:s.params,context:f},...C!==void 0?[C]:[]),R=(async()=>{try{return{type:"data",result:await(u?u(T=>E(T)):E())}}catch(C){return{type:"error",result:C}}})();return Promise.race([R,S])};try{let v=m?s.route.action:s.route.loader;if(o||l)if(v){let w,[S]=await Promise.all([k(v).catch(E=>{w=E}),o,l]);if(w!==void 0)throw w;d=S}else{await o;let w=m?s.route.action:s.route.loader;if(w)[d]=await Promise.all([k(w),l]);else if(y==="action"){let S=new URL(e.url),E=S.pathname+S.search;throw ka(405,{method:e.method,pathname:E,routeId:s.route.id})}else return{type:"data",result:void 0}}else if(v)d=await k(v);else{let w=new URL(e.url),S=w.pathname+w.search;throw ka(404,{pathname:S})}}catch(v){return{type:"error",result:v}}finally{p&&e.signal.removeEventListener("abort",p)}return d}async function f9(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 h9(e){let{result:t,type:r}=e;if(zb(t)){let s;try{s=await f9(t)}catch(o){return{type:"error",error:o}}return r==="error"?{type:"error",error:new dd(t.status,t.statusText,s),statusCode:t.status,headers:t.headers}:{type:"data",data:s,statusCode:t.status,headers:t.headers}}return r==="error"?r5(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:y9(t),statusCode:Yu(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Yu(t)?t.status:void 0}:r5(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 p9(e,t,r,s,o){let l=e.headers.get("Location");if(ht(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!Rb(l)){let u=s.slice(0,s.findIndex(f=>f.route.id===r)+1);l=E1(new URL(t.url),u,o,l),e.headers.set("Location",l)}return e}var x9=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function T1(e){try{return x9.includes(new URL(e).protocol)}catch{return!1}}function QS(e,t,r,s){if(Rb(e)){let o=e,l=Pp.test(o)?new URL(M$(o,t.protocol)):new URL(o);if(T1(l.toString()))throw new Error("Invalid redirect location");let u=Ta(l.pathname,r)!=null;if(l.origin===t.origin&&u)return Ab(l.pathname)+l.search+l.hash}try{let o=s.createURL(e);if(T1(o.toString()))throw new Error("Invalid redirect location")}catch{}return e}function _l(e,t,r,s){let o=e.createURL(eT(t)).toString(),l={signal:r};if(s&&lr(s.formMethod)){let{formMethod:u,formEncType:f}=s;l.method=u.toUpperCase(),f==="application/json"?(l.headers=new Headers({"Content-Type":f}),l.body=JSON.stringify(s.json)):f==="text/plain"?l.body=s.text:f==="application/x-www-form-urlencoded"&&s.formData?l.body=C1(s.formData):l.body=s.formData}return new Request(o,l)}function J$(e,t){let r=new URL(e.url),s=typeof t=="string"?Za(t):t;if(r.pathname=s.pathname||"/",s.search){let o=new URLSearchParams(s.search),l=o.getAll("index");o.delete("index");for(let u of l.filter(Boolean))o.append("index",u);r.search=o.size?`?${o.toString()}`:""}else r.search="";return r.hash=s.hash||"",r}function C1(e){let t=new URLSearchParams;for(let[r,s]of e.entries())t.append(r,typeof s=="string"?s:s.name);return t}function JS(e){let t=new FormData;for(let[r,s]of e.entries())t.append(r,s);return t}function g9(e,t,r,s=!1,o=!1){let l={},u=null,f,d=!1,p={},m=r&&ta(r[1])?r[1].error:void 0;return e.forEach(y=>{if(!(y.route.id in t))return;let k=y.route.id,v=t[k];if(ht(!mi(v),"Cannot handle redirect results in processLoaderData"),ta(v)){let w=v.error;if(m!==void 0&&(w=m,m=void 0),u=u||{},o)u[k]=w;else{let S=jo(e,k);u[S.route.id]==null&&(u[S.route.id]=w)}s||(l[k]=G$),d||(d=!0,f=Yu(v.error)?v.error.status:500),v.headers&&(p[k]=v.headers)}else l[k]=v.data,v.statusCode&&v.statusCode!==200&&!d&&(f=v.statusCode),v.headers&&(p[k]=v.headers)}),m!==void 0&&r&&(u={[r[0]]:m},r[2]&&(l[r[2]]=void 0)),{loaderData:l,errors:u,statusCode:f||200,loaderHeaders:p}}function e5(e,t,r,s,o,l,u){let{loaderData:f,errors:d}=g9(t,r,s);return o.filter(p=>!p.matches||p.matches.some(m=>m.shouldLoad)).forEach(p=>{let{key:m,match:y,controller:k}=p;if(k&&k.signal.aborted)return;let v=l[m];if(ht(v,"Did not find corresponding fetcher result"),ta(v)){let w=jo(e.matches,y?.route.id);d&&d[w.route.id]||(d={...d,[w.route.id]:v.error}),u.delete(m)}else if(mi(v))ht(!1,"Unhandled fetcher revalidation redirect");else{let w=xs(v.data);u.set(m,w)}}),{loaderData:f,errors:d}}function t5(e,t,r,s){let o=Object.entries(t).filter(([,l])=>l!==G$).reduce((l,[u,f])=>(l[u]=f,l),{});for(let l of r){let u=l.route.id;if(!t.hasOwnProperty(u)&&e.hasOwnProperty(u)&&l.route.loader&&(o[u]=e[u]),s&&s.hasOwnProperty(u))break}return o}function n5(e){return e?ta(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function jo(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 Jf(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ka(e,{pathname:t,routeId:r,method:s,type:o,message:l}={}){let u="Unknown Server Error",f="Unknown @remix-run/router error";return e===400?(u="Bad Request",s&&t&&r?f=`You made a ${s} request to "${t}" but did not provide a \`loader\` for route "${r}", so there is no way to handle the request.`:o==="invalid-body"&&(f="Unable to encode submission body")):e===403?(u="Forbidden",f=`Route "${r}" does not match URL "${t}"`):e===404?(u="Not Found",f=`No route matches URL "${t}"`):e===405&&(u="Method Not Allowed",s&&t&&r?f=`You made a ${s.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${r}", so there is no way to handle the request.`:s&&(f=`Invalid request method "${s.toUpperCase()}"`)),new dd(e||500,u,new Error(f),!0)}function eh(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[s,o]=t[r];if(mi(o))return{key:s,result:o}}}function eT(e){let t=typeof e=="string"?Za(e):e;return $r({...t,hash:""})}function m9(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function y9(e){return new dd(e.init?.status??500,e.init?.statusText??"Internal Server Error",e.data)}function b9(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([t,r])=>typeof t=="string"&&k9(r))}function k9(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function v9(e){return zb(e.result)&&U$.has(e.result.status)}function ta(e){return e.type==="error"}function mi(e){return(e&&e.type)==="redirect"}function r5(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function zb(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function w9(e){return U$.has(e)}function S9(e){return zb(e)&&w9(e.status)&&e.headers.has("Location")}function E9(e){return Q8.has(e.toUpperCase())}function lr(e){return X8.has(e.toUpperCase())}function Lb(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Ih(e,t){let r=typeof t=="string"?Za(t).search:t.search;if(e[e.length-1].route.index&&Lb(r||""))return e[e.length-1];let s=q$(e);return s[s.length-1]}function a5(e){let{formMethod:t,formAction:r,formEncType:s,text:o,formData:l,json:u}=e;if(!(!t||!r||!s)){if(o!=null)return{formMethod:t,formAction:r,formEncType:s,formData:void 0,json:void 0,text:o};if(l!=null)return{formMethod:t,formAction:r,formEncType:s,formData:l,json:void 0,text:void 0};if(u!==void 0)return{formMethod:t,formAction:r,formEncType:s,formData:void 0,json:u,text:void 0}}}function py(e,t,r,s){return s?{state:"loading",location:e,matches:t,historyAction:r,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:r,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function $9(e,t,r,s){return{state:"submitting",location:e,matches:t,historyAction:r,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}}function yu(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 T9(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 xs(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 C9(e,t){try{let r=e.sessionStorage.getItem(V$);if(r){let s=JSON.parse(r);for(let[o,l]of Object.entries(s||{}))l&&Array.isArray(l)&&t.set(o,new Set(l||[]))}}catch{}}function j9(e,t){if(t.size>0){let r={};for(let[s,o]of t)r[s]=[...o];try{e.sessionStorage.setItem(V$,JSON.stringify(r))}catch(s){cn(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function s5(){let e,t,r=new Promise((s,o)=>{e=async l=>{s(l);try{await r}catch{}},t=async l=>{o(l);try{await r}catch{}}});return{promise:r,resolve:e,reject:t}}var Li=g.createContext(null);Li.displayName="DataRouter";var hd=g.createContext(null);hd.displayName="DataRouterState";var tT=g.createContext(!1);function nT(){return g.useContext(tT)}var Db=g.createContext({isTransitioning:!1});Db.displayName="ViewTransition";var rT=g.createContext(new Map);rT.displayName="Fetchers";var R9=g.createContext(null);R9.displayName="Await";var ra=g.createContext(null);ra.displayName="Navigation";var Hp=g.createContext(null);Hp.displayName="Location";var ja=g.createContext({outlet:null,matches:[],isDataRoute:!1});ja.displayName="Route";var Ob=g.createContext(null);Ob.displayName="RouteError";var aT="REACT_ROUTER_ERROR",A9="REDIRECT",M9="ROUTE_ERROR_RESPONSE";function N9(e){if(e.startsWith(`${aT}:${A9}:{`))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 z9(e){if(e.startsWith(`${aT}:${M9}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new dd(t.status,t.statusText,t.data)}catch{}}function L9(e,{relative:t}={}){ht(mc(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:s}=g.useContext(ra),{hash:o,pathname:l,search:u}=pd(e,{relative:t}),f=l;return r!=="/"&&(f=l==="/"?r:Ea([r,l])),s.createHref({pathname:f,search:u,hash:o})}function mc(){return g.useContext(Hp)!=null}function Pr(){return ht(mc(),"useLocation() may be used only in the context of a <Router> component."),g.useContext(Hp).location}var sT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function oT(e){g.useContext(ra).static||g.useLayoutEffect(e)}function yc(){let{isDataRoute:e}=g.useContext(ja);return e?Y9():D9()}function D9(){ht(mc(),"useNavigate() may be used only in the context of a <Router> component.");let e=g.useContext(Li),{basename:t,navigator:r}=g.useContext(ra),{matches:s}=g.useContext(ja),{pathname:o}=Pr(),l=JSON.stringify(Bp(s)),u=g.useRef(!1);return oT(()=>{u.current=!0}),g.useCallback((d,p={})=>{if(cn(u.current,sT),!u.current)return;if(typeof d=="number"){r.go(d);return}let m=ud(d,JSON.parse(l),o,p.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ea([t,m.pathname])),Ul(typeof d=="string"?d:$r(d),r.createHref(m),Mb(r),"reject"),(p.replace?r.replace:r.push)(m,p.state,p)},[t,r,l,o,e])}var O9=g.createContext(null);function I9(e){let t=g.useContext(ja).outlet;return g.useMemo(()=>t&&g.createElement(O9.Provider,{value:e},t),[t,e])}function Ib(){let{matches:e}=g.useContext(ja);return e[e.length-1]?.params??{}}function pd(e,{relative:t}={}){let{matches:r}=g.useContext(ja),{pathname:s}=Pr(),o=JSON.stringify(Bp(r));return g.useMemo(()=>ud(e,JSON.parse(o),s,t==="path"),[e,o,s,t])}function _9(e,t,r){ht(mc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=g.useContext(ra),{matches:o}=g.useContext(ja),l=o[o.length-1],u=l?l.params:{},f=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let E=p&&p.path||"";cT(f,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${E}">) 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="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let m=Pr(),y;y=m;let k=y.pathname||"/",v=k;if(d!=="/"){let E=d.replace(/^\//,"").split("/");v="/"+k.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=r&&r.state.matches.length?r.state.matches.map(E=>Object.assign(E,{route:r.manifest[E.route.id]||E.route})):z$(e,{pathname:v});return cn(p||w!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),cn(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 "${y.pathname}${y.search}${y.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.`),F9(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},u,E.params),pathname:Ea([d,s.encodeLocation?s.encodeLocation(E.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?d:Ea([d,s.encodeLocation?s.encodeLocation(E.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),o,r)}function q9(){let e=W9(),t=Yu(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},l={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=g.createElement(g.Fragment,null,g.createElement("p",null,"💿 Hey developer 👋"),g.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",g.createElement("code",{style:l},"ErrorBoundary")," or"," ",g.createElement("code",{style:l},"errorElement")," prop on your route.")),g.createElement(g.Fragment,null,g.createElement("h2",null,"Unexpected Application Error!"),g.createElement("h3",{style:{fontStyle:"italic"}},t),r?g.createElement("pre",{style:o},r):null,u)}var P9=g.createElement(q9,null),iT=class extends g.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 r=z9(e.digest);r&&(e=r)}let t=e!==void 0?g.createElement(ja.Provider,{value:this.props.routeContext},g.createElement(Ob.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?g.createElement(B9,{error:e},t):t}};iT.contextType=tT;var xy=new WeakMap;function B9({children:e,error:t}){let{basename:r,navigator:s}=g.useContext(ra);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let o=N9(t.digest);if(o){let l=xy.get(t);if(l)throw l;let u=B$(o.location,r),f=u.absoluteURL||u.to;if(Ul(o.location,f,Mb(s),"allow-explicit"),T1(f))throw new Error("Invalid redirect location");if(P$&&!xy.get(t))if(u.isExternal||o.reloadDocument)window.location.href=f;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(u.to,{replace:o.replace}));throw xy.set(t,d),d}return g.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f}`})}}return e}function H9({routeContext:e,match:t,children:r}){let s=g.useContext(Li);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),g.createElement(ja.Provider,{value:e},r)}function F9(e,t=[],r){let s=r?.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 o=e,l=s?.errors;if(l!=null){let m=o.findIndex(y=>y.route.id&&l?.[y.route.id]!==void 0);ht(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,m+1))}let u=!1,f=-1;if(r&&s){u=s.renderFallback;for(let m=0;m<o.length;m++){let y=o[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(f=m),y.route.id){let{loaderData:k,errors:v}=s,w=y.route.loader&&!k.hasOwnProperty(y.route.id)&&(!v||v[y.route.id]===void 0);if(y.route.lazy||w){r.isStatic&&(u=!0),f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}}let d=r?.onError,p=s&&d?(m,y)=>{d(m,{location:s.location,params:s.matches?.[0]?.params??{},pattern:fd(s.matches),errorInfo:y})}:void 0;return o.reduceRight((m,y,k)=>{let v,w=!1,S=null,E=null;s&&(v=l&&y.route.id?l[y.route.id]:void 0,S=y.route.errorElement||P9,u&&(f<0&&k===0?(cT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):f===k&&(w=!0,E=y.route.hydrateFallbackElement||null)));let R=t.concat(o.slice(0,k+1)),C=()=>{let T;return v?T=S:w?T=E:y.route.Component?T=g.createElement(y.route.Component,null):y.route.element?T=y.route.element:T=m,g.createElement(H9,{match:y,routeContext:{outlet:m,matches:R,isDataRoute:s!=null},children:T})};return s&&(y.route.ErrorBoundary||y.route.errorElement||k===0)?g.createElement(iT,{location:s.location,revalidation:s.revalidation,component:S,error:v,children:C(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):C()},null)}function _b(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function U9(e){let t=g.useContext(Li);return ht(t,_b(e)),t}function lT(e){let t=g.useContext(hd);return ht(t,_b(e)),t}function V9(e){let t=g.useContext(ja);return ht(t,_b(e)),t}function qb(e){let t=V9(e),r=t.matches[t.matches.length-1];return ht(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function G9(){return qb("useRouteId")}function K9(){let{matches:e,loaderData:t}=lT("useMatches");return g.useMemo(()=>e.map(r=>L$(r,t)),[e,t])}function W9(){let e=g.useContext(Ob),t=lT("useRouteError"),r=qb("useRouteError");return e!==void 0?e:t.errors?.[r]}function Y9(){let{router:e}=U9("useNavigate"),t=qb("useNavigate"),r=g.useRef(!1);return oT(()=>{r.current=!0}),g.useCallback(async(o,l={})=>{cn(r.current,sT),r.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...l}))},[e,t])}var o5={};function cT(e,t,r){!t&&!o5[e]&&(o5[e]=!0,cn(!1,r))}var i5={};function l5(e,t){!e&&!i5[t]&&(i5[t]=!0,console.warn(t))}var X9="useOptimistic",c5=jM[X9],Z9=()=>{};function Q9(e){return c5?c5(e):[e,Z9]}function J9(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&cn(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:g.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&cn(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:g.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&cn(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:g.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var eN=["HydrateFallback","hydrateFallbackElement"],tN=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",e(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",t(r))}})}};function nN({router:e,flushSync:t,onError:r,useTransitions:s}){s=nT()||s;let[l,u]=g.useState(e.state),[f,d]=Q9(l),[p,m]=g.useState(),[y,k]=g.useState({isTransitioning:!1}),[v,w]=g.useState(),[S,E]=g.useState(),[R,C]=g.useState(),T=g.useRef(new Map),A=g.useCallback((j,{deletedFetchers:O,newErrors:M,flushSync:H,viewTransitionOpts:F})=>{M&&r&&Object.values(M).forEach(B=>r(B,{location:j.location,params:j.matches[0]?.params??{},pattern:fd(j.matches)})),j.fetchers.forEach((B,U)=>{B.data!==void 0&&T.current.set(U,B.data)}),O.forEach(B=>T.current.delete(B)),l5(H===!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 q=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(l5(F==null||q,"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."),!F||!q){t&&H?t(()=>u(j)):s===!1?u(j):g.startTransition(()=>{s===!0&&d(B=>u5(B,j)),u(j)});return}if(t&&H){t(()=>{S&&(v?.resolve(),S.skipTransition()),k({isTransitioning:!0,flushSync:!0,currentLocation:F.currentLocation,nextLocation:F.nextLocation})});let B=e.window.document.startViewTransition(()=>{t(()=>u(j))});B.finished.finally(()=>{t(()=>{w(void 0),E(void 0),m(void 0),k({isTransitioning:!1})})}),t(()=>E(B));return}S?(v?.resolve(),S.skipTransition(),C({state:j,currentLocation:F.currentLocation,nextLocation:F.nextLocation})):(m(j),k({isTransitioning:!0,flushSync:!1,currentLocation:F.currentLocation,nextLocation:F.nextLocation}))},[e.window,t,S,v,s,d,r]);g.useLayoutEffect(()=>e.subscribe(A),[e,A]),g.useEffect(()=>{y.isTransitioning&&!y.flushSync&&w(new tN)},[y]),g.useEffect(()=>{if(v&&p&&e.window){let j=p,O=v.promise,M=e.window.document.startViewTransition(async()=>{s===!1?u(j):g.startTransition(()=>{s===!0&&d(H=>u5(H,j)),u(j)}),await O});M.finished.finally(()=>{w(void 0),E(void 0),m(void 0),k({isTransitioning:!1})}),E(M)}},[p,v,e.window,s,d]),g.useEffect(()=>{v&&p&&f.location.key===p.location.key&&v.resolve()},[v,S,f.location,p]),g.useEffect(()=>{!y.isTransitioning&&R&&(m(R.state),k({isTransitioning:!0,flushSync:!1,currentLocation:R.currentLocation,nextLocation:R.nextLocation}),C(void 0))},[y.isTransitioning,R]);let N=g.useMemo(()=>({createHref:e.createHref,createURL:e.createURL,encodeLocation:e.encodeLocation,go:j=>e.navigate(j),push:(j,O,M)=>e.navigate(j,{state:O,preventScrollReset:M?.preventScrollReset}),replace:(j,O,M)=>e.navigate(j,{replace:!0,state:O,preventScrollReset:M?.preventScrollReset})}),[e]),L=e.basename||"/",D=g.useMemo(()=>({router:e,navigator:N,static:!1,basename:L,onError:r}),[e,N,L,r]);return g.createElement(g.Fragment,null,g.createElement(Li.Provider,{value:D},g.createElement(hd.Provider,{value:f},g.createElement(rT.Provider,{value:T.current},g.createElement(Db.Provider,{value:y},g.createElement(oN,{basename:L,location:f.location,navigationType:f.historyAction,navigator:N,useTransitions:s},g.createElement(rN,{routes:e.routes,manifest:e.manifest,future:e.future,state:f,isStatic:!1,onError:r})))))),null)}function u5(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 rN=g.memo(aN);function aN({routes:e,manifest:t,future:r,state:s,isStatic:o,onError:l}){return _9(e,void 0,{manifest:t,state:s,isStatic:o,onError:l})}function sN({to:e,replace:t,state:r,relative:s}){ht(mc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o,navigator:l}=g.useContext(ra);cn(!o,"<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}=g.useContext(ja),{pathname:f}=Pr(),d=yc(),p=ud(e,Bp(u),f,s==="path");Ul(typeof e=="string"?e:$r(e),l.createHref(p),Mb(l),"reject");let m=JSON.stringify(p);return g.useEffect(()=>{d(JSON.parse(m),{replace:t,state:r,relative:s})},[d,m,s,t,r]),null}function Pb(e){return I9(e.context)}function oN({basename:e="/",children:t=null,location:r,navigationType:s="POP",navigator:o,static:l=!1,useTransitions:u}){ht(!mc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=g.useMemo(()=>({basename:f,navigator:o,static:l,useTransitions:u,future:{}}),[f,o,l,u]);typeof r=="string"&&(r=Za(r));let{pathname:p="/",search:m="",hash:y="",state:k=null,key:v="default",mask:w}=r,S=g.useMemo(()=>{let E=Ta(p,f);return E==null?null:{location:{pathname:E,search:m,hash:y,state:k,key:v,mask:w},navigationType:s}},[f,p,m,y,k,v,s,w]);return cn(S!=null,`<Router basename="${f}"> is not able to match the URL "${p}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:g.createElement(ra.Provider,{value:d},g.createElement(Hp.Provider,{children:t,value:S}))}var _h="get",qh="application/x-www-form-urlencoded";function Fp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function iN(e){return Fp(e)&&e.tagName.toLowerCase()==="button"}function lN(e){return Fp(e)&&e.tagName.toLowerCase()==="form"}function cN(e){return Fp(e)&&e.tagName.toLowerCase()==="input"}function uN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dN(e,t){return e.button===0&&(!t||t==="_self")&&!uN(e)}function j1(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let s=e[r];return t.concat(Array.isArray(s)?s.map(o=>[r,o]):[[r,s]])},[]))}function fN(e,t){let r=j1(e);return t&&t.forEach((s,o)=>{r.has(o)||t.getAll(o).forEach(l=>{r.append(o,l)})}),r}var th=null;function hN(){if(th===null)try{new FormData(document.createElement("form"),0),th=!1}catch{th=!0}return th}var pN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function gy(e){return e!=null&&!pN.has(e)?(cn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qh}"`),null):e}function xN(e,t){let r,s,o,l,u;if(lN(e)){let f=e.getAttribute("action");s=f?Ta(f,t):null,r=e.getAttribute("method")||_h,o=gy(e.getAttribute("enctype"))||qh,l=new FormData(e)}else if(iN(e)||cN(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(s=d?Ta(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||_h,o=gy(e.getAttribute("formenctype"))||gy(f.getAttribute("enctype"))||qh,l=new FormData(f,e),!hN()){let{name:p,type:m,value:y}=e;if(m==="image"){let k=p?`${p}.`:"";l.append(`${k}x`,"0"),l.append(`${k}y`,"0")}else p&&l.append(p,y)}}else{if(Fp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=_h,s=null,o=qh,u=e}return l&&o==="text/plain"&&(u=l,l=void 0),{action:s,method:r.toLowerCase(),encType:o,formData:l,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Bb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function uT(e,t,r,s){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${s}`:o.pathname=`${o.pathname}.${s}`:o.pathname==="/"?o.pathname=`_root.${s}`:t&&Ta(o.pathname,t)==="/"?o.pathname=`${nc(t)}/_root.${s}`:o.pathname=`${nc(o.pathname)}.${s}`,o}async function gN(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function mN(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 yN(e,t,r){let s=await Promise.all(e.map(async o=>{let l=t.routes[o.route.id];if(l){let u=await gN(l,r);return u.links?u.links():[]}return[]}));return wN(s.flat(1).filter(mN).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function d5(e,t,r,s,o,l){let u=(d,p)=>r[p]?d.route.id!==r[p].route.id:!0,f=(d,p)=>r[p].pathname!==d.pathname||r[p].route.path?.endsWith("*")&&r[p].params["*"]!==d.params["*"];return l==="assets"?t.filter((d,p)=>u(d,p)||f(d,p)):l==="data"?t.filter((d,p)=>{let m=s.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(u(d,p)||f(d,p))return!0;if(d.route.shouldRevalidate){let y=d.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function bN(e,t,{includeHydrateFallback:r}={}){return kN(e.map(s=>{let o=t.routes[s.route.id];if(!o)return[];let l=[o.module];return o.clientActionModule&&(l=l.concat(o.clientActionModule)),o.clientLoaderModule&&(l=l.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(l=l.concat(o.hydrateFallbackModule)),o.imports&&(l=l.concat(o.imports)),l}).flat(1))}function kN(e){return[...new Set(e)]}function vN(e){let t={},r=Object.keys(e).sort();for(let s of r)t[s]=e[s];return t}function wN(e,t){let r=new Set;return new Set(t),e.reduce((s,o)=>{let l=JSON.stringify(vN(o));return r.has(l)||(r.add(l),s.push({key:l,link:o})),s},[])}function Hb(){let e=g.useContext(Li);return Bb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function SN(){let e=g.useContext(hd);return Bb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Fb=g.createContext(void 0);Fb.displayName="FrameworkContext";function Up(){let e=g.useContext(Fb);return Bb(e,"You must render this element inside a <HydratedRouter> element"),e}function EN(e,t){let r=g.useContext(Fb),[s,o]=g.useState(!1),[l,u]=g.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:p,onMouseLeave:m,onTouchStart:y}=t,k=g.useRef(null);g.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=R=>{R.forEach(C=>{u(C.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return k.current&&E.observe(k.current),()=>{E.disconnect()}}},[e]),g.useEffect(()=>{if(s){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[s]);let v=()=>{o(!0)},w=()=>{o(!1),u(!1)};return r?e!=="intent"?[l,k,{}]:[l,k,{onFocus:bu(f,v),onBlur:bu(d,w),onMouseEnter:bu(p,v),onMouseLeave:bu(m,w),onTouchStart:bu(y,v)}]:[!1,k,{}]}function bu(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function $N({page:e,...t}){let r=nT(),{nonce:s}=Up(),{router:o}=Hb(),l=g.useMemo(()=>z$(o.routes,e,o.basename),[o.routes,e,o.basename]);return l?(t.nonce==null&&s&&(t={...t,nonce:s}),r?g.createElement(CN,{page:e,matches:l,...t}):g.createElement(jN,{page:e,matches:l,...t})):null}function TN(e){let{manifest:t,routeModules:r}=Up(),[s,o]=g.useState([]);return g.useEffect(()=>{let l=!1;return yN(e,t,r).then(u=>{l||o(u)}),()=>{l=!0}},[e,t,r]),s}function CN({page:e,matches:t,...r}){let s=Pr(),{future:o}=Up(),{basename:l}=Hb(),u=g.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let f=uT(e,l,o.v8_trailingSlashAwareDataRequests,"rsc"),d=!1,p=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?d=!0:p.push(m.route.id);return d&&p.length>0&&f.searchParams.set("_routes",p.join(",")),[f.pathname+f.search]},[l,o.v8_trailingSlashAwareDataRequests,e,s,t]);return g.createElement(g.Fragment,null,u.map(f=>g.createElement("link",{key:f,rel:"prefetch",as:"fetch",href:f,...r})))}function jN({page:e,matches:t,...r}){let s=Pr(),{future:o,manifest:l,routeModules:u}=Up(),{basename:f}=Hb(),{loaderData:d,matches:p}=SN(),m=g.useMemo(()=>d5(e,t,p,l,s,"data"),[e,t,p,l,s]),y=g.useMemo(()=>d5(e,t,p,l,s,"assets"),[e,t,p,l,s]),k=g.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let S=new Set,E=!1;if(t.forEach(C=>{let T=l.routes[C.route.id];!T||!T.hasLoader||(!m.some(A=>A.route.id===C.route.id)&&C.route.id in d&&u[C.route.id]?.shouldRevalidate||T.hasClientLoader?E=!0:S.add(C.route.id))}),S.size===0)return[];let R=uT(e,f,o.v8_trailingSlashAwareDataRequests,"data");return E&&S.size>0&&R.searchParams.set("_routes",t.filter(C=>S.has(C.route.id)).map(C=>C.route.id).join(",")),[R.pathname+R.search]},[f,o.v8_trailingSlashAwareDataRequests,d,s,l,m,t,e,u]),v=g.useMemo(()=>bN(y,l),[y,l]),w=TN(y);return g.createElement(g.Fragment,null,k.map(S=>g.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...r})),v.map(S=>g.createElement("link",{key:S,rel:"modulepreload",href:S,...r})),w.map(({key:S,link:E})=>g.createElement("link",{key:S,nonce:r.nonce,...E,crossOrigin:E.crossOrigin??r.crossOrigin})))}function RN(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var AN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{AN&&(window.__reactRouterVersion="7.18.5")}catch{}function MN(e,t){return r9({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:y8({window:t?.window}),hydrationData:NN(),routes:e,mapRouteProperties:J9,hydrationRouteProperties:eN,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function NN(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:zN(e.errors)}),e}function zN(e){if(!e)return null;let t=Object.entries(e),r={};for(let[s,o]of t)if(o&&o.__type==="RouteErrorResponse")r[s]=new dd(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(typeof o.__subType=="string"&&H8.includes(o.__subType)){let l=window[o.__subType];if(typeof l=="function")try{let u=new l(o.message);u.stack="",r[s]=u}catch{}}if(r[s]==null){let l=new Error(o.message);l.stack="",r[s]=l}}else r[s]=o;return r}var qu=g.forwardRef(function({onClick:t,discover:r="render",prefetch:s="none",relative:o,reloadDocument:l,replace:u,mask:f,state:d,target:p,to:m,preventScrollReset:y,viewTransition:k,defaultShouldRevalidate:v,...w},S){let{basename:E,navigator:R,useTransitions:C}=g.useContext(ra),T=typeof m=="string"&&qp.test(m),A=B$(m,E);m=A.to;let N=L9(m,{relative:o}),L=Pr(),D=null;if(f){let U=ud(f,[],L.mask?L.mask.pathname:"/",!0);E!=="/"&&(U.pathname=U.pathname==="/"?E:Ea([E,U.pathname])),D=R.createHref(U)}let[j,O,M]=EN(s,w),H=ON(m,{replace:u,mask:f,state:d,target:p,preventScrollReset:y,relative:o,viewTransition:k,defaultShouldRevalidate:v,useTransitions:C});function F(U){t&&t(U),U.defaultPrevented||H(U)}let q=!(A.isExternal||l),B=g.createElement("a",{...w,...M,href:(q?D:void 0)||A.absoluteURL||N,onClick:q?F:t,ref:RN(S,O),target:p,"data-discover":!T&&r==="render"?"true":void 0});return j&&!T?g.createElement(g.Fragment,null,B,g.createElement($N,{page:N})):B});qu.displayName="Link";var dT=g.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:s="",end:o=!1,style:l,to:u,viewTransition:f,children:d,...p},m){let y=pd(u,{relative:p.relative}),k=Pr(),v=g.useContext(hd),{navigator:w,basename:S}=g.useContext(ra),E=v!=null&&HN(y)&&f===!0,R=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,C=k.pathname,T=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(C=C.toLowerCase(),T=T?T.toLowerCase():null,R=R.toLowerCase()),T&&S&&(T=Ta(T,S)||T);const A=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let N=C===R||!o&&C.startsWith(R)&&C.charAt(A)==="/",L=T!=null&&(T===R||!o&&T.startsWith(R)&&T.charAt(R.length)==="/"),D={isActive:N,isPending:L,isTransitioning:E},j=N?t:void 0,O;typeof s=="function"?O=s(D):O=[s,N?"active":null,L?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let M=typeof l=="function"?l(D):l;return g.createElement(qu,{...p,"aria-current":j,className:O,ref:m,style:M,to:u,viewTransition:f},typeof d=="function"?d(D):d)});dT.displayName="NavLink";var LN=g.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:s,replace:o,state:l,method:u=_h,action:f,onSubmit:d,relative:p,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:k,...v},w)=>{let{useTransitions:S}=g.useContext(ra),E=PN(),R=BN(f,{relative:p}),C=u.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&qp.test(f),A=N=>{if(d&&d(N),N.defaultPrevented)return;N.preventDefault();let L=N.nativeEvent.submitter,D=L?.getAttribute("formmethod")||u,j=()=>E(L||N.currentTarget,{fetcherKey:t,method:D,navigate:r,replace:o,state:l,relative:p,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:k});S&&r!==!1?g.startTransition(()=>j()):j()};return g.createElement("form",{ref:w,method:C,action:R,onSubmit:s?d:A,...v,"data-discover":!T&&e==="render"?"true":void 0})});LN.displayName="Form";function DN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function fT(e){let t=g.useContext(Li);return ht(t,DN(e)),t}function ON(e,{target:t,replace:r,mask:s,state:o,preventScrollReset:l,relative:u,viewTransition:f,defaultShouldRevalidate:d,useTransitions:p}={}){let m=yc(),y=Pr(),k=pd(e,{relative:u});return g.useCallback(v=>{if(dN(v,t)){v.preventDefault();let w=r!==void 0?r:$r(y)===$r(k),S=()=>m(e,{replace:w,mask:s,state:o,preventScrollReset:l,relative:u,viewTransition:f,defaultShouldRevalidate:d});p?g.startTransition(()=>S()):S()}},[y,m,k,r,s,o,t,e,l,u,f,d,p])}function IN(e){cn(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=g.useRef(j1(e)),r=g.useRef(!1),s=Pr(),o=g.useMemo(()=>fN(s.search,r.current?null:t.current),[s.search]),l=yc(),u=g.useCallback((f,d)=>{const p=j1(typeof f=="function"?f(new URLSearchParams(o)):f);r.current=!0,l("?"+p,d)},[l,o]);return[o,u]}var _N=0,qN=()=>`__${String(++_N)}__`;function PN(){let{router:e}=fT("useSubmit"),{basename:t}=g.useContext(ra),r=G9(),s=e.fetch,o=e.navigate;return g.useCallback(async(l,u={})=>{let{action:f,method:d,encType:p,formData:m,body:y}=xN(l,t);if(u.navigate===!1){let k=u.fetcherKey||qN();await s(k,r,u.action||f,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:m,body:y,formMethod:u.method||d,formEncType:u.encType||p,flushSync:u.flushSync})}else await o(u.action||f,{defaultShouldRevalidate:u.defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:m,body:y,formMethod:u.method||d,formEncType:u.encType||p,replace:u.replace,state:u.state,fromRouteId:r,flushSync:u.flushSync,viewTransition:u.viewTransition})},[s,o,t,r])}function BN(e,{relative:t}={}){let{basename:r}=g.useContext(ra),s=g.useContext(ja);ht(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),l={...pd(e||".",{relative:t})},u=Pr();if(e==null){l.search=u.search;let f=new URLSearchParams(l.search),d=f.getAll("index");if(d.some(m=>m==="")){f.delete("index"),d.filter(y=>y).forEach(y=>f.append("index",y));let m=f.toString();l.search=m?`?${m}`:""}}return(!e||e===".")&&o.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(l.pathname=l.pathname==="/"?r:Ea([r,l.pathname])),$r(l)}function HN(e,{relative:t}={}){let r=g.useContext(Db);ht(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=fT("useViewTransitionState"),o=pd(e,{relative:t});if(!r.isTransitioning)return!1;let l=Ta(r.currentLocation.pathname,s)||r.currentLocation.pathname,u=Ta(r.nextLocation.pathname,s)||r.nextLocation.pathname;return Jh(o.pathname,u)!=null||Jh(o.pathname,l)!=null}var xd=g$();function FN(e){return g.createElement(nN,{flushSync:xd.flushSync,...e})}var ku={},f5;function UN(){if(f5)return ku;f5=1,Object.defineProperty(ku,"__esModule",{value:!0}),ku.styleq=void 0;var e=new WeakMap,t="$$css";function r(o){var l,u,f;return o!=null&&(l=o.disableCache===!0,u=o.disableMix===!0,f=o.transform),function(){for(var p=[],m="",y=null,k="",v=l?null:e,w=new Array(arguments.length),S=0;S<arguments.length;S++)w[S]=arguments[S];for(;w.length>0;){var E=w.pop();if(!(E==null||E===!1)){if(Array.isArray(E)){for(var R=0;R<E.length;R++)w.push(E[R]);continue}var C=f!=null?f(E):E;if(C.$$css!=null){var T="";if(v!=null&&v.has(C)){var A=v.get(C);A!=null&&(T=A[0],k=A[2],p.push.apply(p,A[1]),v=A[3])}else{var N=[];for(var L in C){var D=C[L];if(L===t){var j=C[L];j!==!0&&(k=k?j+"; "+k:j);continue}typeof D=="string"||D===null?p.includes(L)||(p.push(L),v!=null&&N.push(L),typeof D=="string"&&(T+=T?" "+D:D)):console.error("styleq: ".concat(L," typeof ").concat(String(D),' is not "string" or "null".'))}if(v!=null){var O=new WeakMap;v.set(C,[T,N,k,O]),v=O}}T&&(m=m?T+" "+m:T)}else if(u)y==null&&(y={}),y=Object.assign({},C,y);else{var M=null;for(var H in C){var F=C[H];F!==void 0&&(p.includes(H)||(F!=null&&(y==null&&(y={}),M==null&&(M={}),M[H]=F),p.push(H),v=null))}M!=null&&(y=Object.assign(M,y))}}}var q=[m,y,k];return q}}var s=ku.styleq=r();return s.factory=r,ku}var VN=UN();function de(...e){const[t,r,s]=VN.styleq(e),o={};return t!=null&&t!==""&&(o.className=t),r!=null&&Object.keys(r).length>0&&(o.style=r),s!=null&&s!==""&&(o["data-style-src"]=s),o}const GN={"--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)"},KN={"--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"},Wn={"--spacing-1":"var(--spacing-1)","--spacing-2":"var(--spacing-2)","--spacing-4":"var(--spacing-4)"},WN={"--size-element-sm":"28px","--size-element-md":"32px","--size-element-lg":"36px"},YN={"--border-width":"1px"},XN={"--focus-outline-width":"2px","--focus-outline-style":"solid","--focus-outline-color":"var(--color-accent)","--focus-outline-offset":"3px"},Vp={"--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)"},ZN={"--radius-none":"0px","--radius-inner":"4px","--radius-element":"8px","--radius-container":"12px","--radius-page":"28px","--radius-chat":"28px","--radius-full":"9999px"},QN={"--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)"},JN={"--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"},ez={"--ease-standard":"cubic-bezier(0.24, 1, 0.4, 1)"},tz={"--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'},nz={"--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"},rz={"--font-weight-normal":"400","--font-weight-medium":"500","--font-weight-semibold":"600","--font-weight-bold":"700"},az={"--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"},Ub=g.createContext(null);Ub.displayName="LayoutAreaContext";const hT=[];function aa(e){const t=g.createContext(e);return t.displayName="LayerScopedContext",hT.push(r=>x.jsx(t,{value:e,children:r})),t}function rc({children:e}){const[t]=g.useState(()=>hT.slice());return t.reduceRight((r,s)=>s(r),e)}const sz={hasHeader:!1,hasFooter:!1,hasStart:!1,hasEnd:!1},Gp=aa(sz);Gp.displayName="LayoutSlotsContext";const Kp=aa(null);Kp.displayName="LayoutDividerContext";const oz={center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xuk3077",$$css:!0},start:{kGNEyG:"x1cy8zhl",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},iz={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}},lz={horizontal:{kXwgrk:"x1q0g3np",$$css:!0},vertical:{kXwgrk:"xdt5ytf",$$css:!0}},cz={nowrap:{kwnvtZ:"xozqiw3",$$css:!0},wrap:{kwnvtZ:"x1a02dak",$$css:!0},"wrap-reverse":{kwnvtZ:"x8hhl5t",$$css:!0}},uz={stack:{k1xSpc:"x78zum5",$$css:!0}},dz={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 R1({crossAlign:e,direction:t,gap:r,mainAlign:s,wrap:o}){return[uz.stack,lz[t],r!=null&&dz[r],e!=null&&oz[e],s!=null&&iz[s],o!=null&&cz[o]]}const fz={reset:{kAzted:"x2lwn1j",k7Eaqz:"xeuugli",$$css:!0}},hz={center:{kSGwAc:"xamitd3",$$css:!0},end:{kSGwAc:"xpvyfi4",$$css:!0},start:{kSGwAc:"xqcrz7y",$$css:!0},stretch:{kSGwAc:"xkh2ocl",$$css:!0}},pz={fill:{kzQI83:"x1iyjqo2",$$css:!0},static:{kzQI83:"x1c4vz4f",kmuXW:"x2lah0s",$$css:!0}};function pT({crossAlignSelf:e,size:t}={}){return[fz.reset,pz[t??"static"],e!=null&&hz[e]]}const Vb="astryx",xT=Vb,Wp=Vb,xz=Vb;function gT(e){return`${xT}-${e}`}function Dr(e){return`data-${Wp}-${e}`}function gz(e){return`--${xz}-${e}`}function mT(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function mz(e){return gT(e)}function yz(e){const t={};if(e)for(const[r,s]of Object.entries(e))s!=null&&(t[mT(r)]=String(s));return t}function fe(e,t){return{className:mz(e),...yz(t)}}function bz(e){let t="";for(const r of e){const s=r.codePointAt(0)??0;r==='"'||r==="\\"||s<32||s===127?t+=`\\${(s===0?65533:s).toString(16)} `:t+=r}return t}function Gl(e){return e==="base"?"":e.split("+").map(t=>{const r=t.indexOf(":"),s=r===-1?t:t.slice(0,r),o=r===-1?t:t.slice(r+1);return`[${mT(s)}="${bz(o)}"]`}).join("")}const h5=typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function kz(e){if(h5){const r=h5.segment(e)[Symbol.iterator]().next();return r.done?"":r.value.segment}const t=e.codePointAt(0);return t==null?"":String.fromCodePoint(t)}function nh(e,t){const r={...e,...t},s=[e.className,t.className].filter(Boolean).join(" ");s?r.className=s:delete r.className;const o=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return o?r.style=o:delete r.style,r}function ye(e,t,r,s){if(typeof e=="string"){const f=e,d=t??{className:""},p=r;let m=d.className?`${f} ${d.className}`:f;p&&(m=`${m} ${p}`);const y=s&&d.style?{...d.style,...s}:s||d.style;return{...d,className:m,style:y}}let u=nh(e,typeof t=="string"?{className:t}:t??{});return typeof r=="string"?u=nh(u,{className:r}):r!=null&&(u=nh(u,{style:r})),s!=null&&(u=nh(u,{style:s})),u}function Gb(...e){return t=>{const r=[];for(const s of e)if(typeof s=="function"){const o=s(t);r.push(typeof o=="function"?o:()=>s(null))}else if(s!=null){const o=s;o.current=t,r.push(()=>{o.current=null})}if(t!=null&&r.length>0)return()=>{for(const s of r)s()}}}function Ir(...e){return t=>{for(const r of e)if(r?.(t),t.defaultPrevented)return}}let yi=null;const Kl=new Map;function vz(){return typeof ResizeObserver>"u"?null:(yi||(yi=new ResizeObserver(e=>{for(const t of e){const r=Kl.get(t.target);if(r)for(const s of[...r.keys()])s(t)}})),yi)}function Xu(e,t){const r=Kl.get(e);r?r.set(t,(r.get(t)??0)+1):Kl.set(e,new Map([[t,1]])),vz()?.observe(e),t({target:e});let o=!0;return()=>{o&&(o=!1,wz(e,t))}}function wz(e,t){const r=Kl.get(e);if(t!=null){const s=r?.get(t);if(r==null||s==null)return;if(s>1){r.set(t,s-1);return}if(r.delete(t),r.size>0)return}Kl.delete(e),yi&&(yi.unobserve(e),Kl.size===0&&(yi.disconnect(),yi=null))}function Us(e){return e!=null&&typeof e!="boolean"&&e!==""}function p5(...e){const t=e.flatMap(r=>typeof r=="string"?r.trim().split(/\s+/):[]).filter(Boolean);if(t.length!==0)return Array.from(new Set(t)).join(" ")}function Kb(e,t=[],r){return{ariaLabelledBy:r?p5(r.labelID,e):void 0,ariaDescribedBy:p5(r?.describedByIDs,...t)}}const Sz={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}},ep=(e,t,r)=>Math.max(t,Math.min(r,e));function Ez(e){return e.split("").map(t=>t+t).join("")}function yT(e){if(typeof e!="string")return null;const t=e.trim().replace(/^#/,""),r=t.length===3||t.length===4?Ez(t):t;return r.length!==6&&r.length!==8||!/^[0-9a-fA-F]+$/.test(r)?null:{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:r.length===8?parseInt(r.slice(6,8),16)/255:1}}function $z(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(p=>p.trim()).filter(Boolean);if(s.length<3)return null;const o=p=>{const m=p.endsWith("%")?parseFloat(p)/100*255:parseFloat(p);return ep(m,0,255)},l=o(s[0]),u=o(s[1]),f=o(s[2]);if([l,u,f].some(Number.isNaN))return null;let d=1;if(s.length>=4){const p=s[3];if(d=p.endsWith("%")?parseFloat(p)/100:parseFloat(p),Number.isNaN(d))return null;d=ep(d,0,1)}return{r:l,g:u,b:f,a:d}}function Zu(e){const t=e.trim(),r=Sz[t.toLowerCase()];return r?{...r}:t.startsWith("#")?yT(t):/^rgba?\(/i.test(t)?$z(t):null}function Wb(e,t,r){const s=o=>ep(Math.round(o),0,255).toString(16).padStart(2,"0").toUpperCase();return`#${s(e)}${s(t)}${s(r)}`}function bT({r:e,g:t,b:r,a:s}){if(s>=1)return Wb(e,t,r);const o=l=>ep(Math.round(l),0,255);return`rgba(${o(e)}, ${o(t)}, ${o(r)}, ${parseFloat(s.toFixed(4))})`}function Tz(e,t){return`${e}: ${t}`}function $a(e,t,...r){}function Yb(e,t,...r){console.error(Tz(e,t),...r)}function Yp(e,t,r,...s){}const Cz={kbCHJM:"x1nrll8i",k3aq6I:"xsqj5wx",$$css:!0},Wa={mirror:{k3aq6I:"xgtlewx",$$css:!0},centerInline:e=>[Cz,{"--x-transform":`translate(-50%, ${e})`!=null?`translate(-50%, ${e})`:void 0}]},jz=Vp["--focus-outline-width"],Rz=Vp["--focus-outline-style"],Az=Vp["--focus-outline-color"],Mz=Vp["--focus-outline-offset"],Nz={outlineWidth:jz,outlineStyle:Rz,outlineColor:Az,outlineOffset:Mz},zz={outlineWidth:"",outlineStyle:"",outlineColor:"",outlineOffset:""},Bs={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 Cl(e){return(...t)=>de(e,...t)}const pn={focusVisible:Cl(Bs.focusVisible),focusWithin:Cl(Bs.focusWithin),focusWithinFirstChild:Cl(Bs.focusWithinFirstChild),suppressed:Cl(Bs.suppressed),publishFocusVisibleVars:Cl(Bs.publishFocusVisibleVars),focusWithinOrPublished:Cl(Bs.focusWithinOrPublished)},Lz=229;function gd(e){return e.isComposing===!0||e.keyCode===Lz}const Dz={releaseMs:200},or={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}},Xb={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"},Di={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}},Ti={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}},No={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}},Vs={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}},Oz={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}},Iz={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}},_z={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}},qz={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}},kT={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}},vT={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}},Pz={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}},Bz={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}},wT={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}},Zb={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}},Hz={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}},Qu={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 Fz(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 Qr={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}},Uz={kzqmXN:"xh8yej3",kUOVxO:"xvueqy4",$$css:!0},my={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=>[Uz,{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 vu({area:e,children:t}){return t==null?null:x.jsx(Ub,{value:e,children:t})}const Vz={"x-default-marker":"x-default-marker",$$css:!0};function Oo({children:e,content:t,contentWidth:r,defaultHasDividers:s,end:o,footer:l,header:u,height:f="fill",padding:d,ref:p,start:m,xstyle:y,className:k,style:v,...w}){const S=f==="fill",E=t??e,R=g.useMemo(()=>s!=null?{defaultHasDividers:s}:null,[s]),C=u!=null,T=l!=null,A=m!=null,N=o!=null,L=A&&N,D=A!==N,j=r!=null&&Fz(r),O=g.useMemo(()=>({hasHeader:C,hasFooter:T,hasStart:A,hasEnd:N}),[C,T,A,N]),M=x.jsx(Gp,{value:O,children:x.jsx("div",{...w,ref:p,...ye(fe("layout",{height:f}),de(Qr.layoutOuter,S?Qr.fill:Qr.auto,y),k,v),children:x.jsxs("div",{...de(Vz,Qr.layoutInner,...R1({direction:"vertical"}),S?Qr.fill:Qr.auto,d===0&&Qr.fullBleed,d!=null&&Oz[d],d!=null&&Iz[d],r!=null&&my.contentWidthVar(r),j&&my.contentAlignmentWidthVar(r)),children:[x.jsx(vu,{area:"header",children:u}),x.jsxs("div",{...de(...R1({direction:"horizontal"}),Qr.middle,r!=null&&(!j||L)&&my.contentWidth(r),j&&!L&&Qr.middleQuery,j&&D&&Qr.singlePanelMiddle,j&&A&&!N&&Qr.singleStartPanel,j&&!A&&N&&Qr.singleEndPanel),children:[x.jsx(vu,{area:"start",children:m}),x.jsx("div",{...de(...pT({size:"fill"}),j&&!A&&!N&&Qr.singleColumnContent),children:x.jsx(vu,{area:"content",children:E})}),x.jsx(vu,{area:"end",children:o})]}),x.jsx(vu,{area:"footer",children:l})]})})});return R!=null?x.jsx(Kp,{value:R,children:M}):M}Oo.displayName="Layout";const rh={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}},Gz={sizing:e=>[{kZKoxP:e!=null?"x16ye13r":e,$$css:!0},{"--x-height":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function tp({children:e,hasDivider:t,height:r,label:s,padding:o,paddingBlockEnd:l,role:u,xstyle:f,className:d,style:p,ref:m,...y}){const k=g.use(Kp),v=t??k?.defaultHasDividers??!1,w=o===0;return x.jsx("div",{ref:m,role:u,"aria-label":s,"data-divider":v||void 0,...ye(fe("layout-header"),de(rh.header,Gz.sizing(r??null),v&&rh.divider,f),d,p),...y,children:x.jsx("div",{...de(rh.inner,w&&rh.fullBleed,o!=null&&Di[o],o!=null&&Ti[o],o!=null&&No[o],o!=null&&Vs[o],l!=null&&Zb[l],l!=null&&Vs[l]),children:e})})}tp.displayName="LayoutHeader";const qa={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}},Kz={sizing:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function ST({children:e,hasDivider:t=!1,isScrollable:r=!0,label:s,padding:o,role:l,width:u,resizable:f,xstyle:d,className:p,style:m,ref:y,...k}){const v=g.use(Ub),{hasHeader:w,hasFooter:S}=g.use(Gp),E=f?f._size:u,R=v==="start",C=v==="end",T=o===0,A=!t&&!T&&o==null,N=R?qa.dividerEnd:C?qa.dividerStart:null,L=R?qa.collapseEnd:C?qa.collapseStart:null;return x.jsx("div",{ref:y,role:l,"aria-label":s,...ye(fe("layout-panel"),de(qa.panel,Kz.sizing(E??null),R&&!T&&o==null&&qa.startPanel,C&&!T&&o==null&&qa.endPanel,!w&&!T&&o==null&&qa.noHeader,!S&&!T&&o==null&&qa.noFooter,r&&qa.scrollable,T&&qa.fullBleed,o!=null&&Di[o],o!=null&&Ti[o],o!=null&&No[o],o!=null&&Vs[o],t&&N,A&&L,d),p,m),...k,children:e})}ST.displayName="LayoutPanel";const Pa={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 Io({children:e,isScrollable:t=!0,padding:r,label:s,role:o,xstyle:l,className:u,style:f,ref:d,...p}){const{hasHeader:m,hasFooter:y,hasStart:k,hasEnd:v}=g.use(Gp),w=r===0;return x.jsx("div",{ref:d,role:o,"aria-label":s,...ye(fe("layout-content"),de(Pa.content,!k&&!w&&r==null&&Pa.noStart,!v&&!w&&r==null&&Pa.noEnd,!m&&!w&&r==null&&Pa.noHeader,!y&&!w&&r==null&&Pa.noFooter,t&&Pa.scrollable,w&&Pa.fullBleed,r!=null&&Di[r],r!=null&&Ti[r],r!=null&&No[r],r!=null&&Vs[r],!k&&!v&&!w&&Pa.constrainedNoPanelsStart,!k&&!v&&!w&&Pa.constrainedNoPanelsEnd,k&&!v&&!w&&Pa.constrainedSingleStartPanel,!k&&v&&!w&&Pa.constrainedSingleEndPanel,l),u,f),...p,children:e})}Io.displayName="LayoutContent";function ET(e){return(e.style.anchorName??"").split(",").map(r=>r.trim()).filter(Boolean)}function $T(e,t){e.style.anchorName=t.join(", ")}function Wz(e,t){const r=ET(e);r.includes(t)||(r.push(t),$T(e,r))}function Yz(e,t){$T(e,ET(e).filter(r=>r!==t))}let Xp=0,TT=null,x5=!1;function g5(){Xp+=1}function Xz(){TT=Xp}function CT(){x5||typeof document>"u"||(x5=!0,document.addEventListener("pointerdown",g5,!0),document.addEventListener("keydown",g5,!0),document.addEventListener("click",Xz,!0))}function bi(){return CT(),Xp}function Zz(){return CT(),TT===Xp}const Qz=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 Jz(e){if(!e)return null;let t=null,r=e;for(;r;){const s=r.tagName.toLowerCase();if(s==="dialog")break;Qz.has(s)&&(t=r),r=r.parentElement}return t?.parentElement??null}const ac={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}},sc={reset:{"--step-connector-gap":"x1qkaldv",$$css:!0}},oc={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))"},eL=[["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 tL(e){return typeof e=="number"?`${e}px`:e}function jT(e){const t={};if(e)for(const[r,s]of eL){const o=e[r];o!=null&&o!==""&&(t[s]=tL(o))}return t}const RT="--_astryx-layer-clearance";function A1(e,t,r){return`--astryx-layer-slide-${e}-${t}-${r}`}const ah=`var(${RT}, 0px)`;function AT(e,t,r){return`${e}:${t};${e}:${r};`}function np(e){return AT(e,oc.gutterBlockFallback,oc.gutterBlock)}function rp(e){return AT(e,oc.gutterInlineFallback,oc.gutterInline)}const nL={above:"below",below:"above",start:"end",end:"start"};function rL(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 aL(e){switch(e){case"above":return`margin-block-end:${ah};${np("margin-block-start")}`;case"below":return`margin-block-start:${ah};${np("margin-block-end")}`;case"start":return`margin-inline-end:${ah};${rp("margin-inline-start")}`;case"end":return`margin-inline-start:${ah};${rp("margin-inline-end")}`}}function sL(e){return e==="above"||e==="below"?`${rp("margin-inline-start")}${rp("margin-inline-end")}inset-inline-start:0;inset-inline-end:0;`:`${np("margin-block-start")}${np("margin-block-end")}inset-block-start:0;inset-block-end:0;`}function m5(e,t,r){const s=r==="same"?e:nL[e];return`@position-try ${A1(e,t,r)}{position-area:${rL(s)};${aL(s)}${sL(s)}}`}const oL=["above","below","start","end"],iL=["start","center","end"];function lL(){return oL.flatMap(e=>iL.flatMap(t=>[m5(e,t,"same"),m5(e,t,"opposite")])).join("")}const y5="astryx-layer-slide-rules";function cL(e){if(e.getElementById(y5))return;const t=e.createElement("style");t.id=y5,t.textContent=lL(),e.head.appendChild(t)}const MT=g.createContext(null);MT.displayName="LayerContext";function uL(){return g.use(MT)}const qn=typeof window<"u"?g.useLayoutEffect:g.useEffect,dL={keoZOQ:"x1vhfslr",k1K539:"x119uzjn",$$css:!0},fL={keoZOQ:"x1lhixnp",k1K539:"xlm3tn6",$$css:!0},hL={k71WvV:"xa3ewmy",$$css:!0},pL={keTefX:"x1cytvie",$$css:!0},Rn={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=>[dL,{"--x-marginBlockStart":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementAbove:e=>[fL,{"--x-marginBlockEnd":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementEnd:e=>[hL,{keTefX:e!=null?"x4lel18":e,$$css:!0},{"--x-marginInlineStart":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],placementStart:e=>[pL,{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 xL(e){return typeof e=="number"?`${e}px`:e}const Mu=new WeakMap;function b5(e,t){Mu.set(e,(Mu.get(e)??0)+1);try{t()}finally{Mu.set(e,(Mu.get(e)??1)-1)}}function gL(e){return(Mu.get(e)??0)>0}function mL(e,t){const r=e.ownerDocument.defaultView;if(!r)return{};const s=r.getComputedStyle(e),o=r.getComputedStyle(t);return{...s.direction!==o.direction&&{direction:s.direction},...s.writingMode!==o.writingMode&&{writingMode:s.writingMode}}}function yL(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 r=e==="start"?"self-inline-start":"self-inline-end";return t==="start"?`${r} span-self-block-end`:t==="end"?`${r} span-self-block-start`:r}function bL(e="above",t="center"){const r="flip-block, flip-inline, flip-block flip-inline",s=`${A1(e,t,"same")}, ${A1(e,t,"opposite")}`;if(t!=="center")return`${r}, ${s}`;if(e==="above"||e==="below"){const[u,f]=e==="above"?["top","bottom"]:["bottom","top"];return`${r}, ${u} span-left, ${u} span-right, ${f} span-left, ${f} span-right, ${s}`}const[o,l]=e==="start"?["left","right"]:["right","left"];return`${r}, ${o} span-top, ${o} span-bottom, ${l} span-top, ${l} span-bottom, ${s}`}function kL(e,t,r){if(r||t==="center")return{};const s=t==="start"?"unsafe self-start":"unsafe self-end";return e==="above"||e==="below"?{justifySelf:s}:{alignSelf:s}}function vL(e,t){return e==="above"||e==="below"?t==="start"?[Rn.gutterInlineEnd]:t==="end"?[Rn.gutterInlineStart]:[Rn.gutterInlineStart,Rn.gutterInlineEnd]:t==="start"?[Rn.gutterBlockEnd]:t==="end"?[Rn.gutterBlockStart]:[Rn.gutterBlockStart,Rn.gutterBlockEnd]}function wL(e,t){const r=g.useRef(t);return r.current=t,g.useMemo(()=>({onPointerDown:s=>{if(!r.current)return;const o=s.currentTarget,l=o.ownerDocument;o.setAttribute("popovertarget",e);const u=()=>{l.removeEventListener("pointerup",u),l.removeEventListener("pointercancel",u),l.defaultView?.setTimeout(()=>{o.removeAttribute("popovertarget")},0)};l.addEventListener("pointerup",u),l.addEventListener("pointercancel",u)},onClickCapture:s=>{const o=s.currentTarget;o.hasAttribute("popovertarget")&&(s.preventDefault(),o.removeAttribute("popovertarget"))}}),[e])}function SL(e){const{mode:t,onShow:r,onHide:s,lightDismiss:o=!1}=e,l=t==="context"?e.lazyMount??!1:!1,u=g.useId(),f=`--astryx-layer-${u.replace(/:/g,"")}`,[d,p]=g.useState(!1),[m,y]=g.useState(!0),k=g.useRef(!0),v=g.useCallback(te=>{k.current!==te&&(k.current=te,y(te))},[]),S=uL()?.inset,E=g.useRef(null),R=g.useRef(null),C=g.useRef(null),T=g.useRef(null),A=g.useRef(null),[N,L]=g.useState(null),D=g.useRef(!1),j=g.useRef(!1),O=g.useRef(null),M=g.useRef(null),H=g.useCallback(()=>{const te=bi();return O.current===te},[]),F=g.useCallback(te=>{typeof te.showPopover=="function"?b5(te.ownerDocument,()=>{te.showPopover({source:C.current??void 0})}):te.style.display="block",R.current=te},[]),q=g.useCallback(te=>{if(t!=="context")return!0;const he=A.current;if(he===null)return!1;const Re=he.portalTarget??T.current?.parentElement??null;return te.parentElement===Re},[t]),B=g.useCallback(()=>{if(t!=="context")return;const te=T.current,he=te?.parentElement??null;if(!te||!he)return;const Re=Jz(he),Ce={portalTarget:Re,portalStyle:Re?mL(te,Re):{}};A.current=Ce,L(Ce)},[t]),U=g.useCallback(()=>{t!=="context"||!l||(A.current=null,L(null))},[t,l]),_=g.useCallback(()=>{if(H())return;const te=E.current,he=te&&q(te)?te:null;if(!he){D.current=!0,B();return}if(!j.current){if(gL(he.ownerDocument)){D.current=!0,queueMicrotask(()=>{D.current&&(D.current=!1,G.current())});return}F(he),j.current=!0,p(!0),r?.()}},[r,B,F,q,H]),P=g.useCallback(()=>{if(D.current=!1,j.current){const te=E.current;R.current=null,j.current=!1,te&&(typeof te.hidePopover=="function"?b5(te.ownerDocument,()=>{te.hidePopover()}):te.style.display="none"),p(!1),s?.()}U()},[s,U]),G=g.useRef(_);G.current=_;const X=g.useCallback(te=>{C.current&&C.current!==te&&Yz(C.current,f),te&&Wz(te,f),C.current=te},[f]),Z=g.useCallback(te=>{if(M.current?.(),Zz())return;O.current=bi();const he=te.defaultView;let Re=null;const Ce=()=>{O.current=null,te.removeEventListener("click",Te,!0),Re!==null&&(he?.clearTimeout(Re),Re=null),M.current===Ce&&(M.current=null)},Te=()=>{te.removeEventListener("click",Te,!0),he?Re=he.setTimeout(()=>{Re=null,M.current===Ce&&Ce()},0):Ce()};te.addEventListener("click",Te,!0),M.current=Ce},[]);g.useEffect(()=>(bi(),()=>M.current?.()),[]);const Q=g.useCallback(te=>{te.newState==="closed"&&j.current&&(R.current=null,j.current=!1,Z(te.currentTarget?.ownerDocument??document),p(!1),s?.(),U())},[s,U,Z]),K=g.useRef(null),ae=g.useRef(null),I=g.useCallback((te,he)=>{K.current&&ae.current&&(K.current!==te||ae.current!==he)&&(K.current.removeEventListener("toggle",ae.current),K.current=null,ae.current=null),te&&K.current!==te&&(te.addEventListener("toggle",he),K.current=te,ae.current=he)},[]),ee=g.useCallback(te=>{E.current=te,I(te,Q),te&&D.current?(D.current=!1,_()):te&&j.current&&R.current!==te&&q(te)&&F(te)},[Q,I,_,F,q]),pe=g.useCallback(te=>{T.current=te,te&&(!l||D.current||j.current)&&B()},[l,B]);g.useEffect(()=>(E.current&&I(E.current,Q),()=>{K.current&&ae.current&&(K.current.removeEventListener("toggle",ae.current),K.current=null,ae.current=null)}),[Q,I]),qn(()=>{if(t!=="context")return;const te=E.current?.ownerDocument??T.current?.ownerDocument;te&&cL(te)},[t,N]),qn(()=>{if(!d||t!=="context")return;const te=C.current;if(!te)return;const he=te.ownerDocument.defaultView;if(he){const Ce=te.getBoundingClientRect(),Te=Ce.bottom>=0&&Ce.right>=0&&Ce.top<=he.innerHeight&&Ce.left<=he.innerWidth;v(Te)}if(typeof IntersectionObserver>"u")return;const Re=new IntersectionObserver(Ce=>{const Te=Ce[Ce.length-1];Te&&v(Te.isIntersecting)});return Re.observe(te),()=>Re.disconnect()},[d,t,v]);const ue=g.useCallback((te,he)=>{const Re=x.jsx("template",{ref:pe});if(N===null)return x.jsx(x.Fragment,{children:Re});const{placement:Ce="above",alignment:Te="center",positioning:Me="anchor",offset:je,role:He,"aria-label":at,xstyle:pt,className:et,style:Ve,as:bt="div",onMouseEnter:Pe,onMouseLeave:rt}=he||{},lt=Me==="custom"?{positionAnchor:f}:{positionAnchor:f,positionArea:yL(Ce,Te),positionTryFallbacks:bL(Ce,Te),...kL(Ce,Te,m)},st=je?xL(je):null,ct=Me==="anchor"&&st!=null?{[RT]:st}:{},we=Me!=="anchor"?null:st==null?Ce==="above"?Rn.farAbove:Ce==="below"?Rn.farBelow:Ce==="start"?Rn.farStart:Rn.farEnd:Ce==="above"?Rn.placementAbove(st):Ce==="below"?Rn.placementBelow(st):Ce==="start"?Rn.placementStart(st):Rn.placementEnd(st),Ge=Me==="anchor"?[Rn.viewportFit,...vL(Ce,Te)]:null,Pt=de(ac.reset,sc.reset,Rn.base,Qu.reset,Ge,we,pt),bn=et?`${et} ${Pt.className??""}`:Pt.className,gn=x.jsx(bt,{ref:ee,id:u,role:He,"aria-label":at,popover:o?"auto":"manual",className:bn,style:{...Pt.style,...lt,...ct,...jT(S),...N.portalStyle,...Ve},onMouseEnter:Pe,onMouseLeave:rt,children:x.jsx(rc,{children:te})});return x.jsxs(x.Fragment,{children:[Re,N.portalTarget?xd.createPortal(gn,N.portalTarget):gn]})},[f,N,S,u,m,o,ee,pe]),ve=g.useCallback((te,he)=>{const{x:Re,y:Ce,xstyle:Te,className:Me,style:je}=he,He={top:Ce,left:Re},at=de(ac.reset,sc.reset,Rn.base,Qu.reset,Rn.fixed,Te),pt=Me?`${Me} ${at.className??""}`:at.className;return x.jsx("div",{ref:ee,id:u,popover:o?"auto":"manual",className:pt,style:{...at.style,...He,...je},children:x.jsx(rc,{children:te})})},[ee,u,o]),xe=g.useMemo(()=>({ref:X,anchorId:f,show:_,hide:P,isOpen:d,wasJustDismissed:H,id:u,render:ue}),[X,f,_,P,d,H,u,ue]),$e=g.useMemo(()=>({ref:void 0,show:_,hide:P,isOpen:d,wasJustDismissed:H,id:u,render:ve}),[_,P,d,H,u,ve]);return t==="context"?xe:$e}function md(e){const t=SL(e);return g.useMemo(()=>{const{wasJustDismissed:r,...s}=t;return s},[t])}const k5=Symbol.for("@astryxdesign/core/interaction-modality/v1");function NT(e){const t=e,r=t[k5];if(r!=null)return r;const s={modality:"keyboard",isListening:!1,onPointerDown:()=>{s.modality="pointer"},onKeyDown:o=>{o.metaKey||o.altKey||o.ctrlKey||(s.modality="keyboard")}};return Object.defineProperty(t,k5,{value:s}),s}function EL(){if(typeof document>"u")return()=>{};const e=document,t=NT(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 Zp(){g.useEffect(()=>EL(),[])}function ic(){return typeof document>"u"?"keyboard":NT(document).modality}const $L=new Set(["touch","pen"]),TL=new Set(["button","checkbox","combobox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","searchbox","slider","spinbutton","switch","tab","textbox"]);function CL(e){const t=e.getAttribute("role");if(t!=null&&t!=="")return TL.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 jL(e)}}function jL(e){if(e.isContentEditable===!0)return!0;const t=e.getAttribute("contenteditable");return t!=null&&t!=="false"}function RL(e){const{touchTrigger:t,isEnabled:r,isControlled:s,isOpen:o,layerId:l,triggerRef:u,show:f,hide:d}=e,p=g.useRef(!1),m=g.useRef(o);m.current=o;const y=g.useRef(d);y.current=d;const k=g.useRef(l);k.current=l;const v=g.useRef(!1),w=g.useRef(null);Zp();const S=g.useCallback(()=>{v.current=!1;const N=w.current;N!=null&&(w.current=null,document.removeEventListener("pointerdown",N,!0))},[]),E=g.useCallback(()=>{if(v.current=!0,w.current!=null)return;const N=L=>{const D=L.target;D!=null&&(u.current?.contains(D)===!0||document.getElementById(k.current)?.contains(D)===!0)||(S(),y.current())};w.current=N,document.addEventListener("pointerdown",N,!0)},[u,S]);g.useEffect(()=>S,[S]);const R=g.useCallback(()=>p.current&&ic()==="pointer",[]),C=g.useCallback(N=>{p.current=N.pointerType==="touch"},[]),T=g.useCallback(N=>{const L=$L.has(N.pointerType);if(p.current=L,!L||s)return!1;const D=u.current;return(t==="auto"?D!=null&&CL(D)?"none":"tap":t)==="none"||!r||m.current||v.current?(S(),d(),!0):(E(),f(),!0)},[t,r,s,u,f,d,E,S]),A=g.useRef(o);return g.useEffect(()=>{A.current&&!o&&S(),A.current=o},[o,S]),{isTouchPointerRef:p,isTouchInteraction:R,handlePointerEnter:C,handlePointerDown:T,clearTapOpen:S}}const yd={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}},ap=g.createContext(0);ap.displayName="LayerDepthContext";function AL(){return g.use(ap)}function Ju({children:e}){const t=g.use(ap);return x.jsx(ap,{value:t+1,children:e})}Ju.displayName="LayerDepthProvider";const Nu=[];let v5=new WeakMap,ML=0,sp=!1;function NL(e){const t=v5.get(e);if(t!==void 0)return t;const r=ML++;return v5.set(e,r),r}function zL(e,t){if(e.depth!==t.depth)return e.depth-t.depth;const r=e.getContainer?.()??null,s=t.getContainer?.()??null;if(r!=null&&s!=null&&r!==s){if(s.contains(r))return 1;if(r.contains(s))return-1}return e.seq-t.seq}function LL(e){return e.isPresent?.()??!0}let Qp=!1;function DL(){return Qp}function zT(){Qp=!0}function op(){Qp=!1}function Qb(){let e=null;for(const t of Nu)LL(t)&&(e==null||zL(t,e)>0)&&(e=t);return e}function OL(e){return Qb()?.token===e}function IL(){const e=Qb();return e==null?!1:(e.behavior==="block"||e.dismiss(),!0)}function LT(e){if(e.key==="Escape"){if(gd(e)){Qb()!=null&&e.preventDefault();return}e.defaultPrevented||IL()&&e.preventDefault()}}function _L(){sp||typeof document>"u"||(document.addEventListener("keydown",LT),document.addEventListener("compositionstart",zT,!0),document.addEventListener("compositionend",op,!0),document.addEventListener("blur",op,!0),sp=!0)}function qL(){!sp||typeof document>"u"||(document.removeEventListener("keydown",LT),document.removeEventListener("compositionstart",zT,!0),document.removeEventListener("compositionend",op,!0),document.removeEventListener("blur",op,!0),Qp=!1,sp=!1)}function PL(e){const t={...e,seq:NL(e.token)};return Nu.push(t),_L(),()=>{const r=Nu.indexOf(t);r!==-1&&Nu.splice(r,1),Nu.length===0&&qL()}}function Jp(e){const{isActive:t,onDismiss:r,escapeBehavior:s="close",getContainer:o,isPresent:l,isEnabled:u=!0}=e,f=AL(),d=g.useRef({}),p=g.useRef(!1),m=g.useRef(r),y=g.useRef(o),k=g.useRef(l);g.useEffect(()=>{m.current=r,y.current=o,k.current=l});const v=t&&u;return g.useEffect(()=>{if(!v){p.current=!1;return}return p.current||(d.current={},p.current=!0),PL({token:d.current,depth:f,behavior:s,getContainer:()=>y.current?.()??null,isPresent:()=>k.current?.()??!0,dismiss:()=>m.current()})},[v,f,s]),{shouldDismissOnCloseRequest:g.useCallback(()=>v&&!DL()&&OL(d.current),[v])}}const BL=100,HL={container:{kWkggS:"x19aspcf",kMwMTN:"xrkvqaz",kaIpWk:"x1hviunn",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0}};function FL(e){return e.hasAttribute("tabindex")?e.tabIndex>=0:["A","BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function Ya(e={}){const{placement:t="above",alignment:r="center",delay:s=200,hideDelay:o=0,focusTrigger:l="auto",touchTrigger:u="auto",isEnabled:f=!0,isOpen:d,isDefaultOpen:p=!1,onShow:m,onHide:y}=e,k=md({mode:"context",onShow:m,onHide:y}),{ref:v,anchorId:w,show:S,hide:E,isOpen:R,id:C,render:T}=k,A=HL.container,N=g.useRef(null),L=g.useRef(null),D=g.useRef(null),j=g.useCallback(()=>{N.current&&(clearTimeout(N.current),N.current=null),L.current&&(clearTimeout(L.current),L.current=null)},[]),O=g.useCallback(()=>{j(),S()},[j,S]),M=g.useCallback(()=>{j(),E()},[j,E]),{isTouchPointerRef:H,isTouchInteraction:F,handlePointerEnter:q,handlePointerDown:B,clearTapOpen:U}=RL({touchTrigger:u,isEnabled:f,isControlled:d!==void 0,isOpen:R,layerId:C,triggerRef:D,show:O,hide:M}),_=g.useCallback(()=>{!f||d===!1||(j(),N.current=setTimeout(()=>{S()},s))},[f,d,j,S,s]),P=g.useCallback(()=>{if(d===!0)return;j();const ue=o>0?o:BL;L.current=setTimeout(()=>{E()},ue)},[d,j,E,o]),G=g.useCallback(()=>{L.current&&(clearTimeout(L.current),L.current=null)},[]),X=g.useCallback(()=>{H.current||_()},[H,_]),Z=g.useCallback(()=>{H.current||P()},[H,P]),Q=g.useCallback(ue=>{!f||F()||!ue.target.matches(":focus-visible")||(j(),S())},[f,F,j,S]),K=g.useCallback(()=>{P()},[P]),ae=g.useCallback(ue=>{B(ue)||d===void 0&&(j(),E())},[B,d,j,E]),I=g.useCallback(ue=>{D.current&&(D.current.removeEventListener("mouseenter",X),D.current.removeEventListener("mouseleave",Z),D.current.removeEventListener("focusin",Q),D.current.removeEventListener("focusout",K),D.current.removeEventListener("pointerenter",q),D.current.removeEventListener("pointerdown",ae)),ue&&(ue.addEventListener("pointerenter",q),ue.addEventListener("mouseenter",X),ue.addEventListener("mouseleave",Z),ue.addEventListener("pointerdown",ae),(l==="always"||l==="auto"&&FL(ue))&&(ue.addEventListener("focusin",Q),ue.addEventListener("focusout",K))),D.current=ue},[l,X,Z,Q,K,q,ae]),ee=g.useCallback(ue=>{v(ue),I(ue)},[v,I]);g.useEffect(()=>()=>{j()},[j]),g.useEffect(()=>{p&&S()},[]),g.useEffect(()=>{d!==void 0&&(d?(j(),S()):(j(),E()))},[d,j,S,E]),Jp({isActive:!0,isPresent:()=>{const ue=typeof document>"u"?null:document.getElementById(C);if(ue==null)return!1;try{return ue.matches(":popover-open")}catch{return R}},onDismiss:()=>{if(j(),U(),d!==void 0){y?.();return}E()}});const pe=g.useCallback((ue,ve)=>{const xe=ve?.placement??t,$e={placement:xe,alignment:ve?.alignment??r,offset:Wn["--spacing-1"],role:"tooltip",xstyle:[A,yd[xe]],className:fe("tooltip").className,onMouseEnter:G,onMouseLeave:P};return T(x.jsx("div",{className:"xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe",children:ue}),$e)},[T,t,r,A,G,P]);return{ref:ee,positionRef:v,interactionRef:I,anchorId:w,describedBy:C,renderTooltip:pe}}const UL="modulepreload",VL=function(e){return"/"+e},w5={},bd=function(t,r,s){let o=Promise.resolve();if(r&&r.length>0){let d=function(p){return Promise.all(p.map(m=>Promise.resolve(m).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),f=u?.nonce||u?.getAttribute("nonce");o=d(r.map(p=>{if(p=VL(p),p in w5)return;w5[p]=!0;const m=p.endsWith(".css"),y=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const k=document.createElement("link");if(k.rel=m?"stylesheet":UL,m||(k.as="script"),k.crossOrigin="",k.href=p,f&&k.setAttribute("nonce",f),document.head.appendChild(k),m)return new Promise((v,w)=>{k.addEventListener("load",v),k.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${p}`)))})}))}function l(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return o.then(u=>{for(const f of u||[])f.status==="rejected"&&l(f.reason);return t().catch(l)})},Jb={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}},DT={normal:{k63SB2:"x1sodnla",$$css:!0},medium:{k63SB2:"x1e4wzip",$$css:!0},semibold:{k63SB2:"x2mo6ok",$$css:!0},bold:{k63SB2:"x1lvx875",$$css:!0}},OT={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}},e0={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}},GL={"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}},KL={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}},IT={inline:{k1xSpc:"xt0psk2",$$css:!0},block:{k1xSpc:"x1lliihq",$$css:!0}},ip={singleLine:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",k1xSpc:"x1lliihq",$$css:!0},multiLine:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0}},_T={"break-word":{kTgw9:"x1lldw8n",kHjlTd:"x1mzt3pk",$$css:!0},"break-all":{kTgw9:"x1yn0g08",$$css:!0}},qT={wrap:{kN2L0X:"xk4td0m",$$css:!0},nowrap:{kN2L0X:"xebhuq6",$$css:!0},balance:{kN2L0X:"x1w2vvpw",$$css:!0},pretty:{kN2L0X:"x1fzhlzt",$$css:!0}},PT={enabled:{kxwWH2:"x1b2iylo",kzeHkT:"xwgcxoh",k1xSpc:"x1lliihq",$$css:!0}},BT={strikethrough:{kybGjl:"xmqliwb",$$css:!0}},WL={enabled:{kcqcaj:"xss6m8b",$$css:!0}},HT={start:{k9WMMc:"x1yc453h",$$css:!0},center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},FT={content:{ks0D6T:"xw5ewwj",kTgw9:"x13faqbe",$$css:!0}};function UT(e){const{maxLines:t}=e,[r,s]=g.useState(!1),[o,l]=g.useState(""),u=g.useRef(null),f=g.useRef(null),d=g.useCallback(m=>{if(t===0){s(!1);return}if(l(m.textContent??""),t===1)s(m.scrollWidth>m.offsetWidth);else{let y=m.scrollHeight;try{const k=document.createRange();k.selectNodeContents(m),y=k.getBoundingClientRect().height,k.detach()}catch{}s(y>m.offsetHeight)}},[t]);return{ref:g.useCallback(m=>{f.current?.(),f.current=null,u.current=m,m&&t>0?typeof ResizeObserver<"u"?f.current=Xu(m,()=>{d(m)}):d(m):(s(!1),l(""))},[t,d]),isTruncated:r,fullText:o}}function xn(e,t,r,s,o,l){return g.useMemo(()=>Gb(e,t,r,s,o,l),[e,t,r,s,o,l])}const YL=g.lazy(async()=>bd(()=>Promise.resolve().then(()=>nj),[]).then(e=>({default:e.Tooltip}))),XL={body:"primary",large:"primary",label:"primary",supporting:"secondary",code:"primary","display-1":"primary","display-2":"primary","display-3":"primary",inherit:"inherit"};function ZL(e){return e in e0?e:"body"}function VT(e){return e in Jb?e:"primary"}function Je({type:e="body",size:t,color:r,weight:s,display:o="inline",maxLines:l=0,hasTruncateTooltip:u=!0,wordBreak:f,textWrap:d,justify:p="start",hasCapsize:m=!1,hasStrikethrough:y=!1,hasTabularNumbers:k=!1,xstyle:v,className:w,style:S,as:E="span",children:R,ref:C,...T}){const A=r??XL[e]??"primary",N=ZL(e),L=VT(A),D=f??(l===1?"break-all":"break-word"),j=l>0||m?"block":o,O=UT({maxLines:l}),M=typeof u=="string"?u:"above",H=l>0&&u!==!1&&O.isTruncated,F=g.useRef(null),q=xn(C,O.ref,F),B=l>1?{WebkitLineClamp:l}:void 0;return x.jsxs(x.Fragment,{children:[x.jsx(E,{ref:q,...ye(fe("text",{type:e,size:t,color:A}),de(Jb[L],e0[N],t&&GL[t],OT[N],s&&DT[s],l===1?ip.singleLine:l>1?ip.multiLine:IT[j],l>0&&_T[D],d&&qT[d],p!=="start"&&HT[p],m&&PT.enabled,y&&BT.strikethrough,k&&WL.enabled,v),w,{...S,...B}),...T,children:R}),H&&x.jsx(g.Suspense,{fallback:null,children:x.jsx(YL,{anchorRef:F,content:x.jsx("span",{...de(FT.content),children:O.fullText}),placement:M})})]})}Je.displayName="Text";function yy(e,t){const r=t&&t.cache?t.cache:aD,s=t&&t.serializer?t.serializer:nD;return(t&&t.strategy?t.strategy:eD)(e,{cache:r,serializer:s})}function QL(e){return e==null||typeof e=="number"||typeof e=="boolean"}function JL(e,t,r,s){const o=QL(s)?s:r(s);let l=t.get(o);return typeof l>"u"&&(l=e.call(this,s),t.set(o,l)),l}function GT(e,t,r){const s=Array.prototype.slice.call(arguments,3),o=r(s);let l=t.get(o);return typeof l>"u"&&(l=e.apply(this,s),t.set(o,l)),l}function KT(e,t,r,s,o){return r.bind(t,e,s,o)}function eD(e,t){const r=e.length===1?JL:GT;return KT(e,this,r,t.cache.create(),t.serializer)}function tD(e,t){return KT(e,this,GT,t.cache.create(),t.serializer)}const nD=function(){return JSON.stringify(arguments)};var rD=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const aD={create:function(){return new rD}},by={variadic:tD},sD=/(?:[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 oD(e){const t={};return e.replace(sD,r=>{const s=r.length;switch(r[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 iD=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function lD(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");const t=e.split(iD).filter(s=>s.length>0),r=[];for(const s of t){let o=s.split("/");if(o.length===0)throw new Error("Invalid number skeleton");const[l,...u]=o;for(const f of u)if(f.length===0)throw new Error("Invalid number skeleton");r.push({stem:l,options:u})}return r}function cD(e){return e.replace(/^(.*?)-/,"")}const S5=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,WT=/^(@+)?(\+|#+)?[rs]?$/g,uD=/(\*)(0+)|(#+)(0+)|(0+)/g,YT=/^(0+)$/;function E5(e){const t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(WT,function(r,s,o){return typeof o!="string"?(t.minimumSignificantDigits=s.length,t.maximumSignificantDigits=s.length):o==="+"?t.minimumSignificantDigits=s.length:s[0]==="#"?t.maximumSignificantDigits=s.length:(t.minimumSignificantDigits=s.length,t.maximumSignificantDigits=s.length+(typeof o=="string"?o.length:0)),""}),t}function XT(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 dD(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 r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!YT.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function $5(e){const t={},r=XT(e);return r||t}function fD(e){let t={};for(const r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.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=cD(r.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",...r.options.reduce((l,u)=>({...l,...$5(u)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((l,u)=>({...l,...$5(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(r.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(r.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");r.options[0].replace(uD,function(l,u,f,d,p,m){if(u)t.minimumIntegerDigits=f.length;else{if(d&&p)throw new Error("We currently do not support maximum integer digits");if(m)throw new Error("We currently do not support exact integer digits")}return""});continue}if(YT.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(S5.test(r.stem)){if(r.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(S5,function(u,f,d,p,m,y){return d==="*"?t.minimumFractionDigits=f.length:p&&p[0]==="#"?t.maximumFractionDigits=p.length:m&&y?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+y.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});const l=r.options[0];l==="w"?t={...t,trailingZeroDisplay:"stripIfInteger"}:l&&(t={...t,...E5(l)});continue}if(WT.test(r.stem)){t={...t,...E5(r.stem)};continue}const s=XT(r.stem);s&&(t={...t,...s});const o=dD(r.stem);o&&(t={...t,...o})}return t}let hD=(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 T5(e){return e.type===0}function pD(e){return e.type===1}function ZT(e){return e.type===2}function QT(e){return e.type===3}function JT(e){return e.type===4}function eC(e){return e.type===5}function tC(e){return e.type===6}function xD(e){return e.type===7}function nC(e){return e.type===8}function rC(e){return!!(e&&typeof e=="object"&&e.type===0)}function M1(e){return!!(e&&typeof e=="object"&&e.type===1)}const aC=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,wu={"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 gD(e,t){let r="";for(let s=0;s<e.length;s++){const o=e.charAt(s);if(o==="j"){let l=0;for(;s+1<e.length&&e.charAt(s+1)===o;)l++,s++;let u=1+(l&1),f=l<2?1:3+(l>>1),d="a",p=mD(t);for((p=="H"||p=="k")&&(f=0);f-- >0;)r+=d;for(;u-- >0;)r=p+r}else o==="J"?r+="H":r+=o}return r}function mD(e){let t=e.hourCycle;if(t===void 0){const o=e;t=o.getHourCycles?.()[0]??o.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 r=e.language;let s;return r!=="root"&&(s=e.maximize().region),(wu[`${r}-${s}`]||wu[s||""]||wu[r||""]||wu[`${r}-001`]||wu["001"])[0].charAt(0)}const yD=new RegExp(`^${aC.source}*`),bD=new RegExp(`${aC.source}*$`);function $t(e,t){return{start:e,end:t}}const kD=!!Object.fromEntries,vD=!!String.prototype.trimStart,wD=!!String.prototype.trimEnd,C5=kD?Object.fromEntries:function(t){const r={};for(const[s,o]of t)r[s]=o;return r},SD=vD?function(t){return t.trimStart()}:function(t){return t.replace(yD,"")},ED=wD?function(t){return t.trimEnd()}:function(t){return t.replace(bD,"")},j5=new RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");function $D(e,t){return j5.lastIndex=t,j5.exec(e)[1]??""}function TD(e){if(e.length===0)return null;let t=1,r=1;for(let s=0;s<e.length;){const o=e.charCodeAt(s);switch(o){case 35:case 39:case 60:case 123:case 125:return null}if(o===10)t++,r=1,s++;else if(r++,o>=55296&&o<=56319&&s+1<e.length){const l=e.charCodeAt(s+1);s+=l>=56320&&l<=57343?2:1}else s++}return{offset:e.length,line:t,column:r}}var CD=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=TD(this.message);if(t){const r=this.clonePosition();return this.position=t,{val:[{type:0,value:this.message,location:$t(r,this.clonePosition())}],err:null}}}}return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let s=[];for(;!this.isEOF();){const o=this.char();if(o===123){const l=this.parseArgument(e,r);if(l.err)return l;s.push(l.val)}else{if(o===125&&e>0)break;if(o===35&&(t==="plural"||t==="selectordinal")){const l=this.clonePosition();this.bump(),s.push({type:7,location:$t(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(26,$t(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&N1(this.peek()||0)){const l=this.parseTag(e,t);if(l.err)return l;s.push(l.val)}else{const l=this.parseLiteral(e,t);if(l.err)return l;s.push(l.val)}}}return{val:s,err:null}}parseTag(e,t){const r=this.clonePosition();this.bump();const s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:0,value:`<${s}/>`,location:$t(r,this.clonePosition())},err:null};if(this.bumpIf(">")){const o=this.parseMessage(e+1,t,!0);if(o.err)return o;const l=o.val,u=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!N1(this.char()))return this.error(23,$t(u,this.clonePosition()));const f=this.clonePosition();return s!==this.parseTagName()?this.error(26,$t(f,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:8,value:s,children:l,location:$t(r,this.clonePosition())},err:null}:this.error(23,$t(u,this.clonePosition())))}else return this.error(27,$t(r,this.clonePosition()))}else return this.error(23,$t(r,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&RD(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const r=this.clonePosition();let s="";for(;;){const l=this.tryParseQuote(t);if(l){s+=l;continue}const u=this.tryParseUnquoted(e,t);if(u){s+=u;continue}const f=this.tryParseLeftAngleBracket();if(f){s+=f;continue}break}const o=$t(r,this.clonePosition());return{val:{type:0,value:s,location:o},err:null}}tryParseLeftAngleBracket(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!jD(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 r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;const r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){const r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(1,$t(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(2,$t(r,this.clonePosition()));let s=this.parseIdentifierIfPossible().value;if(!s)return this.error(3,$t(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(1,$t(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:1,value:s,location:$t(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(1,$t(r,this.clonePosition())):this.parseArgumentOptions(e,t,s,r);default:return this.error(3,$t(r,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),r=$D(this.message,t),s=t+r.length;return this.bumpTo(s),{value:r,location:$t(e,this.clonePosition())}}parseArgumentOptions(e,t,r,s){let o=this.clonePosition(),l=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(l){case"":return this.error(4,$t(o,u));case"number":case"date":case"time":{this.bumpSpace();let f=null;if(this.bumpIf(",")){this.bumpSpace();const m=this.clonePosition(),y=this.parseSimpleArgStyleIfPossible();if(y.err)return y;const k=ED(y.val);if(k.length===0)return this.error(6,$t(this.clonePosition(),this.clonePosition()));f={style:k,styleLocation:$t(m,this.clonePosition())}}const d=this.tryParseArgumentClose(s);if(d.err)return d;const p=$t(s,this.clonePosition());if(f&&f.style.startsWith("::")){let m=SD(f.style.slice(2));if(l==="number"){const y=this.parseNumberSkeletonFromString(m,f.styleLocation);return y.err?y:{val:{type:2,value:r,location:p,style:y.val},err:null}}else{if(m.length===0)return this.error(10,p);let y=m;this.locale&&(y=gD(m,this.locale));const k={type:1,pattern:y,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?oD(y):{}};return{val:{type:l==="date"?3:4,value:r,location:p,style:k},err:null}}}return{val:{type:l==="number"?2:l==="date"?3:4,value:r,location:p,style:f?.style??null},err:null}}case"plural":case"selectordinal":case"select":{const f=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(12,$t(f,{...f}));this.bumpSpace();let d=this.parseIdentifierIfPossible(),p=0;if(l!=="select"&&d.value==="offset"){if(!this.bumpIf(":"))return this.error(13,$t(this.clonePosition(),this.clonePosition()));this.bumpSpace();const v=this.tryParseDecimalInteger(13,14);if(v.err)return v;this.bumpSpace(),d=this.parseIdentifierIfPossible(),p=v.val}const m=this.tryParsePluralOrSelectOptions(e,l,t,d);if(m.err)return m;const y=this.tryParseArgumentClose(s);if(y.err)return y;const k=$t(s,this.clonePosition());return l==="select"?{val:{type:5,value:r,options:C5(m.val),location:k},err:null}:{val:{type:6,value:r,options:C5(m.val),offset:p,pluralType:l==="plural"?"cardinal":"ordinal",location:k},err:null}}default:return this.error(5,$t(o,u))}}tryParseArgumentClose(e){return this.isEOF()||this.char()!==125?this.error(1,$t(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 r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(11,$t(r,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 r=[];try{r=lD(e)}catch{return this.error(7,t)}return{val:{type:0,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?fD(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,s){let o=!1;const l=[],u=new Set;let{value:f,location:d}=s;for(;;){if(f.length===0){const k=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){const v=this.tryParseDecimalInteger(16,19);if(v.err)return v;d=$t(k,this.clonePosition()),f=this.message.slice(k.offset,this.offset())}else break}if(u.has(f))return this.error(t==="select"?21:20,d);f==="other"&&(o=!0),this.bumpSpace();const p=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?17:18,$t(this.clonePosition(),this.clonePosition()));const m=this.parseMessage(e+1,t,r);if(m.err)return m;const y=this.tryParseArgumentClose(p);if(y.err)return y;l.push([f,{value:m.val,location:$t(p,this.clonePosition())}]),u.add(f),this.bumpSpace(),{value:f,location:d}=this.parseIdentifierIfPossible()}return l.length===0?this.error(t==="select"?15:16,$t(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(22,$t(this.clonePosition(),this.clonePosition())):{val:l,err:null}}tryParseDecimalInteger(e,t){let r=1;const s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let o=!1,l=0;for(;!this.isEOF();){const f=this.char();if(f>=48&&f<=57)o=!0,l=l*10+(f-48),this.bump();else break}const u=$t(s,this.clonePosition());return o?(l*=r,Number.isSafeInteger(l)?{val:l,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(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!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()&&AD(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 N1(e){return e>=97&&e<=122||e>=65&&e<=90}function jD(e){return N1(e)||e===47}function RD(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 AD(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function z1(e){e.forEach(t=>{if(delete t.location,eC(t)||tC(t))for(const r in t.options)delete t.options[r].location,z1(t.options[r].value);else ZT(t)&&rC(t.style)||(QT(t)||JT(t))&&M1(t.style)?delete t.style.location:nC(t)&&z1(t.children)})}function MD(e,t={}){t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t};const r=new CD(e,t).parse();if(r.err){const s=SyntaxError(hD[r.err.kind]);throw s.location=r.err.location,s.originalMessage=r.err.message,s}return t?.captureLocation||z1(r.val),r.val}var ex=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}},R5=class extends ex{constructor(e,t,r,s){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,"INVALID_VALUE",s)}},ND=class extends ex{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,"INVALID_VALUE",r)}},zD=class extends ex{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,"MISSING_VALUE",t)}};function LD(e){return e.length<2?e:e.reduce((t,r)=>{const s=t[t.length-1];return!s||s.type!==0||r.type!==0?t.push(r):s.value+=r.value,t},[])}function DD(e){return typeof e=="function"}function Ph(e,t,r,s,o,l,u){if(e.length===1&&T5(e[0]))return[{type:0,value:e[0].value}];const f=[];for(const d of e){if(T5(d)){f.push({type:0,value:d.value});continue}if(xD(d)){typeof l=="number"&&f.push({type:0,value:r.getNumberFormat(t).format(l)});continue}const{value:p}=d;if(!(o&&p in o))throw new zD(p,u);let m=o[p];if(pD(d)){(!m||typeof m=="string"||typeof m=="number"||typeof m=="bigint")&&(m=typeof m=="string"||typeof m=="number"||typeof m=="bigint"?String(m):""),f.push({type:typeof m=="string"?0:1,value:m});continue}if(QT(d)){const y=typeof d.style=="string"?s.date[d.style]:M1(d.style)?d.style.parsedOptions:void 0;f.push({type:0,value:r.getDateTimeFormat(t,y).format(m)});continue}if(JT(d)){const y=typeof d.style=="string"?s.time[d.style]:M1(d.style)?d.style.parsedOptions:s.time.medium;f.push({type:0,value:r.getDateTimeFormat(t,y).format(m)});continue}if(ZT(d)){const y=typeof d.style=="string"?s.number[d.style]:rC(d.style)?d.style.parsedOptions:void 0;if(y&&y.scale){const k=y.scale||1;if(typeof m=="bigint"){if(!Number.isInteger(k))throw new TypeError(`Cannot apply fractional scale ${k} to bigint value. Scale must be an integer when formatting bigint.`);m=m*BigInt(k)}else m=m*k}f.push({type:0,value:r.getNumberFormat(t,y).format(m)});continue}if(nC(d)){const{children:y,value:k}=d,v=o[k];if(!DD(v))throw new ND(k,"function",u);let w=v(Ph(y,t,r,s,o,l).map(S=>S.value));Array.isArray(w)||(w=[w]),f.push(...w.map(S=>({type:typeof S=="string"?0:1,value:S})))}if(eC(d)){const y=m,k=(Object.prototype.hasOwnProperty.call(d.options,y)?d.options[y]:void 0)||d.options.other;if(!k)throw new R5(d.value,m,Object.keys(d.options),u);f.push(...Ph(k.value,t,r,s,o));continue}if(tC(d)){const y=`=${m}`;let k=Object.prototype.hasOwnProperty.call(d.options,y)?d.options[y]:void 0;if(!k){if(!Intl.PluralRules)throw new ex(`Intl.PluralRules is not available in this environment.
|
|
14
|
-
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
15
|
-
`,"MISSING_INTL_API",u);const w=typeof m=="bigint"?Number(m):m,S=r.getPluralRules(t,{type:d.pluralType}).select(w-(d.offset||0));k=(Object.prototype.hasOwnProperty.call(d.options,S)?d.options[S]:void 0)||d.options.other}if(!k)throw new R5(d.value,m,Object.keys(d.options),u);const v=typeof m=="bigint"?Number(m):m;f.push(...Ph(k.value,t,r,s,o,v-(d.offset||0)));continue}}return LD(f)}function OD(e,t){return t?{...e,...t,...Object.keys(e).reduce((r,s)=>(r[s]={...e[s],...t[s]},r),{})}:e}function ID(e,t){return t?Object.keys(e).reduce((r,s)=>(r[s]=OD(e[s],t[s]),r),{...e}):e}function ky(e){return{create(){return{get(t){return e[t]},set(t,r){e[t]=r}}}}}function _D(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:yy((...t)=>new Intl.NumberFormat(...t),{cache:ky(e.number),strategy:by.variadic}),getDateTimeFormat:yy((...t)=>new Intl.DateTimeFormat(...t),{cache:ky(e.dateTime),strategy:by.variadic}),getPluralRules:yy((...t)=>new Intl.PluralRules(...t),{cache:ky(e.pluralRules),strategy:by.variadic})}}var sr,qD=(sr=class{constructor(t,r=sr.defaultLocale,s,o){if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=l=>{const u=this.formatToParts(l);if(u.length===1)return u[0].value;const f=u.reduce((d,p)=>(!d.length||p.type!==0||typeof d[d.length-1]!="string"?d.push(p.value):d[d.length-1]+=p.value,d),[]);return f.length<=1?f[0]||"":f},this.formatToParts=l=>Ph(this.ast,this.locales,this.formatters,this.formats,l,void 0,this.message),this.resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}),this.getAst=()=>this.ast,this.locales=r,this.resolvedLocale=sr.resolveLocale(r),typeof t=="string"){if(this.message=t,!sr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");const{...l}=o||{};this.ast=sr.__parse(t,{...l,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=ID(sr.formats,s),this.formatters=o&&o.formatters||_D(this.formatterCache)}static get defaultLocale(){return sr.memoizedDefaultLocale||(sr.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),sr.memoizedDefaultLocale}},sr.memoizedDefaultLocale=null,sr.resolveLocale=t=>{if(typeof Intl.Locale>"u")return;const r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])},sr.__parse=MD,sr.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"}}},sr),PD=qD;const BD={"@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"},A5=new Map;function HD(e,t){const r=`${t}::${e}`;let s=A5.get(r);return s===void 0&&(s=new PD(e,t),A5.set(r,s)),s}function FD(e){let t;try{t=new Intl.Locale(e).baseName}catch{t=e}const r=t.split("-"),s=[];for(let o=r.length;o>0;o--)s.push(r.slice(0,o).join("-"));return s}function UD(e,t,r){const s={},o=FD(e);if(r!==void 0){for(const l of o)if(r[l])for(const[u,f]of Object.entries(r[l]))s[u]===void 0&&f!==null&&(s[u]=f)}for(const l of o)if(t[l])for(const[u,f]of Object.entries(t[l])){const d=typeof f=="string"?f:f?.defaultMessage;s[u]===void 0&&d!=null&&(s[u]=d)}return s}function sC(e,t,r){const s=UD(e,t,r);return(o,l)=>{const u=s[o]??BD[o];return u===void 0?(Yp(),o):l===void 0?u:HD(u,e).format(l)}}const tx=g.createContext({locale:"en",direction:"ltr",messages:{},translate:sC("en",{})});tx.displayName="InternationalizationContext";function VD(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 GD(e){return Object.values(e).some(r=>Object.values(r).some(s=>typeof s=="string"))?Object.fromEntries(Object.entries(e).map(([r,s])=>[r,Object.fromEntries(Object.entries(s).map(([o,l])=>[o,typeof l=="string"?{defaultMessage:l}:l]))])):e}function oC({locale:e,messages:t,overrides:r,dir:s,children:o}){const l=s??VD(e),u=g.useMemo(()=>{const f=t??{};return{locale:e,direction:l,messages:GD(f),overrides:r,translate:sC(e,f,r)}},[e,l,t,r]);return x.jsx(tx,{value:u,children:o})}oC.displayName="InternationalizationProvider";function Nt(){return g.use(tx).translate}function KD(){return g.use(tx).locale}const WD=.375,YD={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},XD="--_spinner-ring-diameter",ZD="--_spinner-ring-stroke",QD=[XD,ZD],M5="--_spinner-box-size";function JD(){if(!(typeof CSS>"u"||typeof CSS.registerProperty!="function"))for(const e of QD)try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!0,initialValue:"0px"})}catch{}}JD();const lp=new Set;let L1=!1;function eO(){L1=!1;const e=[];for(const t of lp)e.push(...t.getAnimations({subtree:!0}));lp.clear();for(const t of e)t.startTime=0}function tO(e){if(e!=null&&typeof e.getAnimations=="function")return lp.add(e),L1||(L1=!0,requestAnimationFrame(eO)),()=>{lp.delete(e)}}const sh={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}},N5={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}},z5={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}},nO={default:{kDd8S0:"x1g350g8",$$css:!0},subtle:{kDd8S0:"x1g350g8",$$css:!0},onMedia:{kDd8S0:"x1smxkh6",$$css:!0},inherit:{kDd8S0:"x7bo2k",$$css:!0}};function _o({size:e="md",shade:t="default",label:r,xstyle:s,className:o,style:l,"aria-label":u,"data-testid":f,ref:d,...p}){const{border:m,diameter:y}=YD[e],k=y+m*2,v=Math.PI*y,w=v*WD,S=r!=null,E=g.useId(),R=Nt(),C=S&&typeof r=="string"&&u==null,T=u??(typeof r=="string"?r:void 0)??R("@astryx.spinner.loading"),A=x.jsx("span",{ref:S?void 0:d,role:"status","aria-label":C?void 0:T,"aria-labelledby":C?E:void 0,"data-testid":S?void 0:f,...S?{}:p,...ye(S?"":fe("spinner",{size:e,shade:t}),de(sh.spinner,!S&&N5[e],!S&&z5[t],!S&&s),S?void 0:o,{...S?{}:l,width:`var(${M5}, ${k}px)`,height:`var(${M5}, ${k}px)`}),children:x.jsxs("svg",{ref:tO,width:k,height:k,"aria-hidden":"true",className:"xlp1x4z x1lliihq x6v0vjy x7yyq19 x1rea2x4",children:[x.jsx("circle",{cx:"50%",cy:"50%",r:y/2,strokeWidth:m,...de(sh.circle,sh.track,nO[t])}),x.jsx("circle",{cx:"50%",cy:"50%",r:y/2,strokeWidth:m,strokeDasharray:`${w} ${v-w}`,className:"xbh8q5q x1764fhq x1g0ag68 x1owpc8m xio8zfp xgw3ha0 x14qxm4i xnh0sag xa4qsjk x1nlxm0d x1esw782 xtve3lm x9tu13d xdv9ggb"})]})});return S?x.jsxs("div",{ref:d,"data-testid":f,...p,...ye(fe("spinner",{size:e,shade:t}),de(sh.wrapper,N5[e],z5[t],s),o,l),children:[A,typeof r=="string"?x.jsx(Je,{id:E,type:"body",weight:"bold",children:r}):r]}):A}_o.displayName="Spinner";function Gs({children:e,as:t="span",ref:r,...s}){return g.createElement(t,{ref:r,...s,className:"x10l6tqk x1i1rx1s xjm9jq1 xkdpibf x1717udv xb3r6kr xzpqnlu xuxw1ft xng3xce x13vifvy x1o0tod x47corl x87ps6o"},e)}Gs.displayName="VisuallyHidden";const t0=aa(null);t0.displayName="IconDefaultSizeContext";const rO=t0.Provider;function aO(e){const t=g.use(t0);return e??t??"md"}const sO={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}},iC={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}},oO="data-astryx-edge-comp",n0=aa(null);n0.displayName="SizeContext";function bc(e,t="md"){const r=g.use(n0);return e??r??t}const Bl=n0.Provider,lC=aa(null);lC.displayName="ButtonGroupContext";function iO(){return g.use(lC)}const cC=g.createContext(null);cC.displayName="LinkContext";function uC(e){return e.replace(/[\x00-\x1f\x7f]/g,"").trim()}function lO(e){return e.toLowerCase().replace(/^([a-z][a-z\d+.-]*:) +/,"$1")}function dC(e){const t=uC(e),r=lO(t);return r.startsWith("javascript:")||r.startsWith("vbscript:")||r.startsWith("data:text/html")?null:t}function Hs(e){return dC(e)!==null}function L5(e){if(e==null)return!0;if(typeof e=="string")return Hs(e);if(typeof e!="object")return!1;const{pathname:t,href:r,protocol:s,host:o,hostname:l}=e;for(const u of[t,r,s,o,l])if(u!=null&&typeof u!="string")return!1;if(typeof t=="string"&&!Hs(t)||typeof r=="string"&&!Hs(r))return!1;if(typeof s=="string"&&s!==""){const u=uC(s),f=u.endsWith(":")?u:`${u}:`;if(!Hs(f)||!Hs(`${f}${o||l||""}${typeof t=="string"?t:""}`))return!1}return!0}function cO(e){function t({href:r,to:s,ref:o,...l}){return!L5(r)||!L5(s)?g.createElement("a",{ref:o,...l}):e==="a"?g.createElement("a",{ref:o,...l,href:r}):g.createElement(e,{ref:o,...l,href:r,to:s??r})}return t.displayName=`SafeLink(${typeof e=="string"?e:e.displayName||e.name||"Component"})`,t}function Oi(e){const t=g.use(cC),r=e??t?.component??"a";return g.useMemo(()=>cO(r),[r])}const uO=150,dO=10,fO=100,hO=Dz.releaseMs,pO=150,Bh={originX:0,originY:0,phase:"idle"};function D5(e,t,r){return Math.hypot(t-e.originX,r-e.originY)>dO}function ci(e,t,r,s){return{gesture:{...e,phase:t},paint:r,timer:s}}function kd(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"?D5(e,t.x,t.y)?ci(e,"dead","none",null):{gesture:e,paint:"none",timer:null}:t.kind==="cancel"?ci(e,"dead","none",null):t.kind==="onset"?ci(e,"pressed","on",null):t.kind==="up"?ci(e,"flash","on","flash"):{gesture:e,paint:"none",timer:null};case"pressed":return t.kind==="move"&&!D5(e,t.x,t.y)?{gesture:e,paint:"on",timer:null}:t.kind==="move"||t.kind==="cancel"?ci(e,"dead","none",null):t.kind==="up"?ci(e,"fading","fading","fade"):{gesture:e,paint:"on",timer:null};case"flash":return t.kind==="flashEnd"?ci(e,"fading","fading","fade"):{gesture:e,paint:"on",timer:null};case"fading":return t.kind==="fadeEnd"?{gesture:Bh,paint:"none",timer:null}:{gesture:e,paint:"fading",timer:null};case"dead":return t.kind==="up"?{gesture:Bh,paint:"none",timer:null}:{gesture:e,paint:"none",timer:null};case"idle":return{gesture:Bh,paint:"none",timer:null}}}function fC(){return Bh}const hC="data-astryx-pressable",D1="data-astryx-press",xO={[hC]:""},gO=3e3,mO=':disabled, [aria-disabled="true"]';let Rt=null,oh=0,r0=0,cp=null,nx=0,ed=null;const yO={fade:hO,flash:fO,onset:uO},bO={fade:"fadeEnd",flash:"flashEnd",onset:"onset"};function kO(e,t){if(t==="none"){e.removeAttribute(D1);return}e.setAttribute(D1,t)}function a0(){Rt?.timer!=null&&(clearTimeout(Rt.timer),Rt.timer=null)}function vd(e){if(Rt==null)return;const t=e.gesture.phase!==Rt.gesture.phase;if((e.timer!=null||t)&&a0(),Rt.gesture=e.gesture,kO(Rt.element,e.paint),e.gesture.phase==="idle"){Rt=null;return}if(e.timer!=null){const r=e.timer;Rt.timer=setTimeout(()=>{Rt!=null&&(Rt.timer=null),vd(kd(Rt?.gesture??fC(),{kind:bO[r]}))},yO[r])}}function vO(e){if(!(e instanceof Element))return null;const t=e.closest(`[${hC}]`);return!(t instanceof HTMLElement)||t.matches(mO)?null:t}function wO(e){return Date.now()-r0>=pO?!1:cp instanceof Node&&cp.contains(e)}function pC(){Rt?.gesture.phase==="dead"&&(a0(),Rt=null)}function up(){Rt!=null&&(a0(),Rt.element.removeAttribute(D1),Rt=null)}function xC(e){if(e.pointerType==="mouse")return;if(Rt!=null){if(!(Rt.gesture.phase==="fading"||Rt.gesture.phase==="flash")){up();return}up()}const t=vO(e.target),r=t!=null&&wO(t);nx=Date.now(),ed=e.target instanceof Node?e.target:null,!(t==null||r)&&(Rt={element:t,gesture:fC(),pointerId:e.pointerId,timer:null},vd(kd(Rt.gesture,{kind:"down",x:e.clientX,y:e.clientY})))}function gC(e){Rt==null||Rt.pointerId!=null&&e.pointerId!==Rt.pointerId||vd(kd(Rt.gesture,{kind:"move",x:e.clientX,y:e.clientY}))}function mC(e){e.pointerType!=="mouse"&&(nx=Date.now(),e.target instanceof Node&&(ed=e.target),!(Rt==null||Rt.pointerId!=null&&e.pointerId!==Rt.pointerId)&&(vd(kd(Rt.gesture,{kind:"up"})),pC()))}function wi(){Rt!=null&&(vd(kd(Rt.gesture,{kind:"cancel"})),pC())}function yC(e){const t=e.target instanceof Node?e.target:document;Date.now()-nx<gO&&ed!=null&&t.contains(ed)&&(r0=Date.now(),cp=t),!(Rt==null||!(t===document||t.contains(Rt.element)))&&wi()}function bC(){document.visibilityState==="hidden"&&up()}const Or={capture:!0,passive:!0};function SO(){window.addEventListener("pointerdown",xC,Or),window.addEventListener("pointermove",gC,Or),window.addEventListener("pointerup",mC,Or),window.addEventListener("pointercancel",wi,Or),window.addEventListener("touchcancel",wi,Or),window.addEventListener("dragstart",wi,Or),document.addEventListener("scroll",yC,Or),document.addEventListener("visibilitychange",bC)}function EO(){window.removeEventListener("pointerdown",xC,Or),window.removeEventListener("pointermove",gC,Or),window.removeEventListener("pointerup",mC,Or),window.removeEventListener("pointercancel",wi,Or),window.removeEventListener("touchcancel",wi,Or),window.removeEventListener("dragstart",wi,Or),document.removeEventListener("scroll",yC,Or),document.removeEventListener("visibilitychange",bC)}function $O(){if(typeof window>"u")return()=>{};oh===0&&SO(),oh+=1;let e=!1;return()=>{e||(e=!0,oh-=1,!(oh>0)&&(EO(),up(),r0=0,cp=null,nx=0,ed=null))}}function Ra(){return g.useEffect(()=>$O(),[]),xO}const Ds={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}},TO={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},CO={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}},jO={none:{kGVxlE:"x1gnnqk1",$$css:!0},low:{kGVxlE:"x1i5ehqx",$$css:!0},med:{kGVxlE:"x14hfi27",$$css:!0},high:{kGVxlE:"x1kcpxr7",$$css:!0}},RO={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}},AO={sm:"sm",md:"sm",lg:"md"},O5={hiddenContent:{kMwMTN:"x19co3pv",$$css:!0},hiddenContentDelayed:{kKVMdj:"x1ffowhz",k44tkh:"xjlvqhv",kWV6AL:"x10e4vud",kKxzle:"x17yabm6 x14q22ui",$$css:!0}},ih={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 yt({label:e,variant:t="secondary",size:r,type:s="button",isDisabled:o=!1,isLoading:l=!1,isInterruptible:u=!1,clickAction:f,icon:d,isIconOnly:p=!1,width:m,elevation:y="none",children:k,endContent:v,tooltip:w,href:S,as:E,target:R,rel:C,xstyle:T,className:A,style:N,ref:L,...D}){const j=Ra(),O=Nt(),M=bc(r,"md"),H=iO(),[F,q]=g.useTransition(),B=g.useRef(!1),U=l||F,_=F||u,P=H?.isDisabled??!1,G=o||P||U&&!u,X=o||P,Z=Oi(E),Q=S!=null&&!G,K=w!=null&&G,ae=Ya({placement:"above",isEnabled:w!=null}),I=je=>{if(G||B.current&&!u){je.preventDefault();return}D.onClick?.(je),f&&!je.defaultPrevented&&(B.current=!0,q(async()=>{try{await f(je)}finally{B.current=!1}}))},ee=K?je=>{je.key==="Enter"||je.key===" "?je.preventDefault():D.onKeyDown?.(je)}:void 0,ue=t==="ghost"?{[oO]:""}:null,ve=pn.focusVisible(Ds.base,CO[M],p&&Ds.iconOnly,or.backgroundImage,G&&Ds.inactive,X&&Ds.disabled,K&&Ds.ariaDisabled,Q&&Ds.link,!H&&Ds.pressable,H&&(H.orientation==="horizontal"?ih.horizontal:ih.vertical),H&&(t==="primary"||t==="destructive")&&(H.orientation==="horizontal"?ih.onSolidHorizontal:ih.onSolidVertical),!H&&jO[y],m!=null&&TO.width(m),RO[t],T),xe=ye(fe("button",{variant:t,size:M,elevation:H?"none":y}),ve,A,N),$e=AO[M],te=x.jsxs(x.Fragment,{children:[U&&x.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"}}[!!_<<0],"aria-hidden":"true",children:x.jsx(_o,{size:"sm",shade:"inherit"})}),x.jsxs("span",{...de(Ds.contentWrapper,U&&(_?O5.hiddenContentDelayed:O5.hiddenContent)),"aria-hidden":U||void 0,children:[d&&x.jsx("span",{...de(Ds.iconWrapper,iC[$e]),children:x.jsx(rO,{value:$e,children:d})}),p?null:x.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:k??e}),!p&&v&&x.jsx("span",{className:"x3nfvp2 x6s0dn4 x1heor9g",children:v})]}),x.jsx(Gs,{role:"status","aria-live":"polite",children:U?O("@astryx.button.loading"):""})]}),Re=p&&e!==""||U&&!p||k!=null&&k!==e?{"aria-label":e}:null,Ce=w!=null?{"aria-describedby":[D["aria-describedby"],ae.describedBy].filter(Boolean).join(" ")||void 0}:null,Te=xn(L,w!=null?ae.ref:void 0);let Me;return Q?Me=x.jsx(Z,{ref:Te,href:S,target:R,rel:C,...xe,...j,...D,...Re,...Ce,...ue,"aria-busy":U||void 0,onClick:I,children:te}):Me=x.jsx("button",{ref:Te,type:s,disabled:K?void 0:G,...xe,...j,...D,...Re,...Ce,...ue,"aria-busy":U||void 0,"aria-disabled":K||void 0,onClick:I,...ee?{onKeyDown:ee}:null,children:te}),w?x.jsxs(x.Fragment,{children:[Me,ae.renderTooltip(w)]}):Me}yt.displayName="Button";function O1(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;const r={};for(const[s,o]of Object.entries(e))r[s]={...o};for(const[s,o]of Object.entries(t))if(!r[s])r[s]={...o};else for(const[l,u]of Object.entries(o))r[s][l]={...r[s][l],...u};return r}const MO={"color-scheme":"dark","--color-text-primary":"var(--color-on-dark)","--color-icon-primary":"var(--color-on-dark)","--color-accent":"var(--color-on-dark)"},NO={"color-scheme":"light","--color-text-primary":"var(--color-on-light)","--color-icon-primary":"var(--color-on-light)","--color-accent":"var(--color-on-light)"};function zO(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function I5(e,t,r){const o={...e==="dark"?MO:NO,...r?.tokens};if(t?.tokens)for(const[l,u]of Object.entries(t.tokens))u!==void 0&&(o[l]=zO(u));return{tokens:o,components:O1(r?.components,t?.components)}}const vy={[-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"},LO={1:3,2:2,3:1,4:0,5:-1,6:-2},DO={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},OO={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)"},IO={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 wy(e,t,r){return Math.round(e*Math.pow(t,r))}function _O(e){return`${Math.round(e/16*1e4)/1e4}rem`}function qO(e){return e<20?1.5:e<32?1.4:1.25}function _5(e){const t=qO(e),r=e*t,s=Math.max(Math.round(r/4)*4,Math.ceil((e+4)/4)*4);return Math.round(s/e*1e4)/1e4}function PO(e){const{base:t,ratio:r,weights:s}=e,o={},l={...OO,...s?.heading},u={...IO,...s?.text};for(let f=-5;f<=6;f++){const d=wy(t,r,f);o[vy[f]]=_O(d)}for(const[f,d]of Object.entries(LO)){const p=Number(f),m=wy(t,r,d),y=_5(m);o[`--text-heading-${p}-size`]=`var(${vy[d]})`,o[`--text-heading-${p}-weight`]=l[p],o[`--text-heading-${p}-leading`]=`${y}`}for(const[f,d]of Object.entries(DO)){const p=wy(t,r,d),m=_5(p);o[`--text-${f}-size`]=`var(${vy[d]})`,o[`--text-${f}-weight`]=u[f],o[`--text-${f}-leading`]=`${m}`}return o}const BO={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 HO(e){const t={},r={};for(const o of[1,2,3,4,5,6])r[`level:${o}`]={fontFamily:"var(--font-family-heading)",fontSize:`var(--text-heading-${o}-size)`,fontWeight:`var(--text-heading-${o}-weight)`,lineHeight:`var(--text-heading-${o}-leading)`};for(const o of["display-1","display-2","display-3"])r[`type:${o}`]={fontFamily:"var(--font-family-heading)",fontSize:`var(--text-${o}-size)`,lineHeight:`var(--text-${o}-leading)`};t.heading=r;const s={};for(const o of["body","large","label","code","supporting","display-1","display-2","display-3"])s[`type:${o}`]={fontFamily:BO[o],fontSize:`var(--text-${o}-size)`,lineHeight:`var(--text-${o}-leading)`};return t.text=s,t}function Os(e){return Math.round(e/5)*5}function FO(e){const{fast:t,medium:r,slow:s,ratio:o,easing:l}=e,u={"--duration-fast-min":`${Os(t*o)}ms`,"--duration-fast":`${Os(t)}ms`,"--duration-fast-max":`${Os(t/o)}ms`,"--duration-medium-min":`${Os(r*o)}ms`,"--duration-medium":`${Os(r)}ms`,"--duration-medium-max":`${Os(r/o)}ms`};return s!=null&&(u["--duration-slow-min"]=`${Os(s*o)}ms`,u["--duration-slow"]=`${Os(s)}ms`,u["--duration-slow-max"]=`${Os(s/o)}ms`),l&&(u["--ease-standard"]=l),u}function UO(e){const{base:t,multiplier:r}=e;return{"--radius-none":"0px","--radius-inner":`${Math.round(t*1*r)}px`,"--radius-element":`${Math.round(t*2*r)}px`,"--radius-container":`${Math.round(t*3*r)}px`,"--radius-page":`${Math.round(t*7*r)}px`,"--radius-chat":`${Math.round(t*7*r)}px`,"--radius-full":"9999px"}}function q5(e){const t=r=>{const s=r/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 kC(e,t){const r=e.a;return{r:e.r*r+t.r*(1-r),g:e.g*r+t.g*(1-r),b:e.b*r+t.b*(1-r),a:1}}function P5(e,t){if(typeof e!="string")return e;const r=Zu(e);if(r===null)throw new TypeError(`contrastRatio: could not parse ${t} "${e}"`);return r}function Hh(e,t){const r=P5(t,"background");if(r.a<1)throw new TypeError("contrastRatio: background must be opaque — composite it over its backdrop first");let s=P5(e,"foreground");s.a<1&&(s=kC(s,r));const o=q5(s),l=q5(r),u=Math.max(o,l),f=Math.min(o,l);return(u+.05)/(f+.05)}function Wl(e){const t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Fh(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 VO(e,t,r){return[.4124564*e+.3575761*t+.1804375*r,.2126729*e+.7151522*t+.072175*r,.0193339*e+.119192*t+.9503041*r]}function GO(e,t,r){return[3.2404542*e-1.5371385*t-.4985314*r,-.969266*e+1.8760108*t+.041556*r,.0556434*e-.2040259*t+1.0572252*r]}const Yl=[.95047,1,1.08883];function Sy(e){const t=.20689655172413793;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function Uh(e){const t=.20689655172413793;return e>t?e*e*e:3*t*t*(e-4/29)}function KO(e,t,r){const s=Sy(e/Yl[0]),o=Sy(t/Yl[1]),l=Sy(r/Yl[2]);return[116*o-16,500*(s-o),200*(o-l)]}function WO(e,t,r){const s=(e+16)/116,o=t/500+s,l=s-r/200;return[Uh(o)*Yl[0],Uh(s)*Yl[1],Uh(l)*Yl[2]]}function YO(e){return Uh((e+16)/116)}function XO(e){const t=yT(e);return t===null?[0,0,0]:[t.r,t.g,t.b]}function B5(e){const[t,r,s]=XO(e),o=Wl(t),l=Wl(r),u=Wl(s),[f,d,p]=VO(o,l,u),[m,y,k]=KO(f,d,p);let w=Math.atan2(k,y)*180/Math.PI;w<0&&(w+=360);const S=Math.sqrt(y*y+k*k);return{hue:w,chroma:S,tone:Math.max(0,Math.min(100,m))}}function I1(e){const{hue:t,chroma:r,tone:s}=e;if(s<=0)return"#000000";if(s>=100)return"#FFFFFF";if(r<.5){const f=ZO(s);return Wb(f,f,f)}let o=0,l=r,u="#000000";for(let f=0;f<16;f++){const d=(o+l)/2,p=QO(t,d,s);p!==null?(u=p,o=d):l=d}return u}function ZO(e){const t=YO(e);return Fh(t)}function QO(e,t,r){const s=e*Math.PI/180,o=Math.cos(s)*t,l=Math.sin(s)*t,u=r,[f,d,p]=WO(u,o,l),[m,y,k]=GO(f,d,p),v=Fh(m),w=Fh(y),S=Fh(k),E=Wl(v),R=Wl(w),C=Wl(S),T=.02;return Math.abs(E-m)>T||Math.abs(R-y)>T||Math.abs(C-k)>T||v<0||v>255||w<0||w>255||S<0||S>255?null:Wb(v,w,S)}const JO=[0,5,10,20,30,40,50,60,70,80,90,95,99,100];function jl(e,t){const r={};for(const s of JO)r[s]=I1({hue:e,chroma:t,tone:s});return r}function Nr(e,t){const r=Math.round(t*255).toString(16).padStart(2,"0").toUpperCase();return e+r}const eI={warm:7,cool:5,neutral:3},tI={warm:10,cool:8,neutral:6},H5="#0064E0";function Xt(e,t){return`light-dark(${e}, ${t})`}function F5(e){return`color-mix(in srgb, var(--color-accent) ${e*100}%, transparent)`}const U5=3;function V5(e,t,r,s,o,l){let u=r,f=I1({hue:e,chroma:t,tone:u});for(;Hh(f,o)<l&&u+s>=0&&u+s<=100;)u+=s,f=I1({hue:e,chroma:t,tone:u});return f}function nI(e){const{accent:t,neutralStyle:r="cool",contrast:s="standard"}=e,[o,l]=Array.isArray(t)?t:[t,t],u=B5(o??H5),f=l===o,d=f?u:B5(l??H5),p=eI[r]??5,m=tI[r]??8,y=jl(u.hue,Math.max(u.chroma,48)),k=jl(u.hue,p),v=jl(u.hue,m),w=f?y:jl(d.hue,Math.max(d.chroma,48)),S=f?k:jl(d.hue,p),E=f?v:jl(d.hue,m),R=s==="high",C=R?0:10,T=R?99:90,A=R?20:30,N=R?80:70,L=R?.2:.1,D=R?50:70,j=R?50:30,O=Xt(V5(u.hue,m,D,-1,k[99],U5),V5(d.hue,m,j,1,S[10],U5));return{...t!=null?{"--color-accent":Xt(y[40],w[80]),"--color-accent-muted":Xt(F5(.2),F5(.25)),"--color-on-accent":Xt(y[100],w[20])}:null,"--color-neutral":Xt(Nr(k[10],.1),Nr(S[90],.2)),"--color-background-surface":Xt(k[99],S[10]),"--color-background-body":Xt(k[95],S[5]),"--color-overlay":Xt(Nr(k[10],.4),Nr(S[10],.6)),"--color-overlay-hover":Xt(Nr(k[10],.05),Nr(S[100],.05)),"--color-overlay-pressed":Xt(Nr(k[10],.1),Nr(S[100],.1)),"--color-background-muted":Xt(Nr(k[10],.05),Nr(S[10],.5)),"--color-text-primary":Xt(k[C],S[T]),"--color-text-secondary":Xt(v[A],E[N]),"--color-text-disabled":Xt(v[60],E[40]),"--color-text-accent":"var(--color-accent)","--color-icon-accent":"var(--color-accent)","--color-icon-primary":Xt(k[C],S[T]),"--color-icon-secondary":Xt(v[A],E[N]),"--color-icon-disabled":Xt(v[60],E[40]),"--color-background-card":Xt(k[99],S[10]),"--color-background-popover":Xt(k[99],S[20]),"--color-background-inverted":Xt(k[10],S[99]),"--color-border":Xt(Nr(k[10],L),Nr(S[95],L)),"--color-border-emphasized":O,"--color-skeleton":Xt(v[70],E[30]),"--color-track":Xt(v[70],E[30]),"--color-shadow":Xt(Nr(k[0],.1),Nr(S[0],.3)),"--color-tint-hover":Xt("black","white")}}function rI(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 lh(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 Ey(e,t){if(!e)return;const r=e.includes(" ")?`"${e}"`:e;return t?`${r}, ${t}`:r}function aI(e){if(!e.scale)return;const t={},r=e.heading;if(r?.weights)for(const[l,u]of Object.entries(r.weights))u&&(t[Number(l)]=lh(u));const s=r?.weight?lh(r.weight):void 0;if(s)for(let l=1;l<=6;l++)l in t||(t[l]=s);const o={};return e.body?.weight&&(o.body=lh(e.body.weight)),e.code?.weight&&(o.code=lh(e.code.weight)),{base:e.scale.base,ratio:e.scale.ratio,weights:{...Object.keys(t).length>0?{heading:t}:{},...Object.keys(o).length>0?{text:o}:{}}}}function sI(e){const t={},r=Ey(e.body?.family,e.body?.fallbacks),s=Ey(e.heading?.family,e.heading?.fallbacks)??r,o=Ey(e.code?.family,e.code?.fallbacks);return r&&(t["--font-family-body"]=r),s&&(t["--font-family-heading"]=s),o&&(t["--font-family-code"]=o),t}function vC(e,t,{strictTokens:r=!1}={}){const s={...t?.tokens},o=e.typography,l=o?aI(o):void 0;if(e.color&&Object.assign(s,nI(e.color)),l&&Object.assign(s,PO(l)),e.radius&&Object.assign(s,UO(e.radius)),e.motion&&Object.assign(s,FO(e.motion)),o&&Object.assign(s,sI(o)),e.syntax){const f="--color-syntax-";for(const[d,p]of Object.entries(e.syntax.tokens))s[f+d]=p}if(e.tokens)for(const[f,d]of Object.entries(e.tokens))d!==void 0&&(s[f]=rI(d,{strict:r}));let u=e.components;return l&&(u=O1(HO(),e.components)),t?.components&&(u=O1(t.components,u)),{tokens:s,components:u}}const wC=String.raw`(?:[-_a-zA-Z0-9]|\P{ASCII}|\\(?:[0-9a-fA-F]{1,6}[ \t\r\n\f]?|[^\r\n\f]))`,oI=new RegExp(`^--${wC}*$`,"u"),$y=new RegExp(`var\\(\\s*(--${wC}*)(?=\\s*(?:,|\\)))`,"giu");function Xl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function SC(e){return!e.includes("\0")&&oI.test(e)}function EC(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 _1(e,t){if(typeof e=="string"){$y.lastIndex=0;for(let r=$y.exec(e);r;r=$y.exec(e))t.add(r[1]);return}if(Array.isArray(e)){for(const r of e)_1(r,t);return}if(e&&typeof e=="object")for(const r of Object.values(e))_1(r,t)}function $C(e,t,r){const s=new Map;for(const[y,k]of Object.entries(e)){const v=new Set;_1(k,v),s.set(y,[...v].filter(w=>Xl(e,w)))}const o=(y,k)=>{const v=[y],w=new Set(v),S=E=>{for(const R of s.get(E)??[])if(k.has(R)){if(R===y)return v.push(y),!0;if(!w.has(R)){if(v.push(R),w.add(R),S(R))return!0;w.delete(R),v.pop()}}return!1};return S(y),v};let l=0;const u=new Map,f=new Map,d=[],p=new Set,m=y=>{const k=l++;u.set(y,k),f.set(y,k),d.push(y),p.add(y);for(const C of s.get(y)??[])u.has(C)?p.has(C)&&f.set(y,Math.min(f.get(y)??k,u.get(C)??0)):(m(C),f.set(y,Math.min(f.get(y)??k,f.get(C)??0)));if(f.get(y)!==k)return;const v=[];let w;do w=d.pop()??y,p.delete(w),v.push(w);while(w!==y);if(!(v.length>1||(s.get(v[0])??[]).includes(v[0]))||r&&!v.some(C=>r.has(C)))return;const E=v.find(C=>r?.has(C))??v[0],R=o(E,new Set(v)).join(" -> ");throw new Error(`${t?`${t}: `:""}Theme token cycle detected: ${R}.`)};for(const y of Object.keys(e))u.has(y)||m(y)}function iI(e,t){const r=t.__localTokenLineage;if(!Array.isArray(r)||r.length===0||r[r.length-1]!==t.name||r.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,o]of Object.entries(t.localTokens)){const l=t.__localTokenOwners[s];if(typeof o!="string"||!l||!r.includes(l)||!SC(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(!Xl(t.localTokens,s))throw new Error(`defineTheme("${e}"): inherited local-token owner metadata names undeclared token "${s}".`)}function lI(e,t,r,s){const o=Xl(e,"localTokens"),l=t?.__localTokenLineage!==void 0;if(!o&&!l)return;l&&t&&iI(e.name,t);const u={...t?.localTokens},f={...t?.__localTokenOwners},d=e.localTokens;if(o&&(d==null||typeof d!="object"||Array.isArray(d)))throw new Error(`defineTheme("${e.name}"): localTokens must be a token map.`);for(const[p,m]of Object.entries(d??{})){const y=f[p];if(!SC(p))throw new Error(`defineTheme("${e.name}"): local token "${p}" must be a valid CSS custom-property name.`);y||(f[p]=e.name),u[p]=EC(m,`defineTheme("${e.name}").localTokens["${p}"]`)}for(const p of Object.keys(u)){if(!f[p])throw new Error(`defineTheme("${e.name}"): inherited local token "${p}" has no owner metadata.`);if(Xl(r,p)||Xl(s,p))throw new Error(`defineTheme("${e.name}"): token "${p}" cannot be declared in both tokens and localTokens.`)}return $C(u,`defineTheme("${e.name}").localTokens`),{localTokens:u,owners:f,lineage:[...t?.__localTokenLineage??[],e.name]}}function cI(e,t,r,s){const o=`defineTheme("${e}").adaptations.rules[${t}].value.localTokens`;if(r===void 0)return;if(r===null||typeof r!="object"||Array.isArray(r))throw new Error(`${o} must be a token map.`);const l={};for(const[u,f]of Object.entries(r)){if(!s||!Xl(s,u))throw new Error(`${o}["${u}"] cannot enroll a theme-local token. Declare it in the root theme or an exact enrolled base first.`);l[u]=EC(f,`${o}["${u}"]`)}return Object.keys(l).length>0?l:void 0}const kc=["sm","md","lg","xl","2xl"],TC=Object.freeze({sm:640,md:768,lg:1024,xl:1280,"2xl":1536});function rx(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ci(e,t){if(!rx(e))throw new Error(`${t} must be an object.`)}function ji(e,t,r){for(const s of Object.keys(e))if(!t.has(s))throw new Error(`${r}.${s} is not supported.`)}function dp(e){if(Array.isArray(e)){const t=[];for(const r of e)t.push(dp(r));return t}return rx(e)?Object.fromEntries(Object.entries(e).map(([t,r])=>[t,dp(r)])):e}const CC=new Set(kc),uI=new Set(["widthBreakpoints","rules"]),dI=new Set(["when","value"]),fI=["width","pointer","contrast","motion"],hI=new Set(fI),pI=new Set(["from","below"]),G5=new Set(["typography","color","radius","motion","tokens","localTokens","components"]);function jC(e,t){Ci(e,t),ji(e,CC,t);const r={};for(const s of kc){const o=e[s];if(o!==void 0){if(typeof o!="number"||!Number.isFinite(o)||o<=0)throw new Error(`${t}.${s} must be a finite positive number of CSS pixels.`);r[s]=o}}return r}function xI(e,t){const r=jC(e,t);for(const s of kc)if(r[s]===void 0)throw new Error(`${t}.${s} is missing from the effective breakpoint map.`);return r}function gI(e,t){let r;for(const s of kc){if(r!==void 0&&e[s]<=e[r])throw new Error(`${t} must be strictly increasing: ${s} (${e[s]}) is not above ${r} (${e[r]}).`);r=s}}function mI(e,t){Ci(e,t),ji(e,hI,t);const r=Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0));if(Object.keys(r).length===0)throw new Error(`${t} must contain at least one condition.`);const s=dp(r);if(s.width!==void 0){if(Ci(s.width,`${t}.width`),ji(s.width,pI,`${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 o of["from","below"]){const l=s.width[o];if(l!==void 0&&(typeof l!="string"||!CC.has(l)))throw new Error(`${t}.width.${o} must be one of ${kc.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 yI(e,t){Ci(e,t),ji(e,G5,t);for(const r of G5){const s=e[r];if(s!==void 0&&!rx(s))throw new Error(`${t}.${r} must be an object.`)}return dp(e)}function bI(e,t){if(Ci(e,t),ji(e,dI,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:mI(e.when,`${t}.when`),value:yI(e.value,`${t}.value`)}}function K5(e,t){if(!Array.isArray(e))throw new Error(`${t} must be an array of {when, value} objects.`);for(let r=0;r<e.length;r++)if(!Object.prototype.hasOwnProperty.call(e,r))throw new Error(`${t}[${r}] must be present.`);return e.map((r,s)=>bI(r,`${t}[${s}]`))}function RC(e,t,r){const s=`defineTheme("${e}").adaptations`;let o={...TC},l=[];t!==void 0&&(Ci(t,`defineTheme("${e}").extends.__adaptations`),ji(t,new Set(["widthBreakpoints","rules"]),`defineTheme("${e}").extends.__adaptations`),o=xI(t.widthBreakpoints,`defineTheme("${e}").extends.__adaptations.widthBreakpoints`),l=K5(t.rules,`defineTheme("${e}").extends.__adaptations.rules`));let u={},f=[];r!==void 0&&(Ci(r,s),ji(r,uI,s),r.widthBreakpoints!==void 0&&(u=jC(r.widthBreakpoints,`${s}.widthBreakpoints`)),r.rules!==void 0&&(f=K5(r.rules,`${s}.rules`)));const d={...o,...u};return gI(d,`${s}.widthBreakpoints`),{widthBreakpoints:d,rules:[...l,...f]}}function Vh(e,t){return e?t?{...e,...t,weights:e.weights||t.weights?{...e.weights,...t.weights}:void 0}:e:t}function Mo(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Error(`${t} must be a finite number.`)}function kI(e,t,r){const s=t.scale!==void 0||[t.body,t.heading,t.code].some(l=>l?.weight!==void 0||l?.weights!==void 0);let o=s?e?.scale:void 0;if(t.scale!==void 0){const l=t.scale.base??e?.scale?.base,u=t.scale.ratio??e?.scale?.ratio;if(l===void 0||u===void 0)throw new Error(`${r}.scale must supply both \`base\` and \`ratio\` unless the missing field exists on the effective root typography axis.`);Mo(l,`${r}.scale.base`),Mo(u,`${r}.scale.ratio`),o={base:l,ratio:u}}else if(s&&o===void 0)throw new Error(`${r} sets typography weights without an effective root scale. Supply \`scale.base\` and \`scale.ratio\` in the same rule.`);return{...o?{scale:o}:{},body:Vh(e?.body,t.body),heading:Vh(e?.heading,t.heading),code:Vh(e?.code,t.code)}}function vI(e,t,r){const s=t.base??e?.base,o=t.multiplier??e?.multiplier;if(s===void 0||o===void 0)throw new Error(`${r} must supply both \`base\` and \`multiplier\` unless the missing field exists on the effective root radius axis.`);return Mo(s,`${r}.base`),Mo(o,`${r}.multiplier`),{base:s,multiplier:o}}function wI(e,t,r){const s=t.fast??e?.fast,o=t.medium??e?.medium,l=t.ratio??e?.ratio;if(s===void 0||o===void 0||l===void 0)throw new Error(`${r} must supply \`fast\`, \`medium\`, and \`ratio\` unless each missing field exists on the effective root motion axis.`);Mo(s,`${r}.fast`),Mo(o,`${r}.medium`),Mo(l,`${r}.ratio`);const u=t.slow??e?.slow;u!==void 0&&Mo(u,`${r}.slow`);const f=t.easing??e?.easing;return{fast:s,medium:o,ratio:l,...u!==void 0?{slow:u}:{},...f!==void 0?{easing:f}:{}}}function SI(e,t,r,s){const o=`defineTheme("${e}").adaptations.rules[${t}].value`;return{typography:r.typography?kI(s.typography,r.typography,`${o}.typography`):void 0,color:r.color?{...s.color,...r.color}:void 0,radius:r.radius?vI(s.radius,r.radius,`${o}.radius`):void 0,motion:r.motion?wI(s.motion,r.motion,`${o}.motion`):void 0,tokens:r.tokens,components:r.components}}function q1(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(rx(e)){for(const[r,s]of Object.entries(e))q1(s,`${t}.${r}`);return}throw new Error(`${t} must resolve to a concrete CSS string.`)}function EI(e,t,r,s){const o=`defineTheme("${e}").adaptations.rules[${t}].when`,l=[];if(r.width){const u=r.width.from,f=r.width.below;if(u!==void 0&&f!==void 0&&s[u]>=s[f])throw new Error(`${o}.width must resolve to \`from < below\`; ${u} is ${s[u]}px and ${f} is ${s[f]}px.`);u!==void 0&&l.push(`(width >= ${s[u]}px)`),f!==void 0&&l.push(`(width < ${s[f]}px)`)}if(r.pointer!==void 0&&l.push(`(pointer: ${r.pointer})`),r.contrast!==void 0&&l.push(`(prefers-contrast: ${r.contrast})`),r.motion!==void 0&&l.push(`(prefers-reduced-motion: ${r.motion})`),l.length===0)throw new Error(`${o} must contain at least one concrete condition.`);return l.join(" and ")}const $I={pointer:["coarse","fine","none"],contrast:["more","less","no-preference","custom"],motion:["reduce","no-preference"]},Ty=$I;function TI(e,t,r){const s=e.width?.from;if(s!==void 0&&r.width<t[s])return!1;const o=e.width?.below;return!(o!==void 0&&r.width>=t[o]||e.pointer!==void 0&&e.pointer!==r.pointer||e.contrast!==void 0&&e.contrast!==r.contrast||e.motion!==void 0&&e.motion!==r.motion)}function CI(e,t,r,s,o){const l=o.flatMap((d,p)=>Object.keys(d.tokens).length>0||d.localTokens&&Object.keys(d.localTokens).length>0?[p]:[]);if(l.length===0)return;const u=[0,...kc.map(d=>t[d])],f=new Set;for(const d of u)for(const p of Ty.pointer)for(const m of Ty.contrast)for(const y of Ty.motion){const k={width:d,pointer:p,contrast:m,motion:y},v=l.filter(T=>TI(o[T].when,t,k));if(v.length===0)continue;const w=v.join(",");if(f.has(w))continue;f.add(w);const S={...r,...s},E=new Set;for(const T of v){const A=o[T];Object.assign(S,A.tokens,A.localTokens);for(const N of Object.keys(A.tokens))E.add(N);for(const N of Object.keys(A.localTokens??{}))E.add(N)}const R=v.join(", "),C=v.map(T=>o[T].query).join("; ");$C(S,`defineTheme("${e}").adaptations ${v.length===1?"rule":"overlapping rules"} [${R}] (${C})`,E)}}function jI(e,t){const r=e?.typography,s=t.typography,o=(w,S,E=!1)=>{const R=Vh(w,S);if(R)return S?.family?{...R,family:S.family,fallbacks:S.fallbacks}:E?{...R,family:void 0,fallbacks:void 0}:{...R,family:w?.family,fallbacks:w?.fallbacks}};let l=o(r?.body,s?.body),u=o(r?.heading,s?.heading,!!(s?.body?.family&&!s?.heading?.family)),f=o(r?.code,s?.code);const d=s?.scale?s:r?.scale?r:void 0,p=(w,S)=>w?{...w,weight:S?.weight,weights:S?.weights}:void 0;l=p(l,d?.body),u=p(u,d?.heading),f=p(f,d?.code);const m=r||s?{...r,...s,scale:s?.scale??r?.scale,body:l,heading:u,code:f}:void 0,y=t.color??e?.color,k=t.radius?{...e?.radius,...t.radius}:e?.radius,v=t.motion?{...e?.motion,...t.motion}:e?.motion;return{...m?{typography:m}:{},...y?{color:y}:{},...k?{radius:k}:{},...v?{motion:v}:{}}}function RI(e,t,r){if(!e||!t)return e;const s={};for(const[o,l]of Object.entries(e))for(const[u,f]of Object.entries(l)){const d=Object.fromEntries(Object.entries(f).filter(([p])=>t[o]?.[u]?.[p]===void 0||Object.hasOwn(r?.[o]?.[u]??{},p)));Object.keys(d).length>0&&((s[o]??={})[u]=d)}return Object.keys(s).length>0?s:void 0}function AC(e,t,r,s,o,l){if(t.rules.length===0)return;const u=t.rules.map((f,d)=>{const p=SI(e,d,f.value,r),m=vC(p,void 0,{strictTokens:!0});for(const[k,v]of Object.entries(m.tokens))q1(v,`defineTheme("${e}").adaptations.rules[${d}].value.tokens["${k}"]`);m.components&&q1(m.components,`defineTheme("${e}").adaptations.rules[${d}].value.components`);for(const k of Object.keys(f.value.tokens??{}))if(o&&Object.prototype.hasOwnProperty.call(o,k))throw new Error(`defineTheme("${e}").adaptations.rules[${d}].value.tokens["${k}"] matches an enrolled theme-local declaration; write it through value.localTokens instead.`);const y=cI(e,d,f.value.localTokens,o);return{when:f.when,query:EI(e,d,f.when,t.widthBreakpoints),tokens:m.tokens,localTokens:y,components:p.typography?.scale?RI(m.components,l,f.value.components):m.components}});return CI(e,t.widthBreakpoints,s,o,u),u}const s0={"--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)"},AI={"--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)"},MI={...s0,...AI},MC=new Map;function NC(e){MC.set(e.name,e)}function ax(e){return e==null||e===""?null:MC.get(e)??null}const NI={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 Cy(e,t){const r=NI[e];return r?r.filter(s=>s.property===t):[]}function td(e){return e===`
|
|
16
|
-
`||e==="\r"||e==="\f"}function fp(e){return e===" "||e===" "||td(e)}function P1(e){return/^[0-9a-fA-F]$/.test(e)}function B1(e){return/^[A-Za-z_]$/.test(e)||e.charCodeAt(0)>=128}function zI(e){return B1(e)||/^[0-9-]$/.test(e)}function zC(e){return e.replace(/\r\n?|\f/g,`
|
|
17
|
-
`).replace(/\0/g,"�")}const LI=/[\x01-\x08\x0b\x0e-\x1f\x7f]/;function hp(e,t){return e[t]==="\\"&&t+1<e.length&&!td(e[t+1])}function LC(e,t){const r=e[t];if(r==="-"){const s=e[t+1];return s!==void 0&&(s==="-"||B1(s)||hp(e,t+1))}return r==="\\"?hp(e,t):r!==void 0&&B1(r)}function sx(e,t){if(P1(e[t])){let s=t;for(;s<e.length&&s-t<6&&P1(e[s]);)s++;return s<e.length&&fp(e[s])&&s++,s}const r=e.codePointAt(t)??0;return t+(r>65535?2:1)}function DC(e,t){let r="",s=t;for(;s<e.length;){const o=e[s];if(zI(o))r+=o,s++;else if(hp(e,s)){const l=sx(e,s+1);if(P1(e[s+1])){const u=e.slice(s+1,l).trim(),f=parseInt(u,16);r+=f===0||f>1114111||f>=55296&&f<=57343?"�":String.fromCodePoint(f)}else r+=e.slice(s+1,l);s=l}else break}return{end:s,name:r}}function DI(e,t){const r=e[t];let s=t+1;for(;s<e.length;){const o=e[s];if(o===r)return{end:s+1};if(td(o))return{reason:"a newline inside a quoted string makes a bad string"};if(o==="\\"){if(s+1>=e.length)break;s=td(e[s+1])?s+2:sx(e,s+1);continue}s++}return{reason:`an unclosed ${r} string would swallow the rest of the rule`}}function OI(e,t){let r=t;for(;r<e.length;){const s=e[r];if(s===")")return{end:r+1};if(fp(s)){for(;r<e.length&&fp(e[r]);)r++;if(r>=e.length)break;return e[r]===")"?{end:r+1}:{reason:"whitespace inside an unquoted url() makes a bad url"}}if(LI.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(!hp(e,r))return{reason:"a stray backslash inside url() makes a bad url"};r=sx(e,r+1);continue}r++}return{reason:"an unclosed url( would swallow the rest of the rule"}}const II={"(":")","[":"]","{":"}"};function OC(e){const t=zC(e),r=[];let s=0;for(;s<t.length;){const o=t[s];if(o==="/"&&t[s+1]==="*"){const l=t.indexOf("*/",s+2);if(l===-1)return"an unclosed /* comment would swallow the rest of the rule";s=l+2;continue}if(o==='"'||o==="'"){const l=DI(t,s);if("reason"in l)return l.reason;s=l.end;continue}if(LC(t,s)){const l=DC(t,s);if(s=l.end,t[s]==="("&&l.name.toLowerCase()==="url"){let u=s+1;for(;u<t.length&&fp(t[u]);)u++;if(t[u]==='"'||t[u]==="'"){r.push(")"),s=s+1;continue}const f=OI(t,u);if("reason"in f)return f.reason;s=f.end}continue}if(o==="\\"){if(s+1>=t.length)return"a trailing backslash would escape the declaration terminator";s=td(t[s+1])?s+1:sx(t,s+1);continue}if(o==="("||o==="["||o==="{"){if(o==="{"&&r.length===0)return'an unquoted "{" would open a nested block';r.push(II[o]),s++;continue}if(o===")"||o==="]"||o==="}"){if(r.length===0)return o==="}"?'an unquoted "}" would close the rule':`an unbalanced "${o}" has nothing to close`;const l=r.pop();if(l!==o)return`"${o}" does not close the open "${l===")"?"(":l==="]"?"[":"{"}"`;s++;continue}if(o===";"&&r.length===0)return'an unquoted ";" would end the declaration';s++}if(r.length>0){const o=r[r.length-1];return`an unclosed "${o===")"?"(":o==="]"?"[":"{"}" would swallow the rest of the rule`}return null}function _I(e){const t=zC(e);if(t.length===0||!LC(t,0))return"a property name must be a CSS identifier";const{end:r}=DC(t,0);return r!==t.length?`a property name must be one CSS identifier; "${t[r]}" cannot appear in one`:null}function o0(e){return`[data-${Wp}-theme="${e}"]`}const ox=`[data-${Wp}-theme]`;function IC(e){return`[data-${Wp}-media="${e}"]`}function qI(e,t){return`.${xT}-${e}${t}`}function Zl(e,t,r){const s=qI(e,t);return r?`:is(${IC(r)}) :is(${s})`:s}const W5=':where(:not(:disabled,[aria-disabled="true"]))';function PI(e,t){const r=[];let s=0,o=0;for(let u=0;u<e.length;u++){const f=e[u];f==="("?s++:f===")"?s=Math.max(0,s-1):f===","&&s===0&&(r.push(e.slice(o,u).trim()),o=u+1)}r.push(e.slice(o).trim());const l=BI(t);return r.map(u=>`${u}${l}`).join(", ")}function BI(e){if(!/^:hover(?![-\w])/.test(e)||e.includes("[aria-disabled"))return e;const t=e.indexOf("::");return t===-1?e+W5:e.slice(0,t)+W5+e.slice(t)}function jy(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const H1=new Set(["padding","paddingBlock","paddingInline","paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]),i0={paddingTop:"paddingBlockStart",paddingBottom:"paddingBlockEnd"},Y5=new Set([...H1,...Object.keys(i0)]);function HI(e){const t={};for(const[r,s]of e)switch(i0[r]??r){case"padding":{const l=s.trim().split(/\s+/);l.length===1?(t.blockStart=l[0],t.blockEnd=l[0],t.inline=l[0]):l.length===2?(t.blockStart=l[0],t.blockEnd=l[0],t.inline=l[1]):l.length>=3&&(t.blockStart=l[0],t.inline=l[1],t.blockEnd=l[2]);break}case"paddingBlock":{const l=s.trim().split(/\s+/);t.blockStart=l[0],t.blockEnd=l[1]??l[0];break}case"paddingInline":{const l=s.trim().split(/\s+/);l.length===1?t.inline=l[0]:(t.inlineStart=l[0],t.inlineEnd=l[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 FI(e,t,r=!1){const s=gz(`${e}-padding`),o=[],l=t.inlineStart??t.inline,u=t.inlineEnd??t.inline;if(l!=null&&u!=null&&l===u&&t.blockStart!=null&&t.blockEnd!=null&&l===t.blockStart&&t.blockStart===t.blockEnd?o.push([s,l??""]):(t.inlineStart!=null||t.inlineEnd!=null?(l!=null&&o.push([`${s}-inline-start`,l]),u!=null&&o.push([`${s}-inline-end`,u])):t.inline!=null&&o.push([`${s}-inline`,t.inline]),t.blockStart!=null&&o.push([`${s}-block-start`,t.blockStart]),t.blockEnd!=null&&o.push([`${s}-block-end`,t.blockEnd])),r){const p=new Set(o.map(([y])=>y)),m=p.has(s)?[`${s}-inline`,`${s}-inline-start`,`${s}-inline-end`,`${s}-block-start`,`${s}-block-end`]:p.has(`${s}-inline`)?[`${s}-inline-start`,`${s}-inline-end`]:[];for(const y of m)p.has(y)||o.push([y,"initial"])}return o}const _C=e=>{console.warn(`[astryx theme] ${e}`)};function l0(e){return _C}function UI(e){const t=JSON.stringify(e);return t.length>80?`${t.slice(0,77)}..."`:t}function VI(e,t,r,s,o){e(`dropped "${t}" in ${s}: ${o} (value: ${UI(r)})`)}function qC(e,t,r,s){const o=_I(e)??OC(t);return o===null?!0:(VI(s,e,t,r,o),!1)}function nd(e,t,r,s=o=>o){const o=[];for(const[l,u]of e){const f=`${u}`,d=s(l);qC(d,f,t,r)&&o.push(` ${d}: ${f};`)}return o.join(`
|
|
18
|
-
`)}function PC(e,t,r){const s=[nd(Object.entries(e.tokens),`${t}tokens`,r),nd(Object.entries(e.localTokens??{}),`${t}localTokens`,r)].filter(l=>l.length>0).join(`
|
|
19
|
-
`);return Object.keys(e.tokens).length>0||Object.keys(e.localTokens??{}).length>0?` :scope {
|
|
20
|
-
${s}
|
|
21
|
-
}`:null}function GI(e,t,r){return`${e}components.${t}[${JSON.stringify(r)}]`}function KI(e,t){const r=[],s=l0(),o=u=>`var(${u})`,l=PC(e,"",s);return l!==null&&r.push(l),e.tokens["--font-family-body"]&&r.push(` :scope {
|
|
22
|
-
font-family: var(--font-family-body);
|
|
23
|
-
}`),e.components&&c0(e.components,r,{sink:s}),YI(o,r),u0(e.components||{},r),d0(e.components||{},r),pp(e.components||{},r),r}const WI={normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-bold)"};function pp(e,t,{surface:r,inheritedComponents:s,forceAll:o=!1,authoredOnly:l=!1}={}){const u=e.heading,f=u&&typeof u=="object"&&!Array.isArray(u)?u:void 0;if(!f&&!o)return;const d=s?.heading,p=d&&typeof d=="object"?d:void 0;for(const[m,y]of Object.entries(WI)){const k=`weight:${m}`,v=f?X5(f,k):void 0;if(l&&v===void 0)continue;const w=p?X5(p,k):void 0,S=v??w??y,E=Gl(k),R=Zl("heading",E,r);t.push(` ${R} { font-weight: ${S}; }`)}}function X5(e,t){const r=e[t];if(r==null||typeof r!="object"||Array.isArray(r))return;const s=r.fontWeight;return typeof s=="string"&&OC(s)===null?s:void 0}function c0(e,t,{resetInheritedPaddingSpecificity:r=!1,surface:s,sink:o=_C,location:l=""}={}){for(const[u,f]of Object.entries(e))for(const[d,p]of Object.entries(f)){const m=Object.entries(p);if(m.length===0)continue;const y=Gl(d),k=Zl(u,y,s),v=GI(l,u,d),w=[],S=[];for(const[A,N]of m)A.startsWith(":")&&typeof N=="object"?S.push([A,N]):qC(jy(A),`${N}`,v,o)&&w.push([A,N]);let E=w;const R=[];let C=!1;const T=new Set;for(const[A,N]of w){const L=Cy(u,A),D=H1.has(A)&&A!=="padding"?Cy(u,"padding"):[];for(const j of[...L,...D])if(j.expand==="container"&&H1.has(A)&&(C=!0),j.replaces&&T.add(A),j.vars)for(const O of j.vars)R.push([O,N]);A in i0&&Cy(u,"padding").some(j=>j.expand==="container")&&(C=!0)}if(C){const A=w.filter(([j])=>Y5.has(j)),N=w.filter(([j])=>!Y5.has(j)),L=HI(A),D=FI(u,L,r);E=[...N,...D]}if(T.size>0&&(E=E.filter(([A])=>!T.has(A))),R.length>0&&(E=[...E,...R]),E.length>0){const A=nd(E,v,o,jy);t.push(` ${k} {
|
|
24
|
-
${A}
|
|
25
|
-
}`)}for(const[A,N]of S){const L=Object.entries(N);if(L.length>0){const D=nd(L,`${v}[${JSON.stringify(A)}]`,o,jy);t.push(` ${PI(k,A)} {
|
|
26
|
-
${D}
|
|
27
|
-
}`)}}}}function YI(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 r=1;r<=6;r++)t.push(` :where(h${r}) {
|
|
31
|
-
font-size: ${e(`--text-heading-${r}-size`)};
|
|
32
|
-
font-weight: ${e(`--text-heading-${r}-weight`)};
|
|
33
|
-
line-height: ${e(`--text-heading-${r}-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 u0(e,t,r){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)"},o="text"in e,l="heading"in e,u="link"in e;if(o||l||u)for(const[f,d]of Object.entries(s))o&&t.push(` ${Zl("text",Gl(`color:${f}`),r)} { color: ${d}; }`),l&&t.push(` ${Zl("heading",Gl(`color:${f}`),r)} { color: ${d}; }`),u&&t.push(` ${Zl("link",Gl(`color:${f}`),r)} { color: ${d}; }`)}const XI={"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 d0(e,t,r){if("text"in e)for(const[s,o]of Object.entries(XI)){const l=Gl(`size:${s}`);t.push(` ${Zl("text",l,r)} { font-size: ${o}; }`)}}function ZI(e,t){const r=KI(e),s=[],o=[];for(const l of r)l.trimStart().startsWith(":where(")?s.push(l):o.push(l);return{component:o,prose:s}}function QI(e,t){const r=[],s=o0(e.name),o=l0();for(const u of["dark","light"]){const f=u==="dark"?e.__onDark:e.__onLight;if(!f)continue;const d=u==="dark"?"onDark.":"onLight.",p=Object.entries(f.tokens);if(p.length>0){const m=nd(p,`${d}tokens`,o);r.push(` ${IC(u)} {
|
|
53
|
-
${m}
|
|
54
|
-
}`)}f.components&&(c0(f.components,r,{resetInheritedPaddingSpecificity:!0,surface:u,sink:o,location:d}),u0(f.components,r,u),d0(f.components,r,u),pp(f.components,r,{surface:u,inheritedComponents:e.components}))}if(r.length===0)return"";const l=r.join(`
|
|
55
|
-
|
|
56
|
-
`);return`@scope (${s}) to (${ox}) {
|
|
57
|
-
${l}
|
|
58
|
-
}`}function JI(e,t,r){const s=[],o=PC(e,t,r);return o!==null&&s.push(o),e.components&&(c0(e.components,s,{resetInheritedPaddingSpecificity:!0,sink:r,location:t}),u0(e.components,s),d0(e.components,s)),s}function e_(e){const t=e?.heading;return t!==null&&typeof t=="object"&&!Array.isArray(t)}function Z5(e,t,r){return`@media ${e} {
|
|
59
|
-
@scope (${r}) to (${ox}) {
|
|
60
|
-
${t.map(n_).join(`
|
|
61
|
-
|
|
62
|
-
`)}
|
|
63
|
-
}
|
|
64
|
-
}`}function t_(e,t){const r=l0(),s=e.__adaptations===void 0?void 0:RC(e.name,e.__adaptations,void 0),o=e.__adaptationRules??(s?AC(e.name,s,e.__axes??{},e.tokens,e.localTokens,e.components):void 0);if(!o||o.length===0)return{prose:"",component:""};const l=o0(e.name),u=[],f=o.some(d=>e_(d.components));for(const[d,p]of o.entries()){const m=JI(p,`adaptations[${d}].`,r);m.length!==0&&u.push(Z5(p.query,m,l))}if(f){const d=[];pp(e.components??{},d,{forceAll:!0}),u.push(`@scope (${l}) to (${ox}) {
|
|
65
|
-
${d.join(`
|
|
66
|
-
|
|
67
|
-
`)}
|
|
68
|
-
}`);for(const p of o){const m=[];pp(p.components??{},m,{authoredOnly:!0}),m.length>0&&u.push(Z5(p.query,m,l))}}return{prose:"",component:u.join(`
|
|
69
|
-
|
|
70
|
-
`)}}function n_(e){return` ${e}`}function r_(e,t){const{component:r,prose:s}=ZI(e),o=o0(e.name),l=ox;let u="";if(s.length>0){const m=s.join(`
|
|
71
|
-
|
|
72
|
-
`);u=`@scope (${o}) to (${l}) {
|
|
73
|
-
${m}
|
|
74
|
-
}`}let f="";if(r.length>0){const m=r.join(`
|
|
75
|
-
|
|
76
|
-
`);f=`@scope (${o}) to (${l}) {
|
|
77
|
-
${m}
|
|
78
|
-
}`}const d=t_(e);d.component&&(f=f?`${f}
|
|
79
|
-
|
|
80
|
-
${d.component}`:d.component);const p=QI(e);return p&&(f=f?`${f}
|
|
81
|
-
|
|
82
|
-
${p}`:p),{prose:u,component:f}}const f0={...GN,...KN,...WN,...YN,...XN,...ZN,...QN,...JN,...ez,...tz,...nz,...rz,...az,...MI};function a_(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 BC(e){if("extends"in e&&!s_(e.extends))throw new Error(`defineTheme("${e.name}"): \`extends\` must be a theme from defineTheme(), got ${a_(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,r={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},o=t?{tokens:t.tokens,components:t.components}:void 0,{tokens:l,components:u}=vC(r,o),f=I5("dark",e.onDark,t?.__onDark),d=I5("light",e.onLight,t?.__onLight),p=lI(e,t,l,f0),m=jI(t?.__axes,s),y=RC(e.name,t?.__adaptations,e.adaptations),k=AC(e.name,y,m,l,p?.localTokens,u),v=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,S={name:e.name,tokens:l,...p?{localTokens:p.localTokens,__localTokenOwners:p.owners,__localTokenLineage:p.lineage}:{},components:u,icons:v,indicators:w,__inputTokens:t?.__inputTokens||e.tokens?{...t?.__inputTokens,...e.tokens}:void 0,__onDark:f,__onLight:d,__adaptations:y,__adaptationRules:k,__axes:m};return NC(S),S}function s_(e){return typeof e=="object"&&e!==null&&"name"in e&&"tokens"in e&&!("styles"in e)}function o_(e){return`var(${e})`}Object.fromEntries(Object.keys(f0).map(e=>[e,o_(e)]));function h0(e){let t=0,r=null,s=!1;for(let o=0;o<e.length;o++){const l=e[o];if(r!==null){s?s=!1:l==="\\"?s=!0:l===r&&(r=null);continue}if(l==='"'||l==="'"){r=l;continue}if(l==="("){t++;continue}if(l===")"){t=Math.max(0,t-1);continue}if(l===","&&t===0)return[e.slice(0,o).trim(),e.slice(o+1).trim()]}return null}function i_(e){const t=e.trim(),r="light-dark(";if(!t.startsWith(r)||!t.endsWith(")"))return null;const s=t.slice(r.length,-1);return h0(s)}function Ry(e,t){if(Array.isArray(e))return t==="dark"?e[1]:e[0];const r=i_(e);return r!==null?t==="dark"?r[1]:r[0]:e}function HC(e,t){let r=0;for(let s=t;s<e.length;s++){const o=e[s];if(o==="(")r++;else if(o===")"&&(r--,r===0))return s}return-1}function Q5(e){const t=e.trim(),r=t.match(/\s+([\d.]+)%$/);return r?{color:t.slice(0,r.index).trim(),percentage:parseFloat(r[1])}:{color:t,percentage:null}}function l_(e){const t=e.match(/^in\s+([\w-]+)\s*,\s*(.+)$/s);if(!t)return null;const[,r,s]=t;if(r.toLowerCase()!=="srgb")return null;const o=h0(s);if(o===null)return null;const l=Q5(o[0]),u=Q5(o[1]);if(l===null||u===null)return null;const f=Zu(l.color),d=Zu(u.color);if(f===null||d===null)return null;let p,m;l.percentage!==null&&u.percentage!==null?(p=l.percentage,m=u.percentage):l.percentage!==null?(p=l.percentage,m=100-p):u.percentage!==null?(m=u.percentage,p=100-m):(p=50,m=50);const y=p+m;if(y<=0)return null;const k=p/y,v=m/y,w=y<100?y/100:1,S=k*f.a+v*d.a,E=(N,L)=>k*N*f.a+v*L*d.a,R=E(f.r,d.r),C=E(f.g,d.g),T=E(f.b,d.b),A=S===0?{r:0,g:0,b:0}:{r:R/S,g:C/S,b:T/S};return bT({...A,a:S*w})}function F1(e){const t=e.indexOf("color-mix(");if(t===-1)return e;const r=t+9,s=HC(e,r);if(s===-1)return e;const o=F1(e.slice(r+1,s)),u=l_(o)??`color-mix(${o})`;return e.slice(0,t)+u+F1(e.slice(s+1))}function U1(e,t,r,s){const o=e.indexOf("var(");if(o===-1)return e;const l=o+3,u=HC(e,l);if(u===-1)return e;const f=e.slice(l+1,u),d=h0(f),p=(d?d[0]:f).trim(),m=d?d[1]:null;let y;s.has(p)?y=e.slice(o,u+1):p in t?(s.add(p),y=FC(p,t,r,s),s.delete(p)):m!==null?y=U1(m.trim(),t,r,s):y=e.slice(o,u+1);const k=U1(e.slice(u+1),t,r,s);return e.slice(0,o)+y+k}function c_(e,t,r,s){if(!e.includes("var(")&&!e.includes("color-mix("))return e;const o=U1(e,t,r,s);return F1(o)}function FC(e,t,r,s){if(e in r)return r[e];const o=t[e];if(o===void 0)return"";const l=c_(o,t,r,s);return r[e]=l,l}function J5(e){const t={};for(const r of Object.keys(e))FC(r,e,t,new Set);return t}function u_(e,t){const{mode:r}=t,s={};for(const[o,l]of Object.entries(f0))s[o]=Ry(l,r);if(e==null)return J5(s);for(const[o,l]of Object.entries(e.tokens))s[o]=Ry(l,r);if(e.__inputTokens)for(const[o,l]of Object.entries(e.__inputTokens))l!==void 0&&(s[o]=Ry(l,r));return J5(s)}function wd(e,t=!1){const r=g.useCallback(l=>{const u=window.matchMedia(e);return u.addEventListener("change",l),()=>u.removeEventListener("change",l)},[e]),s=g.useCallback(()=>window.matchMedia(e).matches,[e]),o=g.useCallback(()=>t,[t]);return g.useSyncExternalStore(r,s,o)}const Sd=g.createContext(null);Sd.displayName="ThemeContext";function d_(){if(typeof document>"u")return null;const e=document.documentElement.getAttribute("data-theme");return e==="light"||e==="dark"?e:null}function f_(){return null}function h_(){return typeof document>"u"?null:document.documentElement.getAttribute(Dr("theme"))}function p_(){return null}function UC(){return null}const zu=new Set;let Su=null;const Lu=new Set;let Eu=null;function x_(){for(const e of zu)e()}function g_(e){return zu.add(e),zu.size===1&&typeof MutationObserver<"u"&&(Su=new MutationObserver(x_),Su.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})),()=>{zu.delete(e),zu.size===0&&Su&&(Su.disconnect(),Su=null)}}function m_(){for(const e of Lu)e()}function y_(e){return Lu.add(e),Lu.size===1&&typeof MutationObserver<"u"&&(Eu=new MutationObserver(m_),Eu.observe(document.documentElement,{attributes:!0,attributeFilter:[Dr("theme")]})),()=>{Lu.delete(e),Lu.size===0&&Eu&&(Eu.disconnect(),Eu=null)}}function VC(){return()=>{}}function b_(e){return g.useSyncExternalStore(e?VC:g_,e?UC:d_,f_)}function p0(e){return g.useSyncExternalStore(e?VC:y_,e?UC:h_,p_)}function GC(){const e=g.use(Sd),t=e!=null,r=p0(t);return e?.theme.name??r}function k_(){const e=g.use(Sd),t=e!=null,r=p0(t);return e?.theme??ax(r)??void 0}function ix(){const e=g.use(Sd),t=e!=null,r=b_(t),s=p0(t),o=wd("(prefers-color-scheme: dark)"),l=e?.mode??r??"system",u=e?.theme??ax(s),f=l==="system"?o?"dark":"light":l,d=g.useMemo(()=>u_(u,{mode:f}),[u,f]),p=g.useCallback(y=>d[y]??"",[d]),m=u?.name??"default";return g.useMemo(()=>({name:m,mode:f,token:p,tokens:d}),[m,f,p,d])}const nn={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},Rl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-hidden":!0},v_={close:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M6 6l12 12M6 18L18 6"})}),chevronDown:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M6 9l6 6 6-6"})}),"numberInput:stepperDown":x.jsx("svg",{...nn,children:x.jsx("path",{d:"M7.5 9.75l4.5 4.5 4.5-4.5"})}),chevronLeft:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M15 6l-6 6 6 6"})}),chevronRight:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M9 6l6 6-6 6"})}),chevronsLeft:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M18 6l-6 6 6 6M11 6l-6 6 6 6"})}),chevronsRight:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M6 6l6 6-6 6M13 6l6 6-6 6"})}),check:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M5 13l4 4L19 7"})}),success:x.jsx("svg",{...Rl,children:x.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:x.jsx("svg",{...Rl,children:x.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:x.jsx("svg",{...Rl,children:x.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:x.jsx("svg",{...Rl,children:x.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:x.jsxs("svg",{...nn,children:[x.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),x.jsx("path",{d:"M16 2v4M8 2v4M3 10h18"})]}),clock:x.jsxs("svg",{...nn,children:[x.jsx("circle",{cx:"12",cy:"12",r:"9"}),x.jsx("path",{d:"M12 7v5l3 3"})]}),externalLink:x.jsxs("svg",{...nn,children:[x.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),x.jsx("path",{d:"M15 3h6v6"}),x.jsx("path",{d:"M10 14L21 3"})]}),menu:x.jsx("svg",{...nn,strokeWidth:2,children:x.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),moreHorizontal:x.jsxs("svg",{...Rl,children:[x.jsx("circle",{cx:"5",cy:"12",r:"1.5"}),x.jsx("circle",{cx:"12",cy:"12",r:"1.5"}),x.jsx("circle",{cx:"19",cy:"12",r:"1.5"})]}),search:x.jsxs("svg",{...nn,children:[x.jsx("circle",{cx:"11",cy:"11",r:"8"}),x.jsx("path",{d:"M21 21l-4.35-4.35"})]}),upload:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M12 16V4m0 0L7 9m5-5l5 5M4 15v4a2 2 0 002 2h12a2 2 0 002-2v-4"})}),arrowUp:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M12 19V5m0 0l-7 7m7-7l7 7"})}),arrowDown:x.jsx("svg",{...nn,children:x.jsx("path",{d:"M12 5v14m0 0l7-7m-7 7l-7-7"})}),arrowsUpDown:x.jsx("svg",{...nn,children:x.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:x.jsx("svg",{...nn,children:x.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:x.jsx("svg",{...nn,children:x.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:x.jsx("svg",{...nn,children:x.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:x.jsxs("svg",{...nn,children:[x.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"}),x.jsx("path",{d:"M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2"})]}),checkDouble:x.jsxs("svg",{...nn,children:[x.jsx("path",{d:"M2 13l4 4L14 7"}),x.jsx("path",{d:"M9 13l4 4L21 7"})]}),wrench:x.jsx("svg",{...nn,children:x.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:x.jsx("svg",{...Rl,children:x.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),microphone:x.jsxs("svg",{...nn,children:[x.jsx("path",{d:"M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z"}),x.jsx("path",{d:"M19 10v1a7 7 0 01-14 0v-1"}),x.jsx("path",{d:"M12 18v4m-4 0h8"})]})};let w_={};function S_(e){return e==null?null:typeof e=="string"?ax(e)?.icons??null:e.icons??null}function E_(e,t){return S_(t)?.[e]??w_[e]??v_[e]}const KC={root:{kmuXW:"x2lah0s",$$css:!0},span:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0}},WC={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 $_(e){return e!=null&&e!==""?{role:"img","aria-label":e}:{"aria-hidden":"true"}}function ft({icon:e,color:t="inherit",size:r,label:s,ref:o,className:l,style:u,xstyle:f,...d}){const p=aO(r),m=$_(s);if(typeof e=="string")return x.jsx(T_,{name:e,color:t,size:p,a11yProps:m,className:l,style:u,xstyle:f,spanProps:d});const y=e;return x.jsx(y,{ref:o,...m,...ye(fe("icon",{size:p,color:t}),de(KC.root,WC[t],sO[p],f),l??void 0,u),...d})}ft.displayName="Icon";function T_({name:e,color:t,size:r,a11yProps:s,className:o,style:l,xstyle:u,spanProps:f}){const d=GC(),p=E_(e,d);if(p==null)return null;const m=f??{};return x.jsx("span",{...s,...m,...ye(fe("icon",{size:r,color:t}),de(KC.span,WC[t],iC[r],u),o??void 0,l),children:p})}function Ca(e,t){return typeof e=="string"?x.jsx(ft,{icon:e,...t}):typeof e=="function"||typeof e=="object"&&e!==null&&"render"in e?x.jsx(ft,{icon:e,...t}):e}const C_={isMobile:!1,isMobileNavOpen:!1,toggleMobileNav:()=>{},openMobileNav:()=>{},closeMobileNav:()=>{},isMobileNavEnabled:!1,hasAutoToggle:!0},x0=g.createContext(C_);x0.displayName="AppShellMobileContext";function Ii(){return g.use(x0)}function g0({ref:e,children:t,label:r,"data-testid":s,xstyle:o,className:l,style:u}){const f=Nt(),d=r??f("@astryx.mobileNav.toggle.open"),{isMobile:p,isMobileNavEnabled:m,isMobileNavOpen:y,mobileNavId:k,toggleMobileNav:v}=Ii();return!p||!m?null:x.jsx(yt,{ref:e,variant:"ghost",label:d,icon:t??x.jsx(ft,{icon:"menu",color:"inherit"}),onClick:v,"aria-expanded":y,"aria-controls":k||void 0,"data-testid":s??"mobile-nav-toggle",xstyle:o,className:l,style:u,isIconOnly:!0})}g0.displayName="MobileNavToggle";const Hl=g.createContext("default");Hl.displayName="SideNavRenderContext";function YC(){return g.use(Hl)}const V1=g.createContext("default");V1.displayName="TopNavRenderContext";const G1=g.createContext(null);G1.displayName="TopNavMobileContentContext";const j_=typeof _p.Activity<"u",R_=j_?({mode:e,children:t})=>x.jsx(_p.Activity,{mode:e,children:t}):({children:e})=>x.jsx(x.Fragment,{children:e}),Ay="astryx-app-shell-main",Cn={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 m0({variant:e="elevated",banner:t,children:r,contentPadding:s,"data-testid":o,height:l="fill",mobileNav:u,sideNav:f,topNav:d,xstyle:p,className:m,style:y,ref:k,...v}){const w=Nt(),S=k_(),E=u===!1,R=u!=null&&u!==!1&&typeof u=="object"&&!g.isValidElement(u)?u:null,C=R?.breakpoint??"md",T=u!=null&&u!==!1&&(g.isValidElement(u)||typeof u=="string")?u:null,A=R?.content??null,N=R?.hasToggle!==!1,L=R?.isOpen!==void 0,D=S?.__adaptations?.widthBreakpoints,j=C==="none"?"(width < 0px)":`(width < ${D?.[C]??TC[C]}px)`,O=wd(j,C==="none"?!1:R?.defaultIsMobile),[M,H]=g.useState(!1),F=R?.isOpen??M,q=R?.onOpenChange,B=g.useCallback(ct=>{L||H(ct),q?.(ct)},[L,q]),U=g.useCallback(()=>{document.getElementById(Ay)?.focus()},[]),_=l==="fill",P=l==="auto",G=Us(t),X=Us(d),Z=Us(f),K=!E&&(X||Z)&&T==null,ae=e==="section",I=e==="elevated",ee=e==="wash"||e==="elevated"?Cn.navAreaWash:e==="surface"?Cn.navAreaSurface:void 0,pe=ee??(P&&e==="section"?Cn.navAreaSurface:void 0),ue=e==="wash"?Cn.contentBgWash:e==="elevated"&&X&&Z&&!O?Cn.contentBgTransparent:e==="surface"||e==="elevated"?Cn.contentBgSurface:void 0,ve=ee??Cn.navAreaSurface,xe=g.useRef(null),$e=g.useRef(null);g.useEffect(()=>{if(!P||!xe.current||!$e.current)return;const ct=xe.current,we=$e.current,Ge=()=>{const Pt=ct.getBoundingClientRect().height;we.style.setProperty("--_app-shell-header-height",`${Pt}px`)};return Xu(ct,()=>Ge())},[P]);const te=Z&&!O,he=T!=null,Re=K&&A!=null&&O,Ce=g.useId(),Te=g.useMemo(()=>({isMobile:O,isMobileNavOpen:F,mobileNavId:Ce,toggleMobileNav:()=>K&&B(!F),openMobileNav:()=>K&&B(!0),closeMobileNav:()=>B(!1),isMobileNavEnabled:K,hasAutoToggle:N}),[O,F,Ce,B,K,N]),Me=Z&&N?x.jsx(Hl,{value:"drawer-content",children:f}):null,je=Z?x.jsx(Hl,{value:"drawer-content",children:f}):null,He=X?O&&!E&&T==null?x.jsx(G1,{value:Me,children:x.jsx(V1,{value:"mobile-bar",children:d})}):d:null,at=X||G?x.jsxs(tp,{padding:0,hasDivider:ae&&X,children:[G&&x.jsx("div",{...de(Cn.banner,ee),children:t}),X&&He]}):void 0,pt=Us(at)?x.jsx("div",{ref:xe,role:"banner",...ye(fe("app-shell-header",{variant:e}),de(pe,P&&Cn.headerSticky)),children:at}):void 0,et=te?x.jsx(ST,{padding:0,hasDivider:ae,isScrollable:_,...fe("app-shell-sidenav",{variant:e}),xstyle:[ee,P&&ve,P&&Cn.panelAutoFill],children:f}):void 0,Ve=et!=null&&P?x.jsx("div",{className:"x2lah0s x7giv3 x7wzq59 xht72ud xpa73km x78zum5 xdt5ytf",children:et}):et,bt=I&&X&&te,Pe=x.jsx(Io,{padding:s??0,role:"main",id:Ay,tabIndex:-1,isScrollable:_,xstyle:[ue,Cn.mainFocusTarget],children:r}),rt=x.jsxs("div",{...{0:{className:"xjp7ctv"},1:{className:"x1n2onr6 x78zum5 x98rzlu x2lwn1j x5yr21d"}}[!!bt<<0],children:[bt&&x.jsx("div",{className:"x10l6tqk x10a8y8t x10xzikg x183tx6i x47corl"}),Pe]}),st=!E&&N&&O&&!X&&Z?x.jsx("div",{role:pt==null?"banner":void 0,...ye(fe("app-shell-header",{variant:e}),de(pe,P&&Cn.headerSticky)),children:x.jsx(tp,{padding:0,hasDivider:ae,children:x.jsxs("div",{className:"x78zum5 x6s0dn4 x1k15mir xf314gf",role:"navigation","aria-label":w("@astryx.appShell.mobileNavigation"),children:[x.jsx(Hl,{value:"topbar",children:f}),x.jsx(g0,{})]})})}):void 0;return x.jsx(x0,{value:Te,children:x.jsxs("div",{...v,ref:xn(k,$e),"data-testid":o,...ye(fe("app-shell",{variant:e}),de(Cn.root,e==="wash"?Cn.variantWash:e==="surface"?Cn.variantSurface:e==="section"?Cn.variantSection:Cn.variantElevated,_?Cn.rootFill:Cn.rootAuto,p),m,y),children:[x.jsx("a",{href:`#${Ay}`,onClick:U,...pn.focusVisible(Cn.skipLink),"data-testid":"skip-to-content",children:w("@astryx.appShell.skipToContent")}),x.jsx(Oo,{height:l,padding:0,header:x.jsxs(x.Fragment,{children:[pt,st]}),start:Ve,content:rt}),he&&T,Re&&A,O&&!E&&T==null&&!A&&x.jsxs(R_,{mode:F?"visible":"hidden",children:[Z&&!X&&x.jsx(Hl,{value:"drawer",children:f}),X&&x.jsx(G1,{value:je,children:x.jsx(V1,{value:"drawer",children:d})})]})]})})}m0.displayName="AppShell";function _r({icon:e,...t}){return x.jsx(yt,{...t,icon:e,isIconOnly:!0})}_r.displayName="IconButton";const eE={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}},A_={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}},M_={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}},N_={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}},z_={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}},L_={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}},D_={card:A_,section:M_,dialog:N_,"bottom-sheet":z_,drawer:L_},O_={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}},I_={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}},__={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}},q_={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}},P_={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}},B_={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}},H_={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}},F_={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}},U_={containerMaxHeight:e=>[{"--container-max-height":e!=null?"x18nyedi":e,$$css:!0},{"--x---container-max-height":e??void 0}]};function y0({padding:e="spacing4",paddingOuterX:t,paddingOuterY:r,paddingInnerX:s,paddingInnerY:o,useThemeDefault:l,maxHeight:u}){const f=t??e,d=r??e,p=s??e,m=o??e,y=u?U_.containerMaxHeight(u):null;if(l){const k=D_[l];return[eE.container,k.containerPaddingInlineStart,k.containerPaddingInlineEnd,k.containerPaddingBlockStart,k.containerPaddingBlockEnd,k.layoutPaddingOuterX,k.layoutPaddingOuterY,k.layoutPaddingInnerX,k.layoutPaddingInnerY,y]}return[eE.container,O_[f],I_[f],__[d],q_[d],P_[f],B_[d],H_[p],F_[m],y]}const V_={scrollable:{kVQacm:"xysyzu8",$$css:!0}};function lx({direction:e="vertical",hAlign:t,vAlign:r,justify:s,align:o,gap:l,padding:u,paddingInline:f,paddingInlineStart:d,paddingInlineEnd:p,paddingBlock:m,paddingBlockStart:y,paddingBlockEnd:k,isScrollable:v,width:w,height:S,maxWidth:E,minHeight:R,wrap:C,as:T="div",xstyle:A,className:N,style:L,children:D,ref:j,...O}){const M=t??(e==="horizontal"?s:o),H=r??(e==="horizontal"?o:s),F=e==="horizontal"?M:H,q=e==="horizontal"?H:M,B=d??f??u,U=p??f??u,_=y??m??u,P=k??m??u,G=de(...R1({direction:e,crossAlign:q,mainAlign:F,gap:l,wrap:C}),B!=null&&kT[B],U!=null&&vT[U],_!=null&&wT[_],P!=null&&Zb[P],v&&V_.scrollable,A),X={...w!=null&&{width:typeof w=="number"?`${w}px`:w},...S!=null&&{height:typeof S=="number"?`${S}px`:S},...E!=null&&{maxWidth:typeof E=="number"?`${E}px`:E},...R!=null&&{minHeight:typeof R=="number"?`${R}px`:R}};return g.createElement(T,{ref:j,...ye(fe("stack",{direction:e,gap:l,wrap:C}),G,N,{...L,...X}),...O},D)}lx.displayName="Stack";function Tt({ref:e,justify:t,align:r,hAlign:s,vAlign:o,...l}){return x.jsx(lx,{...l,direction:"horizontal",hAlign:s??t,vAlign:o??r,ref:e})}Tt.displayName="HStack";function We({ref:e,justify:t,align:r,hAlign:s,vAlign:o,...l}){return x.jsx(lx,{...l,direction:"vertical",hAlign:s??r,vAlign:o??t,ref:e})}We.displayName="VStack";const G_={scrollable:{kVQacm:"xysyzu8",$$css:!0}};function lc({crossAlignSelf:e,size:t,isScrollable:r,as:s="div",xstyle:o,className:l,style:u,children:f,ref:d,...p}){const m=de(...pT({crossAlignSelf:e,size:t}),r&&G_.scrollable,o);return g.createElement(s,{ref:d,...ye(fe("stack-item",{size:t}),m,l,u),...p},f)}lc.displayName="StackItem";const My={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}},K_={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}},W_={none:{"--_card-elevation":"xw28qpl",$$css:!0},low:{"--_card-elevation":"x1nn8khe",$$css:!0},med:{"--_card-elevation":"x1ovzxg0",$$css:!0},high:{"--_card-elevation":"xnpe7fx",$$css:!0}},Y_={sizing:(e,t,r,s)=>[{kzqmXN:e!=null?"x5lhr3w":e,kZKoxP:t!=null?"x16ye13r":t,ks0D6T:r!=null?"xf68679":r,kAzted:s!=null?"x82snj4":s,$$css:!0},{"--x-width":(o=>typeof o=="number"?o+"px":o??void 0)(e),"--x-height":(o=>typeof o=="number"?o+"px":o??void 0)(t),"--x-maxWidth":(o=>typeof o=="number"?o+"px":o??void 0)(r),"--x-minHeight":(o=>typeof o=="number"?o+"px":o??void 0)(s)}]};function Ks({width:e,height:t,maxWidth:r,minHeight:s,children:o,padding:l,variant:u="default",elevation:f="none",xstyle:d,className:p,style:m,ref:y,...k}){const v=t!=null&&t!=="auto",S=l==null?void 0:Xb[l];return x.jsx("div",{ref:y,...ye(fe("card",{variant:u,elevation:f}),de(My.card,K_[u],W_[f],v&&My.scrollable,Y_.sizing(e??null,t??null,r??null,s??null),...y0(S==null?{useThemeDefault:"card"}:{paddingInnerX:S,paddingInnerY:S,paddingOuterX:S,paddingOuterY:S}),u==="default"&&My.withBorder,d),p,m),...k,children:o})}Ks.displayName="Card";const X_={section:{kWkggS:"x10xzikg",$$css:!0},transparent:{kWkggS:"xjbqb8w",$$css:!0},muted:{kWkggS:"xwmxj5m",$$css:!0}},tE={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}},ch={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}},Z_={sizing:(e,t,r,s)=>[{kzqmXN:e!=null?"x5lhr3w":e,kZKoxP:t!=null?"x16ye13r":t,ks0D6T:r!=null?"xf68679":r,kAzted:s!=null?"x82snj4":s,$$css:!0},{"--x-width":(o=>typeof o=="number"?o+"px":o??void 0)(e),"--x-height":(o=>typeof o=="number"?o+"px":o??void 0)(t),"--x-maxWidth":(o=>typeof o=="number"?o+"px":o??void 0)(r),"--x-minHeight":(o=>typeof o=="number"?o+"px":o??void 0)(s)}]};function XC({variant:e="section",width:t,height:r,maxWidth:s,minHeight:o,children:l,dividers:u,padding:f,paddingInline:d,paddingInlineStart:p,paddingInlineEnd:m,paddingBlock:y,paddingBlockStart:k,paddingBlockEnd:v,xstyle:w,className:S,style:E,ref:R,...C}){const T=f==null,A=f??4,N=Xb[A],L=de(tE.outer,Z_.sizing(t??null,r??null,s??null,o??null),w);return x.jsx("div",{ref:R,className:[L.className,S].filter(Boolean).join(" ")||void 0,style:E&&L.style?{...L.style,...E}:E||L.style,...C,children:x.jsx("div",{...ye(fe("section",{variant:e}),de(tE.inner,...y0(T?{useThemeDefault:"section"}:{paddingInnerX:N,paddingInnerY:N,paddingOuterX:N,paddingOuterY:N}),!T&&A!==4&&Di[A],!T&&A!==4&&Ti[A],!T&&A!==4&&No[A],!T&&A!==4&&Vs[A],!T&&Hz[A],d!=null&&_z[d],d!=null&&Ti[d],y!=null&&qz[y],y!=null&&No[y],y!=null&&Vs[y],k!=null&&wT[k],k!=null&&No[k],v!=null&&Zb[v],v!=null&&Vs[v],p!=null&&kT[p],p!=null&&Pz[p],m!=null&&vT[m],m!=null&&Bz[m],X_[e],u?.includes("top")&&ch.top,u?.includes("bottom")&&ch.bottom,u?.includes("start")&&ch.start,u?.includes("end")&&ch.end)),children:l})})}XC.displayName="Section";const uh={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}},Q_={sizing:e=>[{kZKoxP:e!=null?"x16ye13r":e,$$css:!0},{"--x-height":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function cx({children:e,hasDivider:t,height:r,label:s,padding:o,role:l,xstyle:u,className:f,style:d,ref:p,...m}){const y=g.use(Kp),k=t??y?.defaultHasDividers??!1,v=o===0;return x.jsx("div",{ref:p,role:l,"aria-label":s,"data-divider":k||void 0,...ye(fe("layout-footer"),de(uh.footer,Q_.sizing(r??null),k&&uh.divider,u),f,d),...m,children:x.jsx("div",{...de(uh.inner,v&&uh.fullBleed,o!=null&&Di[o],o!=null&&Ti[o],o!=null&&No[o],o!=null&&Vs[o]),children:e})})}cx.displayName="LayoutFooter";const J_=g.lazy(async()=>bd(()=>Promise.resolve().then(()=>nj),void 0).then(e=>({default:e.Tooltip})));function eq(e){return e==="display-1"||e==="display-2"||e==="display-3"}const tq={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"};function qo({level:e,type:t,weight:r,accessibilityLevel:s,color:o="primary",display:l="block",maxLines:u=0,hasTruncateTooltip:f=!0,wordBreak:d,textWrap:p,justify:m="start",hasCapsize:y=!1,hasStrikethrough:k=!1,xstyle:v,className:w,style:S,children:E,ref:R,...C}){const T=tq[e],A=s&&s!==e?{"aria-level":s}:{},N=d??(u===1?"break-all":"break-word"),L=u>0||y?"block":l,D=t&&eq(t)?t:void 0,j=UT({maxLines:u}),O=typeof f=="string"?f:"above",M=u>0&&f!==!1&&j.isTruncated,H=g.useRef(null),F=xn(R,j.ref,H),q=u>1?{WebkitLineClamp:u}:void 0;return x.jsxs(x.Fragment,{children:[x.jsx(T,{ref:F,...ye(fe("heading",{level:e,color:o,type:t,weight:r}),de(Jb[VT(o)],D?e0[D]:KL[e],D&&OT[D],r&&DT[r],u===1?ip.singleLine:u>1?ip.multiLine:IT[L],u>0&&_T[N],p&&qT[p],m!=="start"&&HT[m],y&&PT.enabled,k&&BT.strikethrough,v),w,{...S,...q}),...A,...C,children:E}),M&&x.jsx(g.Suspense,{fallback:null,children:x.jsx(J_,{anchorRef:H,content:x.jsx("span",{...de(FT.content),children:j.fullText}),placement:O})})]})}qo.displayName="Heading";const nE={settle(){},release(){}};function ZC(e){if(typeof window>"u"||typeof document>"u")return nE;const t=document.documentElement,r=t.clientWidth;if(r===0)return nE;const s=t.style.scrollbarGutter,o=e.style.paddingRight,l=e.getBoundingClientRect().width;let u=!1,f=!1,d=!1;return window.innerWidth>r&&(t.style.scrollbarGutter="stable",u=!0),{settle(){if(d)return;d=!0;const p=e.getBoundingClientRect().width-l;if(p<=0)return;const m=Number.parseFloat(window.getComputedStyle(e).paddingRight)||0;e.style.paddingRight=`${m+p}px`,f=!0},release(){f&&(e.style.paddingRight=o,f=!1),u&&(t.style.scrollbarGutter=s,u=!1)}}}const fs={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}},nq={kzqmXN:"xn9wirt",ks0D6T:"xf68679",$$css:!0},rq={width:e=>[nq,{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(`${e}px`)}]},aq=250,sq=.6;function oq(e){const t=e.split(",").map(r=>{const s=r.trim(),o=Number.parseFloat(s);return Number.isFinite(o)?s.endsWith("ms")?o:s.endsWith("s")?o*1e3:null:null}).filter(r=>r!==null);return t.length?Math.min(...t):null}function iq(e){const t=window.matchMedia("(prefers-reduced-motion: reduce)").matches?0:aq,r=oq(window.getComputedStyle(e).transitionDuration);return r===null?t:r<=0?0:Math.min(t,r*sq)}function b0({isOpen:e,onOpenChange:t,children:r,header:s,width:o=320,side:l="auto",label:u,"data-testid":f,xstyle:d,className:p,style:m,onClick:y,ref:k,...v}){const w=Nt(),S=Ii(),E=e??S.isMobileNavOpen,R=g.useId(),C=S.mobileNavId||R,T=g.useMemo(()=>t??(B=>{B?S.openMobileNav():S.closeMobileNav()}),[t,S]),A=g.useRef(null),N=g.useRef(null),L=g.useRef(null),D=g.useCallback(()=>{L.current&&(L.current.release(),L.current=null)},[]),[j,O]=g.useState(l==="auto"?"end":l);g.useEffect(()=>{if(E)if(l==="auto"){const B=document.activeElement;if(B&&B!==document.body){const U=B.getBoundingClientRect(),_=U.left+U.width/2;O(_<window.innerWidth/2?"start":"end")}}else O(l)},[E,l]),g.useEffect(()=>{const B=A.current;if(B)return E?(L.current??=ZC(document.documentElement),B.open||B.showModal(),document.documentElement.style.overflow="clip",L.current.settle()):B.open&&(document.documentElement.style.overflow="",D(),N.current=setTimeout(()=>{B.close()},iq(B))),()=>{N.current&&(clearTimeout(N.current),N.current=null),document.documentElement.style.overflow="",D()}},[E,D]),g.useEffect(()=>{const B=A.current;return()=>{B?.open&&B.close()}},[]);const{shouldDismissOnCloseRequest:M}=Jp({isActive:E,onDismiss:()=>T(!1)}),H=g.useCallback(B=>{B.preventDefault(),M()&&T(!1)},[T,M]),F=g.useCallback(B=>{B.target===B.currentTarget&&T(!1)},[T]),q=j==="start";return x.jsx("dialog",{ref:xn(k,A),id:C,...ye(fe("mobile-nav",{side:j}),de(ac.reset,sc.reset,fs.dialog,Qu.reset,E&&fs.open,fs.backdrop,E&&fs.backdropOpen,d),p,m),...v,"data-testid":f,"aria-label":u??(typeof s=="string"?s:w("@astryx.mobileNav.navigation")),onClick:Ir(y,F),onCancel:H,children:x.jsx(Ju,{children:x.jsx(rc,{children:x.jsxs("div",{tabIndex:-1,...de(fs.drawer,rq.width(o),q&&fs.drawerStart,q&&E&&fs.drawerStartOpen,!q&&fs.drawerEnd,!q&&E&&fs.drawerEndOpen),children:[x.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"?x.jsx(qo,{level:2,xstyle:fs.headerText,children:s}):s??null,x.jsx(yt,{variant:"ghost",label:w("@astryx.mobileNav.closeNavigation"),icon:x.jsx(ft,{icon:"close",color:"inherit"}),onClick:()=>T(!1),isIconOnly:!0})]}),x.jsx("div",{className:"x98rzlu x1odjw0f x6ikm8r xish69e xge0x1e xf314gf xce4md1",children:r})]})})})})}b0.displayName="MobileNav";const ux=g.createContext({isCollapsed:!1,toggle:()=>{},isCollapsible:!1});ux.displayName="SideNavCollapseContext";function k0(){return g.use(ux)}const Ny={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 v0({ref:e,collapsible:t,handleRef:r,label:s,size:o,children:l,onClick:u,...f}){const d=Nt(),{isCollapsed:p,toggle:m,isCollapsible:y}=lq(t,r),{isMobile:k}=Ii();return!y||k?null:x.jsx(yt,{ref:e,label:s??d(p?"@astryx.sideNavCollapseButton.expandSidebar":"@astryx.sideNavCollapseButton.collapseSidebar"),variant:"ghost",size:o,...f,onClick:Ir(u,m),icon:l??x.jsx("span",{...de(Ny.chevronMirror,Wa.mirror),children:x.jsx(ft,{icon:"chevronLeft",size:"sm",color:"inherit",xstyle:[Ny.chevron,p&&Ny.chevronCollapsed]})}),isIconOnly:!0})}v0.displayName="SideNavCollapseButton";function lq(e,t){const r=k0(),{isCollapsed:s,onCollapsedChange:o}=e??{},l=g.useCallback(()=>o?.(!s),[s,o]),u=g.useCallback(()=>{t?.current?.getCollapseState()?.toggle()},[t]);if(e!=null)return{isCollapsed:s??!1,toggle:l,isCollapsible:!0};if(t==null)return r;const f=t.current?.getCollapseState()??null;return{isCollapsed:f?.isCollapsed??!1,toggle:u,isCollapsible:f?.isCollapsible??!0}}const cq=50,uq=40,QC="astryx-resizable:";function Al(e,t,r,s){const o=Math.min(r,Math.max(t,e));if(s.length>0){let l=s[0],u=Math.abs(o-l);for(let f=1;f<s.length;f++){const d=Math.abs(o-s[f]);d<u&&(l=s[f],u=d)}return Math.min(r,Math.max(t,l))}return o}function dq(e){if(typeof window>"u")return null;try{const t=localStorage.getItem(QC+e);if(t==null)return null;const r=JSON.parse(t);if(typeof r=="number")return Number.isFinite(r)?r===0?{size:null,isCollapsed:!0}:{size:r,isCollapsed:null}:null;if(typeof r=="object"&&r!=null){const{size:s,isCollapsed:o}=r,l=typeof s=="number"&&Number.isFinite(s)&&s>0;if(l||o===!0)return{size:l?s:null,isCollapsed:o===!0}}}catch{}return null}function fq(e,t){if(!(typeof window>"u"))try{localStorage.setItem(QC+e,JSON.stringify(t))}catch{}}const zy=1200,hq=250,Ly='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)}).',pq=/^(\d+(?:\.\d+)?)px$/,xq=/^(\d+(?:\.\d+)?)%$/;function gq(e){const t=pq.exec(e);if(t){const s=Number(t[1]);return Number.isFinite(s)?{kind:"px",value:s}:null}const r=xq.exec(e);if(r){const s=Number(r[1]);return Number.isFinite(s)&&s<=100?{kind:"percent",value:s}:null}return null}function K1(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 mq(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 r=t.min!==void 0,s=t.max!==void 0;if(r===s)return null;if(r){const l=K1(t.min);return l==null?null:{kind:"percent",value:t.value,min:l}}const o=K1(t.max);return o==null?null:{kind:"percent",value:t.value,max:o}}function Dy(e){if(typeof e=="number")return Number.isFinite(e)&&e>=0?{kind:"px",value:e}:null;if(typeof e=="string")return gq(e);if(typeof e=="object"&&e!=null){const t=K1(e);return t==null?mq(e):{kind:"px",value:t}}return null}function Oy(e){return e?.kind==="percent"}function yq(e,t){if(e.kind==="px")return e.value;if(t==null)return null;const r=Math.round(e.value/100*t);return e.min!==void 0?Math.max(r,e.min):e.max!==void 0?Math.min(r,e.max):r}function Pu(e){if(typeof e=="number"&&!Number.isFinite(e))return String(e);try{return JSON.stringify(e)??String(e)}catch{return String(e)}}function Iy(e){if(typeof e!="object"||e==null||Array.isArray(e))return Pu(e);const t=e;return t.type==="pixel"?`{"type":"pixel","value":${Pu(t.value)}}`:Pu(e)}function bq(e){if(typeof e=="object"&&e!=null&&!Array.isArray(e)){const t=e;if(t.type==="pixel")return Iy(e);if(t.type==="percent"){const r=['"type":"percent"',`"value":${Pu(t.value)}`];return t.min!==void 0&&r.push(`"min":${Iy(t.min)}`),t.max!==void 0&&r.push(`"max":${Iy(t.max)}`),`{${r.join(",")}}`}}return Pu(e)}function _y(e,t,r,s,o,l,u){return e===void 0?s:e===1/0&&s===1/0?1/0:t==null?(u.current||(u.current=!0,$a("useResizable",`${o}: ${bq(e)} is not a size. ${l} Falling back to ${s}.`)),s):yq(t,r)??s}function rE(e,t,r){const s=r?.contentBoxSize?.[0];if(s)return t==="vertical"?s.blockSize:s.inlineSize;const o=typeof window>"u"?null:window.getComputedStyle(e);if(o==null)return null;const l=t==="vertical"?e.clientHeight-parseFloat(o.paddingTop)-parseFloat(o.paddingBottom):e.clientWidth-parseFloat(o.paddingLeft)-parseFloat(o.paddingRight);return Number.isFinite(l)?l:null}function JC(e){const{defaultSize:t,minSize:r,maxSize:s,containerRef:o,direction:l="horizontal",collapsible:u=!1,collapsedSize:f=uq,snaps:d,autoSaveId:p,defaultIsCollapsed:m,isCollapsed:y,onSizeChange:k,onCollapseChange:v}=e,w=g.useRef([]),S=d??w.current,E=r,R=s,C=Dy(t),T=Dy(r),A=Dy(s),N=o!=null,L=p?dq(p):null,D=g.useRef(null),[,j]=g.useState(0),O=Oy(C),M=Oy(T)||Oy(A),H=L?.size==null&&O&&D.current?.isFinal!==!0,F=N&&(M||H),q=!N&&M,B=g.useRef(null),[,U]=g.useState(0),_=g.useRef(null),P=F?B.current:null;qn(()=>{if(!F){B.current=null,_.current=null;return}const Ye=o?.current??null;Ye!==B.current&&(_.current=null,B.current=Ye,U(Le=>Le+1))});const G=g.useCallback(Ye=>!F||P==null||P!==o?.current?()=>{}:Xu(P,Le=>{_.current=rE(P,l,Le),Ye()}),[P,F,l,o]),X=g.useCallback(()=>!F||P==null?(_.current=null,null):(_.current==null&&(_.current=rE(P,l)),_.current),[P,F,l]),Z=g.useSyncExternalStore(G,X,()=>null),Q=g.useCallback(Ye=>N||!q||typeof window>"u"?()=>{}:(window.addEventListener("resize",Ye),()=>window.removeEventListener("resize",Ye)),[N,q]),K=g.useSyncExternalStore(Q,()=>typeof window>"u"?zy:window.innerWidth,()=>zy),ae=F,I=Z!=null&&Z>0,ee=N?I?Z:zy:K,pe=ae?I:!0,ue=g.useRef(null),[ve,xe]=g.useState(0),$e=ue.current??ee,te=g.useRef(!1),he=g.useRef(!1),Re=g.useRef(!1),Ce=g.useRef(!1),Te=_y(E,T,$e,cq,"minSize",Ly,te),Me=_y(R,A,$e,1/0,"maxSize",Ly,he);(D.current==null||!D.current.isFinal)&&(D.current={px:_y(t,C,$e,hq,"defaultSize",Ly,Re),isFinal:pe});const je=D.current.px,[He,at]=g.useState(()=>L?.size!=null?L.size:pe?Al(je,Te,Me,S):null);N&&!M&&pe&&H&&He!=null&&j(Ye=>Ye+1),pe&&He==null&&at(Al(je,Te,Me,S));const[pt,et]=g.useState({min:Te,max:Me});pe&&ue.current==null&&(pt.min!==Te||pt.max!==Me)&&(et({min:Te,max:Me}),at(Ye=>Ye==null?null:Al(Ye,Te,Me,S)));const Ve=Al(He??je,Te,Me,S),[bt,Pe]=g.useState(()=>L?.isCollapsed??m??!1),rt=y!==void 0,lt=u&&(rt?y:bt),st=g.useRef(Ve),ct=g.useRef(lt);ct.current=lt;const we=g.useCallback(Ye=>{rt||(ct.current=Ye,Pe(Ye))},[rt]);g.useEffect(()=>{Te>Me&&!Ce.current&&(Ce.current=!0,$a())},[Te,Me]),g.useEffect(()=>{p&&pe&&fq(p,{size:Ve,isCollapsed:lt})},[Ve,lt,p,pe]);const Ge=g.useCallback(()=>{!u||ct.current||(we(!0),v?.(!0),k?.(0))},[u,we,v,k]),Pt=g.useCallback(()=>{const Ye=ct.current;we(!1),Ye&&v?.(!1),k?.(Ve)},[we,Ve,v,k]),bn=g.useCallback(Ye=>{if(!Number.isFinite(Ye)||Ye<0){$a();return}const Le=Al(Ye,Te,Me,S),en=ct.current;at(Le),we(!1),en&&v?.(!1),k?.(Le)},[Te,Me,S,we,v,k]),gn=g.useCallback(()=>{ue.current=ee,st.current=ct.current?0:Ve},[Ve,ee]),An=g.useCallback(Ye=>{const Le=st.current+Ye;if(u&&Le<f){ct.current||(we(!0),v?.(!0),k?.(0));return}ct.current&&Le>=f&&(we(!1),v?.(!1));const en=Al(Le,Te,Me,S);at(en),k?.(en)},[u,f,we,Te,Me,S,k,v]),Vt=g.useCallback(()=>{ue.current!=null&&(ue.current=null,xe(Ye=>Ye+1))},[]),Yn=g.useCallback(()=>{Vt()},[Vt]);return{size:lt?0:Ve,isCollapsed:lt,collapse:Ge,expand:Pt,resize:bn,props:{_size:lt?0:Ve,_isCollapsed:lt,_onResizeStart:gn,_onResizeMove:An,_onResizeEnd:Yn,_onResizeCancel:Vt,_minSizePx:Te,_maxSizePx:Me,_snaps:S,_collapsedSize:f,_collapsible:u,_direction:l,_isResizableProps:!0}}}function kq(e){const{regions:t,autoSaveId:r,containerRef:s,direction:o}=e,l=Object.entries(t),u=l.map(([d,p])=>JC({...p,containerRef:s,direction:o,autoSaveId:r?`${r}:${d}`:void 0})),f={};return l.forEach(([d],p)=>{f[d]=u[p]}),f}function vq(e){return"regions"in e?kq(e):JC(e)}const wq=10,Sq=50;function Eq(e,t,r){if(e!=="auto")return e;const s=t?"end":"start";return r?s==="start"?"end":"start":s}function $q(e){return e==="center"?null:e==="start"?-1:1}function Tq(e){document.body.style.cursor=e?"col-resize":"row-resize",document.body.style.userSelect="none"}function aE(){document.body.style.cursor="",document.body.style.userSelect=""}const ln={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}},Cq={kLqNvP:"x1o0tod",k3aq6I:"x11wx31z x75qhwu",$$css:!0},jq={k87sOh:"x13vifvy",k3aq6I:"xsqj5wx",$$css:!0},Rq={kLqNvP:"x1o0tod",k3aq6I:"xsqj5wx",$$css:!0},Aq={k87sOh:"x13vifvy",k3aq6I:"xsqj5wx",$$css:!0},dh={hitAreaOffsetX:e=>[Cq,{"--x-qthpiu":`translateX(calc(${e} * (3px + ${Wn["--spacing-1"]}) - 6.5px))`!=null?`translateX(calc(${e} * (3px + ${Wn["--spacing-1"]}) - 6.5px))`:void 0,"--x-sj6hyi":`translateX(calc(${e} * (3px + ${Wn["--spacing-1"]}) + 6.5px))`!=null?`translateX(calc(${e} * (3px + ${Wn["--spacing-1"]}) + 6.5px))`:void 0}],hitAreaOffsetY:e=>[jq,{"--x-transform":`translateY(calc(${e} * (3px + ${Wn["--spacing-1"]}) - 6.5px))`!=null?`translateY(calc(${e} * (3px + ${Wn["--spacing-1"]}) - 6.5px))`:void 0}],pillOffsetX:e=>[Rq,{"--x-transform":`translate(calc(${e} * (100% + ${Wn["--spacing-1"]})), -50%)`!=null?`translate(calc(${e} * (100% + ${Wn["--spacing-1"]})), -50%)`:void 0}],pillOffsetY:e=>[Aq,{"--x-transform":`translate(-50%, calc(${e} * (100% + ${Wn["--spacing-1"]})))`!=null?`translate(-50%, calc(${e} * (100% + ${Wn["--spacing-1"]})))`:void 0}]};function ej({direction:e="horizontal",position:t="inline",isReversed:r=!1,isDisabled:s=!1,hasDivider:o=!1,isAlwaysVisible:l=!0,pillPlacement:u="auto",label:f,resizable:d,children:p,xstyle:m,className:y,ref:k,...v}){const w=Nt(),S=f??w("@astryx.resizable.handle.label"),E=g.useRef(null),R=g.useRef(null),[C,T]=g.useState(!1),[A,N]=g.useState(!1),[L,D]=g.useState(!1),j=e==="horizontal",O=t==="overlay",M=r?-1:1,H=Eq(u,r,d?._isCollapsed??!1),F=$q(H),q=g.useCallback(()=>{const xe=E.current;return xe&&getComputedStyle(xe).direction==="rtl"?-1:1},[]),B=A||L,U=g.useRef(!1);g.useEffect(()=>{const xe=d?._direction;xe!=null&&xe!==e&&!U.current&&(U.current=!0,$a())},[e,d]);const _=g.useCallback(()=>{R.current=null,T(!1),aE()},[]),P=g.useCallback(xe=>{s||!d||R.current||(xe.preventDefault(),xe.stopPropagation(),xe.currentTarget.setPointerCapture?.(xe.pointerId),R.current={pointerId:xe.pointerId,startPos:j?xe.clientX:xe.clientY,rtl:j?q():1},T(!0),d._onResizeStart(),Tq(j))},[s,d,j,q]),G=g.useCallback(xe=>{const $e=R.current;if(!$e||$e.pointerId!==xe.pointerId||!d)return;const te=j?xe.clientX:xe.clientY;d._onResizeMove((te-$e.startPos)*$e.rtl*M)},[d,j,M]),X=g.useCallback(xe=>{R.current?.pointerId===xe.pointerId&&(_(),d?._onResizeEnd())},[_,d]),Z=g.useCallback(xe=>{R.current?.pointerId===xe.pointerId&&(_(),d?._onResizeCancel?.())},[_,d]),Q=g.useCallback(xe=>{if(s||!d)return;const $e=xe.shiftKey?Sq:wq,te=j?q():1;switch(xe.key){case"ArrowRight":case"ArrowDown":{xe.preventDefault(),d._onResizeStart(),d._onResizeMove($e*(j?te:1)*M),d._onResizeEnd();break}case"ArrowLeft":case"ArrowUp":{xe.preventDefault(),d._onResizeStart(),d._onResizeMove(-$e*(j?te:1)*M),d._onResizeEnd();break}case"Home":{xe.preventDefault(),d._onResizeStart(),d._onResizeMove(d._minSizePx-d._size),d._onResizeEnd();break}case"End":{xe.preventDefault(),d._maxSizePx!==1/0&&(d._onResizeStart(),d._onResizeMove(d._maxSizePx-d._size),d._onResizeEnd());break}case"Enter":{xe.preventDefault(),d._collapsible&&(d._onResizeStart(),d._onResizeMove(d._isCollapsed?d._minSizePx:-d._size),d._onResizeEnd());break}}},[s,d,j,q,M]),K=g.useCallback(()=>{s||!d||!d._collapsible||(d._onResizeStart(),d._onResizeMove(d._isCollapsed?d._minSizePx:-d._size),d._onResizeEnd())},[s,d]),ae=g.useRef(void 0);ae.current=d?._onResizeCancel,g.useEffect(()=>()=>{R.current&&(R.current=null,aE(),ae.current?.())},[]);const I=d?._isCollapsed??!1,ee=d?I?Math.max(d._size,d._minSizePx):d._size:void 0,pe=d?d._minSizePx:void 0,ue=d&&d._maxSizePx!==1/0?d._maxSizePx:void 0,ve=d&&I?w("@astryx.resizable.collapsed"):void 0;return x.jsxs("div",{ref:xn(k,E),role:"separator","aria-orientation":j?"vertical":"horizontal","aria-valuenow":ee,"aria-valuemin":pe,"aria-valuemax":ue,"aria-valuetext":ve,"aria-label":S,"aria-disabled":s||void 0,tabIndex:s?-1:0,onDoubleClick:K,onFocus:()=>D(!0),onBlur:()=>D(!1),"data-resizing":C||void 0,...ye(fe("resize-handle"),pn.focusVisible(ln.handle,O&&ln.overlay,O&&(j?ln.overlayHorizontal:ln.overlayVertical),!O&&(j?ln.horizontal:ln.vertical),!O&&!o&&(j?ln.noDividerHorizontal:ln.noDividerVertical),!O&&o&&B&&!C&&ln.handleHover,!O&&o&&C&&ln.handleActive,s&&ln.disabled,m),y),...v,onKeyDown:xe=>{v.onKeyDown?.(xe),Q(xe)},children:[x.jsx("div",{...de(ln.hitArea,j?ln.hitAreaHorizontal:ln.hitAreaVertical,F==null?j?Wa.centerInline("0px"):ln.hitAreaCenteredY:j?dh.hitAreaOffsetX(F):dh.hitAreaOffsetY(F),s&&ln.disabled),onPointerDown:P,onPointerMove:G,onPointerUp:X,onPointerCancel:Z,onLostPointerCapture:Z,onPointerEnter:()=>N(!0),onPointerLeave:()=>{C||N(!1)}}),p??x.jsx("div",{...ye(fe("resize-handle-pill"),de(ln.pill,j?ln.pillHorizontal:ln.pillVertical,H==="center"?Wa.centerInline("-50%"):j?dh.pillOffsetX(H==="start"?-1:1):dh.pillOffsetY(H==="start"?-1:1),l?ln.pillVisible:ln.pillHidden,B&&!C&&ln.pillHover,C&&ln.pillActive))})]})}ej.displayName="ResizeHandle";function Ri(e,t,r=!0){const s=g.useRef(!1);g.useEffect(()=>{r&&!s.current&&(s.current=!0,$a())},[e,t,r])}const Mq=160;function Nq(e,t){const r=typeof e=="object"?e:{},s=typeof t=="object"?t:{},o=s.defaultIsCollapsed!==void 0||s.isCollapsed!==void 0||s.onCollapseChange!==void 0;return{isCollapsible:!!e||o,defaultIsCollapsed:(o?s.defaultIsCollapsed:r.defaultIsCollapsed)??!1,isCollapsed:o?s.isCollapsed:r.isCollapsed,onCollapsedChange:o?s.onCollapseChange:r.onCollapsedChange,conflict:zq(r,s)}}function zq(e,t){const r=[e.defaultIsCollapsed!==void 0&&"defaultIsCollapsed",e.isCollapsed!==void 0&&"isCollapsed",e.onCollapsedChange!==void 0&&"onCollapsedChange"].filter(o=>o!==!1),s=[t.defaultIsCollapsed!==void 0&&"defaultIsCollapsed",t.isCollapsed!==void 0&&"isCollapsed",t.onCollapseChange!==void 0&&"onCollapseChange"].filter(o=>o!==!1);return r.length===0||s.length===0?null:`${r.map(o=>`collapsible.${o}`).join(", ")} and ${s.map(o=>`resizable.${o}`).join(", ")} address the same collapse state. resizable wins; the collapsible ${r.length===1?"value is":"values are"} ignored.`}const fh={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}},hh="sm";function xp({header:e,topContent:t,children:r,footer:s,footerIcons:o,collapsible:l=!1,resizable:u=!1,xstyle:f,className:d,style:p,"data-testid":m,ref:y,handleRef:k,...v}){const w=Nt(),E=(typeof l=="object"?l:{}).hasButton??!0,R=typeof u=="object"?u:{},C=!!u,T=Nq(l,u),{isCollapsible:A,onCollapsedChange:N}=T;Ri("SideNav",T.conflict??"",T.conflict!=null);const L=g.useRef(null),D=xn(y,L),j=g.useRef({isCollapsed:!1,toggle:()=>{},isCollapsible:A}),O=vq({defaultSize:R.defaultWidth??260,minSize:R.minWidth??180,maxSize:R.maxWidth??480,collapsible:A,collapsedSize:Mq,autoSaveId:R.autoSaveId,defaultIsCollapsed:T.defaultIsCollapsed,isCollapsed:T.isCollapsed,onSizeChange:R.onWidthChange,onCollapseChange:N}),M=O.isCollapsed,H=g.useCallback(()=>{const K=!M;j.current={...j.current,isCollapsed:K},K?O.collapse():O.expand()},[M,O]),F=C&&!M;j.current={isCollapsed:M,toggle:H,isCollapsible:A};const q={isCollapsed:M,toggle:H,isCollapsible:A};g.useImperativeHandle(k,()=>({getCollapseState:()=>j.current}),[]);const B=YC();if(B==="topbar")return x.jsxs("div",{"data-testid":m,...ye(fe("side-nav",{mode:"topbar"}),de(fh.topbar,f),d,p),children:[e,x.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw xvc5jky",children:x.jsx(Bl,{value:hh,children:o})})]});const U=!!(s||o);if(B==="drawer")return x.jsxs(b0,{header:e,"data-testid":m,xstyle:f,className:d,style:p,...v,children:[t,r,U&&x.jsxs("div",{className:"x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es",children:[s,o&&x.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:x.jsx(Bl,{value:hh,children:o})})]})]});if(B==="drawer-content")return x.jsxs(x.Fragment,{children:[t,r,U&&x.jsxs("div",{className:"x78zum5 xdt5ytf xr1yuqi x1txdalj x1xye8es",children:[s,o&&x.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:x.jsx(Bl,{value:hh,children:o})})]})]});const _=!!(e||t),P=!!(s||o),G=A&&E,X=C?{...p??{},width:M?void 0:O.size}:p,Z=x.jsxs("nav",{ref:D,role:"navigation","aria-label":w("@astryx.sideNav.label"),"data-testid":m,...ye(fe("side-nav"),de(fh.root,M&&fh.rootCollapsed,f),d,X),...v,children:[_&&x.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"}}[!!M<<0],children:[e,t&&x.jsx("div",{children:t})]}),x.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"}}[!!M<<2|!!_<<1|!!P<<0],children:r}),(P||G)&&x.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"}}[!!M<<0],children:[s,x.jsx("div",{...{0:{className:"x78zum5 x6s0dn4 xzye2dw"},1:{className:"x78zum5 x6s0dn4 xzye2dw x3ieub6"}}[!!M<<0],children:x.jsxs(Bl,{value:hh,children:[G&&x.jsx(v0,{}),o]})})]})]}),Q=F?x.jsxs("div",{className:"x1n2onr6 x78zum5 x2lah0s x5yr21d x7giv3",children:[Z,x.jsx(ej,{"data-testid":"astryx-sidenav-resize-handle",direction:"horizontal",position:"overlay",pillPlacement:"end",isAlwaysVisible:!1,xstyle:fh.resizableHandle,resizable:O.props,label:w("@astryx.sideNav.resizeSidebar")})]}):Z;return A?x.jsx(ux,{value:q,children:Q}):Q}xp.displayName="SideNav";const gp='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 Lq(e){g.useEffect(()=>{if(e)return()=>{}},[e])}function Dq(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 w0(e){return Array.from(e.querySelectorAll(gp)).filter(Dq)}function S0(e){try{e.focus()}catch{}return document.activeElement===e}function sE(e){const t=w0(e);for(const r of t)if(S0(r))return!0;return!1}function Oq(e){const t=w0(e);for(let r=t.length-1;r>=0;r--)if(S0(t[r]))return!0;return!1}function Iq(e){const{isActive:t,onEscape:r}=e,s=g.useRef(null),o=g.useRef(null),l=g.useRef(!1),u=t&&r!=null;Jp({isActive:u,onDismiss:()=>{r?.()},getContainer:()=>s.current}),Lq(u);const f=g.useCallback(()=>{s.current&&sE(s.current)},[]);return g.useEffect(()=>{if(!t)return;const d=document.activeElement,p=s.current;let m=p!=null&&p.contains(document.activeElement);const y=k=>{const v=k.target;v!=null&&s.current?.contains(v)&&(m=!0)};return document.addEventListener("focusin",y,!0),()=>{if(document.removeEventListener("focusin",y,!0),!m)return;const k=document.activeElement;(k==null||k===document.body||k===document.documentElement||p!=null&&p.contains(k))&&d!=null&&d.isConnected&&typeof d.focus=="function"&&d.focus()}},[t]),g.useEffect(()=>{if(!t)return;const d=p=>{const m=s.current;if(!m)return;const y=p.target;if(m.contains(y))o.current=y;else if(l.current){const k=sE(m);k&&o.current===document.activeElement?Oq(m):!k&&o.current instanceof HTMLElement&&m.contains(o.current)&&S0(o.current),o.current=document.activeElement}l.current=!1};return document.addEventListener("focus",d,!0),()=>{document.removeEventListener("focus",d,!0)}},[t]),g.useEffect(()=>{if(!t)return;const d=p=>{const m=s.current;if(m&&p.key==="Tab"){l.current=!0;const y=w0(m);if(y.length===0){const w=document.activeElement;if(!(w instanceof HTMLElement)||!m.contains(w))return;p.preventDefault(),o.current=w,l.current=!1;return}const k=y[0],v=y[y.length-1];if(document.activeElement===m){p.preventDefault(),p.shiftKey?v.focus():k.focus();return}p.shiftKey?document.activeElement===k&&(p.preventDefault(),v.focus()):document.activeElement===v&&(p.preventDefault(),k.focus())}};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d)}},[t,r]),{containerRef:s,focusFirst:f}}const _q="[data-astryx-popover-fallback-close]";function tj(e){try{e.focus()}catch{}return document.activeElement===e}function qq(e){const t=Array.from(e.querySelectorAll(gp)).filter(r=>r.closest(_q)==null);for(const r of t)if(tj(r))return!0;return!1}const qy={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 Pq(e={}){const{onShow:t,onHide:r,xstyle:s,className:o,style:l,hasLightDismiss:u=!0,hasEscapeDismiss:f=!0,hasAutoFocus:d=!0,hasSurface:p=!0,padding:m,surfaceTarget:y,hasCloseButton:k=!0,closeButtonLabel:v,dialogLabel:w,role:S="dialog",isModal:E=!0}=e,R=Nt(),C=v??R("@astryx.popover.close"),T=g.useRef(null),A=g.useRef(!1),N=md({mode:"context",lightDismiss:u,onShow:t,onHide:r}),{containerRef:L,focusFirst:D}=Iq({isActive:N.isOpen,onEscape:f||u?N.hide:void 0}),j=g.useCallback(()=>{const B=L.current;if(B&&!qq(B)){if(S==="dialog"){tj(B);return}D()}},[L,D,S]);g.useEffect(()=>{N.isOpen&&d&&!A.current&&requestAnimationFrame(j),N.isOpen||(A.current=!1)},[N.isOpen,d,j]);const O=g.useCallback(B=>{T.current=B,N.ref(B)},[N]),M=g.useCallback(B=>{A.current=B?.skipAutoFocus??!1,N.show()},[N]),H=g.useCallback(()=>{N.isOpen?N.hide():M()},[N,M]),F={"aria-haspopup":S==="dialog"?"dialog":"true","aria-expanded":N.isOpen,"aria-controls":N.id};Ri("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.',S==="dialog"&&!w);const q=g.useCallback((B,U)=>{const _=fe("popover"),P=y!=null&&y!=="popover"?`${_.className} ${gT(y)}`:_.className;return N.render(x.jsx(Ju,{children:x.jsxs("div",{ref:L,role:S==="dialog"?"dialog":void 0,"aria-modal":S==="dialog"&&E?!0:void 0,"aria-label":S==="dialog"?w:void 0,tabIndex:S==="dialog"?-1:void 0,...ye({..._,className:P},pn.focusVisible(qy.contentWrapper,p&&qy.surface,m!=null&&Di[m],s),o,l),children:[B,k&&x.jsx("div",{"data-astryx-popover-fallback-close":"",...de(qy.closeButtonWrapper,Wa.centerInline("100%")),children:x.jsx(yt,{variant:"secondary",label:C,onClick:N.hide})})]})}),{...U,xstyle:U?.xstyle})},[N,k,p,m,y,o,l,C,L,w,S,E,s]);return{triggerRef:O,contentRef:L,anchorId:N.anchorId,show:M,hide:N.hide,toggle:H,isOpen:N.isOpen,id:N.id,render:q,triggerProps:F}}function E0(e={}){return Pq(e)}function Bq(e){return typeof e=="string"||typeof e=="number"}function oE(...e){const t=e.filter(Boolean);return t.length>0?t.join(" "):void 0}function _i({children:e,anchorRef:t,content:r,placement:s="above",alignment:o="center",delay:l=200,hideDelay:u=0,focusTrigger:f="auto",touchTrigger:d="auto",isEnabled:p=!0,onOpenChange:m,hasHoverIndication:y="auto",isOpen:k,isDefaultOpen:v}){const w=g.useRef(null),S=e!=null?Bq(e):!1,E=y===!0||y==="auto"&&S,R=g.useCallback(()=>{m?.(!0)},[m]),C=g.useCallback(()=>{m?.(!1)},[m]),T=Ya({placement:s,alignment:o,delay:l,hideDelay:u,focusTrigger:f,touchTrigger:d,isEnabled:p,isOpen:k,isDefaultOpen:v,onShow:R,onHide:C});return qn(()=>{if(!t)return;const A=t.current;if(!A)return;T.ref(A);const N=A.getAttribute("aria-describedby");return A.setAttribute("aria-describedby",oE(N,T.describedBy)??""),()=>{T.ref(null),N?A.setAttribute("aria-describedby",N):A.removeAttribute("aria-describedby")}},[t,T.ref,T.describedBy]),qn(()=>{if(t||S)return;const A=w.current;if(!A)return;const N=A.firstElementChild;if(!N)return;T.ref(N);const L=N.getAttribute("aria-describedby");return N.setAttribute("aria-describedby",oE(L,T.describedBy)??""),()=>{T.ref(null),L?N.setAttribute("aria-describedby",L):N.removeAttribute("aria-describedby")}},[t,S,T.ref,T.describedBy]),t&&e==null?x.jsx(x.Fragment,{children:T.renderTooltip(r)}):S?x.jsxs(x.Fragment,{children:[x.jsx("span",{ref:T.ref,tabIndex:0,"aria-describedby":T.describedBy,...{0:{className:"xt0psk2"},1:{className:"xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj"}}[!!E<<0],children:e}),T.renderTooltip(r)]}):x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:w,className:"xjp7ctv",children:e}),T.renderTooltip(r)]})}_i.displayName="Tooltip";const nj=Object.freeze(Object.defineProperty({__proto__:null,Tooltip:_i},Symbol.toStringTag,{value:"Module"})),Hq=["noopener","noreferrer"];function rj(e,t){if(e!=="_blank")return{target:e,rel:t};const r=t?.split(/\s+/).filter(Boolean)??[];for(const s of Hq)r.includes(s)||r.push(s);return{target:e,rel:r.join(" ")}}const $0=g.createContext(null);$0.displayName="InteractiveRoleContext";function Fq(){return g.use($0)}function aj({href:e,onClick:t,isDisabled:r=!1}){const s=Fq();return e!=null&&!r?"link":t!=null?"button":s??"inert"}const Jr={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}},Py={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 Uq(e){e.preventDefault()}function dx({as:e,label:t,href:r,hasUnderline:s=!1,isDisabled:o=!1,isExternalLink:l=!1,newTabLabel:u,target:f,onClick:d,tooltip:p,isStandalone:m=!1,type:y="body",size:k,weight:v,color:w="accent",display:S="inline",maxLines:E=0,children:R,rel:C,xstyle:T,className:A,style:N,ref:L,...D}){const j=Ra(),O=Nt(),M=u??O("@astryx.link.newTab"),H=Oi(e),F=aj({href:r,onClick:d,isDisabled:o}),{target:q,rel:B}=rj(l?"_blank":f,C),U=F==="button"||F==="inert"&&r==null,_=x.jsxs(x.Fragment,{children:[x.jsx(Je,{type:y,size:k,weight:v,color:w,display:S,maxLines:E,children:R}),l&&!U&&x.jsxs(x.Fragment,{children:[x.jsx(ft,{icon:"externalLink",size:"xsm",color:"inherit"}),x.jsx(Gs,{children:M})]})]});let P;return U?P=x.jsx("button",{ref:L,type:"button",onClick:d,...o?void 0:j,"aria-label":t||void 0,"aria-disabled":o||void 0,tabIndex:o?-1:void 0,disabled:o,...ye(fe("link",{color:w}),pn.focusVisible(Jr.base,Jr.buttonReset,Py[w],!o&&or.pressedBackgroundColor,s&&Jr.hasUnderline,m&&Jr.standalone,o&&Jr.disabled,T),A,N),...D,children:_}):o?P=x.jsx("a",{ref:L,onClick:Uq,"aria-label":t||void 0,"aria-disabled":!0,tabIndex:-1,...ye(fe("link",{color:w}),pn.focusVisible(Jr.base,Py[w],s&&Jr.hasUnderline,m&&Jr.standalone,Jr.disabled,T),A,N),...D,children:_}):P=x.jsx(H,{ref:L,href:r,target:q,rel:B,onClick:d,...o?void 0:j,"aria-label":t||void 0,"aria-disabled":o||void 0,tabIndex:o?-1:void 0,...ye(fe("link",{color:w}),pn.focusVisible(Jr.base,Py[w],!o&&or.pressedBackgroundColor,s&&Jr.hasUnderline,m&&Jr.standalone,o&&Jr.disabled,T),A,N),...D,children:_}),p?x.jsx(_i,{content:p,placement:"above",children:P}):P}dx.displayName="Link";const wo={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 Vq(e){return!e||typeof window>"u"?!1:window.getComputedStyle(e).direction==="rtl"}const Gq=new Set(["text","search","url","tel","email","password","number"]);function Kq(e,t){const r=e.parentElement?.closest("[hidden],[inert]");return r!=null&&r!==t&&t.contains(r)}function Wq(e){if(e.isContentEditable)return e;const t=e.closest("[contenteditable]");return t&&t.getAttribute("contenteditable")!=="false"?t:null}function iE(e,t){if(!(e instanceof HTMLElement))return!1;const r=Wq(e);if(r){const p=typeof window<"u"?window.getSelection():null;return p&&p.rangeCount>0&&!p.isCollapsed?!0:(r.textContent??"").length>0}const s=e.tagName==="TEXTAREA",o=e.tagName==="INPUT"&&Gq.has(e.type);if(!s&&!o)return!1;const l=e,{selectionStart:u,selectionEnd:f,value:d}=l;return u!==f||u==null?!0:t==="ArrowLeft"||t==="ArrowUp"||t==="Home"?u>0:t==="ArrowRight"||t==="ArrowDown"||t==="End"?u<d.length:!1}function fx(e={}){const{itemSelector:t='[role="menuitem"]',boundarySelector:r,wrap:s=!0,onEscape:o,orientation:l="vertical",hasHomeEnd:u=!0,hasPaging:f=!1,hasRovingTabIndex:d=!1,hasCaretGuard:p=!1}=e,m=g.useRef(null),y=g.useCallback(O=>O.getAttribute("aria-disabled")==="true"||O.disabled===!0||O.hasAttribute("disabled"),[]),k=g.useCallback(()=>{const O=m.current;if(!O)return[];const M=Array.from(O.querySelectorAll(t)).filter(H=>!Kq(H,O));return r?M.filter(H=>H.closest(r)===O):M},[t,r]),v=g.useCallback(O=>{const M=m.current;if(!M||!r)return!0;const H=O.target;return H?H.closest(r)===M:!0},[r]),w=g.useCallback((O,M,H,F)=>{const q=O.length;if(q===0)return-1;let B=M;for(let U=0;U<q;U++){if(B<0||B>=q){if(!F)return-1;B=(B+q)%q}const _=O[B];if(_&&!y(_))return B;B+=H}return-1},[y]),S=g.useCallback(()=>{const O=k(),M=document.activeElement;return O.findIndex(H=>H===M||H.contains(M))},[k]),E=g.useCallback((O,M)=>{O.getAttribute("tabindex")!==String(M)&&O.setAttribute("tabindex",String(M))},[]),R=g.useCallback(()=>{const O=k(),M=O.filter(q=>!y(q));if(M.length===0)return;const F=M.find(q=>q.getAttribute("tabindex")==="0")??M[0];for(const q of O)E(q,q===F?0:-1)},[k,y,E]);qn(()=>{d&&R()});const C=g.useCallback((O,M)=>{const H=O[M];if(H){if(d)for(const F of O)E(F,F===H?0:-1);H.focus()}},[d,E]),T=g.useCallback(O=>{const M=k();if(M.length===0)return;const H=Math.max(0,Math.min(O,M.length-1));C(M,H)},[k,C]),A=g.useCallback(()=>{const O=k(),M=w(O,0,1,!1);return M!==-1?(C(O,M),!0):!1},[k,w,C]),N=g.useCallback(()=>{const O=k(),M=w(O,O.length-1,-1,!1);return M!==-1?(C(O,M),!0):!1},[k,w,C]),L=g.useCallback(O=>{const M=m.current,H=k();if(!M||H.length===0)return;const F=S(),q=H.map((P,G)=>y(P)?-1:G).filter(P=>P!==-1);if(q.length===0)return;const B=()=>{const P=M.getBoundingClientRect(),G=q.filter(X=>{const Z=H[X].getBoundingClientRect();return Z.top>=P.top-1&&Z.bottom<=P.bottom+1});return G.length===0?-1:O===1?G[G.length-1]:G[0]},U=P=>F===-1||(O===1?P>F:P<F);if(F===-1&&O===-1){A();return}let _=B();if(_===-1||!U(_)){const P=M.scrollTop;if(M.scrollTop=P+O*M.clientHeight,_=B(),_===-1||!U(_)){const G=Math.max(1,q.filter(K=>{const ae=M.getBoundingClientRect(),I=H[K].getBoundingClientRect();return I.height>0&&I.top>=ae.top-1&&I.bottom<=ae.bottom+1}).length),X=q.indexOf(F),Z=X===-1?O===1?-1:q.length:X,Q=Math.max(0,Math.min(q.length-1,Z+O*G));_=q[Q]}}_!==-1&&_!==F&&C(H,_)},[k,S,y,C,A]),D=g.useCallback(()=>{d&&R()},[d,R]),j=g.useCallback(O=>{if(O.ctrlKey||O.metaKey||O.altKey||!v(O))return;if(O.key==="Escape"){o&&(O.preventDefault(),o());return}const M=l==="horizontal"||l==="both",H=l==="vertical"||l==="both",F=[],q=[];if(M){const K=O.key==="ArrowLeft"||O.key==="ArrowRight"?Vq(m.current):!1;F.push(K?"ArrowLeft":"ArrowRight"),q.push(K?"ArrowRight":"ArrowLeft")}H&&(F.push("ArrowDown"),q.push("ArrowUp"));const B=F.includes(O.key),U=q.includes(O.key),_=u&&O.key==="Home",P=u&&O.key==="End",G=f&&O.key==="PageDown",X=f&&O.key==="PageUp";if(!B&&!U&&!_&&!P&&!G&&!X||p&&(iE(O.target,O.key)||iE(document.activeElement,O.key)))return;const Z=S(),Q=k();if(B){const K=Z===-1?0:Z+1,ae=w(Q,K,1,s);ae!==-1&&C(Q,ae)}else if(U){const K=Z===-1?Q.length-1:Z-1,ae=w(Q,K,-1,s);ae!==-1&&C(Q,ae)}else _?A():P?N():G?L(1):X&&L(-1);O.preventDefault()},[S,k,s,l,u,f,p,w,C,A,N,L,o,v]);return{listRef:m,handleKeyDown:j,handleFocus:D,focusItem:T,focusFirst:A,focusLast:N,ownsEvent:v,getItems:k}}const Yq=500,Xq=300,Zq=8;function By(e,t,r){return(e.x-r.x)*(t.y-r.y)-(t.x-r.x)*(e.y-r.y)}function Qq(e,t,r,s){const o=By(e,t,r),l=By(e,r,s),u=By(e,s,t),f=o<0||l<0||u<0,d=o>0||l>0||u>0;return!(f&&d)}function Jq(e,t,r){const s=Zq;let o,l;if(t.x<=r.left)o={x:r.left,y:r.top-s},l={x:r.left,y:r.bottom+s};else if(t.x>=r.right)o={x:r.right,y:r.top-s},l={x:r.right,y:r.bottom+s};else if(t.y<=r.top)o={x:r.left-s,y:r.top},l={x:r.right+s,y:r.top};else if(t.y>=r.bottom)o={x:r.left-s,y:r.bottom},l={x:r.right+s,y:r.bottom};else return!1;return Qq(e,t,o,l)}function sj(e){const{show:t,hide:r,isOpen:s,isEnabled:o,showDelay:l=150,hideDelay:u=200,clickGuardMs:f=Yq,itemSelector:d,popoverId:p,ownsFocus:m=!0,flyoutRef:y}=e,k=wd("(hover: hover)"),v=g.useRef(null),w=g.useRef(null),S=g.useRef(null),E=g.useRef(null),R=g.useRef(!1),C=g.useRef(0),T=g.useRef(0),A=g.useRef(s);qn(()=>{const K=A.current;A.current=s,K&&!s&&(R.current=!1,T.current=0,C.current=Date.now())},[s]);const N=g.useCallback(()=>{v.current&&(clearTimeout(v.current),v.current=null),w.current&&(clearTimeout(w.current),w.current=null),E.current?.(),E.current=null},[]),L=g.useRef(()=>{}),{listRef:D,handleKeyDown:j,focusFirst:O}=fx({itemSelector:d,onEscape:()=>L.current()}),M=g.useCallback(()=>{const K=D.current?.contains(document.activeElement)??!1;r(),K&&S.current?.focus()},[r,D]);g.useEffect(()=>{L.current=()=>{N(),M()}},[N,M]),g.useEffect(()=>()=>N(),[N]),g.useEffect(()=>{o||N()},[o,N]);const H=g.useCallback(()=>{O()||D.current?.focus()},[O,D]),F=g.useCallback(()=>{if(!m){t();return}t({skipAutoFocus:!0}),H()},[m,t,H]),q=g.useCallback(()=>f>0&&T.current>0&&Date.now()-T.current<f?(R.current=!1,T.current=0,!0):!1,[f]),B=g.useCallback(K=>{if(p&&K?.preventDefault(),N(),K!=null&&K.detail===0){C.current=0,R.current=!1,T.current=0,s?m&&H():F();return}if(!s){C.current=0,R.current=!1,T.current=0,F();return}if(q()){m&&H();return}M()},[p,N,s,m,q,F,H,M]),U=g.useCallback(()=>{if(!k||C.current>0&&Date.now()-C.current<Xq)return;if(s){N();return}R.current=!0,N();const K=()=>{T.current=Date.now(),t({skipAutoFocus:!0})};l>0?v.current=setTimeout(K,l):K()},[k,s,N,t,l]),_=g.useCallback(K=>{if(C.current=0,!R.current)return;N();let ae=null,I=!1,ee=()=>!1;const pe=()=>{w.current&&clearTimeout(w.current),w.current=setTimeout(()=>{if(I&&ae!=null&&ee(ae)){pe();return}r()},u)};pe();const ue=y?.current??D.current,ve=K!=null?{x:K.clientX,y:K.clientY}:null;if(ue==null||ve==null||!s)return;const xe=ue.getBoundingClientRect();if(xe.width<=0||xe.height<=0)return;const $e=ue.ownerDocument;ee=he=>Jq(he,ve,xe),I=!0,ae=ve;const te=he=>{const Re={x:he.clientX,y:he.clientY};if(ae=Re,ee(Re)){pe();return}I=!1,E.current?.(),E.current=null};$e.addEventListener("pointermove",te,!0),E.current=()=>{$e.removeEventListener("pointermove",te,!0)}},[N,r,u,s,D,y]),P=g.useCallback(()=>{N()},[N]),G=g.useCallback(K=>{S.current=K},[]),X=g.useCallback(()=>{},[]),Z=g.useCallback(K=>{},[]),Q=g.useCallback(K=>{},[]);return o?{triggerProps:{onClick:B,onMouseEnter:U,onMouseLeave:_,...p?{popoverTarget:p}:null},contentProps:{onMouseEnter:P,onMouseLeave:_,onKeyDown:j},menuRef:D,focusFirst:O,focusMenu:H,confirmHoverOpen:q,close:M,setTriggerEl:G}:{triggerProps:{onClick:X,onMouseEnter:X,onMouseLeave:X},contentProps:{onMouseEnter:X,onMouseLeave:X,onKeyDown:Q},menuRef:D,focusFirst:O,focusMenu:H,confirmHoverOpen:q,close:M,setTriggerEl:Z}}const zr={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}},eP="sm",tP={isCollapsed:!1,toggle:()=>{},isCollapsible:!1};function Hy({href:e,as:t,isDisabled:r,onClick:s,ref:o,children:l,...u}){const f=Oi(t);return e&&!r?x.jsx(f,{ref:o,href:e,onClick:s,...u,children:l}):x.jsx("button",{ref:o,type:"button",onClick:s,disabled:r,...u,children:l})}function hx({as:e,label:t,icon:r,selectedIcon:s,isSelected:o=!1,isDisabled:l=!1,href:u,onClick:f,endContent:d,actions:p,children:m,collapsible:y,size:k="md","data-testid":v,ref:w,xstyle:S,...E}){const R=Ra(),C=Nt(),{isCollapsed:T}=k0(),A=YC(),{closeMobileNav:N}=Ii(),L=A==="drawer"||A==="drawer-content",D=g.useId(),j=!!m,O=g.useRef(null),M=E0({hasLightDismiss:!0,hasAutoFocus:!0,hasCloseButton:!1,dialogLabel:C("@astryx.sideNavItem.submenuLabel",{label:t})}),H=xn(w,M.triggerRef),F=g.useMemo(()=>typeof y=="object"?y:{},[y]),q=j&&y!==!1,B=F.isCollapsed,U=B!==void 0,[_,P]=g.useState(F.defaultIsCollapsed??!1),G=U?B:_,X=g.useCallback(()=>{const je=!G;U||P(je),F.onCollapsedChange?.(je)},[G,U,F]),Z=o&&s?s:r,K=q&&(!!u||!!f)&&!T,ae=!!p,I=je=>{if(l){je.preventDefault();return}if(q&&!K&&!T){je.preventDefault(),X();return}f?.(je),L&&N()},ee=je=>{je.preventDefault(),je.stopPropagation(),X()},{triggerProps:pe,contentProps:ue}=sj({show:M.show,hide:M.hide,isOpen:M.isOpen,isEnabled:T&&j,clickGuardMs:0,ownsFocus:!1});if(T&&!r)return null;if(T){const je=Z&&Ca(Z,{size:"sm",color:o?"inherit":l?"disabled":"secondary"}),He={...ye(fe("side-nav-item",{size:k,selected:o?"selected":null,disabled:l?"disabled":null}),pn.focusVisible(wo.item,or.backgroundColor,wo[k],zr.itemCollapsed,k==="sm"&&zr.itemCollapsedSm,k==="lg"&&zr.itemCollapsedLg,o&&wo.selected,l&&wo.disabled)),...R},at=E["aria-label"]!=null&&E["aria-label"].trim()!==""?E["aria-label"]:t;if(j)return x.jsxs("div",{...de(zr.root,S),children:[x.jsx("button",{ref:H,type:"button",...E,...pe,"aria-label":at,"data-testid":v,...M.triggerProps,...He,children:je}),M.render(x.jsxs("div",{className:"x1hviunn xu0wf1k x7a5moj xfb3i0g",onMouseEnter:ue.onMouseEnter,onMouseLeave:ue.onMouseLeave,onClick:()=>M.hide(),children:[x.jsx("div",{className:"xf314gf xu0wf1k x141an7d x2mo6ok xv1l7n4 x1ltkj2j",children:t}),x.jsx(ux,{value:tP,children:m})]}),{placement:"end",alignment:"start",xstyle:zr.popoverGap})]});const pt={"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-label":at,"data-testid":v},et=x.jsx(Hy,{ref:w,href:u,as:e,isDisabled:l,onClick:I,...E,...pt,...He,children:je});return x.jsxs("div",{ref:O,...de(zr.root,S),children:[et,x.jsx(_i,{content:t,placement:"end",anchorRef:O})]})}const ve=x.jsxs(x.Fragment,{children:[Z&&Ca(Z,{size:"sm",color:o?"inherit":l?"disabled":"secondary"}),!T&&x.jsx("span",{className:"x98rzlu xeuugli xb3r6kr xlyipyv xuxw1ft",children:t}),!T&&d&&x.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4",children:d}),!T&&q&&!K&&x.jsx(ft,{icon:"chevronDown",size:"lg",color:"inherit",xstyle:[zr.expandChevron,!G&&zr.expandChevronExpanded]})]}),xe=fe("side-nav-item",{size:k,selected:o?"selected":null,disabled:l?"disabled":null}),$e=[wo.item,or.backgroundColor,wo[k],o&&wo.selected,l&&wo.disabled],te={...ye(xe,de(...$e)),...R},he={...ye(xe,pn.focusVisible(...$e)),...R},Re={...ye(xe,pn.focusWithinFirstChild(...$e)),...R},Ce=K||ae;let Te;if(Ce){const je=K?{"aria-current":o?"page":void 0}:{"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-expanded":q?!G:void 0,"aria-controls":q?`${D}-children`:void 0};Te=x.jsxs("div",{"data-testid":v,...ae?Re:te,children:[x.jsx(Hy,{ref:w,href:u,as:e,isDisabled:l,onClick:I,...E,...je,...ae?pn.suppressed(zr.splitAction):pn.focusVisible(zr.splitAction),children:ve}),K&&x.jsx("button",{type:"button",onClick:ee,"aria-label":G?C("@astryx.sideNavItem.expand",{label:t}):C("@astryx.sideNavItem.collapse",{label:t}),"aria-expanded":!G,"aria-controls":`${D}-children`,...R,...pn.focusVisible(zr.expandToggle,or.backgroundColor),children:x.jsx(ft,{icon:"chevronDown",size:"lg",color:"inherit",xstyle:[zr.expandChevron,!G&&zr.expandChevronExpanded]})}),ae&&x.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xzye2dw x67bb7w",children:x.jsx(Bl,{value:eP,children:p})})]})}else{const je={"aria-current":o?"page":void 0,"aria-disabled":l||void 0,"aria-expanded":q?!G:void 0,"aria-controls":q?`${D}-children`:void 0,"data-testid":v};Te=x.jsx(Hy,{ref:w,href:u,as:e,isDisabled:l,onClick:I,...E,...je,...he,children:ve})}return x.jsxs("div",{ref:O,...de(zr.root,S),children:[Te,j&&!T&&x.jsx("div",{id:`${D}-children`,role:"group","aria-labelledby":`${D}-label`,"aria-hidden":G,inert:G?!0:void 0,...{0:{className:"xrvj5dj x1tu4anv x1qn9uv2 x80gvsz x12w9bfk xlr8y92"},1:{className:"xrvj5dj x1qn9uv2 x80gvsz x12w9bfk xlr8y92 xihq33y"}}[!!G<<0],children:x.jsxs("div",{className:"xb3r6kr x2lwn1j x31w388",children:[x.jsx("span",{id:`${D}-label`,hidden:!0,children:t}),m]})})]})}hx.displayName="SideNavItem";const nP={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",k8WAf4:"xu0wf1k",$$css:!0}};function mp({ref:e,title:t,subtitle:r,children:s,endContent:o,isHeaderHidden:l=!1,xstyle:u,className:f,style:d,"data-testid":p,...m}){const{isCollapsed:y}=k0(),v=`${g.useId()}-title`,w=x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"x78zum5 xdt5ytf x98rzlu xeuugli",children:[x.jsx("span",{id:v,className:"x141an7d x2mo6ok x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft",children:t}),r&&x.jsx("span",{className:"x141an7d x1ltkj2j xv1l7n4 xb3r6kr xlyipyv xuxw1ft",children:r})]}),o&&x.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4",children:o})]}),S=l||y;return x.jsxs("div",{ref:e,...ye(fe("side-nav-section"),de(nP.root,u),f,d),...m,role:"group","aria-labelledby":v,"data-testid":p,children:[S?x.jsx(Gs,{as:"div",children:w}):x.jsx("div",{className:"x78zum5 x6s0dn4 x1txdalj xf314gf xu0wf1k xt0e3qv x87ps6o",children:w}),x.jsx("div",{className:"x78zum5 xdt5ytf x1lsbc85",children:s})]})}mp.displayName="SideNavSection";const ph={base:{k1xSpc:"xjp7ctv",kMwMTN:"x1tgivj0",kMv6JI:"x9ynric",$$css:!0},light:{kQNsl9:"x19aimcq",$$css:!0},dark:{kQNsl9:"xntwwlm",$$css:!0},system:{kQNsl9:"x108lcm5",$$css:!0}},W1=_p.createContext(!1);W1.displayName="ThemeNestingContext";const Fy=new Set,lE="@layer reset, astryx-base, astryx-theme;";function rP(e){const t=g.useId();g.useInsertionEffect(()=>{if(e.__built)return;const r=`astryx-theme-${e.name}`;if(Fy.has(r))return;Yp(`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:o}=r_(e);Fy.add(r);const l=[()=>Fy.delete(r)];if(s){const u=document.createElement("style");u.setAttribute(Dr("theme-prose"),e.name),u.setAttribute(Dr("id"),t),u.textContent=`${lE}
|
|
88
|
-
@layer reset {
|
|
89
|
-
${s}
|
|
90
|
-
}`,document.head.appendChild(u)}if(o){const u=document.createElement("style");u.setAttribute(Dr("theme"),e.name),u.setAttribute(Dr("id"),t),u.textContent=`${lE}
|
|
91
|
-
@layer astryx-theme {
|
|
92
|
-
${o}
|
|
93
|
-
}`,document.head.appendChild(u)}return(s||o)&&l.push(()=>{const u=document.querySelector(`style[${Dr("theme-prose")}="${e.name}"][${Dr("id")}="${t}"]`),f=document.querySelector(`style[${Dr("theme")}="${e.name}"][${Dr("id")}="${t}"]`);u?.remove(),f?.remove()}),()=>{for(const u of l)u()}},[e,t])}function aP(e,t,r){qn(()=>{if(!e&&!(typeof document>"u"))return t==="light"||t==="dark"?document.documentElement.setAttribute("data-theme",t):document.documentElement.removeAttribute("data-theme"),document.documentElement.setAttribute(Dr("theme"),r),()=>{document.documentElement.removeAttribute("data-theme"),document.documentElement.removeAttribute(Dr("theme"))}},[e,t,r])}function T0({theme:e,mode:t="system",children:r}){const s=g.use(W1);NC(e),rP(e),aP(s,t,e.name);const o=t==="dark"?ph.dark:t==="light"?ph.light:ph.system,l=g.useMemo(()=>({theme:e,mode:t}),[e,t]);return x.jsx(Sd,{value:l,children:x.jsx(W1,{value:!0,children:x.jsx("div",{...de(ph.base,o),"data-astryx-theme":e.name,"data-theme":t==="system"?void 0:t,children:r})})})}T0.displayName="Theme";function sP(e,t){const r=document.createElement("span");r.style.display="none",e.appendChild(r);try{return t.map(s=>(r.style.color=`var(${s})`,Zu(getComputedStyle(r).color)))}finally{r.remove()}}function oP(e){const t=[];let r=e;for(;r!==null;){const o=getComputedStyle(r);if(o.backgroundImage!=="none")return null;const l=Zu(o.backgroundColor);if(l!==null&&l.a>0&&(t.push(l),l.a>=1))break;r=r.parentElement}const s=t.pop();return s===void 0||s.a<1?null:t.reduceRight((o,l)=>kC(l,o),s)}const iP=3;function lP(e,t,r,s){return r===null||s===null?null:t!==null&&Hh(t,e)>=iP?"off":Hh(r,e)>=Hh(s,e)?"dark":"light"}function cP(e,t){const[r,s]=g.useState(null),{tokens:o}=ix(),l=g.useRef(null);return qn(()=>{const u=e.current?.parentElement??null;if(!t||u===null)return;const f=oP(u);if(f===null)return;const d=bT(f),p=l.current;if(p!==null&&p.background===d&&p.tokens===o)return;l.current={background:d,tokens:o};const[m,y,k]=sP(u,["--color-text-primary","--color-on-dark","--color-on-light"]),v=lP(f,m,y,k);v!==null&&s(w=>w===v?w:v)}),t?r:null}function oj({mode:e,fallback:t="dark",children:r}){const s=g.useRef(null),o=cP(s,e==="auto"),l=e==="auto"?o??t:e;return x.jsx("div",{ref:s,...l==="off"?null:{[Dr("media")]:l},...{0:{className:"xjp7ctv"},1:{className:"xjp7ctv x1tgivj0"}}[(l!=="off")<<0],children:r})}oj.displayName="MediaTheme";const ij="--color-syntax-";function uP(e){return ij+e}const Y1=Object.keys(s0).map(e=>e.replace(ij,""));function dP(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function fP(e){const t=Y1.filter(s=>!(s in e.tokens));t.length>0&&$a("defineSyntaxTheme",`"${e.name}": missing tokens: ${t.join(", ")}. All 14 syntax tokens are required.`);const r={};for(const s of Y1)r[s]=dP(e.tokens[s]);return{name:e.name,tokens:r,__inputTokens:{...e.tokens}}}function hP(e){const t={};for(const r of Y1)t[uP(r)]=e.tokens[r];return t}const lj=g.createContext(null);lj.displayName="SyntaxThemeContext";function cj({theme:e,children:t}){const r=g.useMemo(()=>hP(e),[e]),s=g.useMemo(()=>({theme:e}),[e]);return x.jsx(lj,{value:s,children:x.jsx("div",{style:r,"data-astryx-syntax-theme":e.name,children:t})})}cj.displayName="SyntaxTheme";function pP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 xP=g.forwardRef(pP);function gP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 X1=g.forwardRef(gP);function mP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 uj=g.forwardRef(mP);function yP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 px=g.forwardRef(yP);function bP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 Z1=g.forwardRef(bP);function kP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 dj=g.forwardRef(kP);function vP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 fj=g.forwardRef(vP);function wP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const SP=g.forwardRef(wP);function EP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 $P=g.forwardRef(EP);function TP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 hj=g.forwardRef(TP);function CP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 jP=g.forwardRef(CP);function RP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const AP=g.forwardRef(RP);function MP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 pj=g.forwardRef(MP);function NP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 zP=g.forwardRef(NP);function LP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 DP=g.forwardRef(LP);function OP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 IP=g.forwardRef(OP);function _P({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 qP=g.forwardRef(_P);function PP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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"}),g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const xj=g.forwardRef(PP);function BP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 HP=g.forwardRef(BP);function FP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 C0=g.forwardRef(FP);function UP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 xx=g.forwardRef(UP);function VP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 GP=g.forwardRef(VP);function KP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 WP=g.forwardRef(KP);function YP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 XP=g.forwardRef(YP);function ZP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 gj=g.forwardRef(ZP);function QP({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 JP=g.forwardRef(QP);function eB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 tB=g.forwardRef(eB);function nB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 rB=g.forwardRef(nB);function aB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 j0=g.forwardRef(aB);function sB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 oB=g.forwardRef(sB);function iB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))}const mj=g.forwardRef(iB);function lB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 cB=g.forwardRef(lB);function uB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 dB=g.forwardRef(uB);function fB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 Q1=g.forwardRef(fB);function hB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 pB=g.forwardRef(hB);function xB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 gB=g.forwardRef(xB);function mB({title:e,titleId:t,...r},s){return g.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},r),e?g.createElement("title",{id:t},e):null,g.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 yj=g.forwardRef(mB);const yB=e=>e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function bB(e,t,r=[]){if(t==null)throw new Error("[lucide]: iconNode is required when icon name is used");return{name:yB(e),size:24,node:t,...r.length>0?{aliases:r}:{}}}const kB=e=>{let t="",r=!1;for(const s of e){if(s==="-"||s==="_"||s<=" "){r=t.length>0;continue}t.length===0?t+=s.toLowerCase():t+=r?s.toUpperCase():s,r=!1}return t};const vB=e=>{const t=kB(e);return t.charAt(0).toUpperCase()+t.slice(1)};const J1=(...e)=>e.filter((t,r,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===r).join(" ").trim();const ui={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 Uy(e){return e!=null}function wB(e,t={}){const r=t.attributeNames??{},s=k=>r[k]??k,o=e.size??e.width??ui.width,l=e.size??e.height??ui.height,u=e.aliases?.filter(k=>typeof k=="string"&&k.trim()!=="").map(k=>`lucide-${k}`)??[],f=[...e.name?[`lucide-${e.name}`]:[],...u],d=t.className?.split(" ").filter(Boolean)??[],p=t.includeDefaultClasses===!1?J1(...d):J1("lucide",...f,...d),m=t.absoluteStrokeWidth?Number(t.strokeWidth??ui["stroke-width"])*Number(e.size??e.width??ui.width)/Number(t.size??t.width??ui.width):t.strokeWidth??ui["stroke-width"];return["svg",{...Object.entries(ui).reduce((k,[v,w])=>(k[s(v)]=w,k),{}),..."color"in t&&t.color&&{[s("stroke")]:t.color},..."size"in t&&Uy(t.size)&&{[s("width")]:t.size,[s("height")]:t.size},..."width"in t&&Uy(t.width)&&{[s("width")]:t.width},..."height"in t&&Uy(t.height)&&{[s("height")]:t.height},[s("stroke-width")]:m,...p&&{[s("class")]:p},[s("viewBox")]:`0 0 ${o} ${l}`,...t.hasA11yProp===!1?{[s("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(k=>{const[v,w,S]=k,E=t.nonScalingStroke?{[s("vector-effect")]:"non-scaling-stroke",...w}:w;return S?[v,E,S]:[v,E]})]}function SB(e,t={}){return wB(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}const EB=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},$B=g.createContext({}),TB=()=>g.useContext($B),CB=g.forwardRef(({color:e,size:t,width:r,height:s,strokeWidth:o,absoluteStrokeWidth:l,nonScalingStroke:u,className:f="",children:d,iconNode:p=[],icon:m={node:p,aliases:[],size:24},...y},k)=>{const{size:v=24,strokeWidth:w=2,absoluteStrokeWidth:S=!1,nonScalingStroke:E=!1,color:R="currentColor",className:C=""}=TB()??{},T=!!d||EB(y),[A,N,L=[]]=SB(m,{color:e??R,width:r??t??v,height:s??t??v,strokeWidth:o??w,absoluteStrokeWidth:l??S,nonScalingStroke:u??E,className:J1(C,f),hasA11yProp:T,attributes:y});return g.createElement(A,{ref:k,...N},[...L.map(([D,j])=>g.createElement(D,j)),...Array.isArray(d)?d:[d]])});function qt(e,t=[],r=[]){const s=typeof e=="string"?bB(e,t,r):e,o=g.forwardRef(({className:l,...u},f)=>g.createElement(CB,{ref:f,icon:s,className:l,...u}));return s.name&&(o.displayName=vB(s.name)),o}const bj={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};bj.node;const kj=qt(bj);const vj={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"}]]};vj.node;const wj=qt(vj);const Sj={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Sj.node;const Ej=qt(Sj);const $j={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"}]]};$j.node;const Tj=qt($j);const Cj={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"}]]};Cj.node;const jj=qt(Cj);const Rj={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Rj.node;const Aj=qt(Rj);const Mj={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Mj.node;const Nj=qt(Mj);const zj={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};zj.node;const Lj=qt(zj);const Dj={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};Dj.node;const Oj=qt(Dj);const Ij={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"}]]};Ij.node;const _j=qt(Ij);const qj={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"}]]};qj.node;const Pj=qt(qj);const Bj={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"]};Bj.node;const Hj=qt(Bj);const Fj={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"]};Fj.node;const Uj=qt(Fj);const Vj={name:"clock",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]};Vj.node;const Gj=qt(Vj);const Kj={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"]};Kj.node;const Wj=qt(Kj);const Yj={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"}]]};Yj.node;const Xj=qt(Yj);const Zj={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"]};Zj.node;const Qj=qt(Zj);const Jj={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"}]]};Jj.node;const e4=qt(Jj);const t4={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"}]]};t4.node;const n4=qt(t4);const r4={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"]};r4.node;const a4=qt(r4);const s4={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"}]]};s4.node;const o4=qt(s4);const i4={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};i4.node;const l4=qt(i4);const c4={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"}]]};c4.node;const u4=qt(c4);const d4={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};d4.node;const f4=qt(d4);const h4={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]};h4.node;const p4=qt(h4);const x4={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"]};x4.node;const g4=qt(x4);const m4={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"}]]};m4.node;const y4=qt(m4);const b4={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"}]]};b4.node;const k4=qt(b4);const v4={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};v4.node;const w4=qt(v4);var It={size:"1em","aria-hidden":!0},jB={close:x.jsx(w4,{...It}),chevronDown:x.jsx(Nj,{...It}),chevronLeft:x.jsx(Lj,{...It}),chevronRight:x.jsx(Oj,{...It}),chevronsLeft:x.jsx(_j,{...It}),chevronsRight:x.jsx(Pj,{...It}),check:x.jsx(Aj,{...It}),success:x.jsx(Hj,{...It}),error:x.jsx(Uj,{...It}),warning:x.jsx(g4,{...It}),info:x.jsx(o4,{...It}),calendar:x.jsx(Tj,{...It}),clock:x.jsx(Gj,{...It}),externalLink:x.jsx(e4,{...It}),menu:x.jsx(l4,{...It}),moreHorizontal:x.jsx(Qj,{...It}),search:x.jsx(f4,{...It}),upload:x.jsx(y4,{...It}),arrowUp:x.jsx(Ej,{...It}),arrowDown:x.jsx(kj,{...It}),arrowsUpDown:x.jsx(wj,{...It}),funnel:x.jsx(a4,{...It}),eyeSlash:x.jsx(n4,{...It}),viewColumns:x.jsx(Wj,{...It}),copy:x.jsx(Xj,{...It}),checkDouble:x.jsx(jj,{...It}),wrench:x.jsx(k4,{...It}),stop:x.jsx(p4,{...It}),microphone:x.jsx(u4,{...It})},RB={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:Lr,cyan:So,green:br,neutral:ze,orange:va,pink:Eo,purple:wa,red:In,teal:gs,yellow:kr}=RB,Zt=(e,t)=>`${e}${t}`,AB=fP({name:"astryx-neutral",tokens:{keyword:[wa.light[30],wa.light[80]],string:[br.light[30],br.light[80]],comment:[ze.light[45],ze.dark[65]],number:[va.light[30],va.dark[80]],function:[Lr.light[30],Lr.dark[80]],type:[wa.light[30],wa.light[80]],variable:[ze.light[5],ze.dark[90]],operator:[ze.light[45],ze.dark[65]],constant:[va.light[30],va.dark[80]],tag:[In.light[30],In.dark[80]],attribute:[kr.light[30],kr.light[80]],property:[gs.light[30],gs.light[80]],punctuation:[ze.light[45],ze.dark[65]],background:[ze.light[100],ze.dark[5]]}}),MB={"--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":[Lr.light[85],Zt(Lr.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":[Zt(In.light[70],"0D"),Zt(In.dark[65],"0D")],"--astryx-theme-neutral-color-destructive-overlay-pressed":[Zt(In.light[70],"1A"),Zt(In.dark[65],"1A")]},Gn={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)"},NB=BC({name:"neutral",localTokens:MB,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:AB,tokens:{"--color-background-surface":[ze.light[100],ze.dark[15]],"--color-background-body":[ze.light[95],ze.dark[10]],"--color-background-card":[ze.light[100],ze.dark[10]],"--color-background-popover":[ze.light[100],ze.dark[10]],"--color-background-muted":[ze.light[95],ze.dark[10]],"--color-accent":[ze.light[10],ze.dark[95]],"--color-accent-muted":[ze.light[95],ze.dark[15]],"--color-neutral":[Zt(ze.light[0],"0F"),Zt(ze.dark[100],"1A")],"--color-overlay":[Zt(ze.light[0],"80"),Zt(ze.dark[0],"CC")],"--color-overlay-hover":[Zt(ze.light[0],"0D"),Zt(ze.dark[100],"0D")],"--color-overlay-pressed":[Zt(ze.light[0],"1A"),Zt(ze.dark[100],"1A")],"--color-text-primary":[ze.light[0],ze.dark[100]],"--color-text-secondary":[ze.light[30],ze.dark[65]],"--color-text-disabled":[ze.light[60],ze.dark[35]],"--color-text-accent":[ze.light[10],ze.dark[95]],"--color-on-dark":ze.light[100],"--color-on-light":ze.light[5],"--color-on-accent":[ze.light[100],ze.dark[5]],"--color-on-success":[ze.light[100],ze.dark[5]],"--color-on-error":[ze.light[100],ze.dark[5]],"--color-on-warning":ze.light[5],"--color-icon-accent":[ze.light[10],ze.dark[95]],"--color-icon-primary":[ze.light[0],ze.dark[100]],"--color-icon-secondary":[ze.light[45],ze.dark[65]],"--color-icon-disabled":[ze.light[60],ze.dark[35]],"--color-success":[br.light[25],br.light[80]],"--color-error":[In.light[25],In.dark[85]],"--color-warning":[kr.light[25],kr.light[85]],"--color-success-muted":[br.dark[85],Zt(br.light[75],"3D")],"--color-error-muted":[In.light[85],Zt(In.dark[75],"3D")],"--color-warning-muted":[kr.dark[90],Zt(kr.light[75],"3D")],"--color-border":[Zt(ze.light[0],"14"),Zt(ze.dark[100],"1A")],"--color-border-emphasized":[ze.light[85],ze.dark[35]],"--color-skeleton":[ze.light[95],ze.dark[35]],"--color-shadow":[Zt(ze.light[0],"1A"),Zt(ze.dark[0],"4D")],"--color-tint-hover":["black","white"],"--color-background-red":[In.light[85],In.dark[25]],"--color-border-red":[In.light[80],In.light[65]],"--color-icon-red":[In.light[25],In.dark[75]],"--color-text-red":[In.light[25],In.dark[80]],"--color-background-orange":[va.light[85],va.dark[25]],"--color-border-orange":[va.light[85],va.dark[65]],"--color-icon-orange":[va.light[25],va.light[75]],"--color-text-orange":[va.light[25],va.dark[80]],"--color-background-yellow":[kr.dark[90],kr.dark[25]],"--color-border-yellow":[kr.dark[80],kr.light[65]],"--color-icon-yellow":[kr.light[25],kr.light[75]],"--color-text-yellow":[kr.light[25],kr.light[80]],"--color-background-green":[br.dark[85],br.dark[25]],"--color-border-green":[br.dark[80],br.light[65]],"--color-icon-green":[br.light[25],br.light[75]],"--color-text-green":[br.light[25],br.light[75]],"--color-background-teal":[gs.light[85],gs.dark[25]],"--color-border-teal":[gs.light[80],gs.dark[65]],"--color-icon-teal":[gs.light[25],gs.dark[75]],"--color-text-teal":[gs.light[25],gs.light[80]],"--color-background-cyan":[So.dark[85],So.dark[25]],"--color-border-cyan":[So.dark[80],So.dark[65]],"--color-icon-cyan":[So.light[25],So.dark[75]],"--color-text-cyan":[So.light[25],So.dark[80]],"--color-background-blue":[Lr.light[85],Lr.dark[25]],"--color-border-blue":[Lr.light[80],Lr.dark[65]],"--color-icon-blue":[Lr.light[25],Lr.dark[75]],"--color-text-blue":[Lr.light[25],Lr.dark[80]],"--color-background-purple":[wa.light[90],wa.dark[25]],"--color-border-purple":[wa.light[85],wa.light[70]],"--color-icon-purple":[wa.light[25],wa.light[75]],"--color-text-purple":[wa.light[25],wa.dark[80]],"--color-background-pink":[Eo.light[85],Eo.dark[25]],"--color-border-pink":[Eo.light[85],Eo.light[70]],"--color-icon-pink":[Eo.light[25],Eo.dark[75]],"--color-text-pink":[Eo.light[25],Eo.dark[80]],"--color-background-gray":[ze.light[90],ze.dark[20]],"--color-border-gray":[ze.light[85],ze.dark[15]],"--color-icon-gray":[ze.light[30],ze.dark[65]],"--color-text-gray":[ze.light[10],ze.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 ${Zt(Lr.light[50],"4D")}`,"--shadow-inset-selected":`inset 0px 0px 0px 2px ${Zt(Lr.light[50],"80")}`,"--shadow-inset-success":`inset 0px 0px 0px 2px ${Zt(br.light[45],"4D")}`,"--shadow-inset-warning":`inset 0px 0px 0px 2px ${Zt(kr.light[85],"4D")}`,"--shadow-inset-error":`inset 0px 0px 0px 2px ${Zt(In.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:Gn.accent,color:"var(--color-on-accent)"},"variant:neutral":{backgroundColor:"var(--color-background-gray)",color:"var(--color-text-gray)"},"variant:success":{backgroundColor:Gn.success,color:"var(--color-on-success)"},"variant:warning":{backgroundColor:Gn.warning,color:"var(--color-on-warning)"},"variant:error":{backgroundColor:Gn.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:Gn.success},"variant:warning":{backgroundColor:Gn.warning},"variant:error":{backgroundColor:Gn.error},"variant:accent":{backgroundColor:Gn.accent}},"avatar-status-dot":{"variant:success":{backgroundColor:Gn.success},"variant:error":{backgroundColor:Gn.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":Gn.accent},"status:success":{"--color-success":Gn.success},"status:warning":{"--color-warning":Gn.warning},"status:error":{"--color-error":Gn.error}},switch:{base:{"--color-background-gray":"var(--color-border-emphasized)"}},"progress-bar":{base:{"--color-background-muted":"var(--color-border-emphasized)"},"variant:accent":{"--color-accent":Gn.accent},"variant:success":{"--color-success":Gn.success},"variant:warning":{"--color-warning":Gn.warning},"variant:error":{"--color-error":Gn.error}},card:{base:{padding:"var(--spacing-3)"}},section:{base:{padding:"var(--spacing-3)"}}},icons:jB});const cE='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',zB=BC({name:"foundry",extends:NB,typography:{scale:{base:14,ratio:1.2},body:{family:"Poppins",fallbacks:cE},heading:{family:"Poppins",fallbacks:cE,weights:{3:"bold",4:"bold"}},code:{family:"ui-monospace",fallbacks:'"SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace'}}}),R0=g.createContext(null);R0.displayName="TitlebarActionsContext";function S4(){const e=g.use(R0);if(!e)throw new Error("Titlebar actions must be used within TitlebarActionsProvider");return e}function LB(){return S4().setTarget}function DB({children:e}){const[t,r]=g.useState(null);return x.jsx(R0,{value:{target:t,setTarget:r},children:e})}function Ed({children:e}){const{target:t}=S4();return t?xd.createPortal(e,t):null}const Qe=e=>typeof e=="string",$u=()=>{let e,t;const r=new Promise((s,o)=>{e=s,t=o});return r.resolve=e,r.reject=t,r},xh=e=>e==null?"":String(e),OB=(e,t,r)=>{e.forEach(s=>{t[s]&&(r[s]=t[s])})},IB=/###/g,uE=e=>e&&e.includes("###")?e.replace(IB,"."):e,dE=e=>!e||Qe(e),Bu=(e,t,r)=>{const s=Qe(t)?t.split("."):t;let o=0;for(;o<s.length-1;){if(dE(e))return{};const l=uE(s[o]);!e[l]&&r&&(e[l]=new r),Object.prototype.hasOwnProperty.call(e,l)?e=e[l]:e={},++o}return dE(e)?{}:{obj:e,k:uE(s[o])}},fE=(e,t,r)=>{const{obj:s,k:o}=Bu(e,t,Object);if(s!==void 0||t.length===1){s[o]=r;return}let l=t[t.length-1],u=t.slice(0,t.length-1),f=Bu(e,u,Object);for(;f.obj===void 0&&u.length;)l=`${u[u.length-1]}.${l}`,u=u.slice(0,u.length-1),f=Bu(e,u,Object),f?.obj&&typeof f.obj[`${f.k}.${l}`]<"u"&&(f.obj=void 0);f.obj[`${f.k}.${l}`]=r},_B=(e,t,r,s)=>{const{obj:o,k:l}=Bu(e,t,Object);o[l]=o[l]||[],o[l].push(r)},yp=(e,t)=>{const{obj:r,k:s}=Bu(e,t);if(r&&Object.prototype.hasOwnProperty.call(r,s))return r[s]},qB=(e,t,r)=>{const s=yp(e,r);return s!==void 0?s:yp(t,r)},E4=(e,t,r)=>{for(const s in t)s!=="__proto__"&&s!=="constructor"&&(Object.prototype.hasOwnProperty.call(e,s)?Qe(e[s])||e[s]instanceof String||Qe(t[s])||t[s]instanceof String?r&&(e[s]=t[s]):E4(e[s],t[s],r):e[s]=t[s]);return e},Is=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),PB={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},BB=e=>Qe(e)?e.replace(/[&<>"'\/]/g,t=>PB[t]):e;class HB{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const r=this.regExpMap.get(t);if(r!==void 0)return r;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 FB=[" ",",","?","!",";"],UB=new HB(20),VB=(e,t,r)=>{t=t||"",r=r||"";const s=FB.filter(u=>!t.includes(u)&&!r.includes(u));if(s.length===0)return!0;const o=UB.getRegExp(`(${s.map(u=>u==="?"?"\\?":u).join("|")})`);let l=!o.test(e);if(!l){const u=e.indexOf(r);u>0&&!o.test(e.substring(0,u))&&(l=!0)}return l},eb=(e,t,r=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const s=t.split(r);let o=e;for(let l=0;l<s.length;){if(!o||typeof o!="object")return;let u,f="";for(let d=l;d<s.length;++d)if(d!==l&&(f+=r),f+=s[d],u=o[f],(typeof u=="function"||f==="__proto__")&&!Object.prototype.hasOwnProperty.call(o,f)&&(u=void 0),u!==void 0){if(["string","number","boolean"].includes(typeof u)&&d<s.length-1)continue;l+=d-l+1;break}o=u}return o},cc=e=>e?.replace(/_/g,"-"),GB={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 bp{constructor(t,r={}){this.init(t,r)}init(t,r={}){this.prefix=r.prefix||"i18next:",this.logger=t||GB,this.options=r,this.debug=r.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,r,s,o){return o&&!this.debug?null:(t=t.map(l=>Qe(l)?l.replace(/[\r\n\x00-\x1F\x7F]/g," "):l),Qe(t[0])&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new bp(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new bp(this.logger,t)}}var ms=new bp;class gx{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(s=>{this.observers[s]||(this.observers[s]=new Map);const o=this.observers[s].get(r)||0;this.observers[s].set(r,o+1)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t].delete(r)}}once(t,r){const s=(...o)=>{r(...o),this.off(t,s)};return this.on(t,s),this}emit(t,...r){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([o,l])=>{for(let u=0;u<l;u++)o(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,l])=>{for(let u=0;u<l;u++)o(t,...r)})}}const hE=new WeakSet;class pE extends gx{constructor(t,r={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=r,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 r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,s,o={}){const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let f;t.includes(".")?f=t.split("."):(f=[t,r],s&&(Array.isArray(s)?f.push(...s):Qe(s)&&l?f.push(...s.split(l)):f.push(s)));const d=yp(this.data,f);return d==null&&!r&&!s&&t.includes(".")&&(t=f[0],r=f[1],s=f.slice(2).join(".")),d!=null||!u||!Qe(s)?d:eb(this.data?.[t]?.[r],s,l)}addResource(t,r,s,o,l={silent:!1}){const u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator;let f=[t,r];s&&(f=f.concat(u?s.split(u):s)),t.includes(".")&&(f=t.split("."),o=r,r=f[1]),this.addNamespaces(r),fE(this.data,f,o),l.silent||this.emit("added",t,r,s,o)}addResources(t,r,s,o={silent:!1}){for(const l in s)(Qe(s[l])||Array.isArray(s[l]))&&this.addResource(t,r,l,s[l],{silent:!0});o.silent||this.emit("added",t,r,s)}addResourceBundle(t,r,s,o,l,u={silent:!1,skipCopy:!1}){let f=[t,r];t.includes(".")&&(f=t.split("."),o=s,s=r,r=f[1]),this.addNamespaces(r);let d=yp(this.data,f)||{};u.skipCopy||(s=JSON.parse(JSON.stringify(s))),o?E4(d,s,l):d={...d,...s},fE(this.data,f,d),u.silent||this.emit("added",t,r,s)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(o=>{const l=r[o];return hE.has(l)?!0:!l||Object.keys(l).length===0?!1:(typeof l=="object"&&hE.add(l),!0)})}toJSON(){return this.data}}var $4={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,s,o){return e.forEach(l=>{t=this.processors[l]?.process(t,r,s,o)??t}),t}};const T4=Symbol("i18next/PATH_KEY");function KB(){const e=[],t=Object.create(null);let r;return t.get=(s,o)=>(r?.revoke?.(),o===T4?e:(e.push(o),r=Proxy.revocable(s,t),r.proxy)),Proxy.revocable(Object.create(null),t).proxy}function Si(e,t){const{[T4]:r}=e(KB()),s=t?.keySeparator??".",o=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(r.length>1&&o){const u=t?.ns,f=l?Array.isArray(u)?u:u?[u]:null:Array.isArray(u)?u:null;if(f&&(l?f:f.length>1?f.slice(1):[]).includes(r[0]))return`${r[0]}${o}${r.slice(1).join(s)}`}return r.join(s)}const Vy=e=>!Qe(e)&&typeof e!="boolean"&&typeof e!="number";class kp extends gx{constructor(t,r={}){super(),OB(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ms.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,r={interpolation:{}}){const s={...r};if(t==null)return!1;const o=this.resolve(t,s);if(o?.res===void 0)return!1;const l=Vy(o.res);return!(s.returnObjects===!1&&l)}extractFromKey(t,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const o=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let l=r.ns||this.options.defaultNS||[];const u=s&&t.includes(s),f=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!VB(t,s,o);if(u&&!f){const d=t.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:t,namespaces:Qe(l)?[l]:l};const p=t.split(s);(s!==o||s===o&&this.options.ns.includes(p[0]))&&(l=p.shift()),t=p.join(o)}return{key:t,namespaces:Qe(l)?[l]:l}}translate(t,r,s){let o=typeof r=="object"?{...r}:r;if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),t==null)return"";typeof t=="function"&&(t=Si(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]),t=t.map(q=>typeof q=="function"?Si(q,{...this.options,...o}):String(q));const l=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,u=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:f,namespaces:d}=this.extractFromKey(t[t.length-1],o),p=d[d.length-1];let m=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;m===void 0&&(m=":");const y=o.lng||this.language,k=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(y?.toLowerCase()==="cimode")return k?l?{res:`${p}${m}${f}`,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:`${p}${m}${f}`:l?{res:f,usedKey:f,exactUsedKey:f,usedLng:y,usedNS:p,usedParams:this.getUsedParamsDetails(o)}:f;const v=this.resolve(t,o);let w=v?.res;const S=v?.usedKey||f,E=v?.exactUsedKey||f,R=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,T=!this.i18nFormat||this.i18nFormat.handleAsObject,A=o.count!==void 0&&!Qe(o.count),N=kp.hasDefaultValue(o),L=A?this.pluralResolver.getSuffix(y,o.count,o):"",D=o.ordinal&&A?this.pluralResolver.getSuffix(y,o.count,{ordinal:!1}):"",j=A&&!o.ordinal&&o.count===0,O=j&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${L}`]||o[`defaultValue${D}`]||o.defaultValue;let M=w;T&&!w&&N&&(M=O);const H=Vy(M),F=Object.prototype.toString.apply(M);if(T&&M&&H&&!R.includes(F)&&!(Qe(C)&&Array.isArray(M))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const q=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,M,{...o,ns:d}):`key '${f} (${this.language})' returned an object instead of string.`;return l?(v.res=q,v.usedParams=this.getUsedParamsDetails(o),v):q}if(u){const q=Array.isArray(M),B=q?[]:{},U=q?E:S;for(const _ in M)if(Object.prototype.hasOwnProperty.call(M,_)){const P=`${U}${u}${_}`;N&&!w?B[_]=this.translate(P,{...o,defaultValue:Vy(O)?O[_]:void 0,joinArrays:!1,ns:d}):B[_]=this.translate(P,{...o,joinArrays:!1,ns:d}),B[_]===P&&(B[_]=M[_])}w=B}}else if(T&&Qe(C)&&Array.isArray(w))w=w.join(C),w&&(w=this.extendTranslation(w,t,o,v,s));else{let q=!1,B=!1;!this.isValidLookup(w)&&N&&(q=!0,w=O),this.isValidLookup(w)||(B=!0,w=f);const _=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&B?void 0:w,P=N&&O!==w&&this.options.updateMissing;if(B||q||P){if(this.logger.log(P?"updateKey":"missingKey",y,p,A&&!P?`${f}${this.pluralResolver.getSuffix(y,o.count,o)}`:f,P?O:w),u){const Q=this.resolve(f,{...o,keySeparator:!1});Q&&Q.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 G=[];const X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(let Q=0;Q<X.length;Q++)G.push(X[Q]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(o.lng||this.language):G.push(o.lng||this.language);const Z=(Q,K,ae)=>{const I=N&&ae!==w?ae:_;this.options.missingKeyHandler?this.options.missingKeyHandler(Q,p,K,I,P,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(Q,p,K,I,P,o),this.emit("missingKey",Q,p,K,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?G.forEach(Q=>{const K=this.pluralResolver.getSuffixes(Q,o);j&&o[`defaultValue${this.options.pluralSeparator}zero`]&&!K.includes(`${this.options.pluralSeparator}zero`)&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(ae=>{Z([Q],f+ae,o[`defaultValue${ae}`]||O)})}):Z(G,f,O))}w=this.extendTranslation(w,t,o,v,s),B&&w===f&&this.options.appendNamespaceToMissingKey&&(w=`${p}${m}${f}`),(B||q)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${m}${f}`:f,q?w:void 0,o))}return l?(v.res=w,v.usedParams=this.getUsedParamsDetails(o),v):w}extendTranslation(t,r,s,o,l){if(this.i18nFormat?.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const d=Qe(t)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(d){const y=t.match(this.interpolator.nestingRegexp);p=y&&y.length}let m=s.replace&&!Qe(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,s.lng||this.language||o.usedLng,s),d){const y=t.match(this.interpolator.nestingRegexp),k=y&&y.length;p<k&&(s.nest=!1)}!s.lng&&o&&o.res&&(s.lng=this.language||o.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,(...y)=>l?.[0]===y[0]&&!s.context?(this.logger.warn(`It seems you are nesting recursively key: ${y[0]} in key: ${r[0]}`),null):this.translate(...y,r),s)),s.interpolation&&this.interpolator.reset()}const u=s.postProcess||this.options.postProcess,f=Qe(u)?[u]:u;return t!=null&&f?.length&&s.applyPostProcessor!==!1&&(t=$4.handle(f,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t,r={}){let s,o,l,u,f;return Qe(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(d=>typeof d=="function"?Si(d,{...this.options,...r}):d)),t.forEach(d=>{if(this.isValidLookup(s))return;const p=this.extractFromKey(d,r),m=p.key;o=m;let y=p.namespaces;this.options.fallbackNS&&(y=y.concat(this.options.fallbackNS));const k=r.count!==void 0&&!Qe(r.count),v=k&&!r.ordinal&&r.count===0,w=r.context!==void 0&&(Qe(r.context)||typeof r.context=="number")&&r.context!=="",S=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);y.forEach(E=>{this.isValidLookup(s)||(f=E,!this.checkedLoadedFor[`${S[0]}-${E}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(f)&&(this.checkedLoadedFor[`${S[0]}-${E}`]=!0,this.logger.warn(`key "${o}" for languages "${S.join(", ")}" won't get resolved as namespace "${f}" 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!!!")),S.forEach(R=>{if(this.isValidLookup(s))return;u=R;const C=[m];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(C,m,R,E,r);else{let A;k&&(A=this.pluralResolver.getSuffix(R,r.count,r));const N=`${this.options.pluralSeparator}zero`,L=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(k&&(r.ordinal&&A.startsWith(L)&&C.push(m+A.replace(L,this.options.pluralSeparator)),C.push(m+A),v&&C.push(m+N)),w){const D=`${m}${this.options.contextSeparator||"_"}${r.context}`;C.push(D),k&&(r.ordinal&&A.startsWith(L)&&C.push(D+A.replace(L,this.options.pluralSeparator)),C.push(D+A),v&&C.push(D+N))}}let T;for(;T=C.pop();)this.isValidLookup(s)||(l=T,s=this.getResource(R,E,T,r))}))})}),{res:s,usedKey:o,exactUsedKey:l,usedLng:u,usedNS:f}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,s,o={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(t,r,s,o):this.resourceStore.getResource(t,r,s,o)}getUsedParamsDetails(t={}){const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&!Qe(t.replace);let o=s?t.replace:t;if(s&&typeof t.count<"u"&&(o={...o,count:t.count}),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!s){o={...o};for(const l of r)delete o[l]}return o}static hasDefaultValue(t){const r="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&s.startsWith(r)&&t[s]!==void 0)return!0;return!1}}class xE{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ms.create("languageUtils"),this.resolveHierarchyCache={}}clearCache(){this.resolveHierarchyCache={}}getScriptPartFromCode(t){if(t=cc(t),!t||!t.includes("-"))return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=cc(t),!t||!t.includes("-"))return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(Qe(t)&&t.includes("-")){let r;try{r=Intl.getCanonicalLocales(t)[0]}catch{}return r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r||(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 r;return t.forEach(s=>{if(r)return;const o=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(o))&&(r=o)}),!r&&this.options.supportedLngs&&t.forEach(s=>{if(r)return;const o=this.getScriptPartFromCode(s);if(this.isSupportedCode(o))return r=o;const l=this.getLanguagePartFromCode(s);if(this.isSupportedCode(l))return r=l;r=this.options.supportedLngs.find(u=>u===l?!0:!u.includes("-")&&!l.includes("-")?!1:!!(u.includes("-")&&!l.includes("-")&&u.slice(0,u.indexOf("-"))===l))}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),Qe(t)&&(t=[t]),Array.isArray(t))return t;if(!r)return t.default||[];let s=t[r];return s||(s=t[this.getScriptPartFromCode(r)]),s||(s=t[this.formatLanguageCode(r)]),s||(s=t[this.getLanguagePartFromCode(r)]),s||(s=t.default),s||[]}toResolveHierarchy(t,r){const s=this.options.fallbackLng,o=Array.isArray(s)?s.join("|"):s;o!==this._cachedFallbackLng&&(this.resolveHierarchyCache={},this._cachedFallbackLng=o);const l=r===void 0||r===!1||Qe(r),u=r===void 0&&typeof this.options.fallbackLng=="function",f=Qe(t)&&l&&!u;let d=null;if(f){let k;r===void 0?k="undefined":r===!1?k="boolean:false":k=`string:${r}`,d=`${t.length}:${t}|${k}`}if(d!==null){const k=this.resolveHierarchyCache[d];if(k!==void 0)return k.slice()}const p=this.getFallbackCodes((r===!1?[]:r)||this.options.fallbackLng||[],t),m=[],y=k=>{k&&(this.isSupportedCode(k)?m.push(k):this.logger.warn(`rejecting language code not found in supportedLngs: ${k}`))};return Qe(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&y(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&y(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&y(this.getLanguagePartFromCode(t))):Qe(t)&&y(this.formatLanguageCode(t)),p.forEach(k=>{const v=this.formatLanguageCode(k);m.includes(v)||y(v)}),d!==null?(this.resolveHierarchyCache[d]=m,m.slice()):m}}const gE={zero:0,one:1,two:2,few:3,many:4,other:5},mE={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class WB{constructor(t,r={}){this.languageUtils=t,this.options=r,this.logger=ms.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,r={}){const s=cc(t==="dev"?"en":t),o=r.ordinal?"ordinal":"cardinal",l=JSON.stringify({cleanedCode:s,type:o});if(l in this.pluralRulesCache)return this.pluralRulesCache[l];let u;try{u=new Intl.PluralRules(s,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),mE;if(!t.match(/-|_/))return mE;const d=this.languageUtils.getLanguagePartFromCode(t);u=this.getRule(d,r)}return this.pluralRulesCache[l]=u,u}needsPlural(t,r={}){let s=this.getRule(t,r);return s||(s=this.getRule("dev",r)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(t,r,s={}){return this.getSuffixes(t,s).map(o=>`${r}${o}`)}getSuffixes(t,r={}){let s=this.getRule(t,r);return s||(s=this.getRule("dev",r)),s?s.resolvedOptions().pluralCategories.sort((o,l)=>gE[o]-gE[l]).map(o=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o}`):[]}getSuffix(t,r,s={}){const o=this.getRule(t,s);return o?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${o.select(r)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",r,s))}}const yE=(e,t,r,s=".",o=!0)=>{let l=qB(e,t,r);return!l&&o&&Qe(r)&&(l=eb(e,r,s),l===void 0&&(l=eb(t,r,s))),l};class bE{constructor(t={}){this.logger=ms.create("interpolator"),this.options=t,this.format=t?.interpolation?.format||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:r,escapeValue:s,useRawValueToEscape:o,prefix:l,prefixEscaped:u,suffix:f,suffixEscaped:d,formatSeparator:p,unescapeSuffix:m,unescapePrefix:y,nestingPrefix:k,nestingPrefixEscaped:v,nestingSuffix:w,nestingSuffixEscaped:S,nestingOptionsSeparator:E,maxReplaces:R,alwaysFormat:C}=t.interpolation;this.escape=r!==void 0?r:BB,this.escapeValue=s!==void 0?s:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=l?Is(l):u||"{{",this.suffix=f?Is(f):d||"}}",this.formatSeparator=p||",",this.unescapePrefix=m?"":y?Is(y):"-",this.unescapeSuffix=this.unescapePrefix?"":m?Is(m):"",this.nestingPrefix=k?Is(k):v||Is("$t("),this.nestingSuffix=w?Is(w):S||Is(")"),this.nestingOptionsSeparator=E||",",this.maxReplaces=R||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(r,s)=>r?.source===s?(r.lastIndex=0,r):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,r,s,o){let l,u,f;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=S=>{if(!S.includes(this.formatSeparator)){const T=yE(r,d,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(T,void 0,s,{...o,...r,interpolationkey:S}):T}const E=S.split(this.formatSeparator),R=E.shift().trim(),C=E.join(this.formatSeparator).trim();return this.format(yE(r,d,R,this.options.keySeparator,this.options.ignoreJSONStructure),C,s,{...o,...r,interpolationkey:R})};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 m=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,y=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,k=[{regex:this.regexpUnescape,safeValue:S=>S},{regex:this.regexp,safeValue:S=>this.escapeValue?this.escape(S):S}],v=[];let w=0;return k.forEach(S=>{for(f=0;l=S.regex.exec(t);){const E=l.index-w,R=v.find(([A,N])=>E>=A&&E<N);if(R){S.regex.lastIndex=R[1]+w;continue}const C=l[1].trim();if(u=p(C),u===void 0)if(typeof m=="function"){const A=m(t,l,o);u=Qe(A)?A:""}else if(o&&Object.prototype.hasOwnProperty.call(o,C))u="";else if(y){u=l[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),u="";else!Qe(u)&&!this.useRawValueToEscape&&(u=xh(u));const T=xh(S.safeValue(u));if(t=t.slice(0,l.index)+T+t.slice(l.index+l[0].length),y?(S.regex===this.regexpUnescape?v.push([l.index,l.index+T.length]):w+=T.length-l[0].length,S.regex.lastIndex+=T.length,S.regex.lastIndex-=l[0].length):S.regex.lastIndex=0,f++,f>=this.maxReplaces)break}}),t}nest(t,r,s={}){let o,l,u;const f=(y,k)=>{const v=this.nestingOptionsSeparator;if(!y.includes(v))return y;const w=y.split(new RegExp(`${Is(v)}[ ]*{`));let S=`{${w[1]}`;y=w[0],S=this.interpolate(S,u);const E=S.match(/'/g),R=S.match(/"/g);((E?.length??0)%2===0&&!R||(R?.length??0)%2!==0)&&(S=S.replace(/'/g,'"'));try{u=JSON.parse(S),k&&(u={...k,...u})}catch(C){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,C),`${y}${v}${S}`}return u.defaultValue&&u.defaultValue.includes(this.prefix)&&delete u.defaultValue,y},d=new RegExp(this.nestingRegexp);let p="",m=0;for(;o=d.exec(t);){let y=[];u={...s},u=u.replace&&!Qe(u.replace)?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;const k=/{.*}/s.test(o[1])?o[1].lastIndexOf("}")+1:o[1].indexOf(this.formatSeparator);if(k!==-1&&(y=o[1].slice(k).split(this.formatSeparator).map(v=>v.trim()).filter(Boolean),o[1]=o[1].slice(0,k)),l=r(f.call(this,o[1].trim(),u),u),l&&o[0]===t&&!Qe(l))return l;Qe(l)||(l=xh(l)),l||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),l=""),y.length&&(l=y.reduce((v,w)=>this.format(v,w,s.lng,{...s,interpolationkey:o[1].trim()}),l.trim())),p+=t.slice(m,o.index)+xh(l),m=d.lastIndex,this.regexp.lastIndex=0}return m?p+t.slice(m):t}}const YB=e=>{let t=e.toLowerCase().trim();const r={};if(e.includes("(")){const s=e.split("(");t=s[0].toLowerCase().trim();const o=s[1].slice(0,-1);t==="currency"&&!o.includes(":")?r.currency||(r.currency=o.trim()):t==="relativetime"&&!o.includes(":")?r.range||(r.range=o.trim()):o.split(";").forEach(u=>{if(u){const[f,...d]=u.split(":"),p=d.join(":").trim().replace(/^'+|'+$/g,""),m=f.trim();r[m]||(r[m]=p),p==="false"&&(r[m]=!1),p==="true"&&(r[m]=!0),isNaN(p)||(r[m]=parseInt(p,10))}})}return{formatName:t,formatOptions:r}},kE=e=>{const t={};return(r,s,o)=>{let l=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(l={...l,[o.interpolationkey]:void 0});let u;try{u=s+JSON.stringify(l)}catch{return e(cc(s),o)(r)}let f=t[u];return f||(f=e(cc(s),o),t[u]=f),f(r)}},XB=e=>(t,r,s)=>e(cc(r),s)(t);class ZB{constructor(t={}){this.logger=ms.create("formatter"),this.options=t,this.init(t)}init(t,r={interpolation:{}}){this.formatSeparator=r.interpolation.formatSeparator||",";const s=r.cacheInBuiltFormats?kE:XB;this.formats={number:s((o,l)=>{const u=new Intl.NumberFormat(o,{...l});return f=>u.format(f)}),currency:s((o,l)=>{const u=new Intl.NumberFormat(o,{...l,style:"currency"});return f=>u.format(f)}),datetime:s((o,l)=>{const u=new Intl.DateTimeFormat(o,{...l});return f=>u.format(f)}),relativetime:s((o,l)=>{const u=new Intl.RelativeTimeFormat(o,{...l});return f=>u.format(f,l.range||"day")}),list:s((o,l)=>{const u=new Intl.ListFormat(o,{...l});return f=>u.format(f)})}}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=kE(r)}format(t,r,s,o={}){if(!r||t==null)return t;const l=r.split(this.formatSeparator),u=[];for(let d=0;d<l.length;d++){let p=l[d];for(;p.indexOf("(")>-1&&!p.includes(")")&&d+1<l.length;)p=`${p}${this.formatSeparator}${l[++d]}`;u.push(p)}return u.reduce((d,p)=>{const{formatName:m,formatOptions:y}=YB(p);if(this.formats[m]){let k=d;try{const v=o?.formatParams?.[o.interpolationkey]||{},w=v.locale||v.lng||o.locale||o.lng||s;k=this.formats[m](d,w,{...y,...o,...v})}catch(v){this.logger.warn(v)}return k}else this.logger.warn(`there was no format function for ${m}`);return d},t)}}const QB=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class JB extends gx{constructor(t,r,s,o={}){super(),this.backend=t,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=o,this.logger=ms.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,o.backend,o)}queueLoad(t,r,s,o){const l={},u={},f={},d={};return t.forEach(p=>{let m=!0;r.forEach(y=>{const k=`${p}|${y}`;!s.reload&&this.store.hasResourceBundle(p,y)?this.state[k]=2:this.state[k]<0||(this.state[k]===1?u[k]===void 0&&(u[k]=!0):(this.state[k]=1,m=!1,u[k]===void 0&&(u[k]=!0),l[k]===void 0&&(l[k]=!0),d[y]===void 0&&(d[y]=!0)))}),m||(f[p]=!0)}),(Object.keys(l).length||Object.keys(u).length)&&this.queue.push({pending:u,pendingCount:Object.keys(u).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(l),pending:Object.keys(u),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(d)}}loaded(t,r,s){const o=t.split("|"),l=o[0],u=o[1];r&&this.emit("failedLoading",l,u,r),!r&&s&&this.store.addResourceBundle(l,u,s,void 0,void 0,{skipCopy:!0}),this.state[t]=r?-1:2,r&&s&&(this.state[t]=0);const f={};this.queue.forEach(d=>{_B(d.loaded,[l],u),QB(d,t),r&&d.errors.push(r),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(p=>{f[p]||(f[p]={});const m=d.loaded[p];m.length&&m.forEach(y=>{f[p][y]===void 0&&(f[p][y]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",f),this.queue=this.queue.filter(d=>!d.done)}read(t,r,s,o=0,l=this.retryTimeout,u){if(!t.length)return u(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:s,tried:o,wait:l,callback:u});return}this.readingCalls++;const f=(p,m)=>{if(this.readingCalls--,this.waitingReads.length>0){const y=this.waitingReads.shift();this.read(y.lng,y.ns,y.fcName,y.tried,y.wait,y.callback)}if(p&&m&&o<this.maxRetries){setTimeout(()=>{this.read(t,r,s,o+1,l*2,u)},l);return}u(p,m)},d=this.backend[s].bind(this.backend);if(d.length===2){try{const p=d(t,r);p&&typeof p.then=="function"?p.then(m=>f(null,m)).catch(f):f(null,p)}catch(p){f(p)}return}return d(t,r,f)}prepareLoading(t,r,s={},o){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();Qe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Qe(r)&&(r=[r]);const l=this.queueLoad(t,r,s,o);if(!l.toLoad.length)return l.pending.length||o(),null;l.toLoad.forEach(u=>{this.loadOne(u)})}load(t,r,s){this.prepareLoading(t,r,{},s)}reload(t,r,s){this.prepareLoading(t,r,{reload:!0},s)}loadOne(t,r=""){const s=t.split("|"),o=s[0],l=s[1];this.read(o,l,"read",void 0,void 0,(u,f)=>{u&&this.logger.warn(`${r}loading namespace ${l} for language ${o} failed`,u),!u&&f&&this.logger.log(`${r}loaded namespace ${l} for language ${o}`,f),this.loaded(t,u,f)})}saveMissing(t,r,s,o,l,u={},f=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${s}" as the namespace "${r}" 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 d={...u,isUpdate:l},p=this.backend.create.bind(this.backend);if(p.length<6)try{let m;p.length===5?m=p(t,r,s,o,d):m=p(t,r,s,o),m&&typeof m.then=="function"?m.then(y=>f(null,y)).catch(f):f(null,m)}catch(m){f(m)}else p(t,r,s,o,f,d)}!t||!t[0]||this.store.addResource(t[0],r,s,o)}}}const Gy=()=>({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]),Qe(e[1])&&(t.defaultValue=e[1]),Qe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const r=e[3]||e[2];Object.keys(r).forEach(s=>{t[s]=r[s]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),vE=e=>(Qe(e.ns)&&(e.ns=[e.ns]),Qe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Qe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),gh=()=>{},eH=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})};class Hu extends gx{constructor(t={},r){if(super(),this.options=vE(t),this.services={},this.logger=ms,this.modules={external:[]},eH(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(t={},r){this.isInitializing=!0,typeof t=="function"&&(r=t,t={}),t.defaultNS==null&&t.ns&&(Qe(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const s=Gy();this.options={...s,...this.options,...vE(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 o=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?ms.init(o(this.modules.logger),this.options):ms.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=ZB;const m=new xE(this.options);this.store=new pE(this.options.resources,this.options);const y=this.services;y.logger=ms,y.resourceStore=this.store,y.languageUtils=m,y.pluralResolver=new WB(m,{prepend:this.options.pluralSeparator}),p&&(y.formatter=o(p),y.formatter.init&&y.formatter.init(y,this.options),this.options.interpolation.format=y.formatter.format.bind(y.formatter)),y.interpolator=new bE(this.options),y.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},y.backendConnector=new JB(o(this.modules.backend),y.resourceStore,y,this.options),y.backendConnector.on("*",(k,...v)=>{this.emit(k,...v)}),this.modules.languageDetector&&(y.languageDetector=o(this.modules.languageDetector),y.languageDetector.init&&y.languageDetector.init(y,this.options.detection,this.options)),this.modules.i18nFormat&&(y.i18nFormat=o(this.modules.i18nFormat),y.i18nFormat.init&&y.i18nFormat.init(this)),this.translator=new kp(this.services,this.options),this.translator.on("*",(k,...v)=>{this.emit(k,...v)}),this.modules.external.forEach(k=>{k.init&&k.init(this)})}if(this.format=this.options.interpolation.format,r||(r=gh),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=(...m)=>this.store[p](...m)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...m)=>(this.store[p](...m),this)});const f=$u(),d=()=>{const p=(m,y)=>{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),f.resolve(y),r(m,y)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initAsync?d():setTimeout(d,0),f}loadResources(t,r=gh){let s=r;const o=Qe(t)?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(o?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const l=[],u=f=>{if(!f||f==="cimode")return;this.services.languageUtils.toResolveHierarchy(f).forEach(p=>{p!=="cimode"&&(l.includes(p)||l.push(p))})};o?u(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>u(d)),this.options.preload?.forEach?.(f=>u(f)),this.services.backendConnector.load(l,this.options.ns,f=>{!f&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(f)})}else s(null)}reloadResources(t,r,s){const o=$u();return typeof t=="function"&&(s=t,t=void 0),typeof r=="function"&&(s=r,r=void 0),t||(t=this.languages),r||(r=this.options.ns),s||(s=gh),this.services.backendConnector.reload(t,r,l=>{o.resolve(),s(l)}),o}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"&&$4.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 r=0;r<this.languages.length;r++){const s=this.languages[r];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,r){this.isLanguageChangingTo=t;const s=$u();this.emit("languageChanging",t);const o=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},l=(f,d)=>{d?this.isLanguageChangingTo===t&&(o(d),this.translator.changeLanguage(d),this.isLanguageChangingTo=void 0,this.emit("languageChanged",d),this.logger.log("languageChanged",d)):this.isLanguageChangingTo=void 0,s.resolve((...p)=>this.t(...p)),r&&r(f,(...p)=>this.t(...p))},u=f=>{!t&&!f&&this.services.languageDetector&&(f=[]);const d=Qe(f)?f:f&&f[0],p=this.store.hasLanguageSomeTranslations(d)?d:this.services.languageUtils.getBestMatchFromCodes(Qe(f)?[f]:f);p&&(this.language||o(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector?.cacheUserLanguage?.(p)),this.loadResources(p,m=>{l(m,p)})};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,r,s,o){const l=o?.scopeNs,u=(f,d,...p)=>{let m;typeof d!="object"?m=this.options.overloadTranslationOptionHandler([f,d].concat(p)):m={...d},m.lng=m.lng||u.lng,m.lngs=m.lngs||u.lngs;const y=m.ns!==void 0&&m.ns!==null;m.ns=m.ns||u.ns,m.keyPrefix!==""&&(m.keyPrefix=m.keyPrefix||s||u.keyPrefix);const k={...this.options,...m};Array.isArray(l)&&!y&&(k.ns=l),typeof m.keyPrefix=="function"&&(m.keyPrefix=Si(m.keyPrefix,k));const v=this.options.keySeparator||".";let w;return m.keyPrefix&&Array.isArray(f)?w=f.map(S=>(typeof S=="function"&&(S=Si(S,k)),`${m.keyPrefix}${v}${S}`)):(typeof f=="function"&&(f=Si(f,k)),w=m.keyPrefix?`${m.keyPrefix}${v}${f}`:f),this.t(w,m)};return Qe(t)?u.lng=t:u.lngs=t,u.ns=r,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,r={}){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=r.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,l=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const u=(p,m)=>{const y=this.services.backendConnector.state[`${p}|${m}`];return y===-1||y===0||y===2};if(r.precheck){const p=r.precheck(this,u);if(p!==void 0)return p}if(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages)return!0;const{languageUtils:f}=this.services,d=r.lng?f.isSupportedCode(s)&&f.toResolveHierarchy(s,!1)[0]:s;return!!((!d||u(d,t))&&(!o||u(l,t)))}loadNamespaces(t,r){const s=$u();return this.options.ns?(Qe(t)&&(t=[t]),t.forEach(o=>{this.options.ns.includes(o)||this.options.ns.push(o)}),this.loadResources(o=>{s.resolve(),r&&r(o)}),s):(r&&r(),Promise.resolve())}loadLanguages(t,r){const s=$u();Qe(t)&&(t=[t]);const o=this.options.preload||[],l=t.filter(u=>!o.includes(u)&&this.services.languageUtils.isSupportedCode(u));return l.length?(this.options.preload=o.concat(l),this.loadResources(u=>{s.resolve(),r&&r(u)}),s):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!t)return"rtl";try{const o=new Intl.Locale(t);if(o&&o.getTextInfo){const l=o.getTextInfo();if(l&&l.direction)return l.direction}}catch{}const r=["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 xE(Gy());return t.toLowerCase().indexOf("-latn")>1?"ltr":r.includes(s.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},r){const s=new Hu(t,r);return s.createInstance=Hu.createInstance,s}cloneInstance(t={},r=gh){const s=t.forkResourceStore;s&&delete t.forkResourceStore;const o={...this.options,preload:!1,...t,isClone:!0},l=new Hu(o);if((t.debug!==void 0||t.prefix!==void 0)&&(l.logger=l.logger.clone(t)),["store","services","language"].forEach(f=>{l[f]=this[f]}),l.services={...this.services},l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},s){const f=p=>{const m=Array.isArray(p)?[...p]:{...p};return Object.keys(m).forEach(y=>{m[y]&&typeof m[y]=="object"&&(m[y]=f(m[y]))}),m},d=f(this.store.data);l.store=new pE(d,o),l.services.resourceStore=l.store}if(t.interpolation){const d={...Gy().interpolation,...this.options.interpolation,...t.interpolation},p={...o,interpolation:d};l.services.interpolator=new bE(p)}return l.translator=new kp(l.services,o),l.translator.on("*",(f,...d)=>{l.emit(f,...d)}),l.init(o,r),l.translator.options=o,l.translator.backendConnector.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Bn=Hu.createInstance();Bn.createInstance;Bn.dir;Bn.init;Bn.loadResources;Bn.reloadResources;Bn.use;Bn.changeLanguage;Bn.getFixedT;Bn.t;Bn.exists;Bn.setDefaultNamespace;Bn.hasLoadedNamespace;Bn.loadNamespaces;Bn.loadLanguages;const tH=(e,t,r,s)=>{const o=[r,{code:t,...s||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(o,"warn","react-i18next::",!0);Ai(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},wE={},Gh=(e,t,r,s)=>{Ai(r)&&wE[r]||(Ai(r)&&(wE[r]=new Date),tH(e,t,r,s))},C4=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}},tb=(e,t,r)=>{e.loadNamespaces(t,C4(e,r))},SE=(e,t,r,s)=>{if(Ai(r)&&(r=[r]),e.options.preload&&e.options.preload.indexOf(t)>-1)return tb(e,r,s);r.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,C4(e,s))},nH=(e,t,r={})=>!t.languages||!t.languages.length?(Gh(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:r.lng,precheck:(s,o)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!o(s.isLanguageChangingTo,e))return!1}}),Ai=e=>typeof e=="string",rH=e=>typeof e=="object"&&e!==null,aH=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,sH={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},oH=e=>sH[e],iH=e=>e.replace(aH,oH);let lH={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:iH,transDefaultProps:void 0};const cH=()=>lH;let uH;const dH=()=>uH,j4=g.createContext();class fH{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var Ky={exports:{}},Wy={};var EE;function hH(){if(EE)return Wy;EE=1;var e=Ip();function t(y,k){return y===k&&(y!==0||1/y===1/k)||y!==y&&k!==k}var r=typeof Object.is=="function"?Object.is:t,s=e.useState,o=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function f(y,k){var v=k(),w=s({inst:{value:v,getSnapshot:k}}),S=w[0].inst,E=w[1];return l(function(){S.value=v,S.getSnapshot=k,d(S)&&E({inst:S})},[y,v,k]),o(function(){return d(S)&&E({inst:S}),y(function(){d(S)&&E({inst:S})})},[y]),u(v),v}function d(y){var k=y.getSnapshot;y=y.value;try{var v=k();return!r(y,v)}catch{return!0}}function p(y,k){return k()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:f;return Wy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Wy}var $E;function pH(){return $E||($E=1,Ky.exports=hH()),Ky.exports}var xH=pH();const gH=(e,t)=>{if(Ai(t))return t;if(rH(t)&&Ai(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const r=e[e.length-1];return typeof r=="function"?"":r}return e},mH={t:gH,ready:!1},yH=()=>()=>{},bH=(e,t={})=>{const{i18n:r}=t,{i18n:s,defaultNS:o}=g.useContext(j4)||{},l=r||s||dH();l&&!l.reportNamespaces&&(l.reportNamespaces=new fH),l||Gh(l,"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=g.useMemo(()=>({...cH(),...l?.options?.react,...t}),[l,t]),{useSuspense:f,keyPrefix:d,bindI18n:p,bindI18nStore:m}=u,y=o||l?.options?.defaultNS,k=Ai(y)?[y]:y||["translation"],v=JSON.stringify(k),w=g.useMemo(()=>k,[v]);l?.reportNamespaces?.addUsedNamespaces?.(w);const S=g.useRef(0),E=g.useCallback(B=>{if(!l)return yH;const U=()=>{S.current+=1,B()};return p&&l.on(p,U),m&&l.store.on(m,U),()=>{p&&p.split(" ").forEach(_=>l.off(_,U)),m&&m.split(" ").forEach(_=>l.store.off(_,U))}},[l,p,m]),R=g.useRef(),C=g.useCallback(()=>{if(!l)return mH;const B=!!(l.isInitialized||l.initializedStoreOnce)&&w.every(Q=>nH(Q,l,u)),U=t.lng||l.language,_=S.current,P=typeof d=="function"?Si(d,{...l.options,ns:w}):d,G=R.current;if(G&&G.i18n===l&&G.ready===B&&G.lng===U&&G.namespaces===w&&G.keyPrefix===P&&G.revision===_)return G;const Z={t:l.getFixedT(U,u.nsMode==="fallback"?w:w[0],d,{scopeNs:w}),i18n:l,ready:B,lng:U,namespaces:w,keyPrefix:P,revision:_};return R.current=Z,Z},[l,w,d,u,t.lng]),[T,A]=g.useState(0);let{t:N,ready:L}=xH.useSyncExternalStore(E,C,C),D;l&&f&&!L&&(D=new Promise(B=>{const U=()=>B();t.lng?SE(l,t.lng,w,U):tb(l,w,U)}),{t:N,ready:L}=C()),g.useEffect(()=>{if(l&&!L&&!f){const B=()=>A(U=>U+1);t.lng?SE(l,t.lng,w,B):tb(l,w,B)}},[l,t.lng,w,L,f,T]);const j=l||{},O=g.useRef(null),M=g.useRef(),H=B=>`${B.language}|${B.resolvedLanguage}|${B.languages?.join(",")}`,F=B=>{const U=Object.getOwnPropertyDescriptors(B);U.__original&&delete U.__original;const _=Object.create(Object.getPrototypeOf(B),U);if(!Object.prototype.hasOwnProperty.call(_,"__original"))try{Object.defineProperty(_,"__original",{value:B,writable:!1,enumerable:!1,configurable:!1})}catch{}return _},q=g.useMemo(()=>{const B=j,U=B&&H(B);let _=B;B&&(O.current&&O.current.__original===B?M.current!==U?(_=F(B),O.current=_,M.current=U):_=O.current:(_=F(B),O.current=_,M.current=U));const P=!L&&!f?(...X)=>(Gh(l,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),N(...X)):N,G=[P,_,L];return G.t=P,G.i18n=_,G.ready=L,G},[N,j,L,j.resolvedLanguage,j.language,j.languages]);if(l&&f&&!L){let B=!1;try{B=!1}catch{}throw B&&Gh(l,"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"),D}return q};function kH({i18n:e,defaultNS:t,children:r}){const s=g.useMemo(()=>({i18n:e,defaultNS:t}),[e,t]);return g.createElement(j4.Provider,{value:s},r)}const vH={"@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} 项"},wH={"@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} 項"},SH={"@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} 件選択済み"},mx=g.createContext(null);mx.displayName="ToastContext";const A0=["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(","),EH='[aria-readonly="true"]';function TE(e,t){let r=e;for(;r!=null&&r!==t&&r!==document.body;){if(r.matches(A0)&&!r.matches(EH))return!0;r=r.parentElement}return!1}function $H(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 yx({containerRef:e,interactiveRef:t,onClick:r,href:s,target:o,disabled:l=!1}){g.useEffect(()=>{const d=e.current;d&&d.setAttribute("data-pressable-container","true")},[e]);const u=g.useCallback(d=>{if(l)return;const p=e.current;if(!p||$H(p))return;const m=d.target;if(m instanceof Element&&!(m!==d.currentTarget&&TE(m,p))&&(r?.(d),!d.defaultPrevented&&(s!=null&&Hs(s)&&(o==="_blank"||d.ctrlKey||d.metaKey?window.open(s,"_blank","noopener"):t?.current?t.current.click():window.location.href=s),s==null&&r==null&&t?.current))){const y=new MouseEvent("click",{bubbles:d.bubbles,cancelable:d.cancelable,ctrlKey:d.ctrlKey,metaKey:d.metaKey,shiftKey:d.shiftKey,altKey:d.altKey,button:d.button});t.current.dispatchEvent(y),d.stopPropagation()}},[e,t,r,s,o,l]),f=g.useCallback(d=>{if(l)return;const p=e.current;if(!p)return;const m=d.target;if(!(m instanceof Element))return;d.button===1&&s!=null&&Hs(s)&&(m===d.currentTarget||!TE(m,p))&&window.open(s,"_blank","noopener")},[e,s,l]);return{onClick:u,onMouseUp:f}}const TH="data-astryx-live-region",CH="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;",jH=2e3,vp={polite:null,assertive:null};function R4(e){const t=vp[e];t!=null&&(clearTimeout(t),vp[e]=null)}const wp={polite:new Set,assertive:new Set};function RH(e){for(const t of wp[e])cancelAnimationFrame(t);wp[e].clear()}function AH(e,t){R4(e),vp[e]=setTimeout(()=>{vp[e]=null,t.textContent=""},jH)}let Fa=null;function CE(e){const t=document.createElement("div");return t.setAttribute(TH,e),t.setAttribute("aria-live",e),t.setAttribute("aria-atomic","true"),t.setAttribute("role",e==="assertive"?"alert":"status"),t.style.cssText=CH,document.body.appendChild(t),t}function MH(){return typeof document>"u"?null:Fa?(Fa.polite.isConnected||document.body.appendChild(Fa.polite),Fa.assertive.isConnected||document.body.appendChild(Fa.assertive),Fa):(Fa={polite:CE("polite"),assertive:CE("assertive")},Fa)}function NH(e,t){const r=MH();if(!r)return;const s=t==="assertive"?r.assertive:r.polite;s.textContent="";const o=requestAnimationFrame(()=>{wp[t].delete(o),s.textContent=e});wp[t].add(o),AH(t,s)}function zH(e){if(RH(e),R4(e),!Fa)return;const t=e==="assertive"?Fa.assertive:Fa.polite;t.textContent=""}function vc(){return g.useCallback((e,t="polite")=>{if(!e){zH(t);return}NH(e,t)},[])}const Ei=[],nb=new Set;function A4(){for(const e of nb)e()}function LH(e){const t=Ei.indexOf(e);t!==-1&&Ei.splice(t,1),Ei.push(e),A4()}function Yy(e){const t=Ei.indexOf(e);t!==-1&&(Ei.splice(t,1),A4())}function DH(){return Ei[Ei.length-1]??null}function OH(e){return nb.add(e),()=>{nb.delete(e)}}function IH(e,t){g.useEffect(()=>{const r=e.current;if(!t||r==null)return;const s=()=>{Yy(r)};return r.addEventListener("close",s),LH(r),()=>{r.removeEventListener("close",s),Yy(r)}},[e,t]),g.useLayoutEffect(()=>{const r=e.current;return()=>{r!=null&&Yy(r)}},[e])}const jE=8,_H=.4,RE=48,qH=1.2,PH=1.2,AE="120%",BH=.4,HH=.02;function FH(e,t){return Math.min(Math.max(e/t,0),1)}function Xy(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 UH({direction:e,enabled:t,canPauseTimer:r,isTimerPaused:s,pauseTimer:o,resumeTimer:l,dismiss:u,shouldIgnoreTarget:f}){const d=g.useRef(null),p=g.useRef(null),m=g.useCallback(C=>{const T=d.current,A=p.current;p.current=null,T&&Xy(T),C&&A?.pausedTimer&&l()},[l]),y=g.useCallback((C,T)=>{const A=d.current;if(!A||!t||p.current!=null||f(T,A))return!1;const N=r&&!s();N&&o();const L=Math.max(A.getBoundingClientRect().height,1);return p.current={source:C.source,pointerId:C.pointerId,startX:C.clientX,startY:C.clientY,startTime:Date.now(),direction:e,intent:"pending",pausedTimer:N,surfaceSize:L,dismissThreshold:Math.max(L*_H,RE)},!0},[r,e,t,s,o,f]),k=g.useCallback((C,T,A)=>{const N=p.current,L=d.current;if(!N||!L||C.source!==N.source||C.pointerId!==N.pointerId)return;const D=C.clientX-N.startX,j=C.clientY-N.startY,O=Math.abs(D),M=Math.abs(j);if(N.intent==="pending"){if(O>jE&&O>M){A?.(),m(!0);return}if(M<=jE||M<=O*PH)return;if(N.intent=j*N.direction>0?"vertical":"opposite",N.intent==="opposite"){A?.(),m(!0);return}L.style.setProperty("transition-duration","0s")}T();const H=Math.max(0,j*N.direction),F=FH(H,N.surfaceSize);L.style.setProperty("--_toast-swipe-y",`${H*N.direction}px`),L.style.setProperty("--_toast-swipe-opacity",(1-F*BH).toFixed(3)),L.style.setProperty("--_toast-swipe-scale",(1-F*HH).toFixed(3))},[m]),v=g.useCallback(C=>{const T=p.current,A=d.current;if(!T||!A||C.source!==T.source||C.pointerId!==T.pointerId)return;const N=Math.max(0,(C.clientY-T.startY)*T.direction),L=Math.max(1,Date.now()-T.startTime),D=T.intent==="vertical"&&(N>=T.dismissThreshold||N>=RE&&N/L>qH);if(p.current=null,A.style.removeProperty("transition-duration"),D){Xy(A),A.style.setProperty("--_toast-swipe-exit-y",T.direction===1?AE:`calc(-1 * ${AE})`),u();return}Xy(A),T.pausedTimer&&l()},[u,l]),w=g.useCallback(C=>{C.pointerType==="pen"&&(C.button==null||C.button===0)&&y({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY},C.target)&&d.current?.setPointerCapture?.(C.pointerId)},[y]),S=g.useCallback(C=>{C.pointerType==="pen"&&k({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY},()=>C.preventDefault(),()=>d.current?.releasePointerCapture?.(C.pointerId))},[k]),E=g.useCallback(C=>{C.pointerType==="pen"&&(d.current?.releasePointerCapture?.(C.pointerId),v({source:"pen",pointerId:C.pointerId,clientX:C.clientX,clientY:C.clientY}))},[v]),R=g.useCallback(C=>{C.pointerType==="pen"&&p.current?.source==="pen"&&p.current?.pointerId===C.pointerId&&m(!0)},[m]);return g.useEffect(()=>{const C=d.current;if(!C||!t)return;const T=O=>({source:"touch",pointerId:O.identifier,clientX:O.clientX,clientY:O.clientY}),A=O=>{const M=p.current,H=M?.source==="touch"?M.pointerId:null;return H==null?void 0:[...O.changedTouches].find(F=>F.identifier===H)},N=O=>{if(O.touches?.length!==1){m(!0);return}const M=O.changedTouches[0];M!=null&&y(T(M),O.target)},L=O=>{if(O.touches?.length!==1){m(!0);return}const M=A(O);M&&k(T(M),()=>{O.cancelable&&O.preventDefault()})},D=O=>{if(O.touches.length>0){m(!0);return}const M=A(O);M?v(T(M)):O.touches.length===0&&m(!0)},j=()=>m(!0);return C.addEventListener("touchstart",N,{passive:!0}),C.addEventListener("touchmove",L,{passive:!1}),C.addEventListener("touchend",D,{passive:!0}),C.addEventListener("touchcancel",j,{passive:!0}),()=>{C.removeEventListener("touchstart",N),C.removeEventListener("touchmove",L),C.removeEventListener("touchend",D),C.removeEventListener("touchcancel",j)}},[y,t,v,k,m]),{rootRef:d,bindings:{onPointerDown:w,onPointerMove:S,onPointerUp:E,onPointerCancel:R,onLostPointerCapture:R}}}const VH=`${A0},[tabindex],[contenteditable]:not([contenteditable="false"])`;function GH(e,t){if(!(e instanceof Element))return!1;let r=e;for(;r!=null&&r!==t&&r!==document.body;){if(r.matches(VH))return!0;r=r.parentElement}return!1}function M4({type:e,body:t,endContent:r,isAutoHide:s,autoHideDuration:o,isExiting:l=!1,onDismiss:u,renderContent:f,gestureDirection:d}){const p=Nt(),m=g.useRef(null),y=g.useRef(!1),k=g.useRef(o),v=g.useRef(null),w=g.useRef(u);w.current=u;const S=g.useCallback(()=>{!s||y.current||(m.current&&clearTimeout(m.current),v.current=Date.now(),m.current=setTimeout(()=>{w.current("auto")},k.current))},[s]),E=g.useCallback(()=>{if(!(!s||y.current)&&(y.current=!0,m.current&&(clearTimeout(m.current),m.current=null),v.current!=null)){const M=Date.now()-v.current;k.current=Math.max(k.current-M,1e3)}},[s]),R=g.useCallback(()=>{!s||!y.current||(y.current=!1,S())},[s,S]);g.useEffect(()=>(k.current=o,S(),()=>{m.current&&clearTimeout(m.current)}),[o,S]),g.useEffect(()=>{if(s)return window.addEventListener("blur",E),window.addEventListener("focus",R),()=>{window.removeEventListener("blur",E),window.removeEventListener("focus",R)}},[s,E,R]);const C=g.useCallback(()=>y.current,[]),T=g.useCallback(()=>{w.current("manual")},[]),{rootRef:A,bindings:N}=UH({direction:d,enabled:!l,canPauseTimer:s,isTimerPaused:C,pauseTimer:E,resumeTimer:R,dismiss:T,shouldIgnoreTarget:GH}),L=g.useCallback(()=>{u("manual")},[u]),D=e==="error",{mode:j}=ix(),O=D||j==="light"?"dark":"light";return x.jsx("div",{ref:A,role:D?"alert":"status","aria-live":D?"assertive":"polite","aria-atomic":"true",onMouseEnter:E,onMouseLeave:R,onFocusCapture:E,onBlurCapture:R,...N,...ye(fe("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"}}[!!D<<1|!!l<<0]),children:x.jsx(oj,{mode:"auto",fallback:O,children:f?f({body:t,endContent:r,type:e,isAutoHide:s,autoHideDuration:o,dismiss:L}):x.jsxs("div",{className:"x78zum5 x1cy8zhl xozqiw3 xjcht0a xh8yej3",children:[x.jsx("div",{className:"x98rzlu xeuugli xj0a0fe",children:t}),x.jsxs("div",{className:"x2lah0s x78zum5 x6s0dn4 x1txdalj x1q370uo xmequkd",children:[r,x.jsx(yt,{variant:"ghost",size:"sm",icon:x.jsx(ft,{icon:"close",size:"sm",color:"inherit"}),label:p("@astryx.toast.dismiss"),onClick:L,isIconOnly:!0})]})]})})})}M4.displayName="ToastSurface";const Ml={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(g.isValidElement(e)){const{children:t}=e.props;return rb(t)}return""}const KH=e=>t=>{if(!t.has(e))return t;const r=new Set(t);return r.delete(e),r};function N4({entry:e,isExiting:t,isReversed:r,onExited:s,onDismiss:o}){const l=e.options,u=l.type??"info",f=l.isAutoHide??u!=="error",d=l.autoHideDuration??5e3,[p,m]=g.useState(!1);return x.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"}}[!!r<<2|!!r<<1|!!t<<0],onTransitionEnd:y=>{if(y.target===y.currentTarget&&y.propertyName==="grid-template-rows"){if(t){s(e.id);return}m(!0)}},children:x.jsx("div",{...{0:{className:"xh8yej3 x193iq5w xeuugli x2lwn1j xb3r6kr"},1:{className:"xh8yej3 x193iq5w xeuugli x2lwn1j x1rea2x4"}}[!!(p&&!t)<<0],children:x.jsx(M4,{type:u,body:l.body,endContent:l.endContent,isAutoHide:f,autoHideDuration:d,isExiting:t,gestureDirection:r?-1:1,onDismiss:y=>o(e.id,y),renderContent:l.renderContent})})})}N4.displayName="ToastRow";function z4({position:e="bottomEnd",maxVisible:t=5,inset:r,layerInset:s,isTopLayer:o=!0,children:l}){const u=Nt(),[f,d]=g.useState([]),[p,m]=g.useState(new Set),y=g.useRef(f);y.current=f;const k=g.useRef(null),v=g.useRef(new Set),w=g.useRef(null),S=g.useRef(null),E=g.useRef(null),R=g.useCallback(P=>{if(!P)return null;const G=P.querySelectorAll(A0);for(const X of G)if(!(X.getAttribute("tabindex")==="-1"||X.hasAttribute("disabled")||X.getAttribute("aria-disabled")==="true"))return X;return null},[]),C=vc(),T=g.useCallback(P=>{const{uniqueID:G,collisionBehavior:X="overwrite"}=P.options;if(G&&X==="ignore"&&y.current.some(Q=>Q.options.uniqueID===G))return;const Z=rb(P.options.body);Z&&C(Z,P.options.type==="error"?"assertive":"polite"),d(Q=>G&&Q.find(ae=>ae.options.uniqueID===G)?Q.map(ae=>ae.options.uniqueID===G?P:ae):[...Q,P])},[C]),A=g.useCallback((P,G)=>{if(v.current.has(P))return;v.current.add(P);const X=y.current.find(ae=>ae.id===P);X&&X.options.onHide?.(G);const Z=k.current,Q=document.activeElement,K=Z?.querySelector(`[data-toast-id="${P}"]`)??null;if(K&&Q instanceof Node&&K.contains(Q))if(S.current=P,y.current.filter(I=>I.id!==P).length>0){const I=y.current.findIndex(pe=>pe.id===P),ee=y.current[I+1]??y.current[I-1];E.current=ee?ee.id:"restore"}else E.current="restore";m(ae=>ae.has(P)?ae:new Set(ae).add(P))},[]),N=g.useCallback(P=>{v.current.delete(P),m(KH(P)),d(G=>G.filter(X=>X.id!==P))},[]);g.useLayoutEffect(()=>{const P=S.current,G=E.current;if(P==null||G==null||f.some(Q=>Q.id===P))return;S.current=null,E.current=null;const X=k.current;if(G!=="restore"&&X){const Q=X.querySelector(`[data-toast-id="${G}"]`),K=R(Q)??Q;if(K){K.focus();return}}const Z=w.current;w.current=null,Z&&Z.isConnected?Z.focus():X&&X.focus()},[f,R]);const L=g.useCallback(P=>y.current.find(G=>G.options.uniqueID===P),[]),D=g.useMemo(()=>({addToast:T,removeToast:A,findByUniqueID:L}),[T,A,L]),j=f.slice(-t),O={...jT(s)};r?.top&&(O.top=r.top),r?.bottom&&(O.bottom=r.bottom),r?.start&&(O.insetInlineStart=r.start),r?.end&&(O.insetInlineEnd=r.end);const M=g.useRef(null),[H,F]=g.useState(null);g.useLayoutEffect(()=>{if(!o)return;const P=document.createElement("div");return P.style.display="contents",F(P),()=>{P.remove(),F(null)}},[o]),g.useLayoutEffect(()=>{if(!o||H==null)return;const P=()=>{const G=DH()??M.current;if(G==null)return;if(H.parentNode!==G){const Q=document.activeElement,K=Q instanceof HTMLElement&&H.contains(Q);G.appendChild(H),K&&Q.focus({preventScroll:!0})}const X=k.current;if(X==null||typeof X.showPopover!="function")return;let Z=!1;try{Z=X.matches(":popover-open")}catch{}if(!Z)try{X.showPopover()}catch{}};return P(),OH(P)},[o,H]);const q=f.length>0;g.useEffect(()=>{if(!q)return;const P=G=>{if(G.key!=="F6")return;const X=k.current;if(!X)return;const Z=document.activeElement;if(Z instanceof Node&&X.contains(Z))return;G.preventDefault(),Z instanceof HTMLElement&&(w.current=Z);const Q=X.querySelectorAll("[data-toast-id]"),K=Q[Q.length-1]??null;(R(K)??K??X).focus()};return document.addEventListener("keydown",P),()=>{document.removeEventListener("keydown",P)}},[q,R]);const B=e==="topEnd"?Ml.topEnd:e==="topStart"?Ml.topStart:e==="bottomStart"?Ml.bottomStart:Ml.bottomEnd,U=e==="topEnd"||e==="topStart",_=x.jsx("div",{ref:k,role:q?"region":void 0,"aria-label":q?u("@astryx.toast.viewport"):void 0,tabIndex:q?-1:void 0,popover:o?"manual":void 0,...ye(de(ac.reset,sc.reset,Ml.viewport,Ml.viewportInlineSpan,B),{style:Object.keys(O).length>0?O:void 0}),children:x.jsx(rc,{children:j.map(P=>x.jsx(N4,{entry:P,isExiting:p.has(P.id),isReversed:U,onExited:N,onDismiss:A},P.id))})});return x.jsxs(mx,{value:D,children:[l,o?x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:M,className:"xjp7ctv"}),H!=null?xd.createPortal(_,H):null]}):_]})}z4.displayName="ToastViewport";let ea=null,ME=null;const NE=["data-theme",Dr("theme")];function WH(e){const t=()=>{let s=null;for(const o of NE){const l=document.documentElement.getAttribute(o);l==null?e.removeAttribute(o):(e.setAttribute(o,l),o==="data-theme"&&(s=l))}s==="light"||s==="dark"?e.style.colorScheme=s:e.style.removeProperty("color-scheme")};t(),new MutationObserver(t).observe(document.documentElement,{attributes:!0,attributeFilter:[...NE]})}function YH(){if(ea)return ea;if(typeof document>"u")throw new Error("useToast: Cannot create fallback viewport during SSR. Wrap your app with <LayerProvider> or <AppShell>.");Yp();const e=document.createElement("div");e.setAttribute("data-astryx-toast-fallback",""),document.body.appendChild(e),WH(e);let t;const r=new Promise(u=>{t=u}),s=()=>{const u=g.use(mx),f=g.useRef(!1);return g.useEffect(()=>{u&&!f.current&&(f.current=!0,ea=u,t?.(u))},[u]),null};ME=m$.createRoot(e),ME.render(x.jsx(z4,{children:x.jsx(s,{})}));const o=[],l={addToast:u=>{ea&&ea!==l?ea.addToast(u):(o.push(u),r.then(f=>{for(const d of o)f.addToast(d);o.length=0}))},removeToast:(u,f)=>{ea&&ea!==l&&ea.removeToast(u,f)},findByUniqueID:u=>{if(ea&&ea!==l)return ea.findByUniqueID(u)}};return ea=l,l}let XH=0;function ZH(){return`astryx-toast-${++XH}`}function QH(){const e=g.use(mx);return g.useCallback(r=>{const s=e??YH(),o=ZH(),l={id:o,options:r,createdAt:Date.now()};return s.addToast(l),()=>s.removeToast(o,"manual")},[e])}class ab extends Error{constructor(t,r){super(t),this.code=r,this.name="ApiError"}code}async function Hn(e,t){const r=await fetch(e,t),s=await JH(r);if(!r.ok)throw $d(s,r.status);return s}function $d(e,t){return new ab(tF(e)??(t===void 0?"The request failed":`Request failed with HTTP ${t}`),eF(e))}async function JH(e){try{return await e.json()}catch{return null}}function eF(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 tF(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 L4(e){const t=e instanceof ab?e:new ab(e instanceof Error?e.message:"The request failed");return{ok:!1,error:{code:t.code??"REQUEST_FAILED",message:t.message}}}function Ws(){const e=QH();return g.useCallback(t=>e({...t,isAutoHide:!0,autoHideDuration:2500}),[e])}const D4=new o8({defaultOptions:{queries:{staleTime:3e4,retry:1}}}),Mi={current:()=>["settings","current"]};function M0(){return O4()}function Qa(){return D4.query({queryKey:Mi.current(),queryFn:O4})}async function nF(){return(await Qa()).configFolder}async function rF(){await Hn("/api/settings/config-folder/open",{method:"POST"})}function aF(e){return Td({theme:e})}function sF(e){return Td({language:e})}function oF(e){return Td({timeFormat:e})}function iF(e){return Td({timezone:e})}function lF(e){const t=e.captures;return Td({captures:t?{fetcher:t.fetcher,maxAttempts:t.maxAttempts,scrapeConcurrency:t.scrapeConcurrency,firecrawlApiKey:t.firecrawl.apiKey,deepseekApiKey:t.deepseek.apiKey}:void 0})}async function O4(){const e=await Hn("/api/settings");return I4(e)}async function Td(e){const t=await Hn("/api/settings",{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify(e)});return I4(t)}function I4(e){const t=e.features,r=t.library.captures;return{workspace:e.workspace,features:{...t,library:{...t.library,captures:{...r,firecrawl:{apiKey:r.firecrawl.apiKey},deepseek:{apiKey:r.deepseek.apiKey}}}},configFolder:typeof e.configFolder=="string"?e.configFolder:""}}const N0={"navigation.overview":"Overview","navigation.capturesDescription":"Collect links first, then organize them later.","navigation.jobs":"Jobs","navigation.jobsDescription":"Review scrape history and errors for this capture.","navigation.captures":"Captures","navigation.captureDetails":"Capture details","navigation.captureDetailsDescription":"Read the latest successfully captured page.","navigation.library":"Library","navigation.prompts":"Prompts","navigation.providers":"Providers","navigation.settings":"Settings","navigation.main":"Main","navigation.account":"Account","navigation.back":"Back","navigation.openNavigation":"Open navigation","navigation.windowTitlebar":"Window titlebar","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","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 scrape 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","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 retrieve page content.","settings.capturesNotConfigured":"Not configured","settings.capturesApiKey":"API key","settings.capturesApiKeyDescription":"Authenticates requests to the selected fetch service.","settings.capturesApiKeyPlaceholder":"Enter an API key","settings.capturesMaxAttempts":"Maximum attempts","settings.capturesMaxAttemptsDescription":"Total requests per scrape job, from 1 to 10.","settings.capturesConcurrency":"Scrape concurrency","settings.capturesConcurrencyDescription":"Maximum simultaneous scrape 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 scrape 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.scrapeFailed":"Page fetch failed","captures.jobStatus":"Status","captures.jobStatus.pending":"Pending","captures.jobStatus.running":"Running","captures.jobStatus.succeeded":"Succeeded","captures.jobStatus.failed":"Failed","captures.fetcher":"Fetcher","captures.createdAt":"Created at","captures.updatedAt":"Updated at","captures.error":"Error","captures.noJobsTitle":"No scrape jobs","captures.noJobsDescription":"This capture does not have any scrape history.","captures.noContentTitle":"No captured content yet","captures.noContentDescription":"This capture has no successful page content. Review its jobs or re-capture it.","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 scrape jobs before exporting or importing data.","dataTransfer.archiveHasActiveJobs":"This snapshot contains unfinished scrape 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."},_4={...N0,"navigation.overview":"概览","navigation.captures":"收藏","navigation.captureDetails":"收藏详情","navigation.captureDetailsDescription":"阅读最近一次成功抓取的页面内容。","navigation.library":"资料库","navigation.prompts":"提示词","navigation.providers":"服务提供商","navigation.settings":"设置","navigation.main":"主要功能","navigation.account":"账户","navigation.back":"返回","navigation.openNavigation":"打开导航","navigation.windowTitlebar":"窗口标题栏","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":"搜索设置","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.scrapeFailed":"网页抓取失败","captures.jobStatus":"状态","captures.jobStatus.pending":"等待中","captures.jobStatus.running":"抓取中","captures.jobStatus.succeeded":"已成功","captures.jobStatus.failed":"已失败","captures.fetcher":"抓取服务","captures.createdAt":"创建时间","captures.updatedAt":"更新时间","captures.error":"错误","captures.noJobsTitle":"没有抓取记录","captures.noJobsDescription":"这条收藏还没有抓取历史。","captures.noContentTitle":"还没有抓取内容","captures.noContentDescription":"这条收藏尚无成功抓取的页面内容。请查看抓取记录或重新抓取。","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":"数据传输未能完成。"},cF={..._4,"navigation.overview":"總覽","navigation.captures":"收藏","navigation.captureDetails":"收藏詳情","navigation.captureDetailsDescription":"閱讀最近一次成功抓取的頁面內容。","navigation.library":"資料庫","navigation.prompts":"提示詞","navigation.providers":"服務提供者","navigation.settings":"設定","navigation.main":"主要功能","navigation.account":"帳戶","navigation.back":"返回","navigation.openNavigation":"開啟導覽","navigation.windowTitlebar":"視窗標題列","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":"搜尋設定","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.scrapeFailed":"網頁抓取失敗","captures.jobStatus":"狀態","captures.jobStatus.pending":"等待中","captures.jobStatus.running":"抓取中","captures.jobStatus.succeeded":"已成功","captures.jobStatus.failed":"已失敗","captures.fetcher":"抓取服務","captures.createdAt":"建立時間","captures.updatedAt":"更新時間","captures.error":"錯誤","captures.noJobsTitle":"沒有抓取紀錄","captures.noJobsDescription":"這筆收藏還沒有抓取紀錄。","captures.noContentTitle":"還沒有抓取內容","captures.noContentDescription":"這筆收藏尚無成功抓取的頁面內容。請查看抓取紀錄或重新抓取。","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":"資料傳輸未能完成。"},uF={...N0,"navigation.overview":"概要","navigation.captures":"キャプチャ","navigation.library":"ライブラリ","navigation.prompts":"プロンプト","navigation.providers":"プロバイダー","navigation.settings":"設定","navigation.main":"メイン","navigation.account":"アカウント","navigation.back":"戻る","navigation.openNavigation":"ナビゲーションを開く","navigation.windowTitlebar":"ウィンドウタイトルバー","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":"設定を検索","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.scrapeFailed":"ページの取得に失敗しました","captures.jobStatus":"状態","captures.jobStatus.pending":"待機中","captures.jobStatus.running":"取得中","captures.jobStatus.succeeded":"成功","captures.jobStatus.failed":"失敗","captures.fetcher":"フェッチャー","captures.createdAt":"作成日時","captures.updatedAt":"更新日時","captures.error":"エラー","captures.noJobsTitle":"取得履歴はありません","captures.noJobsDescription":"このキャプチャには取得履歴がありません。","captures.noContentTitle":"取得したコンテンツはまだありません","captures.noContentDescription":"このキャプチャには成功したページコンテンツがありません。取得履歴を確認するか、再取得してください。","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":"データ転送を完了できませんでした。"},dF={"en-US":N0,"zh-CN":_4,"zh-TW":cF,"ja-JP":uF};function fF(e){if(["en-US","zh-CN","zh-TW","ja-JP"].includes(e))return e;const r=new Intl.DateTimeFormat().resolvedOptions().locale.toLowerCase();return r.startsWith("zh-tw")||r.startsWith("zh-hk")?"zh-TW":r.startsWith("zh")?"zh-CN":r.startsWith("ja")?"ja-JP":"en-US"}function rd(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 sb(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"}}function Qt(){const{t:e}=bH(),t=Bn.language||"en-US",r=g.useCallback(s=>e(s),[e]);return g.useMemo(()=>({locale:t,language:t,t:r}),[t,r])}const hF=Object.fromEntries(Object.entries(dF).map(([e,t])=>[e,{translation:t}]));Bn.isInitialized||Bn.init({resources:hF,lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});function pF({children:e}){const r=Ka({queryKey:Mi.current(),queryFn:M0}).data?.workspace["language-region"].language??"system",s=g.useMemo(()=>fF(r),[r]);return g.useEffect(()=>{Bn.changeLanguage(s)},[s]),x.jsx(oC,{locale:s,messages:{"zh-CN":vH,"zh-TW":wH,"ja-JP":SH},children:x.jsx(kH,{i18n:Bn,children:e})})}const zE=1,q4="capture.job.changed",P4="captures.changed",xF="data-transfer.status.changed",gF="data-transfer.imported",mF="providers.changed",yF="settings.changed";function bF(e){let t;try{t=JSON.parse(e)}catch{return null}return!kF(t)||t.version!==zE||typeof t.id!="string"||typeof t.type!="string"||typeof t.occurredAt!="string"||!("data"in t)?null:{version:zE,id:t.id,type:t.type,occurredAt:t.occurredAt,data:t.data}}function kF(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const z0=g.createContext(null);z0.displayName="FoundryEventsContext";function vF({children:e}){const[t,r]=g.useState("connecting"),s=g.useRef(new Set),o=g.useCallback(l=>(s.current.add(l),()=>{s.current.delete(l)}),[]);return g.useEffect(()=>{const l=new EventSource("/api/events"),u=()=>{r("open")},f=()=>{r("connecting")},d=p=>{const m=bF(p.data);if(m)for(const y of s.current)y(m)};return l.addEventListener("open",u),l.addEventListener("error",f),l.addEventListener("foundry",d),()=>{l.removeEventListener("open",u),l.removeEventListener("error",f),l.removeEventListener("foundry",d),l.close()}},[]),x.jsx(z0,{value:{status:t,subscribe:o},children:e})}function bx(){const e=g.use(z0);if(!e)throw new Error("useFoundryEvents must be used within FoundryEventsProvider");return e}const wF="_drawer_15igm_1",SF={drawer:wF};function EF(){const{t:e}=Qt();return x.jsx(We,{gap:5,children:x.jsxs(We,{gap:2,children:[x.jsx(qo,{level:1,children:e("overview.title")}),x.jsx(Je,{type:"supporting",children:e("overview.description")})]})})}function $F(){const{t:e}=Qt();return x.jsx(We,{gap:2,children:x.jsx(Je,{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}},Nl={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}},DE={horizontal:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",$$css:!0},vertical:{keoZOQ:"x1sa9bsh",k1K539:"x6h7pi7",kZKoxP:"x12qplqi",$$css:!0}};function Ni({orientation:e="horizontal",label:t,variant:r="subtle",isFullBleed:s=!1,xstyle:o,className:l,style:u,ref:f,"aria-label":d,"aria-labelledby":p,...m}){const y=e==="horizontal",k=g.useId(),v=p??(t&&d==null?k:void 0);return x.jsxs("div",{ref:f,...m,role:"separator","aria-orientation":e,"aria-label":d,"aria-labelledby":v,...ye(fe("divider",{variant:r,orientation:e}),de(y?LE.horizontal:LE.vertical,s&&(y?DE.horizontal:DE.vertical),o),l,u),children:[x.jsx("div",{...de(y?Nl.horizontalLine:Nl.verticalLine,Nl[r])}),t&&x.jsx("div",{id:k,...{0:{className:"x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4"},1:{className:"x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82"}}[!y<<0],children:t}),t&&x.jsx("div",{...de(y?Nl.horizontalLine:Nl.verticalLine,Nl[r])})]})}Ni.displayName="Divider";const TF=2e3;function B4(e={}){const{announce:t,resetAfterMs:r=TF}=e,s=vc(),[o,l]=g.useState(!1),u=g.useRef(null);return g.useEffect(()=>()=>{u.current!=null&&clearTimeout(u.current)},[]),{copy:g.useCallback(async d=>{try{return await navigator.clipboard.writeText(d),l(!0),t&&s(t),u.current!=null&&clearTimeout(u.current),u.current=setTimeout(()=>{u.current=null,l(!1)},r),!0}catch{return!1}},[s,t,r]),isCopied:o}}function CF(){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,r=typeof t=="string"?t.trim():"";if(r!==""&&r.toLowerCase()!=="unknown")return/mac/i.test(r)}return/Mac|iPhone|iPad|iPod/.test(navigator.platform??"")}function jF(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!H4(e)&&e.key!==" "}function H4(e){return e.isComposing===!0?!0:e.nativeEvent?.isComposing===!0}function L0(e){const{getItemLabels:t,onMatch:r,getCurrentIndex:s,resetMs:o=750,isDisabled:l}=e,u=g.useRef(""),f=g.useRef(void 0),d=g.useCallback(()=>{u.current="",f.current&&(clearTimeout(f.current),f.current=void 0)},[]),p=g.useCallback(()=>{f.current&&clearTimeout(f.current),f.current=setTimeout(()=>{u.current="",f.current=void 0},o)},[o]);return{onKeyDown:g.useCallback(y=>{const k=y.key===" "&&!y.ctrlKey&&!y.metaKey&&!H4(y)&&u.current.length>0;if(!jF(y)&&!k)return!1;const v=t();if(v.length===0)return!1;const w=y.key.toLowerCase(),E=u.current.length>0&&u.current.split("").every(L=>L===w)?w:u.current+w;u.current=E,p();const R=s?.()??-1,C=v.length,T=R>=0,A=T?R:0,N=T&&E.length===1?1:0;for(let L=0;L<C;L++){const D=(A+N+L+C)%C;if(l?.(D))continue;const j=v[D];if(j!=null&&j.trim().toLowerCase().startsWith(E))return r(D),!0}return!0},[t,r,s,p,l]),reset:d}}const RF=300,OE={phase:"idle"},Do={type:"none"};function zo(e){return{gesture:{phase:"idle"},effect:e}}function D0(e){return e==null?{type:"clear"}:{type:"highlight",row:e}}function F4(e,t){return t.row!=null?zo({type:"act",row:t.row}):t.isInMenu||t.isOnTrigger?zo({type:"settle",stray:!0,dismiss:!1}):zo({type:"settle",stray:!0,dismiss:e==="mouse"})}function AF(e,t){switch(e.phase){case"idle":return MF(e,t);case"triggerPress":return NF(e,t);case"open":return zF(e,t);case"tracking":return LF(e,t)}}function MF(e,t){return t.type!=="down"?{gesture:e,effect:Do}:t.target==="menu"?{gesture:{phase:"tracking",pointerType:t.pointerType,origin:"menu",row:t.row},effect:D0(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:Do}}function NF(e,t){switch(t.type){case"opened":return{gesture:{phase:"open",pointerType:e.pointerType,openedAt:t.time},effect:Do};case"up":return zo({type:"settle",stray:!1,dismiss:!1});case"cancel":return zo({type:"settle",stray:!1,dismiss:!1});case"down":case"move":return{gesture:e,effect:Do}}}function zF(e,t){switch(t.type){case"move":return t.isInMenu?{gesture:{phase:"tracking",pointerType:e.pointerType,origin:"trigger",row:t.row},effect:D0(t.row)}:{gesture:e,effect:Do};case"up":return t.time-e.openedAt>=RF?F4(e.pointerType,t):zo({type:"settle",stray:!0,dismiss:!1});case"cancel":return zo({type:"settle",stray:!1,dismiss:!1});case"down":case"opened":return{gesture:e,effect:Do}}}function LF(e,t){switch(t.type){case"move":return t.row===e.row?{gesture:e,effect:Do}:{gesture:{...e,row:t.row},effect:D0(t.row)};case"up":return F4(e.pointerType,t);case"cancel":return zo({type:"settle",stray:!1,dismiss:!1});case"down":case"opened":return{gesture:e,effect:Do}}}const DF=500,OF=10;function U4(e){const{onLongPress:t,disabled:r=!1,delayMs:s=DF,moveCancelPx:o=OF}=e,l=g.useRef(null),u=g.useRef(null),f=g.useRef(t);f.current=t;const d=g.useCallback(()=>{l.current!=null&&(clearTimeout(l.current),l.current=null),u.current=null},[]),p=g.useCallback(v=>{r||(d(),u.current={x:v.x,y:v.y},l.current=setTimeout(()=>{const w=u.current;w!=null&&f.current({x:w.x,y:w.y})},s))},[r,s,d]),m=g.useCallback(v=>{const w=u.current;return w==null?!1:Math.abs(v.x-w.x)>o||Math.abs(v.y-w.y)>o?(d(),!1):!0},[o,d]),y=g.useCallback(v=>{if(r)return;if(v.touches.length!==1){d();return}const w=v.touches[0];p({x:w.clientX,y:w.clientY})},[r,d,p]),k=g.useCallback(v=>{if(u.current==null)return;if(v.touches.length!==1){d();return}const w=v.touches[0];m({x:w.clientX,y:w.clientY})},[d,m]);return g.useEffect(()=>d,[d]),{onTouchStart:y,onTouchMove:k,onTouchEnd:d,onTouchCancel:d,start:p,moveTo:m,cancel:d}}const V4="data-astryx-menu-press",G4=`[${V4}]`,IF=400,_F=500,IE=24,qF=6,PF=16,BF="[tabindex], a[href], button, input, select, textarea, [contenteditable]",HF="a[href], button, [tabindex]";let Sp=!1;function FF(){return Sp}let Er=null;function Du(){Er!=null&&(Er.isArmed=!1,Er.timer!=null&&(clearTimeout(Er.timer),Er.timer=null))}function _E(e){Er==null||!Er.isArmed||e.detail===0||Sp||(e.preventDefault(),e.stopImmediatePropagation(),Du())}function qE(e){const t=e.defaultView;t!=null&&((Er==null||Er.doc!==e)&&(Er!=null&&(Er.doc.defaultView?.removeEventListener("click",_E,!0),Er.doc.removeEventListener("pointerdown",Du,!0)),t.addEventListener("click",_E,!0),e.addEventListener("pointerdown",Du,!0),Er={doc:e,isArmed:!1,timer:null}),Du(),Er.isArmed=!0,Er.timer=setTimeout(Du,IF))}function PE(e){return e==="mouse"||e==="touch"||e==="pen"?e:null}function UF(e){return e.matches(BF)}function VF(e){let t=e;for(;;){const r=t.parentElement?.closest(G4);if(r==null)return t;t=r}}function kx(e){const t=g.useRef(e);t.current=e;const r=g.useRef(OE),s=g.useRef(null),o=g.useRef(null),l=g.useRef(null),u=g.useRef(null),f=g.useRef(null),d=g.useRef(null),p=g.useRef(null),m=g.useRef(null),y=g.useCallback(()=>t.current.menuRef.current?.ownerDocument??t.current.triggerRef?.current?.ownerDocument??document,[]),k=g.useCallback(q=>{const{menuRef:B,triggerRef:U,itemSelector:_,hitTest:P}=t.current,G=B.current,X=y();let Z;P!=null?Z=P(q.clientX,q.clientY):typeof X.elementFromPoint=="function"?Z=X.elementFromPoint(q.clientX,q.clientY):Z=q.target instanceof Element?q.target:null;const Q=G==null?null:VF(G),K=Q!=null&&Z!=null&&Q.contains(Z),ae=U?.current??null,I=ae!=null&&Z!=null&&ae.contains(Z);let ee=null;return K&&Z!=null&&(ee=Z.closest(_),ee!=null&&!Q.contains(ee)&&(ee=null)),{row:ee,isInMenu:K,isOnTrigger:I}},[y]),v=g.useCallback(()=>{f.current!=null&&(clearInterval(f.current.timer),f.current=null)},[]),w=g.useCallback(()=>{l.current?.cancel(),u.current?.(),u.current=null,v(),o.current?.(),o.current=null,s.current=null,d.current=null,r.current=OE},[v]),S=g.useCallback(q=>{const{onHighlight:B,menuRef:U}=t.current;if(B!=null){B(q);return}const _=q==null?U.current:UF(q)?q:q.querySelector(HF);_!=null&&_!==y().activeElement&&_.focus({preventScroll:!0})},[y]),E=g.useCallback((q,B)=>{const{onActivate:U}=t.current;Sp=!0;try{if(U!=null){U(q,B);return}q.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0,detail:0,button:B.button,clientX:B.clientX,clientY:B.clientY,screenX:B.screenX,screenY:B.screenY,ctrlKey:B.ctrlKey,shiftKey:B.shiftKey,altKey:B.altKey,metaKey:B.metaKey}))}finally{Sp=!1}},[]),R=g.useRef(()=>{}),C=g.useCallback((q,B,U)=>{const _=y();switch(q.type){case"none":return;case"open":{const P=B.phase==="open"?B.pointerType:"mouse";p.current=bi(),(t.current.onTriggerPress?.(P)??!1)||w();return}case"highlight":S(q.row);return;case"clear":S(null);return;case"act":{w(),qE(_),U!=null&&E(q.row,U);return}case"settle":{w(),q.stray&&qE(_),q.dismiss&&t.current.onDismiss?.();return}}},[E,w,y,S]),T=g.useCallback((q,B)=>{const U=AF(r.current,q);r.current=U.gesture,C(U.effect,U.gesture,B)},[C]);R.current=T;const A=g.useCallback(()=>{const{getScroller:q,menuRef:B}=t.current;if(q!=null)return q();const U=B.current;return U==null?null:U.scrollHeight>U.clientHeight+1?U:null},[]),N=g.useCallback(q=>{if(r.current.phase!=="tracking"){v();return}const B=A();if(B==null){v();return}const U=B.getBoundingClientRect();if(U.height<=0){v();return}let _=0;if(q.clientY<=U.top+IE?_=-1:q.clientY>=U.bottom-IE&&(_=1),_===0){v();return}if(f.current?.direction===_)return;v();const P=()=>{const G=B.scrollTop;if(B.scrollTop=G+_*qF,B.scrollTop===G){v();return}const X=d.current;if(X!=null){const Z=k(X);R.current({type:"move",row:Z.row,isInMenu:Z.isInMenu,time:Date.now()},X)}};f.current={direction:_,timer:setInterval(P,PF)},P()},[A,k,v]),L=g.useCallback(q=>{o.current?.();const B=y(),U=B.defaultView;s.current=q;const _=Q=>{if(Q.pointerId!==s.current)return;if(d.current=Q,r.current.phase==="triggerPress"){l.current?.moveTo({x:Q.clientX,y:Q.clientY})===!1&&R.current({type:"cancel"});return}const ae=k(Q);R.current({type:"move",row:ae.row,isInMenu:ae.isInMenu,time:Date.now()},Q),N(Q)},P=Q=>{if(Q.pointerId!==s.current)return;const K=k(Q);R.current({type:"up",row:K.row,isInMenu:K.isInMenu,isOnTrigger:K.isOnTrigger,time:Date.now()},Q)},G=Q=>{Q.pointerId===s.current&&R.current({type:"cancel"})},X=Q=>{Q.pointerId!==s.current&&(m.current=Q.pointerId,R.current({type:"cancel"}))},Z=()=>{R.current({type:"cancel"})};B.addEventListener("pointermove",_,!0),B.addEventListener("pointerup",P,!0),B.addEventListener("pointercancel",G,!0),B.addEventListener("pointerdown",X,!0),U?.addEventListener("blur",Z),o.current=()=>{B.removeEventListener("pointermove",_,!0),B.removeEventListener("pointerup",P,!0),B.removeEventListener("pointercancel",G,!0),B.removeEventListener("pointerdown",X,!0),U?.removeEventListener("blur",Z)}},[y,k,N]),D=g.useCallback(()=>{const q=r.current;if(q.phase!=="triggerPress")return;if(p.current=bi(),!(t.current.onTriggerPress?.(q.pointerType)??!1)){T({type:"cancel"});return}const U=y(),_=P=>{P.cancelable&&P.preventDefault()};U.addEventListener("touchmove",_,{passive:!1,capture:!0}),u.current=()=>{U.removeEventListener("touchmove",_,!0)},T({type:"opened",time:Date.now()})},[y,T]);l.current=U4({onLongPress:D,delayMs:e.longPressDelayMs??_F});const j=g.useCallback(q=>{const{menuRef:B,isEnabled:U=!0}=t.current,_=B.current;if(!U||_==null)return;if(q.pointerId===m.current){m.current=null;return}if(r.current.phase!=="idle"){T({type:"cancel"});return}const P=PE(q.pointerType);if(P==null||P==="mouse"&&q.button!==0||q.target?.closest(G4)!==_)return;P!=="mouse"&&q.preventDefault();const X=q.nativeEvent;L(X.pointerId),d.current=X;const Z=k(X);T({type:"down",target:"menu",pointerType:P,row:Z.row,time:Date.now()},X)},[L,k,T]),O=g.useCallback(q=>{const{isEnabled:B=!0}=t.current;if(q.pointerId===m.current){m.current=null;return}if(!B||r.current.phase!=="idle")return;const U=PE(q.pointerType);if(U==null||q.button!==0||U==="mouse"&&q.ctrlKey)return;const _=q.nativeEvent;L(_.pointerId),d.current=_,U!=="mouse"&&l.current?.start({x:_.clientX,y:_.clientY}),T({type:"down",target:"trigger",pointerType:U,row:null,time:Date.now()},_)},[L,T]),M=g.useCallback(q=>{const B=r.current;B.phase!=="idle"&&B.pointerType!=="mouse"&&q.preventDefault()},[]),H=g.useCallback(()=>p.current!=null&&p.current===bi(),[]),F=g.useCallback(()=>{r.current.phase!=="idle"&&T({type:"cancel"}),w()},[w,T]);return g.useEffect(()=>(bi(),()=>{w()}),[w]),g.useMemo(()=>({menuProps:{onPointerDown:j,[V4]:""},triggerProps:{onPointerDown:O,onContextMenu:M},isTriggerClickFromPress:H,cancel:F}),[j,O,M,H,F])}const GF={wrapper:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kmuXW:"x2lah0s",$$css:!0}},KF=new Map([["ctrl","⌃"],["alt","⌥"],["shift","⇧"],["enter","↵"],["backspace","⌫"],["escape","Esc"],["tab","⇥"],["up","↑"],["down","↓"],["left","←"],["right","→"],["plus","+"]]),WF=new Map([["esc","escape"],["return","enter"]]);function YF(e,t){return e==="mod"?t?"⌘":"Ctrl":KF.get(e)??e.toUpperCase()}const XF=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 ZF(e,t){return e==="mod"?t?"Command":"Control":XF.get(e)??e.toUpperCase()}function QF(){return()=>{}}function JF(){return!1}function Ep({keys:e,ref:t,xstyle:r,className:s,style:o,...l}){const u=g.useSyncExternalStore(QF,CF,JF),f=new Map,d=e.split("+").map(m=>m.trim().toLowerCase()).map(m=>{const y=f.get(m)??0;return f.set(m,y+1),{key:WF.get(m)??m,reactKey:`${m}:${y}`}}),p=d.map(({key:m})=>ZF(m,u)).join(" + ");return x.jsx("span",{...l,ref:t,role:"img","aria-label":p,...ye(fe("kbd"),de(GF.wrapper,r),s,o),children:d.map(({key:m,reactKey:y})=>x.jsx("kbd",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x16asifk x1grt7ep x7a5moj xx3sua9 x17x4s8c xlxy82 x1q0q8m5 xib2hle x1tgivj0 x9ynric x141an7d x1e4wzip x1ltkj2j x87ps6o",children:YF(m,u)},y))})}Ep.displayName="Kbd";const eU=new Set(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]),tU={horizontal:["left","right"],vertical:["up","down"],both:["left","right","up","down"]},nU={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 rU(e={}){const{orientation:t="horizontal",dismissAfterMs:r=3e3,isEnabled:s=!0}=e,o=Nt(),l=g.useRef(null),u=g.useRef(!1),f=g.useRef(!1),d=g.useRef(()=>{}),p=g.useCallback(()=>{l.current&&(clearTimeout(l.current),l.current=null)},[]),m=g.useCallback(()=>{f.current=!0},[]),y=g.useCallback(()=>{f.current=!1,p(),d.current(null)},[p]),k=md({mode:"context",onShow:m,onHide:y});d.current=k.ref;const v=g.useCallback(()=>{u.current=!0,p(),k.hide(),f.current=!1,d.current(null)},[p,k]),w=g.useCallback(A=>{u.current||!s||(d.current(A),k.show(),p(),l.current=setTimeout(()=>{v()},r))},[p,v,r,s,k]);g.useEffect(()=>()=>{p(),d.current(null)},[p]);const S=g.useCallback(A=>{if(u.current||!s)return;const N=A.target;if(!N.matches(":focus-visible"))return;const L=A.currentTarget;A.relatedTarget instanceof Node&&L.contains(A.relatedTarget)||w(N)},[w,s]),E=g.useCallback(A=>{if(!f.current)return;const N=A.currentTarget;if(A.relatedTarget instanceof Node&&N.contains(A.relatedTarget)){!u.current&&A.relatedTarget instanceof HTMLElement&&d.current(A.relatedTarget);return}v()},[v]),R=g.useCallback(A=>{f.current&&eU.has(A.key)&&v()},[v]),C=x.jsx("span",{className:"x3nfvp2 x6s0dn4 xzye2dw",children:tU[t].map(A=>x.jsx(Ep,{keys:A},A))});return{hintElement:k.render(x.jsxs("span",{"aria-hidden":"true",children:[C,x.jsx("span",{className:"x11g1kdw",children:o("@astryx.keyboardHint.toNavigate")})]}),{placement:"below",alignment:"start",xstyle:nU.hint,style:{marginBlockStart:Wn["--spacing-2"]}}),onFocus:S,onBlur:E,onKeyDown:R}}const O0=new WeakMap;function BE(e,t){O0.set(e,t)}function aU(e){O0.delete(e)}function sU(e){return O0.get(e)}const oU=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 HE(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 iU(e,t){const r=t.querySelectorAll(gp);let s=t.matches(gp)&&HE(t)?t:null;for(const l of r)if(!(s!=null&&l.tabIndex<=0)&&HE(l)){if(l.tabIndex>0)return null;s??=l}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 o=s;for(;o!=null&&o!==e;){const l=o.getAttribute("role")?.trim().toLowerCase(),u=o===s&&(l==="button"&&s.localName==="button"||l==="link"&&s.localName==="a");if(l!=null&&l!==""&&!u&&!oU.has(l)||o===s&&l!=null&&l!==""&&!u||o.hasAttribute("aria-activedescendant")||o.isContentEditable||o.matches('[contenteditable]:not([contenteditable="false"])')||sU(o)!=null)return null;const f=getComputedStyle(o);if(/^(auto|scroll|overlay)$/.test(f.overflowX)&&o.scrollWidth>o.clientWidth+1||/^(auto|scroll|overlay)$/.test(f.overflowY)&&o.scrollHeight>o.clientHeight+1)return null;o=o.parentElement}return o===e?s:null}function lU(e,t){const r=e.ownerDocument,s=r.defaultView;if(s==null)return()=>{};let o=null,l=null,u=null,f,d;const p=()=>{o=null,l=null,s.clearTimeout(f),d?.(),d=void 0},m=k=>{if(p(),!(k.key!=="Tab"||k.ctrlKey||k.metaKey)){if(o=k,l=k.target,k.shiftKey&&u!=null&&r.activeElement===u&&e.contains(u)){const v=e.getAttribute("tabindex");e.tabIndex=-1,d=()=>{e.getAttribute("tabindex")==="-1"&&(v==null?e.removeAttribute("tabindex"):e.setAttribute("tabindex",v))}}f=s.setTimeout(p,0)}},y=k=>{const v=o,w=l;if(p(),k.target!==e){e.contains(k.target)||(u=null);return}if(u=null,v==null||v.shiftKey||v.defaultPrevented||v.eventPhase!==0||k.relatedTarget!=null&&k.relatedTarget!==w)return;const S=iU(e,t);S!=null&&(u=S,S.focus(),r.activeElement!==S&&(u=null))};return r.addEventListener("keydown",m,!0),r.addEventListener("keyup",p,!0),r.addEventListener("pointerdown",p,!0),r.addEventListener("focusin",y,!0),s.addEventListener("blur",p),()=>{p(),r.removeEventListener("keydown",m,!0),r.removeEventListener("keyup",p,!0),r.removeEventListener("pointerdown",p,!0),r.removeEventListener("focusin",y,!0),s.removeEventListener("blur",p)}}const Kh=1,cU={isScrollable:!1,atStart:!0,atEnd:!0};function uU(e,t){const r=e.toLowerCase(),s=r.startsWith("vertical")||r.startsWith("sideways"),o=t==="rtl";if(!s)return{inline:"x",block:"y",inlineReversed:o,blockReversed:!1};const l=r==="sideways-lr"?!o:o,u=r.endsWith("-rl");return{inline:"y",block:"x",inlineReversed:l,blockReversed:u}}function dU(e){return e==="auto"||e==="scroll"||e==="overlay"}function fU(e,t){const r=getComputedStyle(e);return t==="x"?{clientExtent:e.clientWidth,contentExtent:e.scrollWidth,offset:e.scrollLeft,overflow:r.overflowX}:{clientExtent:e.clientHeight,contentExtent:e.scrollHeight,offset:e.scrollTop,overflow:r.overflowY}}function K4(e,t){return e.isConnected&&t.display!=="none"&&e.clientWidth>0&&e.clientHeight>0}function FE(e,t,r){const s=getComputedStyle(e);if(!K4(e,s))return null;const o=r[t],l=o==="x"?e.clientWidth:e.clientHeight;return(o==="x"?e.scrollWidth:e.scrollHeight)-l>Kh}function UE(e,t,r){const s=getComputedStyle(e);if(!K4(e,s))return null;const o=r[t],l=fU(e,o),u=l.contentExtent-l.clientExtent;if(!dU(l.overflow)||u<=Kh)return cU;const f=r[`${t}Reversed`],d=Math.min(u,Math.max(0,f?Math.abs(l.offset):l.offset));return{isScrollable:!0,atStart:d<=Kh,atEnd:d>=u-Kh}}const Fl={isScrollable:!1,atStart:!0,atEnd:!0},VE={inline:Fl,block:Fl},hU={inline:!1,block:!1},pU={inline:"x",block:"y",inlineReversed:!1,blockReversed:!1},xU={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 ma(e,t){return e===t||e==="both"}function gU(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 mU(e,t){return e.inline===t.inline&&e.block===t.block}function yU(e,t){return e.inline===t.inline&&e.block===t.block&&e.inlineReversed===t.inlineReversed&&e.blockReversed===t.blockReversed}function bU(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 GE(e){const t=g.useRef(void 0),r=g.useRef(null);return g.useCallback(s=>{if(r.current!=null&&Object.is(t.current,s))return r.current;const o=Gb(s,e);return t.current=s,r.current=o,o},[e])}function kU({axis:e,keyboardAccess:t,overscroll:r="allow",stickyContainment:s="whenScrollable"}){const[o,l]=g.useState(null),[u,f]=g.useState(null),[d,p]=g.useState(VE),[m,y]=g.useState(hU),[k,v]=g.useState(pU),w=g.useRef(VE),S=g.useCallback(D=>{l(j=>j===D?j:D)},[]),E=g.useCallback(D=>{f(j=>j===D?j:D)},[]),R=GE(S),C=GE(E);qn(()=>{if(o==null||u==null)return;let D=null,j=!0;const O=()=>{D=null;const _=getComputedStyle(o),P=uU(_.writingMode,_.direction),G=ma(e,"inline")?FE(o,"inline",P):!1,X=ma(e,"block")?FE(o,"block",P):!1,Z=ma(e,"inline")?UE(o,"inline",P):Fl,Q=ma(e,"block")?UE(o,"block",P):Fl;if(G==null||X==null||Z==null||Q==null)return;const K={inline:G,block:X},ae={inline:Z,block:Q};w.current=ae,BE(o,ae),y(I=>mU(I,K)?I:K),p(I=>gU(I,ae)?I:ae),v(I=>yU(I,P)?I:P)},M=()=>{!j||D!=null||(D=window.requestAnimationFrame(O))};BE(o,w.current),O();const H=Xu(o,M),F=Xu(u,M);o.addEventListener("scroll",M,{passive:!0}),window.addEventListener("resize",M),window.visualViewport?.addEventListener("resize",M),u.addEventListener("load",M,!0),o.addEventListener("transitionend",M),o.addEventListener("animationend",M),u.addEventListener("transitionend",M),u.addEventListener("animationend",M);const q=typeof MutationObserver>"u"?null:new MutationObserver(M);q?.observe(o,{attributes:!0,attributeFilter:["class","dir","hidden","style"]}),q?.observe(u,{attributes:!0,attributeFilter:["class","dir","hidden","style"],characterData:!0,childList:!0,subtree:!0});let B=o.parentElement;for(;B!=null;)q?.observe(B,{attributes:!0,attributeFilter:["class","dir","hidden","style"]}),B=B.parentElement;const U=document.fonts;return U?.addEventListener?.("loadingdone",M),U?.ready.then(M),()=>{j=!1,aU(o),H(),F(),q?.disconnect(),o.removeEventListener("scroll",M),window.removeEventListener("resize",M),window.visualViewport?.removeEventListener("resize",M),u.removeEventListener("load",M,!0),o.removeEventListener("transitionend",M),o.removeEventListener("animationend",M),u.removeEventListener("transitionend",M),u.removeEventListener("animationend",M),U?.removeEventListener?.("loadingdone",M),D!=null&&window.cancelAnimationFrame(D)}},[e,u,o]);const T=g.useMemo(()=>({inline:ma(e,"inline")?d.inline:Fl,block:ma(e,"block")?d.block:Fl}),[e,d]),A=T.inline.isScrollable||T.block.isScrollable;qn(()=>{if(!(t.owner!=="contentOrViewport"||!A||o==null||u==null))return lU(o,u)},[u,A,t.owner,o]);const N=g.useCallback((D={})=>{const j=T.inline.isScrollable||T.block.isScrollable,O=ma(e,"inline")&&k.inline==="x"||ma(e,"block")&&k.block==="x",M=ma(e,"inline")&&k.inline==="y"||ma(e,"block")&&k.block==="y",H=m.inline&&k.inline==="x"||m.block&&k.block==="x",F=m.inline&&k.inline==="y"||m.block&&k.block==="y",q=H||F||s==="always",B=s==="always"?O:H,U=s==="always"?M:F,{xstyle:_,...P}=D,G={...P,style:bU(P.style)},X=ye(G,de(_,xU.overflow(q?B?"auto":"hidden":"clip",q?U?"auto":"hidden":"clip"))),Z=t.owner!=="content",Q=(!Z||!j)&&o!=null&&typeof document<"u"&&document.activeElement===o,K={...X.style},ae=r==="contain"&&T.inline.isScrollable,I=r==="contain"&&T.block.isScrollable,ee=k.inline,pe=k.block;ma(e,"inline")&&(K[ee==="x"?"overscrollBehaviorX":"overscrollBehaviorY"]=ae?"contain":"auto"),ma(e,"block")&&(K[pe==="x"?"overscrollBehaviorX":"overscrollBehaviorY"]=I?"contain":"auto");const ue=t.owner!=="content"?{role:t.role??"group","aria-label":t.label,tabIndex:Z&&j?0:Q?-1:void 0}:{};return{...X,...ue,ref:R(X.ref),style:K,"data-scroll-axis":e,"data-scrollable-inline":T.inline.isScrollable?"true":void 0,"data-scrollable-block":T.block.isScrollable?"true":void 0,"data-scroll-inline-start":T.inline.atStart?"true":void 0,"data-scroll-inline-end":T.inline.atEnd?"true":void 0,"data-scroll-block-start":T.block.atStart?"true":void 0,"data-scroll-block-end":T.block.atEnd?"true":void 0}},[e,R,t,k,m,r,T,s,o]),L=g.useCallback((D={})=>({...D,ref:C(D.ref),"data-scroll-content":""}),[C]);return{getViewportProps:N,getContentProps:L,state:T}}let mh=0,yh=null;function vU(e){g.useEffect(()=>{if(!e)return;const{body:t}=document;if(mh===0){const r=window.scrollX,s=window.scrollY,o=ZC(t);yh={scrollX:r,scrollY:s,overflow:t.style.overflow,position:t.style.position,top:t.style.top,left:t.style.left,right:t.style.right,gutter:o},t.style.overflow="hidden",t.style.position="fixed",t.style.top=`-${s}px`,t.style.left="0",t.style.right="0",o.settle()}return mh+=1,()=>{if(mh-=1,mh!==0||yh==null)return;const r=yh;yh=null,t.style.overflow=r.overflow,t.style.position=r.position,t.style.top=r.top,t.style.left=r.left,t.style.right=r.right,r.gutter.release(),window.scrollTo(r.scrollX,r.scrollY)}},[e])}let W4=!1;typeof window<"u"&&requestAnimationFrame(()=>{W4=!0});const wU={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 SU(e="slideDown"){const[t]=g.useState(()=>W4);return t?wU[e]:null}const EU=50;function $U(e){const t=e.match(/^([\d.]+)ms$/);if(t)return parseFloat(t[1]);const r=e.match(/^([\d.]+)s$/);return r?parseFloat(r[1])*1e3:null}const TU={natural:10,fast:4,instant:1/0},KE=typeof Intl.Segmenter=="function"?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function CU(e){return e>=56320&&e<=57343}function jU(e,t){return t<=0||t>=e.length?t:KE?KE.segment(e).containing(t)?.index??t:CU(e.charCodeAt(t))?t-1:t}function RU(e,t,r){const s="natural",o=TU[s],{token:l}=ix(),u=g.useMemo(()=>{const E=$U(l("--duration-fast-min"));if(E==null)return EU;const R=E/10;return Math.max(4,Math.round(R))},[l,s]),[f,d]=g.useState(0),p=g.useRef(e),m=g.useRef(0),y=g.useRef(0),k=g.useRef(null);p.current=e;const v=g.useRef(e.length);e.length!==v.current&&(v.current=e.length,e.length===0&&f!==0&&(m.current=0,d(0)));const w=g.useRef(t);t!==w.current&&(w.current=t,!t&&e.length>0&&(m.current=e.length,d(e.length)));const S=wd("(prefers-reduced-motion: reduce)");return g.useEffect(()=>{if(!t||s==="instant"||S)return;function E(R){if(R-y.current>=u){y.current=R;const T=p.current,A=m.current;if(A<T.length){const N=Math.min(A+o,T.length);m.current=N,d(N)}}k.current=requestAnimationFrame(E)}return k.current=requestAnimationFrame(E),()=>{k.current!==null&&(cancelAnimationFrame(k.current),k.current=null)}},[t,o,u,s,S]),!t||s==="instant"||S?e:e.slice(0,jU(e,f))}const AU=new Set(["text","password","email","number","search","tel","url","date","datetime-local","month","time","week"]),MU=new Set(["true","menu","listbox","tree","grid","dialog"]);function NU(e){if(e.getAttribute("role")==="combobox")return!0;const t=e.getAttribute("aria-haspopup");return t!=null&&MU.has(t)}function I0({containerRef:e,inputRef:t,disabled:r=!1}){const s=g.useCallback(()=>{const o=t.current;o!=null&&(o instanceof HTMLElement&&NU(o)?o.click():o instanceof HTMLInputElement&&AU.has(o.type)||o instanceof HTMLTextAreaElement?o.focus():o instanceof HTMLElement?o.click():"focus"in o&&o.focus())},[t]);return yx({containerRef:e,interactiveRef:t,onClick:s,disabled:r})}const zU={warning:"warning",error:"error",success:"success"},LU={warning:"@astryx.input.statusButton.warning",error:"@astryx.input.statusButton.error",success:"@astryx.input.statusButton.success"},DU={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 Y4({status:e,statusVariant:t="attached",isInGroup:r=!1,size:s="md"}){const o=Nt(),u=t==="tooltip"&&!!e?.message,[f,d]=g.useState(void 0),p=Ya({placement:"above",isEnabled:u,isOpen:f}),m=g.useCallback(()=>{d(void 0)},[]),y=g.useCallback(()=>{typeof window>"u"||typeof window.matchMedia!="function"||!window.matchMedia("(hover: none)").matches||d(w=>w!==!0)},[]);if(g.useEffect(()=>{if(f!==!0)return;const w=S=>{S.key==="Escape"&&d(void 0)};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[f]),!(!!e&&!r&&t!=="detached"))return{statusIcon:null,describedBy:void 0};const v=x.jsx(ft,{icon:zU[e.type],size:s,color:e.type,...fe("input-status-icon",{size:s,status:e.type})});return u?{statusIcon:x.jsxs(x.Fragment,{children:[x.jsx("button",{type:"button",ref:p.ref,"aria-label":o(LU[e.type]),"aria-describedby":p.describedBy,onClick:y,onBlur:m,...de(Bs.focusVisible,DU.statusButton),children:v}),p.renderTooltip(e.message)]}),describedBy:p.describedBy}:{statusIcon:v,describedBy:void 0}}function OU(e,t=!1){const r=g.useCallback(l=>{const u=e.current?.firstElementChild;u instanceof HTMLElement&&Object.assign(u.style,l?Nz:zz)},[e]),s=g.useCallback(l=>{if(t)return;const u=l.target;u instanceof HTMLElement&&!u.matches(":focus-visible")||r(!0)},[t,r]),o=g.useCallback(()=>r(!1),[r]);return g.useMemo(()=>({focusProps:{onFocus:s,onBlur:o}}),[s,o])}const Ba={container:{"--_hover-delay":"xhg274n","--_reveal-opacity":"xct0gwe x2xrgwu xi33vf3 xi7d7de","--_reveal-position":"xp0pj8v x1or4zte xoa21yc xarvkxi","--_reveal-delay":"x1xiarpw xi1ebb6 x1mjsb9v x1pn63d7","--_reveal-delay-reduced":"xdjmrzf xvd8mm8 x1z42dm xm1aeao","--_conceal-opacity":"x1kgmhs9 x1316hva","--_fade-delay":"x13l1x9d x14nxqze x1wfyzv7 x1hl81f0",$$css:!0},stateInactive:{"--_reveal-opacity":"xct0gwe xfqgg65 xi33vf3 xi7d7de","--_reveal-position":"xp0pj8v x17ock8y xoa21yc xarvkxi","--_reveal-delay":"x1xiarpw x1tx49wl x1mjsb9v x1pn63d7","--_reveal-delay-reduced":"xdjmrzf xap96qf x1z42dm xm1aeao","--_conceal-opacity":"x1kgmhs9 xuzfaso","--_fade-delay":"x13l1x9d xq03417 x1wfyzv7 x1hl81f0",$$css:!0},stateActive:{"--_reveal-opacity":"x5setjs x2xrgwu xi33vf3 xi7d7de","--_reveal-position":"x1r6s5ct x1or4zte xoa21yc xarvkxi","--_reveal-delay":"x1dejzja x1t6fdr0 x1mjsb9v x1pn63d7","--_reveal-delay-reduced":"xdjmrzf xap96qf x1z42dm xm1aeao","--_conceal-opacity":"x9pmotm x1316hva","--_fade-delay":"x13l1x9d xq03417 x1wfyzv7 x1hl81f0",$$css:!0},hoverDelay:e=>[{"--_hover-delay":e!=null?"x8xu23y":e,$$css:!0},{"--x---_hover-delay":e??void 0}],reveal:{k1ekBW:"x1n1p2mu",kIyJzY:"x1tw3moq xsr0bmt",kAMwcw:"xlr8y92",kzIqYQ:"xd00j3c",kIr0Dl:"x1rq8cwj xwgk2z2",kSiTet:"xgsobzw",kVAEAm:"x1mf7ja4",$$css:!0},revealLayoutPreserved:{k1ekBW:"x19991ni",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kIr0Dl:"x4avkj2",kSiTet:"xgsobzw",$$css:!0},conceal:{k1ekBW:"x19991ni",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kIr0Dl:"x4avkj2",kSiTet:"x1wnsjo",$$css:!0},concealLayoutPreserved:{k1ekBW:"x19991ni",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",kIr0Dl:"x4avkj2",kSiTet:"x1wnsjo",$$css:!0},contentShown:{kSiTet:"x1hc1fzr",kVAEAm:"x1uhb9sk",kIr0Dl:"x1ahifba",$$css:!0},contentHidden:{kSiTet:"xg01cxk x1euntei",kVAEAm:"x10l6tqk xo74pv5",kIr0Dl:"x1ahifba",$$css:!0},contentHiddenLayoutPreserved:{kSiTet:"xg01cxk x1euntei",kIr0Dl:"x1ahifba",$$css:!0}},WE=Object.freeze({});function IU(e={}){const{isEnabled:t=!0}=e;return g.useMemo(()=>t?{getContainerProps:(r={})=>{const{forceState:s,hoverDelay:o=0}=r;return de(Ba.container,o>0&&Ba.hoverDelay(`${o}ms`),s==="inactive"&&Ba.stateInactive,s==="active"&&Ba.stateActive)},getContentRevealProps:(r={})=>{const{isRevealInverted:s=!1,isLayoutPreserved:o=!1,forceVisibility:l}=r,u=s?o?Ba.concealLayoutPreserved:Ba.conceal:o?Ba.revealLayoutPreserved:Ba.reveal;return de(u,l==="shown"&&Ba.contentShown,l==="hidden"&&(o?Ba.contentHiddenLayoutPreserved:Ba.contentHidden))}}:{getContainerProps:()=>WE,getContentRevealProps:()=>WE},[t])}const Cd=aa({direction:"vertical"});Cd.displayName="FormLayoutContext";const Zy={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 vx({label:e,inputID:t,labelID:r,isGroupLabel:s=!1,isLabelHidden:o=!1,isDisabled:l=!1,isOptional:u=!1,isRequired:f=!1,labelIcon:d,labelTooltip:p,description:m,descriptionID:y,className:k,style:v,xstyle:w,ref:S,...E}){const R=Nt(),{defaultOptionality:C}=g.use(Cd),N=u&&C!=="optional"?R("@astryx.field.optional"):f&&C!=="required"?R("@astryx.field.required"):null,L=s?"span":"label",D=!s&&t!=null,j=g.useRef(null),O=g.useMemo(()=>({get current(){return t==null?null:j.current?.ownerDocument.getElementById(t)??null},set current(q){}}),[t]),M=I0({containerRef:j,inputRef:O,disabled:!D}),H=x.jsxs(x.Fragment,{children:[d&&Ca(d,{size:"sm",color:"inherit"}),e,N&&x.jsxs("span",{className:"x1sodnla x141an7d x1ltkj2j xv1l7n4",children:[x.jsx("span",{"aria-hidden":"true",children:" ∙ "}),N]}),p&&x.jsx(_i,{content:p,placement:"above",children:x.jsx(ft,{icon:"info",size:"sm",color:"inherit"})})]}),F=x.jsx(L,{ref:S,id:r,htmlFor:s?void 0:t,...E,...ye(fe("field-label"),de(Zy.label,l&&Zy.labelDisabled,o&&Zy.srOnly,w),k,v),children:H});return m?x.jsxs("div",{...{0:{className:"x78zum5 xdt5ytf"},1:{className:"xdt5ytf xjp7ctv"}}[!!o<<0],children:[F,x.jsx("span",{ref:D?j:void 0,id:y,...D?M: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"}}[!!D<<1|!!o<<0],children:m})]}):F}vx.displayName="FieldLabel";function X4(e,t){const r=vc();g.useEffect(()=>{e&&r(e,t==="error"?"assertive":"polite")},[r,e,t])}const _U={warning:"warning",error:"error",success:"success"},Qy={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}},qU={warning:{kWkggS:"x24i8r5",kMwMTN:"xdhq94a",$$css:!0},error:{kWkggS:"x1pritpl",kMwMTN:"x1joocv1",$$css:!0},success:{kWkggS:"xu13z74",kMwMTN:"xltfdvo",$$css:!0}};function wx({ref:e,type:t,message:r,id:s,variant:o="attached",xstyle:l,className:u,style:f,...d}){const p=SU("slideDown");return X4(r,t),x.jsx("div",{ref:e,id:s,...d,...ye(fe("field-status",{type:t,variant:o}),de(Qy.base,p,o==="attached"?Qy.attached:Qy.detached,qU[t],l),u,f),children:o==="detached"?x.jsxs("span",{className:"x78zum5 x1cy8zhl xzye2dw",children:[x.jsx("span",{className:"x3nfvp2 x6s0dn4 x14o5nre x2lah0s",children:x.jsx(ft,{icon:_U[t],size:"sm",color:"inherit",...fe("field-status-icon",{type:t})})}),x.jsx("span",{children:r})]}):r})}wx.displayName="FieldStatus";const bh={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}},PU={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function wc({label:e,isLabelHidden:t=!1,description:r,inputID:s,labelID:o,isGroupLabel:l=!1,descriptionID:u,isOptional:f=!1,isRequired:d=!1,isDisabled:p=!1,labelIcon:m,status:y,labelTooltip:k,statusVariant:v="attached",width:w,xstyle:S,children:E,className:R,style:C,ref:T,...A}){const{direction:N}=g.use(Cd),L=N==="horizontal-labels",D=u??(r?`${s}-desc`:void 0),j=y?.messageID??(y?.message?`${s}-status`:void 0);Ri("Field","isOptional and isRequired are mutually exclusive. isOptional takes precedence.",f&&d);const O=x.jsx(vx,{label:e,inputID:s,labelID:o,isGroupLabel:l,isLabelHidden:t,isDisabled:p,isOptional:f,isRequired:d,labelIcon:m,labelTooltip:k,description:L?void 0:r,descriptionID:L?void 0:D});X4(v==="tooltip"?y?.message:void 0,y?.type);const M=y?.message&&v!=="tooltip"?x.jsx(wx,{type:y.type,message:y.message,id:j,variant:v,xstyle:v==="attached"?bh.attachedStatusLayer:void 0}):null;return L?x.jsxs("div",{ref:T,...ye(fe("field",{layout:"horizontal-labels"}),de(bh.horizontalLabels,S),R,C),...A,children:[x.jsx("div",{className:"x1enrzb7",children:O}),x.jsxs("div",{className:"x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq",children:[r&&x.jsx(Je,{type:"supporting",display:"block",id:D,children:r}),E,M]})]}):x.jsxs("div",{ref:T,...ye(fe("field"),de(bh.container,!t&&bh.containerGap,w!=null&&PU.width(w),S),R,C),...A,children:[O,v==="attached"?x.jsxs("div",{className:"x78zum5 xdt5ytf xc8icb0 x19nvjgn xlumz0n x1qs65gq",children:[E,M]}):x.jsxs(x.Fragment,{children:[E,M]})]})}wc.displayName="Field";const uc={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}},_0={warning:{kVAM5u:"x8wg1ba",$$css:!0},error:{kVAM5u:"x1ofxpqo",$$css:!0},success:{kVAM5u:"x16m2moy",$$css:!0}},q0={warning:{kGVxlE:"x1gnnqk1 x9156jc",$$css:!0},error:{kGVxlE:"x1gnnqk1 x1bgmis8",$$css:!0},success:{kGVxlE:"x1gnnqk1 x8wp45d",$$css:!0}},Z4={warning:{kVAM5u:"x8wg1ba xa1yw2k",$$css:!0},error:{kVAM5u:"x1ofxpqo xk2sxw7",$$css:!0},success:{kVAM5u:"x16m2moy xyq33ac",$$css:!0}},BU={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 Q4({label:e,onClick:t,onPointerDown:r,onClickCapture:s,xstyle:o,iconClassName:l}){const{className:u}=fe("input-clear-icon"),{className:f}=fe("input-clear-button");return x.jsx(yt,{variant:"ghost",size:"sm",label:e,tooltip:e,className:f,icon:x.jsx(ft,{icon:"close",size:"sm",color:"secondary",className:l!=null?`${u} ${l}`:u}),onPointerDown:d=>{d.preventDefault(),r?.(d)},onMouseDown:d=>d.preventDefault(),onClick:t,onClickCapture:s,isIconOnly:!0,xstyle:[BU.button,o]})}function Sx(e){return Q4(e)}function HU(e){return Q4(e)}Sx.displayName="InputClearButton";const P0={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 jd({isRequired:e=!1,isOptional:t=!1}){const{defaultOptionality:r}=g.use(Cd);return!t&&(e||r==="required")}const B0=aa(null);B0.displayName="InputGroupContext";function Ex(){return g.use(B0)}const FU="`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.",UU="`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 $x(e,t,r){const s=Ex(),{direction:o}=g.use(Cd),l=s==null&&o!=="horizontal-labels",u=t,f=u.xstyle!=null||u.className!=null||u.style!=null;let d=t;if(f){const{xstyle:v,className:w,style:S,...E}=u;d=E}Ri(e,FU,f);const{containerXstyle:p,containerClassName:m,containerStyle:y}=r,k=p!=null||m!=null||y!=null;return Ri(e,UU,k&&!l),{rest:d,hasFieldBox:l,container:l?{xstyle:p,className:m,style:y}:{}}}const VU={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function Ua({type:e="text",label:t,isLabelHidden:r=!1,description:s,isOptional:o=!1,isRequired:l=!1,isDisabled:u=!1,isReadOnly:f=!1,disabledMessage:d,startIcon:p,status:m,statusVariant:y="attached",size:k,onChange:v,changeAction:w,isLoading:S=!1,value:E,placeholder:R,labelTooltip:C,hasClear:T=!1,hasAutoFocus:A=!1,htmlName:N,onEnter:L,onKeyDown:D,width:j,containerXstyle:O,containerClassName:M,containerStyle:H,controlXstyle:F,controlClassName:q,controlStyle:B,ref:U,id:_,"aria-describedby":P,...G}){const{rest:X,container:Z}=$x("TextInput",G,{containerXstyle:O,containerClassName:M,containerStyle:H}),Q=Nt(),K=jd({isRequired:l,isOptional:o}),ae=bc(k,"md"),I=g.useId(),ee=_??I,pe=g.useId(),ue=g.useId(),ve=g.useId(),xe=g.useRef(null),$e=g.useRef(null),te=Ex(),[,he]=g.useTransition(),[Re,Ce]=g.useOptimistic(E),Te=S||Re!==E,Me=u&&!!d,je=Ya({placement:"above",focusTrigger:"always",isEnabled:Me}),{statusIcon:He,describedBy:at}=Y4({status:m,statusVariant:y,isInGroup:!!te}),{ariaLabelledBy:pt,ariaDescribedBy:et}=Kb(pe,[s?ue:null,!te&&y!=="tooltip"&&m?.message?ve:null,at,Me?je.describedBy:null],te),Ve=st=>{if(u||f)return;const ct=st.target.value;v?.(ct,st),w&&!st.defaultPrevented&&he(async()=>{Ce(ct),await w(ct,st)})},bt=g.useCallback(st=>{v?.("",null),!st||st.detail===0?xe.current?.focus():requestAnimationFrame(()=>{xe.current?.focus({preventScroll:!0})})},[v]),{onClick:Pe,onMouseUp:rt}=I0({containerRef:$e,inputRef:xe,disabled:u}),lt=x.jsxs("div",{ref:st=>{$e.current=st,je.ref(st)},onClick:Pe,onMouseUp:rt,...ye(fe("text-input",{size:ae,status:m?.type??null,disabled:u?"disabled":null,readonly:f?"readonly":null}),de(uc.base,VU[ae],u&&uc.disabled,m&&_0[m.type],m&&!u&&q0[m.type],m&&Z4[m.type],te&&P0.inGroup,F),q,B),children:[p&&Ca(p,{size:"sm",color:"secondary"}),te&&x.jsx(Gs,{id:pe,children:t}),x.jsx("input",{...X,ref:xn(U,xe),id:ee,name:u?void 0:N,type:e,value:Re,onChange:Ve,onKeyDown:L||D?st=>{st.key==="Enter"&&!gd(st.nativeEvent)&&L?.(),D?.(st)}:void 0,placeholder:R,disabled:u&&!Me,"aria-disabled":Me?"true":void 0,readOnly:f||Me||void 0,autoFocus:A,"data-autofocus":A||void 0,"aria-describedby":[P,et].filter(Boolean).join(" ")||void 0,"aria-required":K?"true":void 0,"aria-invalid":m?.type==="error"?"true":void 0,"aria-busy":Te||void 0,"aria-labelledby":pt,...{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]}),T&&E!==""&&!u&&!f&&x.jsx(Sx,{label:Q("@astryx.textInput.clearLabel",{label:t}),onClick:bt}),Te&&x.jsx(_o,{size:"sm"}),He]});return te?x.jsxs(x.Fragment,{children:[lt,Me&&je.renderTooltip(d)]}):x.jsxs(wc,{...Z,label:t,isLabelHidden:r,description:s,inputID:ee,descriptionID:s?ue:void 0,isOptional:o,isRequired:l,isDisabled:u,status:m?{type:m.type,message:m.message,messageID:m.message?ve:void 0}:void 0,statusVariant:y,labelTooltip:C,width:j,children:[lt,Me&&je.renderTooltip(d)]})}Ua.displayName="TextInput";const zi=aa(null);zi.displayName="ListContext";function GU({marker:e,task:t,children:r}){const s=g.use(zi),o=g.useMemo(()=>s==null?null:{...s,marker:e,task:t},[s,e,t]);return o==null?r:x.jsx(zi,{value:o,children:r})}const Jy={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}},KU={kt6KFK:"x1khind5",$$css:!0},WU={counterStart:e=>[KU,{"--x-counterReset":`astryx-list ${e}`!=null?`astryx-list ${e}`:void 0}]};function dc({children:e,density:t="balanced",hasDividers:r=!1,edgeCompensation:s,header:o,listStyle:l="none",start:u,xstyle:f,className:d,style:p,"data-testid":m,ref:y,...k}){const v=g.useId(),w=l==="decimal",S=w?"ol":"ul",E=g.useMemo(()=>({density:t,hasDividers:r,listStyle:l,edgeCompensation:s}),[t,r,l,s]),R=x.jsx(S,{ref:y,...k,"data-testid":m,...o!=null?{"aria-labelledby":v}:null,...w&&u!=null&&u!==1?{start:u}:{},role:"list",...ye(fe("list",{density:t,listStyle:l}),de(Jy.list,r&&Jy.withDividers,l!=="none"&&(u!=null&&u!==1?WU.counterStart(u-1):Jy.withCounter),f),d,p),children:e});return o==null?x.jsx(zi,{value:E,children:R}):x.jsx(zi,{value:E,children:x.jsxs("div",{className:"x78zum5 xdt5ytf",children:[x.jsx("div",{id:v,className:"x1p37lm5",children:o}),R]})})}dc.displayName="List";const YU={x1odsvnm:"x1odsvnm",$$css:!0},_s={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}},XU={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},ZU={sm:{kzqmXN:"xsmyaan",kZKoxP:"x1kpxq89",$$css:!0},md:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",$$css:!0}},QU={sm:{kzqmXN:"x1fsd2vl",kZKoxP:"x36qwtl",$$css:!0},md:{kzqmXN:"xsmyaan",kZKoxP:"x36qwtl",$$css:!0}};function J4({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:f,...d}){const p=e==="checked",m=e==="indeterminate",y=p||m;return x.jsx("span",{...d,ref:o,"aria-hidden":"true",...ye(fe("checkbox-indicator",{size:t,checked:p?"checked":m?"indeterminate":null,disabled:r?"disabled":null}),de(_s.box,XU[t],y?_s.checked:_s.unchecked,r&&_s.disabled,r&&!y&&_s.disabledUnchecked,f),l,u),children:Us(s)?s:x.jsxs(x.Fragment,{children:[x.jsx("svg",{viewBox:"0 0 10 10",...ye(fe("checkbox-indicator-check",{size:t}),de(_s.checkmark,ZU[t],p&&_s.checkmarkVisible)),children:x.jsx("path",{d:"M8.5 2.5L4 7.5L1.5 5",stroke:"currentColor",strokeWidth:"1.5",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})}),x.jsx("span",{...ye(fe("checkbox-indicator-dash",{size:t}),de(_s.indeterminateMark,QU[t],m&&_s.indeterminateMarkVisible))})]})})}J4.displayName="CheckboxIndicator";const JU={sm:"sm",md:"sm"},e1={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 e6({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:f,...d}){const p=e==="checked";return Us(s)?x.jsx("span",{...d,ref:o,"aria-hidden":"true",...ye(de(e1.slot,r?e1.disabled:e1.enabled,f),l,u),children:s}):p?x.jsx(ft,{...d,"aria-hidden":"true",icon:"check",size:JU[t],color:r?"disabled":"accent",xstyle:f,className:l,style:u}):null}e6.displayName="CheckIndicator";const zl={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}},eV={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},tV={sm:{kzqmXN:"x1xc55vz",kZKoxP:"xdk7pt",$$css:!0},md:{kzqmXN:"x1fsd2vl",kZKoxP:"x170jfvy",$$css:!0}};function t6({state:e,size:t="md",isDisabled:r=!1,children:s,ref:o,className:l,style:u,xstyle:f,...d}){const p=e!=="unchecked";return x.jsx("span",{...d,ref:o,"aria-hidden":"true",...ye(fe("radio-indicator",{size:t,checked:p?"checked":null,disabled:r?"disabled":null}),de(zl.circle,eV[t],p?zl.checked:zl.unchecked,r&&zl.disabled,r&&!p&&zl.disabledUnchecked,f),l,u),children:Us(s)?s:p&&x.jsx("span",{...ye(fe("radio-indicator-dot",{size:t}),de(zl.dot,tV[t]))})})}t6.displayName="RadioIndicator";const nV={check:e6,checkbox:J4,radio:t6};function rV(e){return e==null?null:typeof e=="string"?ax(e):e}function aV(e){return rV(e)?.indicators??null}function sV(e,t){return aV(t)?.[e]??nV[e]}function n6(e){return sV(e,GC())}const Tx=aa(null);Tx.displayName="CheckboxListContext";const di={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}},YE={sm:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},oV={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function H0({label:e,isLabelHidden:t=!1,description:r,onChange:s,changeAction:o,isLoading:l=!1,value:u,isDisabled:f=!1,htmlName:d,disabledMessage:p,isReadOnly:m=!1,isOptional:y=!1,isRequired:k=!1,size:v="md",onFocus:w,onBlur:S,labelIcon:E,status:R,width:C,xstyle:T,className:A,style:N,ref:L,"aria-describedby":D,...j}){const O=Ra(),M=g.useId(),H=g.useId(),F=g.useId(),q=jd({isRequired:k,isOptional:y}),[,B]=g.useTransition(),[U,_]=g.useOptimistic(u),P=l||U!==u,G=f&&!!p,X=g.use(Tx),Z=f&&(G||(X?.hasDisabledMessage??!1)),Q=Ya({placement:"above",focusTrigger:"always",isEnabled:G}),K=n6("checkbox"),ae=g.useRef(null),{focusProps:I}=OU(ae,f),ee=U==="indeterminate",pe=U===!0,ue=g.useCallback($e=>{$e&&($e.indeterminate=ee)},[ee]),ve=[];D&&ve.push(D),r&&ve.push(H),R?.message&&ve.push(F),G&&ve.push(Q.describedBy);const xe=ve.length>0?ve.join(" "):void 0;return x.jsxs("div",{...ye(fe("checkbox-input",{size:v}),de(C!=null&&oV.width(C),T),A,N),children:[x.jsxs("div",{ref:$e=>{Q.interactionRef($e)},...f?void 0:O,...de(di.container,t&&di.containerLabelHidden,!f&&YU,!f&&or.pressedAlpha),children:[x.jsxs("div",{...de(di.checkboxWrapper,YE[v],!f&&di.indicatorPressOverlay),...I,children:[x.jsx("input",{...j,ref:xn(L,ue,Q.positionRef),id:M,type:"checkbox",name:f?void 0:d,checked:pe,disabled:f&&!Z,"aria-disabled":Z?"true":void 0,form:Z?"":void 0,readOnly:m,required:k,"aria-required":q?"true":void 0,onChange:$e=>{if(f||P||m)return;const te=$e.target.checked;s?.(te,$e),o&&!$e.defaultPrevented&&B(async()=>{_(te),await o(te,$e)})},onFocus:w,onBlur:S,"aria-readonly":m||void 0,"aria-describedby":xe,"aria-invalid":R?.type==="error"?!0:void 0,"aria-busy":P||void 0,...de(di.input,Wa.centerInline("-50%"),di.inputCoarse,YE[v],f&&di.inputDisabled)}),x.jsx("span",{ref:ae,className:"xjp7ctv",children:x.jsx(K,{state:ee?"indeterminate":pe?"checked":"unchecked",size:v,isDisabled:f,children:P?x.jsx(_o,{size:"sm",shade:"inherit"}):null})})]}),x.jsx("div",{className:"x78zum5 xdt5ytf",children:x.jsx(vx,{...fe("checkbox-label"),label:e,inputID:M,isLabelHidden:t,isDisabled:f,isOptional:y,isRequired:k,labelIcon:E,description:r,descriptionID:H})})]}),R?.message&&x.jsx(wx,{type:R.type,message:R.message,id:F,variant:"detached"}),G&&Q.renderTooltip(p)]})}H0.displayName="CheckboxInput";const F0=g.createContext(null);F0.displayName="ItemDescriptionContext";const iV=g.lazy(async()=>bd(()=>import("./ItemSwipeLayer-X1u8YGUY.js"),[])),lV=new Set(["option","tab","row","gridcell","columnheader","rowheader","treeitem"]),cV=new Set(["listitem"]),Kn={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}},XE={lineClamp:e=>[{kJFfOR:e!=null?"x1yhjpo9":e,$$css:!0},{"--x-WebkitLineClamp":e??void 0}]},uV={compact:{k8WAf4:"xu0wf1k",$$css:!0},balanced:{k8WAf4:"xce4md1",$$css:!0},spacious:{k8WAf4:"x8o8v82","--_item-inset-inline":"x1ytau7y",$$css:!0}};function Rd({as:e="div",marker:t,startContent:r,label:s,description:o,endContent:l,align:u="center",density:f="balanced",labelLines:d,descriptionLines:p,layout:m="stacked",onClick:y,interactiveRef:k,href:v,target:w,rel:S,isHighlighted:E=!1,isSelected:R=!1,isDisabled:C=!1,swipeActions:T,swipeBehavior:A="reveal",xstyle:N,className:L,style:D,ref:j,role:O,...M}){const H=Ra(),F=Oi(),q=k!=null,B=g.useRef(null),{onClick:U}=yx({containerRef:B,interactiveRef:k??void 0,disabled:C});Ri("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.",q&&(y!=null||v!=null));const _=y!=null||v!=null||q,{target:P,rel:G}=rj(w,S),X=O!=null,Z=typeof e!="string"&&v!=null,Q=T?.leading??[],K=T?.trailing??[],ae=T!=null&&(Q.length>0||K.length>0)&&!C&&!q&&!Z&&(O==null||cV.has(O));Ri("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"`.',ae&&A==="commit"&&(Q.length>1||K.length>1));const I=g.useRef(null),ee=g.useRef(null),pe=g.useCallback(Pe=>{ee.current=Pe},[]),ue=Z?{href:C?void 0:v,target:C?void 0:P,rel:C?void 0:G}:null,ve=O!=null&&lV.has(O),xe=g.useId(),$e=Us(o),te=typeof s=="string",he=typeof o=="string",Re=d!=null?d===1?Kn.labelSingleTruncate:Kn.labelMultiTruncate:te?Kn.labelSingleTruncate:null,Ce=m==="inline"&&o!=null,Te=p!=null?p===1?Kn.descriptionSingleTruncate:Kn.descriptionMultiTruncate:he||Ce?Kn.descriptionSingleTruncate:null,Me=x.jsxs(x.Fragment,{children:[x.jsx("span",{...de(Kn.label,Ce&&Kn.inlineLabel,Re,d!=null&&d>1&&XE.lineClamp(d)),children:s}),o!=null&&x.jsx("span",{id:$e?xe:void 0,...de(Kn.description,Ce&&Kn.inlineDescription,Te,p!=null&&p>1&&XE.lineClamp(p)),children:o})]}),je=Pe=>{C||Pe.target.closest("button, a, input, select, textarea")||y?.(Pe)},He=x.jsxs(x.Fragment,{children:[t,r!=null&&x.jsx("span",{className:"x3psx0u x78zum5",children:r}),X||q?x.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"}}[!!Ce<<1|!!C<<0],children:Me}):v!=null&&!Z?x.jsx(F,{href:v,target:P,rel:G,"aria-disabled":C||void 0,tabIndex:C?-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"}}[!!Ce<<1|!!C<<0],children:Me}):y!=null?x.jsx("button",{type:"button",onClick:y,disabled:C,...{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"}}[!!Ce<<1|!!C<<0],children:Me}):x.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"}}[!!Ce<<1|!!C<<0],children:Me}),l!=null&&x.jsx("span",{...{0:{className:"x3psx0u x78zum5 xvc5jky"},1:{className:"x3psx0u x78zum5 xvc5jky xbyyjgo"}}[!!C<<0],children:l})]}),at=xn(j,B),pt=xn(q?at:j,ae?I:void 0),et=q?U:X?y:_?je:void 0,Ve=ae&&et!=null?Pe=>{ee.current?.shouldSuppressClick()!==!0&&et(Pe)}:et,bt=ae?{onPointerDown:Pe=>ee.current?.handlers.onPointerDown(Pe),onPointerMove:Pe=>ee.current?.handlers.onPointerMove(Pe),onPointerUp:Pe=>ee.current?.handlers.onPointerUp(Pe),onPointerCancel:Pe=>ee.current?.handlers.onPointerCancel(Pe),onClickCapture:Pe=>ee.current?.handlers.onClickCapture(Pe),onKeyDown:Pe=>ee.current?.handlers.onKeyDown(Pe)}:void 0;return x.jsxs(e,{ref:pt,...M,...bt,...ue,"aria-selected":ve&&R||void 0,"aria-current":M["aria-current"]??(R&&!ve?!0:void 0),"aria-disabled":C||void 0,..._?H:void 0,...ye(fe("item",{density:f,align:u}),pn.focusWithin(Kn.root,uV[f],u==="start"&&Kn.alignStart,_&&Kn.interactive,_&&or.backgroundColor,Z&&Kn.linkRoot,E&&Kn.highlighted,R&&Kn.selected,C&&!X&&Kn.disabled,ae&&Kn.swipeRoot,N),L,D),role:O,onClick:Ve,children:[x.jsx(F0,{value:$e?xe:null,children:He}),ae&&x.jsx(g.Suspense,{fallback:null,children:x.jsx(iV,{rootRef:I,onBridge:pe,leading:Q,trailing:K,behavior:A})})]})}Rd.displayName="Item";const t1={withCounter:{kAmcRD:"xfrknyr",$$css:!0},inlineEdgeCompensation:{keTefX:"x1t1czy8",k71WvV:"x1cphv78",$$css:!0},withDivider:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",kx8K5S:"x1t1lzn6",$$css:!0}},ki={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}},dV={decimal:ki.decimal,"lower-alpha":ki.lowerAlpha,"lower-roman":ki.lowerRoman},fV={noRadius:{kaIpWk:"x2u8bby",$$css:!0}};function Sc({label:e,description:t,startContent:r,endContent:s,onClick:o,interactiveRef:l,href:u,target:f,rel:d,isDisabled:p=!1,isSelected:m=!1,xstyle:y,className:k,style:v,ref:w,...S}){const E=g.use(zi),R=E?.density??"balanced",C=E?.hasDividers??!1,T=E?.listStyle??"none",A=E?.edgeCompensation,N=T!=="none",L=T==="none"?null:E?.marker??T,D=L==null?void 0:E?.task,j=D!=null?x.jsx("span",{className:"xqcrz7y x78zum5 x2lah0s x1oms9s6",children:x.jsx(H0,{size:"sm",value:D.isChecked,label:D.label,isLabelHidden:!0,isReadOnly:!0})}):L==="disc"||L==="circle"||L==="square"?x.jsx("span",{className:"xoi2r2e x9f619 x78zum5 x6s0dn4 xl56j7k x2lah0s x12xnipv x1233pnv",children:x.jsx("span",{...de(L==="disc"?ki.dot:L==="circle"?ki.circle:ki.square)})}):L!=null?x.jsx("span",{...de(ki.number,dV[L])}):null;return x.jsx(Rd,{as:"li",ref:w,marker:j,startContent:r,label:e,description:t,endContent:s,onClick:o,interactiveRef:l,href:u,target:f,rel:d,isDisabled:p,isSelected:m,density:R,xstyle:[N&&t1.withCounter,C&&t1.withDivider,C&&fV.noRadius,A==="inline"&&t1.inlineEdgeCompensation,y],...ye(fe("list-item"),{className:k,style:v}),...S})}Sc.displayName="ListItem";const r6=[{labelKey:"settings.workspace",panels:[{id:"appearance",labelKey:"settings.appearance",descriptionKey:"settings.appearanceDescription",icon:j0},{id:"language",labelKey:"settings.languageRegion",descriptionKey:"settings.languageRegionDescription",icon:xx},{id:"advanced",labelKey:"settings.advanced",descriptionKey:"settings.advancedDescription",icon:xP}]},{labelKey:"settings.features",panels:[{id:"library",labelKey:"settings.library",descriptionKey:"settings.libraryDescription",icon:C0}]}],ZE=r6.flatMap(e=>e.panels),hV="appearance",pV=[{id:"color-theme",titleKey:"settings.colorTheme",descriptionKey:"settings.colorThemeDescription",panel:"appearance",icon:j0},{id:"time-zone",titleKey:"settings.timezone",descriptionKey:"settings.timezoneDescription",panel:"language",icon:xx},{id:"time-format",titleKey:"settings.timeFormat",descriptionKey:"settings.timeFormatDescription",panel:"language",icon:hj},{id:"fetcher",titleKey:"settings.capturesFetcher",descriptionKey:"settings.capturesFetcherDescription",panel:"library",icon:fj},{id:"scrape-concurrency",titleKey:"settings.capturesConcurrency",descriptionKey:"settings.capturesConcurrencyDescription",panel:"library",icon:dj},{id:"export-data",titleKey:"settings.exportData",descriptionKey:"settings.exportDataDescription",panel:"advanced",icon:Z1},{id:"import-data",titleKey:"settings.importData",descriptionKey:"settings.importDataDescription",panel:"advanced",icon:X1},{id:"download-skill",titleKey:"settings.downloadSkill",descriptionKey:"settings.downloadSkillDescription",panel:"advanced",icon:pj}];function a6(e){return ZE.find(t=>t.id===e)??ZE[0]}function xV(e,t,r){return[r(e.titleKey),r(e.descriptionKey),r(a6(e.panel).labelKey)].some(s=>s.toLowerCase().includes(t))}const gV={grid:{k1xSpc:"xrvj5dj",$$css:!0}},mV={kJBjZk:"xhij9v2",$$css:!0},QE={templateColumns:e=>[{kumcoG:e!=null?"xqketvx":e,$$css:!0},{"--x-gridTemplateColumns":e??void 0}],autoRows:e=>[mV,{"--x-gridAutoRows":`${e}px`!=null?`${e}px`:void 0}]},yV={start:{kGNEyG:"x7a106z",$$css:!0},center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xpqajaz",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},bV={start:{kAPf3g:"x619ttb",$$css:!0},center:{kAPf3g:"x1o2pa38",$$css:!0},end:{kAPf3g:"x4xo5sw",$$css:!0},stretch:{kAPf3g:"xl4xnwh",$$css:!0}},kV={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}},vV={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}},wV={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}},JE={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 SV(e,t,r,s,o){const l=o!=null?JE[o]:s!=null?JE[s]:null,u=l?`calc((100% - ${t-1} * var(${l})) / ${t})`:`calc(100% / ${t})`,f=`min(100%, max(${e}px, ${u}))`;return`repeat(${r}, minmax(${f}, 1fr))`}function s6({columns:e,rowHeight:t,width:r,height:s,maxWidth:o,minHeight:l,gap:u,rowGap:f,columnGap:d,align:p,justify:m,xstyle:y,className:k,style:v,children:w,ref:S,...E}){let R;if(typeof e=="object"&&e!=null){const A=e.repeat==="fit"?"auto-fit":"auto-fill";e.max!=null&&e.max>0?R=SV(e.minWidth,e.max,A,u,d):R=`repeat(${A}, minmax(${e.minWidth}px, 1fr))`}else typeof e=="number"&&e>0?R=`repeat(${e}, 1fr)`:R="1fr";const C={...r!=null&&{width:typeof r=="number"?`${r}px`:r},...s!=null&&{height:typeof s=="number"?`${s}px`:s},...o!=null&&{maxWidth:typeof o=="number"?`${o}px`:o},...l!=null&&{minHeight:typeof l=="number"?`${l}px`:l}},T=typeof e=="number"?e:void 0;return x.jsx("div",{ref:S,...ye(fe("grid",{columns:T,gap:u,align:p,justify:m}),de(gV.grid,QE.templateColumns(R),t!=null&&QE.autoRows(t),u!=null&&kV[u],f!=null&&vV[f],d!=null&&wV[d],p!=null&&yV[p],m!=null&&bV[m],y),k,{...v,...C}),...E,children:w})}s6.displayName="Grid";const vr={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}},EV=e=>{switch(e){case"default":case"transparent":case"muted":return vr.selected;case"blue":return vr.selectedBlue;case"cyan":return vr.selectedCyan;case"gray":return vr.selectedGray;case"green":return vr.selectedGreen;case"orange":return vr.selectedOrange;case"pink":return vr.selectedPink;case"purple":return vr.selectedPurple;case"red":return vr.selectedRed;case"teal":return vr.selectedTeal;case"yellow":return vr.selectedYellow;default:return vr.selectedUnknown}};function o6({label:e,isSelected:t,onChange:r,onClick:s,onMouseUp:o,isDisabled:l=!1,children:u,padding:f,variant:d="default",elevation:p="none",width:m,height:y,maxWidth:k,ref:v,xstyle:w,className:S,style:E,...R}){const C=Ra(),T=g.useRef(null),A=g.useRef(null),N=g.useCallback(H=>{l||r(!t)},[l,t,r]),L=g.useCallback(H=>{if(l){(H.key===" "||H.key==="Enter")&&H.preventDefault();return}H.key==="Enter"&&(H.preventDefault(),r(!t))},[l,t,r]),{onClick:D,onMouseUp:j}=yx({containerRef:T,interactiveRef:A,onClick:N,disabled:l}),O=s?H=>{D(H),s(H)}:D,M=o?H=>{j(H),o(H)}:j;return x.jsxs(Ks,{ref:xn(v,T),...l?void 0:C,width:m,height:y,maxWidth:k,padding:f,variant:d,elevation:p,...ye(fe("selectable-card",{variant:d,selected:t?"true":"false"}),pn.focusWithin(),S,E),xstyle:[vr.interactive,t&&EV(d),!l&&vr.overlay,!l&&or.pressedAlpha,l&&vr.disabled,w],onClick:l?void 0:O,onMouseUp:l?void 0:M,...R,children:[x.jsx("input",{ref:A,type:"checkbox",checked:t,"aria-label":e,"aria-disabled":l?"true":void 0,onChange:()=>{l||r(!t)},onKeyDown:L,className:"x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km"}),u]})}o6.displayName="SelectableCard";var _t={size:"1em","aria-hidden":!0},$V={close:x.jsx(w4,{..._t}),chevronDown:x.jsx(Nj,{..._t}),chevronLeft:x.jsx(Lj,{..._t}),chevronRight:x.jsx(Oj,{..._t}),chevronsLeft:x.jsx(_j,{..._t}),chevronsRight:x.jsx(Pj,{..._t}),check:x.jsx(Aj,{..._t}),success:x.jsx(Hj,{..._t}),error:x.jsx(Uj,{..._t}),warning:x.jsx(g4,{..._t}),info:x.jsx(o4,{..._t}),calendar:x.jsx(Tj,{..._t}),clock:x.jsx(Gj,{..._t}),externalLink:x.jsx(e4,{..._t}),menu:x.jsx(l4,{..._t}),moreHorizontal:x.jsx(Qj,{..._t}),search:x.jsx(f4,{..._t}),upload:x.jsx(y4,{..._t}),arrowUp:x.jsx(Ej,{..._t}),arrowDown:x.jsx(kj,{..._t}),arrowsUpDown:x.jsx(wj,{..._t}),funnel:x.jsx(a4,{..._t}),eyeSlash:x.jsx(n4,{..._t}),viewColumns:x.jsx(Wj,{..._t}),copy:x.jsx(Xj,{..._t}),checkDouble:x.jsx(jj,{..._t}),wrench:x.jsx(k4,{..._t}),stop:x.jsx(p4,{..._t}),microphone:x.jsx(u4,{..._t})};const TV={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:$V},e3={container:{kVAEAm:"x1n2onr6",kzqmXN:"xh8yej3",kVQacm:"x7giv3",kAzted:"x2lwn1j",kmuXW:"x2lah0s",$$css:!0},ellipse:{kaIpWk:"x16rqkct",$$css:!0}},CV={ratio:e=>[{kOBAk4:e!=null?"x10y9f9r":e,$$css:!0},{"--x-aspectRatio":e??void 0}]};function i6({ratio:e,shape:t="rectangle",fit:r,children:s,xstyle:o,className:l,style:u,ref:f,...d}){return x.jsx("div",{ref:f,...ye(fe("aspect-ratio",{shape:t}),de(e3.container,CV.ratio(e),t==="ellipse"&&e3.ellipse,o),l,u),...d,children:x.jsx("div",{"data-astryx-aspect-ratio-override":r,...{0:{className:"x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d"},1:{className:"x10l6tqk x13vifvy x1o0tod xh8yej3 x5yr21d x78zum5 x6s0dn4 xl56j7k"}}[(r==="center")<<0],children:s})})}i6.displayName="AspectRatio";const t3={wrapper:{k8WAf4:"xu0wf1k",kg3NbH:"x7a5moj",$$css:!0},icon:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kmuXW:"x2lah0s",$$css:!0}};function l6({ref:e,label:t,clearLabel:r,placeholder:s,value:o,onValueChange:l,onKeyDown:u,onFocus:f,onBlur:d,onContainerKeyDown:p,xstyle:m,className:y,style:k,...v}){const[w,S]=g.useState(!1);Zp();const E=g.useCallback(T=>{S(ic()==="keyboard"),f?.(T)},[f]),R=g.useCallback(T=>{S(!1),d?.(T)},[d]),C=g.useCallback(T=>{l(""),!T||T.detail===0?typeof e=="object"&&e?.current&&e.current.focus():requestAnimationFrame(()=>{typeof e=="object"&&e?.current&&e.current.focus({preventScroll:!0})})},[l,e]);return x.jsx("div",{onKeyDown:p,...ye(de(t3.wrapper,m),y,k),children:x.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:[x.jsx(ft,{icon:"search",size:"sm",color:"secondary",xstyle:t3.icon}),x.jsx("input",{ref:e,type:"text","aria-label":t,placeholder:s,value:o,onChange:T=>l(T.target.value),onKeyDown:u,onFocus:E,onBlur:R,className:"x1iyjqo2 xs83m0k xeuugli x1717udv x1ghz6dp xc342km xng3xce xjbqb8w x1tgivj0 x9ynric xcr08ib x1w61h2b x1kq96og x1a2a7pz xeyghm5",...v}),o!==""&&x.jsx(Sx,{label:r,onClick:C})]})})}l6.displayName="PanelSearchInput";function jV(e){const t=e.cloneNode(!0);for(const r of t.querySelectorAll('[aria-hidden="true"]'))r.remove();return(t.textContent??"").replace(/\s+/g," ").trim()}function RV(e,t,r){const s=vc(),o=g.useRef(null);g.useEffect(()=>{if(!t){o.current=null;return}const l=e.current;if(!l)return;const u=jV(l);if(u==="")return;const f=`${r}\0${u}`;o.current!==f&&(o.current=f,s(u))})}function c6(e){return typeof e=="string"?!0:!("type"in e)}function AV(e){return typeof e=="object"&&"type"in e&&e.type==="divider"}function u6(e){return typeof e=="object"&&"type"in e&&e.type==="section"}function $p(e){return typeof e=="string"?{value:e,label:e}:{...e,label:e.label??e.value}}function MV(e){const t=[];for(const r of e)if(c6(r))t.push($p(r));else if(u6(r))for(const s of r.options)t.push($p(s));return t}function NV({isOpen:e,highlightedIndex:t,setHighlightedIndex:r,getOptionId:s,itemCount:o}){const l=g.useRef(!1),u=g.useCallback(f=>{f!==t&&(l.current=!0),r(f)},[t,r]);return g.useEffect(()=>{if(l.current){l.current=!1;return}!e||t<0||document.getElementById(s(t))?.scrollIntoView?.({block:"nearest"})},[e,t,s,o]),u}const zV=1;function n3(e){let t=0,r=e;for(;r;)t+=r.offsetTop,r=r.offsetParent;return t}function LV({isOpen:e,selectedItemIndex:t,listboxId:r,listboxRef:s,anchorRef:o}){const[l,u]=g.useState(0),[f,d]=g.useState(!1),p=g.useCallback((m,y)=>{u(m),d(y)},[]);return qn(()=>{if(!e){p(0,!1);return}if(!s.current||!o.current){p(0,!0);return}const m=t>=0?t:0,y=`${r}-item-${m}`,k=document.getElementById(y);if(!k){p(0,!0);return}const v=s.current,w=o.current.getBoundingClientRect(),S=v.offsetHeight;if(S<=0){p(0,!0);return}const E=n3(k)-n3(v)-v.scrollTop+k.offsetHeight/2,C=w.top+w.height/2-E-zV,T=window.innerHeight,A=Math.max(0,T-S),N=Math.min(Math.max(C,0),A),L=Math.max(0,w.bottom-N);p(L,!0)},[e,t,r,s,o,p]),{offset:l,isPositioned:f}}function DV({selectableItems:e,value:t,isDisabled:r=!1,isOpen:s,hasSearch:o=!1,onOpen:l,onClose:u,onSelect:f,onClear:d,onSearchSeed:p,listboxId:m}){const[y,k]=g.useState(-1),v=g.useCallback(L=>`${m}-item-${L}`,[m]),w=g.useCallback(()=>e.map((L,D)=>L.disabled?-1:D).filter(L=>L>=0),[e]),S=g.useCallback(()=>e.findIndex(L=>L.value===t),[e,t]),E=g.useCallback(()=>{k(-1),u()},[u]),R=g.useCallback(L=>{L.disabled||(f?.(L.value),E())},[f,E]),C=g.useCallback(()=>{if(!r){if(s)E();else if(l()!==!1&&!o){const D=S();k(D>=0?D:0)}}},[r,s,l,E,S,o]),T=NV({isOpen:s,highlightedIndex:y,setHighlightedIndex:k,getOptionId:v}),A=g.useCallback((L,D)=>{L.disabled||T(D)},[T]),N=g.useCallback(L=>{if(r)return;const D=w();switch(L.key){case"ArrowDown":if(L.preventDefault(),!s)l()!==!1&&k(0);else{const j=D.indexOf(y),O=Math.min(j+1,D.length-1);k(D[O]??y)}break;case"ArrowUp":if(L.preventDefault(),!s)l()!==!1&&k(e.length-1);else{const j=D.indexOf(y),O=Math.max(j-1,0);k(D[O]??y)}break;case" ":if(o)break;case"Enter":if(L.preventDefault(),s&&y>=0){const j=e[y];j&&!j.disabled&&R(j)}else if(!s&&l()!==!1&&!o){const O=S();k(O>=0?O:0)}break;case"Escape":s&&(L.preventDefault(),E());break;case"Tab":s&&E();break;case"Home":L.preventDefault(),s&&D.length>0&&k(D[0]);break;case"End":L.preventDefault(),s&&D.length>0&&k(D[D.length-1]);break;case"PageUp":L.preventDefault(),s&&D.length>0&&k(D[0]);break;case"PageDown":L.preventDefault(),s&&D.length>0&&k(D[D.length-1]);break;case"Delete":case"Backspace":!o&&!s&&d!=null&&t!=null&&(L.preventDefault(),d());break;default:o&&p&&L.key.length===1&&!L.ctrlKey&&!L.metaKey&&(s||l()!==!1)&&p(L.key);break}},[r,s,l,E,e,y,R,S,w,o,d,p,t]);return{highlightedIndex:y,setHighlightedIndex:k,getItemId:v,onTriggerClick:C,onKeyDown:N,onItemSelect:R,onItemMouseEnter:A}}function U0(e,t,r){const[s,o]=g.useState(!1),l=g.useCallback(()=>{const u=e.current;if(!u)return;const f=u.scrollHeight>u.clientHeight+1;o(d=>d===f?d:f)},[e]);return qn(()=>{if(!r)return;const u=e.current;if(!u)return;l();const f=typeof ResizeObserver>"u"?null:new ResizeObserver(l),d=typeof MutationObserver>"u"?null:new MutationObserver(l);return f?.observe(u),d?.observe(u,{childList:!0,characterData:!0,subtree:!0}),u.addEventListener("load",l,!0),window.addEventListener("resize",l),window.visualViewport?.addEventListener("resize",l),()=>{f?.disconnect(),d?.disconnect(),u.removeEventListener("load",l,!0),window.removeEventListener("resize",l),window.visualViewport?.removeEventListener("resize",l)}},[r,l,e]),qn(()=>{r&&l()},[t,r,l]),s}const V0=aa("stacked");V0.displayName="SelectorRowLayoutContext";function OV(){return g.use(V0)}const IV={root:{k8WAf4:"xt970qd",kg3NbH:"xnjsko4",kaIpWk:"x2u8bby",$$css:!0}};function d6({icon:e,label:t,description:r,layout:s,endContent:o,xstyle:l,className:u,style:f}){const d=OV();return x.jsx(Rd,{startContent:e?Ca(e,{size:"sm",color:"secondary"}):void 0,label:t,description:r,layout:d==="inline"?"inline":s,endContent:o,xstyle:[IV.root,l],...ye(fe("selector-option"),{className:u,style:f})})}d6.displayName="SelectorOption";const _V=g.lazy(async()=>bd(()=>import("./BottomSheet-CCHJmC-l.js"),[]).then(e=>({default:e.BottomSheet}))),qV={heading:{k1K539:"x1p37lm5",kUOVxO:"xam6yil",$$css:!0}};function PV({isOpen:e,targetRef:t}){return g.useEffect(()=>{if(!e)return;const r=requestAnimationFrame(()=>{t.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(r)},[e,t]),null}function f6({children:e,finalFocusRef:t,initialFocusRef:r,isOpen:s,label:o,onOpenChange:l}){return x.jsx(g.Suspense,{fallback:null,children:x.jsx(_V,{isOpen:s,onOpenChange:l,finalFocusRef:t,label:o,height:"hug",purpose:"info",children:x.jsx(XC,{paddingBlockStart:4,paddingBlockEnd:0,paddingInline:1,children:x.jsxs("div",{className:"xh8yej3",children:[x.jsx(qo,{level:3,xstyle:qV.heading,children:o}),e,x.jsx(PV,{isOpen:s,targetRef:r})]})})})})}f6.displayName="SelectorBottomSheet";const h6="(max-width: 768px) and (pointer: coarse)";function p6(e){const t=wd(h6);return e==="adaptive"?t?"bottom-sheet":"popover":e}function BV(){const[e,t]=g.useState(!1);Zp();const r=g.useCallback(()=>{t(ic()==="pointer")},[]),s=g.useCallback(()=>{t(!1)},[]),o=g.useCallback(()=>{ic()==="keyboard"&&t(!1)},[]);return{isFocusRingSuppressed:e,onFocusReturnTargetFocus:o,prepareFocusReturn:r,resetFocusReturn:s}}function HV({presentation:e,onHide:t,onShow:r,popoverOptions:s,triggerRef:o}){const l=p6(e),u=g.useRef(l),[f,d]=g.useState(!1),p=g.useRef(!1),[m,y]=g.useState(!1),k=g.useRef(t),v=g.useRef(r),w=g.useRef(!1),{isFocusRingSuppressed:S,onFocusReturnTargetFocus:E,prepareFocusReturn:R,resetFocusReturn:C}=BV();k.current=t,v.current=r;const T=g.useCallback(()=>{R(),k.current(),o.current?.focus()},[R,o]),A=g.useCallback(()=>{w.current=!0,C(),v.current()},[C]),N=E0({...s,onHide:T,onShow:A}),{hide:L,show:D}=N,j=g.useCallback(()=>(u.current=l,l==="bottom-sheet"?(C(),v.current(),p.current=!0,y(!0),d(!0),!0):(y(!1),w.current=!1,D(),w.current)),[C,l,D]),O=g.useCallback(()=>{p.current?(R(),p.current=!1,d(!1),k.current()):L()},[L,R]),M=g.useCallback(B=>{E(),!p.current&&u.current==="bottom-sheet"&&y(!1)},[E]),H=g.useCallback(B=>{B?j():O()},[O,j]),F=N.isOpen||f;return{activePresentation:F||m?u.current:l,hide:O,isOpen:F,isSheetOpen:f,isSheetPresented:m,isTriggerFocusRingSuppressed:S,onSheetOpenChange:H,onTriggerFocus:M,popover:N,show:j}}const FV={pointerRestoredFocus:{kVAM5u:"xvy26l8",kGVxlE:"x1gnnqk1",kMeerF:"x1k57tk5",k3XXqK:"x1t137rt",$$css:!0}},jn={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}},UV={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}},VV={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}},r3={warning:"warning",error:"error",success:"success"},a3={warning:"warning",error:"error",success:"success"},GV={warning:"@astryx.input.statusButton.warning",error:"@astryx.input.statusButton.error",success:"@astryx.input.statusButton.success"};function KV({option:e}){return x.jsx(d6,{icon:e.icon,label:e.label??e.value,description:e.description})}function ob(e,t){return t?(e.label??e.value).toLowerCase().includes(t.toLowerCase()):!0}function s3(e,t){return t?e.filter(r=>ob(r,t)):e}function Ql(e){const t=Nt(),r=Ra(),{label:s,isLabelHidden:o=!1,description:l,isOptional:u=!1,isRequired:f=!1,isDisabled:d=!1,isReadOnly:p=!1,disabledMessage:m,options:y,value:k,onChange:v,changeAction:w,isLoading:S=!1,placeholder:E,size:R,variant:C="input",status:T,statusVariant:A="attached",labelTooltip:N,startIcon:L,htmlName:D,renderOption:j,renderValue:O,indicatorPosition:M="end",hasSearch:H=!1,searchPlaceholder:F,emptyText:q,emptySearchText:B,placement:U,presentation:_="popover",isDefaultOpen:P=!1,width:G,containerXstyle:X,containerClassName:Z,containerStyle:Q,controlXstyle:K,controlClassName:ae,controlStyle:I,ref:ee,onFocus:pe,onKeyDown:ue,"aria-describedby":ve,hasClear:xe,id:$e,...te}=e,{rest:he,container:Re}=$x("Selector",te,{containerXstyle:X,containerClassName:Z,containerStyle:Q}),Ce=jd({isRequired:f,isOptional:u}),Te=E??t("@astryx.selector.placeholder"),Me=F??t("@astryx.selector.searchPlaceholder"),je=q??t("@astryx.selector.empty"),He=B??t("@astryx.selector.emptySearchResults"),at=xe===!0,pt=bc(R,"md"),et=C==="ghost"&&A==="attached"?"detached":A,Ve=p&&!d,bt=k===null?void 0:k,Pe=g.useId(),rt=$e??Pe,lt=g.useId(),st=g.useRef(null),ct=g.useId(),we=g.useId(),Ge=g.useId(),Pt=g.useId(),bn=g.useId(),gn=g.useRef(null),An=g.useRef(null),Vt=xn(An,ee),Yn=g.useRef(null),Jt=Ex(),[kn,Ye]=g.useState(""),Le=g.useRef(""),en=kn.length>0,[,un]=g.useTransition(),[an,ur]=g.useOptimistic(bt),Ja=S||an!==bt,Tr=vc(),Br=d&&!!m,Xn=Ya({placement:"above",focusTrigger:"always",isEnabled:Br}),Gt=Ya({placement:"above",isEnabled:et==="tooltip"&&!!T?.message}),{ariaLabelledBy:dr,ariaDescribedBy:Mn}=Kb(Ge,[l?ct:null,!Jt&&et!=="tooltip"&&T?.message?we:null,et==="tooltip"&&T?.message?Gt.describedBy:null,Br?Xn.describedBy:null,Ve?Pt:null],Jt),Nn=g.useMemo(()=>MV(y),[y]);g.useEffect(()=>{Nn.some(Ee=>Ee.action!=null)&&Yp()},[Nn]);const W=g.useMemo(()=>s3(Nn,kn),[Nn,kn]),Y=g.useMemo(()=>Nn.findIndex(Ee=>Ee.value===an),[Nn,an]),oe=g.useMemo(()=>Y>=0?Nn[Y]:void 0,[Nn,Y]),ge=g.useRef(null),ke=g.useRef(()=>{}),Ie=g.useCallback(()=>{Ye(""),Le.current="",ke.current(),Tr("")},[Tr]),De=g.useCallback(()=>{H&&requestAnimationFrame(()=>{const Ee=Yn.current;Ee&&(Ee.focus(),Ee.setSelectionRange(Ee.value.length,Ee.value.length))})},[H]),Se=HV({presentation:_,onHide:Ie,onShow:De,triggerRef:An,popoverOptions:{hasLightDismiss:!0,hasCloseButton:!1,hasAutoFocus:!1,role:"none",surfaceTarget:"selector-popup"}}),{popover:Ne}=Se,Ke=Se.hide,Be=Se.isOpen,Ze=wL(Ne.id,Ne.isOpen);g.useEffect(()=>{P&&!Ve&&Se.show()},[]),g.useEffect(()=>{Ve&&Be&&Ke()},[Ve,Be,Ke]);const Fe=g.useCallback(Ee=>{if(Ee.length===0){Tr("");return}if(S){Tr("");return}const it=s3(Nn,Ee).length;it!==0&&Tr(t("@astryx.selector.resultCount",{count:it}))},[Tr,S,Nn,t]),St=g.useCallback(Ee=>{Ye(Ee),Le.current=Ee,Fe(Ee)},[Fe]),At=Se.isOpen&&!S&&W.length===0;RV(st,At,kn);const Ft=U==null&&!H,{offset:Ct,isPositioned:kt}=LV({isOpen:Ne.isOpen&&Ft,selectedItemIndex:Y,listboxId:lt,listboxRef:ge,anchorRef:gn}),mn=Ft?Ct:0,zn=Ft?kt:!0,Aa=U??"below",vn=mn>0?{marginBlockStart:`-${mn}px`}:void 0,Bt=g.useCallback(()=>{ke.current(),v?.(null),w&&un(async()=>{ur(void 0),await w(null)})},[v,w,un,ur]),Yt=g.useCallback(Ee=>{const it=Le.current+Ee;Le.current=it,Ye(it),Fe(it)},[Fe]),wn=g.useCallback(Ee=>{v?.(Ee),w&&un(async()=>{ur(Ee),await w(Ee)})},[v,w,un,ur]),{highlightedIndex:Zn,setHighlightedIndex:Hr,getItemId:Fr,onTriggerClick:ks,onKeyDown:Qn,onItemSelect:ot,onItemMouseEnter:sn}=DV({selectableItems:W,value:an,isDisabled:d||Ve,isOpen:Se.isOpen,hasSearch:H,onOpen:g.useCallback(()=>Se.show(),[Se]),onClose:Se.hide,onSelect:wn,onClear:at?Bt:void 0,onSearchSeed:Yt,listboxId:lt}),dn=L0({getItemLabels:()=>Nn.map(Ee=>Ee.label??Ee.value),isDisabled:Ee=>Nn[Ee]?.disabled===!0,getCurrentIndex:()=>Se.isOpen?Zn:Y,onMatch:Ee=>{const it=Nn[Ee];Se.isOpen?Hr(Ee):it.value!==an&&(wn(it.value),Tr(it.label??it.value))}});ke.current=dn.reset;const Ln=g.useCallback(Ee=>{const it=/-item-(\d+)$/.exec(Ee.id);return it==null?-1:Number(it[1])},[]),Ma=U0(ge,W.length,Se.isOpen),Ur=kx({menuRef:ge,itemSelector:'[role="option"]:not([aria-disabled="true"])',onHighlight:Ee=>{if(Ee==null){Hr(-1);return}const it=Ln(Ee),oa=W[it];oa!=null&&sn(oa,it)},onActivate:Ee=>{const it=W[Ln(Ee)];it!=null&&ot(it)},onDismiss:Se.hide}),tt=g.useCallback(Ee=>{if(!(d||Ve)){if(!H&&dn.onKeyDown(Ee)){Ee.preventDefault();return}Qn(Ee)}},[d,Ve,H,dn,Qn]),sa=g.useCallback(Ee=>{Ee.stopPropagation(),Bt()},[Bt]),Po=g.useCallback(()=>H?x.jsx(l6,{ref:Yn,id:bn,label:t("@astryx.selector.searchOptions"),clearLabel:t("@astryx.textInput.clearLabel",{label:t("@astryx.selector.searchOptions")}),...fe("selector-search"),xstyle:Se.activePresentation==="popover"&&C!=="ghost"&&jn.searchRowInput,role:"combobox","aria-expanded":Se.isOpen,"aria-controls":lt,"aria-autocomplete":"list","aria-activedescendant":Se.isOpen&&Zn>=0?Fr(Zn):void 0,value:kn,onValueChange:St,onContainerKeyDown:Ee=>{Ee.target!==Yn.current&&Ee.key==="Tab"&&!Ee.shiftKey&&Qn(Ee)},onKeyDown:Ee=>{if(!gd(Ee.nativeEvent)){if(Ee.key==="ArrowDown"||Ee.key==="ArrowUp"||Ee.key==="PageUp"||Ee.key==="PageDown"||Ee.key==="Enter"||Ee.key==="Escape"){Qn(Ee);return}Ee.key==="Tab"&&(Ee.shiftKey||!en)&&Qn(Ee)}},placeholder:Me}):null,[H,bn,lt,kn,en,Me,St,Qn,Se.isOpen,Se.activePresentation,Zn,Fr,C,t]),Bo=n6("check"),Na=g.useCallback((Ee,it)=>{const oa=it===Zn,ia=Ee.value===bt,fr=x.jsx("span",{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s xgomdpo xjl7jj",children:x.jsx(Bo,{state:ia?"checked":"unchecked",size:"sm",isDisabled:Ee.disabled??!1,...fe("selector-check")})}),la=x.jsx("span",{className:"x78zum5 x6s0dn4 x1txdalj x98rzlu xeuugli",children:j?j(Ee):x.jsx(KV,{option:Ee})}),Tc=M==="start"?x.jsxs(x.Fragment,{children:[fr,la]}):x.jsxs(x.Fragment,{children:[la,fr]});return x.jsx("div",{id:Fr(it),role:"option","aria-selected":ia,"aria-disabled":Ee.disabled,onClick:()=>ot(Ee),onMouseEnter:()=>sn(Ee,it),...ye(fe("selector-option-row",{size:pt,selected:ia?"selected":null,disabled:Ee.disabled?"disabled":null}),de(jn.item,VV[pt],oa&&jn.itemHighlighted,ia&&jn.itemSelected,Ee.disabled&&jn.itemDisabled)),children:Tc},Ee.value)},[j,M,Zn,pt,bt,Fr,ot,sn,Bo]),vs=g.useCallback(()=>{const Ee=H&&!!kn;if(W.length===0&&!S)return[x.jsx("div",{ref:st,role:"presentation",...ye(fe("selector-empty-state"),{className:"x1b2ylru x2b8uid xv1l7n4 x9ynric xcr08ib"}),children:Ee?He:je},"empty")];let it=0;const oa=[];for(let ia=0;ia<y.length;ia++){const fr=y[ia];if(AV(fr)){if(Ee)continue;oa.push(x.jsx(Ni,{"aria-hidden":"true",xstyle:jn.divider},`divider-${ia}`))}else if(u6(fr)){const la=[];for(const Tc of fr.options){const hr=$p(Tc);Ee&&!ob(hr,kn)||(la.push(Na(hr,it)),it++)}if(la.length===0)continue;oa.push(x.jsxs("div",{role:"group","aria-label":fr.title,children:[fr.title&&x.jsx("div",{"aria-hidden":"true",...ye(fe("selector-section-heading"),{className:"xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o"}),children:fr.title}),la]},`section-${ia}`))}else if(c6(fr)){const la=$p(fr);if(Ee&&!ob(la,kn))continue;oa.push(Na(la,it)),it++}}return oa},[y,Na,H,kn,W,S,je,He]),Lx=T!=null&&et!=="detached",$c=T!=null&&et==="tooltip"&&!!T.message,Nd=Jt?"inline":"stacked",Dx=oe&&O?x.jsx(V0,{value:Nd,children:x.jsx("span",{...{0:{className:"x1iyjqo2 xeuugli xb3r6kr x1yc453h"},1:{className:"x1iyjqo2 xeuugli xb3r6kr x1yc453h xmz0i5r"}}[!!Jt<<0],children:O(oe)})}):x.jsxs(x.Fragment,{children:[!L&&oe?.icon!=null&&Ca(oe.icon,{size:"sm",color:"secondary"}),x.jsx("span",{className:"x1iyjqo2 xeuugli xb3r6kr xlyipyv xuxw1ft x1yc453h",children:oe?.label??Te})]}),Et=H?x.jsxs("div",{children:[Po(),x.jsx(Ni,{}),x.jsx("div",{ref:ge,id:lt,role:"listbox","aria-labelledby":rt,...Ur.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|(Se.activePresentation==="popover"&&C!=="ghost")<<0],children:vs()})]}):x.jsx("div",{ref:ge,id:lt,role:"listbox",...Ur.menuProps,"aria-label":Se.activePresentation==="bottom-sheet"?s:void 0,"aria-labelledby":Se.activePresentation==="bottom-sheet"?void 0:rt,"aria-activedescendant":Se.isOpen&&Zn>=0?Fr(Zn):void 0,tabIndex:Se.activePresentation==="bottom-sheet"?0:void 0,onKeyDown:Se.activePresentation==="bottom-sheet"?tt: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|(Se.activePresentation==="popover"&&C!=="ghost")<<1|(Se.activePresentation==="popover"&&!zn)<<0],children:vs()});let Pi=null;Se.activePresentation==="bottom-sheet"?(!Ve||Se.isSheetPresented)&&(Pi=x.jsx(f6,{isOpen:Se.isSheetOpen,onOpenChange:Se.onSheetOpenChange,finalFocusRef:An,initialFocusRef:H?Yn:ge,label:s,children:Et})):Ve||(Pi=Ne.render(Et,{placement:Aa,alignment:"start",offset:Ft?void 0:Wn["--spacing-1"],xstyle:[jn.popover,yd[Aa]],style:vn}));const Bi={...he,id:rt,"aria-describedby":[ve,Mn].filter(Boolean).join(" ")||void 0,"aria-labelledby":dr,"aria-required":Ce?"true":void 0,"aria-invalid":T?.type==="error"?"true":void 0,"aria-busy":Ja||void 0,onKeyDown:Ir(tt,ue),onFocus:Ee=>{pe?.(Ee),Se.onTriggerFocus(Ee)},tabIndex:d&&!Br?-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"}}[!!Ve<<1|!!Jt<<0]},Ho=x.jsxs(x.Fragment,{children:[x.jsxs("div",{ref:Ee=>{gn.current=Ee,Ne.triggerRef(Ee),Xn.ref(Ee)},onClick:ks,...r,...ye(fe("selector",{variant:C,size:pt,status:T?.type??null,disabled:d?"disabled":null,readonly:Ve?"readonly":null}),de(uc.base,jn.triggerContainer,UV[pt],C==="ghost"&&jn.triggerGhost,C==="ghost"&&or.backgroundImage,C==="ghost"&&Bs.focusWithin,Se.isTriggerFocusRingSuppressed&&FV.pointerRestoredFocus,d&&uc.disabled,Ve&&jn.triggerReadOnly,C==="ghost"&&d&&jn.triggerGhostDisabled,C==="ghost"&&Ve&&jn.triggerGhostReadOnly,!oe&&jn.triggerPlaceholder,C!=="ghost"&&T&&_0[T.type],C!=="ghost"&&T&&!d&&q0[T.type],C!=="ghost"&&Jt&&P0.inGroup,Jt&&jn.triggerInGroup,K),ae,I),children:[L&&Ca(L,{size:"sm",color:"secondary"}),Jt&&x.jsx(Gs,{id:Ge,children:s}),Ve&&x.jsx(Gs,{id:Pt,children:t("@astryx.input.readOnly")}),x.jsx("button",{...Bi,ref:Vt,type:"button",role:Ve||!H?"combobox":void 0,"aria-haspopup":Ve?void 0:Se.activePresentation==="bottom-sheet"?"dialog":"listbox","aria-expanded":Ve?!1:Se.isOpen,"aria-controls":Ve?void 0:lt,"aria-readonly":Ve||void 0,"aria-activedescendant":!Ve&&!H&&Se.isOpen&&Zn>=0?Fr(Zn):void 0,disabled:d&&!Br,"aria-disabled":Br?"true":void 0,children:Dx}),D!=null&&x.jsx("input",{type:"hidden",name:D,value:k??"",disabled:d}),Ja&&x.jsx(_o,{size:"sm"}),at&&k!=null&&!d&&!Ve&&x.jsx(HU,{...Ze,label:t("@astryx.selector.clearLabel",{label:s}),onClick:sa}),Lx?$c?x.jsx("button",{ref:Gt.ref,type:"button","aria-label":t(GV[T.type]),"aria-describedby":Gt.describedBy,...Ze,onClick:Ee=>Ee.stopPropagation(),...de(Bs.focusVisible,jn.statusButton),children:x.jsx(ft,{icon:r3[T.type],size:"sm",color:a3[T.type],xstyle:jn.triggerIcon})}):x.jsx(ft,{icon:r3[T.type],size:"sm",color:a3[T.type],xstyle:jn.triggerIcon}):Ve?null:x.jsx(ft,{icon:"chevronDown",size:"sm",color:"secondary",xstyle:[jn.triggerIcon,jn.triggerIconRotation,Se.isOpen&&jn.triggerIconOpen],...fe("selector-indicator-icon",{state:Se.isOpen?"expanded":"collapsed"})})]}),Pi,$c&&Gt.renderTooltip(T?.message??""),Br&&Xn.renderTooltip(m)]});return Jt?Ho:x.jsx(wc,{label:s,isLabelHidden:o,description:l,inputID:rt,descriptionID:l?ct:void 0,isOptional:u,isRequired:f,isDisabled:d,status:T?{type:T.type,message:T.message,messageID:T.message?we:void 0}:void 0,statusVariant:et,labelTooltip:N,width:G,...Re,children:Ho})}Ql.displayName="Selector";const o3=new Map;function x6(e){const t=e??"";let r=o3.get(t);if(r===void 0){let s;try{s=new Intl.NumberFormat(e)}catch{s=new Intl.NumberFormat("en")}const o=s.formatToParts(12345.6),l=s.formatToParts(11111111111).filter(f=>f.type==="integer").map(f=>f.value.length),u=l.length>1;r={group:(o.find(f=>f.type==="group")?.value??",").normalize("NFKC"),decimal:o.find(f=>f.type==="decimal")?.value??".",primaryGroupSize:u?l[l.length-1]:3,secondaryGroupSize:u?l[l.length-2]:3},o3.set(t,r)}return r}const g6=new RegExp("\\p{Nd}","u"),i3=new RegExp("\\p{Sc}","u"),WV=/[\u200B-\u200D\u200E\u200F\u061C\u2066-\u2069\uFEFF]/g,l3="−‒–-",YV=",.' ’٫٬",XV=new RegExp(`^[0-9${YV}]+$`),ZV=/^(?:\d+\.?\d*|\.\d+)$/;function QV(e){const t=e.codePointAt(0);if(t==null)return null;for(let r=t;t-r<10;r--)if(!g6.test(String.fromCodePoint(r-1)))return t-r;return null}function JV(e){let t="";for(const r of e){if(!g6.test(r)){t+=r;continue}const s=QV(r);if(s==null)return null;t+=String(s)}return t}function c3(e,t,r,s,o,l){let u=e,f=null;if(r!==""&&e.includes(r)){const p=e.indexOf(r);if(e.includes(r,p+r.length)||(u=e.slice(0,p),f=e.slice(p+r.length),!/^\d*$/.test(f)))return null}let d;if(t!==""&&u.includes(t)){const p=u.split(t);if(p.length-1<l||!p.every(k=>/^\d+$/.test(k)))return null;const m=p[0];if(p[p.length-1].length!==s||m.length>o)return null;for(let k=1;k<p.length-1;k++)if(p[k].length!==o)return null;d=p.join("")}else{if(!/^\d*$/.test(u))return null;d=u}return d===""&&(f==null||f==="")?null:f==null?d:`${d}.${f}`}function eG(e){return/^[\s'\u2019]$/.test(e)}function tG(e,t){if(!XV.test(e))return null;const{group:r,decimal:s,primaryGroupSize:o,secondaryGroupSize:l}=x6(t),u=c3(e,r,s,o,l,1);if(u!=null)return u;if(ZV.test(e))return e;const f=[...new Set(e.replace(/\d/g,""))];if(f.length===0||f.length>2)return null;for(const d of f){const p=e.split(d).length-1,m=eG(d)?1:2;if(p<m)continue;const y=f.find(v=>v!==d)??"";if(y!==""&&e.split(y).length-1!==1)continue;const k=c3(e,d,y,3,3,m);if(k!=null)return k}return null}function nG(e,t){const r=JV(e.normalize("NFKC").replace(WV,""));if(r==null)return null;let s=r.trim(),o=1;const l=/^\((.*)\)$/s.exec(s);l&&(o=-1,s=l[1].trim()),s=u3(s);let u=!1;const f=new RegExp(`^([+${l3}])\\s*`).exec(s);if(f)u=!0,o=f[1]==="+"?o:-o,s=s.slice(f[0].length);else{const S=new RegExp(`\\s*([+${l3}])$`).exec(s);S&&(u=!0,o=S[1]==="+"?o:-o,s=s.slice(0,s.length-S[0].length))}if(l&&u)return null;s=u3(s);let d=0;const p=/\s*[eE]\s*([+-]?\d+)$/.exec(s);p&&(d=Number(p[1]),s=s.slice(0,s.length-p[0].length));const m=s.trim();if(m==="")return null;const y=tG(m,t);if(y==null)return null;const k=Number(y);if(!Number.isFinite(k))return null;const v=d===0?k:Number((k*10**d).toPrecision(15));if(!Number.isFinite(v))return null;const w=o*v;return Object.is(w,-0)?0:w}function u3(e){let t=e.trim();return i3.test(t.charAt(0))&&(t=t.slice(1).trim()),i3.test(t.charAt(t.length-1))&&(t=t.slice(0,-1).trim()),t}function rG(e,t){const{decimal:r}=x6(t),s=String(e);return r==="."?s:s.replace(".",r)}function m6(e,t){const r=e.trim();if(r==="")return null;const s=nG(r,t.locale);return s==null||!Number.isFinite(s)||t.isIntegerOnly&&!Number.isInteger(s)?null:s}function aG(e,t){const r=m6(e,t);return r===null||t.min!=null&&r<t.min||t.max!=null&&r>t.max?null:r}function sG(e,t){if(e.trim()==="")return t.hasClear?{type:"clear"}:{type:"revert"};const r=m6(e,t);if(r===null)return{type:"revert"};const s=t.min==null?null:t.isIntegerOnly?Math.ceil(t.min):t.min,o=t.max==null?null:t.isIntegerOnly?Math.floor(t.max):t.max;if(s!=null&&o!=null&&s>o)return{type:"revert"};const l=s!=null&&r<s?s:o!=null&&r>o?o:r;return{type:"commit",value:l,didClamp:l!==r}}const $o={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}},oG={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function d3(e){const[t,r]=String(e).toLowerCase().split("e"),s=t.split(".")[1]?.length??0,o=r==null?0:Number(r);return Math.max(0,s-o)}function iG(e,t){return e==null||!Number.isFinite(e)||e<=0||t&&!Number.isInteger(e)?1:e}function lG({currentValue:e,direction:t,min:r,max:s,step:o,isIntegerOnly:l}){const u=iG(o,l),f=r!=null&&(!l||Number.isInteger(r))?r:0;let d;if(e==null)d=t===1?r??0:s??0,l&&(d=t===1?Math.ceil(d):Math.floor(d));else{const m=(e-f)/u,y=Number.EPSILON*Math.max(1,Math.abs(m))*4,k=t===1?Math.floor(m+y)+1:Math.ceil(m-y)-1;d=f+k*u}const p=Math.min(12,Math.max(d3(u),d3(f)));return d=Number(d.toFixed(p)),r!=null&&(d=Math.max(r,d)),s!=null&&(d=Math.min(s,d)),!Number.isFinite(d)||l&&!Number.isInteger(d)?e:Object.is(d,-0)?0:d}function ib({label:e,isLabelHidden:t=!1,description:r,isOptional:s=!1,isRequired:o=!1,isDisabled:l=!1,isReadOnly:u=!1,disabledMessage:f,startIcon:d,labelIcon:p,status:m,statusVariant:y="attached",size:k,onChange:v,value:w,placeholder:S,labelTooltip:E,hasAutoFocus:R=!1,htmlName:C,autoComplete:T,min:A,max:N,step:L,formatValue:D,isWheelEnabled:j=!0,hasNumberSteppers:O=!1,units:M,isIntegerOnly:H=!1,onFocus:F,onBlur:q,hasClear:B,onEnter:U,onKeyDown:_,width:P,containerXstyle:G,containerClassName:X,containerStyle:Z,controlXstyle:Q,controlClassName:K,controlStyle:ae,ref:I,id:ee,"aria-describedby":pe,...ue}){const{rest:ve,container:xe}=$x("NumberInput",ue,{containerXstyle:G,containerClassName:X,containerStyle:Z}),$e=Ra(),te=Nt(),he=KD(),Re=jd({isRequired:o,isOptional:s}),Ce=bc(k,"md"),Te=g.useId(),Me=ee??Te,je=g.useId(),He=g.useId(),at=g.useId(),pt=g.useId(),et=g.useRef(null),Ve=g.useRef(null),bt=Ex(),[Pe,rt]=g.useState(null),[lt,st]=g.useState(!1),ct=l&&!!f,we=Ya({placement:"above",focusTrigger:"always",isEnabled:ct}),{statusIcon:Ge,describedBy:Pt}=Y4({status:m,statusVariant:y,isInGroup:!!bt}),{ariaLabelledBy:bn,ariaDescribedBy:gn}=Kb(je,[r?He:null,!bt&&y!=="tooltip"&&m?.message?at:null,Pt,M?pt:null,ct?we.describedBy:null],bt),An=g.useCallback(Y=>aG(Y,{min:A,max:N,isIntegerOnly:H,locale:he}),[H,he,N,A]),Vt=g.useMemo(()=>w==null?"":D?.(w)??String(w),[D,w]),Yn=g.useMemo(()=>Pe!==null?Pe:w==null?"":lt?rG(w,he):Vt,[Vt,lt,he,Pe,w]),Jt=g.useMemo(()=>Pe===null||!Pe.trim()?!0:An(Pe)!==null,[Pe,An]),kn=g.useCallback(Y=>{l||u||rt(Y.target.value)},[l,u]),Ye=g.useCallback(Y=>{st(!0),F?.(Y)},[F]),Le=g.useCallback(Y=>{if(Pe===null)return;const oe=sG(Pe,{min:A,max:N,isIntegerOnly:H,locale:he,hasClear:!!B});(Y==="blur"||oe.type==="commit"&&oe.didClamp)&&rt(null),oe.type==="clear"?B&&w!=null&&v(null):oe.type==="commit"&&oe.value!==w&&v(oe.value)},[B,H,he,N,A,v,Pe,w]),en=g.useCallback(Y=>{Le("blur"),st(!1),q?.(Y)},[Le,q]),un=g.useMemo(()=>Pe===null?w??null:Pe.trim()===""?null:An(Pe)??w??null,[An,Pe,w]),an=g.useCallback(Y=>lG({currentValue:un,direction:Y,min:A,max:N,step:L,isIntegerOnly:H}),[H,N,A,L,un]),ur=g.useCallback(Y=>{if(l||u)return;const oe=an(Y);oe!=null&&(rt(null),oe!==w&&v(oe))},[an,l,u,v,w]),Ja=g.useCallback(Y=>{if(gd(Y.nativeEvent))return;if(!(Y.altKey||Y.ctrlKey||Y.metaKey||Y.shiftKey)&&(Y.key==="ArrowUp"||Y.key==="ArrowDown")){if(_?.(Y),Y.defaultPrevented)return;Y.preventDefault(),ur(Y.key==="ArrowUp"?1:-1);return}Y.key==="Enter"&&(Le("Enter"),U?.()),_?.(Y)},[Le,U,_,ur]),Tr=g.useCallback(Y=>{if(Y==null||!j)return;const oe=ge=>{document.activeElement!==Y||l||u||ge.deltaY===0||ge.altKey||ge.ctrlKey||ge.metaKey||ge.shiftKey||(ge.preventDefault(),ge.stopPropagation(),ur(ge.deltaY<0?1:-1))};return Y.addEventListener("wheel",oe,{passive:!1}),()=>Y.removeEventListener("wheel",oe)},[l,u,j,ur]),Br=g.useMemo(()=>Gb(I,et,Tr),[I,Tr]),Xn=an(1)!==un,Gt=an(-1)!==un,dr=g.useCallback(Y=>{B&&v(null),rt(null),!Y||Y.detail===0?et.current?.focus():requestAnimationFrame(()=>{et.current?.focus({preventScroll:!0})})},[B,v]),{onClick:Mn,onMouseUp:Nn}=I0({containerRef:Ve,inputRef:et,disabled:l}),W=x.jsxs("div",{ref:Y=>{Ve.current=Y,we.ref(Y)},onClick:Mn,onMouseUp:Nn,...ye(fe("number-input",{size:Ce,status:m?.type??null,disabled:l?"disabled":null,readonly:u?"readonly":null}),de(uc.base,$o.wrapper,O&&$o.wrapperWithNumberSteppers,oG[Ce],l&&uc.disabled,m&&_0[m.type],m&&!l&&q0[m.type],m&&Z4[m.type],bt&&P0.inGroup,Q),K,ae),children:[d&&Ca(d,{size:"sm",color:"secondary"}),bt&&x.jsx(Gs,{id:je,children:e}),x.jsx("input",{...ve,ref:Br,id:Me,name:l||D?void 0:C,type:"text",inputMode:H?"numeric":"decimal",role:"spinbutton",autoComplete:T,value:Yn,onChange:kn,onFocus:Ye,onBlur:en,onKeyDown:Ja,placeholder:S,disabled:l&&!ct,"aria-disabled":ct?"true":void 0,readOnly:u||ct||void 0,autoFocus:R,"data-autofocus":R||void 0,"aria-valuemin":A??void 0,"aria-valuemax":N??void 0,"aria-valuenow":w??void 0,"aria-valuetext":w==null||!D?void 0:Vt,"aria-describedby":[pe,gn].filter(Boolean).join(" ")||void 0,"aria-required":Re?"true":void 0,"aria-invalid":m?.type==="error"||!Jt?"true":void 0,"aria-labelledby":bn,...{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"}}[!!l<<1|!Jt<<0]}),D&&C&&!l&&x.jsx("input",{type:"hidden",name:C,value:w==null?"":String(w)}),M&&x.jsx("span",{id:pt,className:"x9ynric xjm74w1 xw6l6zx xv1l7n4 x2lah0s",children:M}),x.jsx(Gs,{as:"div",role:"alert","aria-live":"assertive",children:Jt?"":"Invalid number"}),B&&w!=null&&!l&&!u&&x.jsx(Sx,{label:te("@astryx.numberInput.clearLabel",{label:e}),onClick:dr}),Ge,O&&x.jsxs("div",{className:"xkh2ocl x78zum5 xdt5ytf x2lah0s x12xnipv x5j3pgv x13i4uq0 xgbv0en x1t7ytsu x14ydlgx xb3r6kr x1g2gkjz xoao14b",children:[x.jsx("button",{type:"button",tabIndex:-1,...$e,disabled:l||u||!Xn,"aria-label":te("@astryx.numberInput.incrementLabel",{label:e}),onPointerDown:Y=>Y.preventDefault(),onClick:()=>{et.current?.focus(),ur(1)},...de($o.numberStepperButton,or.backgroundImage,(l||u||!Xn)&&$o.numberStepperButtonDisabled),children:x.jsx(ft,{icon:"numberInput:stepperDown",size:"xsm",color:"inherit",xstyle:$o.incrementIcon})}),x.jsx("button",{type:"button",tabIndex:-1,...$e,disabled:l||u||!Gt,"aria-label":te("@astryx.numberInput.decrementLabel",{label:e}),onPointerDown:Y=>Y.preventDefault(),onClick:()=>{et.current?.focus(),ur(-1)},...de($o.numberStepperButton,or.backgroundImage,$o.decrementButton,(l||u||!Gt)&&$o.numberStepperButtonDisabled),children:x.jsx(ft,{icon:"numberInput:stepperDown",size:"xsm",color:"inherit"})})]})]});return bt?x.jsxs(x.Fragment,{children:[W,ct&&we.renderTooltip(f)]}):x.jsxs(wc,{...xe,label:e,isLabelHidden:t,description:r,inputID:Me,descriptionID:r?He:void 0,isOptional:s,isRequired:o,isDisabled:l,labelIcon:p,status:m?{type:m.type,message:m.message,messageID:m.message?at:void 0}:void 0,statusVariant:y,labelTooltip:E,width:P,children:[W,ct&&we.renderTooltip(f)]})}ib.displayName="NumberInput";const Tp={all:["data-transfer"],status:()=>[...Tp.all,"status"]};function cG(){return Hn("/api/data-transfer/status")}async function uG(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 $d(await y6(t),t.status);const r=gG(t),s=await t.blob(),o=URL.createObjectURL(s),l=document.createElement("a");return l.href=o,l.download=r,document.body.append(l),l.click(),l.remove(),setTimeout(()=>URL.revokeObjectURL(o),0),{ok:!0,data:{providerCount:n1(t,"x-foundry-provider-count"),captureCount:n1(t,"x-foundry-capture-count"),jobCount:n1(t,"x-foundry-job-count")}}}catch(t){return G0(t)}}function dG(){return new Promise(e=>{const t=document.createElement("input");t.type="file",t.accept=".foundry-backup,application/octet-stream",t.addEventListener("change",()=>{const r=t.files?.[0];e(r?{status:"selected",file:r,fileName:r.name}:{status:"canceled"})},{once:!0}),t.addEventListener("cancel",()=>{e({status:"canceled"})},{once:!0}),t.click()})}async function fG(e,t){try{return{ok:!0,data:await Hn("/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(r){return G0(r)}}async function hG(e){const t=await fetch(`/api/data-transfer/imports/${e}`,{method:"DELETE"});if(!t.ok)throw $d(await y6(t),t.status)}async function pG(e){try{return{ok:!0,data:await Hn(`/api/data-transfer/imports/${e}/commit`,{method:"POST"})}}catch(t){return G0(t)}}function xG(){location.reload()}function G0(e){const t=L4(e);return{ok:!1,error:{code:t.error.code,message:t.error.message}}}function gG(e){const t=e.headers.get("content-disposition")??"";return/filename="([^"]+)"/u.exec(t)?.[1]??"foundry.foundry-backup"}function n1(e,t){return Number(e.headers.get(t)??0)}async function y6(e){try{return await e.json()}catch{return null}}const K0=g.createContext(null);K0.displayName="DialogContext";function mG(){return g.use(K0)}function f3(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement||e.isContentEditable||ic()!=="pointer"){e.focus();return}e.matches(":focus-visible")&&e.blur(),e.focus({focusVisible:!1})}function yG(e,t=16){const r=e.getBoundingClientRect(),s=r.left+r.width/2-window.innerWidth/2,o=r.top+r.height/2-window.innerHeight/2,l=Math.sqrt(s*s+o*o)||1;return{x:Math.round(s/l*t),y:Math.round(o/l*t)}}const qs={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}},h3=Wn["--spacing-4"],bG=`calc(100dvw - ${h3} - ${h3})`,kG=`min(100%, ${bG})`;function p3(e){return typeof e=="number"?`${e}px`:e}function vG(e,t){return{width:p3(e),maxWidth:kG,maxHeight:p3(t)}}const wG={kogj98:"x1ghz6dp",$$css:!0},r1={sizing:(e,t,r)=>[{kzqmXN:e!=null?"x5lhr3w":e,ks0D6T:t!=null?"xf68679":t,kskxy:r!=null?"x1jols5v":r,$$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)(r)}],position:(e,t,r,s)=>[wG,{k87sOh:e!=null?"xjbys53":e,kLqNvP:t!=null?"x1lxsm33":t,kt4wiu:r!=null?"xqxgn94":r,krVfgx:s!=null?"x1nqzi6q":s,$$css:!0},{"--x-top":(o=>typeof o=="number"?o+"px":o??void 0)(e),"--x-insetInlineStart":(o=>typeof o=="number"?o+"px":o??void 0)(t),"--x-insetInlineEnd":(o=>typeof o=="number"?o+"px":o??void 0)(r),"--x-bottom":(o=>typeof o=="number"?o+"px":o??void 0)(s)}]};function kh(e){return typeof e=="number"?`${e}px`:e}function SG(e){const{top:t,bottom:r,start:s,end:o}=e;return{top:t!==void 0?kh(t):"auto",bottom:r!==void 0?kh(r):"auto",insetInlineStart:s!==void 0?kh(s):"auto",insetInlineEnd:o!==void 0?kh(o):"auto"}}function Ad({isOpen:e,isInline:t=!1,onOpenChange:r,width:s=400,maxHeight:o="75dvh",position:l,variant:u="standard",purpose:f="info",padding:d,children:p,xstyle:m,className:y,style:k,ref:v,...w}){const S=d==null,E=d??4,R=Xb[E],C=u==="fullscreen",T=C?null:vG(s,o),A=g.useId(),N=g.useMemo(()=>({isInline:t,titleId:A}),[t,A]),L=w["aria-label"]!=null||w["aria-labelledby"]!=null,D=g.useRef(null),j=g.useCallback(Q=>{if(D.current=Q,!Q||L)return;Q.querySelector(`#${CSS.escape(A)}`)!=null?Q.setAttribute("aria-labelledby",A):Q.removeAttribute("aria-labelledby")},[A,L]),O=xn(v,j),M=g.useRef(null);Zp();const H=f!=="required",F=f==="info";g.useEffect(()=>{if(t)return;const Q=D.current;if(Q)if(e){M.current=document.activeElement;const K=M.current;if(K&&K!==document.body){const ae=yG(K);Q.style.setProperty("--dialog-dir-x",`${ae.x}px`),Q.style.setProperty("--dialog-dir-y",`${ae.y}px`)}else Q.style.setProperty("--dialog-dir-x","0px"),Q.style.setProperty("--dialog-dir-y","16px");if(!Q.open){Q.showModal();const ae=Q.querySelector("[data-autofocus]");ae&&f3(ae)}}else Q.open&&Q.close(),M.current&&f3(M.current),M.current=null},[e,t]),IH(D,e&&!t),vU(e&&!t);const{shouldDismissOnCloseRequest:q}=Jp({isActive:e,isEnabled:!t,escapeBehavior:H?"close":"block",onDismiss:()=>{r(!1)}}),B=g.useRef(!1);g.useEffect(()=>{const Q=D.current?.querySelector(`#${CSS.escape(A)}`)!=null;e&&!t&&!L&&!Q&&!B.current&&(B.current=!0,$a())},[e,t,L,A]);const U=Q=>{Q.target===Q.currentTarget&&F&&r(!1)},_=Q=>{Q.preventDefault(),q()&&H&&r(!1)},P=x.jsx("div",{...de(qs.inner,...y0(S?{useThemeDefault:"dialog",maxHeight:T?.maxHeight}:{paddingInnerX:R,paddingInnerY:R,paddingOuterX:R,paddingOuterY:R,maxHeight:T?.maxHeight}),!S&&E!==4&&Di[E],!S&&E!==4&&Ti[E],!S&&E!==4&&No[E],!S&&E!==4&&Vs[E],C&&S&&qs.fullscreenSafeArea),children:x.jsx(K0,{value:N,children:p})}),G=l!=null&&!C,{open:X,...Z}=w;return t?e?x.jsx("div",{...Z,...ye(fe("dialog",{variant:u}),de(ac.reset,sc.reset,qs.inlineWrapper,Qu.reset,T&&r1.sizing(T.width,T.maxWidth,T.maxHeight),C&&qs.fullscreen,m),y,k),"data-testid":w["data-testid"],children:x.jsx(Ju,{children:x.jsx(rc,{children:P})})}):null:x.jsx("dialog",{ref:O,...Z,...ye(fe("dialog",{variant:u}),pn.focusVisible(ac.reset,sc.reset,qs.dialog,Qu.reset,e&&qs.open,qs.backdrop,T&&r1.sizing(T.width,T.maxWidth,T.maxHeight),G&&(()=>{const Q=SG(l);return r1.position(Q.top,Q.insetInlineStart,Q.insetInlineEnd,Q.bottom)})(),C&&qs.fullscreen,C&&e&&qs.fullscreenOpen,m),y,k),onClick:U,onCancel:_,"aria-modal":"true",...f==="required"?{role:"alertdialog"}:void 0,children:x.jsx(Ju,{children:x.jsx(rc,{children:P})})})}Ad.displayName="Dialog";const EG={titleFocusable:{kI3sdo:"x1a2a7pz",$$css:!0}};function Cx({title:e,subtitle:t,onOpenChange:r,startContent:s,endContent:o,endContentEdgeCompensation:l,hasDivider:u,xstyle:f,className:d,style:p,ref:m,...y}){const k=Nt(),v=g.useRef(null),w=mG(),S=w?.isInline!==!0,E=w?.titleId,R=t!=null&&typeof t!="boolean"&&t!=="",C=l==null?r!=null:l==="block"||l==="all",T=l==null?r!=null:l==="inline"||l==="all";return g.useEffect(()=>{S&&v.current&&v.current.focus()},[S]),x.jsx(tp,{ref:m,hasDivider:u,xstyle:f,className:d,style:p,...y,children:x.jsxs("div",{...ye(fe("dialog-header"),{className:"x78zum5 x1cy8zhl x1qughib xjcht0a"}),children:[s&&x.jsx("div",{...ye(fe("dialog-header-start-content"),{className:"x78zum5 x6s0dn4 x1txdalj x2lah0s"}),children:s}),x.jsxs("div",{...ye(fe("dialog-header-title-block"),{className:"x78zum5 xdt5ytf xsn7fz1 x98rzlu xeuugli xqixskq"}),children:[x.jsx(qo,{ref:v,id:E,level:2,tabIndex:-1,xstyle:EG.titleFocusable,children:e}),R&&x.jsx(Je,{type:"body",size:"sm",color:"secondary",children:t})]}),(o||r)&&x.jsxs("div",{...ye(fe("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"}}[!!C<<1|!!T<<0]),children:[o,r&&x.jsx(yt,{variant:"ghost",label:k("@astryx.dialog.close"),tooltip:k("@astryx.dialog.close"),icon:x.jsx(ft,{icon:"close",color:"inherit",...fe("dialog-header-close-icon")}),onClick:()=>{r?.(!1)},isIconOnly:!0})]})]})})}Cx.displayName="DialogHeader";function b6({passphrase:e,confirmation:t,onPassphraseChange:r,onConfirmationChange:s,onEnter:o,isDisabled:l}){const{t:u}=Qt();return x.jsxs(We,{gap:3,children:[x.jsx(Ua,{label:u("dataTransfer.passphrase"),description:u("dataTransfer.passphraseDescription"),type:"password",size:"sm",width:"100%",value:e,onChange:r,isDisabled:l,isRequired:!0,hasAutoFocus:!0,autoComplete:"new-password"}),x.jsx(Ua,{label:u("dataTransfer.confirmPassphrase"),type:"password",size:"sm",width:"100%",value:t,onChange:s,onEnter:o,isDisabled:l,isRequired:!0,status:e!==t&&t.length>0?{type:"error",message:u("dataTransfer.passphraseMismatch")}:void 0,autoComplete:"new-password"})]})}function $G({onClose:e}){const{t}=Qt(),r=Ws(),[s,o]=g.useState(""),[l,u]=g.useState(""),f=cr({mutationFn:()=>uG(s),onSuccess:p=>{if(!p.ok){r({body:t(sb(p.error.code)),type:"error",uniqueID:`data-transfer-export-${p.error.code}`});return}r({body:t("dataTransfer.exported"),uniqueID:"data-transfer-exported"}),e()},onError:()=>{r({body:t("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-export-error"})}}),d=()=>{s!==l||s.length===0||f.isPending||f.mutate()};return x.jsx(Ad,{isOpen:!0,onOpenChange:p=>{!p&&!f.isPending&&e()},width:560,padding:5,purpose:"form",children:x.jsx(Oo,{header:x.jsx(Cx,{title:t("dataTransfer.exportTitle"),subtitle:t("dataTransfer.exportSubtitle"),onOpenChange:()=>{f.isPending||e()}}),content:x.jsx(Io,{children:x.jsxs(We,{gap:5,children:[x.jsx(b6,{passphrase:s,confirmation:l,onPassphraseChange:o,onConfirmationChange:u,onEnter:d,isDisabled:f.isPending}),x.jsx(Ks,{padding:2,variant:"muted",children:x.jsxs(Tt,{gap:2,align:"start",children:[x.jsx(ft,{icon:JP,size:"sm",color:"secondary"}),x.jsx(Je,{type:"supporting",color:"secondary",children:t("dataTransfer.passphraseWarning")})]})})]})}),footer:x.jsx(cx,{children:x.jsxs(Tt,{gap:2,hAlign:"end",children:[x.jsx(yt,{label:t("dataTransfer.cancel"),variant:"ghost",size:"sm",isDisabled:f.isPending,onClick:e}),x.jsx(yt,{label:t("dataTransfer.exportAction"),variant:"primary",size:"sm",isLoading:f.isPending,isDisabled:s!==l||s.length===0,onClick:d})]})})})})}function Ll({label:e,value:t}){return x.jsxs(Tt,{gap:2,children:[x.jsx(Je,{type:"supporting",color:"secondary",children:e}),x.jsx(Je,{type:"label",children:String(t)})]})}function TG({file:e,fileName:t,onClose:r}){const{t:s,locale:o}=Qt(),l=Ws(),[u,f]=g.useState(""),[d,p]=g.useState(""),[m,y]=g.useState(null),[k,v]=g.useState("passphrase"),[w,S]=g.useState(!1),E=cr({mutationFn:()=>fG(e,u),onSuccess:M=>{if(!M.ok){l({body:s(sb(M.error.code)),type:"error",uniqueID:`data-transfer-import-${M.error.code}`});return}y(M.data),f(""),v("preview")},onError:()=>{l({body:s("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-inspect-error"})}}),R=cr({mutationFn:M=>pG(M),onSuccess:M=>{if(!M.ok){l({body:s(sb(M.error.code)),type:"error",uniqueID:`data-transfer-commit-${M.error.code}`}),v("preview");return}v("complete")},onError:()=>{l({body:s("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-commit-error"}),v("preview")}}),C=u===d&&u.length>0,T=k==="importing"||k==="complete",A=()=>{T||R.isPending||(m&&hG(m.importId),r())},N=()=>{!C||E.isPending||E.mutate()},L=()=>{!m||R.isPending||(v("importing"),R.mutate(m.importId))},D=()=>{S(!0);try{xG()}catch{S(!1)}},j=(()=>{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")}})(),O=m?new Intl.DateTimeFormat(o,{dateStyle:"medium",timeStyle:"short"}).format(new Date(m.exportedAt)):"";return x.jsx(Ad,{isOpen:!0,onOpenChange:M=>{M||A()},width:520,padding:5,purpose:T?"required":"form",children:x.jsx(Oo,{header:x.jsx(Cx,{title:j,subtitle:t,onOpenChange:T?void 0:A}),content:x.jsxs(Io,{children:[k==="passphrase"&&x.jsxs(We,{gap:4,children:[x.jsx(b6,{passphrase:u,confirmation:d,onPassphraseChange:f,onConfirmationChange:p,onEnter:N,isDisabled:E.isPending}),x.jsx(Ks,{padding:3,variant:"muted",children:x.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.importPassphraseDescription")})})]}),k==="preview"&&m&&x.jsxs(We,{gap:4,children:[x.jsx(Ks,{padding:3,variant:"muted",children:x.jsxs(We,{gap:2,children:[x.jsx(Ll,{label:s("dataTransfer.exportedAt"),value:O}),x.jsx(Ll,{label:s("dataTransfer.appVersion"),value:m.appVersion}),x.jsx(Ll,{label:s("dataTransfer.schemaVersion"),value:m.databaseSchemaVersion}),x.jsx(Ll,{label:s("dataTransfer.providers"),value:m.providerCount}),x.jsx(Ll,{label:s("dataTransfer.captures"),value:m.captureCount}),x.jsx(Ll,{label:s("dataTransfer.jobs"),value:m.jobCount})]})}),x.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.replaceWarning")})]}),k==="importing"&&x.jsxs(We,{hAlign:"center",vAlign:"center",gap:4,paddingBlock:8,children:[x.jsx(_o,{size:"lg",label:s("dataTransfer.importingDescription")}),x.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.importingHint")})]}),k==="complete"&&x.jsxs(We,{gap:3,children:[x.jsx(Je,{children:s("dataTransfer.restartDescription")}),x.jsx(Je,{type:"supporting",color:"secondary",children:s("dataTransfer.restartHint")})]})]}),footer:x.jsxs(cx,{children:[k==="passphrase"&&x.jsxs(Tt,{gap:2,hAlign:"end",children:[x.jsx(yt,{label:s("dataTransfer.cancel"),variant:"ghost",size:"sm",isDisabled:E.isPending,onClick:A}),x.jsx(yt,{label:s("dataTransfer.inspectAction"),variant:"primary",size:"sm",isLoading:E.isPending,isDisabled:!C,onClick:N})]}),k==="preview"&&x.jsxs(Tt,{gap:2,hAlign:"end",children:[x.jsx(yt,{label:s("dataTransfer.cancel"),variant:"ghost",size:"sm",onClick:A}),x.jsx(yt,{label:s("dataTransfer.importAction"),variant:"destructive",size:"sm",isLoading:R.isPending,onClick:L})]}),k==="complete"&&x.jsx(Tt,{gap:2,hAlign:"end",children:x.jsx(yt,{label:s("dataTransfer.restartAction"),variant:"primary",size:"sm",isLoading:w,onClick:D})})]})})})}function CG(e){const{t}=Qt(),[r,s]=g.useState(""),[o,l]=g.useState(0),u=r.trim().toLowerCase(),f=u.length>0,d=g.useMemo(()=>f?pV.filter(m=>xV(m,u,t)):[],[f,u,t]);return{query:r,setQuery:s,isActive:f,results:d,activeIndex:o,setActiveIndex:l,onKeyDown:m=>{if(r&&m.key==="Escape"){m.preventDefault(),s("");return}if(!(!f||d.length===0))switch(m.key){case"ArrowDown":{m.preventDefault(),l(y=>(y+1)%d.length);break}case"ArrowUp":{m.preventDefault(),l(y=>(y-1+d.length)%d.length);break}case"Enter":{m.preventDefault(),e(d[o].panel);break}}},activeResultId:f&&d.length>0?`settings-search-result-${o}`:void 0}}function x3(e,t){const r=new Date(e);if(Number.isNaN(r.getTime()))return"";const{timeZone:s,pattern:o}=jG(t),l=RG(r,s),u={YYYY:l.year,MM:l.month,DD:l.day,HH:l.hour24,hh:l.hour12,mm:l.minute,ss:l.second,A:l.dayPeriod};return o.replaceAll(/YYYY|MM|DD|HH|hh|mm|ss|A/gu,f=>u[f]??f)}function bs(e,t){return{...e,createdAt:x3(e.createdAt,t),updatedAt:x3(e.updatedAt,t)}}function jG(e){const t=e.workspace["language-region"];return{timeZone:t["time-zone"],pattern:t["time-format"]}}function RG(e,t){const r=g3(e,t,"h23"),s=g3(e,t,"h12");return{year:r.get("year")??"",month:r.get("month")??"",day:r.get("day")??"",hour24:r.get("hour")??"",hour12:s.get("hour")??"",minute:r.get("minute")??"",second:r.get("second")??"",dayPeriod:s.get("dayPeriod")??""}}function g3(e,t,r){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:r,timeZone:t}).formatToParts(e);return new Map(s.filter(o=>o.type!=="literal").map(o=>[o.type,o.value]))}const Pn={all:["captures"],list:e=>[...Pn.all,"list",e],counts:()=>[...Pn.all,"counts"],detail:e=>[...Pn.all,"detail",e],jobs:e=>[...Pn.all,"jobs",e]};async function AG(e="all"){const[t,r]=await Promise.all([Hn(`/api/captures?filter=${e}`),Qa()]);return t.map(s=>bs(s,r))}function MG(){return Hn("/api/captures/counts")}async function NG(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}`),Qa()]);return{ok:!0,data:{...t,capture:bs(t.capture,r)}}}catch(t){return Ec(t)}}async function zG(e){try{const[t,r]=await Promise.all([Hn("/api/captures",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),Qa()]);return{ok:!0,data:{capture:bs(t,r)}}}catch(t){return Ec(t)}}async function k6(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}/recapture`,{method:"POST"}),Qa()]);return{ok:!0,data:bs(t,r)}}catch(t){return Ec(t)}}async function LG(e){try{return await Hn(`/api/captures/${e}`,{method:"DELETE"}),{ok:!0,data:null}}catch(t){return Ec(t)}}async function DG(e,t){try{const[r,s]=await Promise.all([Hn(`/api/captures/${e}/note`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({userNote:t})}),Qa()]);return{ok:!0,data:bs(r,s)}}catch(r){return Ec(r)}}async function OG(e){try{const[t,r]=await Promise.all([Hn(`/api/captures/${e}/jobs`),Qa()]);return{ok:!0,data:t.map(s=>bs(s,r))}}catch(t){return Ec(t)}}function Ec(e){const t=L4(e);return{ok:!1,error:{code:t.error.code,message:t.error.message}}}const ys={all:["providers"],list:()=>[...ys.all,"list"],detail:e=>[...ys.all,"detail",e]};async function IG(){const[e,t]=await Promise.all([Hn("/api/providers"),Qa()]);return e.map(r=>({...bs(r,t)}))}async function _G(e,t){const[r,s]=await Promise.all([Hn(t?`/api/providers/${t}`:"/api/providers",{method:t?"PUT":"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)}),Qa()]);return bs(r,s)}async function qG(e){try{const[t,r]=await Promise.all([Hn(`/api/providers/${e}`),Qa()]);return bs(t,r)}catch{return null}}async function m3(e,t){const[r,s]=await Promise.all([Hn(`/api/providers/${e}/status`,{method:"PATCH",headers:{"content-type":"application/json"},body:JSON.stringify({status:t})}),Qa()]);return bs(r,s)}function PG(e){return Hn("/api/providers/models",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e)})}const Tu={theme:"system",language:"system",timeFormat:"YYYY-MM-DD HH:mm:ss",timezone:"America/Los_Angeles",library:{captures:{fetcher:null,maxAttempts:1,scrapeConcurrency:2,firecrawl:{apiKey:""},deepseek:{apiKey:""}}}};function BG(){const e=qr(),t=Ka({queryKey:Mi.current(),queryFn:M0}),r=Ka({queryKey:["settings","config-folder"],queryFn:nF}),s=k=>e.setQueryData(Mi.current(),k),o=k=>{s(k),e.invalidateQueries({queryKey:Pn.all}),e.invalidateQueries({queryKey:ys.all})},l=cr({mutationFn:aF,onSuccess:s}),u=cr({mutationFn:lF,onSuccess:s}),f=cr({mutationFn:sF,onSuccess:s}),d=cr({mutationFn:oF,onSuccess:o}),p=cr({mutationFn:iF,onSuccess:o}),m={theme:t.data?.workspace.appearance["color-theme"]??Tu.theme,language:t.data?.workspace["language-region"].language??Tu.language,timeFormat:t.data?.workspace["language-region"]["time-format"]??Tu.timeFormat,timezone:t.data?.workspace["language-region"]["time-zone"]??Tu.timezone,library:t.data?.features.library??Tu.library},y=(k,v)=>{switch(k){case"theme":{l.mutate(v);break}case"language":{f.mutate(v);break}case"timeFormat":{d.mutate(v);break}case"timezone":{p.mutate(v);break}case"library":{u.mutate(v);break}}};return{settings:m,configFolderPath:r.data??"",update:y}}const y3=[];function W0({label:e,isLabelHidden:t=!1,description:r,status:s,value:o,onChange:l,changeAction:u,density:f="balanced",hasDividers:d=!1,isDisabled:p=!1,disabledMessage:m,isReadOnly:y=!1,children:k,ref:v,width:w,containerXstyle:S,containerClassName:E,containerStyle:R,controlXstyle:C,controlClassName:T,controlStyle:A,"aria-describedby":N,...L}){const{rest:D,container:j}=$x("CheckboxList",L,{containerXstyle:S,containerClassName:E,containerStyle:R}),O=g.useId(),M=g.useId(),H=g.useId(),F=g.useId(),[,q]=g.useTransition(),B=o!==void 0,U=o??y3,[_,P]=g.useOptimistic(U),[G,X]=g.useOptimistic(y3,(I,ee)=>I.includes(ee)?I:[...I,ee]),Z=p&&!!m,Q=Ya({placement:"above",focusTrigger:"always",isEnabled:Z}),K=g.useCallback((I,ee)=>{l?.(I),u&&q(async()=>{P(I),ee!==void 0&&X(ee),await u(I)})},[l,u,q,P,X]),ae=g.useMemo(()=>({value:B?_:void 0,onChange:B?K:void 0,isDisabled:p,hasDisabledMessage:Z,isReadOnly:y,loadingValues:G}),[B,_,K,p,Z,y,G]);return x.jsxs(wc,{label:e,isLabelHidden:t,description:r,inputID:O,labelID:M,isGroupLabel:!0,descriptionID:r?H:void 0,isDisabled:p,status:s?{type:s.type,message:s.message,messageID:s.message?F:void 0}:void 0,statusVariant:"detached",width:w,xstyle:j.xstyle,...ye(fe("checkbox-list"),{className:j.className,style:j.style}),children:[x.jsx(Tx,{value:ae,children:x.jsx("div",{...D,ref:xn(v,Q.ref),...ye(de(C),T,A),role:"group","aria-labelledby":M,"aria-describedby":[N,r?H:null,s?.message?F:null,Z?Q.describedBy:null].filter(Boolean).join(" ")||void 0,children:x.jsx(dc,{density:f,hasDividers:d,children:k})})}),Z&&Q.renderTooltip(m)]})}W0.displayName="CheckboxList";const HG={selected:{kWkggS:"xgcxg3y",$$css:!0}};function FG(e){const t=g.use(F0);return x.jsx(H0,{...e,"aria-describedby":t??void 0})}function Cp({label:e,"aria-label":t,value:r,description:s,endContent:o,isDisabled:l=!1,isLoading:u=!1,isChecked:f,onCheck:d,ref:p,xstyle:m,className:y,style:k,onClick:v,...w}){const S=Nt(),E=g.use(Tx);if(E&&E.value!==void 0&&r===void 0)throw new Error("CheckboxListItem requires a `value` prop when used inside CheckboxList with a value array.");const R=typeof e!="string",C=g.useId(),T=R&&t==null,A=t??(R?S("@astryx.checkboxList.item.checkbox"):e),D=(g.use(zi)?.density??"balanced")==="compact"?"sm":"md",j=(E?.isDisabled??!1)||l,O=E?.isReadOnly??!1,M=u||r!==void 0&&(E?.loadingValues?.includes(r)??!1);let H=!1;E&&E.value!==void 0&&r!==void 0?H=E.value.includes(r):f!==void 0&&(H=f);const F=!O&&(E!=null||d!=null),q=g.useRef(null),B=F||v!=null,U=O&&v!=null?P=>{v(P),P.stopPropagation()}:v,_=()=>{j||O||M||(E&&E.value!==void 0&&r!==void 0?E.value.includes(r)?E.onChange?.(E.value.filter(G=>G!==r),r):E.onChange?.([...E.value,r],r):d?.(H!==!0))};return x.jsx(Sc,{...w,ref:p,label:T?x.jsx("span",{id:C,children:e}):e,description:s,endContent:o,isDisabled:j,interactiveRef:B?q:void 0,"aria-busy":M||void 0,xstyle:[H===!0&&!j&&!O&&HG.selected,m],className:y,style:k,startContent:x.jsx(FG,{ref:q,label:A,"aria-labelledby":T?C:void 0,isLabelHidden:!0,value:H,onChange:()=>_(),onClick:U,isDisabled:j,isReadOnly:O,isLoading:M,size:D})})}Cp.displayName="CheckboxListItem";async function UG(){const e=await fetch("/api/settings/skill-copy");if(!e.ok)throw $d(await v6(e),e.status);return await e.json()}async function VG(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 $d(await v6(t),t.status);return await t.json()}async function v6(e){try{return await e.json()}catch{return null}}function GG({isOpen:e,onClose:t}){const{t:r}=Qt(),s=Ws(),[o,l]=g.useState(["agents"]),u=Ka({queryKey:["settings","skill-copy-targets"],queryFn:UG,enabled:e}),f=cr({mutationFn:()=>VG(o),onSuccess:d=>{s({body:`${r("settings.skillDownloaded")} ${d.installed.map(p=>p.destination).join(", ")}`,uniqueID:"skill-downloaded"}),t()},onError:()=>{s({body:r("settings.skillDownloadFailed"),type:"error",uniqueID:"skill-download-failed"})}});return x.jsx(Ad,{isOpen:e,onOpenChange:d=>{!d&&!f.isPending&&t()},width:520,padding:5,purpose:"form",children:x.jsx(Oo,{header:x.jsx(Cx,{title:r("settings.downloadSkill"),subtitle:r("settings.downloadSkillDescription"),onOpenChange:()=>{f.isPending||t()}}),content:x.jsx(Io,{children:x.jsxs(W0,{label:r("settings.downloadSkillTargets"),value:o,onChange:d=>{l(d.filter(KG))},hasDividers:!0,width:"100%",children:[x.jsx(Cp,{label:".agents",value:"agents",description:b3(u.data,"agents")??r("settings.downloadSkillResolvingPath")}),x.jsx(Cp,{label:".claude",value:"claude",description:b3(u.data,"claude")??r("settings.downloadSkillResolvingPath")})]})}),footer:x.jsx(cx,{children:x.jsxs(Tt,{gap:2,hAlign:"end",children:[x.jsx(yt,{label:r("settings.skillCancel"),variant:"ghost",size:"sm",isDisabled:f.isPending,onClick:t}),x.jsx(yt,{label:r("settings.downloadSkillAction"),variant:"primary",size:"sm",isLoading:f.isPending,isDisabled:o.length===0,onClick:()=>{f.mutate()}})]})})})})}function KG(e){return e==="agents"||e==="claude"}function b3(e,t){return e?.targets.find(r=>r.target===t)?.destination}function jx({title:e,children:t}){const r=(Array.isArray(t)?t:[t]).filter(s=>!!s);return x.jsxs(We,{gap:1.5,children:[e!=null&&x.jsx(Je,{type:"supporting",weight:"semibold",color:"secondary",children:e}),x.jsx(Ks,{padding:0,width:"100%",variant:"muted",children:x.jsx(We,{as:"ul",role:"list",gap:0,children:r.map((s,o)=>{const l=o>0;return x.jsxs(We,{as:"li",gap:0,children:[l&&x.jsx(Ni,{variant:"subtle"}),x.jsx(We,{children:s})]},g.isValidElement(s)?s.key:void 0)})})})]})}const WG=4,Fu=260,Wh={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 Sa({title:e,titleAccessory:t,description:r,icon:s,control:o,detail:l}){return x.jsxs(We,{padding:WG,gap:2,children:[x.jsxs(lx,{xstyle:Wh.line,"data-settings-line":!0,children:[x.jsx(lc,{size:"fill",children:x.jsxs(Tt,{gap:2,align:"start",children:[x.jsx(We,{paddingBlockStart:.5,children:x.jsx(ft,{icon:s,size:"sm",color:"secondary"})}),x.jsxs(We,{gap:.5,xstyle:Wh.textColumn,children:[t==null?x.jsx(Je,{type:"label",children:e}):x.jsxs(Tt,{gap:1.5,align:"center",children:[x.jsx(Je,{type:"label",children:e}),t]}),r!=null&&x.jsx(Je,{type:"supporting",color:"secondary",children:r})]})]})}),o!=null&&x.jsx(We,{"data-settings-control":!0,xstyle:Wh.control,children:o})]}),l]})}function YG({search:e}){const{t}=Qt();return x.jsx(Ua,{label:t("settings.search"),isLabelHidden:!0,placeholder:t("settings.search"),size:"sm",width:"100%",hasClear:!0,startIcon:tB,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 XG({results:e,activeIndex:t,onActiveIndexChange:r,onSelect:s}){const{t:o}=Qt();return e.length===0?x.jsxs(We,{id:"settings-search-results",gap:.5,padding:2,children:[x.jsx(Je,{type:"label",children:o("settings.noResults")}),x.jsx(Je,{type:"supporting",color:"secondary",children:o("settings.trySearch")})]}):x.jsx(We,{as:"ul",gap:0,id:"settings-search-results",role:"listbox","aria-label":"Search results",isScrollable:!0,children:e.map((l,u)=>x.jsx(Sc,{id:`settings-search-result-${u}`,role:"option","aria-selected":u===t,label:o(l.titleKey),description:`${o(a6(l.panel).labelKey)} · ${o(l.descriptionKey)}`,startContent:x.jsx(ft,{icon:l.icon,size:"sm",color:"secondary"}),endContent:x.jsx(ft,{icon:SP,size:"sm",color:"secondary"}),isSelected:u===t,onMouseEnter:()=>r(u),onClick:()=>s(l)},l.id))})}const k3={sideNav:{kmuXW:"x2lah0s",$$css:!0},sideNavSection:{k8WAf4:"xce4md1",$$css:!0}};function ZG({search:e,activePanel:t,onSelectPanel:r}){const{t:s}=Qt();return x.jsx(xp,{"aria-label":s("settings.search"),xstyle:k3.sideNav,topContent:x.jsx(YG,{search:e}),children:e.isActive?x.jsx(XG,{results:e.results,activeIndex:e.activeIndex,onActiveIndexChange:e.setActiveIndex,onSelect:o=>r(o.panel)}):r6.map(o=>x.jsx(mp,{title:s(o.labelKey),xstyle:k3.sideNavSection,children:o.panels.map(l=>x.jsx(hx,{label:s(l.labelKey),icon:x.jsx(ft,{icon:l.icon,size:"sm",color:"primary"}),size:"sm",isSelected:l.id===t,onClick:()=>r(l.id)},l.id))},o.labelKey))})}const QG=[{value:"light",labelKey:"settings.light",scheme:"light",icon:gB},{value:"dark",labelKey:"settings.dark",scheme:"dark",icon:rB},{value:"system",labelKey:"settings.system",scheme:"system",icon:zP}];function JG({value:e,onChange:t}){const{t:r}=Qt();return x.jsx(s6,{role:"radiogroup","aria-label":"Color theme",columns:{minWidth:96,max:3},gap:2,maxWidth:480,children:QG.map(s=>{const o=s.value===e,l=r(s.labelKey);return x.jsx(o6,{label:l,isSelected:o,padding:2,onChange:()=>{o||t(s.value)},children:x.jsxs(We,{gap:1.5,children:[x.jsx(eK,{scheme:s.scheme}),x.jsxs(Tt,{gap:1,align:"center",justify:"center",children:[x.jsx(ft,{icon:s.icon,size:"sm",color:"secondary"}),x.jsx(Je,{type:"supporting",weight:o?"semibold":void 0,children:l})]})]})},s.value)})})}const Co={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 a1({mode:e}){return x.jsx(T0,{theme:TV,mode:e,children:x.jsxs(We,{padding:2,gap:1.5,height:"100%",xstyle:Co.mutedSurface,children:[x.jsxs(We,{gap:1,align:"center",children:[x.jsx(We,{xstyle:[Co.bar,Co.barWide]}),x.jsx(We,{xstyle:Co.bar})]}),x.jsx(lc,{size:"fill",children:x.jsx(We,{padding:2,gap:1,justify:"center",height:"100%",xstyle:Co.contentSurface,children:[0,1,2].map(t=>x.jsx(We,{xstyle:Co.bar},t))})})]})})}function eK({scheme:e}){return x.jsx(i6,{ratio:3/2,xstyle:Co.inert,children:x.jsx(We,{"aria-hidden":"true",height:"100%",xstyle:Co.clip,children:e==="system"?x.jsxs(Tt,{gap:0,height:"100%",children:[x.jsx(lc,{size:"fill",children:x.jsx(a1,{mode:"light"})}),x.jsx(lc,{size:"fill",children:x.jsx(a1,{mode:"dark"})})]}):x.jsx(a1,{mode:e})})})}function tK({settings:e,update:t}){const{t:r}=Qt();return x.jsx(We,{gap:5,children:x.jsx(jx,{children:x.jsx(Sa,{title:r("settings.colorTheme"),icon:j0,description:r("settings.colorThemeDescription"),detail:x.jsx(JG,{value:e.theme,onChange:s=>t("theme",s)})})})})}function nK({settings:e,update:t}){const{t:r}=Qt();return x.jsxs(jx,{children:[x.jsx(Sa,{title:r("settings.language"),icon:XP,description:r("settings.languageDescription"),control:x.jsx(Ql,{label:r("settings.language"),isLabelHidden:!0,size:"sm",width:Fu,value:e.language,onChange:s=>t("language",s),options:[{value:"system",label:r("settings.system")},{value:"en-US",label:"English"},{value:"zh-CN",label:"简体中文"},{value:"zh-TW",label:"繁體中文(台灣)"},{value:"ja-JP",label:"日本語"}]})}),x.jsx(Sa,{title:r("settings.timeFormat"),icon:hj,description:r("settings.timeFormatDescription"),control:x.jsx(Ql,{label:r("settings.timeFormat"),isLabelHidden:!0,size:"sm",width:Fu,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"}]})}),x.jsx(Sa,{title:r("settings.timezone"),icon:xx,description:r("settings.timezoneDescription"),control:x.jsx(Ql,{label:r("settings.timezone"),isLabelHidden:!0,size:"sm",width:Fu,value:e.timezone,onChange:s=>t("timezone",s),options:[{value:"America/Los_Angeles",label:r("settings.losAngeles")},{value:"America/New_York",label:r("settings.newYork")},{value:"Asia/Shanghai",label:r("settings.shanghai")},{value:"Asia/Taipei",label:r("settings.taipei")},{value:"Asia/Tokyo",label:r("settings.tokyo")},{value:"UTC",label:r("settings.utc")}]})})]})}function rK({value:e,label:t,placeholder:r,onChange:s}){const[o,l]=g.useState(e);g.useEffect(()=>{l(e)},[e]);const u=()=>{o!==e&&s(o.trim())};return x.jsx(Ua,{label:t,isLabelHidden:!0,size:"sm",type:"password",value:o,onChange:l,onBlur:u,onEnter:u,placeholder:r,hasClear:!0,width:Fu})}function aK({settings:e,update:t}){const{t:r}=Qt(),s=e.library,o=s.captures,l=o.fetcher?o[o.fetcher].apiKey:"",u=d=>{t("library",{...s,captures:{...o,...d,firecrawl:{...o.firecrawl,...d.firecrawl},deepseek:{...o.deepseek,...d.deepseek}}})},f=d=>{o.fetcher&&u({[o.fetcher]:{apiKey:d}})};return x.jsxs(jx,{title:r("settings.captures"),children:[x.jsx(Sa,{title:r("settings.capturesFetcher"),icon:fj,description:r("settings.capturesFetcherDescription"),control:x.jsx(Ql,{label:r("settings.capturesFetcher"),isLabelHidden:!0,size:"sm",width:Fu,value:o.fetcher??"none",onChange:d=>{u({fetcher:d==="none"?null:d})},options:[{value:"none",label:r("settings.capturesNotConfigured")},{value:"firecrawl",label:"Firecrawl"},{value:"deepseek",label:"DeepSeek Fetch"}]})},"fetcher"),o.fetcher&&x.jsx(Sa,{title:r("settings.capturesApiKey"),icon:WP,description:r("settings.capturesApiKeyDescription"),control:x.jsx(rK,{value:l,label:r("settings.capturesApiKey"),placeholder:r("settings.capturesApiKeyPlaceholder"),onChange:f},o.fetcher)},`api-key-${o.fetcher}`),x.jsx(Sa,{title:r("settings.capturesMaxAttempts"),icon:uj,description:r("settings.capturesMaxAttemptsDescription"),control:x.jsx(ib,{label:r("settings.capturesMaxAttempts"),isLabelHidden:!0,size:"sm",value:o.maxAttempts,onChange:d=>{u({maxAttempts:d})},min:1,max:10,step:1,isIntegerOnly:!0,width:120})},"max-attempts"),x.jsx(Sa,{title:r("settings.capturesConcurrency"),icon:dj,description:r("settings.capturesConcurrencyDescription"),control:x.jsx(ib,{label:r("settings.capturesConcurrency"),isLabelHidden:!0,size:"sm",value:o.scrapeConcurrency,onChange:d=>{u({scrapeConcurrency:d})},min:1,max:5,step:1,isIntegerOnly:!0,width:120})},"scrape-concurrency")]})}function sK(e){return x.jsx(We,{gap:4,children:x.jsx(aK,{...e})})}function oK({configFolderPath:e,onOpenConfigFolder:t}){const{t:r}=Qt(),s=Ws(),[o,l]=g.useState(!1),[u,f]=g.useState(!1),[d,p]=g.useState(!1),[m,y]=g.useState(null),k=Ka({queryKey:Tp.status(),queryFn:cG}),v=k.data?.activeJobCount??0,w=k.isLoading||k.data?.isBusy===!0||v>0,S=r("settings.finishJobsBeforeTransfer"),E=v>0?S:r("settings.exportDataDescription"),R=v>0?S:r("settings.importDataDescription"),C=async()=>{f(!0);try{const T=await dG();T.status==="selected"&&y({file:T.file,fileName:T.fileName})}catch{s({body:r("dataTransfer.ioError"),type:"error",uniqueID:"data-transfer-select-file-error"})}finally{f(!1)}};return x.jsxs(x.Fragment,{children:[x.jsxs(jx,{children:[x.jsx(Sa,{title:r("settings.downloadSkill"),icon:pj,description:r("settings.downloadSkillDescription"),control:x.jsx(yt,{label:r("settings.downloadSkillAction"),icon:x.jsx(dB,{}),variant:"ghost",size:"sm",onClick:()=>p(!0)})}),x.jsx(Sa,{title:r("settings.configFolder"),icon:C0,description:e,control:x.jsx(yt,{label:r("settings.openConfigFolder"),icon:x.jsx(HP,{}),variant:"ghost",size:"sm",onClick:t})}),x.jsx(Sa,{title:r("settings.exportData"),icon:Z1,description:E,control:x.jsx(yt,{label:r("settings.exportDataAction"),icon:x.jsx(Z1,{}),variant:"ghost",size:"sm",isDisabled:w,onClick:()=>l(!0)})}),x.jsx(Sa,{title:r("settings.importData"),icon:X1,description:R,control:x.jsx(yt,{label:r("settings.importDataAction"),icon:x.jsx(X1,{}),variant:"ghost",size:"sm",isDisabled:w||u,isLoading:u,onClick:()=>{C()}})})]}),x.jsx(GG,{isOpen:d,onClose:()=>p(!1)}),o&&x.jsx($G,{onClose:()=>l(!1)}),m&&x.jsx(TG,{file:m.file,fileName:m.fileName,onClose:()=>y(null)},`${m.fileName}:${m.file.lastModified}`)]})}const iK={contentTopAligned:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",kGO01o:"x1awphl8",kLKAdn:"xexx8yu",$$css:!0}};function lK({panel:e,settings:t,update:r,configFolderPath:s=""}){const o=(()=>{switch(e){case"appearance":return x.jsx(tK,{settings:t,update:r});case"language":return x.jsx(nK,{settings:t,update:r});case"library":return x.jsx(sK,{settings:t,update:r});case"advanced":return x.jsx(oK,{configFolderPath:s,onOpenConfigFolder:()=>{rF()}})}})();return x.jsx(Io,{isScrollable:!0,padding:0,xstyle:iK.contentTopAligned,children:x.jsx(We,{gap:4,xstyle:Wh.panel,children:o})})}function cK(){const[e]=IN(),[t,r]=g.useState(e.get("panel")==="library"?"library":hV),{settings:s,configFolderPath:o,update:l}=BG(),u=CG(r),f=d=>{r(d),u.setQuery("")};return x.jsx(Oo,{height:"fill",start:x.jsx(ZG,{search:u,activePanel:t,onSelectPanel:f}),content:x.jsx(lK,{panel:t,settings:s,update:l,configFolderPath:o})})}const uK={x1iwu4tg:"x1iwu4tg",$$css:!0},dK={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",$$css:!0}},fK={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",$$css:!0}},hK={sm:{kzqmXN:"x1td3qas",kZKoxP:"x1qx5ct2",kmVPX3:"x1i3ajwb",$$css:!0},md:{kzqmXN:"x100vrsf",kZKoxP:"xxk0z11",kmVPX3:"xfawy5m",$$css:!0}},pK={sm:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",k3aq6I:"xbryuvx",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",k3aq6I:"xbryuvx",$$css:!0}},xK={sm:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",k3aq6I:"xv5t66b xi9aj42",$$css:!0},md:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",k3aq6I:"x15481yp x12xz5k6",$$css:!0}},gK={sm:{kAzted:"xisnujt",$$css:!0},md:{kAzted:"xjwf9q1",$$css:!0}},On={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}},mK={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function w6({label:e,isLabelHidden:t=!1,description:r,onChange:s,changeAction:o,isLoading:l=!1,value:u,isDisabled:f=!1,htmlName:d,disabledMessage:p,isOptional:m=!1,isRequired:y=!1,onFocus:k,onBlur:v,labelIcon:w,labelTooltip:S,labelPosition:E="end",labelSpacing:R="hug",status:C,size:T="md",width:A,xstyle:N,className:L,style:D,ref:j,...O}){const M=Nt(),H=g.useId(),F=Ra(),q=g.useId(),B=g.useId(),U=jd({isRequired:y,isOptional:m}),[,_]=g.useTransition(),[P,G]=g.useOptimistic(u),X=l||P!==u,Z=vc();g.useEffect(()=>{X&&Z(M("@astryx.switch.loading"))},[Z,X,M]);const Q=P===!0,K=f&&!!p,ae=Ya({placement:"above",focusTrigger:"always",isEnabled:K}),I=[];r&&I.push(q),C?.message&&I.push(B),K&&I.push(ae.describedBy);const ee=I.length>0?I.join(" "):void 0,pe=x.jsxs("div",{...de(On.switchWrapper,dK[T]),children:[x.jsx("input",{ref:xn(j,ae.positionRef),id:H,type:"checkbox",role:"switch",name:f?void 0:d,checked:Q,disabled:f&&!K,"aria-disabled":K?"true":void 0,form:K?"":void 0,required:y,"aria-required":U?"true":void 0,onChange:ve=>{if(f||X)return;const xe=ve.target.checked;s?.(xe,ve),o&&!ve.defaultPrevented&&_(async()=>{G(xe),await o(xe,ve)})},onFocus:k,onBlur:v,"aria-describedby":ee,"aria-invalid":C?.type==="error"?!0:void 0,"aria-busy":X||void 0,...de(On.input,Wa.centerInline("-50%"),On.inputCoarse,fK[T],f&&On.inputDisabled,X&&On.inputBusy)}),x.jsx("div",{"aria-hidden":"true",...ye(fe("switch",{checked:Q?"checked":null,disabled:f?"disabled":null,size:T}),de(On.track,hK[T],Q?On.trackOn:On.trackOff,!f&&On.trackFocus,f&&On.trackDisabled,f&&!Q&&On.trackDisabledOff)),children:x.jsx("div",{...ye(fe("switch-thumb",{checked:Q?"checked":null,size:T}),de(On.thumb,Q?xK[T]:pK[T],Q?On.thumbOn:On.thumbOff)),children:X&&x.jsx(_o,{size:"sm"})})})]}),ue=x.jsx("div",{...de(On.labelWrapper,gK[T]),children:x.jsx(vx,{...fe("switch-label"),label:e,inputID:H,isLabelHidden:t,isDisabled:f,isOptional:m,isRequired:y,labelIcon:w,labelTooltip:S,description:r,descriptionID:q})});return x.jsxs("div",{...ye(fe("switch-field",{labelPosition:E!=="end"?E:void 0,labelSpacing:R!=="hug"?R:void 0}),de(A!=null&&mK.width(A),N),L,D),...O,children:[x.jsxs("div",{ref:ve=>{ae.interactionRef(ve)},...f?void 0:F,...de(On.container,t&&On.containerLabelHidden,R==="spread"&&On.containerSpread,!f&&uK,!f&&or.pressedAlpha),children:[" ",E==="start"?x.jsxs(x.Fragment,{children:[ue,pe]}):x.jsxs(x.Fragment,{children:[pe,ue]})]}),C?.message&&x.jsx(wx,{type:C.type,message:C.message,id:B,variant:"detached",xstyle:On.statusGap}),K&&ae.renderTooltip(p)]})}w6.displayName="Switch";function S6({ref:e,href:t,isDisabled:r,LinkComponent:s,linkStyleProps:o,labelContent:l,icon:u,endContent:f,removeButton:d,onClick:p,onMouseUp:m,...y}){const k=g.useRef(null),v=g.useRef(null),{onClick:w,onMouseUp:S}=yx({containerRef:k,interactiveRef:v,href:t,disabled:r});return x.jsxs("span",{ref:xn(e,k),...y,onClick:r?p:Ir(p,w),onMouseUp:r?m:Ir(m,S),children:[u,x.jsx(s,{ref:v,href:t,"aria-disabled":r||void 0,...o,children:l}),f,d]})}S6.displayName="TokenLink";const ya={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}},vh={sm:{kZKoxP:"xzydfjl",kGuDYH:"x141an7d",kg3NbH:"xf314gf",$$css:!0},md:{kZKoxP:"xrmxcn7",kg3NbH:"xf314gf",$$css:!0},lg:{kZKoxP:"x102lyln",kg3NbH:"xf314gf",$$css:!0}},wh={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 Y0({label:e,size:t="md",color:r="default",icon:s,isDisabled:o=!1,onRemove:l,onClick:u,href:f,description:d,endContent:p,isLabelHidden:m=!1,xstyle:y,className:k,style:v,"data-testid":w,ref:S,...E}){const R=Ra(),C=Nt(),T=Oi(),A=aj({href:f,onClick:u,isDisabled:o}),N=u??(A==="button"?()=>{}:null),L=l!=null&&x.jsx("button",{type:"button","aria-label":C("@astryx.token.remove",{label:e}),onClick:O=>{O.stopPropagation(),l(O)},disabled:o,...pn.focusVisible(ya.removeButton),children:x.jsx(ft,{icon:"close",size:"xsm",color:"inherit"})}),D=x.jsxs(x.Fragment,{children:[s,x.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!m<<0],children:e}),p,L]}),j={"data-testid":w,...m?{"aria-label":e}:{},...d!=null?{"aria-description":d}:{}};if(A==="link")return l==null?x.jsx(T,{ref:S,href:f,...R,...ye(fe("token",{color:r,size:t}),pn.focusVisible(ya.base,vh[t],wh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,y),k,v),...E,...o?{"aria-disabled":!0}:{},...j,children:D}):x.jsx(S6,{ref:S,href:f,isDisabled:o,LinkComponent:T,icon:s,endContent:p,removeButton:L,linkStyleProps:{className:"xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli"},...R,labelContent:x.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!m<<0],children:e}),...ye(fe("token",{color:r,size:t}),pn.focusWithin(ya.base,vh[t],wh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,y),k,v),...E,...j});if(N!=null){const O=M=>{M.target.closest("button, a")||N(M)};return x.jsxs("span",{ref:S,onClick:o?void 0:O,...R,...ye(fe("token",{color:r,size:t}),pn.focusWithin(ya.base,vh[t],wh[r],ya.interactive,or.backgroundImage,o&&ya.disabled,y),k,v),...E,...j,children:[s,x.jsx("button",{type:"button",onClick:N,disabled:o,className:"xmper1u x16khyan x1heor9g x1a2a7pz xb3r6kr xeuugli",children:x.jsx("span",{...{0:{className:"xb3r6kr xlyipyv xuxw1ft xeuugli"},1:{className:"xlyipyv xeuugli x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr x1hyvwdk xuxw1ft xc342km"}}[!!m<<0],children:e})}),p,L]})}return x.jsx("span",{ref:S,...ye(fe("token",{color:r,size:t}),de(ya.base,vh[t],wh[r],o&&ya.disabled,y),k,v),...E,...j,children:D})}Y0.displayName="Token";const yK=new Set(["auto","contain","fit-content","inherit","initial","max-content","min-content","revert","revert-layer","stretch","unset"]);function E6(e){const t=e.trim().toLowerCase();return yK.has(t)||t.startsWith("fit-content(")}function $6(e,t){return`min(${typeof e=="number"?`${e}px`:e.trim()}, ${t})`}const v3='button, [role="button"]';function w3(e){return e.matches(v3)?e:e.querySelector(v3)}const Sh={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 Rx({children:e,anchorRef:t,content:r,placement:s="below",alignment:o="start",isOpen:l,onOpenChange:u,isEnabled:f=!0,width:d,padding:p=3,label:m,role:y="dialog",isModal:k,hasCloseButton:v,closeButtonLabel:w,hasAutoFocus:S,hasLightDismiss:E=!0,hasEscapeDismiss:R=!0,xstyle:C,className:T,style:A,"data-testid":N}){const L=g.useRef(null),D=g.useRef(null),[j,O]=g.useState(!1),M=l!==void 0,H=g.useCallback(()=>{u?.(!0)},[u]),F=g.useCallback(()=>{u?.(!1)},[u]),q=E0({dialogLabel:m,role:y,isModal:k,hasLightDismiss:E,hasEscapeDismiss:R,hasCloseButton:v,closeButtonLabel:w,hasAutoFocus:S,surfaceTarget:"popover",padding:p,xstyle:[Sh.surfaceViewportFit,j&&Sh.surfaceScrollable,C],className:T,style:A,onShow:H,onHide:F}),B=g.useCallback(()=>{const K=q.contentRef.current;if(!K)return;const ae=K.scrollHeight>K.clientHeight+1||K.scrollWidth>K.clientWidth+1;O(I=>I===ae?I:ae)},[q.contentRef]),U=g.useCallback(()=>{D.current==null&&(D.current=window.requestAnimationFrame(()=>{D.current=null,B()}))},[B]);qn(()=>{if(!q.isOpen)return;const K=q.contentRef.current;if(!K)return;B();const ae=typeof ResizeObserver>"u"?null:new ResizeObserver(U),I=typeof MutationObserver>"u"?null:new MutationObserver(U);return ae?.observe(K),I?.observe(K,{childList:!0,characterData:!0,subtree:!0}),K.addEventListener("load",U,!0),window.addEventListener("resize",U),window.visualViewport?.addEventListener("resize",U),()=>{ae?.disconnect(),I?.disconnect(),K.removeEventListener("load",U,!0),window.removeEventListener("resize",U),window.visualViewport?.removeEventListener("resize",U),D.current!=null&&(window.cancelAnimationFrame(D.current),D.current=null)}},[B,q.isOpen,U]),qn(()=>{q.isOpen&&U()},[r,q.isOpen,U]);const _=g.useCallback(()=>{f&&q.toggle()},[f,q]),P=g.useCallback(K=>{(K.key==="Enter"||K.key===" ")&&(K.preventDefault(),_())},[_]),G=g.useCallback(K=>{K.setAttribute("aria-haspopup",q.triggerProps["aria-haspopup"]),K.setAttribute("aria-expanded",String(q.triggerProps["aria-expanded"])),K.setAttribute("aria-controls",q.triggerProps["aria-controls"]),K.addEventListener("click",_);const ae=K.tagName!=="BUTTON"&&K.getAttribute("role")==="button";return ae&&K.addEventListener("keydown",P),()=>{K.removeAttribute("aria-haspopup"),K.removeAttribute("aria-expanded"),K.removeAttribute("aria-controls"),K.removeEventListener("click",_),ae&&K.removeEventListener("keydown",P)}},[q,_,P]);qn(()=>{if(!t)return;const K=t.current;if(!K)return;const ae=w3(K);if(ae||$a(),!ae)return;q.triggerRef(K);const I=G(ae);return()=>{q.triggerRef(null),I()}},[t,q,G]),qn(()=>{if(t||typeof e=="function")return;const K=L.current;if(!K)return;q.triggerRef(K);const ae=w3(K);if(ae||$a(),!ae)return;const I=G(ae);return()=>{q.triggerRef(null),I()}},[t,q,G]),qn(()=>{M&&(l&&!q.isOpen?q.show():!l&&q.isOpen&&q.hide())},[l,M,q]);const Z=[d?Sh.customWidth(typeof d=="string"&&E6(d)?d.trim():$6(d,oc.maxInlineSizeFallback)):Sh.matchTrigger,yd[s]];if(t&&e==null)return x.jsx(x.Fragment,{children:q.render(x.jsx("div",{"data-testid":N,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:Z})});if(typeof e=="function"){const K={ref:q.triggerRef,onClick:_,"aria-haspopup":"dialog","aria-expanded":q.isOpen,"aria-controls":q.id};return x.jsxs(x.Fragment,{children:[e(K),q.render(x.jsx("div",{"data-testid":N,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:Z})]})}return x.jsxs(x.Fragment,{children:[x.jsx($0,{value:"button",children:x.jsx("div",{ref:L,className:"x3nfvp2",children:e})}),q.render(x.jsx("div",{"data-testid":N,children:r}),{placement:s,alignment:o,offset:Wn["--spacing-1"],xstyle:Z})]})}Rx.displayName="Popover";const S3={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 fc({title:e,description:t,icon:r,actions:s,headingLevel:o=3,isCompact:l=!1,xstyle:u,className:f,style:d,ref:p,...m}){const y=`h${o}`;return x.jsxs("div",{ref:p,...m,role:"status",...ye(fe("empty-state",{variant:l?"compact":null}),de(S3.container,l&&S3.containerCompact,u),f,d),children:[r!=null&&x.jsx("div",{"aria-hidden":"true",children:r}),x.jsxs("div",{className:"x78zum5 xdt5ytf x6s0dn4 xxc7z9f",children:[g.createElement(y,ye(fe("empty-state-title",{variant:l?"compact":null}),{0:{className:"x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0"},1:{className:"x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib"}}[!!l<<0]),e),t!=null&&x.jsx("div",{...ye(fe("empty-state-description",{variant:l?"compact":null}),{0:{className:"x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4"},1:{className:"x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d"}}[!!l<<0]),children:t})]}),s!=null&&x.jsx("div",{...{0:{className:"x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d"},1:{className:"x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf"}}[!!l<<0],children:s})]})}fc.displayName="EmptyState";const Uu={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 T6({startIcon:e,centerIcon:t,endIcon:r,title:s,description:o,actions:l}){return x.jsx(Tt,{width:"100%",hAlign:"center",children:x.jsx(Ks,{width:"100%",padding:0,children:x.jsx(fc,{headingLevel:2,icon:x.jsxs(Tt,{gap:2,vAlign:"center",xstyle:Uu.illustration,children:[x.jsx(s1,{icon:e,isCore:!1}),x.jsx(We,{xstyle:Uu.connector}),x.jsx(s1,{icon:t,isCore:!0}),x.jsx(We,{xstyle:Uu.connector}),x.jsx(s1,{icon:r,isCore:!1})]}),title:s,description:o,actions:l})})})}function s1({icon:e,isCore:t}){return x.jsx(Tt,{hAlign:"center",vAlign:"center",xstyle:t?Uu.coreNode:Uu.satelliteNode,children:x.jsx(ft,{icon:e,size:t?"lg":"sm",color:t?"accent":"secondary"})})}const Ps={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}},bK={"openai-responses":"OpenAI Responses","anthropic-messages":"Anthropic Messages","openai-compatible-chat-completions":"OpenAI-compatible Chat Completions"};function kK(){const{t:e}=Qt(),t=qr(),[r,s]=g.useState(null),o=Ka({queryKey:ys.list(),queryFn:IG}),l=cr({mutationFn:({id:m,status:y})=>m3(m,y),onSuccess:()=>{t.invalidateQueries({queryKey:ys.list()})}}),u=cr({mutationFn:m=>m3(m,"deleted"),onSuccess:()=>{s(null),t.invalidateQueries({queryKey:ys.list()})}}),f=o.data??[];function d(m,y){m.status==="deleted"||m.isInUse||l.mutate({id:m.id,status:y?"active":"disabled"})}function p(m){return m.isInUse?e("providers.inUse"):e(m.status==="active"?"providers.disable":"providers.enable")}return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsx(yt,{label:e("providers.add"),size:"sm",variant:"primary",href:"/providers/new",as:qu})}),x.jsx(We,{gap:5,children:f.length===0?x.jsx(T6,{startIcon:jP,centerIcon:Q1,endIcon:DP,title:e("providers.emptyTitle"),description:e("providers.empty"),actions:x.jsx(yt,{label:e("providers.addFirst"),size:"sm",variant:"primary",icon:x.jsx(mj,{}),href:"/providers/new",as:qu})}):x.jsx(dc,{density:"balanced",hasDividers:!1,xstyle:Ps.providerList,children:f.map(m=>x.jsx(Sc,{label:m.name,xstyle:Ps.providerItem,startContent:x.jsx(ft,{icon:Q1,size:"lg",color:"secondary"}),description:x.jsxs(Tt,{gap:1,wrap:"nowrap",xstyle:Ps.providerDescription,children:[x.jsx(Y0,{size:"sm",label:bK[m.protocol],xstyle:Ps.providerProtocol}),x.jsxs(Tt,{gap:1,vAlign:"center",xstyle:Ps.providerBaseURLGroup,children:[x.jsx(Je,{type:"supporting",children:"·"}),x.jsx(Je,{type:"supporting",maxLines:1,xstyle:Ps.providerBaseURL,children:m.baseURL})]}),x.jsxs(Tt,{gap:1,vAlign:"center",xstyle:Ps.providerCustomModelsGroup,children:[x.jsx(Je,{type:"supporting",children:"·"}),x.jsx(Je,{type:"supporting",maxLines:1,children:`${m.customModels.length} ${e("providers.customModels")}`})]})]}),endContent:x.jsxs(Tt,{gap:2,vAlign:"center",xstyle:Ps.providerActions,children:[x.jsx(_r,{label:`${e("providers.edit")} ${m.name}`,tooltip:e("providers.edit"),icon:x.jsx(oB,{}),variant:"ghost",size:"sm",href:`/providers/${m.id}`,as:qu}),x.jsx(Rx,{label:`${e("providers.deleteLabel")} ${m.name}`,xstyle:Ps.providerPopover,isOpen:r?.id===m.id,isEnabled:!m.isInUse,onOpenChange:y=>{s(y?m:null)},content:x.jsxs(We,{gap:3,children:[x.jsx(We,{gap:1,children:x.jsx(Je,{type:"label",children:e("providers.deleteQuestion")})}),x.jsxs(Tt,{gap:2,hAlign:"end",children:[x.jsx(yt,{label:e("providers.cancel"),variant:"ghost",size:"sm",onClick:()=>{s(null)}}),x.jsx(yt,{label:e("providers.delete"),variant:"destructive",size:"sm",isLoading:u.isPending&&r?.id===m.id,onClick:()=>{u.mutate(m.id)}})]})]}),children:x.jsx(_r,{label:`${e("providers.deleteLabel")} ${m.name}`,tooltip:e("providers.deleteLabel"),icon:x.jsx(yj,{}),variant:"ghost",size:"sm",isDisabled:m.isInUse})}),x.jsx(_i,{content:p(m),children:x.jsx(w6,{label:`${m.name} ${e("providers.enabled")}`,isLabelHidden:!0,value:m.status==="active",onChange:y=>{d(m,y)},isDisabled:m.isInUse,size:"sm"})})]})},m.id))})})]})}const E3={group:{k1xSpc:"x3nfvp2",kGNEyG:"x1qjc9v5",kWkggS:"xjbqb8w",$$css:!0},disabled:{kkrTdU:"xt0e3qv",kSiTet:"xbyyjgo",$$css:!0}},vK={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}};function C6({children:e,label:t,isLabelHidden:r=!1,description:s,isDisabled:o=!1,isOptional:l=!1,isRequired:u=!1,size:f,status:d,labelTooltip:p,xstyle:m,className:y,style:k,ref:v,"data-testid":w,...S}){const E=bc(f,"md"),R=g.useId(),C=g.useId(),T=g.useId(),A=g.useId(),N=[s?T:null,d?.message?A:null].filter(Boolean).join(" ")||void 0,L=g.useMemo(()=>({isInGroup:!0,labelID:C,describedByIDs:N}),[C,N]);return x.jsx(B0,{value:L,children:x.jsx(Bl,{value:E,children:x.jsx(wc,{label:t,isLabelHidden:r,description:s,inputID:R,labelID:C,descriptionID:s?T:void 0,isGroupLabel:!0,isOptional:l,isRequired:u,isDisabled:o,status:d?{type:d.type,message:d.message,messageID:d.message?A:void 0}:void 0,statusVariant:"detached",labelTooltip:p,children:x.jsx("div",{ref:v,"data-testid":w,...S,role:"group","aria-labelledby":C,"aria-describedby":N,...ye(fe("input-group",{size:E,status:d?.type??null}),de(E3.group,vK[E],o&&E3.disabled,m),y,k),children:e})})})})}C6.displayName="InputGroup";const wK={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 j6({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return x.jsx("div",{ref:e,...l,...ye(fe("input-group-text"),de(wK.text,r),s,o),children:t})}j6.displayName="InputGroupText";const fi={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}},SK=[{value:"openai-responses",label:"OpenAI Responses"},{value:"anthropic-messages",label:"Anthropic Messages"},{value:"openai-compatible-chat-completions",label:"OpenAI-compatible Chat Completions"}];function $3(){const{providerId:e}=Ib(),{t}=Qt(),r=yc(),s=qr(),o=Ws(),[l,u]=g.useState(""),[f,d]=g.useState("openai-responses"),[p,m]=g.useState(""),[y,k]=g.useState(""),[v,w]=g.useState(!1),[S,E]=g.useState(!1),R=g.useRef(null),[C,T]=g.useState([]),[A,N]=g.useState(""),[L,D]=g.useState(""),[j,O]=g.useState(!1),[M,H]=g.useState(!1);g.useEffect(()=>{e&&qG(e).then(K=>{K&&(u(K.name),d(K.protocol),m(K.baseURL),k(K.apiKey),T(K.customModels.map(ae=>({...ae,source:"custom"}))))})},[e]);const F=!!(p.trim()&&(f==="openai-compatible-chat-completions"||y.trim())),q=C.length>0&&!j&&!M&&!!(l.trim()&&p.trim()),B=g.useMemo(()=>C.filter(K=>K.source==="custom"),[C]),U=g.useCallback(async()=>{if(F){O(!0);try{const K=await PG({protocol:f,baseURL:p,apiKey:y});T(ae=>[...K.map(I=>({...I,source:"remote"})),...ae.filter(I=>I.source==="custom")])}catch{T(K=>K.filter(ae=>ae.source==="custom")),o({body:t("providers.failedFetchModels"),type:"error"})}finally{O(!1)}}},[y,p,F,f,t,o]);g.useEffect(()=>{if(!F)return;const K=setTimeout(()=>{U()},500);return()=>clearTimeout(K)},[F,U]);function _(){const K=A.trim();!K||B.some(ae=>ae.id===K)||(T(ae=>[...ae,{id:K,displayName:L.trim()||null,source:"custom"}]),N(""),D(""))}const P=g.useCallback(async()=>{if(!q)return;H(!0);const K={name:l.trim(),protocol:f,baseURL:p.trim(),apiKey:y,customModels:B.map(({source:ae,...I})=>I)};try{await _G(K,e),await s.invalidateQueries({queryKey:ys.all}),r("/providers")}finally{H(!1)}},[y,p,q,B,r,l,e,f,s]),G=g.useCallback(()=>{r("/providers")},[r]),X=g.useCallback(()=>{P()},[P]),Z=g.useCallback(()=>{R.current&&clearTimeout(R.current),E(!0)},[]),Q=g.useCallback(()=>{R.current=setTimeout(()=>{E(!1)},120)},[]);return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsxs(Tt,{gap:2,children:[x.jsx(yt,{label:t("providers.cancel"),variant:"ghost",size:"sm",onClick:G}),x.jsx(yt,{label:t("providers.save"),variant:"primary",size:"sm",isDisabled:!q,isLoading:M,onClick:X})]})}),x.jsxs(We,{gap:5,children:[x.jsxs(We,{gap:4,children:[x.jsxs(Tt,{gap:3,wrap:"wrap",xstyle:fi.formFieldRow,children:[x.jsx(Ua,{containerXstyle:fi.formNameField,size:"sm",label:t("providers.name"),value:l,onChange:u,isRequired:!0}),x.jsx(Ql,{containerXstyle:fi.formProtocolField,size:"sm",label:t("providers.protocol"),options:SK,value:f,onChange:K=>d(K),isDisabled:!!e,isRequired:!0})]}),x.jsx(Ua,{size:"sm",label:t("providers.baseUrl"),value:p,onChange:m,placeholder:"https://api.example.com/v1",isRequired:!0}),x.jsxs(C6,{label:t("providers.apiKey"),size:"sm",isRequired:f!=="openai-compatible-chat-completions",xstyle:fi.formApiKeyField,children:[x.jsx(Ua,{size:"sm",label:t("providers.apiKey"),isLabelHidden:!0,type:v?"text":"password",value:y,onChange:k}),x.jsx(j6,{xstyle:fi.apiKeyVisibilityAddon,children:x.jsx(_r,{label:t(v?"providers.hideApiKey":"providers.showApiKey"),tooltip:t(v?"providers.hideApiKey":"providers.showApiKey"),icon:v?x.jsx(qP,{}):x.jsx(xj,{}),variant:"ghost",size:"sm",onClick:()=>w(K=>!K)})})]})]}),x.jsxs(We,{gap:3,children:[x.jsxs(Tt,{gap:1,vAlign:"center",children:[x.jsx(Je,{type:"label",color:"secondary",children:t("providers.models")}),x.jsxs(Je,{type:"supporting",children:["·",t("providers.required")]}),x.jsx(Rx,{label:t("providers.modelSources"),placement:"below",alignment:"start",isOpen:S,isEnabled:!1,onOpenChange:E,content:x.jsx(We,{gap:1,onMouseEnter:Z,onMouseLeave:Q,children:x.jsx(Je,{type:"supporting",children:t("providers.modelsTemporary")})}),children:x.jsx("button",{type:"button","aria-label":t("providers.aboutModelSources"),className:"x3nfvp2 x6s0dn4 xl56j7k x1717udv xjspbzw xjbqb8w xv9yike x1ypdohk x1cqbx0l x17nn4n9 x7s97pk",onMouseEnter:Z,onMouseLeave:Q,children:x.jsx(ft,{icon:cB,size:"sm"})})}),x.jsx(_r,{label:t("providers.fetchModels"),tooltip:t("providers.fetchModels"),icon:x.jsx(px,{}),variant:"ghost",size:"sm",isDisabled:!F,isLoading:j,onClick:()=>{U()}})]}),C.length>0&&x.jsx(Tt,{gap:1,wrap:"wrap",children:C.map(K=>x.jsx(Y0,{size:"sm",label:K.displayName||K.id,color:K.source==="custom"?"blue":"default",onRemove:K.source==="custom"?()=>T(ae=>ae.filter(I=>I!==K)):void 0},`${K.source}-${K.id}`))}),x.jsxs(Tt,{gap:2,wrap:"wrap",children:[x.jsx(Ua,{size:"sm",containerXstyle:fi.formModelInput,label:t("providers.modelId"),isLabelHidden:!0,value:A,onChange:N,placeholder:t("providers.customModelId"),isRequired:!0}),x.jsx(Ua,{size:"sm",containerXstyle:fi.formModelNameInput,label:t("providers.displayName"),isLabelHidden:!0,value:L,onChange:D,isOptional:!0,placeholder:t("providers.displayNameOptional")}),x.jsx(yt,{label:t("providers.addCustomModel"),variant:"secondary",size:"sm",isDisabled:!A.trim(),onClick:_})]})]})]})]})}const X0=aa(null);X0.displayName="SegmentedControlContext";function EK(){const e=g.use(X0);if(e==null)throw new Error("useSegmentedControlContext must be used within SegmentedControl. Wrap your SegmentedControlItem in <SegmentedControl>.");return e}const Eh={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}},$K={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 R6({ref:e,value:t,onChange:r,label:s,size:o,layout:l="hug",isDisabled:u=!1,disabledMessage:f,children:d,xstyle:p,className:m,style:y,onKeyDown:k,onFocus:v,onBlur:w,...S}){const E=bc(o,"md"),R=u&&!!f,C=Ya({placement:"above",focusTrigger:"always",isEnabled:R}),{listRef:T,handleKeyDown:A,handleFocus:N}=fx({itemSelector:'[role="radio"]:not([aria-disabled="true"])',hasRovingTabIndex:!0,wrap:!0,orientation:"horizontal"}),L=rU({orientation:"horizontal",isEnabled:!u}),D=g.useCallback(M=>{k?.(M),!M.defaultPrevented&&(L.onKeyDown(M),A(M))},[k,L,A]),j=g.useCallback(M=>{if(v?.(M),M.defaultPrevented||(L.onFocus(M),N(M),u)||!M.currentTarget.contains(M.relatedTarget))return;const H=M.target?.closest('[role="radio"][data-value]');if(!H||H.getAttribute("aria-disabled")==="true")return;const F=H.dataset.value;F!=null&&F!==t&&r(F)},[v,L,N,u,r,t]),O=g.useMemo(()=>({value:t,onChange:r,size:E,layout:l,isDisabled:u,hasDisabledMessage:R}),[t,r,E,l,u,R]);return x.jsxs(X0,{value:O,children:[x.jsxs("div",{ref:xn(e,T,C.ref),...S,role:"radiogroup","aria-label":s,"aria-disabled":u||void 0,"aria-describedby":R?C.describedBy:void 0,onKeyDown:D,onFocus:j,onBlur:Ir(w,L.onBlur),...ye(fe("segmented-control",{size:E}),de(Eh.container,$K[E],l==="fill"&&Eh.fill,u&&(R?Eh.disabledWithMessage:Eh.disabled),p),m,y),children:[d,L.hintElement]}),R&&C.renderTooltip(f)]})}R6.displayName="SegmentedControl";const Dl={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}},TK={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}},CK={sm:{kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",$$css:!0},lg:{kzqmXN:"x1xp8n7a",kZKoxP:"xmix8c7",$$css:!0}};function lb({ref:e,value:t,label:r,isLabelHidden:s=!1,icon:o,isDisabled:l=!1,onClick:u,xstyle:f,...d}){const p=Ra(),m=EK(),y=m.value===t,k=l||m.isDisabled,v=y&&(m.hasDisabledMessage??!1)&&!l,w=m.size,S=m.layout==="fill",E=Ir(u,()=>{!k&&!y&&m.onChange(t)}),R=o?x.jsx("span",{...de(Dl.icon,CK[w]),children:o}):null;return x.jsxs("button",{ref:e,...d,type:"button",role:"radio","aria-checked":y,"aria-disabled":k||void 0,"aria-label":s?r:void 0,"data-value":t,...!y&&!k?p:void 0,tabIndex:y&&!k||v?0:-1,onClick:E,...ye(fe("segmented-control-item",{size:w,selected:y?"selected":null,disabled:k?"disabled":null}),pn.focusVisible(Dl.base,TK[w],S&&Dl.fill,s&&Dl.iconOnly,y&&Dl.selected,!y&&!k&&or.backgroundColor,k&&Dl.disabled,f)),children:[R,!s&&x.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:r})]})}lb.displayName="SegmentedControlItem";const A6=120,M6=60;function N6(e){return e?.minWidth??(e==null?M6:A6)}function z6(e){let t=0,r=0;const s=[];for(const l of e){const u=l.width;if(u?.type==="pixel")r+=u.value;else{const f=u?.value??1;t+=f,s.push({proportion:f,minWidth:N6(u)})}}let o=0;if(t>0)for(const l of s){const u=l.minWidth*t/l.proportion;u>o&&(o=u)}return{totalProportion:t,pixelTotal:r,maxProportionalSpace:o}}function L6(e){const{totalProportion:t,maxProportionalSpace:r}=z6(e),s=new Map;for(const o of e){const l=o.width;if(l?.type==="pixel")s.set(o.key,l.value);else{const u=l?.value??1;s.set(o.key,t>0?r*u/t:0)}}return s}const jK=/^[+-]?(?:\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,RK=/^(?:calc|min|max|clamp|var)\(/i,AK=/^[+-]?(?:0+\.?0*|\.0+)(?:[a-z]+|%)?$/i,MK=/^(\d+(?:\.\d+)?)px$/i;function NK(e,t){const r=`${t}px`;if(e==null)return r;if(typeof e=="number")return`${Math.max(e,t)}px`;const s=e.trim();if(s===""||AK.test(s))return r;const o=MK.exec(s);return o?`${Math.max(Number(o[1]),t)}px`:jK.test(s)||RK.test(s)?`max(${s}, ${r})`:r}function zK(e){const{totalProportion:t,pixelTotal:r,maxProportionalSpace:s}=z6(e),o=r+s,l=new Map;for(const u of e){const f=u.width,d={};if(f?.type==="pixel")d.width=`${f.value}px`,d.minWidth=`${f.value}px`;else{const p=f?.value??1;t>0&&(d.width=`${p/t*100}%`),d.minWidth=`${N6(f)}px`}l.set(u.key,{style:d})}return{columns:l,tableMinWidth:o}}function Yh(e=1,t){return{type:"proportional",value:e,minWidth:t?.minWidth??A6}}function Ro(e){return{type:"pixel",value:e}}function T3(e){if(e.length===0)return e;const t=kz(e);return t.toUpperCase()+e.slice(t.length)}function LK(e,t){const r=e[t];return r==null?"":r instanceof Date?r.toISOString():typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="bigint"?String(r):""}function DK(e){return e==null?0:typeof e=="string"?e.length:typeof e=="number"||typeof e=="boolean"?String(e).length:0}function OK(e){if(e==null||typeof e!="string"&&typeof e!="number"&&typeof e!="boolean")return 0;const t=String(e);let r=0,s=0;for(let o=0;o<=t.length;o++)o===t.length||t[o]===" "||t[o]===" "||t[o]===`
|
|
94
|
-
`?(s>r&&(r=s),s=0):s++;return r}const IK=8;function _K(e){if(e.length===0)return[];const t=e[0],r=Object.keys(t),s=e.slice(0,Math.min(5,e.length));return r.map(l=>{const u=T3(l).length;let f=u,d=u;for(const p of s){const m=DK(p[l]);m>f&&(f=m);const y=OK(p[l]);y>d&&(d=y)}return{key:l,headerLen:u,maxContentLen:f,maxWordLen:d}}).map(l=>{const u=l.maxContentLen<=6?1:l.maxContentLen<=15?2:3,f=Math.max(Math.max(l.headerLen,l.maxWordLen)*IK,M6);return{key:l.key,header:T3(l.key),width:Yh(u,{minWidth:f})}})}const C3={x139im0d:"x139im0d",$$css:!0},D6={cell:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",ks0D6T:"x1m189uc",$$css:!0}},qK={cell:{kVQacm:"xb3r6kr",kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",ks0D6T:"x1m189uc",$$css:!0}},O6={compact:{kZCmMZ:"x5uh4xs",kwRFfy:"xbg7gas",$$css:!0},balanced:{kZCmMZ:"x9bi00s",kwRFfy:"xpilulx",$$css:!0},spacious:{kZCmMZ:"x18c6q21",kwRFfy:"x1wzlfcn",$$css:!0}},Ax=aa(null);Ax.displayName="TableContext";const PK={row:{kWkggS:"x189zj9d","--table-row-overlay":"xztvxw7",$$css:!0}},BK={row:{kWkggS:"xoevpu5","--table-row-overlay":"xc01ov8",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}},HK={row:{kWkggS:"x189zj9d xoevpu5","--table-row-overlay":"xztvxw7 xc01ov8",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}};function jp({children:e,xstyle:t,ref:r,isHeaderRow:s=!1,className:o,style:l,...u}){const f=g.use(Ax);if(!f)return x.jsx("tr",{ref:r,...u,...ye(fe("table-row"),de(C3,t),o,l),children:e});const d=[];return s||(f.isStriped&&f.hasHover?d.push(HK.row):f.isStriped?d.push(PK.row):f.hasHover&&d.push(BK.row)),f.dividers==="rows"||f.dividers,t&&d.push(...t),x.jsx("tr",{ref:r,...u,...ye(fe("table-row"),de(C3,...d),o,l),children:e})}jp.displayName="TableRow";const Z0=new Set(["menuitem","menuitemradio","menuitemcheckbox"]),Rp=[...Z0].map(e=>`[role="${e}"]:not([aria-disabled="true"])`).join(","),I6='[role="menu"]';function _6(e){return e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.button!==0}function q6(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 FK="button:not(:disabled), a[href]",$h={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 UK(e,t){return`item-${e.id??t}`}function P6({items:e,onSelect:t,onOpenSubmenu:r}){const s=g.useRef(null),o=kx({menuRef:s,itemSelector:FK}),l=(u,f)=>{const d=u.items!=null&&u.items.length>0,p=u.variant==="destructive",m=!d&&u.href!=null,y=k=>{if(m&&u.isDisabled){k.preventDefault();return}ic()==="pointer"&&k.currentTarget.blur(),d?r(u):m&&_6(k)?t({...u,onClick:void 0},k):t(u,k)};return x.jsx(Sc,{label:u.label,description:u.description,startContent:u.icon?Ca(u.icon,{size:"sm",color:p?"error":"secondary"}):void 0,endContent:d?x.jsx(ft,{icon:"chevronRight",size:"sm",color:"secondary",xstyle:Wa.mirror}):u.endContent,isDisabled:u.isDisabled,href:m?u.href:void 0,target:m?u.target:void 0,rel:m?u.rel:void 0,onClick:m?void 0:y,onClickCapture:m?y:void 0,xstyle:p&&$h.destructiveAction},UK(u,f))};return x.jsx(dc,{ref:s,density:"spacious",xstyle:$h.list,...o.menuProps,children:e.map((u,f)=>"type"in u&&u.type==="divider"?x.jsx("li",{role:"presentation",className:"x3ct3a4",children:x.jsx(Ni,{xstyle:$h.divider})},`divider-${f}`):"type"in u&&u.type==="section"?x.jsx("li",{className:"x3ct3a4",children:x.jsxs("div",{role:"group","aria-label":u.title,className:"x78zum5 xdt5ytf xzye2dw",children:[u.title&&x.jsx(qo,{level:4,xstyle:$h.sectionHeading,children:u.title}),x.jsx(dc,{density:"spacious",children:u.items.map(l)})]})},`section-${u.id??f}`):l(u,f))})}P6.displayName="MenuBottomSheetActionList";const Mx=aa(null);Mx.displayName="DropdownMenuContext";function B6(){return g.use(Mx)}const VK=g.createContext(null);VK.displayName="DropdownMenuRadioGroupContext";function H6(e,t){if(t||e.pointerType!=="mouse")return;const r=e.currentTarget;r!==r.ownerDocument.activeElement&&r.focus({preventScroll:!0})}const o1={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}},GK={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}};function Q0({icon:e,label:t,description:r,onClick:s,href:o,target:l,rel:u,isDisabled:f=!1,endContent:d,hasCloseOnSelect:p=!0,variant:m="default",xstyle:y,className:k,style:v,ref:w,onPointerMove:S,onAuxClick:E,...R}){const C=B6(),T=C?.menuSize??"md",A=Ra(),N=g.useCallback(M=>{if(f){M.preventDefault();return}o!=null&&_6(M)||s?.(M),p&&C?.closeMenu()},[f,o,s,p,C]),L=g.useCallback(M=>{if(f){M.preventDefault();return}o==null||M.button!==1||p&&C?.closeMenu()},[f,o,p,C]),D=g.useCallback(M=>H6(M,f),[f]),j=m==="destructive",O=Oi();return x.jsx(Rd,{...R,ref:w,as:o!=null?O:void 0,role:"menuitem",tabIndex:f?void 0:-1,onPointerMove:Ir(D,S),...A,startContent:e?Ca(e,{size:"sm",color:j?"error":"secondary"}):void 0,label:t,description:r,endContent:d,onClick:N,onAuxClick:Ir(L,E),href:o,target:l,rel:u,draggable:o!=null?!1:void 0,isDisabled:f,xstyle:[o1.root,GK[T],j&&o1.destructive,f&&o1.disabled,y],...ye(fe("dropdown-menu-item",{size:T,variant:j?"destructive":null}),{className:k,style:v})})}Q0.displayName="DropdownMenuItem";const KK={divider:{kqGvvJ:"xsq74q5",$$css:!0}},j3=fe("dropdown-menu-divider").className;function F6({xstyle:e,className:t,style:r,ref:s}){return x.jsx(Ni,{ref:s,xstyle:[KK.divider,e],className:t?`${j3} ${t}`:j3,style:r})}F6.displayName="DropdownMenuDivider";const U6=g.createContext(!1);U6.displayName="MenuRegionsContext";function WK(e,t){return typeof e=="string"&&E6(e)?{property:"inlineSize",value:e.trim()}:{property:"minWidth",value:$6(e,t)}}const i1={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}},YK={sm:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},md:{k8WAf4:"x1vofgu7",$$css:!0},lg:{$$css:!0}},XK={kzqmXN:"x1uyokj7",$$css:!0},Th={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=>[XK,{"--x-inlineSize":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]};function V6(e){const{icon:t,label:r,description:s,isDisabled:o=!1,hasSpinner:l=!1,menuWidth:u,onOpenChange:f,presentation:d="adaptive",children:p,xstyle:m,className:y,style:k,"data-testid":v,menuDataTestId:w,ref:S,id:E,onMouseEnter:R,onMouseLeave:C,onPointerMove:T,onClick:A,onKeyDown:N,...L}=e,D=Nt(),j=B6(),O=g.use(U6),M=j?.menuSize??"md",H=!o,F=g.useId(),q=g.useId(),B=E??q,U=g.useRef(null),_=j?.drillIn,P=_!=null&&(d==="drill-in"||d==="adaptive"&&_.isCompactTouch)?_:null,G=P!=null,X=g.useId(),Z=P?.viewStack.includes(X)===!0,Q=Z&&P?.viewStack.at(-1)===X,K=typeof r=="string"?r:void 0,ae=j?.menuLabel,I=ae!=null?D("@astryx.dropdownMenu.backTo",{parent:ae}):D("@astryx.dropdownMenu.back"),[ee,pe]=g.useState(!1),ue=G?Z:ee,ve=md({mode:"context",lightDismiss:!1,onShow:g.useCallback(()=>{pe(!0),f?.(!0)},[f]),onHide:g.useCallback(()=>{pe(!1),f?.(!1)},[f])}),xe=g.useCallback(()=>{H&&ve.show()},[H,ve]),$e=g.useCallback(()=>{ve.hide()},[ve]),{listRef:te,handleKeyDown:he,focusFirst:Re,focusItem:Ce,ownsEvent:Te,getItems:Me}=fx({itemSelector:Rp,boundarySelector:I6,wrap:!0,hasPaging:!0,onEscape:()=>rt({focusTrigger:!0})}),je=U0(te,p,ue&&!G),He=L0({getItemLabels:()=>Me().map(Le=>Le.textContent),onMatch:Ce,getCurrentIndex:()=>Me().findIndex(Le=>Le===document.activeElement||Le.contains(document.activeElement))}),{triggerProps:at,contentProps:pt,confirmHoverOpen:et}=sj({show:xe,hide:$e,isOpen:ee,isEnabled:H&&!G,flyoutRef:te}),Ve=g.useRef(null),bt=g.useRef(!1),Pe=g.useCallback(Le=>{if(H){if(P!=null){Ve.current=Le?.focusFirst?"first":"container",P.push(X),f?.(!0);return}ve.show(),Le?.focusFirst&&(Re()||te.current?.focus())}},[H,P,X,f,ve,Re,te]),rt=g.useCallback(Le=>{if(P!=null){Z&&(bt.current=Le?.focusTrigger!==!1,P.pop(),f?.(!1));return}ve.hide(),Le?.focusTrigger!==!1&&U.current?.focus()},[P,Z,f,ve]);g.useEffect(()=>{if(!Q||P?.host==null)return;const Le=Ve.current;if(Le==null)return;Ve.current=null;const en=Me(),un=Le==="first"?en[1]??en[0]:null;un!=null?un.focus({preventScroll:!0}):te.current?.focus({preventScroll:!0})},[Q,P?.host,Me,te]),g.useEffect(()=>{Z||!bt.current||(bt.current=!1,U.current?.focus({preventScroll:!0}))},[Z]);const lt=ve.ref,st=g.useCallback(Le=>{U.current=Le,lt(Le)},[lt]),ct=xn(st,S),we=g.useCallback(Le=>{if(o){Le.preventDefault();return}if(G){const en=Le.detail>0||FF();Pe({focusFirst:!en});return}if(ee){if(et()){Re()||te.current?.focus();return}rt({focusTrigger:!0})}else Pe({focusFirst:!0})},[o,G,ee,Pe,rt,et,Re,te]),Ge=g.useCallback(Le=>{Ir(we,A)(Le)},[we,A]),Pt=g.useCallback(Le=>{if(o)return;const un=(typeof window<"u"&&U.current?window.getComputedStyle(U.current).direction==="rtl":!1)?"ArrowLeft":"ArrowRight";(Le.key===un||Le.key==="Enter"||Le.key===" ")&&(Le.preventDefault(),Le.stopPropagation(),Pe({focusFirst:!0}))},[o,Pe]),bn=g.useCallback(Le=>H6(Le,o),[o]),gn=g.useCallback(Le=>{if(Le.key==="Tab"&&O){rt({focusTrigger:!1});return}if(!Te(Le))return;if(Le.key==="Escape"){Le.preventDefault(),Le.stopPropagation(),rt({focusTrigger:!0});return}if(Le.key==="Enter"||Le.key===" "){if(Le.preventDefault(),Le.repeat)return;const an=document.activeElement;an&&Z0.has(an.getAttribute("role")??"")&&q6(an,Le);return}const un=(typeof window<"u"&&te.current?window.getComputedStyle(te.current).direction==="rtl":!1)?"ArrowRight":"ArrowLeft";if(Le.key===un){Le.preventDefault(),rt({focusTrigger:!0});return}if(He.onKeyDown(Le)){Le.preventDefault();return}he(Le)},[Te,rt,he,He,te,O]),An=g.useMemo(()=>({menuSize:M,closeMenu:()=>{rt({focusTrigger:!1}),j?.closeMenu()},drillIn:_,menuLabel:K}),[M,rt,j,_,K]),Vt=kx({menuRef:te,itemSelector:Rp,onDismiss:An.closeMenu}),Yn=l?x.jsx("span",{className:"x78zum5 x6s0dn4",children:x.jsx(_o,{size:"sm"})}):x.jsx("span",{className:"x78zum5 x6s0dn4",children:x.jsx(ft,{icon:"chevronRight",size:"sm",color:"secondary",xstyle:Wa.mirror,...fe("dropdown-menu-indicator-icon")})}),Jt=u?WK(u,oc.maxInlineSizeFallback):null,kn=Jt?Jt.property==="inlineSize"?Th.popoverCustomIntrinsicWidth(Jt.value):Th.popoverCustomWidth(Jt.value):Th.popover,Ye=x.jsxs(Mx,{value:An,children:[G&&x.jsx(Q0,{icon:x.jsx(ft,{icon:"chevronLeft",size:"sm",color:"secondary",xstyle:Wa.mirror}),label:I,hasCloseOnSelect:!1,onClick:()=>rt({focusTrigger:!0})}),p]});return x.jsxs(x.Fragment,{children:[x.jsx(Rd,{...L,ref:ct,id:B,role:"menuitem",tabIndex:o?void 0:-1,"aria-haspopup":"menu","aria-expanded":ue,"aria-controls":ue?F:void 0,"aria-disabled":o||void 0,"data-testid":v,onMouseEnter:Ir(at.onMouseEnter,R),onMouseLeave:Ir(at.onMouseLeave,C),onPointerMove:Ir(bn,T),startContent:t?Ca(t,{size:"sm",color:"secondary"}):void 0,label:r,description:s,endContent:Yn,onClick:Ge,onKeyDown:Ir(Pt,N),isDisabled:o,xstyle:[i1.root,YK[M],ue&&i1.open,o&&i1.disabled,m],...ye(fe("dropdown-menu-item",{size:M}),{className:y,style:k})}),P!=null?Z&&P.host!=null&&xd.createPortal(x.jsx("div",{ref:te,id:F,role:"menu",tabIndex:-1,"aria-label":K,"aria-labelledby":K==null?B:void 0,hidden:!Q,inert:!Q,onKeyDown:gn,"data-testid":w,...Vt.menuProps,...{0:{className:"x78zum5 xdt5ytf x1lsbc85 x1a2a7pz xpdipgo x87ps6o"},1:{className:"xdt5ytf x1lsbc85 x1a2a7pz xpdipgo x87ps6o x1s85apg"}}[!Q<<0],children:Ye}),P.host):ve.render(x.jsx("div",{ref:te,id:F,role:"menu",tabIndex:je?0:-1,"aria-labelledby":B,onKeyDown:gn,onMouseEnter:pt.onMouseEnter,onMouseLeave:pt.onMouseLeave,"data-testid":w,...Vt.menuProps,...ye(fe("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"}}[!!je<<1|!!je<<0]),children:Ye}),{placement:"end",alignment:"start",offset:Wn["--spacing-1"],xstyle:[Th.popoverViewport,kn,yd.end]})]})}V6.displayName="DropdownMenuSubMenu";function G6(e,t){return`item-${e.id??t}`}function ZK(e,t){return`section-${e.id??t}`}function R3(e,t){const{items:r,id:s,...o}=e;return x.jsx(Q0,{...o},G6(e,t))}function K6(e){const t=[];for(let r=0;r<e.length;r++){const s=e[r];"type"in s&&s.type==="divider"?t.push(x.jsx(F6,{},`divider-${r}`)):"type"in s&&s.type==="section"?t.push(x.jsxs("div",{role:"group","aria-label":s.title,children:[s.title&&x.jsx("div",{"aria-hidden":"true",...ye(fe("dropdown-menu-section-heading"),{className:"xu0wf1k xf314gf x9ynric x141an7d x1ltkj2j xv1l7n4 x87ps6o"}),children:s.title}),s.items.map(R3)]},ZK(s,r))):"type"in s||(s.items&&s.items.length>0?t.push(x.jsx(V6,{icon:s.icon,label:s.label,isDisabled:s.isDisabled,children:K6(s.items)},G6(s,r))):t.push(R3(s,r)))}return t}function QK(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(h6).matches}function JK(e){const[t,r]=g.useState(!1),[s,o]=g.useState([]),[l,u]=g.useState(null),[f,d]=g.useState(e);f!==e&&(d(e),e?r(QK()):s.length>0&&o([]));const p=g.useCallback(w=>{o(S=>S.includes(w)?S:[...S,w])},[]),m=g.useCallback(()=>{o(w=>w.length===0?w:w.slice(0,-1))},[]),y=g.useMemo(()=>({isCompactTouch:t,viewStack:s,host:l,push:p,pop:m}),[t,s,l,p,m]),k=s.length>0,v=g.useCallback(w=>x.jsxs(x.Fragment,{children:[x.jsx("div",{hidden:k,inert:k,...{0:{className:"xjp7ctv"},1:{className:"x1s85apg"}}[!!k<<0],children:w}),x.jsx("div",{ref:u,className:"xjp7ctv"})]}),[k]);return{drillIn:y,isDrilled:k,wrapContent:v}}const eW=g.lazy(async()=>bd(()=>import("./MenuBottomSheet-BrAaAVcz.js"),__vite__mapDeps([0,1])).then(e=>({default:e.MenuBottomSheet}))),hs={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 J0({children:e,menuWidth:t,size:r="md",label:s,isDisabled:o=!1,onOpenChange:l,presentation:u="popover",triggerAs:f="div",ref:d,className:p,style:m,xstyle:y,triggerXstyle:k,"data-testid":v,...w}){const S=Nt(),E=s??S("@astryx.contextMenu.label"),R=S("@astryx.dropdownMenu.back"),T=p6(u)==="bottom-sheet",{items:A,menuContent:N,...L}=w,D=A??[],j=N,O=g.useId(),M=g.useRef({x:0,y:0}),H=g.useRef(null),F=g.useRef(null),q=g.useRef(null),B=g.useRef(null),[U,_]=g.useState(!1),[P,G]=g.useState([]),X=P.at(-1),Z=X?.items??D,Q=X?.label??E,K=typeof Q=="string"?Q:E,ae=g.useCallback(we=>{we||G([]),_(we),l?.(we)},[l]),I=md({mode:"context",onHide:g.useCallback(()=>{_(!1),l?.(!1);const we=q.current;q.current=null,we&&document.contains(we)&&we.focus()},[l]),onShow:g.useCallback(()=>{_(!0),l?.(!0)},[l]),lightDismiss:!1}),ee=g.useCallback(()=>{T?ae(!1):I.hide()},[I,ae,T]),pe=g.useCallback((we,Ge)=>{we.isDisabled||(we.onClick?.(Ge),we.hasCloseOnSelect!==!1&&ee())},[ee]);g.useEffect(()=>{if(!U||P.length===0)return;const we=requestAnimationFrame(()=>{B.current?.focus({preventScroll:!0})});return()=>cancelAnimationFrame(we)},[U,P.length]);const{listRef:ue,handleKeyDown:ve,focusFirst:xe,focusItem:$e,ownsEvent:te,getItems:he}=fx({itemSelector:Rp,boundarySelector:I6,wrap:!0,hasPaging:!0,onEscape:ee}),Re=L0({getItemLabels:()=>he().map(we=>we.textContent),onMatch:$e,getCurrentIndex:()=>he().findIndex(we=>we===document.activeElement||we.contains(document.activeElement))});g.useEffect(()=>{if(!U||T)return;const we=Ge=>{const Pt=ue.current;Pt&&!Pt.contains(Ge.target)&&ee()};return document.addEventListener("mousedown",we),()=>{document.removeEventListener("mousedown",we)}},[U,ee,ue,T]),g.useEffect(()=>{if(!U||T)return;const we=Ge=>{Ge.key==="Escape"&&(gd(Ge)||(Ge.preventDefault(),ee()))};return document.addEventListener("keydown",we),()=>{document.removeEventListener("keydown",we)}},[U,ee,T]);const Ce=g.useCallback(we=>{if(te(we)){if(we.key==="Enter"||we.key===" "){if(we.preventDefault(),we.repeat)return;const Ge=document.activeElement;Ge&&Z0.has(Ge.getAttribute("role")??"")&&q6(Ge,we);return}if(we.key==="Tab"){ee();return}if(Re.onKeyDown(we)){we.preventDefault();return}ve(we)}},[ve,ee,Re,te]),Te=g.useCallback((we,Ge,Pt)=>{M.current={x:we,y:Ge};const bn=H.current;bn&&(bn.style.left=`${we}px`,bn.style.top=`${Ge}px`),q.current=document.activeElement instanceof HTMLElement?document.activeElement:Pt,T?ae(!0):(I.show(),requestAnimationFrame(()=>xe()))},[I,xe,ae,T]),Me=g.useCallback(()=>F.current?.getBoundingClientRect(),[]),je=g.useCallback(we=>{if(o)return;we.preventDefault();const Ge=Me(),Pt=we.clientX===0&&we.clientY===0&&we.detail===0,bn=Pt||!Ge?0:we.clientX-Ge.left,gn=Pt||!Ge?Ge?.height??0:we.clientY-Ge.top;Te(bn,gn,we.currentTarget)},[o,Te,Me]),He=U4({disabled:o,onLongPress:g.useCallback(we=>{const Ge=Me();Te(Ge?we.x-Ge.left:we.x,Ge?we.y-Ge.top:we.y,F.current)},[Te,Me])}),at=t?hs.popoverCustomWidth(t):hs.popover,{drillIn:pt,wrapContent:et}=JK(U&&!T),Ve=g.useMemo(()=>({closeMenu:ee,menuSize:r,drillIn:pt,menuLabel:E}),[ee,r,pt,E]),bt=et(A!==void 0?K6(D):j),Pe=U0(ue,bt,U&&!T),rt=kx({menuRef:ue,itemSelector:Rp,onDismiss:ee,isEnabled:!T}),lt=x.jsx("div",{ref:ue,id:O,role:"menu","data-autofocus":T?"":void 0,tabIndex:T?0:-1,"aria-label":E,onKeyDown:Ce,onContextMenu:we=>we.preventDefault(),...rt.menuProps,...ye(fe("context-menu"),de(T?hs.sheetMenu:hs.menu,!T&&(Pe?hs.touchPanYPinchZoom:hs.touchPinchZoom),y),p,m),children:x.jsx(Mx,{value:Ve,children:bt})}),st=A!==void 0?x.jsxs("div",{ref:ue,"data-autofocus":"",tabIndex:0,...ye(fe("context-menu"),de(hs.sheetMenu,y),p,m),children:[x.jsxs("div",{className:"x78zum5 x1q0g3np x6s0dn4 xzye2dw x1p37lm5",children:[P.length>0&&x.jsx(yt,{label:R,variant:"ghost",size:"sm",icon:x.jsx(ft,{icon:"chevronLeft",size:"sm",xstyle:Wa.mirror}),isIconOnly:!0,onClick:()=>G(we=>we.slice(0,-1))}),x.jsx(qo,{ref:B,level:3,tabIndex:-1,xstyle:[hs.sheetViewHeading,P.length===0&&hs.sheetRootHeading],children:Q})]}),x.jsx(P6,{items:Z,onSelect:pe,onOpenSubmenu:we=>G(Ge=>[...Ge,we])})]}):lt,ct=f==="div"?"div":"span";return x.jsxs(x.Fragment,{children:[x.jsxs(ct,{ref:xn(d,F),...L,onContextMenu:je,onTouchStart:He.onTouchStart,onTouchMove:He.onTouchMove,onTouchEnd:He.onTouchEnd,onTouchCancel:He.onTouchCancel,"data-testid":v,...de(hs.trigger,...k?Array.isArray(k)?k:[k]:[]),children:[e,x.jsx("span",{ref:xn(H,I.ref),"aria-hidden":"true",...ye({className:"x10l6tqk xnalus7 xqtp20y x47corl"},{style:{left:`${M.current.x}px`,top:`${M.current.y}px`}})})]}),T?x.jsx(g.Suspense,{fallback:null,children:x.jsx(eW,{isOpen:U,onOpenChange:ae,label:K,children:st})}):I.render(lt,{placement:"below",alignment:"start",xstyle:[at,yd.below]})]})}J0.displayName="ContextMenu";function W6(e){const t=[],r=new Map;for(const o of e){const l=o.group??"__ungrouped__";let u=r.get(l);u||(u=[],r.set(l,u),t.push(l)),u.push(o)}const s=[];return t.forEach((o,l)=>{l>0&&s.push({type:"divider"});for(const u of r.get(o)??[])s.push({label:typeof u.label=="string"?u.label:u.id,icon:u.checked?x.jsx(ft,{icon:"check",size:"xsm","aria-hidden":!0}):u.icon,isDisabled:u.disabled,onClick:u.onSelect,variant:u.variant})}),s}function tW({element:e,getActions:t,triggerXstyle:r}){const[s,o]=g.useState(null);return x.jsx(J0,{items:s??[],triggerXstyle:r,onOpenChange:l=>{o(l?W6(t()):null)},children:e})}function Y6(e,t,r){return typeof t=="function"?x.jsx(tW,{element:e,getActions:t,triggerXstyle:r}):!t||t.length===0?e:x.jsx(J0,{items:W6(t),triggerXstyle:r,children:e})}function nW(e,t,r){const s=[];return(e.dividers==="rows"||e.dividers==="grid")&&s.push(t),(e.dividers==="columns"||e.dividers==="grid")&&s.push(r),s}function X6(e,t){return t?Array.isArray(t)?[...e,...t]:[...e,t]:e}function Z6(){return g.use(Ax)}const rW={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}},aW={compact:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},balanced:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},spacious:{kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0}},sW={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",$$css:!0}},A3={fill:{k1xSpc:"x1lliihq",kB7OPa:"x9f619",kZKoxP:"x5yr21d",kzqmXN:"xh8yej3",$$css:!0}},oW={cell:{kZKoxP:"x5yr21d",$$css:!0}},iW={cell:{kt9PQ7:"x92x3c3 x1wp2rvj",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},lW={cell:{ke9TFa:"xw8tdv1 x1qlsc9e",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}},cW={middle:{kXLuUW:"xxymvpz",$$css:!0},top:{kXLuUW:"x16dsc37",$$css:!0},bottom:{kXLuUW:"x3ajldb",$$css:!0}};function ek({children:e,xstyle:t,ref:r,className:s,style:o,contextMenuActions:l,...u}){const f=Z6(),d=typeof l=="function"||Array.isArray(l)&&l.length>0,p=f?[d?aW[f.density]:rW[f.density],f.textOverflow==="truncate"?D6.cell:qK.cell,O6[f.density],cW[f.verticalAlign],...nW(f,iW.cell,lW.cell),...d?[oW.cell]:[]]:[],m=d&&f?[A3.fill,sW[f.density]]:d?A3.fill:void 0,y=Y6(e,l,m);return x.jsx("td",{ref:r,...u,...ye(fe("table-cell",{density:f?.density}),de(...X6(p,t)),s,o),children:y})}ek.displayName="TableCell";const uW={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}},dW={cell:{k63SB2:"x2mo6ok",kMwMTN:"xv1l7n4",k9WMMc:"x1yc453h",$$css:!0}},fW={cell:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},hW={cell:{ke9TFa:"xw8tdv1 x1qlsc9e",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",$$css:!0}};function tk({children:e,xstyle:t,ref:r,className:s,style:o,contextMenuActions:l,...u}){const f=Z6(),d=[];f&&(d.push(dW.cell,uW[f.density],fW.cell,D6.cell,O6[f.density]),(f.dividers==="columns"||f.dividers==="grid")&&d.push(hW.cell));const p=Y6(e,l);return x.jsx("th",{ref:r,...u,...ye(fe("table-header-cell",{density:f?.density}),de(...X6(d,t)),s,o),children:p})}tk.displayName="TableHeaderCell";function nk({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return x.jsx("thead",{ref:e,...ye(fe("table-header"),de(r),s,o),...l,children:t})}nk.displayName="TableHeader";function rk({ref:e,children:t,xstyle:r,className:s,style:o,...l}){return x.jsx("tbody",{ref:e,...ye(fe("table-body"),de(r),s,o),...l,children:t})}rk.displayName="TableBody";const l1={table:{kzqmXN:"xh8yej3",kLvRdT:"x1mwwwfo",kheTzg:"x1gukg7c",kPzzVL:"x140o2bo",$$css:!0},tableAutoLayout:{kPzzVL:"x1drmoe9",$$css:!0}};function xi(e,t,r,...s){return e.reduce((o,l,u)=>{const f=t(l);if(!f)return o;try{return f(o,...s)}catch(d){return Yb("Table",`Plugin at index ${u} threw in transform:`,d),o}},r)}const pW=[];function xW(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function gW({item:e,rowIndex:t,rowKey:r,columns:s,plugins:o,textOverflow:l,RowComponent:u,CellComponent:f,ariaRowIndex:d}){const p=s.map((k,v)=>{const w={};k.align&&(w.style={textAlign:k.align});const E=xi(o,A=>A.transformBodyCell,{htmlProps:w,xstyle:[],columnIndex:v,columns:s},k,e,v,s),R=!k.renderCell;let C=null;E.isContentSuppressed||(C=R?LK(e,k.key):k.renderCell?.(e)??null);let T;return R&&l==="truncate"&&typeof C=="string"&&C.length>0?T=x.jsx(Je,{type:"body",maxLines:1,children:C}):T=C,x.jsx(f,{...E.htmlProps,contextMenuActions:E.contextMenuActions,xstyle:E.xstyle,children:T},k.key)}),m=xi(o,k=>k.transformBodyRow,{htmlProps:d==null?{}:{"aria-rowindex":d},xstyle:[],children:x.jsx(x.Fragment,{children:p})},e,t),y=x.jsx(u,{ref:m.ref,...m.htmlProps,xstyle:m.xstyle,children:m.children},r);return m.afterRow?x.jsxs(x.Fragment,{children:[y,m.afterRow]}):y}function mW(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 r=e.item,s=t.item,o=Object.keys(s);if(Object.keys(r).length!==o.length)return!1;for(const l of o)if(r[l]!==s[l])return!1;return!0}const yW=g.memo(gW,mW);function bW({data:e,columns:t,idKey:r,plugins:s,children:o,textOverflow:l="wrap",scrollWrapper:u,emptyState:f,rowIndexStart:d,rowCount:p,xstyle:m,className:y,style:k,ref:v,...w}){const S=Nt(),E=s??pW,R=d!=null||p!=null,C=d??1,T=R?p??-1:void 0,A=jp,N=ek,L=tk,D=t??(e?_K(e):[]),j=xi(E,Z=>Z.transformColumns,D),O=g.useRef(j);xW(O.current,j)||(O.current=j);const M=O.current,H=zK(M),F=xi(E,Z=>Z.transformTable,{htmlProps:{},xstyle:o?[l1.table,l1.tableAutoLayout]:[l1.table]}),q=M.map((Z,Q)=>{const K=Z.header??Z.key,ae={"data-column-key":Z.key,scope:"col"};Z.align&&(ae.style={textAlign:Z.align});const ee=xi(E,je=>je.transformHeaderCell,{htmlProps:ae,xstyle:[],content:K,columnIndex:Q,columns:M},Z,Q,M),pe=H.columns.get(Z.key)?.style??{},ue=ee.htmlProps.style,ve={...ee.htmlProps,style:ue?{...pe,...ue}:pe},xe=ee.content??K,$e=typeof xe=="string"&&xe.length>0?{title:xe}:{},{before:te,after:he,overlay:Re,below:Ce}=ee,Me=te!=null||he!=null||Re!=null||Ce!=null?x.jsxs(x.Fragment,{children:[te,he!=null?x.jsxs("div",{className:"x3nfvp2 x6s0dn4 xzye2dw xeuugli",children:[xe,he]}):xe,Re,Ce]}):xe;return x.jsx(L,{...ve,...$e,contextMenuActions:ee.contextMenuActions,xstyle:ee.xstyle,children:Me},Z.key)}),B=xi(E,Z=>Z.transformHeaderRow,{htmlProps:{},xstyle:[],children:x.jsx(x.Fragment,{children:q})}),U=e!=null&&e.length>0,_=M.length>0,P={...F.htmlProps.style,...k},G=H.tableMinWidth>0?{...P,minWidth:NK(P.minWidth,H.tableMinWidth)}:P;let X=x.jsx("table",{ref:v,...T!=null?{"aria-rowcount":T}:null,...F.htmlProps,...ye(fe("table"),de(...F.xstyle,m),[F.htmlProps.className,y].filter(Boolean).join(" ")||void 0,G),...w,children:o||x.jsxs(x.Fragment,{children:[_&&x.jsx(nk,{children:x.jsx(A,{...B.htmlProps,isHeaderRow:!0,xstyle:B.xstyle,children:B.children})}),x.jsx(rk,{children:U?e.map((Z,Q)=>{const K=r==null?Q:typeof r=="function"?r(Z):String(Z[r]);return x.jsx(yW,{item:Z,rowIndex:Q,rowKey:K,columns:M,plugins:E,textOverflow:l,RowComponent:A,CellComponent:N,ariaRowIndex:R?C+Q:void 0},K)}):e!=null&&f!==!1&&x.jsx("tr",{children:x.jsx("td",{colSpan:M.length,children:f??x.jsx(fc,{title:S("@astryx.table.noData"),isCompact:!0})})})})]})});if(u){const Z=xi(E,Q=>Q.transformScrollWrapper,{htmlProps:{},xstyle:[]});X=x.jsx(u,{htmlProps:Z.htmlProps,xstyle:Z.xstyle,beforeTable:Z.beforeTable,afterTable:Z.afterTable,children:X})}for(let Z=E.length-1;Z>=0;Z--){const Q=E[Z];if(Q.transformTableContext)try{X=Q.transformTableContext(X)}catch(K){Yb("Table","Plugin threw in transformTableContext:",K)}}return X}const Q6=bW;Q6.displayName="BaseTable";const J6=["columnSettings","sort","tree","selection","pagination"],M3=new Map(J6.map((e,t)=>[e,t]));function kW(e){const t=J6.length;return e.sort(([r],[s])=>{const o=M3.get(r)??t,l=M3.get(s)??t;return o-l})}const Ch=new Set(["transformColumns","transformTable","transformHeaderRow","transformHeaderCell","transformBodyRow","transformBodyCell","transformScrollWrapper","transformTableContext"]);function vW(e,t){const r=Object.keys(t);for(const o of r)Ch.has(o)||$a("Table",`Plugin "${e}" has unknown key "${o}". Valid keys: ${[...Ch].join(", ")}. This key will be ignored.`);for(const o of r)if(Ch.has(o)){const l=t[o];l!=null&&typeof l!="function"&&$a()}r.some(o=>Ch.has(o)&&typeof t[o]=="function")||$a()}function wW(e,t){const r=g.useRef(null);if(r.current!=null){const l=r.current;if(l.basePlugins===e&&l.userPlugins===t)return l.result;if(l.basePlugins===e&&SW(l.userPlugins,t))return l.userPlugins=t,l.result}const s=t?kW(Object.entries(t)).map(([,l])=>l):[],o=[...e,...s];if(t)for(const[l,u]of Object.entries(t))vW(l,u);return r.current={basePlugins:e,userPlugins:t,result:o},o}function SW(e,t){if(e===t)return!0;if(e==null||t==null)return!1;const r=Object.keys(e),s=Object.keys(t);if(r.length!==s.length)return!1;for(const o of r)if(e[o]!==t[o])return!1;return!0}const EW={base:{kMv6JI:"xjb2p0i",kMwMTN:"x1tgivj0",$$css:!0}},N3={base:{kXHlph:"xw2csxc",kuHK5b:"x5lxg6s",$$css:!0},containerBleed:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",keoZOQ:"xkibk3",k1K539:"xlayyun",$$css:!0}};function $W({children:e,htmlProps:t,xstyle:r,beforeTable:s,afterTable:o}){const u=Nt()("@astryx.table.label"),{getViewportProps:f,getContentProps:d,state:p}=kU({axis:"inline",keyboardAccess:{owner:"content"},overscroll:"contain"}),{ref:m,...y}=t??{},k=f({role:"group","aria-label":u,...p.inline.isScrollable?{tabIndex:0}:{},...y,ref:m,...ye(fe("table-scroll-wrapper"),de(N3.base,N3.containerBleed,...r??[]))});return x.jsx("div",{...k,children:x.jsxs("div",{...d(),children:[s,e,o]})})}function TW(){return{transformTable(e){return{...e,xstyle:[...e.xstyle,EW.base]}}}}function CW({density:e="balanced",dividers:t="rows",isStriped:r=!1,hasHover:s=!1,verticalAlign:o="middle",textOverflow:l="wrap",plugins:u,columns:f,data:d,ref:p,...m}){const y=g.useMemo(()=>TW(),[]),k=g.useMemo(()=>[y],[y]),v=wW(k,u),w=g.useMemo(()=>({density:e,dividers:t,isStriped:r,hasHover:s,verticalAlign:o,textOverflow:l}),[e,t,r,s,o,l]);return x.jsx(Ax,{value:w,children:x.jsx(Q6,{ref:p,data:d,columns:f,plugins:v,textOverflow:l,scrollWrapper:$W,...m})})}const Nx=CW;Nx.displayName="Table";function jW(e,t){if(!e||e.length===0||t.length===0)return null;let r=-1;for(let u=0;u<e.length;u++)t.includes(e[u].key)&&(r=u);if(r===-1)return null;const s=L6(e),o=new Map;let l=0;for(let u=0;u<=r;u++)o.set(e[u].key,l),l+=s.get(e[u].key)??0;return o}function RW(e,t){if(!e||e.length===0||t.length===0)return null;let r=-1;for(let u=0;u<e.length;u++)if(t.includes(e[u].key)){r=u;break}if(r===-1)return null;const s=L6(e),o=new Map;let l=0;for(let u=e.length-1;u>=r;u--)o.set(e[u].key,l),l+=s.get(e[u].key)??0;return o}function z3(e,t,r,s){const o=jW(e,r);if(o?.has(t))return{edge:"start",offset:o.get(t)??0};const l=RW(e,s);return l?.has(t)?{edge:"end",offset:l.get(t)??0}:null}const AW="--table-sticky-shadow-start",MW="--table-sticky-shadow-end",jh={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}},Rh={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}},L3=[];function NW(e){const{startKeys:t,endKeys:r}=e,s=t??L3,o=r??L3,l=s.length>0,u=o.length>0,f=g.useRef({start:s,end:o,hasStart:l,hasEnd:u});f.current={start:s,end:o,hasStart:l,hasEnd:u};const d=g.useRef(null),p=g.useCallback(m=>{if(d.current?.(),d.current=null,!m)return;const y=()=>{const{hasStart:v,hasEnd:w}=f.current,S=m.scrollWidth-m.clientWidth,E=S>1,R=Math.abs(m.scrollLeft);v&&m.style.setProperty(AW,E&&R>1?"1":"0"),w&&m.style.setProperty(MW,E&&R<S-1?"1":"0")};m.addEventListener("scroll",y,{passive:!0});const k=typeof ResizeObserver<"u"?new ResizeObserver(y):null;k?.observe(m),y(),d.current=()=>{m.removeEventListener("scroll",y),k?.disconnect()}},[]);return g.useMemo(()=>({transformHeaderCell(m,y){const{start:k,end:v}=f.current,w=z3(m.columns,y.key,k,v);if(!w)return m;const S=w.edge==="start"?{position:"sticky",insetInlineStart:`${w.offset}px`}:{position:"sticky",insetInlineEnd:`${w.offset}px`};return{...m,htmlProps:{...m.htmlProps,style:{...m.htmlProps.style,...S}},xstyle:[...m.xstyle,jh.cell,jh.headerCell,w.edge==="start"?Rh.start:Rh.end]}},transformBodyCell(m,y){const{start:k,end:v}=f.current,w=z3(m.columns,y.key,k,v);if(!w)return m;const S=w.edge==="start"?{insetInlineStart:`${w.offset}px`}:{insetInlineEnd:`${w.offset}px`};return{...m,htmlProps:{...m.htmlProps,style:{...m.htmlProps.style,...S}},xstyle:[...m.xstyle,jh.cell,jh.bodyCell,w.edge==="start"?Rh.start:Rh.end]}},transformScrollWrapper(m){if(!f.current.hasStart&&!f.current.hasEnd)return m;const y=m.htmlProps.ref,k=v=>{p(v),typeof y=="function"?y(v):y!=null&&(y.current=v)};return{...m,htmlProps:{...m.htmlProps,ref:k}}}}),[p])}const zW={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}},LW={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 eR({variant:e="neutral",label:t,icon:r,xstyle:s,className:o,style:l,ref:u,...f}){const d=typeof t=="number"?String(t):typeof t=="string"&&t.length>0?t:void 0;return x.jsxs("span",{ref:u,...ye(fe("badge",{variant:e}),de(zW.base,LW[e],s),o,l),title:d,...f,children:[r,x.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:t})]})}eR.displayName="Badge";const Ah={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 DW(e){try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"}catch{return!1}}function OW({isOpen:e,onOpenChange:t,onCreated:r}){const{t:s}=Qt(),o=Ws(),l=qr(),u=g.useRef(null),[f,d]=g.useState(""),p=cr({mutationFn:zG,onSuccess:k=>{if(!k.ok){o({body:s(rd(k.error.code)),type:"error",uniqueID:`capture-error-${k.error.code}`}),k.error.code==="CAPTURE_ALREADY_EXISTS"&&d(""),u.current?.focus();return}l.invalidateQueries({queryKey:Pn.all}),o({body:s("captures.captureAdded"),uniqueID:"capture-added"}),r(k.data)}});g.useEffect(()=>{e&&(d(""),requestAnimationFrame(()=>{u.current?.focus()}))},[e]);const m=k=>{const v=k.clipboardData.getData("text/plain").trim();k.preventDefault(),v&&d(v)},y=k=>{if(!(k.key!=="Enter"||p.isPending)&&(k.preventDefault(),!!f)){if(!DW(f)){o({body:s("captures.invalidUrl"),type:"error",uniqueID:"invalid-capture-url"});return}p.mutate({url:f})}};return x.jsx(Ad,{isOpen:e,onOpenChange:t,width:620,padding:4,purpose:"form","aria-label":s("captures.addCapture"),children:x.jsx(Ks,{ref:u,role:"button",tabIndex:0,"aria-label":s("captures.pasteLink"),padding:8,variant:"transparent",xstyle:Ah.dropZone,onClick:()=>{u.current?.focus()},onPaste:m,onKeyDown:y,children:x.jsx(We,{hAlign:"center",vAlign:"center",gap:4,xstyle:Ah.content,children:f?x.jsxs(x.Fragment,{children:[x.jsx(dx,{href:f,isStandalone:!0,size:"lg",display:"block",weight:"semibold",maxLines:3,target:"_blank",xstyle:Ah.urlLink,children:f}),p.isPending?x.jsx(Je,{type:"supporting",children:s("captures.capturing")}):x.jsxs(Tt,{gap:2,vAlign:"center",hAlign:"center",children:[x.jsx(Ep,{keys:"enter",xstyle:Ah.enterKey}),x.jsx(Je,{type:"supporting",children:s("captures.enterToCapture")})]})]}):x.jsxs(Tt,{gap:2,vAlign:"center",hAlign:"center",wrap:"wrap",children:[x.jsx(Ep,{keys:"mod+v"}),x.jsx(Je,{type:"supporting",children:s("captures.toPaste")})]})})})})}const D3={noteButton:{kzqmXN:"xh8yej3",kjj79g:"x1nhvcw1",k9WMMc:"x1yc453h",$$css:!0},noteInput:{k7Eaqz:"xeuugli",$$css:!0}};function IW({capture:e}){const{t}=Qt(),r=Ws(),s=qr(),[o,l]=g.useState(!1),[u,f]=g.useState(e.userNote??""),d=cr({mutationFn:p=>DG(e.id,p),onSuccess:p=>{if(!p.ok){r({body:t(rd(p.error.code)),type:"error"});return}f(p.data.userNote??""),l(!1),s.invalidateQueries({queryKey:Pn.all})}});if(o){const p=()=>{if(d.isPending||u===(e.userNote??"")){l(!1);return}d.mutate(u)};return x.jsx(Ua,{label:t("captures.note"),isLabelHidden:!0,size:"sm",value:u,onChange:f,onEnter:p,onBlur:p,hasAutoFocus:!0,isLoading:d.isPending,width:"100%",containerXstyle:D3.noteInput})}return x.jsx(yt,{label:e.userNote||t("captures.addNote"),variant:"ghost",size:"sm",xstyle:D3.noteButton,onClick:()=>{f(e.userNote??""),l(!0)}})}const _W={urlLink:{kzqmXN:"xh8yej3",$$css:!0}},qW={"--table-sticky-background":"var(--color-background-surface)"};function O3(e,t){return t===void 0?e:`${e} (${t})`}function PW(){const{t:e}=Qt(),t=yc(),r=qr(),s=Ws(),[o,l]=g.useState("all"),[u,f]=g.useState(!1),[d,p]=g.useState(null),m=NW({endKeys:["actions"]}),y=Ka({queryKey:Pn.list(o),queryFn:()=>AG(o)}),k=Ka({queryKey:Pn.counts(),queryFn:MG}),v=cr({mutationFn:k6,onSuccess:T=>{s(T.ok?{body:e("captures.recaptureStarted"),uniqueID:"recapture-started"}:{body:e(rd(T.error.code)),type:"error",uniqueID:T.error.code})}}),w=cr({mutationFn:LG,onSuccess:T=>{if(!T.ok){s({body:e(rd(T.error.code)),type:"error",uniqueID:T.error.code}),p(null);return}r.invalidateQueries({queryKey:Pn.all}),s({body:e("captures.captureDeleted"),uniqueID:"capture-deleted"}),p(null)}}),S=()=>{r.invalidateQueries({queryKey:Pn.list(o)})},E=g.useMemo(()=>[{key:"url",header:e("captures.url"),width:Yh(3),renderCell:T=>x.jsx(dx,{href:T.url,isStandalone:!0,display:"block",maxLines:1,target:"_blank",tooltip:T.url,xstyle:_W.urlLink,children:T.url})},{key:"title",header:e("captures.title"),width:Yh(2),renderCell:T=>x.jsx(Je,{maxLines:1,children:T.title??""})},{key:"note",header:e("captures.note"),width:Yh(2),renderCell:T=>x.jsx(IW,{capture:T})},{key:"updatedAt",header:e("captures.updatedAt"),width:Ro(160),renderCell:T=>x.jsx(Je,{color:"secondary",children:T.updatedAt})},{key:"createdAt",header:e("captures.createdAt"),width:Ro(160),renderCell:T=>x.jsx(Je,{color:"secondary",children:T.createdAt})},{key:"actions",header:"",width:Ro(184),align:"end",renderCell:T=>x.jsxs(Tt,{gap:1,hAlign:"end",children:[x.jsx(_r,{label:e("captures.viewDetails"),tooltip:e("captures.viewDetails"),icon:x.jsx(xj,{}),size:"sm",variant:"ghost",onClick:()=>{t(`/library/captures/${T.id}`)}}),x.jsx(_r,{label:e("captures.viewJobs"),tooltip:e("captures.viewJobs"),icon:x.jsx($P,{}),size:"sm",variant:"ghost",onClick:()=>{t(`/library/captures/${T.id}/jobs`)}}),x.jsx(_r,{label:e("captures.recapture"),tooltip:e("captures.recapture"),icon:x.jsx(uj,{}),size:"sm",variant:"ghost",onClick:()=>{v.mutate(T.id)}}),x.jsx(Rx,{label:`${e("captures.delete")} ${T.url}`,isOpen:d?.id===T.id,onOpenChange:A=>{p(A?T:null)},content:x.jsxs(We,{gap:3,children:[x.jsx(Je,{type:"label",children:e("captures.deleteCaptureTitle")}),x.jsxs(Tt,{gap:2,hAlign:"end",children:[x.jsx(yt,{label:e("captures.cancel"),size:"sm",variant:"ghost",onClick:()=>{p(null)}}),x.jsx(yt,{label:e("captures.delete"),size:"sm",variant:"destructive",isLoading:w.isPending&&d?.id===T.id,onClick:()=>{w.mutate(T.id)}})]})]}),children:x.jsx(_r,{label:e("captures.delete"),tooltip:e("captures.delete"),icon:x.jsx(yj,{}),size:"sm",variant:"ghost"})})]})}],[w,d,t,v,e]),R=y.data??[],C=k.data;return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsxs(Tt,{gap:2,vAlign:"center",children:[x.jsx(_r,{label:e("captures.refresh"),tooltip:e("captures.refresh"),icon:x.jsx(px,{}),size:"sm",variant:"ghost",onClick:S}),x.jsx(yt,{label:e("captures.addCapture"),size:"sm",variant:"primary",onClick:()=>{f(!0)}})]})}),x.jsxs(We,{gap:5,children:[x.jsxs(R6,{label:e("captures.captureFilter"),size:"sm",value:o,onChange:T=>{l(T)},children:[x.jsx(lb,{value:"all",label:O3(e("captures.allCaptures"),C?.all)}),x.jsx(lb,{value:"no-successful",label:O3(e("captures.noCapturedContent"),C?.noSuccessful)})]}),R.length===0?x.jsx(T6,{startIcon:xx,centerIcon:gj,endIcon:GP,title:e("captures.emptyTitle"),description:e("captures.emptyDescription"),actions:x.jsx(yt,{label:e("captures.addCapture"),size:"sm",variant:"primary",icon:x.jsx(mj,{}),onClick:()=>{f(!0)}})}):x.jsx(Nx,{data:R,columns:E,idKey:"id",hasHover:!0,density:"compact",plugins:{stickyColumns:m},style:qW})]}),x.jsx(OW,{isOpen:u,onOpenChange:f,onCreated:()=>{f(!1)}})]})}const tR=Symbol("MarkdownAstLegacyCodeLanguage");function BW(e,t){return t===e.lang||Object.defineProperty(e,tR,{configurable:!1,enumerable:!0,value:t,writable:!1}),e}function nR(e){const t=e[tR];return t===void 0?e.lang:t}function HW(e,t,r){const s=o=>{if(o.type===t&&r(o),"children"in o)for(const l of o.children)s(l)};s(e)}function Md(e,t=r=>r.source??""){let r="";for(const s of e)switch(s.type){case"text":case"inlineCode":case"inlineMath":r+=s.value;break;case"strong":case"emphasis":case"delete":case"link":r+=Md(s.children,t);break;case"image":r+=s.alt;break;case"citation":case"break":break;case"extension":r+=t(s);break}return r}const I3=new Map,FW=/\b(const|let|var|function|class|if|else|for|while|return|import|export|from|default|async|await|try|catch|throw|new|typeof|instanceof|interface|type|enum|extends|implements|switch|case|break|continue|do|in|of|void|null|undefined|true|false|this|super|yield|delete|static|public|private|protected|readonly|abstract|as|is|keyof|declare|module|namespace|require)\b/,UW=/\b(def|class|if|elif|else|for|while|return|import|from|as|with|try|except|raise|True|False|None|and|or|not|in|is|lambda|yield|async|await|pass|break|continue|del|global|nonlocal|assert|finally|print|self|cls)\b/,VW=/\b(if|then|else|elif|fi|for|do|done|while|until|case|esac|function|in|select|return|exit|local|export|source|alias|unalias|readonly|shift|eval|exec|set|unset|trap|wait|read|echo|printf|test|true|false)\b/,GW=/\b(important|inherit|initial|unset|revert|auto|none)\b/,KW=/\b(function|class|if|else|elseif|for|foreach|while|return|echo|public|private|protected|static|new|try|catch|throw|namespace|use|require|require_once|include|include_once|extends|implements|interface|abstract|final|const|var|true|false|null|array|isset|unset|empty|list|match|enum|switch|case|break|continue|do|yield|fn)\b/,WW=/\b(function|class|if|else|for|foreach|while|return|echo|public|private|protected|static|new|try|catch|throw|namespace|use|require|include|extends|implements|interface|abstract|final|const|shape|vec|dict|keyset|async|await|concurrent|enum|type|newtype|tuple|inout)\b/;function rR(e){const t=I3.get(e);if(t!==void 0)return t;const r=YW(e);return I3.set(e,r),r}function YW(e){const t=XW(e);return t?{defaultType:t.defaultType,patterns:t.patterns.map(r=>{const s=r.regex.flags.replace(/[gy]/g,"")+"y";return{...r,anchored:new RegExp(r.regex.source,s)}})}:null}function XW(e){switch(e){case"typescript":case"javascript":case"tsx":case"jsx":case"ts":case"js":return{defaultType:"variable",patterns:[{type:"comment",regex:/\/\*[\s\S]*?\*\//},{type:"comment",regex:/\/\/[^\n]*/},{type:"string",regex:/`(?:[^`\\]|\\.)*`/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"constant",regex:/@[\w]+/},{type:"number",regex:/\b0[xX][0-9a-fA-F_]+\b/},{type:"number",regex:/\b0[bB][01_]+\b/},{type:"number",regex:/\b0[oO][0-7_]+\b/},{type:"number",regex:/\b\d[\d_]*\.?[\d_]*(?:[eE][+-]?\d+)?\b/},{type:"keyword",regex:FW},{type:"function",regex:/\b[a-zA-Z_$][\w$]*(?=\s*\()/},{type:"type",regex:/\b[A-Z][a-zA-Z0-9_]*\b/},{type:"operator",regex:/[+\-*/%=!<>&|^~?:]+/},{type:"punctuation",regex:/[{}()\[\];,.]/},{type:"variable",regex:/\b[a-zA-Z_$][\w$]*\b/}]};case"json":return{defaultType:"punctuation",patterns:[{type:"property",regex:/"(?:[^"\\]|\\.)*"(?=\s*:)/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"number",regex:/-?\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/},{type:"constant",regex:/\b(true|false|null)\b/},{type:"punctuation",regex:/[{}()\[\]:,]/}]};case"html":case"xml":case"svg":return{defaultType:"variable",patterns:[{type:"comment",regex:/<!--[\s\S]*?-->/},{type:"keyword",regex:/<!DOCTYPE[^>]*>/i},{type:"tag",regex:/<\/[a-zA-Z][\w-]*\s*>/},{type:"tag",regex:/<[a-zA-Z][\w-]*/},{type:"tag",regex:/\/?>/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"attribute",regex:/\b[a-zA-Z_:][\w:.-]*(?=\s*=)/},{type:"operator",regex:/=/}]};case"css":case"scss":case"less":return{defaultType:"variable",patterns:[{type:"comment",regex:/\/\*[\s\S]*?\*\//},{type:"comment",regex:/\/\/[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"variable",regex:/--[a-zA-Z_-][\w-]*/},{type:"number",regex:/-?\b\d+\.?\d*(?:px|em|rem|%|vh|vw|vmin|vmax|ch|ex|deg|rad|turn|s|ms|fr)?\b/},{type:"constant",regex:/#[0-9a-fA-F]{3,8}\b/},{type:"keyword",regex:GW},{type:"keyword",regex:/@[a-zA-Z][\w-]*/},{type:"tag",regex:/[.#][a-zA-Z_-][\w-]*/},{type:"keyword",regex:/::?[a-zA-Z][\w-]*/},{type:"function",regex:/\b[a-zA-Z_-][\w-]*(?=\s*\()/},{type:"property",regex:/[a-zA-Z_-][\w-]*(?=\s*:)/},{type:"punctuation",regex:/[{}()\[\];:,]/},{type:"operator",regex:/[+~>*=|^$]/}]};case"python":case"py":return{defaultType:"variable",patterns:[{type:"string",regex:/"""[\s\S]*?"""/},{type:"string",regex:/'''[\s\S]*?'''/},{type:"string",regex:/f"(?:[^"\\]|\\.)*"/},{type:"string",regex:/f'(?:[^'\\]|\\.)*'/},{type:"comment",regex:/#[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"constant",regex:/@[\w.]+/},{type:"number",regex:/\b0[xX][0-9a-fA-F_]+\b/},{type:"number",regex:/\b0[bB][01_]+\b/},{type:"number",regex:/\b0[oO][0-7_]+\b/},{type:"number",regex:/\b\d[\d_]*\.?[\d_]*(?:[eE][+-]?\d+)?j?\b/},{type:"keyword",regex:UW},{type:"function",regex:/\b[a-zA-Z_][\w]*(?=\s*\()/},{type:"type",regex:/\b[A-Z][a-zA-Z0-9_]*\b/},{type:"operator",regex:/[+\-*/%=!<>&|^~@:]+/},{type:"punctuation",regex:/[{}()\[\];,.]/},{type:"variable",regex:/\b[a-zA-Z_][\w]*\b/}]};case"bash":case"sh":case"zsh":case"shell":return{defaultType:"variable",patterns:[{type:"comment",regex:/#[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'[^']*'/},{type:"variable",regex:/\$\{[^}]+\}/},{type:"variable",regex:/\$[a-zA-Z_][\w]*/},{type:"variable",regex:/\$[0-9@#?*!$-]/},{type:"number",regex:/\b\d+\b/},{type:"keyword",regex:VW},{type:"function",regex:/\b[a-zA-Z_][\w]*(?=\s*\()/},{type:"operator",regex:/[|&<>;!]+/},{type:"punctuation",regex:/[{}()\[\]]/}]};case"php":return{defaultType:"variable",patterns:[{type:"comment",regex:/\/\*[\s\S]*?\*\//},{type:"comment",regex:/\/\/[^\n]*/},{type:"comment",regex:/#[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"variable",regex:/\$[a-zA-Z_][\w]*/},{type:"number",regex:/\b0[xX][0-9a-fA-F]+\b/},{type:"number",regex:/\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/},{type:"keyword",regex:KW},{type:"function",regex:/\b[a-zA-Z_][\w]*(?=\s*\()/},{type:"type",regex:/\b[A-Z][a-zA-Z0-9_]*\b/},{type:"operator",regex:/[+\-*/%=!<>&|^~?:.]+/},{type:"constant",regex:/@[\w]+/},{type:"punctuation",regex:/[{}()\[\];,.]/}]};case"hack":return{defaultType:"variable",patterns:[{type:"comment",regex:/\/\*[\s\S]*?\*\//},{type:"comment",regex:/\/\/[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"variable",regex:/\$[a-zA-Z_][\w]*/},{type:"number",regex:/\b0[xX][0-9a-fA-F]+\b/},{type:"number",regex:/\b\d+\.?\d*(?:[eE][+-]?\d+)?\b/},{type:"keyword",regex:WW},{type:"type",regex:/\b[A-Z][a-zA-Z0-9_]*\b/},{type:"function",regex:/\b[a-zA-Z_][\w]*(?=\s*\()/},{type:"property",regex:new RegExp("(?<=->|::)\\b[a-zA-Z_][\\w]*\\b")},{type:"operator",regex:/[+\-*/%=!<>&|^~?:.]+/},{type:"constant",regex:/<<[\w]+/},{type:"punctuation",regex:/[{}()\[\];,.]/}]};case"yaml":case"yml":return{defaultType:"variable",patterns:[{type:"comment",regex:/#[^\n]*/},{type:"string",regex:/"(?:[^"\\]|\\.)*"/},{type:"string",regex:/'(?:[^'\\]|\\.)*'/},{type:"constant",regex:/\b(true|false|yes|no|on|off|null|~)\b/i},{type:"variable",regex:/[&*][\w]+/},{type:"type",regex:/!!\w+/},{type:"number",regex:/\b-?\d+\.?\d*(?:[eE][+-]?\d+)?\b/},{type:"property",regex:/^[ \t]*[\w][\w ./-]*(?=\s*:)/m},{type:"keyword",regex:/---/},{type:"keyword",regex:/\.\.\./},{type:"operator",regex:/[:|>\-?]/},{type:"punctuation",regex:/[{}()\[\],]/},{type:"variable",regex:/\b[a-zA-Z_][\w]*\b/}]};case"markdown":case"md":return{defaultType:"variable",patterns:[{type:"keyword",regex:/^```[\w]*$/m},{type:"keyword",regex:/^#{1,6}\s+.*/m},{type:"keyword",regex:/^---$/m},{type:"keyword",regex:/^\*\*\*$/m},{type:"string",regex:/\*\*(?:[^*]|\*(?!\*))+\*\*/},{type:"string",regex:/\*(?:[^*])+\*/},{type:"constant",regex:/`[^`]+`/},{type:"function",regex:/\[(?:[^\]])+\]\([^)]+\)/},{type:"comment",regex:/^>\s+.*/m},{type:"operator",regex:/^\s*[-*+]\s/m},{type:"number",regex:/^\s*\d+\.\s/m}]};default:return null}}const _3=2e3,ZW=800;async function QW(){return typeof scheduler<"u"&&typeof scheduler.yield=="function"?scheduler.yield():new Promise(e=>setTimeout(e,0))}function aR(e,t,r,s){const o=[];let l=r;const u=Math.min(s,e.length);for(;l<u;){let f=!1;for(const d of t.patterns){d.anchored.lastIndex=l;const p=d.anchored.exec(e);if(p&&p.index===l&&p[0].length>0){d.type!==t.defaultType&&o.push({type:d.type,start:l-r,end:l-r+p[0].length}),l+=p[0].length,f=!0;break}}f||l++}return o}function JW(e,t){const r=rR(t);if(!r)return[];const s=[];let o=0;for(let l=0;l<=e.length;l++)(l===e.length||e[l]===`
|
|
95
|
-
`)&&(s.push(aR(e,r,o,l)),o=l+1);return s}async function eY(e,t,r){const s=rR(t);if(!s)return[];const o=[];let l=0,u=0;for(let f=0;f<=e.length;f++)if((f===e.length||e[f]===`
|
|
96
|
-
`)&&(o.push(aR(e,s,l,f)),u+=f-l+1,l=f+1,u>=ZW&&f<e.length)){if(r?.aborted)return o;u=0,await QW()}return o}function tY(e,t){const r=[0];for(let l=0;l<t.length;l++)t[l]===`
|
|
97
|
-
`&&r.push(l+1);const s=Array.from({length:r.length},()=>[]);let o=0;for(const l of e){for(;o<r.length-1&&l.start>=r[o+1];)o++;const u=r[o];s[o].push({type:l.type,start:l.start-u,end:l.end-u})}return s}const nY=`:root {
|
|
98
|
-
${Object.entries(s0).map(([e,t])=>` ${e}: ${t};`).join(`
|
|
99
|
-
`)}
|
|
100
|
-
}`,rY=`
|
|
101
|
-
${nY}
|
|
102
|
-
|
|
103
|
-
.astryx-code-block code::highlight(astryx-keyword),
|
|
104
|
-
.astryx-codeeditor code::highlight(astryx-keyword) { color: var(--color-syntax-keyword); }
|
|
105
|
-
.astryx-code-block code::highlight(astryx-string),
|
|
106
|
-
.astryx-codeeditor code::highlight(astryx-string) { color: var(--color-syntax-string); }
|
|
107
|
-
.astryx-code-block code::highlight(astryx-comment),
|
|
108
|
-
.astryx-codeeditor code::highlight(astryx-comment) { color: var(--color-syntax-comment); }
|
|
109
|
-
.astryx-code-block code::highlight(astryx-number),
|
|
110
|
-
.astryx-codeeditor code::highlight(astryx-number) { color: var(--color-syntax-number); }
|
|
111
|
-
.astryx-code-block code::highlight(astryx-function),
|
|
112
|
-
.astryx-codeeditor code::highlight(astryx-function) { color: var(--color-syntax-function); }
|
|
113
|
-
.astryx-code-block code::highlight(astryx-type),
|
|
114
|
-
.astryx-codeeditor code::highlight(astryx-type) { color: var(--color-syntax-type); }
|
|
115
|
-
.astryx-code-block code::highlight(astryx-tag),
|
|
116
|
-
.astryx-codeeditor code::highlight(astryx-tag) { color: var(--color-syntax-tag); }
|
|
117
|
-
.astryx-code-block code::highlight(astryx-attribute),
|
|
118
|
-
.astryx-codeeditor code::highlight(astryx-attribute) { color: var(--color-syntax-attribute); }
|
|
119
|
-
.astryx-code-block code::highlight(astryx-property),
|
|
120
|
-
.astryx-codeeditor code::highlight(astryx-property) { color: var(--color-syntax-property); }
|
|
121
|
-
.astryx-code-block code::highlight(astryx-operator),
|
|
122
|
-
.astryx-codeeditor code::highlight(astryx-operator) { color: var(--color-syntax-operator); }
|
|
123
|
-
.astryx-code-block code::highlight(astryx-constant),
|
|
124
|
-
.astryx-codeeditor code::highlight(astryx-constant) { color: var(--color-syntax-constant); }
|
|
125
|
-
.astryx-code-block code::highlight(astryx-punctuation),
|
|
126
|
-
.astryx-codeeditor code::highlight(astryx-punctuation) { color: var(--color-syntax-punctuation); }
|
|
127
|
-
.astryx-code-block code::highlight(astryx-variable),
|
|
128
|
-
.astryx-codeeditor code::highlight(astryx-variable) { color: var(--color-syntax-variable); }
|
|
129
|
-
|
|
130
|
-
/* Span-based fallback classes — used when highlightMode='spans' or
|
|
131
|
-
when the CSS Custom Highlight API is not available. */
|
|
132
|
-
.astryx-token-keyword { color: var(--color-syntax-keyword); }
|
|
133
|
-
.astryx-token-string { color: var(--color-syntax-string); }
|
|
134
|
-
.astryx-token-comment { color: var(--color-syntax-comment); }
|
|
135
|
-
.astryx-token-number { color: var(--color-syntax-number); }
|
|
136
|
-
.astryx-token-function { color: var(--color-syntax-function); }
|
|
137
|
-
.astryx-token-type { color: var(--color-syntax-type); }
|
|
138
|
-
.astryx-token-tag { color: var(--color-syntax-tag); }
|
|
139
|
-
.astryx-token-attribute { color: var(--color-syntax-attribute); }
|
|
140
|
-
.astryx-token-property { color: var(--color-syntax-property); }
|
|
141
|
-
.astryx-token-operator { color: var(--color-syntax-operator); }
|
|
142
|
-
.astryx-token-constant { color: var(--color-syntax-constant); }
|
|
143
|
-
.astryx-token-punctuation { color: var(--color-syntax-punctuation); }
|
|
144
|
-
.astryx-token-variable { color: var(--color-syntax-variable); }
|
|
145
|
-
`;let q3=!1;function zx(){if(q3||typeof document>"u")return;const e=document.createElement("style");e.setAttribute("data-astryx-highlight-styles",""),e.textContent=rY,document.head.appendChild(e),q3=!0}const aY=["keyword","string","comment","number","function","type","tag","attribute","property","operator","constant","punctuation","variable"],P3=new Set(aY);let Mh=null;function sY(e){if(P3.has(e)||(P3.add(e),zx(),typeof document>"u"))return;if(!Mh){const s=document.createElement("style");if(s.setAttribute("data-astryx-highlight-dynamic",""),document.head.appendChild(s),Mh=s.sheet??null,!Mh)return}const t=CSS.escape(`astryx-${e}`),r=`var(${CSS.escape(`--color-syntax-${e}`)}, currentColor)`;try{Mh.insertRule(`.astryx-code-block code::highlight(${t}), .astryx-codeeditor code::highlight(${t}) { color: ${r}; }`)}catch{}}function oY(){const e=new Map;return t=>{let r=e.get(t);if(r)return r;sY(t);const s=`astryx-${t}`;return r=CSS.highlights.get(s),r||(r=new Highlight,CSS.highlights.set(s,r)),e.set(t,r),r}}function sR(e,t,r,s){if(t.length===0)return;const o=e.firstChild;if(!o||o.nodeType!==Node.TEXT_NODE)return;const l=o.length;for(const u of t){if(u.start>=l||u.end<=0)continue;const f=Math.min(u.start,l),d=Math.min(u.end,l),p=s(u.type);try{const m=new Range;m.setStart(o,f),m.setEnd(o,d),p.add(m),r.push({range:m,highlight:p})}catch{}}}function c1(e){for(const{range:t,highlight:r}of e)r.delete(t)}function iY(e,t,r,s){const o=[],l=e.querySelectorAll("[data-line]");for(let u=0;u<l.length;u++){const f=r+u,d=t[f];d&&d.length>0&&sR(l[u],d,o,s)}return o}function lY(e,t){zx();const r=oY(),s=[],o=[];let l=0;for(let m=0;m<e.children.length;m++){const y=e.children[m],k=y.querySelectorAll("[data-line]");k.length>0&&y.tagName==="DIV"&&!y.hasAttribute("data-line")&&(s.push(y),o.push(l),l+=k.length)}if(s.length===0){const m=[],y=e.querySelectorAll("[data-line]");for(let k=0;k<y.length;k++){const v=t[k];v&&v.length>0&&sR(y[k],v,m,r)}return()=>c1(m)}const u=new Map,f=new Map;function d(m,y){if(u.has(m))return;const k=iY(m,t,o[y],r);u.set(m,k)}function p(m){const y=u.get(m);y&&(c1(y),u.delete(m))}for(let m=0;m<s.length;m++){const y=s[m],k=w=>{w.skipped?p(y):d(y,m)};y.addEventListener("contentvisibilityautostatechange",k),f.set(y,k);const v=y;typeof v.checkVisibility=="function"?v.checkVisibility({checkVisibilityCSS:!0,contentVisibilityAuto:!0})&&d(y,m):m<5&&d(y,m)}return function(){for(const[y,k]of f)y.removeEventListener("contentvisibilityautostatechange",k);f.clear();for(const y of u.values())c1(y);u.clear()}}const cY={card:{kaIpWk:"xh6dtrn",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"x14i3s5s",$$css:!0},section:{kaIpWk:"x2u8bby",kMzoRj:"xc342km",ksu8eU:"xng3xce",kVAM5u:"x9r1u3d","--color-syntax-background":"x1mtvhk1",$$css:!0}},uY={"--_codeblock-gutter-width":"xtk08jq",$$css:!0},ak={width:e=>[{kzqmXN:e!=null?"x5lhr3w":e,k7Eaqz:(e==="fit-content"?"min(100%, 400px)":null)!=null?"xkj4a21":e==="fit-content"?"min(100%, 400px)":null,ks0D6T:(e==="fit-content"?"100%":null)!=null?"xf68679":e==="fit-content"?"100%":null,$$css:!0},{"--x-width":(t=>typeof t=="number"?t+"px":t??void 0)(e),"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e==="fit-content"?"min(100%, 400px)":null),"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e==="fit-content"?"100%":null)}],gutterWidth:e=>[uY,{"--x---_codeblock-gutter-width":`${e}ch`!=null?`${e}ch`:void 0}]},wr={root:{kVAEAm:"x1n2onr6",kHBbk8:"xc8icb0",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kogj98:"x1ghz6dp",kWkggS:"xzyc27v",kVQacm:"xb3r6kr",$$css:!0},header:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",kmVPX3:"x1717udv",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kVVagm:"xln7xf2",k9WMMc:"x1yc453h",$$css:!0},collapseChevronIcon:{k1ekBW:"x11xpdln",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0},collapseChevronExpanded:{k3aq6I:"x1iffjtl",$$css:!0},headerCollapsible:{kkrTdU:"x1ypdohk x16khyan",kfSwDN:"x87ps6o",$$css:!0},code:{k1xSpc:"x1lliihq",kUk6DE:"x98rzlu",k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",kogj98:"x1ghz6dp",kMv6JI:"x9m5x89",kMwMTN:"xdfisg",kKi2Bq:"xeq4nuv",khDVqt:"x1sdyfia",kTgw9:"x1lldw8n",kHjlTd:"x1h4wwuj",$$css:!0},codeWrapped:{khDVqt:"x126k92a",kTgw9:"x1yn0g08",kHjlTd:"x1mzt3pk",$$css:!0},codeNumbered:{kVAEAm:"x1n2onr6",k5JduY:"x1s928wv",kwXMNM:"x1j6awrg",kSy8m5:"xd54j2p",kc1e00:"x1km86hw",kkgrvl:"xkj6t0a",kQlJh0:"x1p96cux",k6vLHU:"xvsnedh",kkQ525:"xnnzo76",kloYau:"x2q1x1w",$$css:!0},sizeSm:{kGuDYH:"x141an7d",$$css:!0},sizeMd:{kGuDYH:"xp03k98",$$css:!0},copyButton:{kMwMTN:"x1mjzq1q",$$css:!0},copyButtonAbsolute:{kVAEAm:"x10l6tqk",k87sOh:"xctzyg",kt4wiu:"x72tfeb",$$css:!0}},dY=20,fY=100,B3=g.memo(function({lines:t,startIndex:r,highlightSet:s,renderLineContent:o,lineNumbers:l}){return x.jsx(x.Fragment,{children:t.map((u,f)=>{const d=r+f;return x.jsx("div",{"data-line":d+1,...{0:{className:"x17iicif"},2:{className:"x17iicif xrvj5dj x1xx4m37 xf5zn4v x46gnpd x17gn2l9 x19ds33d x1wnbjh8 xtkarl4 x1rbqspl x3nzp0f"},1:{className:"x17iicif xgcxg3y x1ng9b9t x1pzlopt"},3:{className:"x17iicif xrvj5dj x1xx4m37 xf5zn4v x46gnpd x17gn2l9 x19ds33d x1wnbjh8 xtkarl4 x1rbqspl x3nzp0f xgcxg3y x1ng9b9t x1pzlopt"}}[!!l<<1|!!(s?.has(d+1)??!1)<<0],children:o(u,d)},d)})})});function oR(e,t,r,s,o=dY){if(o=Math.max(1,Math.floor(o)),e.length<fY)return x.jsx(B3,{lines:e,startIndex:0,highlightSet:t,renderLineContent:r,lineNumbers:s});const l=[];for(let u=0;u<e.length;u+=o){const f=Math.min(u+o,e.length),d=e.slice(u,f),p=`${d.length}lh`;l.push(x.jsx("div",{...ye({className:"xb5mbof"},{style:{containIntrinsicBlockSize:`auto ${p}`}}),children:x.jsx(B3,{lines:d,startIndex:u,highlightSet:t,renderLineContent:r,lineNumbers:s})},u))}return l}function iR(){return typeof CSS<"u"&&"highlights"in CSS&&typeof Highlight<"u"}function hY(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}function pY(e,t,r){const[s,o]=g.useState(null),l=g.useMemo(()=>r?tY(r(e,t),e):e.length>=_3?null:JW(e,t),[e,t,r]);return g.useEffect(()=>{if(e.length<_3||r)return;const u=new AbortController;async function f(){try{const d=await eY(e,t,u.signal);u.signal.aborted||o({code:e,language:t,tokens:d})}catch{u.signal.aborted||o({code:e,language:t,tokens:[]})}}return f(),()=>{u.abort()}},[e,t,r]),l??(s?.code===e&&s.language===t?s.tokens:[])}function xY(e,t){if(t.length===0)return e||"";const r=[];let s=0;for(const o of t){o.start>s&&r.push(e.slice(s,o.start));const l=Math.min(o.end,e.length);r.push(x.jsx("span",{className:`astryx-token-${o.type} xds-token-${o.type}`,children:e.slice(o.start,l)},`${o.start}-${o.type}`)),s=l}return s<e.length&&r.push(e.slice(s)),r.length>0?r:""}function gY({lines:e,tokenLines:t,highlightSet:r,isWrapped:s,sizeStyle:o,hasLineNumbers:l,maxDigits:u}){g.useInsertionEffect(()=>{zx()},[]);const f=g.useCallback((d,p)=>{const m=t[p]??[];return x.jsx("span",{className:"xeuugli",children:xY(d,m)})},[t]);return x.jsx("code",{...de(wr.code,o,s&&wr.codeWrapped,l&&wr.codeNumbered,l&&ak.gutterWidth(u)),children:oR(e,r,f,l)})}function mY({lines:e,tokenLines:t,highlightSet:r,isWrapped:s,sizeStyle:o,hasLineNumbers:l,maxDigits:u}){const f=g.useRef(null);g.useEffect(()=>{if(!iR())return;zx();const p=f.current;if(!(!p||t.length===0))return lY(p,t)},[t]);const d=g.useCallback(p=>p||"",[]);return x.jsx("code",{ref:f,...de(wr.code,o,s&&wr.codeWrapped,l&&wr.codeNumbered,l&&ak.gutterWidth(u)),children:oR(e,r,d,l)})}function lR({code:e,language:t="plaintext",title:r,hasLanguageLabel:s=!0,hasLineNumbers:o=!1,highlightLines:l,hasCopyButton:u=!0,onCopy:f,isWrapped:d=!1,maxHeight:p,isCollapsible:m=!1,collapsibleThreshold:y=10,size:k="md",width:v="fit-content",container:w="card",tokenizer:S,highlightMode:E="auto",syntaxTheme:R,xstyle:C,className:T,style:A,ref:N,...L}){const D=Nt(),{copy:j,isCopied:O}=B4({announce:D("@astryx.codeBlock.copied")}),M=E==="spans"||E==="auto"&&!iR()||E==="auto"&&hY(),H=g.useMemo(()=>{const he=e.split(`
|
|
146
|
-
`);return he.length>1&&he[he.length-1]===""&&he.pop(),he},[e]),F=pY(e,t,S),q=g.useMemo(()=>l?new Set(l):null,[l]),B=g.useCallback(async()=>{await j(e)&&f?.()},[e,j,f]),U=k==="sm"?wr.sizeSm:wr.sizeMd,_=String(H.length).length,P=s&&t!=="plaintext"?t:null,G=r!=null||P!=null,X=G&&m&&H.length>=y,Z=g.useMemo(()=>X?{}:null,[X]),[Q,K]=g.useState(null),ae=Z!=null&&Q===Z,I=g.useCallback(()=>{K(he=>he===Z?null:Z)},[Z]),ee=g.useId(),pe=g.useRef(null),ue=p!=null?{maxHeight:typeof p=="number"?`${p}px`:p}:void 0,ve=u?x.jsx(_r,{variant:"ghost",size:"sm",icon:x.jsx(ft,{icon:O?"check":"copy",size:"sm",color:"inherit"}),tooltip:D("@astryx.codeBlock.copyCode"),label:D(O?"@astryx.codeBlock.copied":"@astryx.codeBlock.copyCode"),onClick:he=>{he.stopPropagation(),B()},xstyle:[wr.copyButton,!G&&wr.copyButtonAbsolute],...fe("code-block-copy-button")}):null,xe=G?x.jsxs("div",{...ye(fe("code-block-header",{size:k,language:t,container:w}),{0:{className:"x78zum5 x6s0dn4 x1qughib x1pzlopt xzyc27v x7wzq59 x13vifvy x1vjfegm xce4md1"},1:{className:"x78zum5 x6s0dn4 x1qughib x1pzlopt xzyc27v x7wzq59 x13vifvy x1vjfegm xce4md1 x92x3c3 x1q0q8m5 xw8gpjh"}}[!!o<<0]),children:[x.jsx("div",{role:X?"button":void 0,tabIndex:X?0:void 0,"aria-expanded":X?!ae:void 0,"aria-controls":X?ee:void 0,"aria-label":X&&!r?.trim()&&!P?D("@astryx.codeBlock.code"):void 0,onClick:X?I:void 0,onKeyDown:X?he=>{(he.key==="Enter"||he.key===" ")&&(he.preventDefault(),I())}:void 0,...pn.focusVisible(wr.header,X&&wr.headerCollapsible),children:x.jsxs("span",{...ye(fe("code-block-title",{size:k,language:t}),{className:"x78zum5 x6s0dn4 x141an7d x9m5x89 x1e4wzip x1mjzq1q x1ghz6dp x1ltkj2j"}),children:[X&&x.jsx("span",{className:"x3nfvp2 x6s0dn4 xl56j7k x2lah0s x6jxa94 x1v9usgg xnur1sd xb3r6kr x1mjzq1q x1gbn2au x1aquc0h x12wqnr7 x128ha8g",children:x.jsx(ft,{icon:"chevronRight",size:"xsm",color:"inherit",xstyle:[wr.collapseChevronIcon,!ae&&wr.collapseChevronExpanded]})}),r,r&&P?" — ":"",P]})}),ve]}):null,$e=x.jsx("div",{ref:pe,tabIndex:0,role:"group","aria-label":P??D("@astryx.codeBlock.code"),...ye({className:"xw2csxc x1odjw0f"},{style:ue}),children:x.jsx("div",{...{0:{className:"x78zum5 x1pshirs"},1:{className:"x78zum5 x1pshirs x1ajqlyv"}}[!!(G&&!o)<<0],children:M?x.jsx(gY,{lines:H,tokenLines:F,highlightSet:q,isWrapped:d,sizeStyle:U,hasLineNumbers:o,maxDigits:_}):x.jsx(mY,{lines:H,tokenLines:F,highlightSet:q,isWrapped:d,sizeStyle:U,hasLineNumbers:o,maxDigits:_})})}),te=x.jsxs("pre",{ref:N,...ye(fe("code-block",{size:k,language:t,container:w}),de(wr.root,ak.width(v),cY[w],C),T,A),...L,children:[xe,X?x.jsx("div",{id:ee,inert:ae?!0:void 0,...{0:{className:"xrvj5dj x1tu4anv x1qn9uv2 x80gvsz xlr8y92"},1:{className:"xrvj5dj x1qn9uv2 x80gvsz xlr8y92 xihq33y"}}[!!ae<<0],children:x.jsx("div",{className:"xb3r6kr x2lwn1j",children:$e})}):$e,!G&&ve]});return R?x.jsx(cj,{theme:R,children:te}):te}lR.displayName="CodeBlock";const yY={base:{kMv6JI:"x9m5x89",kGuDYH:"xp03k98",kLWn49:"x15bjb6t",kWkggS:"xwmxj5m",kg3NbH:"x7a5moj",k8WAf4:"x1hp7d8q",kaIpWk:"xx3sua9",kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",$$css:!0}},bY={primary:{kMwMTN:"x1tgivj0",$$css:!0},secondary:{kMwMTN:"xv1l7n4",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}},kY={inherit:{kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",$$css:!0}};function sk({children:e,color:t="primary",size:r,xstyle:s,className:o,style:l,ref:u,...f}){return x.jsx("code",{ref:u,...f,...ye(fe("code",{color:t}),de(yY.base,bY[t],r&&kY[r],s),o,l),children:e})}sk.displayName="Code";const vY={root:{k2ei4v:"xtpqe59",kVhnKS:"x1t7ytsu",kGJrpR:"x14ydlgx",kZCmMZ:"x1rey3nv",kMwMTN:"xv1l7n4",kHjlTd:"x1mzt3pk",keTefX:"x1lziwak",k71WvV:"x14z9mp",keoZOQ:"xdj266r",k1K539:"xat24cr",$$css:!0}};function cR({children:e,cite:t,xstyle:r,className:s,style:o,ref:l,...u}){return x.jsxs("blockquote",{ref:l,...ye(fe("blockquote"),de(vY.root,r),s,o),...u,children:[e,Us(t)&&x.jsx("cite",{className:"x1lliihq xtbrsbv x141an7d x1ltkj2j x1j61x8r",children:t})]})}cR.displayName="Blockquote";function wY(e,t,r){if(e.length===0||t>e[e.length-1]){const s=[...e,t];for(;s.length>r;)s.shift();return s}return e}function SY(e,t,r,s){const o=t+e.length;if(r.length===0)return null;const l=r[0];if(o<=l)return null;const u=[];let f=t;f<l&&l<o&&(u.push({key:`settled-${s}`,text:e.slice(0,l-t),fading:!1}),f=l);for(let d=0;d<r.length;d++){const p=r[d],m=d+1<r.length?r[d+1]:o;if(p>=o||m<=f)continue;const y=Math.max(p,f),k=Math.min(m,o);y>=k||(u.push({key:`fade-${s}-b${p}`,text:e.slice(y-t,k-t),fading:!0}),f=k)}return u.length>0?u:null}const hi={label:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kXLuUW:"x11njtxf",kZKoxP:"x1grt7ep",kGuDYH:"x141an7d",k63SB2:"xv8on6e",kLWn49:"x1ltkj2j",kMwMTN:"xv1l7n4",kaIpWk:"xh6dtrn",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"x14i3s5s",kg3NbH:"xf314gf",keTefX:"xladpz9",kybGjl:"x1hl2dhg",k1ekBW:"x1eaenvl",kIyJzY:"x2rcmwa",kAMwcw:"xlr8y92",ks0D6T:"x55n99s",kVQacm:"xb3r6kr",$$css:!0},labelWithIcon:{kZCmMZ:"x138rykx",$$css:!0},labelInteractive:{kkrTdU:"x1ypdohk x16khyan",$$css:!0},labelHover:{kWkggS:"xoevpu5",kMwMTN:"xv1l7n4 xo5jvnm",$$css:!0},number:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kXLuUW:"x1v0h343",kGuDYH:"x141an7d",k63SB2:"x2mo6ok",kLWn49:"x1ltkj2j",kMwMTN:"xv1l7n4",kWkggS:"xgcxg3y",kaIpWk:"xjspbzw",k7Eaqz:"x16asifk",kZKoxP:"x1grt7ep",kg3NbH:"x7a5moj",kybGjl:"x1hl2dhg",k1ekBW:"x15406qy",kIyJzY:"x2rcmwa",kAMwcw:"xlr8y92",$$css:!0},numberInteractive:{kkrTdU:"x1ypdohk x16khyan",$$css:!0},numberHover:{kWkggS:"xgcxg3y xoevpu5",$$css:!0}};function uR({ref:e,source:t,number:r,variant:s="label",xstyle:o,className:l,style:u,"data-testid":f,...d}){const p=Nt(),m=t.title??String(r),y=t.url!=null&&Hs(t.url)?t.url:void 0,k=t.icon!=null&&typeof t.icon!="string"?t.icon:null,v=t.src??(typeof t.icon=="string"?t.icon:void 0),w=k!=null||v!=null,S=y?"a":"span",E=y?"doc-noteref":"group",R=y?{href:y,target:"_blank",rel:"noopener noreferrer",title:m}:{title:m},C=e;return s==="number"?x.jsx(S,{...d,ref:C,role:E,"aria-label":p("@astryx.citation.label",{number:r,title:m}),"data-testid":f,...R,...ye(fe("citation",{variant:s}),de(hi.number,y!=null&&hi.numberHover,y!=null&&hi.numberInteractive,o),l,u),children:r}):x.jsxs(S,{...d,ref:C,role:E,"aria-label":p("@astryx.citation.label",{number:r,title:m}),"data-testid":f,...R,...ye(fe("citation",{variant:s}),de(hi.label,w&&hi.labelWithIcon,y!=null&&hi.labelHover,y!=null&&hi.labelInteractive,o),l,u),children:[w&&x.jsx("span",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x12xnipv x6b6gus xjspbzw x10xzikg x1litavf x1y0btm7 x14i3s5s xb3r6kr x2lah0s",children:k!=null?Ca(k,{size:"sm"}):x.jsx("img",{src:v,alt:"",className:"x1ad1g3v x9gl9lo"})}),x.jsx("span",{className:"xb3r6kr xlyipyv xuxw1ft xeuugli",children:m})]})}uR.displayName="Citation";const EY=/^(?:javascript:|data:|vbscript:)/i;function $Y(e){return e.replace(/[\x00-\x1f\x7f]/g,"").trim()}function Xa(e){return Hs(e)}function dR(e){const t=dC(e);return t===""?null:t}function fR(e){const t=$Y(e);return t!==""&&!EY.test(t)?t:null}const TY=Symbol("MarkdownTransformPluginName"),CY=Symbol("MarkdownTransformHasRenderer"),jY=Symbol("MarkdownTransformSourceUnchanged"),RY=Symbol("MarkdownTransformClaim"),AY=Symbol("MarkdownSourceLines"),hR=Symbol("MarkdownTransformTrusted");function MY(e){return Object.defineProperty(e,hR,{configurable:!1,enumerable:!1,value:!0,writable:!1}),e}const ok="@astryxdesign/core/MarkdownPluginEntry",pR=Symbol.for(ok);function ik(e){(e==null||typeof e!="object"||Object.getPrototypeOf(e)!==Object.prototype)&&cb("entries must come from a compatible createMarkdownPlugin()");const t=e,r=t[pR],s=r?.definition;return(Reflect.ownKeys(t).length!==3||typeof t.name!="string"||t.apiVersion!==1||!Object.isFrozen(t)||r==null||typeof r!="object"||Object.getPrototypeOf(r)!==Object.prototype||Reflect.ownKeys(r).length!==3||!Object.isFrozen(r)||r.kind!==ok||r.apiVersion!==1||s==null||typeof s!="object"||!Object.isFrozen(s)||s.name!==t.name||s.apiVersion!==t.apiVersion)&&cb("entries must come from a compatible createMarkdownPlugin()"),s}function cb(e){throw new Error(`Markdown plugin: ${e}`)}const H3=new WeakMap;function F3(e,t,r){const s=e.get(t);s==null?e.set(t,[r]):s.push(r)}function U3(e){const t=e,r=ik(e);if(r.transform==null)return e;const s=Object.freeze({...r,transform:void 0});return Object.freeze({name:t.name,apiVersion:t.apiVersion,[pR]:Object.freeze({kind:ok,apiVersion:1,definition:s})})}function xR(e){if(e.length===0)return;const t=H3.get(e);if(t!=null)return t;const r=new Set,s=new Map,o=new Map,l=[],u=new Map,f=[],d=[],p=[];let m=!1;for(const k of e){const v=ik(k),w=k;if(r.has(v.name)&&cb(`duplicate name "${v.name}"`),r.add(v.name),d.push(w),v.transform!=null&&l.push({pluginName:v.name,transform:v.transform,claims:v.transform[RY],trusted:v.transform[hR]===!0}),v.renderers!=null)for(const[S,E]of Object.entries(v.renderers))u.set(`${v.name}\0${S}`,{pluginName:v.name,renderer:E});if(v[AY]===!0&&(m=!0,p.push(U3(k)),f.push(`${v.name}\0${v.apiVersion}\0source-lines`)),"syntax"in v&&v.syntax!=null){p.push(U3(k)),f.push(`${v.name}\0${v.apiVersion}\0${v.parseKey}`);for(const S of v.syntax.inline??[]){const E={pluginName:v.name,display:"inline",contribution:S};for(const R of new Set(S.startsWith.map(C=>C[0])))F3(s,R,E)}for(const S of v.syntax.block??[]){const E={pluginName:v.name,display:"block",contribution:S};for(const R of new Set(S.startsWith.map(C=>C[0])))F3(o,R,E)}}}const y={entries:d,syntaxEntries:p,inlineByFirstCharacter:s,blockByFirstCharacter:o,transforms:l,hasUntrustedTransform:l.some(k=>!k.trusted),syntaxIdentity:f.join(""),renderers:u,sourceLines:m};return H3.set(e,y),y}function ad(e,t=new Set){if(e==null||typeof e=="boolean"||typeof e=="string")return!0;if(typeof e=="number")return Number.isFinite(e);if(typeof e!="object"||t.has(e))return!1;t.add(e);let r;return Array.isArray(e)?r=e.every(s=>ad(s,t)):Object.getPrototypeOf(e)!==Object.prototype?r=!1:r=Object.values(e).every(s=>ad(s,t)),t.delete(e),r}function gR(e){if(e!=null&&typeof e=="object"&&!Object.isFrozen(e)){for(const t of Object.values(e))gR(t);Object.freeze(e)}return e}function lk(e){const t=e?.start.offset,r=e?.end.offset;if(t!=null&&r!=null)return`${t}:${r}`;const s=e?.start.line,o=e?.end.line;return s==null||o==null?null:`line ${s}:${o}`}function NY(e){const t=[[e.start?.offset,e.end?.offset,0],[e.start?.line,e.end?.line,1]];let r=!1;for(const[s,o,l]of t)if(!(s===void 0&&o===void 0)){if(!Number.isInteger(s)||!Number.isInteger(o)||s<l||o<s)return!1;r=!0}return r}function mR(e){return JSON.stringify([e.lang,e.meta,e.value,e.position??null])}function zY(e){const t=new Map,r=s=>{if(s.type==="code"){const o=Object.getOwnPropertySymbols(s).map(l=>[l,Object.getOwnPropertyDescriptor(s,l)]).filter(l=>l[1]?.enumerable===!0);if(o.length>0){const l=mR(s);t.set(l,[...t.get(l)??[],{descriptors:o}])}}if("children"in s&&Array.isArray(s.children))for(const o of s.children)o!=null&&typeof o=="object"&&r(o)};return r(e),t}function LY(e,t){const r=zY(e);if(r.size===0)return t;const s=o=>{let l=o;if(o.type==="code"){const u=mR(o),d=r.get(u)?.shift(),p=d?.descriptors.some(([m,y])=>{const k=Object.getOwnPropertyDescriptor(o,m);return k==null||k.value!==y.value||k.get!==y.get||k.set!==y.set||k.enumerable!==y.enumerable||k.configurable!==y.configurable||k.writable!==y.writable});if(d!=null&&p===!0){const m={...o};for(const[y,k]of d.descriptors)Object.defineProperty(m,y,k);l=m}}if("children"in l&&Array.isArray(l.children)){const u=l.children,f=u.map(d=>s(d));f.some((d,p)=>d!==u[p])&&(l={...l,children:f})}return l};return s(t)}function DY(e){const t=new Map,r=s=>{const o=lk(s.position);if(o!=null){const l=s,u={type:s.type,startLine:s.position?.start.line,endLine:s.position?.end.line,depth:l.depth,ordered:l.ordered,start:l.start,delimiter:l.delimiter,plugin:l.plugin,name:l.name,display:l.display};t.set(o,[...t.get(o)??[],u])}if("children"in s&&Array.isArray(s.children))for(const l of s.children)l!=null&&typeof l=="object"&&r(l)};return r(e),t}function yR(e){return JSON.stringify([e.plugin,e.name,e.display,e.data,e.source,lk(e.position)])}function OY(e){const t=new Map,r=s=>{if(s.type==="extension"){const o=yR(s),l=t.get(o);t.set(o,{plugin:String(s.plugin),count:(l?.count??0)+1})}if("children"in s&&Array.isArray(s.children))for(const o of s.children)o!=null&&typeof o=="object"&&r(o)};return r(e),t}const Xh=Symbol("MarkdownSourceHeading");function IY(e){const t=new Set,r=s=>{if(s.type==="heading"&&!(Xh in s)&&Object.defineProperty(s,Xh,{configurable:!1,enumerable:!0,value:Object.freeze({depth:s.depth}),writable:!1}),s.type==="heading"&&t.add(s[Xh]),"children"in s&&Array.isArray(s.children))for(const o of s.children)o!=null&&typeof o=="object"&&r(o)};return r(e),t}const _Y=new Set(["text","strong","emphasis","delete","inlineCode","inlineMath","break","link","image","citation"]),qY=new Set(["heading","paragraph","code","math","blockquote","list","table","thematicBreak","image"]),bR=new Set(["heading","paragraph","strong","emphasis","delete","link","tableCell"]),kR=new Set(["root","blockquote","listItem"]),PY=new Set([...bR,...kR,"list","table","tableRow"]);function BY(e,t,r,s,o,l,u,f){if(e==null||typeof e!="object")return!1;const d=new Set,p=new Set;let m=0;const y=(v,w,S)=>{if(v==null||typeof v!="object"||d.has(v)||++m>1e5)return!1;d.add(v);const E=v,R=E.type;if(typeof R!="string"||E.data!==void 0&&!ad(E.data))return!1;if(w!=null){const A=R==="extension"?E.display:void 0,N=_Y.has(R)||A==="inline",L=qY.has(R)||A==="block";if(bR.has(w)&&!N||kR.has(w)&&!L||S&&R==="link"||w==="list"&&R!=="listItem"||w==="table"&&R!=="tableRow"||w==="tableRow"&&R!=="tableCell")return!1}const C=E.position,T=lk(C);if(C!=null&&!NY(C))return!1;if(T!=null){const A=s.get(T)??[],N=A.findIndex(L=>L.type===R&&L.startLine===C?.start?.line&&L.endLine===C?.end?.line&&L.depth===E.depth&&L.ordered===E.ordered&&L.start===E.start&&L.delimiter===E.delimiter&&L.plugin===E.plugin&&L.name===E.name&&L.display===E.display);if(N<0)return!1;A.splice(N,1)}if(R!=="extension"&&E.source!==void 0)return!1;switch(R){case"root":if(w!=null)return!1;break;case"heading":{if(![1,2,3,4,5,6].includes(E.depth))return!1;const A=E[Xh];if(A!=null&&(!o.has(A)||A.depth!==E.depth||p.has(A)))return!1;A!=null&&p.add(A);break}case"text":case"inlineCode":case"inlineMath":case"math":if(typeof E.value!="string")return!1;break;case"code":if(typeof E.value!="string"||E.lang!==null&&typeof E.lang!="string"||E.meta!==void 0&&typeof E.meta!="string")return!1;break;case"link":if(typeof E.url!="string"||!Xa(E.url))return!1;break;case"image":if(typeof E.url!="string"||!Xa(E.url)||typeof E.alt!="string")return!1;break;case"citation":if(typeof E.sourceId!="string")return!1;break;case"list":if(typeof E.ordered!="boolean"||E.start!=null&&!Number.isFinite(E.start)||E.delimiter!=null&&E.delimiter!=="."&&E.delimiter!==")")return!1;break;case"table":if(!Array.isArray(E.align)||!E.align.every(A=>A===null||A==="left"||A==="center"||A==="right"))return!1;break;case"extension":{if(typeof E.plugin!="string"||!t.has(E.plugin)||typeof E.name!="string"||E.display!=="inline"&&E.display!=="block"||!ad(E.data)||!r.has(`${E.plugin}\0${E.name}`))return!1;const A=yR(E),N=u.get(A);if(N!=null&&N.count>0)N.count--;else if(E.plugin!==l||E.source!==void 0||E.position!==void 0)return!1;break}case"strong":case"emphasis":case"delete":case"break":case"paragraph":case"blockquote":case"listItem":case"tableRow":case"tableCell":case"thematicBreak":break;default:return!1}if(PY.has(R)){if(!Array.isArray(E.children))return!1;for(const A of E.children)if(!y(A,R,S||R==="link"))return!1}else if("children"in E)return!1;return!0},k=e;return y(k,null,!1)&&k.type==="root"&&Array.from(u.values()).every(v=>v.plugin===l||v.count===0)&&(f==="block"||k.children.length===1&&k.children[0]?.type==="paragraph")}function ub(e){if(!(e==null||typeof e!="object")){if(Array.isArray(e))for(let t=0;t<e.length;t++)ub(e[t]);else for(const t in e)ub(e[t]);Object.freeze(e)}}function u1(e){return ub(e),e}const V3=new Set;function db(e,t){if(t==null||typeof t!="object"||t===e)return t;const r=e!=null&&typeof e=="object"?e:void 0;if(Array.isArray(t)){const s=Array.isArray(e)?e:void 0;for(let o=0;o<t.length;o++)db(s?.[o],t[o])}else for(const s in t)db(r?.[s],t[s]);return Object.freeze(t),t}function Ga(e,t,r){const s=`markdown-plugin:${e}:${t}`,o=`plugin "${e}" failed in ${t}; rendered readable fallback.`;{V3.has(s)||(V3.add(s),Yb("Markdown",o));return}}function sd(e,t,r,s,o){if(t==null||t.transforms.length===0)return e;let l,u,f=e;const d=t.hasUntrustedTransform?IY(e):void 0;let p=!1,m=!1,y=!1;for(const k of t.transforms)if(!(!m&&k.claims?.(r)===!1)){k.trusted||(p||(l=new Set(t.entries.map(v=>v.name)),u=new Set(t.renderers.keys()),p=!0),f=u1(f),y=!1);try{const v={source:r,isFinal:s,display:o,report(R){Ga(k.pluginName,"transform",R)},[TY]:k.pluginName,[CY]:R=>t.renderers.has(`${k.pluginName}\0${R}`),[jY]:!m},w=k.transform(f,v);if(w!=null&&typeof w=="object"&&typeof w.then=="function")throw Promise.resolve(w).catch(()=>{}),new TypeError("Async Markdown transforms are not supported");if(w===f)continue;if(k.trusted){m=!0,y=!0,f=w;continue}const S=DY(f),E=OY(f);if(!BY(w,l,u,S,d,k.pluginName,E,o))throw new TypeError("Transform returned an invalid Markdown document");m=!0,f=u1(LY(f,w))}catch{Ga(k.pluginName,"transform")}}return y?t.hasUntrustedTransform?u1(f):db(e,f):f}function ck(e,t){return e?.renderers.get(`${t.plugin}\0${t.name}`)?.renderer}function od(e,t){const r=ck(e,t);if(r==null)return t.source??"";try{return r.toText(t)}catch{return Ga(t.plugin,"render"),t.source??""}}const HY="AElig=c6 AMP=26 Aacute=c1 Abreve=102 Acirc=c2 Acy=410 Afr=1d504 Agrave=c0 Alpha=391 Amacr=100 And=2a53 Aogon=104 Aopf=1d538 ApplyFunction=2061 Aring=c5 Ascr=1d49c Assign=2254 Atilde=c3 Auml=c4 Backslash=2216 Barv=2ae7 Barwed=2306 Bcy=411 Because=2235 Bernoullis=212c Beta=392 Bfr=1d505 Bopf=1d539 Breve=2d8 Bscr=212c Bumpeq=224e CHcy=427 COPY=a9 Cacute=106 Cap=22d2 CapitalDifferentialD=2145 Cayleys=212d Ccaron=10c Ccedil=c7 Ccirc=108 Cconint=2230 Cdot=10a Cedilla=b8 CenterDot=b7 Cfr=212d Chi=3a7 CircleDot=2299 CircleMinus=2296 CirclePlus=2295 CircleTimes=2297 ClockwiseContourIntegral=2232 CloseCurlyDoubleQuote=201d CloseCurlyQuote=2019 Colon=2237 Colone=2a74 Congruent=2261 Conint=222f ContourIntegral=222e Copf=2102 Coproduct=2210 CounterClockwiseContourIntegral=2233 Cross=2a2f Cscr=1d49e Cup=22d3 CupCap=224d DD=2145 DDotrahd=2911 DJcy=402 DScy=405 DZcy=40f Dagger=2021 Darr=21a1 Dashv=2ae4 Dcaron=10e Dcy=414 Del=2207 Delta=394 Dfr=1d507 DiacriticalAcute=b4 DiacriticalDot=2d9 DiacriticalDoubleAcute=2dd DiacriticalGrave=60 DiacriticalTilde=2dc Diamond=22c4 DifferentialD=2146 Dopf=1d53b Dot=a8 DotDot=20dc DotEqual=2250 DoubleContourIntegral=222f DoubleDot=a8 DoubleDownArrow=21d3 DoubleLeftArrow=21d0 DoubleLeftRightArrow=21d4 DoubleLeftTee=2ae4 DoubleLongLeftArrow=27f8 DoubleLongLeftRightArrow=27fa DoubleLongRightArrow=27f9 DoubleRightArrow=21d2 DoubleRightTee=22a8 DoubleUpArrow=21d1 DoubleUpDownArrow=21d5 DoubleVerticalBar=2225 DownArrow=2193 DownArrowBar=2913 DownArrowUpArrow=21f5 DownBreve=311 DownLeftRightVector=2950 DownLeftTeeVector=295e DownLeftVector=21bd DownLeftVectorBar=2956 DownRightTeeVector=295f DownRightVector=21c1 DownRightVectorBar=2957 DownTee=22a4 DownTeeArrow=21a7 Downarrow=21d3 Dscr=1d49f Dstrok=110 ENG=14a ETH=d0 Eacute=c9 Ecaron=11a Ecirc=ca Ecy=42d Edot=116 Efr=1d508 Egrave=c8 Element=2208 Emacr=112 EmptySmallSquare=25fb EmptyVerySmallSquare=25ab Eogon=118 Eopf=1d53c Epsilon=395 Equal=2a75 EqualTilde=2242 Equilibrium=21cc Escr=2130 Esim=2a73 Eta=397 Euml=cb Exists=2203 ExponentialE=2147 Fcy=424 Ffr=1d509 FilledSmallSquare=25fc FilledVerySmallSquare=25aa Fopf=1d53d ForAll=2200 Fouriertrf=2131 Fscr=2131 GJcy=403 GT=3e Gamma=393 Gammad=3dc Gbreve=11e Gcedil=122 Gcirc=11c Gcy=413 Gdot=120 Gfr=1d50a Gg=22d9 Gopf=1d53e GreaterEqual=2265 GreaterEqualLess=22db GreaterFullEqual=2267 GreaterGreater=2aa2 GreaterLess=2277 GreaterSlantEqual=2a7e GreaterTilde=2273 Gscr=1d4a2 Gt=226b HARDcy=42a Hacek=2c7 Hat=5e Hcirc=124 Hfr=210c HilbertSpace=210b Hopf=210d HorizontalLine=2500 Hscr=210b Hstrok=126 HumpDownHump=224e HumpEqual=224f IEcy=415 IJlig=132 IOcy=401 Iacute=cd Icirc=ce Icy=418 Idot=130 Ifr=2111 Igrave=cc Im=2111 Imacr=12a ImaginaryI=2148 Implies=21d2 Int=222c Integral=222b Intersection=22c2 InvisibleComma=2063 InvisibleTimes=2062 Iogon=12e Iopf=1d540 Iota=399 Iscr=2110 Itilde=128 Iukcy=406 Iuml=cf Jcirc=134 Jcy=419 Jfr=1d50d Jopf=1d541 Jscr=1d4a5 Jsercy=408 Jukcy=404 KHcy=425 KJcy=40c Kappa=39a Kcedil=136 Kcy=41a Kfr=1d50e Kopf=1d542 Kscr=1d4a6 LJcy=409 LT=3c Lacute=139 Lambda=39b Lang=27ea Laplacetrf=2112 Larr=219e Lcaron=13d Lcedil=13b Lcy=41b LeftAngleBracket=27e8 LeftArrow=2190 LeftArrowBar=21e4 LeftArrowRightArrow=21c6 LeftCeiling=2308 LeftDoubleBracket=27e6 LeftDownTeeVector=2961 LeftDownVector=21c3 LeftDownVectorBar=2959 LeftFloor=230a LeftRightArrow=2194 LeftRightVector=294e LeftTee=22a3 LeftTeeArrow=21a4 LeftTeeVector=295a LeftTriangle=22b2 LeftTriangleBar=29cf LeftTriangleEqual=22b4 LeftUpDownVector=2951 LeftUpTeeVector=2960 LeftUpVector=21bf LeftUpVectorBar=2958 LeftVector=21bc LeftVectorBar=2952 Leftarrow=21d0 Leftrightarrow=21d4 LessEqualGreater=22da LessFullEqual=2266 LessGreater=2276 LessLess=2aa1 LessSlantEqual=2a7d LessTilde=2272 Lfr=1d50f Ll=22d8 Lleftarrow=21da Lmidot=13f LongLeftArrow=27f5 LongLeftRightArrow=27f7 LongRightArrow=27f6 Longleftarrow=27f8 Longleftrightarrow=27fa Longrightarrow=27f9 Lopf=1d543 LowerLeftArrow=2199 LowerRightArrow=2198 Lscr=2112 Lsh=21b0 Lstrok=141 Lt=226a Map=2905 Mcy=41c MediumSpace=205f Mellintrf=2133 Mfr=1d510 MinusPlus=2213 Mopf=1d544 Mscr=2133 Mu=39c NJcy=40a Nacute=143 Ncaron=147 Ncedil=145 Ncy=41d NegativeMediumSpace=200b NegativeThickSpace=200b NegativeThinSpace=200b NegativeVeryThinSpace=200b NestedGreaterGreater=226b NestedLessLess=226a NewLine=a Nfr=1d511 NoBreak=2060 NonBreakingSpace=a0 Nopf=2115 Not=2aec NotCongruent=2262 NotCupCap=226d NotDoubleVerticalBar=2226 NotElement=2209 NotEqual=2260 NotEqualTilde=2242,338 NotExists=2204 NotGreater=226f NotGreaterEqual=2271 NotGreaterFullEqual=2267,338 NotGreaterGreater=226b,338 NotGreaterLess=2279 NotGreaterSlantEqual=2a7e,338 NotGreaterTilde=2275 NotHumpDownHump=224e,338 NotHumpEqual=224f,338 NotLeftTriangle=22ea NotLeftTriangleBar=29cf,338 NotLeftTriangleEqual=22ec NotLess=226e NotLessEqual=2270 NotLessGreater=2278 NotLessLess=226a,338 NotLessSlantEqual=2a7d,338 NotLessTilde=2274 NotNestedGreaterGreater=2aa2,338 NotNestedLessLess=2aa1,338 NotPrecedes=2280 NotPrecedesEqual=2aaf,338 NotPrecedesSlantEqual=22e0 NotReverseElement=220c NotRightTriangle=22eb NotRightTriangleBar=29d0,338 NotRightTriangleEqual=22ed NotSquareSubset=228f,338 NotSquareSubsetEqual=22e2 NotSquareSuperset=2290,338 NotSquareSupersetEqual=22e3 NotSubset=2282,20d2 NotSubsetEqual=2288 NotSucceeds=2281 NotSucceedsEqual=2ab0,338 NotSucceedsSlantEqual=22e1 NotSucceedsTilde=227f,338 NotSuperset=2283,20d2 NotSupersetEqual=2289 NotTilde=2241 NotTildeEqual=2244 NotTildeFullEqual=2247 NotTildeTilde=2249 NotVerticalBar=2224 Nscr=1d4a9 Ntilde=d1 Nu=39d OElig=152 Oacute=d3 Ocirc=d4 Ocy=41e Odblac=150 Ofr=1d512 Ograve=d2 Omacr=14c Omega=3a9 Omicron=39f Oopf=1d546 OpenCurlyDoubleQuote=201c OpenCurlyQuote=2018 Or=2a54 Oscr=1d4aa Oslash=d8 Otilde=d5 Otimes=2a37 Ouml=d6 OverBar=203e OverBrace=23de OverBracket=23b4 OverParenthesis=23dc PartialD=2202 Pcy=41f Pfr=1d513 Phi=3a6 Pi=3a0 PlusMinus=b1 Poincareplane=210c Popf=2119 Pr=2abb Precedes=227a PrecedesEqual=2aaf PrecedesSlantEqual=227c PrecedesTilde=227e Prime=2033 Product=220f Proportion=2237 Proportional=221d Pscr=1d4ab Psi=3a8 QUOT=22 Qfr=1d514 Qopf=211a Qscr=1d4ac RBarr=2910 REG=ae Racute=154 Rang=27eb Rarr=21a0 Rarrtl=2916 Rcaron=158 Rcedil=156 Rcy=420 Re=211c ReverseElement=220b ReverseEquilibrium=21cb ReverseUpEquilibrium=296f Rfr=211c Rho=3a1 RightAngleBracket=27e9 RightArrow=2192 RightArrowBar=21e5 RightArrowLeftArrow=21c4 RightCeiling=2309 RightDoubleBracket=27e7 RightDownTeeVector=295d RightDownVector=21c2 RightDownVectorBar=2955 RightFloor=230b RightTee=22a2 RightTeeArrow=21a6 RightTeeVector=295b RightTriangle=22b3 RightTriangleBar=29d0 RightTriangleEqual=22b5 RightUpDownVector=294f RightUpTeeVector=295c RightUpVector=21be RightUpVectorBar=2954 RightVector=21c0 RightVectorBar=2953 Rightarrow=21d2 Ropf=211d RoundImplies=2970 Rrightarrow=21db Rscr=211b Rsh=21b1 RuleDelayed=29f4 SHCHcy=429 SHcy=428 SOFTcy=42c Sacute=15a Sc=2abc Scaron=160 Scedil=15e Scirc=15c Scy=421 Sfr=1d516 ShortDownArrow=2193 ShortLeftArrow=2190 ShortRightArrow=2192 ShortUpArrow=2191 Sigma=3a3 SmallCircle=2218 Sopf=1d54a Sqrt=221a Square=25a1 SquareIntersection=2293 SquareSubset=228f SquareSubsetEqual=2291 SquareSuperset=2290 SquareSupersetEqual=2292 SquareUnion=2294 Sscr=1d4ae Star=22c6 Sub=22d0 Subset=22d0 SubsetEqual=2286 Succeeds=227b SucceedsEqual=2ab0 SucceedsSlantEqual=227d SucceedsTilde=227f SuchThat=220b Sum=2211 Sup=22d1 Superset=2283 SupersetEqual=2287 Supset=22d1 THORN=de TRADE=2122 TSHcy=40b TScy=426 Tab=9 Tau=3a4 Tcaron=164 Tcedil=162 Tcy=422 Tfr=1d517 Therefore=2234 Theta=398 ThickSpace=205f,200a ThinSpace=2009 Tilde=223c TildeEqual=2243 TildeFullEqual=2245 TildeTilde=2248 Topf=1d54b TripleDot=20db Tscr=1d4af Tstrok=166 Uacute=da Uarr=219f Uarrocir=2949 Ubrcy=40e Ubreve=16c Ucirc=db Ucy=423 Udblac=170 Ufr=1d518 Ugrave=d9 Umacr=16a UnderBar=5f UnderBrace=23df UnderBracket=23b5 UnderParenthesis=23dd Union=22c3 UnionPlus=228e Uogon=172 Uopf=1d54c UpArrow=2191 UpArrowBar=2912 UpArrowDownArrow=21c5 UpDownArrow=2195 UpEquilibrium=296e UpTee=22a5 UpTeeArrow=21a5 Uparrow=21d1 Updownarrow=21d5 UpperLeftArrow=2196 UpperRightArrow=2197 Upsi=3d2 Upsilon=3a5 Uring=16e Uscr=1d4b0 Utilde=168 Uuml=dc VDash=22ab Vbar=2aeb Vcy=412 Vdash=22a9 Vdashl=2ae6 Vee=22c1 Verbar=2016 Vert=2016 VerticalBar=2223 VerticalLine=7c VerticalSeparator=2758 VerticalTilde=2240 VeryThinSpace=200a Vfr=1d519 Vopf=1d54d Vscr=1d4b1 Vvdash=22aa Wcirc=174 Wedge=22c0 Wfr=1d51a Wopf=1d54e Wscr=1d4b2 Xfr=1d51b Xi=39e Xopf=1d54f Xscr=1d4b3 YAcy=42f YIcy=407 YUcy=42e Yacute=dd Ycirc=176 Ycy=42b Yfr=1d51c Yopf=1d550 Yscr=1d4b4 Yuml=178 ZHcy=416 Zacute=179 Zcaron=17d Zcy=417 Zdot=17b ZeroWidthSpace=200b Zeta=396 Zfr=2128 Zopf=2124 Zscr=1d4b5 aacute=e1 abreve=103 ac=223e acE=223e,333 acd=223f acirc=e2 acute=b4 acy=430 aelig=e6 af=2061 afr=1d51e agrave=e0 alefsym=2135 aleph=2135 alpha=3b1 amacr=101 amalg=2a3f amp=26 and=2227 andand=2a55 andd=2a5c andslope=2a58 andv=2a5a ang=2220 ange=29a4 angle=2220 angmsd=2221 angmsdaa=29a8 angmsdab=29a9 angmsdac=29aa angmsdad=29ab angmsdae=29ac angmsdaf=29ad angmsdag=29ae angmsdah=29af angrt=221f angrtvb=22be angrtvbd=299d angsph=2222 angst=c5 angzarr=237c aogon=105 aopf=1d552 ap=2248 apE=2a70 apacir=2a6f ape=224a apid=224b apos=27 approx=2248 approxeq=224a aring=e5 ascr=1d4b6 ast=2a asymp=2248 asympeq=224d atilde=e3 auml=e4 awconint=2233 awint=2a11 bNot=2aed backcong=224c backepsilon=3f6 backprime=2035 backsim=223d backsimeq=22cd barvee=22bd barwed=2305 barwedge=2305 bbrk=23b5 bbrktbrk=23b6 bcong=224c bcy=431 bdquo=201e becaus=2235 because=2235 bemptyv=29b0 bepsi=3f6 bernou=212c beta=3b2 beth=2136 between=226c bfr=1d51f bigcap=22c2 bigcirc=25ef bigcup=22c3 bigodot=2a00 bigoplus=2a01 bigotimes=2a02 bigsqcup=2a06 bigstar=2605 bigtriangledown=25bd bigtriangleup=25b3 biguplus=2a04 bigvee=22c1 bigwedge=22c0 bkarow=290d blacklozenge=29eb blacksquare=25aa blacktriangle=25b4 blacktriangledown=25be blacktriangleleft=25c2 blacktriangleright=25b8 blank=2423 blk12=2592 blk14=2591 blk34=2593 block=2588 bne=3d,20e5 bnequiv=2261,20e5 bnot=2310 bopf=1d553 bot=22a5 bottom=22a5 bowtie=22c8 boxDL=2557 boxDR=2554 boxDl=2556 boxDr=2553 boxH=2550 boxHD=2566 boxHU=2569 boxHd=2564 boxHu=2567 boxUL=255d boxUR=255a boxUl=255c boxUr=2559 boxV=2551 boxVH=256c boxVL=2563 boxVR=2560 boxVh=256b boxVl=2562 boxVr=255f boxbox=29c9 boxdL=2555 boxdR=2552 boxdl=2510 boxdr=250c boxh=2500 boxhD=2565 boxhU=2568 boxhd=252c boxhu=2534 boxminus=229f boxplus=229e boxtimes=22a0 boxuL=255b boxuR=2558 boxul=2518 boxur=2514 boxv=2502 boxvH=256a boxvL=2561 boxvR=255e boxvh=253c boxvl=2524 boxvr=251c bprime=2035 breve=2d8 brvbar=a6 bscr=1d4b7 bsemi=204f bsim=223d bsime=22cd bsol=5c bsolb=29c5 bsolhsub=27c8 bull=2022 bullet=2022 bump=224e bumpE=2aae bumpe=224f bumpeq=224f cacute=107 cap=2229 capand=2a44 capbrcup=2a49 capcap=2a4b capcup=2a47 capdot=2a40 caps=2229,fe00 caret=2041 caron=2c7 ccaps=2a4d ccaron=10d ccedil=e7 ccirc=109 ccups=2a4c ccupssm=2a50 cdot=10b cedil=b8 cemptyv=29b2 cent=a2 centerdot=b7 cfr=1d520 chcy=447 check=2713 checkmark=2713 chi=3c7 cir=25cb cirE=29c3 circ=2c6 circeq=2257 circlearrowleft=21ba circlearrowright=21bb circledR=ae circledS=24c8 circledast=229b circledcirc=229a circleddash=229d cire=2257 cirfnint=2a10 cirmid=2aef cirscir=29c2 clubs=2663 clubsuit=2663 colon=3a colone=2254 coloneq=2254 comma=2c commat=40 comp=2201 compfn=2218 complement=2201 complexes=2102 cong=2245 congdot=2a6d conint=222e copf=1d554 coprod=2210 copy=a9 copysr=2117 crarr=21b5 cross=2717 cscr=1d4b8 csub=2acf csube=2ad1 csup=2ad0 csupe=2ad2 ctdot=22ef cudarrl=2938 cudarrr=2935 cuepr=22de cuesc=22df cularr=21b6 cularrp=293d cup=222a cupbrcap=2a48 cupcap=2a46 cupcup=2a4a cupdot=228d cupor=2a45 cups=222a,fe00 curarr=21b7 curarrm=293c curlyeqprec=22de curlyeqsucc=22df curlyvee=22ce curlywedge=22cf curren=a4 curvearrowleft=21b6 curvearrowright=21b7 cuvee=22ce cuwed=22cf cwconint=2232 cwint=2231 cylcty=232d dArr=21d3 dHar=2965 dagger=2020 daleth=2138 darr=2193 dash=2010 dashv=22a3 dbkarow=290f dblac=2dd dcaron=10f dcy=434 dd=2146 ddagger=2021 ddarr=21ca ddotseq=2a77 deg=b0 delta=3b4 demptyv=29b1 dfisht=297f dfr=1d521 dharl=21c3 dharr=21c2 diam=22c4 diamond=22c4 diamondsuit=2666 diams=2666 die=a8 digamma=3dd disin=22f2 div=f7 divide=f7 divideontimes=22c7 divonx=22c7 djcy=452 dlcorn=231e dlcrop=230d dollar=24 dopf=1d555 dot=2d9 doteq=2250 doteqdot=2251 dotminus=2238 dotplus=2214 dotsquare=22a1 doublebarwedge=2306 downarrow=2193 downdownarrows=21ca downharpoonleft=21c3 downharpoonright=21c2 drbkarow=2910 drcorn=231f drcrop=230c dscr=1d4b9 dscy=455 dsol=29f6 dstrok=111 dtdot=22f1 dtri=25bf dtrif=25be duarr=21f5 duhar=296f dwangle=29a6 dzcy=45f dzigrarr=27ff eDDot=2a77 eDot=2251 eacute=e9 easter=2a6e ecaron=11b ecir=2256 ecirc=ea ecolon=2255 ecy=44d edot=117 ee=2147 efDot=2252 efr=1d522 eg=2a9a egrave=e8 egs=2a96 egsdot=2a98 el=2a99 elinters=23e7 ell=2113 els=2a95 elsdot=2a97 emacr=113 empty=2205 emptyset=2205 emptyv=2205 emsp=2003 emsp13=2004 emsp14=2005 eng=14b ensp=2002 eogon=119 eopf=1d556 epar=22d5 eparsl=29e3 eplus=2a71 epsi=3b5 epsilon=3b5 epsiv=3f5 eqcirc=2256 eqcolon=2255 eqsim=2242 eqslantgtr=2a96 eqslantless=2a95 equals=3d equest=225f equiv=2261 equivDD=2a78 eqvparsl=29e5 erDot=2253 erarr=2971 escr=212f esdot=2250 esim=2242 eta=3b7 eth=f0 euml=eb euro=20ac excl=21 exist=2203 expectation=2130 exponentiale=2147 fallingdotseq=2252 fcy=444 female=2640 ffilig=fb03 fflig=fb00 ffllig=fb04 ffr=1d523 filig=fb01 fjlig=66,6a flat=266d fllig=fb02 fltns=25b1 fnof=192 fopf=1d557 forall=2200 fork=22d4 forkv=2ad9 fpartint=2a0d frac12=bd frac13=2153 frac14=bc frac15=2155 frac16=2159 frac18=215b frac23=2154 frac25=2156 frac34=be frac35=2157 frac38=215c frac45=2158 frac56=215a frac58=215d frac78=215e frasl=2044 frown=2322 fscr=1d4bb gE=2267 gEl=2a8c gacute=1f5 gamma=3b3 gammad=3dd gap=2a86 gbreve=11f gcirc=11d gcy=433 gdot=121 ge=2265 gel=22db geq=2265 geqq=2267 geqslant=2a7e ges=2a7e gescc=2aa9 gesdot=2a80 gesdoto=2a82 gesdotol=2a84 gesl=22db,fe00 gesles=2a94 gfr=1d524 gg=226b ggg=22d9 gimel=2137 gjcy=453 gl=2277 glE=2a92 gla=2aa5 glj=2aa4 gnE=2269 gnap=2a8a gnapprox=2a8a gne=2a88 gneq=2a88 gneqq=2269 gnsim=22e7 gopf=1d558 grave=60 gscr=210a gsim=2273 gsime=2a8e gsiml=2a90 gt=3e gtcc=2aa7 gtcir=2a7a gtdot=22d7 gtlPar=2995 gtquest=2a7c gtrapprox=2a86 gtrarr=2978 gtrdot=22d7 gtreqless=22db gtreqqless=2a8c gtrless=2277 gtrsim=2273 gvertneqq=2269,fe00 gvnE=2269,fe00 hArr=21d4 hairsp=200a half=bd hamilt=210b hardcy=44a harr=2194 harrcir=2948 harrw=21ad hbar=210f hcirc=125 hearts=2665 heartsuit=2665 hellip=2026 hercon=22b9 hfr=1d525 hksearow=2925 hkswarow=2926 hoarr=21ff homtht=223b hookleftarrow=21a9 hookrightarrow=21aa hopf=1d559 horbar=2015 hscr=1d4bd hslash=210f hstrok=127 hybull=2043 hyphen=2010 iacute=ed ic=2063 icirc=ee icy=438 iecy=435 iexcl=a1 iff=21d4 ifr=1d526 igrave=ec ii=2148 iiiint=2a0c iiint=222d iinfin=29dc iiota=2129 ijlig=133 imacr=12b image=2111 imagline=2110 imagpart=2111 imath=131 imof=22b7 imped=1b5 in=2208 incare=2105 infin=221e infintie=29dd inodot=131 int=222b intcal=22ba integers=2124 intercal=22ba intlarhk=2a17 intprod=2a3c iocy=451 iogon=12f iopf=1d55a iota=3b9 iprod=2a3c iquest=bf iscr=1d4be isin=2208 isinE=22f9 isindot=22f5 isins=22f4 isinsv=22f3 isinv=2208 it=2062 itilde=129 iukcy=456 iuml=ef jcirc=135 jcy=439 jfr=1d527 jmath=237 jopf=1d55b jscr=1d4bf jsercy=458 jukcy=454 kappa=3ba kappav=3f0 kcedil=137 kcy=43a kfr=1d528 kgreen=138 khcy=445 kjcy=45c kopf=1d55c kscr=1d4c0 lAarr=21da lArr=21d0 lAtail=291b lBarr=290e lE=2266 lEg=2a8b lHar=2962 lacute=13a laemptyv=29b4 lagran=2112 lambda=3bb lang=27e8 langd=2991 langle=27e8 lap=2a85 laquo=ab larr=2190 larrb=21e4 larrbfs=291f larrfs=291d larrhk=21a9 larrlp=21ab larrpl=2939 larrsim=2973 larrtl=21a2 lat=2aab latail=2919 late=2aad lates=2aad,fe00 lbarr=290c lbbrk=2772 lbrace=7b lbrack=5b lbrke=298b lbrksld=298f lbrkslu=298d lcaron=13e lcedil=13c lceil=2308 lcub=7b lcy=43b ldca=2936 ldquo=201c ldquor=201e ldrdhar=2967 ldrushar=294b ldsh=21b2 le=2264 leftarrow=2190 leftarrowtail=21a2 leftharpoondown=21bd leftharpoonup=21bc leftleftarrows=21c7 leftrightarrow=2194 leftrightarrows=21c6 leftrightharpoons=21cb leftrightsquigarrow=21ad leftthreetimes=22cb leg=22da leq=2264 leqq=2266 leqslant=2a7d les=2a7d lescc=2aa8 lesdot=2a7f lesdoto=2a81 lesdotor=2a83 lesg=22da,fe00 lesges=2a93 lessapprox=2a85 lessdot=22d6 lesseqgtr=22da lesseqqgtr=2a8b lessgtr=2276 lesssim=2272 lfisht=297c lfloor=230a lfr=1d529 lg=2276 lgE=2a91 lhard=21bd lharu=21bc lharul=296a lhblk=2584 ljcy=459 ll=226a llarr=21c7 llcorner=231e llhard=296b lltri=25fa lmidot=140 lmoust=23b0 lmoustache=23b0 lnE=2268 lnap=2a89 lnapprox=2a89 lne=2a87 lneq=2a87 lneqq=2268 lnsim=22e6 loang=27ec loarr=21fd lobrk=27e6 longleftarrow=27f5 longleftrightarrow=27f7 longmapsto=27fc longrightarrow=27f6 looparrowleft=21ab looparrowright=21ac lopar=2985 lopf=1d55d loplus=2a2d lotimes=2a34 lowast=2217 lowbar=5f loz=25ca lozenge=25ca lozf=29eb lpar=28 lparlt=2993 lrarr=21c6 lrcorner=231f lrhar=21cb lrhard=296d lrm=200e lrtri=22bf lsaquo=2039 lscr=1d4c1 lsh=21b0 lsim=2272 lsime=2a8d lsimg=2a8f lsqb=5b lsquo=2018 lsquor=201a lstrok=142 lt=3c ltcc=2aa6 ltcir=2a79 ltdot=22d6 lthree=22cb ltimes=22c9 ltlarr=2976 ltquest=2a7b ltrPar=2996 ltri=25c3 ltrie=22b4 ltrif=25c2 lurdshar=294a luruhar=2966 lvertneqq=2268,fe00 lvnE=2268,fe00 mDDot=223a macr=af male=2642 malt=2720 maltese=2720 map=21a6 mapsto=21a6 mapstodown=21a7 mapstoleft=21a4 mapstoup=21a5 marker=25ae mcomma=2a29 mcy=43c mdash=2014 measuredangle=2221 mfr=1d52a mho=2127 micro=b5 mid=2223 midast=2a midcir=2af0 middot=b7 minus=2212 minusb=229f minusd=2238 minusdu=2a2a mlcp=2adb mldr=2026 mnplus=2213 models=22a7 mopf=1d55e mp=2213 mscr=1d4c2 mstpos=223e mu=3bc multimap=22b8 mumap=22b8 nGg=22d9,338 nGt=226b,20d2 nGtv=226b,338 nLeftarrow=21cd nLeftrightarrow=21ce nLl=22d8,338 nLt=226a,20d2 nLtv=226a,338 nRightarrow=21cf nVDash=22af nVdash=22ae nabla=2207 nacute=144 nang=2220,20d2 nap=2249 napE=2a70,338 napid=224b,338 napos=149 napprox=2249 natur=266e natural=266e naturals=2115 nbsp=a0 nbump=224e,338 nbumpe=224f,338 ncap=2a43 ncaron=148 ncedil=146 ncong=2247 ncongdot=2a6d,338 ncup=2a42 ncy=43d ndash=2013 ne=2260 neArr=21d7 nearhk=2924 nearr=2197 nearrow=2197 nedot=2250,338 nequiv=2262 nesear=2928 nesim=2242,338 nexist=2204 nexists=2204 nfr=1d52b ngE=2267,338 nge=2271 ngeq=2271 ngeqq=2267,338 ngeqslant=2a7e,338 nges=2a7e,338 ngsim=2275 ngt=226f ngtr=226f nhArr=21ce nharr=21ae nhpar=2af2 ni=220b nis=22fc nisd=22fa niv=220b njcy=45a nlArr=21cd nlE=2266,338 nlarr=219a nldr=2025 nle=2270 nleftarrow=219a nleftrightarrow=21ae nleq=2270 nleqq=2266,338 nleqslant=2a7d,338 nles=2a7d,338 nless=226e nlsim=2274 nlt=226e nltri=22ea nltrie=22ec nmid=2224 nopf=1d55f not=ac notin=2209 notinE=22f9,338 notindot=22f5,338 notinva=2209 notinvb=22f7 notinvc=22f6 notni=220c notniva=220c notnivb=22fe notnivc=22fd npar=2226 nparallel=2226 nparsl=2afd,20e5 npart=2202,338 npolint=2a14 npr=2280 nprcue=22e0 npre=2aaf,338 nprec=2280 npreceq=2aaf,338 nrArr=21cf nrarr=219b nrarrc=2933,338 nrarrw=219d,338 nrightarrow=219b nrtri=22eb nrtrie=22ed nsc=2281 nsccue=22e1 nsce=2ab0,338 nscr=1d4c3 nshortmid=2224 nshortparallel=2226 nsim=2241 nsime=2244 nsimeq=2244 nsmid=2224 nspar=2226 nsqsube=22e2 nsqsupe=22e3 nsub=2284 nsubE=2ac5,338 nsube=2288 nsubset=2282,20d2 nsubseteq=2288 nsubseteqq=2ac5,338 nsucc=2281 nsucceq=2ab0,338 nsup=2285 nsupE=2ac6,338 nsupe=2289 nsupset=2283,20d2 nsupseteq=2289 nsupseteqq=2ac6,338 ntgl=2279 ntilde=f1 ntlg=2278 ntriangleleft=22ea ntrianglelefteq=22ec ntriangleright=22eb ntrianglerighteq=22ed nu=3bd num=23 numero=2116 numsp=2007 nvDash=22ad nvHarr=2904 nvap=224d,20d2 nvdash=22ac nvge=2265,20d2 nvgt=3e,20d2 nvinfin=29de nvlArr=2902 nvle=2264,20d2 nvlt=3c,20d2 nvltrie=22b4,20d2 nvrArr=2903 nvrtrie=22b5,20d2 nvsim=223c,20d2 nwArr=21d6 nwarhk=2923 nwarr=2196 nwarrow=2196 nwnear=2927 oS=24c8 oacute=f3 oast=229b ocir=229a ocirc=f4 ocy=43e odash=229d odblac=151 odiv=2a38 odot=2299 odsold=29bc oelig=153 ofcir=29bf ofr=1d52c ogon=2db ograve=f2 ogt=29c1 ohbar=29b5 ohm=3a9 oint=222e olarr=21ba olcir=29be olcross=29bb oline=203e olt=29c0 omacr=14d omega=3c9 omicron=3bf omid=29b6 ominus=2296 oopf=1d560 opar=29b7 operp=29b9 oplus=2295 or=2228 orarr=21bb ord=2a5d order=2134 orderof=2134 ordf=aa ordm=ba origof=22b6 oror=2a56 orslope=2a57 orv=2a5b oscr=2134 oslash=f8 osol=2298 otilde=f5 otimes=2297 otimesas=2a36 ouml=f6 ovbar=233d par=2225 para=b6 parallel=2225 parsim=2af3 parsl=2afd part=2202 pcy=43f percnt=25 period=2e permil=2030 perp=22a5 pertenk=2031 pfr=1d52d phi=3c6 phiv=3d5 phmmat=2133 phone=260e pi=3c0 pitchfork=22d4 piv=3d6 planck=210f planckh=210e plankv=210f plus=2b plusacir=2a23 plusb=229e pluscir=2a22 plusdo=2214 plusdu=2a25 pluse=2a72 plusmn=b1 plussim=2a26 plustwo=2a27 pm=b1 pointint=2a15 popf=1d561 pound=a3 pr=227a prE=2ab3 prap=2ab7 prcue=227c pre=2aaf prec=227a precapprox=2ab7 preccurlyeq=227c preceq=2aaf precnapprox=2ab9 precneqq=2ab5 precnsim=22e8 precsim=227e prime=2032 primes=2119 prnE=2ab5 prnap=2ab9 prnsim=22e8 prod=220f profalar=232e profline=2312 profsurf=2313 prop=221d propto=221d prsim=227e prurel=22b0 pscr=1d4c5 psi=3c8 puncsp=2008 qfr=1d52e qint=2a0c qopf=1d562 qprime=2057 qscr=1d4c6 quaternions=210d quatint=2a16 quest=3f questeq=225f quot=22 rAarr=21db rArr=21d2 rAtail=291c rBarr=290f rHar=2964 race=223d,331 racute=155 radic=221a raemptyv=29b3 rang=27e9 rangd=2992 range=29a5 rangle=27e9 raquo=bb rarr=2192 rarrap=2975 rarrb=21e5 rarrbfs=2920 rarrc=2933 rarrfs=291e rarrhk=21aa rarrlp=21ac rarrpl=2945 rarrsim=2974 rarrtl=21a3 rarrw=219d ratail=291a ratio=2236 rationals=211a rbarr=290d rbbrk=2773 rbrace=7d rbrack=5d rbrke=298c rbrksld=298e rbrkslu=2990 rcaron=159 rcedil=157 rceil=2309 rcub=7d rcy=440 rdca=2937 rdldhar=2969 rdquo=201d rdquor=201d rdsh=21b3 real=211c realine=211b realpart=211c reals=211d rect=25ad reg=ae rfisht=297d rfloor=230b rfr=1d52f rhard=21c1 rharu=21c0 rharul=296c rho=3c1 rhov=3f1 rightarrow=2192 rightarrowtail=21a3 rightharpoondown=21c1 rightharpoonup=21c0 rightleftarrows=21c4 rightleftharpoons=21cc rightrightarrows=21c9 rightsquigarrow=219d rightthreetimes=22cc ring=2da risingdotseq=2253 rlarr=21c4 rlhar=21cc rlm=200f rmoust=23b1 rmoustache=23b1 rnmid=2aee roang=27ed roarr=21fe robrk=27e7 ropar=2986 ropf=1d563 roplus=2a2e rotimes=2a35 rpar=29 rpargt=2994 rppolint=2a12 rrarr=21c9 rsaquo=203a rscr=1d4c7 rsh=21b1 rsqb=5d rsquo=2019 rsquor=2019 rthree=22cc rtimes=22ca rtri=25b9 rtrie=22b5 rtrif=25b8 rtriltri=29ce ruluhar=2968 rx=211e sacute=15b sbquo=201a sc=227b scE=2ab4 scap=2ab8 scaron=161 sccue=227d sce=2ab0 scedil=15f scirc=15d scnE=2ab6 scnap=2aba scnsim=22e9 scpolint=2a13 scsim=227f scy=441 sdot=22c5 sdotb=22a1 sdote=2a66 seArr=21d8 searhk=2925 searr=2198 searrow=2198 sect=a7 semi=3b seswar=2929 setminus=2216 setmn=2216 sext=2736 sfr=1d530 sfrown=2322 sharp=266f shchcy=449 shcy=448 shortmid=2223 shortparallel=2225 shy=ad sigma=3c3 sigmaf=3c2 sigmav=3c2 sim=223c simdot=2a6a sime=2243 simeq=2243 simg=2a9e simgE=2aa0 siml=2a9d simlE=2a9f simne=2246 simplus=2a24 simrarr=2972 slarr=2190 smallsetminus=2216 smashp=2a33 smeparsl=29e4 smid=2223 smile=2323 smt=2aaa smte=2aac smtes=2aac,fe00 softcy=44c sol=2f solb=29c4 solbar=233f sopf=1d564 spades=2660 spadesuit=2660 spar=2225 sqcap=2293 sqcaps=2293,fe00 sqcup=2294 sqcups=2294,fe00 sqsub=228f sqsube=2291 sqsubset=228f sqsubseteq=2291 sqsup=2290 sqsupe=2292 sqsupset=2290 sqsupseteq=2292 squ=25a1 square=25a1 squarf=25aa squf=25aa srarr=2192 sscr=1d4c8 ssetmn=2216 ssmile=2323 sstarf=22c6 star=2606 starf=2605 straightepsilon=3f5 straightphi=3d5 strns=af sub=2282 subE=2ac5 subdot=2abd sube=2286 subedot=2ac3 submult=2ac1 subnE=2acb subne=228a subplus=2abf subrarr=2979 subset=2282 subseteq=2286 subseteqq=2ac5 subsetneq=228a subsetneqq=2acb subsim=2ac7 subsub=2ad5 subsup=2ad3 succ=227b succapprox=2ab8 succcurlyeq=227d succeq=2ab0 succnapprox=2aba succneqq=2ab6 succnsim=22e9 succsim=227f sum=2211 sung=266a sup=2283 sup1=b9 sup2=b2 sup3=b3 supE=2ac6 supdot=2abe supdsub=2ad8 supe=2287 supedot=2ac4 suphsol=27c9 suphsub=2ad7 suplarr=297b supmult=2ac2 supnE=2acc supne=228b supplus=2ac0 supset=2283 supseteq=2287 supseteqq=2ac6 supsetneq=228b supsetneqq=2acc supsim=2ac8 supsub=2ad4 supsup=2ad6 swArr=21d9 swarhk=2926 swarr=2199 swarrow=2199 swnwar=292a szlig=df target=2316 tau=3c4 tbrk=23b4 tcaron=165 tcedil=163 tcy=442 tdot=20db telrec=2315 tfr=1d531 there4=2234 therefore=2234 theta=3b8 thetasym=3d1 thetav=3d1 thickapprox=2248 thicksim=223c thinsp=2009 thkap=2248 thksim=223c thorn=fe tilde=2dc times=d7 timesb=22a0 timesbar=2a31 timesd=2a30 tint=222d toea=2928 top=22a4 topbot=2336 topcir=2af1 topf=1d565 topfork=2ada tosa=2929 tprime=2034 trade=2122 triangle=25b5 triangledown=25bf triangleleft=25c3 trianglelefteq=22b4 triangleq=225c triangleright=25b9 trianglerighteq=22b5 tridot=25ec trie=225c triminus=2a3a triplus=2a39 trisb=29cd tritime=2a3b trpezium=23e2 tscr=1d4c9 tscy=446 tshcy=45b tstrok=167 twixt=226c twoheadleftarrow=219e twoheadrightarrow=21a0 uArr=21d1 uHar=2963 uacute=fa uarr=2191 ubrcy=45e ubreve=16d ucirc=fb ucy=443 udarr=21c5 udblac=171 udhar=296e ufisht=297e ufr=1d532 ugrave=f9 uharl=21bf uharr=21be uhblk=2580 ulcorn=231c ulcorner=231c ulcrop=230f ultri=25f8 umacr=16b uml=a8 uogon=173 uopf=1d566 uparrow=2191 updownarrow=2195 upharpoonleft=21bf upharpoonright=21be uplus=228e upsi=3c5 upsih=3d2 upsilon=3c5 upuparrows=21c8 urcorn=231d urcorner=231d urcrop=230e uring=16f urtri=25f9 uscr=1d4ca utdot=22f0 utilde=169 utri=25b5 utrif=25b4 uuarr=21c8 uuml=fc uwangle=29a7 vArr=21d5 vBar=2ae8 vBarv=2ae9 vDash=22a8 vangrt=299c varepsilon=3f5 varkappa=3f0 varnothing=2205 varphi=3d5 varpi=3d6 varpropto=221d varr=2195 varrho=3f1 varsigma=3c2 varsubsetneq=228a,fe00 varsubsetneqq=2acb,fe00 varsupsetneq=228b,fe00 varsupsetneqq=2acc,fe00 vartheta=3d1 vartriangleleft=22b2 vartriangleright=22b3 vcy=432 vdash=22a2 vee=2228 veebar=22bb veeeq=225a vellip=22ee verbar=7c vert=7c vfr=1d533 vltri=22b2 vnsub=2282,20d2 vnsup=2283,20d2 vopf=1d567 vprop=221d vrtri=22b3 vscr=1d4cb vsubnE=2acb,fe00 vsubne=228a,fe00 vsupnE=2acc,fe00 vsupne=228b,fe00 vzigzag=299a wcirc=175 wedbar=2a5f wedge=2227 wedgeq=2259 weierp=2118 wfr=1d534 wopf=1d568 wp=2118 wr=2240 wreath=2240 wscr=1d4cc xcap=22c2 xcirc=25ef xcup=22c3 xdtri=25bd xfr=1d535 xhArr=27fa xharr=27f7 xi=3be xlArr=27f8 xlarr=27f5 xmap=27fc xnis=22fb xodot=2a00 xopf=1d569 xoplus=2a01 xotime=2a02 xrArr=27f9 xrarr=27f6 xscr=1d4cd xsqcup=2a06 xuplus=2a04 xutri=25b3 xvee=22c1 xwedge=22c0 yacute=fd yacy=44f ycirc=177 ycy=44b yen=a5 yfr=1d536 yicy=457 yopf=1d56a yscr=1d4ce yucy=44e yuml=ff zacute=17a zcaron=17e zcy=437 zdot=17c zeetrf=2128 zeta=3b6 zfr=1d537 zhcy=436 zigrarr=21dd zopf=1d56b zscr=1d4cf zwj=200d zwnj=200c";let Nh;function FY(e){if(Nh===void 0){Nh=new Map;for(const t of HY.split(" ")){const r=t.indexOf("="),s=t.slice(r+1).split(",").map(o=>parseInt(o,16));Nh.set(t.slice(0,r),String.fromCodePoint(...s))}}return Nh.get(e)}const UY=/^&(?:#[xX]([0-9a-fA-F]{1,6})|#([0-9]{1,7})|([A-Za-z][A-Za-z0-9]{0,31}));/;function uk(e,t){const r=UY.exec(e.slice(t,t+40));if(r==null)return null;const[s,o,l,u]=r,f=t+s.length;if(u!=null){const m=FY(u);return m===void 0?null:{value:m,end:f}}const d=o!=null?parseInt(o,16):parseInt(l??"0",10);return{value:d!==0&&d<=1114111&&(d<55296||d>57343)?String.fromCodePoint(d):"�",end:f}}function dk(e){return e!=null&&/^[!-/:-@[-`{-~]$/.test(e)}function VY(e){if(!e.includes("\\")&&!e.includes("&"))return e;let t="",r=0;for(;r<e.length;){const s=e[r];if(s==="\\"&&r+1<e.length&&dk(e[r+1])){t+=e[r+1],r+=2;continue}if(s==="&"){const o=uk(e,r);if(o!=null){t+=o.value,r=o.end;continue}}t+=s,r++}return t}function GY(e){const t=e?.start.offset,r=e?.end.offset;return t==null||r==null?{}:{range:{start:t,end:r}}}function vR(e,t){if(t||e.position===void 0)return e;const{position:r,...s}=e;return s}function vi(e,t,r){const s=t.get(e);if(s!=null)return s;let o;switch(e.type){case"text":o={type:"text",content:e.value};break;case"strong":o={type:"bold",children:e.children.map(l=>vi(l,t,r))};break;case"emphasis":o={type:"italic",children:e.children.map(l=>vi(l,t,r))};break;case"delete":o={type:"strikethrough",children:e.children.map(l=>vi(l,t,r))};break;case"inlineCode":o={type:"code",content:e.value};break;case"inlineMath":o={type:"math",value:e.value};break;case"link":o={type:"link",href:e.url,children:e.children.map(l=>vi(l,t,r))};break;case"image":o={type:"image",src:e.url,alt:e.alt};break;case"citation":o={type:"citation",sourceId:e.sourceId};break;case"break":o={type:"break"};break;case"extension":o=vR(e,r);break}return t.set(e,o),o}function G3(e,t,r){const s=t.get(e);if(s!=null)return s;const o={children:e.children.map(l=>vi(l,t,r))};return t.set(e,o),o}function KY(e,t,r){const s=t.get(e);if(s!=null)return s;const o={checked:e.checked,children:e.children.map(l=>Vu(l,t,r))};return t.set(e,o),o}function Vu(e,t,r){const s=t.get(e);if(s!=null)return s;const o=r?GY(e.position):{};let l;switch(e.type){case"heading":l={type:"heading",level:e.depth,children:e.children.map(u=>vi(u,t,r)),...o};break;case"paragraph":l={type:"paragraph",children:e.children.map(u=>vi(u,t,r)),...o};break;case"code":l={type:"codeblock",language:nR(e)??"plaintext",content:e.value,...o};break;case"math":l={type:"math",value:e.value,...o};break;case"blockquote":l={type:"blockquote",children:e.children.map(u=>Vu(u,t,r)),...o};break;case"list":l={type:"list",ordered:e.ordered,start:e.start,delimiter:e.delimiter,loose:e.spread,items:e.children.map(u=>KY(u,t,r)),...o};break;case"table":{const[u={type:"tableRow",children:[]},...f]=e.children;l={type:"table",headers:u.children.map(d=>G3(d,t,r)),alignments:[...e.align],rows:f.map(d=>d.children.map(p=>G3(p,t,r))),...o};break}case"thematicBreak":l={type:"hr",...o};break;case"image":l={type:"image",alt:e.alt,src:e.url,...o};break;case"extension":l=vR(e,r);break}return t.set(e,l),l}const WY=100;function wR(e,t){return`${e}\0${t}`}function Ap(e){return{sourceIds:e.sourceIds,autolink:e.autolink,math:e.math,sourceRanges:e.sourceRanges,astPositions:e.astPositions??!0,plugins:e.plugins,isFinal:e.isFinal,allowBlockSyntax:e.allowBlockSyntax??!0,baseOffset:e.baseOffset,linkDefs:e.linkDefs,blockDepth:e.blockDepth??0,nestedParses:e.nestedParses,probing:e.probing,sourceLines:e.sourceLines,baseLine:e.baseLine,lineOrigin:e.lineOrigin}}const YY=Ap({isFinal:!0}),XY=Ap({isFinal:!1});function fk(e,t=!1){if(e==null)return t?XY:YY;if(typeof e.has=="function")return Ap({sourceIds:e,isFinal:!t});const r=e,s=r.plugins!=null&&r.plugins.length>0?xR(r.plugins):void 0;return Ap({sourceIds:r.sourceIds,autolink:r.autolink,math:r.math===!0?!0:void 0,sourceRanges:r.sourceRanges,plugins:s,isFinal:t?r.isFinal===!0:!0,sourceLines:s?.sourceLines===!0?!0:void 0})}const ZY=/^ {0,3}\[([^\]^](?:\\.|[^\]\\])*)\]:[ \t]*(?:<([^<>\n]*)>|(\S+))([ \t]+(?:"[^"\n]*"|'[^'\n]*'|\([^()\n]*\)))?[ \t]*$/,fb=999,QY=/^ {0,3}(?:"[^"\n]*"|'[^'\n]*'|\([^()\n]*\))[ \t]*$/;function hc(e){return e.trim().replace(/\s+/g," ").toLowerCase()}function K3(e){let t=e.endsWith("\r")?e.slice(0,-1):e,r=0;for(;;){const s=/^ {0,3}> ?/.exec(t);if(s==null)return{content:t,quoteDepth:r};t=t.slice(s[0].length),r++}}function W3(e,t){let r=e;for(let s=0;s<t;s++){const o=/^ {0,3}> ?/.exec(r);if(o==null)return null;r=r.slice(o[0].length)}return r}function SR(e){const t=K3(e),r=/^( {0,9})(?:[-*+]|\d+[.)]) +(.*)$/.exec(t.content);if(r!=null){const s=/^\[[ xX]\] +(.*)$/.exec(r[2]),o=K3(s?.[1]??r[2]);return o.content.trim()==="$$"?{outerQuoteDepth:t.quoteDepth,listBaseIndent:r[1].length,innerQuoteDepth:o.quoteDepth}:null}return t.content.trim()==="$$"?{outerQuoteDepth:t.quoteDepth,listBaseIndent:null,innerQuoteDepth:0}:null}function ER(e,t){const r=W3(e,t.outerQuoteDepth);if(r==null)return"outside";if(t.listBaseIndent==null)return/^ {0,3}> ?/.test(r)?"outside":r.trim()==="$$"?"close":"inside";if(r.length-r.trimStart().length<=t.listBaseIndent)return"outside";const o=W3(r.trimStart(),t.innerQuoteDepth);return o==null||/^ {0,3}> ?/.test(o)?"outside":o.trim()==="$$"?"close":"inside"}function hb(e,t){const r=e[t].trim();if(r.length>4&&r.startsWith("$$")&&r.endsWith("$$")){const s=r.slice(2,-2);return s.trim()===""?null:{value:s,nextIndex:t+1,endLine:t}}if(r!=="$$")return null;for(let s=t+1;s<e.length;s++)if(e[s].trim()==="$$"){const o=e.slice(t+1,s).join(`
|
|
147
|
-
`);return o.trim()===""?null:{value:o,nextIndex:s+1,endLine:s}}return null}function JY(e){const t=ZY.exec(e);if(t==null||t[1].length>fb)return null;const r=hc(t[1]),s=t[2]!=null?t[2]:t[3];return r===""||s==null?null:{label:r,destination:Lp(s),hasTitle:t[4]!=null}}const id=/^( {0,3})(`{3,}|~{3,})/;function pb(e,t){const r=/^ {0,3}(`{3,}|~{3,})[ \t]*\r?$/.exec(e);return r!=null&&r[1].startsWith(t[0])&&r[1].length>=t.length}function eX(e){if(qi(e))return null;const t=/^( {0,9})([-*+]|\d+[.)]) /.exec(e);if(t==null)return null;const r=t[0].length,s=Fs(e.slice(r));return{base:t[1].length,content:s>=4?r:r+s,ordered:t[2]!=="-"&&t[2]!=="*"&&t[2]!=="+"}}function hk(){let e="",t=null,r=!1,s="",o=!1,l=!1;const u=d=>/^ {0,3}#{1,6}(?:[ \t]|$)/.test(d)||qi(d),f=d=>{if(s!==""){pb(d,s)&&(s=""),o=!1;return}const p=id.exec(d);if(p!=null){s=p[2],o=!1;return}o=d.trim()!==""&&!u(d)};return{get open(){return e!==""},read(d,p){const m=d[p];if(e!=="")return pb(m,e)?(e="","close"):"inside";if(m.trim()==="")return r=t!=null,l=!1,null;const y=Fs(m);if(t!=null&&(r?y>=t.content:y>t.base))return f(m.slice(Math.min(y,t.content))),null;const k=eX(m);if(k!=null&&!(l&&t==null&&k.ordered&&!/^ {0,9}0*1[.)]/.test(m)))return t=k,r=!1,s="",l=!1,f(m.slice(k.content)),null;const v=id.exec(m);return v!=null?(t=null,l=!1,e=v[2],"open"):(t!=null&&!r&&o&&ec(d,p)||(t=null,l=!u(m)),null)}}}function Mp(e,t=!1){const r=e.split(`
|
|
148
|
-
`),s=new Map,o=new Array(r.length).fill(!0);let l=!0;const u=hk();for(let p=0;p<r.length;p++){const m=r[p];if(u.open){l=u.read(r,p)==="close";continue}if(t){const y=hb(r,p);if(y!=null){p=y.endLine,l=!0;continue}}if(u.read(r,p)==="open"){l=!1;continue}if(m.trim()===""){l=!0;continue}if(l){const y=JY(m);if(y!=null){s.has(y.label)||s.set(y.label,y.destination),o[p]=!1,!y.hasTitle&&p+1<r.length&&QY.test(r[p+1])&&(o[p+1]=!1,p++);continue}}l=/^ {0,3}#{1,6}(?: |\t|$)/.test(m)||qi(m)}if(s.size===0)return{defs:s,cleaned:e};const f=[];for(let p=0;p<r.length;p++)o[p]&&f.push(p);const d=f.map(p=>r[p]).join(`
|
|
149
|
-
`);return{defs:s,cleaned:d,lineMap:f}}function tX(e){return e==null||e.size===0?"":[...e].sort().join("\0")}function $R(e){return e.size===0?"":[...e].sort((t,r)=>t[0]<r[0]?-1:t[0]>r[0]?1:0).map(([t,r])=>`${t}\0${r}`).join("")}function Np(e){return e.plugins==null?e:{...e,plugins:void 0}}function nX(e,t,r,s,o,l){const u=l.openerClose(t);if(u===-1)return null;const f=e.slice(t+1,u);if(e[u+1]==="["){const p=l.closingBracket(u+2);if(p!==-1){const m=e.slice(u+2,p),y=m===""?f:m,k=r.get(hc(y));if(k!=null&&Xa(k))return{node:{type:"link",url:k,children:pc(f,Np(s),o)},end:p+1}}}if(f.trim()==="")return null;const d=r.get(hc(f));return d==null||!Xa(d)?null:{node:{type:"link",url:d,children:pc(f,Np(s),o)},end:u+1}}let d1=0;const rX=10;function zp(e,t,r){if(d1>=rX)return VY(e);d1++;try{return Md(TR(pc(e,Np(t),r)))}finally{d1--}}function TR(e){return e.map(t=>{switch(t.type){case"break":return{type:"text",value:`
|
|
150
|
-
`};case"strong":case"emphasis":case"delete":case"link":return{...t,children:TR(t.children)};case"text":case"inlineCode":case"inlineMath":case"image":case"citation":case"extension":return t}})}function aX(e,t,r,s,o,l){const u=s.openerClose(t+1);if(u===-1)return null;const f=e.slice(t+2,u);if(e[u+1]==="["){const p=s.closingBracket(u+2);if(p!==-1){const m=e.slice(u+2,p),y=m===""?f:m,k=r.get(hc(y));if(k!=null&&Xa(k))return{node:{type:"image",url:k,alt:zp(f,o,l)},end:p+1}}}if(f.trim()==="")return null;const d=r.get(hc(f));return d==null||!Xa(d)?null:{node:{type:"image",url:d,alt:zp(f,o,l)},end:u+1}}const sX=/^\s*(?:<((?:[^<>\n\\]|\\.)*)>|([^\s<]\S*?))(?:\s+(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\((?:[^()\\]|\\.)*\)))?\s*$/s;function xb(e,t){let r=t+1;for(;e[r]===" "||e[r]===" ";)r++;if(e[r]!=="<")return null;for(r++;r<e.length;r++){const o=e[r];if(o==="\\"&&e[r+1]!==`
|
|
151
|
-
`&&e[r+1]!=="\r")r++;else{if(o===`
|
|
152
|
-
`||o==="\r"||o==="<")return"refused";if(o===">")break}}if(r>=e.length)return"refused";for(r++;/\s/.test(e[r]??"");)r++;const s=e[r];if(s==='"'||s==="'"||s==="("){const o=s==="("?")":s;for(r++;r<e.length&&e[r]!==o;r++)if(e[r]==="\\")r++;else if(s==="("&&e[r]==="(")return"refused";for(r++;/\s/.test(e[r]??"");)r++}return e[r]===")"?r:"refused"}function gb(e){const t=sX.exec(e);return t==null?e:t[1]??t[2]??e}function Lp(e){if(!e.includes("\\")&&!e.includes("&"))return e;let t="",r=0;for(;r<e.length;){const s=e[r];if(s==="\\"&&dk(e[r+1])){t+=e[r+1],r+=2;continue}if(s==="&"){const o=uk(e,r);if(o!=null){t+=o.value,r=o.end;continue}}t+=s,r++}return t}function oX(e,t){let r=null;const s=(y,k)=>{if(r==null){r=new Map;for(let E=e.indexOf("`");E!==-1;){let R=E;for(;e[R]==="`";)R++;const C=r.get(R-E);C==null?r.set(R-E,[E]):C.push(E),E=e.indexOf("`",R)}}const v=r.get(k);if(v==null)return-1;let w=0,S=v.length;for(;w<S;){const E=w+S>>1;v[E]<y?w=E+1:S=E}return w<v.length?v[w]:-1};let o=null;const l=y=>{if(o==null){const k=new Uint8Array(e.length);for(let v=0;v<e.length;v++){const w=e[v];if(w==="\\")v++;else if(w==="`"){let S=v;for(;e[S]==="`";)S++;const E=s(S,S-v);v=(E===-1?S:E+(S-v))-1}else w==="]"&&(k[v]=1)}o=new Int32Array(e.length+1).fill(-1);for(let v=e.length-1;v>=0;v--)o[v]=k[v]===1?v:o[v+1]}return y<e.length?o[y]:-1};let u=null;const f=y=>{if(u==null){u=new Int32Array(e.length).fill(-1);const k=[];for(let v=0;v<e.length;v++){const w=e[v];if(w==="\\")v++;else if(w==="(")k.push(v);else if(w===")"){const S=k.pop();S!==void 0&&(u[S]=v)}}}return e[y]==="("?u[y]:-1},d=(y,k)=>{if(e[k+1]==="("){const S=xb(e,k+1),E=S==="refused"?-1:S??f(k+1);if(E!==-1)return E+1}if(t==null||k-y-1>fb)return-1;const v=e.slice(y+1,k),w=S=>{const E=t.get(hc(S));return E!=null&&Xa(E)};if(e[k+1]==="["){const S=l(k+2);if(S!==-1&&S-k-2<=fb&&w(S===k+2?v:e.slice(k+2,S)))return S+1}return v.trim()!==""&&w(v)?k+1:-1};let p=null;return{backtickCloser:s,closingBracket:l,closingParen:f,openerClose:y=>{if(p==null){p=new Map;const k=[];let v=0;for(let w=0;w<e.length;w++){const S=e[w];if(S==="\\")w++;else if(S==="`"){let E=w;for(;e[E]==="`";)E++;const R=s(E,E-w);w=(R===-1?E:R+(E-w))-1}else if(S==="!"&&e[w+1]==="[")k.push({index:w+1,image:!0}),w++;else if(S==="[")k.push({index:w,image:!1});else if(S==="]"&&k.length>0){const E=k.length-1,R=k[E];k.pop();const C=R.image||E>=v;if(v=Math.min(v,E),!C)continue;const T=d(R.index,w);if(T===-1)continue;p.set(R.index,w),R.image||(v=k.length),w=T-1}}}return p.get(y)??-1}}}function Cu(e,t,r){const s=e[e.length-1];s?.type==="text"&&t?.has(s)!==!0?e[e.length-1]={...s,value:s.value+r}:e.push({type:"text",value:r})}const Y3=/^[\t\n\f\r\p{Zs}]$/u,X3=/^[\p{P}\p{S}]$/u;function iX(e,t){if(t<=0)return;const r=e.charCodeAt(t-1);if(r>=56320&&r<=57343&&t>=2){const s=e.charCodeAt(t-2);if(s>=55296&&s<=56319)return e.slice(t-2,t)}return e[t-1]}function lX(e,t){if(t>=e.length)return;const r=e.codePointAt(t);return r==null?void 0:String.fromCodePoint(r)}function cX(e,t,r,s){const o=iX(t,r),l=lX(t,s),u=o==null||Y3.test(o),f=l==null||Y3.test(l),d=o!=null&&X3.test(o),p=l!=null&&X3.test(l),m=!f&&(!p||u||d),y=!u&&(!d||f||p);return{node:{type:"text",value:t.slice(r,s)},character:e,originalLength:s-r,length:s-r,canOpen:e==="*"?m:m&&(!y||d),canClose:e==="*"?y:y&&(!m||p)}}const uX=100;function dX(e,t){const r={node:{type:"text",value:""},previous:null,next:null};let s=r;const o=new Map;for(const w of e){const S={node:w,previous:s,next:null};s.next=S,s=S,o.set(w,S)}const l=w=>{w.previous!=null&&(w.previous.next=w.next),w.next!=null&&(w.next.previous=w.previous)},u=t.map((w,S)=>({run:w,index:S,previous:null,next:null,depthAfter:0,canClose:w.canClose}));u.forEach((w,S)=>{w.previous=u[S-1]??null,w.next=u[S+1]??null});const f=w=>{w.previous!=null&&(w.previous.next=w.next,w.previous.depthAfter=Math.max(w.previous.depthAfter,w.depthAfter)),w.next!=null&&(w.next.previous=w.previous)},d=new Map;let p=null,m=u[0]??null;for(;m!=null;){const w=m.run;if(!m.canClose||w.length===0){m=m.next;continue}const S=`${w.character}${w.canOpen?1:0}${w.originalLength%3}`,E=d.get(S)??-1;let R=m.previous;for(;R!=null&&R.index>E;){const M=R.run,H=(w.canOpen||M.canClose)&&(M.originalLength+w.originalLength)%3===0&&!(M.originalLength%3===0&&w.originalLength%3===0);if(M.character===w.character&&M.canOpen&&M.length>0&&!H)break;R=R.previous}if(R==null||R.index<=E){d.set(S,m.index-1);const M=m.next;w.canOpen||f(m),m=M;continue}const C=R.run;let T=R.depthAfter;for(let M=R.next;M!=null&&M!==m;M=M.next)T=Math.max(T,M.depthAfter);if(R.next=m,m.previous=R,R.depthAfter=T,T>=uX){const M=m.next;f(R),m.canClose=!1,w.canOpen||f(m),m=M;continue}const A=o.get(C.node),N=o.get(w.node);if(A==null||N==null)break;const L=C.length>=2&&w.length>=2?2:1,D=[];for(let M=A.next;M!=null&&M!==N;M=M.next)D.push(M.node);let j;if(L===2)j={type:"strong",children:D},p={node:j,opener:C,closer:w};else{const[M]=D;j=D.length===1&&M===p?.node&&p.opener===C&&p.closer===w&&M.type==="strong"?{type:"strong",children:[{type:"emphasis",children:M.children}]}:{type:"emphasis",children:D}}const O={node:j,previous:A,next:N};if(A.next=O,N.previous=O,R.depthAfter=T+1,C.length-=L,w.length-=L,C.node.value=C.character.repeat(C.length),w.node.value=w.character.repeat(w.length),C.length===0&&(l(A),f(R)),w.length===0){l(N);const M=m.next;f(m),m=M}}const y=new Set(t.filter(w=>w.length>0).map(w=>w.node)),k=[];let v=!1;for(let w=r.next;w!=null;w=w.next){const{node:S}=w,E=y.has(S),R=k[k.length-1];if(S.type==="text"&&R?.type==="text"&&(E||v)){k[k.length-1]={...R,value:R.value+S.value},v=!0;continue}k.push(E?{type:"text",value:S.value}:S),v=E}return k}function Dp(e,t){let r=0;for(let s=t-1;s>=0&&e[s]==="\\";s--)r++;return r%2===1}function CR(e,t){return e[t]==="$"&&e[t-1]!=="$"&&e[t+1]!=="$"&&e[t+1]!=null&&!/\s/.test(e[t+1])&&!/\d/.test(e[t-1]??"")&&!Dp(e,t)}function jR(e,t){if(!CR(e,t))return-1;for(let r=t+1;r<e.length;r++){if(e[r]===`
|
|
153
|
-
`)return-1;if(!(e[r]!=="$"||Dp(e,r)))return e[r-1]==="$"||e[r+1]==="$"||/\s/.test(e[r-1])||/\d/.test(e[r+1]??"")?-1:r}return-1}function fX(e,t,r){if(!r.sourceIds||e[t]!=="【")return null;const s=e.indexOf("】",t+1);if(s===-1)return null;const o=e.slice(t+1,s);return o.length===0||!r.sourceIds.has(o)?null:{sourceId:o,end:s+1}}function hX(e,t,r){if(!r.sourceIds||e[t]!=="[")return null;const s=e.indexOf("]",t+1);if(s===-1||e[s+1]==="(")return null;const o=e.slice(t+1,s);return o.length===0||!r.sourceIds.has(o)?null:{sourceId:o,end:s+1}}function Z3(e,t){return e.lastIndexOf(`
|
|
154
|
-
`,t-1)+1}function mb(e,t,r,s){const l=(r==="inline"?s.plugins?.inlineByFirstCharacter:s.allowBlockSyntax===!1?void 0:s.plugins?.blockByFirstCharacter)?.get(e[t]);if(l==null)return{status:"none"};const u=new Set;for(const f of l){if(u.has(f))continue;u.add(f);let d=!1;for(const R of f.contribution.startsWith){if(e.startsWith(R,t)){d=!0;break}if(!s.isFinal){const C=e.slice(t);if(C.length<R.length&&R.startsWith(C))return{status:"defer"}}}if(!d)continue;const p=Math.min(e.length,t+f.contribution.maxSpan);let m;try{m=f.contribution.tokenize({source:p===e.length?e:e.slice(0,p),offset:t,end:p,isFinal:s.isFinal,context:r,lineStart:Z3(e,t),column:t-Z3(e,t)})}catch{Ga(f.pluginName,"syntax");continue}if(m==null||typeof m!="object"||typeof m.then=="function"){Ga(f.pluginName,"syntax");continue}if(m.status==="no-match")continue;if(m.status==="defer")return!s.isFinal&&p===e.length&&e.length-t<f.contribution.maxSpan?{status:"defer"}:{status:"none"};if(m.status!=="match"||!Number.isInteger(m.end)||m.end<=t||m.end>p||m.node.type!=="extension"||m.node.plugin!==f.pluginName||m.node.display!==r||m.node.name.trim()===""||!ad(m.node.data)||!s.plugins?.renderers.has(`${f.pluginName}\0${m.node.name}`)){Ga(f.pluginName,"syntax");continue}const y=m.node,{source:k,position:v,...w}=y,S=(s.baseOffset??0)+t,E=(s.baseOffset??0)+m.end;return{status:"match",end:m.end,node:Object.freeze({...w,data:gR(m.node.data),source:e.slice(t,m.end),...s.sourceRanges&&r==="block"?{position:Object.freeze({start:Object.freeze({offset:S}),end:Object.freeze({offset:E})})}:null})}}return{status:"none"}}function pX(e,t){return e[t]===`
|
|
155
|
-
`?1:e[t]==="\r"&&e[t+1]===`
|
|
156
|
-
`?2:0}function Q3(e,t){return xX(e,t)}function xX(e,t){const r=fk(t),s=Jl(e,r);if((r.plugins?.transforms.length??0)===0)return s;const l=sd({type:"root",children:[{type:"paragraph",children:s}]},r.plugins,e,r.isFinal,"inline").children[0];return l?.type==="paragraph"?[...l.children]:s}function Jl(e,t,r="default"){const s=pc(e,t,r);return t.autolink==="gfm"?NR(s):s}function pc(e,t,r="default"){const s=[];let o=null,l=null;const u=oX(e,t.linkDefs),f=t.plugins!=null&&t.plugins.inlineByFirstCharacter.size>0?t.plugins.inlineByFirstCharacter:void 0;let d=0;for(;d<e.length;){if(e[d]==="\\"&&d+1<e.length){const y=pX(e,d+1);if(y>0){s.push({type:"break"}),d+=1+y;continue}if(dk(e[d+1])){s.push({type:"text",value:e[d+1]}),d+=2;continue}}if(e[d]==="`"){let y=d;for(;e[y]==="`";)y++;const k=y-d,v=u.backtickCloser(y,k);if(v===-1){Cu(s,l,e.slice(d,y)),d=y;continue}s.push({type:"inlineCode",value:r==="tableCell"?e.slice(y,v).replace(/\\\|/g,"|"):e.slice(y,v)}),d=v+k;continue}if(t.math&&e[d]==="$"){const y=jR(e,d);if(y!==-1){s.push({type:"inlineMath",value:e.slice(d+1,y)}),d=y+1;continue}}{const y=fX(e,d,t);if(y){s.push({type:"citation",sourceId:y.sourceId}),d=y.end;continue}}if(e[d]==="!"&&e[d+1]==="["){const y=u.openerClose(d+1);if(y!==-1&&e[y+1]==="("){const k=xb(e,y+1),v=k==="refused"?-1:k??u.closingParen(y+1);if(v!==-1){const w=Lp(gb(e.slice(y+2,v)));Xa(w)?s.push({type:"image",url:w,alt:zp(e.slice(d+2,y),t,r)}):s.push({type:"text",value:e.slice(d,v+1)}),d=v+1;continue}}}if(t.linkDefs!=null&&e[d]==="!"&&e[d+1]==="["){const y=aX(e,d,t.linkDefs,u,t,r);if(y){s.push(y.node),d=y.end;continue}}{const y=hX(e,d,t);if(y){s.push({type:"citation",sourceId:y.sourceId}),d=y.end;continue}}if(e[d]==="["){const y=u.openerClose(d);if(y!==-1&&e[y+1]==="("){const k=xb(e,y+1),v=k==="refused"?-1:k??u.closingParen(y+1);if(v!==-1){const w=Lp(gb(e.slice(y+2,v)));Xa(w)?s.push({type:"link",url:w,children:pc(e.slice(d+1,y),Np(t),r)}):s.push({type:"text",value:e.slice(d,v+1)}),d=v+1;continue}}}if(t.linkDefs!=null&&e[d]==="["){const y=nX(e,d,t.linkDefs,t,r,u);if(y){s.push(y.node),d=y.end;continue}}if(e[d]==="*"||e[d]==="_"){const y=e[d];let k=d+1;for(;e[k]===y;)k++;const v=cX(y,e,d,k);if(v.canOpen||v.canClose){s.push(v.node),(o??=[]).push(v),(l??=new Set).add(v.node),d=k;continue}if(f?.has(y)!==!0){Cu(s,l,e.slice(d,k)),d=k;continue}}if(e[d]==="~"&&e[d+1]==="~"){const y=e.indexOf("~~",d+2);if(y!==-1){s.push({type:"delete",children:pc(e.slice(d+2,y),t,r)}),d=y+2;continue}}if(f!==void 0){const y=mb(e,d,"inline",t);if(y.status==="match"){s.push(y.node),d=y.end;continue}if(y.status==="defer")break}if(e[d]==="&"){const y=uk(e,d);if(y!=null){Cu(s,l,y.value),d=y.end;continue}}let p=d+1;for(;p<e.length&&!"*_~`[!\\\n【&".includes(e[p])&&!(t.math&&e[p]==="$")&&(f===void 0||!f.has(e[p]));)p++;const m=e.slice(d,p);if(p<e.length&&e[p]===`
|
|
157
|
-
`){const y=m.endsWith("\r")?m.slice(0,-1):m;let k=0;for(;y[y.length-1-k]===" ";)k++;const v=y.slice(0,y.length-k);if(k>=2){v.length>0&&Cu(s,l,v),s.push({type:"break"}),d=p+1;continue}}Cu(s,l,m),d=p}return o==null?s:dX(s,o)}const RR="[^\\s<]+",gX="https?:\\/\\/",AR="[A-Za-z0-9._%+-]+",J3="[A-Za-z0-9-]+",MR=`${J3}(?:\\.${J3})+`,mX="[a-zA-Z][a-zA-Z0-9+.-]*",yX="[^<>\\s]*",bX=new RegExp(`${gX}${RR}`,"g"),kX=new RegExp(`www\\.${RR}`,"g"),vX=new RegExp(`${AR}@${MR}`,"g"),wX=new RegExp(`<(${mX}:${yX})>`,"g"),SX=new RegExp(`<(${AR}@${MR})>`,"g"),e$=new Set("?!.,:*_~"),EX=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._%+-@");function t$(e){let t=e;for(;t.length>0;){if(e$.has(t[t.length-1])){let r=t.length-1;for(;r>0&&e$.has(t[r-1]);)r--;t=t.slice(0,r);continue}if(t.endsWith(")")){let r=0,s=0;for(let o=0;o<t.length;o++)t[o]==="("?r++:t[o]===")"&&s++;if(s>r){t=t.slice(0,-1);continue}}break}return t}const $X=new Set("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789/=");function n$(e){return e==null?!0:!$X.has(e)}function TX(e){const t=[];{const o=new RegExp(wX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=l[1];Xa(u)&&t.push({start:l.index,end:l.index+l[0].length,href:u,display:u})}}{const o=new RegExp(SX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=l[1];t.push({start:l.index,end:l.index+l[0].length,href:`mailto:${u}`,display:u})}}{const o=new RegExp(bX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];if(!n$(u)||e.slice(l.index-2,l.index)==="](")continue;const f=t$(l[0]);f.length!==0&&t.push({start:l.index,end:l.index+f.length,href:f,display:f})}}{const o=new RegExp(kX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];if(!n$(u)||e.slice(l.index-3,l.index)==="://")continue;const f=t$(l[0]);f.length!==0&&t.push({start:l.index,end:l.index+f.length,href:`http://${f}`,display:f})}}{const o=new RegExp(vX.source,"g");let l;for(;(l=o.exec(e))!==null;){const u=e[l.index-1];u!=null&&EX.has(u)||e.slice(Math.max(0,l.index-7),l.index)!=="mailto:"&&t.push({start:l.index,end:l.index+l[0].length,href:`mailto:${l[0]}`,display:l[0]})}}t.sort((o,l)=>o.start-l.start);const r=[];let s=0;for(const o of t)o.start>=s&&(r.push(o),s=o.end);return r}function CX(e){const t=TX(e);if(t.length===0)return[{type:"text",value:e}];const r=[];let s=0;for(const o of t)o.start>s&&r.push({type:"text",value:e.slice(s,o.start)}),r.push({type:"link",url:o.href,children:[{type:"text",value:o.display}]}),s=o.end;return s<e.length&&r.push({type:"text",value:e.slice(s)}),r}function NR(e){const t=[];for(const r of e)if(r.type==="text"){const s=CX(r.value);for(const o of s){const l=t[t.length-1];o.type==="text"&&l?.type==="text"?t[t.length-1]={...l,value:l.value+o.value}:t.push(o)}}else r.type==="strong"||r.type==="emphasis"||r.type==="delete"?t.push({...r,children:NR(r.children)}):t.push(r);return t}function Fs(e){let t=0;for(;t<e.length&&e[t]===" ";)t++;return t}function qi(e){const t=e.trim(),r=t[0];if(t.length<3||r!=="-"&&r!=="*"&&r!=="_"||!t.endsWith(r))return!1;let s=0;for(let o=0;o<t.length;o++){const l=t[o];if(l===r)s++;else if(l!==" ")return!1}return s>=3}function jX(e){for(let t=0;t<e.length;t++){if(e[t]==="\\"){t++;continue}if(e[t]==="|")return!0}return!1}function Gu(e){if(!e.includes("|"))return!1;const r=e.split("|").map(s=>s.trim()).filter(s=>s.length>0);return r.length>0&&r.every(s=>/^:?-+:?$/.test(s))}function ld(e){return{...e,allowBlockSyntax:!1,sourceRanges:!1,astPositions:!1,blockDepth:e.blockDepth+1,baseLine:void 0,lineOrigin:void 0}}function zR(e,t){return t==null?ld(e):{...ld(e),lineOrigin:t}}function r$(e){const t=e.length-e.trimStart().length;return t<=3?t:null}const Op=/^ {0,3}>/;function RX(e){return e.replace(/^ {0,3}>[ \t]?/,"")}function AX(e){return!!(/^ {0,3}#{1,6} /.test(e)||id.test(e)||qi(e)||Op.test(e)||/^ {0,9}[-*+] /.test(e)||/^ {0,9}0*1[.)] /.test(e)||e.includes("|"))}function ec(e,t,r=!1){const s=e[t];return s==null||s.trim()===""||/^ {0,3}#{1,6} /.test(s)||id.test(s)||qi(s)||Op.test(s)||/^ {0,9}[-*+] /.test(s)||(r?/^ {0,9}\d+[.)] /.test(s):/^ {0,9}0*1[.)] /.test(s))?!1:!(s.includes("|")&&t+1<e.length&&Gu(e[t+1]))}function yb(e){const t=e[e.length-1];if(t==null)return!1;if(t.type==="paragraph")return!0;if(t.type==="blockquote")return yb(t.children);if(t.type==="list"){const r=t.children[t.children.length-1];return r!=null&&yb(r.children)}return!1}function LR(e,t){const r=t.nestedParses;r!=null&&(r.map??=new Map);const s=r?.map?.get(wR(t.blockDepth+1,e));return yb(s??Lo(e,{...ld(t),probing:!0}))}function f1(e){let t=0,r=e.length;for(;t<r&&(e[t]===" "||e[t]===" ");)t++;if(e[t]==="|")for(t++;t<r&&e[t]===" ";)t++;for(;r>t&&e[r-1]===" ";)r--;r>t&&e[r-1]==="|"&&r--;const s=e.slice(t,r),o=[];let l="";for(let u=0;u<s.length;u++)s[u]==="\\"&&u+1<s.length&&s[u+1]==="|"?(l+="\\|",u++):s[u]==="|"?(o.push(l.trim()),l=""):l+=s[u];return o.push(l.trim()),o}function MX(e,t,r){const s=f1(e[t]).map(d=>({type:"tableCell",children:Jl(d,r,"tableCell")})),o=f1(e[t+1]).map(d=>{const p=d.trim(),m=p.startsWith(":"),y=p.endsWith(":");return m&&y?"center":y?"right":m?"left":null}),l=[];let u=t+2;for(;u<e.length&&e[u].includes("|")&&e[u].trim()!=="";)l.push({type:"tableRow",children:f1(e[u]).map(d=>({type:"tableCell",children:Jl(d,r,"tableCell")}))}),u++;return{node:{type:"table",align:o,children:[{type:"tableRow",children:s},...l]},nextIndex:u}}function a$(e,t,r){if(t.length===0)return e;const s=t.filter((l,u)=>l.trim()!==""&&!r.has(u)).map(Fs),o=s.length===0?0:Math.min(...s);return`${e}
|
|
158
|
-
${t.map((l,u)=>l.trim()===""?"":l.slice(r.has(u)?Fs(l):o)).join(`
|
|
159
|
-
`)}`}function s$(e,t,r,s,o,l){const u=[],f=Fs(e[t]),d=r?e[t].match(/^ *(\d+)([.)]) /):null,p=d?d[2]:".",m=`\\${p}`,y=r?null:e[t].trimStart()[0],k=r?new RegExp(`^ {${f}}\\d+${m} `):new RegExp(`^ {${f}}\\${y} `),v=d?parseInt(d[1],10):void 0;let w=!1,S=t;const E=C=>k.test(C)&&!qi(C);for(;S<e.length&&E(e[S]);){const C=S,T=r?e[S].replace(new RegExp(`^ *\\d+${m} `),""):e[S].replace(/^ *[-*+] /,""),A=e[S].length-T.length,N=Fs(T),L=N>=4?A:A+N,D=T.match(/^\[([ xX])\] (.*)/);let j,O;D?(j=D[1].toLowerCase()==="x",O=D[2]):O=T,S++;const M=[],H=new Set;let F=ec([O],0,!0)?!0:void 0;for(;S<e.length&&e[S].trim()!=="";){if(Fs(e[S])>f){M.push(e[S]),F===!0&&!ec([e[S].trimStart()],0)&&(F=void 0),S++;continue}if(o(S)||!ec(e,S,!0)||(F===void 0&&(F=LR(a$(O,M,H),s)),!F))break;H.add(M.length),M.push(e[S]),S++}for(;;){let U=S;for(;U<e.length&&e[U].trim()==="";)U++;if(U===S||U>=e.length||Fs(e[U])<L)break;for(;S<U;S++)M.push("");for(;S<e.length&&e[S].trim()!==""&&Fs(e[S])>=L;)M.push(e[S]),S++;w=!0}const q=a$(O,M,H);if(l==null)u.push({type:"listItem",checked:j,children:Lo(q,ld(s))});else{const U=[];for(let _=C;_<S;_++)U.push(l(_));u.push({type:"listItem",checked:j,children:Lo(q,zR(s,U)),position:{start:{line:U[0]+1},end:{line:U[U.length-1]+1}}})}let B=S;for(;B<e.length&&e[B].trim()==="";)B++;B>S&&B<e.length&&E(e[B])&&(w=!0,S=B)}const R={type:"list",ordered:r,start:v,delimiter:r?p:void 0,spread:w||void 0,children:u};return cd.set(R,`${f}:${r?p:y}`),{node:R,nextIndex:S}}function o$(e,t){return NX(e,t)}function NX(e,t,r){const o=fk(t),l={type:"root",children:Lo(e,o)};return sd(l,o.plugins,e,o.isFinal,"block")}function Lo(e,t){if(t.blockDepth>=WY){const L=e.trim();return L===""?[]:[{type:"paragraph",children:Jl(L,t)}]}const r=t.nestedParses==null?{...t,nestedParses:{map:null}}:t,{defs:s,cleaned:o,lineMap:l}=Mp(e,r.math),u=r.linkDefs;let f;s.size===0?f=u:u==null?f=s:f=new Map([...s,...u]);const d=f!=null?{...r,linkDefs:f}:r,p=o.split(`
|
|
160
|
-
`),m=d.allowBlockSyntax!==!1&&(d.plugins?.blockByFirstCharacter.size??0)>0,y=[0];if(d.astPositions===!0||m){let L=0;for(let D=0;D<p.length;D++)L+=p[D].length+1,y.push(L)}const k=new Map,v=L=>{if(!m)return!1;const D=r$(p[L]);if(D==null)return!1;const j=y[L]+D,O=mb(o,j,"block",d);return O.status==="none"?!1:(k.set(j,O),!0)},w=[],S=LX(d,l),E=d.astPositions===!0||S!=null?[]:null,R=E!=null?[]:null;let C=0;const T=(L,D)=>{w.push(L),E?.push(C),R?.push(D)};let A=0;for(;A<p.length;){C=A;const L=p[A];if(L.trim()===""){A++;continue}const D=id.exec(L);if(D){const[F,q,B]=D,U=L.slice(F.length).trim(),_=U.match(/^(\S+)/)?.[1]??null,P=U.match(/^(\w*)/)?.[1]||null,G=_==null?void 0:U.slice(_.length).trim()||void 0,X=[],Z=new RegExp(`^ {0,${q.length}}`);for(A++;A<p.length&&!pb(p[A],B);)X.push(p[A].replace(Z,"")),A++;const Q=A<p.length;d.blockDepth===0&&!Q&&X.length>0&&p[p.length-1]===""&&X.pop(),A++,T(BW({type:"code",lang:_,...G==null?{}:{meta:G},value:X.join(`
|
|
161
|
-
`)},P),Math.min(A,p.length)-1);continue}if(d.math){const F=hb(p,A);if(F!=null){T({type:"math",value:F.value},F.endLine),A=F.nextIndex;continue}}const j=L.match(/^ {0,3}(#{1,6}) +(.*)/);if(j){T({type:"heading",depth:j[1].length,children:Jl(j[2],d)}),A++;continue}if(qi(L)){T({type:"thematicBreak"}),A++;continue}const O=L.match(/^!\[([^\]]*)\]\(([^)]+)\)/),M=O?Lp(gb(O[2])):"";if(O&&L.trim()===O[0]&&Xa(M)){T({type:"image",alt:zp(O[1],d,"default"),url:M}),A++;continue}if(A+1<p.length&&L.includes("|")&&Gu(p[A+1])){const F=MX(p,A,d);T(F.node),A=F.nextIndex;continue}if(Op.test(L)){const F=[];let q;for(;A<p.length;){const B=p[A];if(Op.test(B)){const U=RX(B);F.push(U),U.trim()===""?q=!1:(q===!1||q===!0&&!ec([U],0))&&(q=void 0),A++;continue}if(F[F.length-1]?.trim()===""||v(A)||!ec(p,A)||(q===void 0&&(q=LR(F.join(`
|
|
162
|
-
`),d)),!q))break;F.push(B),A++}T({type:"blockquote",children:Lo(F.join(`
|
|
163
|
-
`),zR(d,S==null?null:F.map((B,U)=>S(C+U))))});continue}if(/^ {0,9}[-*+] /.test(L)){const F=s$(p,A,!1,d,v,S);T(F.node),A=F.nextIndex;continue}if(/^ {0,9}\d+[.)] /.test(L)){const F=s$(p,A,!0,d,v,S);T(F.node),A=F.nextIndex;continue}if(m){const F=r$(L),q=F==null?y[A]:y[A]+F,B=k.get(q)??(F==null?{status:"none"}:mb(o,q,"block",d));if(k.delete(q),B.status==="match"){const U=B.end,_=o.slice(y[A],U);if(U<o.length&&o[U]!==`
|
|
164
|
-
`&&o[U-1]!==`
|
|
165
|
-
`)Ga(B.node.plugin,"syntax");else{const P=_.split(`
|
|
166
|
-
`).length-1,G=Math.max(1,P+(_.endsWith(`
|
|
167
|
-
`)?0:1));T(B.node,A+G-1),A+=G;continue}}if(B.status==="defer")break}const H=[L];for(A++;A<p.length;){const F=p[A];if(AX(F)||d.math&&hb(p,A)!=null||F.trim()===""||v(A))break;H.push(F),A++}T({type:"paragraph",children:Jl(H.join(`
|
|
168
|
-
`),d)})}E!=null&&zX(w,E,R??[],p,l,e,d,S);const N=r.nestedParses?.map;return r.probing===!0&&N!=null&&N.set(wR(r.blockDepth,e),w),w}function zX(e,t,r,s,o,l,u,f){const d=u.astPositions===!0,p=u.baseOffset??0,m=[0];if(d)for(let k=0;k<l.length;k++)l[k]===`
|
|
169
|
-
`&&m.push(k+1);const y=k=>p+m[o!=null?o[k]:k];for(let k=0;k<e.length;k++){const v=t[k];let w=r[k];if(w==null)for(w=(k+1<e.length?t[k+1]:s.length)-1;w>v&&s[w].trim()==="";)w--;let S;f==null?S={start:{offset:y(v)},end:{offset:y(w)+s[w].length}}:d?S={start:{offset:y(v),line:f(v)+1},end:{offset:y(w)+s[w].length,line:f(w)+1}}:S={start:{line:f(v)+1},end:{line:f(w)+1}},e[k]=pk(e[k],{...e[k],position:S})}}function LX(e,t){if(e.sourceLines!==!0)return null;const r=l=>t!=null?t[l]:l,s=e.lineOrigin;if(s!=null)return l=>s[r(l)];if(e.astPositions!==!0)return null;const o=e.baseLine??0;return l=>o+r(l)}const DR=new WeakMap;function OR(e){const{defs:t}=Mp(e.settledText,e.math),r={settledEnd:e.settledText.length,settledEndLine:void 0,settledLinkDefs:new Map(t),tailLinkDefs:new Map,linkDefs:t,linkDefsKey:$R(t),settledAstBlocks:[],settledRevision:0,projectedRevision:-1,projectedSettledBlocks:[],projectionCache:new WeakMap,work:{splitCharacters:0,boundaryLines:0,definitionCharacters:0,renderedBlocks:0}};return DR.set(e,r),r}function h1(){const e={prevInput:"",settledText:"",settledBlocks:[],settledUpTo:0};return OR(e),e}function DX(e,t=!1){const r=hk();let s=null,o=!1,l=-1,u=-1,f=-1;for(let d=0;d<e.length;d++){const p=e[d];if(r.open){r.read(e,d);continue}if(s!=null){const m=ER(p,s);if(m==="close"){s=null;continue}if(m==="inside")continue;s=null,o=!0}if(t&&!o){const m=SR(p);if(m!=null){s=m,f=l;continue}}if(r.read(e,d)==="open"){u=l;continue}p.trim()===""&&(o=!1,d>0&&d<e.length-1&&/^\S/.test(e[d+1])&&(l=d))}return{boundary:r.open?u:s!=null?f:l,openFence:r.open,openMath:s!=null}}function zh(e,t){const r=t?.math?IR(e):e,s=r.lastIndexOf(`
|
|
170
|
-
`),o=s===-1?"":r.slice(0,s+1);let l=s===-1?r:r.slice(s+1);if(t?.math)for(let d=0;d<l.length;d++){if(l[d]==="$"&&l[d+1]==null&&l[d-1]!=="$"&&!/\d/.test(l[d-1]??"")&&!Dp(l,d)){l=l.slice(0,d);break}if(!CR(l,d))continue;const p=jR(l,d);if(p!==-1){d=p;continue}let m=-1;for(let y=d+1;y<l.length;y++)if(l[y]==="$"&&!Dp(l,y)){m=y;break}if(m===-1){l=l.slice(0,d);break}d=m}const u=l.lastIndexOf("[");if(u!==-1){const d=l.slice(u);if(!(d.includes("](")&&d.includes(")"))){const m=u>0&&l[u-1]==="!"?u-1:u;l=l.slice(0,m)}}let f=l.length;for(;f>0&&l[f-1]==="`";)f--;if(f<l.length&&f>0){const d=l.length-f;l.lastIndexOf("`".repeat(d),f-1)===-1&&(l=l.slice(0,f))}for(f=l.length;f>0&&l[f-1]==="*";)f--;if(f<l.length&&f>0){const d=l.length-f;d<=3&&l.lastIndexOf("*".repeat(d),f-1)===-1&&(l=l.slice(0,f))}{let d=0;const p=[];for(;d<l.length;){const y=l.indexOf("*",d);if(y===-1)break;let k=1;for(;y+k<l.length&&l[y+k]==="*";)k++;if(k>3){d=y+k;continue}p.push({pos:y,len:k}),d=y+k}const m=new Set;for(let y=0;y<p.length;y++)if(!m.has(y)){for(let k=y+1;k<p.length;k++)if(!m.has(k)&&p[k].len===p[y].len){m.add(y),m.add(k);break}}for(let y=p.length-1;y>=0;y--)if(!m.has(y)){const k=p[y],v=l.slice(k.pos+k.len),w=v.length-v.trimEnd().length;w<v.length?l=l.slice(0,l.length-w)+"*".repeat(k.len)+l.slice(l.length-w):l=l.slice(0,k.pos)}}if(l.length>=2&&l.endsWith("~~"))l.lastIndexOf("~~",l.length-3)===-1&&(l=l.slice(0,-2));else if(l.endsWith("~")){const d=l.length-2;d>=0&&l[d]!=="~"&&(l=l.slice(0,-1))}{let d=0,p=0;const m=[];for(;;){const y=l.indexOf("~~",p);if(y===-1)break;m.push(y),d++,p=y+2}d%2===1&&(l=l.slice(0,m[m.length-1]))}return o+l}function IR(e){const t=e.split(`
|
|
171
|
-
`),r=hk();let s=null,o=!1,l=-1;for(let u=0;u<t.length;u++){const f=t[u];if(r.open){r.read(t,u);continue}if(s!=null){const p=ER(f,s);if(p==="close"){s=null,l=-1;continue}if(p==="inside")continue;s=null,l=-1,o=!0}if(f.trim()===""&&(o=!1),r.read(t,u)==="open")continue;const d=o?null:SR(f);d!=null&&(s=d,l=u)}return s!=null&&l>=0?t.slice(0,l).join(`
|
|
172
|
-
`).trimEnd():e}function OX(e){const t=e.split(`
|
|
173
|
-
`);for(;t.length>0;){const r=t[t.length-1],s=r.trim();if(s===""){t.pop();continue}if(/^ {0,9}[-*+] $/.test(r)||/^ {0,9}\d+[.)] $/.test(r)){t.pop();continue}if(jX(s)&&!Gu(r)){let o=!1;for(let l=t.length-2;l>=1;l--)if(Gu(t[l])&&t[l-1].includes("|")){o=!0;break}if(!o){t.pop();continue}}if(Gu(r)&&(t.length<2||!t[t.length-2].includes("|"))){t.pop();continue}break}return t.join(`
|
|
174
|
-
`)}function i$(e,t,r){return e.astPositions!==!0?e:e.sourceLines===!0?{...e,baseOffset:t,baseLine:r}:{...e,baseOffset:t}}function p1(e,t=0,r=e.length){let s=0;for(let o=e.indexOf(`
|
|
175
|
-
`,t);o!==-1&&o<r;)s++,o=e.indexOf(`
|
|
176
|
-
`,o+1);return s}const cd=new WeakMap;function _R(e,t){if(e.ordered!==t.ordered||e.delimiter!==t.delimiter)return!1;const r=cd.get(e),s=cd.get(t);return r==null||s==null||r===s}function pk(e,t){const r=cd.get(e);return r!=null&&cd.set(t,r),t}function IX(e,t){if(e.length===0||t.length===0)return[...e,...t];const r=e[e.length-1],s=t[0];if(r.type==="list"&&s.type==="list"&&_R(r,s)){const o={type:"list",ordered:r.ordered,start:r.start,delimiter:r.delimiter,spread:!0,children:[...r.children,...s.children],...r.position!=null&&s.position!=null?{position:{start:r.position.start,end:s.position.end}}:null};return[...e.slice(0,-1),pk(r,o),...t.slice(1)]}return[...e,...t]}function _X(e,t){if(t.length===0)return!1;if(e.length===0)return e.push(...t),!1;const r=e[e.length-1],s=t[0];return r.type==="list"&&s.type==="list"&&_R(r,s)?(e[e.length-1]=pk(r,{type:"list",ordered:r.ordered,start:r.start,delimiter:r.delimiter,spread:!0,children:[...r.children,...s.children],...r.position!=null&&s.position!=null?{position:{start:r.position.start,end:s.position.end}}:null}),e.push(...t.slice(1)),!0):(e.push(...t),!1)}function qX(e,t,r){for(const[s,o]of e)if(!r.has(s)&&t.get(s)!==o)return!1;for(const[s,o]of t)if(!r.has(s)&&e.get(s)!==o)return!1;return!0}function l$(e,t){e.prevInput="",e.settledText="",e.settledBlocks=[],e.settledUpTo=0,e.linkDefsKey=void 0,e.sourceIdsKey=void 0,e.pluginSyntaxIdentity=void 0,e.math=void 0,t.settledEnd=0,t.settledEndLine=0,t.settledLinkDefs.clear(),t.tailLinkDefs=new Map,t.linkDefs=new Map,t.linkDefsKey="",t.settledAstBlocks=[],t.settledRevision++,t.projectedRevision=-1,t.projectedSettledBlocks=[],t.projectionCache=new WeakMap,t.work={splitCharacters:0,boundaryLines:0,definitionCharacters:0,renderedBlocks:0}}function c$(e,t,r){const s=fk(r,!0),o={type:"root",children:PX(e,t,s)};return sd(o,s.plugins,e,s.isFinal,"block")}function PX(e,t,r){const s=DR.get(t)??OR(t);let o=!1;const l=tX(r.sourceIds),u=r.plugins?.syntaxIdentity??"";if((t.autolink!==r.autolink||t.math!==r.math||!!t.sourceRanges!=!!r.sourceRanges||t.sourceIdsKey!==l||t.pluginSyntaxIdentity!==u)&&(o=!0,t.autolink=r.autolink,t.math=r.math,t.sourceRanges=r.sourceRanges,t.sourceIdsKey=l,t.pluginSyntaxIdentity=u),e==="")return l$(t,s),[];(t.settledText.length!==s.settledEnd||!e.startsWith(t.settledText))&&(l$(t,s),t.autolink=r.autolink,t.math=r.math,t.sourceRanges=r.sourceRanges,t.sourceIdsKey=l,t.pluginSyntaxIdentity=u);const f=s.settledEnd,d=r.sourceLines===!0?s.settledEndLine??=p1(t.settledText):0,p=e.slice(f),m=p.split(`
|
|
177
|
-
`),{boundary:y,openFence:k,openMath:v}=DX(m,r.math),w=y>=0?m.slice(0,y).join(`
|
|
178
|
-
`):"",S=f+w.length,E=e.slice(S);let R=!1;if(w!==""){const{defs:H}=Mp(w,r.math);for(const[F,q]of H)s.settledLinkDefs.has(F)||(s.settledLinkDefs.set(F,q),s.linkDefs.get(F)!==q&&(R=!0))}const{defs:C}=Mp(E,r.math);qX(s.tailLinkDefs,C,s.settledLinkDefs)||(R=!0),s.tailLinkDefs=C,R&&(s.linkDefs=new Map([...C,...s.settledLinkDefs]),s.linkDefsKey=$R(s.linkDefs),o=!0),t.linkDefsKey=s.linkDefsKey;const T=s.linkDefs.size>0?{...r,linkDefs:s.linkDefs}:r;w!==""&&(t.settledText+=w,t.settledUpTo+=w.split(`
|
|
179
|
-
`).length-1,f===0&&t.settledUpTo++,s.settledEnd=S,s.settledEndLine=r.sourceLines===!0?d+p1(w):void 0);const A=E.replace(/^(?:[ \t]*\r?\n)+/,"").trimEnd(),N=A!==""&&/\r(?:\n[\s]*)?$/.test(E)?`${A}\r`:A,L=k?E.replace(/^(?:[ \t]*\r?\n)+/,""):v?IR(N):OX(N),D=r.sourceRanges===!0;let j=0;if(o)s.settledAstBlocks=t.settledText?Lo(t.settledText,T):[],j=s.settledAstBlocks.length,s.settledRevision++,s.projectedSettledBlocks=s.settledAstBlocks.map(H=>Vu(H,s.projectionCache,D)),s.projectedRevision=s.settledRevision;else if(w!==""){const H=Lo(w,i$(T,f,d)),F=s.settledAstBlocks.length-1,q=_X(s.settledAstBlocks,H);j=H.length,s.settledRevision++;const B=H.map(U=>Vu(U,s.projectionCache,D));if(q){const U=s.settledAstBlocks[F],_=Vu(U,s.projectionCache,D);s.projectedSettledBlocks[F]=_,s.projectedSettledBlocks.push(...B.slice(1))}else s.projectedSettledBlocks.push(...B);s.projectedRevision=s.settledRevision}const O=L&&r.astPositions===!0?e.indexOf(L,s.settledEnd):-1,M=L?Lo(L,O>=0?i$(T,O,r.sourceLines===!0?(s.settledEndLine??0)+p1(e,s.settledEnd,O):0):ld(T)):[];return t.prevInput=e,s.work={splitCharacters:p.length,boundaryLines:m.length,definitionCharacters:w.length+E.length,renderedBlocks:j+M.length},IX(s.settledAstBlocks,M)}function BX(e){return e.trim().toLowerCase().replace(/['"]/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function HX(e,t){const r=e||"section",s=t.get(r)??0;return t.set(r,s+1),s===0?r:`${r}-${s}`}const FX=Symbol("MarkdownFenceProposal");function UX(e){return e[FX]}class qR extends g.Component{state={failed:!1,resetKey:this.props.resetKey,resetRenderer:this.props.resetRenderer};static getDerivedStateFromError(){return{failed:!0}}static getDerivedStateFromProps(t,r){return t.resetKey===r.resetKey&&t.resetRenderer===r.resetRenderer?null:{failed:!1,resetKey:t.resetKey,resetRenderer:t.resetRenderer}}componentDidCatch(t){Ga(this.props.pluginName,"render")}render(){return this.state.failed?this.props.fallback:this.props.children}}function PR(e,t,r,s){const o=ck(e,t);if(o==null)return r;let l;try{l=o.render({node:t})}catch{return Ga(t.plugin,"render"),r}return x.jsx(qR,{pluginName:t.plugin,resetKey:t,resetRenderer:o.render,fallback:r,children:x.jsx(g.Suspense,{fallback:r,children:l})},s)}const VX="heading-links",BR="@astryxdesign/core/MarkdownHeadingLinksConfig",GX=Symbol.for(BR);MY(e=>e);function KX(e){return e.normalize("NFKC").trim().toLowerCase().replace(/['"]/gu,"").replace(/[^\p{Letter}\p{Number}]+/gu,"-").replace(/^-+|-+$/gu,"")}function WX(e,t){const r=e||"section";let s=t.get(r)??0,o=s===0?r:`${r}-${s}`;for(;t.has(o);)s++,o=`${r}-${s}`;return t.set(r,s+1),t.set(o,0),o}const YX="https://astryx.invalid/";function XX(e){try{return new URL(e,YX),!0}catch{return!1}}function ZX(e){const t=ik(e);if(t.name!==VX)return;const r=t[GX];if(!(r==null||typeof r!="object"||Object.getPrototypeOf(r)!==Object.prototype||Reflect.ownKeys(r).length!==4||!Object.isFrozen(r)||r.kind!==BR||r.apiVersion!==1||r.headingIdPrefix!==void 0&&typeof r.headingIdPrefix!="string"||typeof r.permalinkBaseUrl!="string"||r.permalinkBaseUrl.includes("#")||!XX(r.permalinkBaseUrl)||r.permalinkBaseUrl!==""&&dR(r.permalinkBaseUrl)!==r.permalinkBaseUrl))return r}function QX(e){if(e!=null)for(const t of e.entries){const r=ZX(t);if(r!=null)return r}}function JX(e,t){const r=QX(t);if(r==null)return;const s=new Map,o=new Map,l=new Map,u=new Map;return HW(e,"heading",f=>{const d=Md(f.children,y=>od(t,y)).trim(),p=WX(KX(d),u),m=r.headingIdPrefix!=null&&r.headingIdPrefix!==""?`${r.headingIdPrefix}--${p}`:p;s.set(f,m),o.set(f,d),l.set(f,`${r.permalinkBaseUrl}#${m}`)}),{ids:s,labels:o,permalinkUrls:l}}function eZ(e,t){const r=e.children.filter(d=>d.type==="heading"),s=JX(e,t);if(s!=null)return{...s,outline:r.map(d=>{const p=s.ids.get(d),m=s.labels.get(d);if(p==null||m==null)throw new Error("Heading-links projection omitted a root heading");return{id:p,label:m,level:d.depth}})};const o=new Map,l=new Map,u=new Map,f=r.map(d=>{const p=Md(d.children,y=>od(t,y)).trim(),m=HX(BX(p),u);return o.set(d,m),l.set(d,p),{id:m,label:p,level:d.depth}});return{ids:o,labels:l,permalinkUrls:new Map,outline:f}}const tZ=1500,nZ={start:"0",center:"auto"},u$={proseWidth:e=>[{ks0D6T:e!=null?"xf68679":e,$$css:!0},{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],proseAlign:e=>[{kUOVxO:e!=null?"xvlecxo":e,$$css:!0},{"--x-marginInline":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},bb={row:{k1xSpc:"x78zum5",kGNEyG:"xaz6w31",k7Eaqz:"xeuugli",ks0D6T:"x193iq5w",kVQacm:"x1rea2x4",kHBbk8:"xc8icb0",$$css:!0},heading:{kUk6DE:"xkz0k9k",k7Eaqz:"xeuugli",kqGvvJ:"x10im51j",$$css:!0},copyButton:{kVAEAm:"x10l6tqk",k87sOh:"xwa60dl",kzqmXN:"x1fvqzum x1c4064q",kZKoxP:"x6k0iem x1d3wnk4",k8WAf4:"xt970qd",kg3NbH:"xnjsko4",kMwMTN:"x1heor9g",kMv6JI:"xjb2p0i",kGuDYH:"x1qlqyl8",k63SB2:"x1pd3egz",kLWn49:"x15bjb6t",$$css:!0}},rZ=bb.heading;function aZ(e){return e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}function sZ({children:e,headingId:t,headingLabel:r,permalinkUrl:s,contentWidth:o,contentAlign:l,headingTextStyle:u,blockSpacingStyle:f}){const d=Nt(),p=d("@astryx.markdownHeadingLinks.copied"),m=d("@astryx.markdownHeadingLinks.copy",{heading:r||t}),{copy:y,isCopied:k}=B4({announce:p,resetAfterMs:tZ}),{getContainerProps:v,getContentRevealProps:w}=IU(),S=g.useCallback(E=>{aZ(E)&&y(new URL(s,window.location.href).href)},[y,s]);return x.jsxs("div",{...ye(v(),de(bb.row,u,f,o!=null?u$.proseWidth(o):null,l!=="start"?u$.proseAlign(nZ[l]):null)),children:[e,x.jsxs("span",{className:"x1n2onr6 x1rg5ohu x2lah0s x1vjfegm x1fvqzum x1c4064q x17lnmll xv1l7n4 xjb2p0i x1qlqyl8 x1pd3egz x15bjb6t",children:[x.jsx("span",{"aria-hidden":"true",className:"xlshs6z",children:"#"}),x.jsx(yt,{type:"button",variant:"ghost",size:"sm",label:k?p:m,icon:x.jsx("span",{"aria-hidden":"true",className:"x3nfvp2 x6s0dn4 xl56j7k x15vhz18 xlzyvqe",children:k?x.jsx(ft,{icon:"check",size:"sm",color:"inherit"}):"#"}),isIconOnly:!0,onClick:S,xstyle:[bb.copyButton,Wa.centerInline("-50%")],...w({isLayoutPreserved:!0})})]})]})}const oZ=["disc","circle","square"],iZ=["decimal","lower-alpha","lower-roman"];function x1(e){const t=e.position?.start.line,r=e.position?.end.line;return t==null||r==null?void 0:{start:t,end:r}}function g1(e){return e==null?void 0:{"data-source-line":String(e.start),"data-source-line-end":String(e.end)}}const ju={start:"0",center:"auto"},m1={start:null,center:"auto"},lZ={k7Eaqz:"xkj4a21",$$css:!0},yr={proseWidth:e=>[{ks0D6T:e!=null?"xf68679":e,$$css:!0},{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],proseAlign:e=>[{kUOVxO:e!=null?"xvlecxo":e,$$css:!0},{"--x-marginInline":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],blockWidth:e=>[lZ,{"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(`min(${e}, 100%)`)}],blockAlign:e=>[{kUOVxO:e!=null?"xvlecxo":e,$$css:!0},{"--x-marginInline":(t=>typeof t=="number"?t+"px":t??void 0)(e)}],cellMinWidth:e=>[{k7Eaqz:e!=null?"xkj4a21":e,$$css:!0},{"--x-minWidth":(t=>typeof t=="number"?t+"px":t??void 0)(e)}]},Lh={center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},kb={cell:{kB7OPa:"x1afcbsf",ks0D6T:"x1x1rfll",kVQacm:"x1rea2x4",kHjlTd:"x1mzt3pk",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kTgw9:"x1lldw8n",$$css:!0},headerCell:{kB7OPa:"x1afcbsf",ks0D6T:"x1x1rfll",kVQacm:"x1rea2x4",kHjlTd:"x1mzt3pk",k8WAf4:"xce4md1",kg3NbH:"xf314gf",kg5iWk:"xbrixnn",khDVqt:"xeaf4i8",kTgw9:"x1lldw8n",$$css:!0},code:{kTgw9:"x1lldw8n",$$css:!0}};function cZ({children:e}){return x.jsx(sk,{xstyle:kb.code,children:e})}const qe={root:{kMv6JI:"x9ynric",kMwMTN:"x1tgivj0",kLWn49:"xw6l6zx",kGuDYH:"xjm74w1",kzqmXN:"xh8yej3",ks0D6T:"x193iq5w",k7Eaqz:"xeuugli",kHjlTd:"x1mzt3pk",$$css:!0},inlineRoot:{k1xSpc:"xt0psk2",kzqmXN:"x14atkfc",ks0D6T:"x1x1rfll",kMv6JI:"xjb2p0i",kMwMTN:"x1heor9g",kLWn49:"x15bjb6t",kGuDYH:"x1qlqyl8",$$css:!0},headingBase:{kMv6JI:"x1g81bgm",kMwMTN:"x1tgivj0",$$css:!0},h1:{kGuDYH:"xcg7oai",k63SB2:"x1v68xuy",kLWn49:"xfmsba7",$$css:!0},h2:{kGuDYH:"x1xvnhcw",k63SB2:"x12yy4cs",kLWn49:"x1cpk1wn",$$css:!0},h3:{kGuDYH:"xii13ha",k63SB2:"x1jcxfy8",kLWn49:"xwjzt0u",$$css:!0},h4:{kGuDYH:"x8tkxat",k63SB2:"x2hcmsi",kLWn49:"xqerer",$$css:!0},h5:{kGuDYH:"xsgqta0",k63SB2:"xno150v",kLWn49:"xo3gurs",$$css:!0},h6:{kGuDYH:"xw5ohdf",k63SB2:"x1pw4frv",kLWn49:"xeixjfn",$$css:!0},spacingHeadingMajorDefault:{keoZOQ:"x13rv44w",k1K539:"xep27e5",$$css:!0},spacingHeadingMinorDefault:{keoZOQ:"x1s1qpeq",k1K539:"x1p37lm5",$$css:!0},spacingParagraphDefault:{keoZOQ:"xj6sv8s",k1K539:"xep27e5",$$css:!0},spacingCodeblockDefault:{keoZOQ:"x1s1qpeq",k1K539:"xwh1t77",$$css:!0},spacingBlockquoteDefault:{keoZOQ:"x1s1qpeq",k1K539:"xwh1t77",$$css:!0},spacingListDefault:{keoZOQ:"xj6sv8s",k1K539:"xep27e5",$$css:!0},spacingTableDefault:{keoZOQ:"x1s1qpeq",k1K539:"xwh1t77",$$css:!0},spacingHrDefault:{keoZOQ:"x13rv44w",k1K539:"x4d5cxa",$$css:!0},spacingImageDefault:{keoZOQ:"xj6sv8s",k1K539:"xep27e5",$$css:!0},spacingHeadingMajorCompact:{keoZOQ:"x1s1qpeq",k1K539:"x1p37lm5",$$css:!0},spacingHeadingMinorCompact:{keoZOQ:"xj6sv8s",k1K539:"x14cgwvg",$$css:!0},spacingParagraphCompact:{keoZOQ:"xcsaf9d",k1K539:"x14cgwvg",$$css:!0},spacingCodeblockCompact:{keoZOQ:"xtbrsbv",k1K539:"x1p37lm5",$$css:!0},spacingBlockquoteCompact:{keoZOQ:"xtbrsbv",k1K539:"x1p37lm5",$$css:!0},spacingListCompact:{keoZOQ:"xcsaf9d",k1K539:"x14cgwvg",$$css:!0},spacingTableCompact:{keoZOQ:"xtbrsbv",k1K539:"x1p37lm5",$$css:!0},spacingHrCompact:{keoZOQ:"xj6sv8s",k1K539:"xep27e5",$$css:!0},spacingImageCompact:{keoZOQ:"xtbrsbv",k1K539:"x1p37lm5",$$css:!0},noMarginBlockStart:{keoZOQ:"xdj266r",$$css:!0},noMarginBlockEnd:{k1K539:"xat24cr",$$css:!0},codeBlockWrapper:{ks0D6T:"x193iq5w",$$css:!0},tableWrapper:{ks0D6T:"x193iq5w","--container-padding-inline-start":"xrhngw9","--container-padding-inline-end":"xjsfl84","--container-padding-block-start":"x1047aw6","--container-padding-block-end":"xax9j7h",$$css:!0},blockIndent:{kUOVxO:"x1ho7dyk",$$css:!0},hr:{kMzoRj:"xc342km",kEafiO:"x11xkdxz",kPef9Z:"x13fuv20",kLZC3w:"x1pc3f07",$$css:!0}};function d$(e){const t=e.match(/^([\d.]+)ms$/);if(t)return parseFloat(t[1]);const r=e.match(/^([\d.]+)s$/);return r?parseFloat(r[1])*1e3:null}function xc(e){let t=0;for(const r of e)switch(r.type){case"text":t+=r.value.length;break;case"inlineCode":t+=r.value.length;break;case"inlineMath":t+=r.value.length;break;case"image":t+=r.alt.length;break;case"strong":case"emphasis":case"delete":case"link":t+=xc(r.children);break;case"break":t+=1;break;case"citation":t+=1;break;case"extension":t+=r.source?.length??0;break}return t}function vb(e){let t=0;for(const r of e)switch(r.type){case"heading":case"paragraph":t+=xc(r.children);break;case"code":t+=r.value.length;break;case"math":t+=r.value.length;break;case"blockquote":t+=vb(r.children);break;case"list":for(const s of r.children)t+=vb(s.children);break;case"table":for(const s of r.children)for(const o of s.children)t+=xc(o.children);break;case"extension":t+=r.source?.length??0;break;case"thematicBreak":break;case"image":t+=r.alt.length;break}return t}const y1={1:qe.h1,2:qe.h2,3:qe.h3,4:qe.h4,5:qe.h5,6:qe.h6};function uZ(e,t){const r=[];for(const f of t){f.pattern.lastIndex=0;let d;for(;(d=f.pattern.exec(e))!==null;){let p;if(f.getEndIndex){const m=f.getEndIndex(e,d);if(m===!1)continue;p=m}else p=d.index+d[0].length;r.push({start:d.index,end:p,match:d,plugin:f})}}r.sort((f,d)=>f.start-d.start);const s=[];let o=0;for(const f of r)f.start>=o&&(s.push(f),o=f.end);if(s.length===0)return[{type:"text",content:e}];const l=[];let u=0;for(let f=0;f<s.length;f++){const d=s[f];d.start>u&&l.push({type:"text",content:e.slice(u,d.start)}),l.push({type:"plugin",element:d.plugin.render(d.match,`plugin-${f}`),matchLength:d.end-d.start}),u=d.end}return u<e.length&&l.push({type:"text",content:e.slice(u)}),l}function dZ(e){const t=e?.syntaxIdentity??"",r=g.useRef(void 0);return(r.current==null||r.current.identity!==t)&&(r.current={identity:t,entries:e==null||t===""?void 0:e.syntaxEntries}),r.current.entries}function Ou(e,t,r){const s=t.offset;if(t.offset+=e.length,!t.active)return e;const o=SY(e,s,t.boundaries,r);if(o==null)return e;const l=o.map(u=>u.fading?x.jsx("span",{className:"x1hc1fzr x19991ni x80gvsz x12w9bfk xlr8y92 x4itv7f",children:u.text},u.key):x.jsx("span",{children:u.text},u.key));return x.jsx("span",{children:l},`wrap-${r}`)}function fZ(e,t){let r=e.numberMap.get(t);return r==null&&(r=e.nextNumber++,e.numberMap.set(t,r)),r}function na(e,t,r,s,o,l="a",u,f,d){switch(e.type){case"text":{if(u&&u.length>0){const p=uZ(e.value,u);if(!(p.length===1&&p[0].type==="text")){const m=[];for(let y=0;y<p.length;y++){const k=p[y];k.type==="text"?m.push(Ou(k.content,s,`${t}-seg-${y}`)):(s.offset+=k.matchLength,m.push(x.jsx(g.Fragment,{children:k.element},`plugin-${t}-${y}`)))}return x.jsx(g.Fragment,{children:m},t)}}return Ou(e.value,s,t)}case"strong":return x.jsx("strong",{className:"x2mo6ok",children:e.children.map((p,m)=>na(p,m,r,s,o,l,u,f,d))},t);case"emphasis":return x.jsx("em",{children:e.children.map((p,m)=>na(p,m,r,s,o,l,u,f,d))},t);case"delete":return x.jsx("del",{className:"xv1l7n4",children:e.children.map((p,m)=>na(p,m,r,s,o,l,u,f,d))},t);case"inlineCode":{s.offset+=e.value.length;const p=f?.inlineCode;return p?x.jsx(p,{children:e.value},t):x.jsx(sk,{children:e.value},t)}case"inlineMath":{const p=f?.math;return p==null?Ou(`$${e.value}$`,s,t):(s.offset+=e.value.length,x.jsx(p,{value:e.value,display:"inline"},t))}case"link":{const p=dR(e.url);if(p==null)return x.jsx("span",{children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,f,d))},t);const m=f?.link;if(m)return x.jsx(m,{href:p,children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,f,d))},t);const y=p.startsWith("https://")||p.startsWith("http://"),k=r?w=>{r(p,w)===!1&&w.preventDefault()}:void 0,v=y?"a":l;return x.jsx(v,{href:p,onClick:k,...y?{target:"_blank",rel:"noopener noreferrer"}:{},className:"xjse4m1 x1bvjpef",children:e.children.map((w,S)=>na(w,S,r,s,o,l,u,f,d))},t)}case"image":{const p=fR(e.url);if(p==null)return x.jsxs("span",{children:["[",e.alt,"]"]},t);const m=f?.image;return m?x.jsx(m,{src:p,alt:e.alt},t):x.jsx("img",{src:p,alt:e.alt,className:"x193iq5w xh6dtrn"},t)}case"extension":return PR(d,e,Ou(e.source??od(d,e),s,t),t);case"break":return s.offset+=1,x.jsx("br",{},t);case"citation":{if(s.offset+=1,!o)return x.jsxs("span",{children:["[",e.sourceId,"]"]},t);const p=fZ(o,e.sourceId),m=o.sources[e.sourceId]??{title:e.sourceId},y=o.style==="number"?"number":"label",k=f?.citation;return k?x.jsx(k,{source:m,number:p,variant:y},t):x.jsx(uR,{source:m,number:p,variant:y},t)}}}function hZ(e,t){const r=t==="compact";switch(e.type){case"heading":return e.depth<=3?r?qe.spacingHeadingMajorCompact:qe.spacingHeadingMajorDefault:r?qe.spacingHeadingMinorCompact:qe.spacingHeadingMinorDefault;case"paragraph":return r?qe.spacingParagraphCompact:qe.spacingParagraphDefault;case"code":case"math":return r?qe.spacingCodeblockCompact:qe.spacingCodeblockDefault;case"blockquote":return r?qe.spacingBlockquoteCompact:qe.spacingBlockquoteDefault;case"list":return r?qe.spacingListCompact:qe.spacingListDefault;case"table":return r?qe.spacingTableCompact:qe.spacingTableDefault;case"extension":return r?qe.spacingParagraphCompact:qe.spacingParagraphDefault;case"thematicBreak":return r?qe.spacingHrCompact:qe.spacingHrDefault;case"image":return r?qe.spacingImageCompact:qe.spacingImageDefault}}const pZ=4,xZ=24,gZ=2,mZ=20;function yZ(e){const[t,...r]=e.children;return t==null?[]:t.children.map((s,o)=>{const l=xc(s.children);let u=l;for(const p of r){const m=p.children[o];if(m!=null){const y=xc(m.children);y>u&&(u=y)}}const f=Math.ceil(u/gZ),d=Math.min(l,mZ);return Math.min(xZ,Math.max(pZ,f,d))})}function Iu(e,t,r,s,o,l,u,f,d,p,m="a",y,k,v,w,S,E=0){const R=m1[p],C=R!=null?yr.blockAlign(R):null,T=hZ(e,s),A=t===0,N=t===r-1,L=v?.sourceLines===!0,D=L?x1(e):void 0,j=g1(D),O=D==null?null:{sourceLines:D};switch(e.type){case"heading":{const M=Math.min(e.depth+o-1,6),H=e.children.map((P,G)=>na(P,G,l,u,f,m,y,k,v)),F=S?.ids.get(e),q=S?.labels.get(e)??"",B=S?.permalinkUrls.get(e),U=k?.heading;if(U)return x.jsx(U,{level:M,id:F,...O,children:H},t);const _=`h${M}`;return B==null||F==null?x.jsx(_,{id:F,...ye(fe("markdown-heading",{density:s,level:M}),de(qe.headingBase,y1[M],T,d!=null?yr.proseWidth(d):null,p!=="start"?yr.proseAlign(ju[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:H},t):x.jsx(sZ,{headingId:F,headingLabel:q,permalinkUrl:B,contentWidth:d,contentAlign:p,headingTextStyle:[qe.headingBase,y1[M]],blockSpacingStyle:[T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd],children:x.jsx(_,{id:F,...ye(fe("markdown-heading",{density:s,level:M}),de(qe.headingBase,rZ,y1[M])),...j,children:H})},t)}case"paragraph":{const M=e.children.map((F,q)=>na(F,q,l,u,f,m,y,k,v)),H=k?.paragraph;return H?x.jsx(H,{...O,children:M},t):x.jsx("div",{role:"paragraph",...ye(fe("markdown-paragraph",{density:s}),de(T,d!=null?yr.proseWidth(d):null,p!=="start"?yr.proseAlign(ju[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:M},t)}case"code":{u.offset+=e.value.length;const M=nR(e)??"plaintext",H=k?.code,F=H?x.jsx(H,{code:e.value,language:M,...O},t):x.jsx("div",{...ye(fe("markdown-codeblock",{density:s}),de(T,qe.codeBlockWrapper,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:x.jsx(lR,{code:e.value,language:M,isCollapsible:!0,xstyle:[d!=null?yr.blockWidth(d):void 0,C]})},t),q=UX(e);if(q==null)return F;const B=ck(v,q.node);if(B==null)return F;try{const U=B.render({node:q.node});return U==null||typeof U=="boolean"?F:x.jsx(qR,{pluginName:q.node.plugin,resetKey:q.node,resetRenderer:B.render,fallback:F,children:x.jsx(g.Suspense,{fallback:F,children:U})},t)}catch{return Ga(q.node.plugin,"render"),F}}case"math":{u.offset+=e.value.length;const M=k?.math;return M==null?x.jsx("div",{role:"paragraph",children:`$$${e.value}$$`},t):x.jsx(M,{value:e.value,display:"block",...O},t)}case"blockquote":{const M=k?.blockquote;if(M){const H=e.children.map((F,q)=>Iu(F,q,e.children.length,s,o,l,u,f,d,p,m,y,k,v,w,S,E));return x.jsx(M,{...O,children:H},t)}return x.jsx(cR,{...fe("markdown-blockquote",{density:s}),...j,xstyle:[T,d!=null?yr.proseWidth(d):void 0,p!=="start"?yr.proseAlign(ju[p]):void 0,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd],children:e.children.map((H,F)=>Iu(H,F,e.children.length,s,o,l,u,f,d,p,m,y,k,v,w,S,E))},t)}case"list":{if(e.children.length>0&&e.children.every(H=>H.checked!=null)){const H=e.children.map((F,q)=>({item:F,key:`task-${q}`})).filter(({item:F})=>F.checked).map(({key:F})=>F);return x.jsx("div",{...ye(fe("markdown-list",{density:s}),de(T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),children:x.jsx(W0,{label:w("@astryx.markdown.taskList"),isLabelHidden:!0,value:H,containerXstyle:qe.blockIndent,isReadOnly:!0,density:"compact",children:e.children.map((F,q)=>{const B=F.children[0],_=F.children.length===1&&B?.type==="paragraph"?x.jsx(x.Fragment,{children:B.children.map((P,G)=>na(P,G,l,u,f,m,y,k,v))}):x.jsx(x.Fragment,{children:F.children.map((P,G)=>Iu(P,G,F.children.length,s,o,l,u,f,d,p,m,y,k,v,w,S,E+1))});return x.jsx(Cp,{value:`task-${q}`,label:_,...L?g1(x1(F)):void 0},q)})})},t)}return x.jsx("div",{...ye(fe("markdown-list",{density:s}),de(T,d!=null?yr.proseWidth(d):null,p!=="start"?yr.proseAlign(ju[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),children:x.jsx(dc,{listStyle:e.ordered?"decimal":"disc",density:"compact",start:e.ordered?e.start:void 0,xstyle:qe.blockIndent,children:e.children.map((H,F)=>{const q=H.children[0],U=H.children.length===1&&q?.type==="paragraph"?x.jsx(x.Fragment,{children:q.children.map((G,X)=>na(G,X,l,u,f,m,y,k,v))}):x.jsx(x.Fragment,{children:H.children.map((G,X)=>Iu(G,X,H.children.length,s,o,l,u,f,d,p,m,y,k,v,w,S,E+1))}),_=H.children.find(G=>G.type==="paragraph"),P=H.checked==null?void 0:{isChecked:H.checked,label:_?.type==="paragraph"?Md(_.children,G=>od(v,G)):w("@astryx.markdown.taskList")};return x.jsx(GU,{marker:(e.ordered?iZ:oZ)[E%3],task:P,children:x.jsx(Sc,{label:U,...L?g1(x1(H)):void 0})},F)})})},t)}case"table":{const M=yZ(e),[H,...F]=e.children,q=k?.inlineCode!=null?k:{...k,inlineCode:cZ};return x.jsx("div",{...ye(fe("markdown-table",{density:s}),de(qe.tableWrapper,T,d!=null?yr.blockWidth(d):null,m1[p]!=null?yr.blockAlign(m1[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:x.jsxs(Nx,{dividers:"rows",textOverflow:"wrap",children:[x.jsx(nk,{children:x.jsx(jp,{children:H?.children.map((B,U)=>x.jsx(tk,{xstyle:[kb.headerCell,yr.cellMinWidth(`${M[U]}ch`),e.align[U]==="center"&&Lh.center,e.align[U]==="right"&&Lh.end],children:B.children.map((_,P)=>na(_,P,l,u,f,m,y,q,v))},U))})}),x.jsx(rk,{children:F.map((B,U)=>{const _=B.children.map((P,G)=>x.jsx(ek,{xstyle:[kb.cell,e.align[G]==="center"&&Lh.center,e.align[G]==="right"&&Lh.end],children:P.children.map((X,Z)=>na(X,Z,l,u,f,m,y,q,v))},G));return x.jsx(jp,{children:_},U)})})]})},t)}case"extension":{const M=PR(v,e,Ou(e.source??od(v,e),u,t));return x.jsx("div",{...de(T,d!=null?yr.proseWidth(d):null,p!=="start"?yr.proseAlign(ju[p]):null,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd),children:M},t)}case"thematicBreak":{const M=k?.hr;return M?x.jsx(M,{...O},t):x.jsx("hr",{...ye(fe("markdown-hr",{density:s}),de(qe.hr,T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j},t)}case"image":{const M=fR(e.url);if(M==null)return x.jsxs("div",{...ye(fe("markdown-image",{density:s}),de(T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:["[",e.alt,"]"]},t);const H=k?.image;return H?x.jsx(H,{src:M,alt:e.alt,...O},t):x.jsx("div",{...ye(fe("markdown-image",{density:s}),de(T,A&&qe.noMarginBlockStart,N&&qe.noMarginBlockEnd)),...j,children:x.jsx("img",{src:M,alt:e.alt,className:"x193iq5w xh6dtrn"})},t)}}}function HR({ref:e,children:t,display:r="block",density:s="default",headingLevelStart:o=1,isStreaming:l=!1,onLinkClick:u,sources:f,citationStyle:d="label",contentWidth:p=680,contentAlign:m="start",components:y,plugins:k,inlinePlugins:v,autolink:w,xstyle:S,className:E,style:R,id:C,"data-testid":T,...A}){const N=Nt(),L=Oi(),D=g.useMemo(()=>f?new Set(Object.keys(f)):void 0,[f]),j=g.useMemo(()=>{if(k!=null)try{return xR(k)}catch{Ga("configuration","transform");return}},[k]),O=dZ(j),M=y?.math!=null,H=g.useMemo(()=>({sourceIds:D,autolink:w,plugins:O}),[D,w,O]),F=g.useMemo(()=>({sourceIds:D,autolink:w,math:!0,plugins:O}),[D,w,O]),q=RU(t,l),B=g.useRef(h1()),U=g.useRef(w),_=g.useRef(M);(U.current!==w||_.current!==M)&&(B.current=h1(),U.current=w,_.current=M);const P=g.useMemo(()=>{if(r==="inline")return[];if(l){if(q==="")return B.current=h1(),[];const Te=zh(q,M?F:H);return(M?c$(Te,B.current,F):c$(Te,B.current,H)).children}return(M?o$(t,F):o$(t,H)).children},[r,q,t,l,M,F,H]),G=l?zh(q,M?F:H):t,X=g.useMemo(()=>sd({type:"root",children:P},j,G,!l,"block").children,[P,j,G,l]),Z=g.useMemo(()=>{if(!(r==="inline"||X.length===0))return eZ({type:"root",children:X},j)},[r,X,j]),Q=g.useMemo(()=>{if(r!=="inline")return[];const Te=l?zh(q,M?F:H):t;return M?Q3(Te,F):Q3(Te,H)},[r,q,t,l,M,F,H]),K=l?zh(q,M?F:H):t,ae=g.useMemo(()=>{if(r!=="inline")return[];const Te=sd({type:"root",children:[{type:"paragraph",children:Q}]},j,K,!l,"inline").children[0];return Te?.type==="paragraph"?[...Te.children]:Q},[r,Q,j,K,l]),{token:I}=ix(),ee=g.useMemo(()=>{const Ce=d$(I("--duration-fast-max"))??230,Te=d$(I("--duration-fast-min")),Me=Te!=null?Math.max(4,Math.round(Te/10)):50;return Math.min(Math.ceil(Ce/Me),12)},[I]),pe=g.useRef([]),ue=g.useRef([]),ve=g.useRef([]),xe=q.length,te={offset:0,boundaries:g.useMemo(()=>{const Ce=r==="inline"?xc(ue.current):vb(pe.current),Te=wY(ve.current,Ce,ee);return ve.current=Te,Te},[r,xe,ee]),active:l},he=f?{sources:f,numberMap:new Map,nextNumber:1,style:d}:null;if(r==="inline"){const Ce=x.jsx("span",{ref:e,...A,id:C,"data-testid":T,...ye(fe("markdown",{density:s}),de(qe.root,qe.inlineRoot,S),E,R),children:ae.map((Te,Me)=>na(Te,Me,u,te,he,L,v,y,j))});return ue.current=ae,pe.current=[],Ce}const Re=x.jsx("div",{ref:e,...A,id:C,role:"document","data-testid":T,...ye(fe("markdown",{density:s}),de(qe.root,S),E,R),children:X.map((Ce,Te)=>Iu(Ce,Te,X.length,s,o,u,te,he,p?typeof p=="number"?`${p}px`:p:null,m,L,v,y,j,N,Z))});return pe.current=X,ue.current=[],Re}HR.displayName="Markdown";const bZ=1e3,kZ=100,f$={root:{kWkggS:"xprdx6m x1j0df82 x1o55y2u",kSiTet:"xvpkmg4 x1tbh5bv",$$css:!0},animate:{kILWW9:"xpz12be",k44tkh:"xqgcaz",ko0y90:"xa4qsjk",kKVMdj:"xeuoslp x1aquc0h",kyAemX:"x193epu2",$$css:!0}},vZ={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}},wZ={kKxzle:"xvo38ju",$$css:!0},h$={animationDelay:e=>[wZ,{"--x-animationDelay":(t=>typeof t=="number"?t+"ms":t??void 0)(`${bZ+kZ*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":(r=>typeof r=="number"?r+"px":r??void 0)(typeof e=="number"?`${e}px`:e),"--x-height":(r=>typeof r=="number"?r+"px":r??void 0)(typeof t=="number"?`${t}px`:t)}]};function Zh({width:e="100%",height:t="100%",radius:r=3,index:s=0,"data-testid":o,xstyle:l,className:u,style:f,ref:d,...p}){return x.jsx("div",{ref:d,"aria-hidden":"true","data-testid":o,...ye(fe("skeleton"),de(f$.root,f$.animate,vZ[r],h$.dimensions(e,t),h$.animationDelay(s),l),u,f),...p})}Zh.displayName="Skeleton";function SZ(){const{captureId:e=""}=Ib(),t=qr(),{t:r}=Qt(),s=Ka({queryKey:Pn.detail(e),queryFn:()=>NG(e),enabled:!!e}),o=()=>{t.invalidateQueries({queryKey:Pn.detail(e)})},l=s.data?.ok?s.data.data:null;return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsx(Tt,{gap:2,vAlign:"center",children:x.jsx(_r,{label:r("captures.refresh"),tooltip:r("captures.refresh"),icon:x.jsx(px,{}),size:"sm",variant:"ghost",onClick:o})})}),s.isPending?x.jsxs(We,{gap:3,width:"100%",children:[x.jsx(Zh,{width:280,height:30}),x.jsx(Zh,{width:420,height:18,index:1}),x.jsx(Zh,{width:"100%",height:280,radius:2,index:2})]}):l?x.jsxs(We,{gap:5,width:"100%",children:[x.jsxs(We,{gap:2,children:[x.jsx(qo,{level:1,children:l.capture.title||r("navigation.captureDetails")}),x.jsx(dx,{href:l.capture.url,isExternalLink:!0,type:"supporting",display:"block",maxLines:2,children:l.capture.url}),x.jsxs(Tt,{gap:4,wrap:"wrap",children:[x.jsx(Je,{type:"supporting",children:`${r("captures.createdAt")}: ${l.capture.createdAt}`}),x.jsx(Je,{type:"supporting",children:`${r("captures.updatedAt")}: ${l.capture.updatedAt}`})]}),l.capture.userNote&&x.jsx(Je,{color:"secondary",children:l.capture.userNote})]}),x.jsx(Ni,{}),l.content?x.jsx(Ks,{width:"100%",padding:5,variant:"muted",children:x.jsx(HR,{density:"compact",headingLevelStart:2,contentWidth:"none",onLinkClick:(u,f)=>{u.startsWith("#")||(f.preventDefault(),(u.startsWith("http://")||u.startsWith("https://"))&&window.open(u,"_blank","noopener,noreferrer"))},children:l.content.markdown})}):x.jsx(fc,{title:r("captures.noContentTitle"),description:r("captures.noContentDescription")})]}):x.jsx(fc,{title:r("captures.detailUnavailable")})]})}const EZ={pending:"neutral",running:"neutral",succeeded:"success",failed:"error"};function $Z(){const{captureId:e=""}=Ib(),{t}=Qt(),r=qr(),s=Ws(),o=Ka({queryKey:Pn.jobs(e),queryFn:()=>OG(e),enabled:!!e}),l=cr({mutationFn:k6,onSuccess:p=>{if(!p.ok){s({body:t(rd(p.error.code)),type:"error",uniqueID:p.error.code});return}r.invalidateQueries({queryKey:Pn.jobs(e)}),s({body:t("captures.recaptureStarted"),uniqueID:"recapture-started"})}}),u=o.data?.ok?o.data.data:[],f=()=>{r.invalidateQueries({queryKey:Pn.jobs(e)})},d=g.useMemo(()=>[{key:"status",header:t("captures.jobStatus"),width:Ro(120),renderCell:p=>x.jsx(eR,{label:t(`captures.jobStatus.${p.status}`),variant:EZ[p.status]})},{key:"fetcher",header:t("captures.fetcher"),width:Ro(160),renderCell:p=>x.jsx(Je,{children:p.fetcher==="firecrawl"?"Firecrawl":"DeepSeek Fetch"})},{key:"createdAt",header:t("captures.createdAt"),width:Ro(200),renderCell:p=>x.jsx(Je,{color:"secondary",children:p.createdAt})},{key:"updatedAt",header:t("captures.updatedAt"),width:Ro(200),renderCell:p=>x.jsx(Je,{color:"secondary",children:p.updatedAt})},{key:"error",header:t("captures.error"),width:Ro(220),renderCell:p=>p.errorMessage?x.jsx(_i,{content:p.errorMessage,children:x.jsx(Je,{color:"primary",display:"block",maxLines:2,textWrap:"wrap",children:p.errorMessage})}):x.jsx(Je,{color:"secondary",children:"—"})}],[t]);return x.jsxs(x.Fragment,{children:[x.jsx(Ed,{children:x.jsxs(Tt,{gap:2,vAlign:"center",children:[x.jsx(_r,{label:t("captures.refresh"),tooltip:t("captures.refresh"),icon:x.jsx(px,{}),size:"sm",variant:"ghost",onClick:f}),x.jsx(yt,{label:t("captures.recapture"),size:"sm",variant:"primary",onClick:()=>{l.mutate(e)}})]})}),x.jsx(We,{gap:5,children:u.length===0?x.jsx(fc,{title:t("captures.noJobsTitle"),description:t("captures.noJobsDescription")}):x.jsx(Nx,{data:u,columns:d,idKey:"id",textOverflow:"truncate"})})]})}function TZ(){const e=qr(),{subscribe:t,status:r}=bx();return g.useEffect(()=>t(s=>{(s.type===q4||s.type===P4)&&e.invalidateQueries({queryKey:Pn.all})}),[e,t]),g.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:Pn.all})},[e,r]),null}const CZ=new Set([xF,q4,P4]);function jZ(){const e=qr(),{subscribe:t,status:r}=bx();return g.useEffect(()=>t(s=>{CZ.has(s.type)?e.invalidateQueries({queryKey:Tp.status()}):s.type===gF&&e.invalidateQueries()}),[e,t]),g.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:Tp.status()})},[e,r]),null}function RZ(){const e=qr(),{subscribe:t,status:r}=bx();return g.useEffect(()=>t(s=>{s.type===mF&&e.invalidateQueries({queryKey:ys.all})}),[e,t]),g.useEffect(()=>{r==="open"&&e.invalidateQueries({queryKey:ys.all})},[e,r]),null}const AZ=new Set(["timeFormat","timezone"]);function MZ(){const e=qr(),{subscribe:t,status:r}=bx();return g.useEffect(()=>t(s=>{s.type===yF&&(e.invalidateQueries({queryKey:Mi.current()}),NZ(s.data)&&p$(e))}),[e,t]),g.useEffect(()=>{r==="open"&&(e.invalidateQueries({queryKey:Mi.current()}),p$(e))},[e,r]),null}function p$(e){e.invalidateQueries({queryKey:Pn.all}),e.invalidateQueries({queryKey:ys.all})}function NZ(e){if(typeof e!="object"||e===null||!("fields"in e))return!1;const t=e.fields;return Array.isArray(t)&&t.some(r=>typeof r=="string"&&AZ.has(r))}const Va={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}},zZ={className:"x78zum5 x6s0dn4 x1txdalj xpx4bdk xbih8ty x1rey3nv xnjyzlh x87ps6o"},ql={overview:pB,captures:gj,prompts:IP,library:C0,providers:Q1,settings:AP},LZ=[{kind:"item",id:"overview",label:"Overview",href:"/overview",icon:ql.overview},{kind:"section",id:"library",title:"Library",icon:ql.library,items:[{kind:"item",id:"prompts",label:"Prompts",href:"/library/prompts",icon:ql.prompts},{kind:"item",id:"captures",label:"Captures",href:"/library/captures",icon:ql.captures}]},{kind:"item",id:"providers",label:"Providers",href:"/providers",icon:ql.providers}],b1={kind:"item",id:"settings",label:"Settings",href:"/settings",icon:ql.settings};function FR({href:e="/",ref:t,...r}){return x.jsx(dT,{ref:t,to:e,...r})}function wb({label:e,icon:t,href:r}){const{pathname:s}=Pr(),{isMobile:o,closeMobileNav:l}=Ii();return x.jsx(hx,{label:e,icon:t,href:r,as:FR,isSelected:s===r,size:"sm",onClick:o?l:void 0})}function DZ({title:e,icon:t,items:r,getLabel:s}){const[o,l]=g.useState(!1),{isMobile:u,closeMobileNav:f}=Ii(),d=r[0];return x.jsx(hx,{label:e,icon:t,href:d.href,as:FR,collapsible:{isCollapsed:o,onCollapsedChange:l},onClick:()=>{l(!1),u&&f()},size:"sm",children:x.jsx(We,{gap:0,xstyle:Va.compactNavItems,children:r.map(p=>x.jsx(wb,{label:s(p.id,p.label),icon:p.icon,href:p.href},p.id))})})}function x$(e){return typeof e=="object"&&e!==null&&"titleKey"in e&&typeof e.titleKey=="string"}function UR({collapsible:e,showBackButton:t=!1}){const r=K9(),s=yc(),{t:o}=Qt(),{isMobile:l}=Ii(),u=LB(),f=r.findLast(d=>x$(d.handle))?.handle;return x.jsxs("header",{...zZ,"aria-label":o("navigation.windowTitlebar"),children:[t&&x.jsx(_r,{label:o("navigation.back"),icon:x.jsx(ft,{icon:"chevronLeft"}),variant:"ghost",size:"sm",tooltip:o("navigation.back"),onClick:()=>s(-1)}),x.jsx(g0,{label:o("navigation.openNavigation")}),!l&&e&&x.jsx(v0,{collapsible:e,size:"sm",children:x.jsx(ft,{icon:e.isCollapsed?"chevronsRight":"chevronsLeft",size:"sm"})}),x$(f)&&x.jsxs(Tt,{gap:2,vAlign:"center",width:"100%",xstyle:Va.titlebarContent,children:[x.jsx(Je,{type:"large",weight:"semibold",maxLines:1,textWrap:"nowrap",xstyle:Va.title,children:o(f.titleKey)}),f.descriptionKey&&x.jsx(Je,{type:"supporting",maxLines:1,textWrap:"nowrap",xstyle:Va.description,children:o(f.descriptionKey)}),x.jsx(lc,{size:"fill"}),x.jsx(Tt,{ref:u,vAlign:"center",xstyle:Va.actions})]})]})}function OZ(){const[e,t]=g.useState(!1),{t:r}=Qt(),s=(p,m)=>({overview:r("navigation.overview"),captures:r("navigation.captures"),prompts:r("navigation.prompts"),providers:r("navigation.providers"),settings:r("navigation.settings"),library:r("navigation.library")})[p]??m,o={isCollapsed:e,onCollapsedChange:t},l=x.jsx(mp,{title:r("navigation.account"),isHeaderHidden:!0,children:x.jsx(wb,{...b1,label:s(b1.id,b1.label)})}),u=x.jsx(mp,{title:r("navigation.main"),isHeaderHidden:!0,children:x.jsx(We,{gap:0,xstyle:Va.compactNavItems,children:LZ.map(p=>p.kind==="item"?x.jsx(wb,{...p,label:s(p.id,p.label)},p.id):x.jsx(DZ,{title:s(p.id,p.title),icon:p.icon,items:p.items,getLabel:s},p.id))})}),f=x.jsx(xp,{collapsible:{...o,hasButton:!1},xstyle:e?Va.sideNavCollapsed:Va.sideNav,footer:l,children:u}),d=x.jsx(xp,{footer:l,xstyle:Va.mobileSideNav,children:u});return x.jsx(m0,{height:"fill",variant:"surface",contentPadding:0,mobileNav:{content:x.jsx(b0,{className:SF.drawer,label:r("navigation.main"),side:"start",children:d})},xstyle:Va.appShell,topNav:x.jsx(UR,{collapsible:o}),sideNav:f,children:x.jsx(Oo,{height:"fill",content:x.jsx(Io,{padding:4,children:x.jsx(Pb,{})})})})}function IZ(){const{pathname:e}=Pr(),t=e==="/settings";return x.jsx(m0,{height:"fill",variant:"surface",contentPadding:0,mobileNav:!1,xstyle:Va.appShell,topNav:x.jsx(UR,{showBackButton:!0}),children:x.jsx(Oo,{height:"fill",content:x.jsx(Io,{padding:t?0:4,isScrollable:!t,children:x.jsx(Pb,{})})})})}function _Z(){const{pathname:e}=Pr(),{t}=Qt();return x.jsx(We,{gap:2,children:x.jsxs(Je,{type:"supporting",children:[t("navigation.notFound"),":",e]})})}function qZ(){return x.jsx(Pb,{})}function ps(e,t){return{titleKey:e,descriptionKey:t}}const PZ=MN([{path:"/",element:x.jsx(qZ,{}),children:[{index:!0,element:x.jsx(sN,{to:"/overview",replace:!0})},{element:x.jsx(OZ,{}),children:[{path:"overview",element:x.jsx(EF,{}),handle:ps("navigation.overview")},{path:"library/captures",element:x.jsx(PW,{}),handle:ps("navigation.captures","navigation.capturesDescription")},{path:"library/prompts",element:x.jsx($F,{}),handle:ps("navigation.prompts")},{path:"providers",element:x.jsx(kK,{}),handle:ps("navigation.providers","navigation.providersDescription")}]},{element:x.jsx(IZ,{}),children:[{path:"library/captures/:captureId",element:x.jsx(SZ,{}),handle:ps("navigation.captureDetails","navigation.captureDetailsDescription")},{path:"library/captures/:captureId/jobs",element:x.jsx($Z,{}),handle:ps("navigation.jobs","navigation.jobsDescription")},{path:"settings",element:x.jsx(cK,{}),handle:ps("navigation.settings")},{path:"providers/new",element:x.jsx($3,{}),handle:ps("navigation.newProvider","providers.formDescription")},{path:"providers/:providerId",element:x.jsx($3,{}),handle:ps("navigation.editProvider","providers.formDescription")},{path:"*",element:x.jsx(_Z,{}),handle:ps("navigation.notFound")}]}]}]);function BZ({children:e}){const r=Ka({queryKey:Mi.current(),queryFn:M0}).data?.workspace.appearance["color-theme"]??"system";return x.jsx(T0,{theme:zB,mode:r,children:e})}function HZ(){return x.jsx(LM,{client:D4,children:x.jsx(vF,{children:x.jsxs(DB,{children:[x.jsx(TZ,{}),x.jsx(jZ,{}),x.jsx(RZ,{}),x.jsx(MZ,{}),x.jsx(BZ,{children:x.jsx(pF,{children:x.jsx(FN,{router:PZ})})})]})})})}m$.createRoot(document.getElementById("root")).render(x.jsx(g.StrictMode,{children:x.jsx(HZ,{})}));export{rc as L,XC as S,Ri as a,kU as b,y0 as c,Di as d,Ti as e,pn as f,No as g,Vs as h,Vq as i,x as j,Bs as k,sc as l,ye as m,ac as n,Qu as o,de as p,vU as q,g as r,Xb as s,fe as t,wd as u,Jp as v,Ju as w};
|